From 18d7df09c41150ef1e95d4edf1db3ac5fbe918e5 Mon Sep 17 00:00:00 2001 From: Amir Aharoni Date: Mon, 28 Oct 2019 14:33:41 +0200 Subject: [PATCH] Add more file format information to the README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index dc7738c..495fa27 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,13 @@ The list of region codes appears at the end of data/langdb.yaml. The autonym is the name of the language in the language itself. In some cases, for example for extinct languages such as Jewish Babylonian Aramaic (tmr), the name can be something that is useful for modern users, but in most cases it should be the natural name in the language itself. Please do your best to verify that it's spelled correctly in reliable sources. After adding a language to data/langdb.yaml, run `php ulsdata2json.php` in the data/ directory to generate the language-data.json file. Don't edit language-data.json manually. + +Example: +`myv: [Cyrl, [EU], эрзянь]` + +This is the [Erzya language](https://en.wikipedia.org/wiki/Erzya_language). Its writing system is Cyrillic (ISO 15924: Cyrl). It's spoken in Europe (EU). Its autonym is "эрзянь". + +Some languages are listed as redirects. In this case, the only value in the square brackets is the target language code. For example: +`fil: [tl]` + +This is the Filipino language, which is a redirect to Tagalog (tl).