@mailwoman/registry 11.1.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -6
- package/data/manifests/artifacts.json +35 -0
- package/data/manifests/coverage.json +63 -0
- package/data/manifests/sources.lock.json +12 -0
- package/data/normalized/language-subtags.json +18518 -0
- package/docs/data-policy.md +5 -5
- package/docs/rgy1.md +5 -5
- package/lib/artifacts/bcp47/extlang.fixture.json +260 -0
- package/lib/artifacts/bcp47/extlang.ts +32 -0
- package/lib/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/lib/artifacts/bcp47/grandfathered.ts +32 -0
- package/lib/artifacts/bcp47/language.fixture.json +8278 -0
- package/lib/artifacts/bcp47/language.ts +32 -0
- package/lib/artifacts/bcp47/redundant.fixture.json +69 -0
- package/lib/artifacts/bcp47/redundant.ts +32 -0
- package/lib/artifacts/bcp47/region.fixture.json +307 -0
- package/lib/artifacts/bcp47/region.ts +32 -0
- package/lib/artifacts/bcp47/script.fixture.json +227 -0
- package/lib/artifacts/bcp47/script.ts +32 -0
- package/lib/artifacts/bcp47/variant.fixture.json +141 -0
- package/lib/artifacts/bcp47/variant.ts +32 -0
- package/lib/bcp47/subtag-index.ts +65 -0
- package/lib/bcp47/tag.ts +301 -0
- package/lib/errors.ts +11 -1
- package/lib/index.ts +8 -2
- package/lib/iso15924/codes.ts +169 -0
- package/lib/iso15924/unicode-script.ts +124 -0
- package/lib/iso639/languages.ts +88 -0
- package/lib/types.ts +58 -0
- package/out/artifacts/bcp47/extlang.d.ts +21 -0
- package/out/artifacts/bcp47/extlang.d.ts.map +1 -0
- package/out/artifacts/bcp47/extlang.fixture.json +260 -0
- package/out/artifacts/bcp47/extlang.js +17 -0
- package/out/artifacts/bcp47/extlang.js.map +1 -0
- package/out/artifacts/bcp47/grandfathered.d.ts +21 -0
- package/out/artifacts/bcp47/grandfathered.d.ts.map +1 -0
- package/out/artifacts/bcp47/grandfathered.fixture.json +28 -0
- package/out/artifacts/bcp47/grandfathered.js +17 -0
- package/out/artifacts/bcp47/grandfathered.js.map +1 -0
- package/out/artifacts/bcp47/language.d.ts +21 -0
- package/out/artifacts/bcp47/language.d.ts.map +1 -0
- package/out/artifacts/bcp47/language.fixture.json +8278 -0
- package/out/artifacts/bcp47/language.js +17 -0
- package/out/artifacts/bcp47/language.js.map +1 -0
- package/out/artifacts/bcp47/redundant.d.ts +21 -0
- package/out/artifacts/bcp47/redundant.d.ts.map +1 -0
- package/out/artifacts/bcp47/redundant.fixture.json +69 -0
- package/out/artifacts/bcp47/redundant.js +17 -0
- package/out/artifacts/bcp47/redundant.js.map +1 -0
- package/out/artifacts/bcp47/region.d.ts +21 -0
- package/out/artifacts/bcp47/region.d.ts.map +1 -0
- package/out/artifacts/bcp47/region.fixture.json +307 -0
- package/out/artifacts/bcp47/region.js +17 -0
- package/out/artifacts/bcp47/region.js.map +1 -0
- package/out/artifacts/bcp47/script.d.ts +21 -0
- package/out/artifacts/bcp47/script.d.ts.map +1 -0
- package/out/artifacts/bcp47/script.fixture.json +227 -0
- package/out/artifacts/bcp47/script.js +17 -0
- package/out/artifacts/bcp47/script.js.map +1 -0
- package/out/artifacts/bcp47/variant.d.ts +21 -0
- package/out/artifacts/bcp47/variant.d.ts.map +1 -0
- package/out/artifacts/bcp47/variant.fixture.json +141 -0
- package/out/artifacts/bcp47/variant.js +17 -0
- package/out/artifacts/bcp47/variant.js.map +1 -0
- package/out/bcp47/subtag-index.d.ts +22 -0
- package/out/bcp47/subtag-index.d.ts.map +1 -0
- package/out/bcp47/subtag-index.js +43 -0
- package/out/bcp47/subtag-index.js.map +1 -0
- package/out/bcp47/tag.d.ts +47 -0
- package/out/bcp47/tag.d.ts.map +1 -0
- package/out/bcp47/tag.js +218 -0
- package/out/bcp47/tag.js.map +1 -0
- package/out/errors.d.ts +4 -0
- package/out/errors.d.ts.map +1 -1
- package/out/errors.js.map +1 -1
- package/out/index.d.ts +8 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +4 -1
- package/out/index.js.map +1 -1
- package/out/iso15924/codes.d.ts +57 -0
- package/out/iso15924/codes.d.ts.map +1 -0
- package/out/iso15924/codes.js +133 -0
- package/out/iso15924/codes.js.map +1 -0
- package/out/iso15924/unicode-script.d.ts +10 -0
- package/out/iso15924/unicode-script.d.ts.map +1 -0
- package/out/iso15924/unicode-script.js +103 -0
- package/out/iso15924/unicode-script.js.map +1 -0
- package/out/iso639/languages.d.ts +40 -0
- package/out/iso639/languages.d.ts.map +1 -0
- package/out/iso639/languages.js +54 -0
- package/out/iso639/languages.js.map +1 -0
- package/out/sdk/fetch.d.ts +5 -1
- package/out/sdk/fetch.d.ts.map +1 -1
- package/out/sdk/fetch.js +20 -6
- package/out/sdk/fetch.js.map +1 -1
- package/out/sdk/fetch.run.js +17 -3
- package/out/sdk/fetch.run.js.map +1 -1
- package/out/sdk/sources.d.ts +1 -1
- package/out/sdk/sources.d.ts.map +1 -1
- package/out/sdk/sources.js +18 -1
- package/out/sdk/sources.js.map +1 -1
- package/out/tools/bench.run.js +2 -2
- package/out/tools/bench.run.js.map +1 -1
- package/out/tools/build-wasm.run.js +2 -2
- package/out/tools/build-wasm.run.js.map +1 -1
- package/out/tools/generate-sections.run.js +2 -2
- package/out/tools/generate-sections.run.js.map +1 -1
- package/out/tools/generate.run.js +53 -6
- package/out/tools/generate.run.js.map +1 -1
- package/out/tools/language-subtags.d.ts +59 -0
- package/out/tools/language-subtags.d.ts.map +1 -0
- package/out/tools/language-subtags.js +145 -0
- package/out/tools/language-subtags.js.map +1 -0
- package/out/tools/normalize.d.ts +3 -1
- package/out/tools/normalize.d.ts.map +1 -1
- package/out/tools/normalize.js +3 -3
- package/out/tools/normalize.js.map +1 -1
- package/out/tools/normalize.run.js +23 -4
- package/out/tools/normalize.run.js.map +1 -1
- package/out/types.d.ts +57 -0
- package/out/types.d.ts.map +1 -1
- package/out/types.js +12 -0
- package/out/types.js.map +1 -1
- package/package.json +6 -3
- package/sdk/fetch.run.ts +19 -3
- package/sdk/fetch.ts +28 -7
- package/sdk/sources.ts +19 -1
- package/tools/bench.run.ts +2 -2
- package/tools/build-wasm.run.ts +2 -2
- package/tools/generate-sections.run.ts +2 -2
- package/tools/generate.run.ts +59 -6
- package/tools/language-subtags.ts +195 -0
- package/tools/normalize.run.ts +26 -4
- package/tools/normalize.ts +4 -4
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "subtag": "Adlm", "descriptions": ["Adlam"] },
|
|
3
|
+
{ "subtag": "Afak", "descriptions": ["Afaka"] },
|
|
4
|
+
{ "subtag": "Aghb", "descriptions": ["Caucasian Albanian"] },
|
|
5
|
+
{ "subtag": "Ahom", "descriptions": ["Ahom", "Tai Ahom"] },
|
|
6
|
+
{ "subtag": "Arab", "descriptions": ["Arabic"] },
|
|
7
|
+
{ "subtag": "Aran", "descriptions": ["Arabic (Nastaliq variant)"] },
|
|
8
|
+
{ "subtag": "Armi", "descriptions": ["Imperial Aramaic"] },
|
|
9
|
+
{ "subtag": "Armn", "descriptions": ["Armenian"] },
|
|
10
|
+
{ "subtag": "Avst", "descriptions": ["Avestan"] },
|
|
11
|
+
{ "subtag": "Bali", "descriptions": ["Balinese"] },
|
|
12
|
+
{ "subtag": "Bamu", "descriptions": ["Bamum"] },
|
|
13
|
+
{ "subtag": "Bass", "descriptions": ["Bassa Vah"] },
|
|
14
|
+
{ "subtag": "Batk", "descriptions": ["Batak"] },
|
|
15
|
+
{ "subtag": "Beng", "descriptions": ["Bengali", "Bangla"] },
|
|
16
|
+
{ "subtag": "Berf", "descriptions": ["Beria Erfe"] },
|
|
17
|
+
{ "subtag": "Bhks", "descriptions": ["Bhaiksuki"] },
|
|
18
|
+
{ "subtag": "Blis", "descriptions": ["Blissymbols"] },
|
|
19
|
+
{ "subtag": "Bopo", "descriptions": ["Bopomofo"] },
|
|
20
|
+
{ "subtag": "Brah", "descriptions": ["Brahmi"] },
|
|
21
|
+
{ "subtag": "Brai", "descriptions": ["Braille"] },
|
|
22
|
+
{ "subtag": "Bugi", "descriptions": ["Buginese"] },
|
|
23
|
+
{ "subtag": "Buhd", "descriptions": ["Buhid"] },
|
|
24
|
+
{ "subtag": "Cakm", "descriptions": ["Chakma"] },
|
|
25
|
+
{ "subtag": "Cans", "descriptions": ["Unified Canadian Aboriginal Syllabics"] },
|
|
26
|
+
{ "subtag": "Cari", "descriptions": ["Carian"] },
|
|
27
|
+
{ "subtag": "Cham", "descriptions": ["Cham"] },
|
|
28
|
+
{ "subtag": "Cher", "descriptions": ["Cherokee"] },
|
|
29
|
+
{ "subtag": "Chis", "descriptions": ["Chisoi"] },
|
|
30
|
+
{ "subtag": "Chrs", "descriptions": ["Chorasmian"] },
|
|
31
|
+
{ "subtag": "Cirt", "descriptions": ["Cirth"] },
|
|
32
|
+
{ "subtag": "Copt", "descriptions": ["Coptic"] },
|
|
33
|
+
{ "subtag": "Cpmn", "descriptions": ["Cypro-Minoan"] },
|
|
34
|
+
{ "subtag": "Cprt", "descriptions": ["Cypriot syllabary"] },
|
|
35
|
+
{ "subtag": "Cyrl", "descriptions": ["Cyrillic"] },
|
|
36
|
+
{ "subtag": "Cyrs", "descriptions": ["Cyrillic (Old Church Slavonic variant)"] },
|
|
37
|
+
{ "subtag": "Deva", "descriptions": ["Devanagari", "Nagari"] },
|
|
38
|
+
{ "subtag": "Diak", "descriptions": ["Dives Akuru"] },
|
|
39
|
+
{ "subtag": "Dogr", "descriptions": ["Dogra"] },
|
|
40
|
+
{ "subtag": "Dsrt", "descriptions": ["Deseret", "Mormon"] },
|
|
41
|
+
{ "subtag": "Dupl", "descriptions": ["Duployan shorthand", "Duployan stenography"] },
|
|
42
|
+
{ "subtag": "Egyd", "descriptions": ["Egyptian demotic"] },
|
|
43
|
+
{ "subtag": "Egyh", "descriptions": ["Egyptian hieratic"] },
|
|
44
|
+
{ "subtag": "Egyp", "descriptions": ["Egyptian hieroglyphs"] },
|
|
45
|
+
{ "subtag": "Elba", "descriptions": ["Elbasan"] },
|
|
46
|
+
{ "subtag": "Elym", "descriptions": ["Elymaic"] },
|
|
47
|
+
{ "subtag": "Ethi", "descriptions": ["Ethiopic", "Geʻez", "Ge'ez"] },
|
|
48
|
+
{ "subtag": "Gara", "descriptions": ["Garay"] },
|
|
49
|
+
{ "subtag": "Geok", "descriptions": ["Khutsuri (Asomtavruli and Nuskhuri)"] },
|
|
50
|
+
{ "subtag": "Geor", "descriptions": ["Georgian (Mkhedruli and Mtavruli)"] },
|
|
51
|
+
{ "subtag": "Glag", "descriptions": ["Glagolitic"] },
|
|
52
|
+
{ "subtag": "Gong", "descriptions": ["Gunjala Gondi"] },
|
|
53
|
+
{ "subtag": "Gonm", "descriptions": ["Masaram Gondi"] },
|
|
54
|
+
{ "subtag": "Goth", "descriptions": ["Gothic"] },
|
|
55
|
+
{ "subtag": "Gran", "descriptions": ["Grantha"] },
|
|
56
|
+
{ "subtag": "Grek", "descriptions": ["Greek"] },
|
|
57
|
+
{ "subtag": "Gujr", "descriptions": ["Gujarati"] },
|
|
58
|
+
{ "subtag": "Gukh", "descriptions": ["Gurung Khema"] },
|
|
59
|
+
{ "subtag": "Guru", "descriptions": ["Gurmukhi"] },
|
|
60
|
+
{ "subtag": "Hanb", "descriptions": ["Han with Bopomofo (alias for Han + Bopomofo)"] },
|
|
61
|
+
{ "subtag": "Hang", "descriptions": ["Hangul", "Hangŭl", "Hangeul"] },
|
|
62
|
+
{ "subtag": "Hani", "descriptions": ["Han", "Hanzi", "Kanji", "Hanja"] },
|
|
63
|
+
{ "subtag": "Hano", "descriptions": ["Hanunoo", "Hanunóo"] },
|
|
64
|
+
{ "subtag": "Hans", "descriptions": ["Han (Simplified variant)"] },
|
|
65
|
+
{ "subtag": "Hant", "descriptions": ["Han (Traditional variant)"] },
|
|
66
|
+
{ "subtag": "Hatr", "descriptions": ["Hatran"] },
|
|
67
|
+
{ "subtag": "Hebr", "descriptions": ["Hebrew"] },
|
|
68
|
+
{ "subtag": "Hira", "descriptions": ["Hiragana"] },
|
|
69
|
+
{ "subtag": "Hluw", "descriptions": ["Anatolian Hieroglyphs", "Luwian Hieroglyphs", "Hittite Hieroglyphs"] },
|
|
70
|
+
{ "subtag": "Hmng", "descriptions": ["Pahawh Hmong"] },
|
|
71
|
+
{ "subtag": "Hmnp", "descriptions": ["Nyiakeng Puachue Hmong"] },
|
|
72
|
+
{ "subtag": "Hntl", "descriptions": ["Han (Traditional variant) with Latin (alias for Hant + Latn)"] },
|
|
73
|
+
{ "subtag": "Hrkt", "descriptions": ["Japanese syllabaries (alias for Hiragana + Katakana)"] },
|
|
74
|
+
{ "subtag": "Hung", "descriptions": ["Old Hungarian", "Hungarian Runic"] },
|
|
75
|
+
{ "subtag": "Inds", "descriptions": ["Indus", "Harappan"] },
|
|
76
|
+
{ "subtag": "Ital", "descriptions": ["Old Italic (Etruscan, Oscan, etc.)"] },
|
|
77
|
+
{ "subtag": "Jamo", "descriptions": ["Jamo (alias for Jamo subset of Hangul)"] },
|
|
78
|
+
{ "subtag": "Java", "descriptions": ["Javanese"] },
|
|
79
|
+
{ "subtag": "Jpan", "descriptions": ["Japanese (alias for Han + Hiragana + Katakana)"] },
|
|
80
|
+
{ "subtag": "Jurc", "descriptions": ["Jurchen"] },
|
|
81
|
+
{ "subtag": "Kali", "descriptions": ["Kayah Li"] },
|
|
82
|
+
{ "subtag": "Kana", "descriptions": ["Katakana"] },
|
|
83
|
+
{ "subtag": "Kawi", "descriptions": ["Kawi"] },
|
|
84
|
+
{ "subtag": "Khar", "descriptions": ["Kharoshthi"] },
|
|
85
|
+
{ "subtag": "Khmr", "descriptions": ["Khmer"] },
|
|
86
|
+
{ "subtag": "Khoj", "descriptions": ["Khojki"] },
|
|
87
|
+
{ "subtag": "Kitl", "descriptions": ["Khitan large script"] },
|
|
88
|
+
{ "subtag": "Kits", "descriptions": ["Khitan small script"] },
|
|
89
|
+
{ "subtag": "Knda", "descriptions": ["Kannada"] },
|
|
90
|
+
{ "subtag": "Kore", "descriptions": ["Korean (alias for Hangul + Han)"] },
|
|
91
|
+
{ "subtag": "Kpel", "descriptions": ["Kpelle"] },
|
|
92
|
+
{ "subtag": "Krai", "descriptions": ["Kirat Rai"] },
|
|
93
|
+
{ "subtag": "Kthi", "descriptions": ["Kaithi"] },
|
|
94
|
+
{ "subtag": "Lana", "descriptions": ["Tai Tham", "Lanna"] },
|
|
95
|
+
{ "subtag": "Laoo", "descriptions": ["Lao"] },
|
|
96
|
+
{ "subtag": "Latf", "descriptions": ["Latin (Fraktur variant)"] },
|
|
97
|
+
{ "subtag": "Latg", "descriptions": ["Latin (Gaelic variant)"] },
|
|
98
|
+
{ "subtag": "Latn", "descriptions": ["Latin"] },
|
|
99
|
+
{ "subtag": "Leke", "descriptions": ["Leke"] },
|
|
100
|
+
{ "subtag": "Lepc", "descriptions": ["Lepcha", "Róng"] },
|
|
101
|
+
{ "subtag": "Limb", "descriptions": ["Limbu"] },
|
|
102
|
+
{ "subtag": "Lina", "descriptions": ["Linear A"] },
|
|
103
|
+
{ "subtag": "Linb", "descriptions": ["Linear B"] },
|
|
104
|
+
{ "subtag": "Lisu", "descriptions": ["Lisu", "Fraser"] },
|
|
105
|
+
{ "subtag": "Loma", "descriptions": ["Loma"] },
|
|
106
|
+
{ "subtag": "Lyci", "descriptions": ["Lycian"] },
|
|
107
|
+
{ "subtag": "Lydi", "descriptions": ["Lydian"] },
|
|
108
|
+
{ "subtag": "Mahj", "descriptions": ["Mahajani"] },
|
|
109
|
+
{ "subtag": "Maka", "descriptions": ["Makasar"] },
|
|
110
|
+
{ "subtag": "Mand", "descriptions": ["Mandaic", "Mandaean"] },
|
|
111
|
+
{ "subtag": "Mani", "descriptions": ["Manichaean"] },
|
|
112
|
+
{ "subtag": "Marc", "descriptions": ["Marchen"] },
|
|
113
|
+
{ "subtag": "Maya", "descriptions": ["Mayan hieroglyphs"] },
|
|
114
|
+
{ "subtag": "Medf", "descriptions": ["Medefaidrin", "Oberi Okaime", "Oberi Ɔkaimɛ"] },
|
|
115
|
+
{ "subtag": "Mend", "descriptions": ["Mende Kikakui"] },
|
|
116
|
+
{ "subtag": "Merc", "descriptions": ["Meroitic Cursive"] },
|
|
117
|
+
{ "subtag": "Mero", "descriptions": ["Meroitic Hieroglyphs"] },
|
|
118
|
+
{ "subtag": "Mlym", "descriptions": ["Malayalam"] },
|
|
119
|
+
{ "subtag": "Modi", "descriptions": ["Modi", "Moḍī"] },
|
|
120
|
+
{ "subtag": "Mong", "descriptions": ["Mongolian"] },
|
|
121
|
+
{ "subtag": "Moon", "descriptions": ["Moon", "Moon code", "Moon script", "Moon type"] },
|
|
122
|
+
{ "subtag": "Mroo", "descriptions": ["Mro", "Mru"] },
|
|
123
|
+
{ "subtag": "Mtei", "descriptions": ["Meitei Mayek", "Meithei", "Meetei"] },
|
|
124
|
+
{ "subtag": "Mult", "descriptions": ["Multani"] },
|
|
125
|
+
{ "subtag": "Mymr", "descriptions": ["Myanmar", "Burmese"] },
|
|
126
|
+
{ "subtag": "Nagm", "descriptions": ["Nag Mundari"] },
|
|
127
|
+
{ "subtag": "Nand", "descriptions": ["Nandinagari"] },
|
|
128
|
+
{ "subtag": "Narb", "descriptions": ["Old North Arabian", "Ancient North Arabian"] },
|
|
129
|
+
{ "subtag": "Nbat", "descriptions": ["Nabataean"] },
|
|
130
|
+
{ "subtag": "Newa", "descriptions": ["Newa", "Newar", "Newari", "Nepāla lipi"] },
|
|
131
|
+
{ "subtag": "Nkdb", "descriptions": ["Naxi Dongba", "na²¹ɕi³³ to³³ba²¹", "Nakhi Tomba"] },
|
|
132
|
+
{ "subtag": "Nkgb", "descriptions": ["Naxi Geba", "na²¹ɕi³³ gʌ²¹ba²¹", "'Na-'Khi ²Ggŏ-¹baw", "Nakhi Geba"] },
|
|
133
|
+
{ "subtag": "Nkoo", "descriptions": ["N’Ko", "N'Ko"] },
|
|
134
|
+
{ "subtag": "Nshu", "descriptions": ["Nüshu"] },
|
|
135
|
+
{ "subtag": "Ogam", "descriptions": ["Ogham"] },
|
|
136
|
+
{ "subtag": "Olck", "descriptions": ["Ol Chiki", "Ol Cemet'", "Ol", "Santali"] },
|
|
137
|
+
{ "subtag": "Onao", "descriptions": ["Ol Onal"] },
|
|
138
|
+
{ "subtag": "Orkh", "descriptions": ["Old Turkic", "Orkhon Runic"] },
|
|
139
|
+
{ "subtag": "Orya", "descriptions": ["Oriya", "Odia"] },
|
|
140
|
+
{ "subtag": "Osge", "descriptions": ["Osage"] },
|
|
141
|
+
{ "subtag": "Osma", "descriptions": ["Osmanya"] },
|
|
142
|
+
{ "subtag": "Ougr", "descriptions": ["Old Uyghur"] },
|
|
143
|
+
{ "subtag": "Palm", "descriptions": ["Palmyrene"] },
|
|
144
|
+
{ "subtag": "Pauc", "descriptions": ["Pau Cin Hau"] },
|
|
145
|
+
{ "subtag": "Pcun", "descriptions": ["Proto-Cuneiform"] },
|
|
146
|
+
{ "subtag": "Pelm", "descriptions": ["Proto-Elamite"] },
|
|
147
|
+
{ "subtag": "Perm", "descriptions": ["Old Permic"] },
|
|
148
|
+
{ "subtag": "Phag", "descriptions": ["Phags-pa"] },
|
|
149
|
+
{ "subtag": "Phli", "descriptions": ["Inscriptional Pahlavi"] },
|
|
150
|
+
{ "subtag": "Phlp", "descriptions": ["Psalter Pahlavi"] },
|
|
151
|
+
{ "subtag": "Phlv", "descriptions": ["Book Pahlavi"] },
|
|
152
|
+
{ "subtag": "Phnx", "descriptions": ["Phoenician"] },
|
|
153
|
+
{ "subtag": "Piqd", "descriptions": ["Klingon (KLI pIqaD)"] },
|
|
154
|
+
{ "subtag": "Plrd", "descriptions": ["Miao", "Pollard"] },
|
|
155
|
+
{ "subtag": "Prti", "descriptions": ["Inscriptional Parthian"] },
|
|
156
|
+
{ "subtag": "Psin", "descriptions": ["Proto-Sinaitic"] },
|
|
157
|
+
{ "subtag": "Qaaa..Qabx", "descriptions": ["Private use"] },
|
|
158
|
+
{ "subtag": "Ranj", "descriptions": ["Ranjana"] },
|
|
159
|
+
{ "subtag": "Rjng", "descriptions": ["Rejang", "Redjang", "Kaganga"] },
|
|
160
|
+
{ "subtag": "Rohg", "descriptions": ["Hanifi Rohingya"] },
|
|
161
|
+
{ "subtag": "Roro", "descriptions": ["Rongorongo"] },
|
|
162
|
+
{ "subtag": "Runr", "descriptions": ["Runic"] },
|
|
163
|
+
{ "subtag": "Samr", "descriptions": ["Samaritan"] },
|
|
164
|
+
{ "subtag": "Sara", "descriptions": ["Sarati"] },
|
|
165
|
+
{ "subtag": "Sarb", "descriptions": ["Old South Arabian"] },
|
|
166
|
+
{ "subtag": "Saur", "descriptions": ["Saurashtra"] },
|
|
167
|
+
{ "subtag": "Seal", "descriptions": ["Seal", "Small Seal"] },
|
|
168
|
+
{ "subtag": "Sgnw", "descriptions": ["SignWriting"] },
|
|
169
|
+
{ "subtag": "Shaw", "descriptions": ["Shavian", "Shaw"] },
|
|
170
|
+
{ "subtag": "Shrd", "descriptions": ["Sharada", "Śāradā"] },
|
|
171
|
+
{ "subtag": "Shui", "descriptions": ["Shuishu"] },
|
|
172
|
+
{ "subtag": "Sidd", "descriptions": ["Siddham", "Siddhaṃ", "Siddhamātṛkā"] },
|
|
173
|
+
{ "subtag": "Sidt", "descriptions": ["Sidetic"] },
|
|
174
|
+
{ "subtag": "Sind", "descriptions": ["Khudawadi", "Sindhi"] },
|
|
175
|
+
{ "subtag": "Sinh", "descriptions": ["Sinhala"] },
|
|
176
|
+
{ "subtag": "Sogd", "descriptions": ["Sogdian"] },
|
|
177
|
+
{ "subtag": "Sogo", "descriptions": ["Old Sogdian"] },
|
|
178
|
+
{ "subtag": "Sora", "descriptions": ["Sora Sompeng"] },
|
|
179
|
+
{ "subtag": "Soyo", "descriptions": ["Soyombo"] },
|
|
180
|
+
{ "subtag": "Sund", "descriptions": ["Sundanese"] },
|
|
181
|
+
{ "subtag": "Sunu", "descriptions": ["Sunuwar"] },
|
|
182
|
+
{ "subtag": "Sylo", "descriptions": ["Syloti Nagri"] },
|
|
183
|
+
{ "subtag": "Syrc", "descriptions": ["Syriac"] },
|
|
184
|
+
{ "subtag": "Syre", "descriptions": ["Syriac (Estrangelo variant)"] },
|
|
185
|
+
{ "subtag": "Syrj", "descriptions": ["Syriac (Western variant)"] },
|
|
186
|
+
{ "subtag": "Syrn", "descriptions": ["Syriac (Eastern variant)"] },
|
|
187
|
+
{ "subtag": "Tagb", "descriptions": ["Tagbanwa"] },
|
|
188
|
+
{ "subtag": "Takr", "descriptions": ["Takri", "Ṭākrī", "Ṭāṅkrī"] },
|
|
189
|
+
{ "subtag": "Tale", "descriptions": ["Tai Le"] },
|
|
190
|
+
{ "subtag": "Talu", "descriptions": ["New Tai Lue"] },
|
|
191
|
+
{ "subtag": "Taml", "descriptions": ["Tamil"] },
|
|
192
|
+
{ "subtag": "Tang", "descriptions": ["Tangut"] },
|
|
193
|
+
{ "subtag": "Tavt", "descriptions": ["Tai Viet"] },
|
|
194
|
+
{ "subtag": "Tayo", "descriptions": ["Tai Yo"] },
|
|
195
|
+
{ "subtag": "Telu", "descriptions": ["Telugu"] },
|
|
196
|
+
{ "subtag": "Teng", "descriptions": ["Tengwar"] },
|
|
197
|
+
{ "subtag": "Tfng", "descriptions": ["Tifinagh", "Berber"] },
|
|
198
|
+
{ "subtag": "Tglg", "descriptions": ["Tagalog", "Baybayin", "Alibata"] },
|
|
199
|
+
{ "subtag": "Thaa", "descriptions": ["Thaana"] },
|
|
200
|
+
{ "subtag": "Thai", "descriptions": ["Thai"] },
|
|
201
|
+
{ "subtag": "Tibt", "descriptions": ["Tibetan"] },
|
|
202
|
+
{ "subtag": "Tirh", "descriptions": ["Tirhuta"] },
|
|
203
|
+
{ "subtag": "Tnsa", "descriptions": ["Tangsa"] },
|
|
204
|
+
{ "subtag": "Todr", "descriptions": ["Todhri"] },
|
|
205
|
+
{ "subtag": "Tols", "descriptions": ["Tolong Siki"] },
|
|
206
|
+
{ "subtag": "Toto", "descriptions": ["Toto"] },
|
|
207
|
+
{ "subtag": "Tutg", "descriptions": ["Tulu-Tigalari"] },
|
|
208
|
+
{ "subtag": "Ugar", "descriptions": ["Ugaritic"] },
|
|
209
|
+
{ "subtag": "Vaii", "descriptions": ["Vai"] },
|
|
210
|
+
{ "subtag": "Visp", "descriptions": ["Visible Speech"] },
|
|
211
|
+
{ "subtag": "Vith", "descriptions": ["Vithkuqi"] },
|
|
212
|
+
{ "subtag": "Wara", "descriptions": ["Warang Citi", "Varang Kshiti"] },
|
|
213
|
+
{ "subtag": "Wcho", "descriptions": ["Wancho"] },
|
|
214
|
+
{ "subtag": "Wole", "descriptions": ["Woleai"] },
|
|
215
|
+
{ "subtag": "Xpeo", "descriptions": ["Old Persian"] },
|
|
216
|
+
{ "subtag": "Xsux", "descriptions": ["Sumero-Akkadian cuneiform"] },
|
|
217
|
+
{ "subtag": "Yezi", "descriptions": ["Yezidi"] },
|
|
218
|
+
{ "subtag": "Yiii", "descriptions": ["Yi"] },
|
|
219
|
+
{ "subtag": "Zanb", "descriptions": ["Zanabazar Square", "Zanabazarin Dörböljin Useg", "Xewtee Dörböljin Bicig", "Horizontal Square Script"] },
|
|
220
|
+
{ "subtag": "Zinh", "descriptions": ["Code for inherited script"] },
|
|
221
|
+
{ "subtag": "Zmth", "descriptions": ["Mathematical notation"] },
|
|
222
|
+
{ "subtag": "Zsye", "descriptions": ["Symbols (Emoji variant)"] },
|
|
223
|
+
{ "subtag": "Zsym", "descriptions": ["Symbols"] },
|
|
224
|
+
{ "subtag": "Zxxx", "descriptions": ["Code for unwritten documents"] },
|
|
225
|
+
{ "subtag": "Zyyy", "descriptions": ["Code for undetermined script"] },
|
|
226
|
+
{ "subtag": "Zzzz", "descriptions": ["Code for uncoded script"] }
|
|
227
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
import fixture from "./script.fixture.json" with { type: "json" };
|
|
4
|
+
const rows = Object.freeze(fixture);
|
|
5
|
+
/**
|
|
6
|
+
* Returns the table's rows.
|
|
7
|
+
*
|
|
8
|
+
* Callers read the rows and never write them.
|
|
9
|
+
*/
|
|
10
|
+
export function scriptSubtagRows() {
|
|
11
|
+
return rows;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The registry edition the table was read from.
|
|
15
|
+
*/
|
|
16
|
+
export const SCRIPT_SUBTAGS_FILE_DATE = "2026-09-17";
|
|
17
|
+
//# sourceMappingURL=script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.js","sourceRoot":"","sources":["../../../lib/artifacts/bcp47/script.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAclE,OAAO,OAAO,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAEjE,MAAM,IAAI,GAAyB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AAEzD;;;;GAIG;AACH,MAAM,UAAU,gBAAgB;IAC/B,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `bcp47-variant-subtags` table of the `open-2026-11` profile, 139 rows,
|
|
3
|
+
* read from the IANA Language Subtag Registry of File-Date 2026-09-17.
|
|
4
|
+
*
|
|
5
|
+
* The rows live in `./variant.fixture.json`,
|
|
6
|
+
* SHA-256 c700051c492f068b317280a7f1a396728500fe250d1e74b0706051112b8c0761.
|
|
7
|
+
* Generated by tools/generate.run.ts from data/normalized.
|
|
8
|
+
* Edit the data or the generator rather than this file.
|
|
9
|
+
*/
|
|
10
|
+
import type { SubtagRow } from "#types";
|
|
11
|
+
/**
|
|
12
|
+
* Returns the table's rows.
|
|
13
|
+
*
|
|
14
|
+
* Callers read the rows and never write them.
|
|
15
|
+
*/
|
|
16
|
+
export declare function variantSubtagRows(): readonly SubtagRow[];
|
|
17
|
+
/**
|
|
18
|
+
* The registry edition the table was read from.
|
|
19
|
+
*/
|
|
20
|
+
export declare const VARIANT_SUBTAGS_FILE_DATE = "2026-09-17";
|
|
21
|
+
//# sourceMappingURL=variant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.d.ts","sourceRoot":"","sources":["../../../lib/artifacts/bcp47/variant.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAMvC;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,SAAS,EAAE,CAExD;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,eAAe,CAAA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
[
|
|
2
|
+
{ "subtag": "1606nict", "descriptions": ["Late Middle French (to 1606)"], "prefixes": ["frm"] },
|
|
3
|
+
{ "subtag": "1694acad", "descriptions": ["Early Modern French"], "prefixes": ["fr"] },
|
|
4
|
+
{ "subtag": "1901", "descriptions": ["Traditional German orthography"], "prefixes": ["de"] },
|
|
5
|
+
{ "subtag": "1959acad", "descriptions": ["\"Academic\" (\"governmental\") variant of Belarusian as codified in 1959"], "prefixes": ["be"] },
|
|
6
|
+
{ "subtag": "1994", "descriptions": ["Standardized Resian orthography"], "prefixes": ["sl-rozaj", "sl-rozaj-biske", "sl-rozaj-njiva", "sl-rozaj-osojs", "sl-rozaj-solba"] },
|
|
7
|
+
{ "subtag": "1996", "descriptions": ["German orthography of 1996"], "prefixes": ["de"] },
|
|
8
|
+
{ "subtag": "abl1943", "descriptions": ["Orthographic formulation of 1943 - Official in Brazil (Formulário Ortográfico de 1943 - Oficial no Brasil)"], "prefixes": ["pt-BR"] },
|
|
9
|
+
{ "subtag": "akhmimic", "descriptions": ["Akhmimic dialect of Coptic"], "prefixes": ["cop"] },
|
|
10
|
+
{ "subtag": "akuapem", "descriptions": ["Akuapem Twi"], "prefixes": ["tw"] },
|
|
11
|
+
{ "subtag": "alalc97", "descriptions": ["ALA-LC Romanization, 1997 edition"] },
|
|
12
|
+
{ "subtag": "aluku", "descriptions": ["Aluku dialect", "Boni dialect"], "prefixes": ["djk"] },
|
|
13
|
+
{ "subtag": "anpezo", "descriptions": ["Anpezo standard of Ladin"], "prefixes": ["lld"] },
|
|
14
|
+
{ "subtag": "ao1990", "descriptions": ["Portuguese Language Orthographic Agreement of 1990 (Acordo Ortográfico da Língua Portuguesa de 1990)"], "prefixes": ["pt", "gl"] },
|
|
15
|
+
{ "subtag": "aranes", "descriptions": ["Aranese"], "prefixes": ["oc"] },
|
|
16
|
+
{ "subtag": "arevela", "descriptions": ["Eastern Armenian"], "deprecated": "2018-03-24", "prefixes": ["hy"] },
|
|
17
|
+
{ "subtag": "arevmda", "descriptions": ["Western Armenian"], "deprecated": "2018-03-24", "prefixes": ["hy"] },
|
|
18
|
+
{ "subtag": "arkaika", "descriptions": ["Arcaicam Esperantom", "Arkaika Esperanto"], "prefixes": ["eo"] },
|
|
19
|
+
{ "subtag": "asante", "descriptions": ["Asante Twi", "Ashanti Twi"], "prefixes": ["tw"] },
|
|
20
|
+
{ "subtag": "auvern", "descriptions": ["Auvergnat"], "prefixes": ["oc"] },
|
|
21
|
+
{ "subtag": "baku1926", "descriptions": ["Unified Turkic Latin Alphabet (Historical)"], "prefixes": ["az", "ba", "crh", "kk", "krc", "ky", "sah", "tk", "tt", "uz"] },
|
|
22
|
+
{ "subtag": "balanka", "descriptions": ["The Balanka dialect of Anii"], "prefixes": ["blo"] },
|
|
23
|
+
{ "subtag": "barla", "descriptions": ["The Barlavento dialect group of Kabuverdianu"], "prefixes": ["kea"] },
|
|
24
|
+
{ "subtag": "basiceng", "descriptions": ["Basic English"], "prefixes": ["en"] },
|
|
25
|
+
{ "subtag": "bauddha", "descriptions": ["Buddhist Hybrid Sanskrit"], "prefixes": ["sa"] },
|
|
26
|
+
{ "subtag": "bciav", "descriptions": ["BCI Blissymbolics AV"], "prefixes": ["zbl"] },
|
|
27
|
+
{ "subtag": "bcizbl", "descriptions": ["BCI Blissymbolics"], "prefixes": ["zbl"] },
|
|
28
|
+
{ "subtag": "biscayan", "descriptions": ["Biscayan dialect of Basque"], "prefixes": ["eu"] },
|
|
29
|
+
{ "subtag": "biske", "descriptions": ["The San Giorgio dialect of Resian", "The Bila dialect of Resian"], "prefixes": ["sl-rozaj"] },
|
|
30
|
+
{ "subtag": "blasl", "descriptions": ["Black American Sign Language dialect"], "prefixes": ["ase", "sgn-ase"] },
|
|
31
|
+
{ "subtag": "bohairic", "descriptions": ["Bohairic dialect of Coptic"], "prefixes": ["cop"] },
|
|
32
|
+
{ "subtag": "bohoric", "descriptions": ["Slovene in Bohorič alphabet"], "prefixes": ["sl"] },
|
|
33
|
+
{ "subtag": "boont", "descriptions": ["Boontling"], "prefixes": ["en"] },
|
|
34
|
+
{ "subtag": "bornholm", "descriptions": ["Bornholmsk"], "prefixes": ["da"] },
|
|
35
|
+
{ "subtag": "cisaup", "descriptions": ["Cisalpine"], "prefixes": ["oc"] },
|
|
36
|
+
{ "subtag": "colb1945", "descriptions": ["Portuguese-Brazilian Orthographic Convention of 1945 (Convenção Ortográfica Luso-Brasileira de 1945)"], "prefixes": ["pt"] },
|
|
37
|
+
{ "subtag": "cornu", "descriptions": ["Cornu-English", "Cornish English", "Anglo-Cornish"], "prefixes": ["en"] },
|
|
38
|
+
{ "subtag": "creiss", "descriptions": ["Occitan variants of the Croissant area"], "prefixes": ["oc"] },
|
|
39
|
+
{ "subtag": "dajnko", "descriptions": ["Slovene in Dajnko alphabet"], "prefixes": ["sl"] },
|
|
40
|
+
{ "subtag": "ekavsk", "descriptions": ["Serbian with Ekavian pronunciation"], "prefixes": ["sr", "sr-Latn", "sr-Cyrl"] },
|
|
41
|
+
{ "subtag": "emodeng", "descriptions": ["Early Modern English (1500-1700)"], "prefixes": ["en"] },
|
|
42
|
+
{ "subtag": "fascia", "descriptions": ["Fascia standard of Ladin"], "prefixes": ["lld"] },
|
|
43
|
+
{ "subtag": "fayyumic", "descriptions": ["Fayyumic dialect of Coptic"], "prefixes": ["cop"] },
|
|
44
|
+
{ "subtag": "fodom", "descriptions": ["Fodom standard of Ladin"], "prefixes": ["lld"] },
|
|
45
|
+
{ "subtag": "fonipa", "descriptions": ["International Phonetic Alphabet"] },
|
|
46
|
+
{ "subtag": "fonkirsh", "descriptions": ["Kirshenbaum Phonetic Alphabet"] },
|
|
47
|
+
{ "subtag": "fonnapa", "descriptions": ["North American Phonetic Alphabet", "Americanist Phonetic Notation"] },
|
|
48
|
+
{ "subtag": "fonupa", "descriptions": ["Uralic Phonetic Alphabet"] },
|
|
49
|
+
{ "subtag": "fonxsamp", "descriptions": ["X-SAMPA transcription"] },
|
|
50
|
+
{ "subtag": "gallo", "descriptions": ["Gallo"], "prefixes": ["fr"] },
|
|
51
|
+
{ "subtag": "gascon", "descriptions": ["Gascon"], "prefixes": ["oc"] },
|
|
52
|
+
{ "subtag": "gherd", "descriptions": ["Gherdëina standard of Ladin"], "prefixes": ["lld"] },
|
|
53
|
+
{ "subtag": "grclass", "descriptions": ["Classical Occitan orthography"], "prefixes": ["oc", "oc-aranes", "oc-auvern", "oc-cisaup", "oc-creiss", "oc-gascon", "oc-lemosin", "oc-lengadoc", "oc-nicard", "oc-provenc", "oc-vivaraup"] },
|
|
54
|
+
{ "subtag": "grital", "descriptions": ["Italian-inspired Occitan orthography"], "prefixes": ["oc", "oc-cisaup", "oc-nicard", "oc-provenc"] },
|
|
55
|
+
{ "subtag": "grmistr", "descriptions": ["Mistralian or Mistralian-inspired Occitan orthography"], "prefixes": ["oc", "oc-aranes", "oc-auvern", "oc-cisaup", "oc-creiss", "oc-gascon", "oc-lemosin", "oc-lengadoc", "oc-nicard", "oc-provenc", "oc-vivaraup"] },
|
|
56
|
+
{ "subtag": "hanoi", "descriptions": ["The Hà Nội variant of Vietnamese"], "prefixes": ["vi"] },
|
|
57
|
+
{ "subtag": "hepburn", "descriptions": ["Hepburn romanization"], "prefixes": ["ja-Latn"] },
|
|
58
|
+
{ "subtag": "heploc", "descriptions": ["Hepburn romanization, Library of Congress method"], "deprecated": "2010-02-07", "preferredValue": "alalc97", "prefixes": ["ja-Latn-hepburn"] },
|
|
59
|
+
{ "subtag": "hognorsk", "descriptions": ["Norwegian in Høgnorsk (High Norwegian) orthography"], "prefixes": ["nn"] },
|
|
60
|
+
{ "subtag": "hsistemo", "descriptions": ["Standard H-system orthographic fallback for spelling Esperanto"], "prefixes": ["eo"] },
|
|
61
|
+
{ "subtag": "huett", "descriptions": ["The Huế (province Thừa Thiên) variant of Vietnamese"], "prefixes": ["vi"] },
|
|
62
|
+
{ "subtag": "ijekavsk", "descriptions": ["Serbian with Ijekavian pronunciation"], "prefixes": ["sr", "sr-Latn", "sr-Cyrl"] },
|
|
63
|
+
{ "subtag": "itihasa", "descriptions": ["Epic Sanskrit"], "prefixes": ["sa"] },
|
|
64
|
+
{ "subtag": "ivanchov", "descriptions": ["Bulgarian in 1899 orthography"], "prefixes": ["bg"] },
|
|
65
|
+
{ "subtag": "jauer", "descriptions": ["Jauer dialect of Romansh"], "prefixes": ["rm"] },
|
|
66
|
+
{ "subtag": "jyutping", "descriptions": ["Jyutping Cantonese Romanization"], "prefixes": ["yue"] },
|
|
67
|
+
{ "subtag": "kkcor", "descriptions": ["Common Cornish orthography of Revived Cornish"], "prefixes": ["kw"] },
|
|
68
|
+
{ "subtag": "kleinsch", "descriptions": ["Kleinschmidt orthography", "Allattaasitaamut"], "prefixes": ["kl", "kl-tunumiit"] },
|
|
69
|
+
{ "subtag": "kociewie", "descriptions": ["The Kociewie dialect of Polish"], "prefixes": ["pl"] },
|
|
70
|
+
{ "subtag": "kscor", "descriptions": ["Standard Cornish orthography of Revived Cornish", "Kernowek Standard"], "prefixes": ["kw"] },
|
|
71
|
+
{ "subtag": "laukika", "descriptions": ["Classical Sanskrit"], "deprecated": "2024-06-08", "prefixes": ["sa"] },
|
|
72
|
+
{ "subtag": "leidentr", "descriptions": ["Ancient Egyptian in Leiden Unified Transliteration"], "prefixes": ["egy"] },
|
|
73
|
+
{ "subtag": "lemosin", "descriptions": ["Limousin"], "prefixes": ["oc"] },
|
|
74
|
+
{ "subtag": "lengadoc", "descriptions": ["Languedocien"], "prefixes": ["oc"] },
|
|
75
|
+
{ "subtag": "lipaw", "descriptions": ["The Lipovaz dialect of Resian", "The Lipovec dialect of Resian"], "prefixes": ["sl-rozaj"] },
|
|
76
|
+
{ "subtag": "ltg1929", "descriptions": ["The Latgalian language orthography codified in 1929"], "prefixes": ["ltg"] },
|
|
77
|
+
{ "subtag": "ltg2007", "descriptions": ["The Latgalian language orthography codified in the language law in 2007"], "prefixes": ["ltg"] },
|
|
78
|
+
{ "subtag": "luna1918", "descriptions": ["Post-1917 Russian orthography"], "prefixes": ["ru"] },
|
|
79
|
+
{ "subtag": "lycopol", "descriptions": ["Lycopolitan alias Subakhmimic dialect of Coptic"], "prefixes": ["cop"] },
|
|
80
|
+
{ "subtag": "mdcegyp", "descriptions": ["Ancient Egyptian hieroglyphs encoded in Manuel de Codage"], "prefixes": ["egy"] },
|
|
81
|
+
{ "subtag": "mdctrans", "descriptions": ["Ancient Egyptian transliteration encoded in Manuel de Codage"], "prefixes": ["egy"] },
|
|
82
|
+
{ "subtag": "mesokem", "descriptions": ["Mesokemic alias Oxyrhynchite dialect of Coptic"], "prefixes": ["cop"] },
|
|
83
|
+
{ "subtag": "metelko", "descriptions": ["Slovene in Metelko alphabet"], "prefixes": ["sl"] },
|
|
84
|
+
{ "subtag": "moderat", "descriptions": ["The moderate (conservative, i.e. Danish-like) spelling variant of Bokmål"], "prefixes": ["nb"] },
|
|
85
|
+
{ "subtag": "monoton", "descriptions": ["Monotonic Greek"], "prefixes": ["el"] },
|
|
86
|
+
{ "subtag": "ndyuka", "descriptions": ["Ndyuka dialect", "Aukan dialect"], "prefixes": ["djk"] },
|
|
87
|
+
{ "subtag": "nedis", "descriptions": ["Natisone dialect", "Nadiza dialect"], "prefixes": ["sl"] },
|
|
88
|
+
{ "subtag": "newfound", "descriptions": ["Newfoundland English"], "prefixes": ["en-CA"] },
|
|
89
|
+
{ "subtag": "nicard", "descriptions": ["Niçard"], "prefixes": ["oc"] },
|
|
90
|
+
{ "subtag": "njiva", "descriptions": ["The Gniva dialect of Resian", "The Njiva dialect of Resian"], "prefixes": ["sl-rozaj"] },
|
|
91
|
+
{ "subtag": "nulik", "descriptions": ["Volapük nulik", "Volapük perevidöl", "Volapük nulädik", "de Jong's Volapük", "New Volapük", "Revised Volapük", "Modern Volapük"], "prefixes": ["vo"] },
|
|
92
|
+
{ "subtag": "osojs", "descriptions": ["The Oseacco dialect of Resian", "The Osojane dialect of Resian"], "prefixes": ["sl-rozaj"] },
|
|
93
|
+
{ "subtag": "oxendict", "descriptions": ["Oxford English Dictionary spelling"], "prefixes": ["en"] },
|
|
94
|
+
{ "subtag": "pahawh2", "descriptions": ["Pahawh Hmong Second Stage Reduced orthography"], "prefixes": ["mww", "hnj"] },
|
|
95
|
+
{ "subtag": "pahawh3", "descriptions": ["Pahawh Hmong Third Stage Reduced orthography"], "prefixes": ["mww", "hnj"] },
|
|
96
|
+
{ "subtag": "pahawh4", "descriptions": ["Pahawh Hmong Final Version orthography"], "prefixes": ["mww", "hnj"] },
|
|
97
|
+
{ "subtag": "pamaka", "descriptions": ["Pamaka dialect"], "prefixes": ["djk"] },
|
|
98
|
+
{ "subtag": "peano", "descriptions": ["Latino Sine Flexione", "Interlingua de API", "Interlingua de Peano"], "prefixes": ["la"] },
|
|
99
|
+
{ "subtag": "pehoeji", "descriptions": ["Hokkien Vernacular Romanization System", "Pe̍h-ōe-jī orthography/romanization"], "prefixes": ["nan-Latn"] },
|
|
100
|
+
{ "subtag": "petr1708", "descriptions": ["Petrine orthography"], "prefixes": ["ru"] },
|
|
101
|
+
{ "subtag": "pinyin", "descriptions": ["Pinyin romanization"], "prefixes": ["zh-Latn", "bo-Latn"] },
|
|
102
|
+
{ "subtag": "polyton", "descriptions": ["Polytonic Greek"], "prefixes": ["el"] },
|
|
103
|
+
{ "subtag": "provenc", "descriptions": ["Provençal"], "prefixes": ["oc"] },
|
|
104
|
+
{ "subtag": "puter", "descriptions": ["Puter idiom of Romansh"], "prefixes": ["rm"] },
|
|
105
|
+
{ "subtag": "radikalt", "descriptions": ["Radical (i.e. Nynorsk-like) spelling variant of Bokmål"], "prefixes": ["nb"] },
|
|
106
|
+
{ "subtag": "rigik", "descriptions": ["Volapük rigik", "Schleyer's Volapük", "Original Volapük", "Classic Volapük"], "prefixes": ["vo"] },
|
|
107
|
+
{ "subtag": "rozaj", "descriptions": ["Resian", "Resianic", "Rezijan"], "prefixes": ["sl"] },
|
|
108
|
+
{ "subtag": "rumgr", "descriptions": ["Rumantsch Grischun"], "prefixes": ["rm"] },
|
|
109
|
+
{ "subtag": "sahidic", "descriptions": ["Sahidic dialect of Coptic"], "prefixes": ["cop"] },
|
|
110
|
+
{ "subtag": "saigon", "descriptions": ["The Sài Gòn variant of Vietnamese"], "prefixes": ["vi"] },
|
|
111
|
+
{ "subtag": "scotland", "descriptions": ["Scottish Standard English"], "prefixes": ["en"] },
|
|
112
|
+
{ "subtag": "scouse", "descriptions": ["Scouse"], "prefixes": ["en"] },
|
|
113
|
+
{ "subtag": "simple", "descriptions": ["Simplified form"] },
|
|
114
|
+
{ "subtag": "slepe", "descriptions": ["Sorbian dialect of Schleife"], "prefixes": ["dsb"] },
|
|
115
|
+
{ "subtag": "solba", "descriptions": ["The Stolvizza dialect of Resian", "The Solbica dialect of Resian"], "prefixes": ["sl-rozaj"] },
|
|
116
|
+
{ "subtag": "sotav", "descriptions": ["The Sotavento dialect group of Kabuverdianu"], "prefixes": ["kea"] },
|
|
117
|
+
{ "subtag": "spanglis", "descriptions": ["Spanglish"], "prefixes": ["en", "es"] },
|
|
118
|
+
{ "subtag": "stadi", "descriptions": ["The \"Stadin slangi\" dialect of Finnish"], "prefixes": ["fi"] },
|
|
119
|
+
{ "subtag": "surmiran", "descriptions": ["Surmiran idiom of Romansh"], "prefixes": ["rm"] },
|
|
120
|
+
{ "subtag": "sursilv", "descriptions": ["Sursilvan idiom of Romansh"], "prefixes": ["rm"] },
|
|
121
|
+
{ "subtag": "sutsilv", "descriptions": ["Sutsilvan idiom of Romansh"], "prefixes": ["rm"] },
|
|
122
|
+
{ "subtag": "synnejyl", "descriptions": ["Synnejysk", "South Jutish"], "prefixes": ["da"] },
|
|
123
|
+
{ "subtag": "taglish", "descriptions": ["Tagalog-English code-switching"], "prefixes": ["en", "tl", "fil"] },
|
|
124
|
+
{ "subtag": "tailo", "descriptions": ["Taiwanese Hokkien Romanization System for Hokkien languages", "Tâi-lô orthography/romanization"], "prefixes": ["nan-Latn"] },
|
|
125
|
+
{ "subtag": "tarask", "descriptions": ["Belarusian in Taraskievica orthography"], "prefixes": ["be"] },
|
|
126
|
+
{ "subtag": "tongyong", "descriptions": ["Tongyong Pinyin romanization"], "prefixes": ["zh-Latn"] },
|
|
127
|
+
{ "subtag": "tunumiit", "descriptions": ["Tunumiisiut", "East Greenlandic", "Østgrønlandsk"], "prefixes": ["kl"] },
|
|
128
|
+
{ "subtag": "uccor", "descriptions": ["Unified Cornish orthography of Revived Cornish"], "prefixes": ["kw"] },
|
|
129
|
+
{ "subtag": "ucrcor", "descriptions": ["Unified Cornish Revised orthography of Revived Cornish"], "prefixes": ["kw"] },
|
|
130
|
+
{ "subtag": "ulster", "descriptions": ["Ulster dialect of Scots"], "prefixes": ["sco"] },
|
|
131
|
+
{ "subtag": "unifon", "descriptions": ["Unifon phonetic alphabet"], "prefixes": ["en", "hup", "kyh", "tol", "yur"] },
|
|
132
|
+
{ "subtag": "vaidika", "descriptions": ["Vedic Sanskrit"], "deprecated": "2024-06-08", "prefixes": ["sa"] },
|
|
133
|
+
{ "subtag": "valbadia", "descriptions": ["Val Badia standard of Ladin"], "prefixes": ["lld"] },
|
|
134
|
+
{ "subtag": "valencia", "descriptions": ["Valencian"], "prefixes": ["ca"] },
|
|
135
|
+
{ "subtag": "vallader", "descriptions": ["Vallader idiom of Romansh"], "prefixes": ["rm"] },
|
|
136
|
+
{ "subtag": "vecdruka", "descriptions": ["Latvian orthography used before 1920s (\"vecā druka\")"], "prefixes": ["lv"] },
|
|
137
|
+
{ "subtag": "viennese", "descriptions": ["The Viennese dialect of German"], "prefixes": ["de"] },
|
|
138
|
+
{ "subtag": "vivaraup", "descriptions": ["Vivaro-Alpine"], "prefixes": ["oc"] },
|
|
139
|
+
{ "subtag": "wadegile", "descriptions": ["Wade-Giles romanization"], "prefixes": ["zh-Latn"] },
|
|
140
|
+
{ "subtag": "xsistemo", "descriptions": ["Standard X-system orthographic fallback for spelling Esperanto"], "prefixes": ["eo"] }
|
|
141
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
import fixture from "./variant.fixture.json" with { type: "json" };
|
|
4
|
+
const rows = Object.freeze(fixture);
|
|
5
|
+
/**
|
|
6
|
+
* Returns the table's rows.
|
|
7
|
+
*
|
|
8
|
+
* Callers read the rows and never write them.
|
|
9
|
+
*/
|
|
10
|
+
export function variantSubtagRows() {
|
|
11
|
+
return rows;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The registry edition the table was read from.
|
|
15
|
+
*/
|
|
16
|
+
export const VARIANT_SUBTAGS_FILE_DATE = "2026-09-17";
|
|
17
|
+
//# sourceMappingURL=variant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant.js","sourceRoot":"","sources":["../../../lib/artifacts/bcp47/variant.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAclE,OAAO,OAAO,MAAM,wBAAwB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAElE,MAAM,IAAI,GAAyB,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AAEzD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB;IAChC,OAAO,IAAI,CAAA;AACZ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A case-insensitive lookup over one subtag table, including its private-use ranges.
|
|
3
|
+
*
|
|
4
|
+
* The registry states a private-use block as one range record, such as `qaa..qtz` or `QM..QZ`.
|
|
5
|
+
* A subtag inside a range answers that range's record.
|
|
6
|
+
*/
|
|
7
|
+
import type { SubtagRow } from "#types";
|
|
8
|
+
/**
|
|
9
|
+
* A lookup from a subtag in any case to its registry row.
|
|
10
|
+
*/
|
|
11
|
+
export interface SubtagIndex {
|
|
12
|
+
get(subtag: string): SubtagRow | null;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Builds the lookup for one table's rows.
|
|
16
|
+
*/
|
|
17
|
+
export declare function indexSubtagRows(rows: readonly SubtagRow[]): SubtagIndex;
|
|
18
|
+
/**
|
|
19
|
+
* Returns a lookup built on its first call from `rows()`, then shared.
|
|
20
|
+
*/
|
|
21
|
+
export declare function lazySubtagIndex(rows: () => readonly SubtagRow[]): () => SubtagIndex;
|
|
22
|
+
//# sourceMappingURL=subtag-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subtag-index.d.ts","sourceRoot":"","sources":["../../lib/bcp47/subtag-index.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAEvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;CACrC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,SAAS,EAAE,GAAG,WAAW,CA6BvE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,SAAS,SAAS,EAAE,GAAG,MAAM,WAAW,CAQnF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* Builds the lookup for one table's rows.
|
|
5
|
+
*/
|
|
6
|
+
export function indexSubtagRows(rows) {
|
|
7
|
+
const exact = new Map();
|
|
8
|
+
const ranges = [];
|
|
9
|
+
for (const row of rows) {
|
|
10
|
+
const key = row.subtag.toLowerCase();
|
|
11
|
+
const dots = key.indexOf("..");
|
|
12
|
+
if (dots === -1) {
|
|
13
|
+
exact.set(key, row);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
ranges.push({ low: key.slice(0, dots), high: key.slice(dots + 2), row });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
get(subtag) {
|
|
21
|
+
const key = subtag.toLowerCase();
|
|
22
|
+
const found = exact.get(key);
|
|
23
|
+
if (found)
|
|
24
|
+
return found;
|
|
25
|
+
for (const range of ranges) {
|
|
26
|
+
if (key.length === range.low.length && key >= range.low && key <= range.high)
|
|
27
|
+
return range.row;
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns a lookup built on its first call from `rows()`, then shared.
|
|
35
|
+
*/
|
|
36
|
+
export function lazySubtagIndex(rows) {
|
|
37
|
+
let index = null;
|
|
38
|
+
return () => {
|
|
39
|
+
index ??= indexSubtagRows(rows());
|
|
40
|
+
return index;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=subtag-index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subtag-index.js","sourceRoot":"","sources":["../../lib/bcp47/subtag-index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAkBlE;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAA0B;IACzD,MAAM,KAAK,GAAG,IAAI,GAAG,EAAqB,CAAA;IAC1C,MAAM,MAAM,GAAyD,EAAE,CAAA;IAEvE,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAA;QACpC,MAAM,IAAI,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;QAE9B,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC;YACjB,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;QACpB,CAAC;aAAM,CAAC;YACP,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAA;QACzE,CAAC;IACF,CAAC;IAED,OAAO;QACN,GAAG,CAAC,MAAM;YACT,MAAM,GAAG,GAAG,MAAM,CAAC,WAAW,EAAE,CAAA;YAChC,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAE5B,IAAI,KAAK;gBAAE,OAAO,KAAK,CAAA;YAEvB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBAC5B,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,CAAC,GAAG,CAAC,MAAM,IAAI,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,GAAG,IAAI,KAAK,CAAC,IAAI;oBAAE,OAAO,KAAK,CAAC,GAAG,CAAA;YAC/F,CAAC;YAED,OAAO,IAAI,CAAA;QACZ,CAAC;KACD,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAgC;IAC/D,IAAI,KAAK,GAAuB,IAAI,CAAA;IAEpC,OAAO,GAAG,EAAE;QACX,KAAK,KAAK,eAAe,CAAC,IAAI,EAAE,CAAC,CAAA;QAEjC,OAAO,KAAK,CAAA;IACb,CAAC,CAAA;AACF,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type Parsed } from "#errors";
|
|
2
|
+
import type { BCP47 } from "#types";
|
|
3
|
+
/**
|
|
4
|
+
* A parsed tag in canonical form.
|
|
5
|
+
*/
|
|
6
|
+
export interface LanguageTag {
|
|
7
|
+
tag: BCP47.LanguageTag;
|
|
8
|
+
/**
|
|
9
|
+
* The primary language subtag, such as `ja`.
|
|
10
|
+
*
|
|
11
|
+
* An irregular grandfathered tag without a preferred value, such as `i-default`,
|
|
12
|
+
* holds the whole tag here.
|
|
13
|
+
* A private-use tag such as `x-whatever` holds an empty string.
|
|
14
|
+
*/
|
|
15
|
+
language: string;
|
|
16
|
+
script: string | null;
|
|
17
|
+
region: string | null;
|
|
18
|
+
variants: readonly string[];
|
|
19
|
+
/**
|
|
20
|
+
* Each extension with its singleton, such as `u-ca-gregory`, ordered by singleton.
|
|
21
|
+
*/
|
|
22
|
+
extensions: readonly string[];
|
|
23
|
+
/**
|
|
24
|
+
* The private-use sequence with its `x-` prefix, or `null`.
|
|
25
|
+
*/
|
|
26
|
+
privateUse: string | null;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Parses, validates and canonicalizes a BCP 47 tag in any case.
|
|
30
|
+
*
|
|
31
|
+
* A refusal reports `shape` for an ill-formed tag and `not-found-in-snapshot` for a well-formed
|
|
32
|
+
* tag with an unregistered or misplaced subtag, with the offending subtag as `part`.
|
|
33
|
+
*/
|
|
34
|
+
export declare function parseLanguageTag(input: string): Parsed<LanguageTag>;
|
|
35
|
+
/**
|
|
36
|
+
* Whether `input` is a valid tag already in canonical form.
|
|
37
|
+
*/
|
|
38
|
+
export declare function isLanguageTag(input: string): input is BCP47.LanguageTag;
|
|
39
|
+
/**
|
|
40
|
+
* The script a tag's text is written in: its explicit script subtag,
|
|
41
|
+
* else its language's suppressed script, else `null`.
|
|
42
|
+
*
|
|
43
|
+
* `ja-Jpan` and `ja` both give `Jpan`; `zh` gives `null`, because Chinese is written
|
|
44
|
+
* in `Hans` or `Hant` and the registry suppresses neither.
|
|
45
|
+
*/
|
|
46
|
+
export declare function impliedScript(tag: LanguageTag): BCP47.ScriptCode | null;
|
|
47
|
+
//# sourceMappingURL=tag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../lib/bcp47/tag.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,SAAS,CAAA;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAUnC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC3B,GAAG,EAAE,KAAK,CAAC,WAAW,CAAA;IACtB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAC3B;;OAEG;IACH,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;IAC7B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAgCD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,WAAW,CAAC,CAkLnE;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,WAAW,CAIvE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,WAAW,GAAG,KAAK,CAAC,UAAU,GAAG,IAAI,CAMvE"}
|