ochre-sdk 1.3.5 → 1.3.7
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 +17 -0
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +2 -1
- package/dist/languages.d.mts +684 -0
- package/dist/languages.mjs +640 -0
- package/dist/parsers/languages.mjs +2 -2
- package/dist/parsers/multilingual.d.mts +58 -16
- package/dist/parsers/multilingual.mjs +88 -24
- package/dist/parsers/string.d.mts +3 -0
- package/dist/parsers/string.mjs +6 -1
- package/dist/schemas.d.mts +5 -2
- package/dist/schemas.mjs +11 -3
- package/package.json +1 -1
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
//#region src/languages.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* What an OCHRE language code tags
|
|
4
|
+
*
|
|
5
|
+
* - `language`: text in a natural language
|
|
6
|
+
* - `transliteration`: a language written in another script (`ota-xlt`)
|
|
7
|
+
* - `vocabulary`: codes or notation that are not a language (`rel`)
|
|
8
|
+
* - `non-linguistic`: `zxx`, which OCHRE publishes for aliases and for
|
|
9
|
+
* labels that are not in any language
|
|
10
|
+
*/
|
|
11
|
+
export type OchreLanguageKind = "language" | "transliteration" | "vocabulary" | "non-linguistic";
|
|
12
|
+
/**
|
|
13
|
+
* The standard an OCHRE language code is taken from
|
|
14
|
+
*
|
|
15
|
+
* - `iso639-2b`: the bibliographic ISO 639-2 code, which is OCHRE's rule
|
|
16
|
+
* - `iso639-2t`: the terminology ISO 639-2 code, which OCHRE uses for Dutch
|
|
17
|
+
* - `iso639-3`: the ISO 639-3 identifier, for languages ISO 639-2 has no
|
|
18
|
+
* code for
|
|
19
|
+
* - `bcp47`: a BCP 47 tag (`zh-Latn-pinyin`)
|
|
20
|
+
* - `ochre`: a code of OCHRE's own, which may collide with an unrelated
|
|
21
|
+
* ISO 639-3 language (`lmc` is OCHRE's Late Middle Chinese, ISO's Limilngan)
|
|
22
|
+
*/
|
|
23
|
+
export type OchreLanguageStandard = "iso639-2b" | "iso639-2t" | "iso639-3" | "bcp47" | "ochre";
|
|
24
|
+
/**
|
|
25
|
+
* A language code OCHRE publishes, with the standard codes it stands for
|
|
26
|
+
*/
|
|
27
|
+
export type OchreLanguage = {
|
|
28
|
+
/**
|
|
29
|
+
* The English name of the language
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
* What the code tags
|
|
34
|
+
*/
|
|
35
|
+
kind: OchreLanguageKind;
|
|
36
|
+
/**
|
|
37
|
+
* The standard the OCHRE code itself is taken from
|
|
38
|
+
*/
|
|
39
|
+
standard: OchreLanguageStandard;
|
|
40
|
+
/**
|
|
41
|
+
* The ISO 639-3 identifier of the language, or null when the code tags
|
|
42
|
+
* no language, or a language ISO 639-3 does not code
|
|
43
|
+
*/
|
|
44
|
+
iso639_3: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* The BCP 47 tag to hand to `Intl` and HTML `lang` attributes, or null
|
|
47
|
+
* when no standard tag fits
|
|
48
|
+
*/
|
|
49
|
+
bcp47: string | null;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Every language code OCHRE publishes, mapped to the ISO 639-3 and BCP 47
|
|
53
|
+
* codes it stands for
|
|
54
|
+
*
|
|
55
|
+
* OCHRE publishes ISO 639-2 codes in their bibliographic (B) form, the
|
|
56
|
+
* Library of Congress MARC convention (`per`, not ISO 639-3 `fas`), with
|
|
57
|
+
* three exceptions: the ISO 639-3 identifier where ISO 639-2 has no code
|
|
58
|
+
* (`yua`), the terminology (T) form for Dutch (`nld`, not `dut`), and codes
|
|
59
|
+
* of its own for transliterations and vocabularies (`ota-xlt`, `rel`), some
|
|
60
|
+
* of which collide with unrelated ISO 639-3 languages. Key everything by
|
|
61
|
+
* these codes, because they are what OCHRE serves, and convert through this
|
|
62
|
+
* table when a standard code is needed.
|
|
63
|
+
*/
|
|
64
|
+
export declare const OCHRE_LANGUAGES: {
|
|
65
|
+
readonly akk: {
|
|
66
|
+
readonly name: "Akkadian";
|
|
67
|
+
readonly kind: "language";
|
|
68
|
+
readonly standard: "iso639-2b";
|
|
69
|
+
readonly iso639_3: "akk";
|
|
70
|
+
readonly bcp47: "akk";
|
|
71
|
+
};
|
|
72
|
+
readonly xno: {
|
|
73
|
+
readonly name: "Anglo-Norman";
|
|
74
|
+
readonly kind: "language";
|
|
75
|
+
readonly standard: "iso639-3";
|
|
76
|
+
readonly iso639_3: "xno";
|
|
77
|
+
readonly bcp47: "xno";
|
|
78
|
+
};
|
|
79
|
+
readonly ara: {
|
|
80
|
+
readonly name: "Arabic";
|
|
81
|
+
readonly kind: "language";
|
|
82
|
+
readonly standard: "iso639-2b";
|
|
83
|
+
readonly iso639_3: "ara";
|
|
84
|
+
readonly bcp47: "ar";
|
|
85
|
+
};
|
|
86
|
+
readonly arc: {
|
|
87
|
+
readonly name: "Aramaic";
|
|
88
|
+
readonly kind: "language";
|
|
89
|
+
readonly standard: "iso639-2b";
|
|
90
|
+
readonly iso639_3: "arc";
|
|
91
|
+
readonly bcp47: "arc";
|
|
92
|
+
};
|
|
93
|
+
readonly arm: {
|
|
94
|
+
readonly name: "Armenian";
|
|
95
|
+
readonly kind: "language";
|
|
96
|
+
readonly standard: "iso639-2b";
|
|
97
|
+
readonly iso639_3: "hye";
|
|
98
|
+
readonly bcp47: "hy";
|
|
99
|
+
};
|
|
100
|
+
readonly bel: {
|
|
101
|
+
readonly name: "Belarusian";
|
|
102
|
+
readonly kind: "language";
|
|
103
|
+
readonly standard: "iso639-2b";
|
|
104
|
+
readonly iso639_3: "bel";
|
|
105
|
+
readonly bcp47: "be";
|
|
106
|
+
};
|
|
107
|
+
readonly ben: {
|
|
108
|
+
readonly name: "Bengali";
|
|
109
|
+
readonly kind: "language";
|
|
110
|
+
readonly standard: "iso639-2b";
|
|
111
|
+
readonly iso639_3: "ben";
|
|
112
|
+
readonly bcp47: "bn";
|
|
113
|
+
};
|
|
114
|
+
readonly btc: {
|
|
115
|
+
readonly name: "Betacode";
|
|
116
|
+
readonly kind: "vocabulary";
|
|
117
|
+
readonly standard: "ochre";
|
|
118
|
+
readonly iso639_3: null;
|
|
119
|
+
readonly bcp47: "grc-Latn-x-betacode";
|
|
120
|
+
};
|
|
121
|
+
readonly bos: {
|
|
122
|
+
readonly name: "Bosnian";
|
|
123
|
+
readonly kind: "language";
|
|
124
|
+
readonly standard: "iso639-2b";
|
|
125
|
+
readonly iso639_3: "bos";
|
|
126
|
+
readonly bcp47: "bs";
|
|
127
|
+
};
|
|
128
|
+
readonly bul: {
|
|
129
|
+
readonly name: "Bulgarian";
|
|
130
|
+
readonly kind: "language";
|
|
131
|
+
readonly standard: "iso639-2b";
|
|
132
|
+
readonly iso639_3: "bul";
|
|
133
|
+
readonly bcp47: "bg";
|
|
134
|
+
};
|
|
135
|
+
readonly cnn: {
|
|
136
|
+
readonly name: "Canaanite";
|
|
137
|
+
readonly kind: "language";
|
|
138
|
+
readonly standard: "ochre";
|
|
139
|
+
readonly iso639_3: null;
|
|
140
|
+
readonly bcp47: null;
|
|
141
|
+
};
|
|
142
|
+
readonly yue: {
|
|
143
|
+
readonly name: "Cantonese";
|
|
144
|
+
readonly kind: "language";
|
|
145
|
+
readonly standard: "iso639-3";
|
|
146
|
+
readonly iso639_3: "yue";
|
|
147
|
+
readonly bcp47: "yue";
|
|
148
|
+
};
|
|
149
|
+
readonly cat: {
|
|
150
|
+
readonly name: "Catalan";
|
|
151
|
+
readonly kind: "language";
|
|
152
|
+
readonly standard: "iso639-2b";
|
|
153
|
+
readonly iso639_3: "cat";
|
|
154
|
+
readonly bcp47: "ca";
|
|
155
|
+
};
|
|
156
|
+
readonly chi: {
|
|
157
|
+
readonly name: "Chinese";
|
|
158
|
+
readonly kind: "language";
|
|
159
|
+
readonly standard: "iso639-2b";
|
|
160
|
+
readonly iso639_3: "zho";
|
|
161
|
+
readonly bcp47: "zh";
|
|
162
|
+
};
|
|
163
|
+
readonly chu: {
|
|
164
|
+
readonly name: "Church Slavonic";
|
|
165
|
+
readonly kind: "language";
|
|
166
|
+
readonly standard: "iso639-2b";
|
|
167
|
+
readonly iso639_3: "chu";
|
|
168
|
+
readonly bcp47: "cu";
|
|
169
|
+
};
|
|
170
|
+
readonly lzh: {
|
|
171
|
+
readonly name: "Classical Chinese";
|
|
172
|
+
readonly kind: "language";
|
|
173
|
+
readonly standard: "iso639-3";
|
|
174
|
+
readonly iso639_3: "lzh";
|
|
175
|
+
readonly bcp47: "lzh";
|
|
176
|
+
};
|
|
177
|
+
readonly cop: {
|
|
178
|
+
readonly name: "Coptic";
|
|
179
|
+
readonly kind: "language";
|
|
180
|
+
readonly standard: "iso639-2b";
|
|
181
|
+
readonly iso639_3: "cop";
|
|
182
|
+
readonly bcp47: "cop";
|
|
183
|
+
};
|
|
184
|
+
readonly hrv: {
|
|
185
|
+
readonly name: "Croatian";
|
|
186
|
+
readonly kind: "language";
|
|
187
|
+
readonly standard: "iso639-2b";
|
|
188
|
+
readonly iso639_3: "hrv";
|
|
189
|
+
readonly bcp47: "hr";
|
|
190
|
+
};
|
|
191
|
+
readonly cze: {
|
|
192
|
+
readonly name: "Czech";
|
|
193
|
+
readonly kind: "language";
|
|
194
|
+
readonly standard: "iso639-2b";
|
|
195
|
+
readonly iso639_3: "ces";
|
|
196
|
+
readonly bcp47: "cs";
|
|
197
|
+
};
|
|
198
|
+
readonly egyd: {
|
|
199
|
+
readonly name: "Demotic";
|
|
200
|
+
readonly kind: "language";
|
|
201
|
+
readonly standard: "ochre";
|
|
202
|
+
readonly iso639_3: "egy";
|
|
203
|
+
readonly bcp47: "egy-Egyd";
|
|
204
|
+
};
|
|
205
|
+
readonly nld: {
|
|
206
|
+
readonly name: "Dutch";
|
|
207
|
+
readonly kind: "language";
|
|
208
|
+
readonly standard: "iso639-2t";
|
|
209
|
+
readonly iso639_3: "nld";
|
|
210
|
+
readonly bcp47: "nl";
|
|
211
|
+
};
|
|
212
|
+
readonly dum: {
|
|
213
|
+
readonly name: "Dutch (Middle)";
|
|
214
|
+
readonly kind: "language";
|
|
215
|
+
readonly standard: "iso639-2b";
|
|
216
|
+
readonly iso639_3: "dum";
|
|
217
|
+
readonly bcp47: "dum";
|
|
218
|
+
};
|
|
219
|
+
readonly egy: {
|
|
220
|
+
readonly name: "Egyptian";
|
|
221
|
+
readonly kind: "language";
|
|
222
|
+
readonly standard: "iso639-2b";
|
|
223
|
+
readonly iso639_3: "egy";
|
|
224
|
+
readonly bcp47: "egy";
|
|
225
|
+
};
|
|
226
|
+
readonly elx: {
|
|
227
|
+
readonly name: "Elamite";
|
|
228
|
+
readonly kind: "language";
|
|
229
|
+
readonly standard: "iso639-2b";
|
|
230
|
+
readonly iso639_3: "elx";
|
|
231
|
+
readonly bcp47: "elx";
|
|
232
|
+
};
|
|
233
|
+
readonly eng: {
|
|
234
|
+
readonly name: "English";
|
|
235
|
+
readonly kind: "language";
|
|
236
|
+
readonly standard: "iso639-2b";
|
|
237
|
+
readonly iso639_3: "eng";
|
|
238
|
+
readonly bcp47: "en";
|
|
239
|
+
};
|
|
240
|
+
readonly enm: {
|
|
241
|
+
readonly name: "English (Middle)";
|
|
242
|
+
readonly kind: "language";
|
|
243
|
+
readonly standard: "iso639-2b";
|
|
244
|
+
readonly iso639_3: "enm";
|
|
245
|
+
readonly bcp47: "enm";
|
|
246
|
+
};
|
|
247
|
+
readonly ecy: {
|
|
248
|
+
readonly name: "Eteocypriot";
|
|
249
|
+
readonly kind: "language";
|
|
250
|
+
readonly standard: "iso639-3";
|
|
251
|
+
readonly iso639_3: "ecy";
|
|
252
|
+
readonly bcp47: "ecy";
|
|
253
|
+
};
|
|
254
|
+
readonly fre: {
|
|
255
|
+
readonly name: "French";
|
|
256
|
+
readonly kind: "language";
|
|
257
|
+
readonly standard: "iso639-2b";
|
|
258
|
+
readonly iso639_3: "fra";
|
|
259
|
+
readonly bcp47: "fr";
|
|
260
|
+
};
|
|
261
|
+
readonly frm: {
|
|
262
|
+
readonly name: "French (Middle)";
|
|
263
|
+
readonly kind: "language";
|
|
264
|
+
readonly standard: "iso639-2b";
|
|
265
|
+
readonly iso639_3: "frm";
|
|
266
|
+
readonly bcp47: "frm";
|
|
267
|
+
};
|
|
268
|
+
readonly fro: {
|
|
269
|
+
readonly name: "French (Old)";
|
|
270
|
+
readonly kind: "language";
|
|
271
|
+
readonly standard: "iso639-2b";
|
|
272
|
+
readonly iso639_3: "fro";
|
|
273
|
+
readonly bcp47: "fro";
|
|
274
|
+
};
|
|
275
|
+
readonly geo: {
|
|
276
|
+
readonly name: "Georgian";
|
|
277
|
+
readonly kind: "language";
|
|
278
|
+
readonly standard: "iso639-2b";
|
|
279
|
+
readonly iso639_3: "kat";
|
|
280
|
+
readonly bcp47: "ka";
|
|
281
|
+
};
|
|
282
|
+
readonly ger: {
|
|
283
|
+
readonly name: "German";
|
|
284
|
+
readonly kind: "language";
|
|
285
|
+
readonly standard: "iso639-2b";
|
|
286
|
+
readonly iso639_3: "deu";
|
|
287
|
+
readonly bcp47: "de";
|
|
288
|
+
};
|
|
289
|
+
readonly nds: {
|
|
290
|
+
readonly name: "German (Low)";
|
|
291
|
+
readonly kind: "language";
|
|
292
|
+
readonly standard: "iso639-2b";
|
|
293
|
+
readonly iso639_3: "nds";
|
|
294
|
+
readonly bcp47: "nds";
|
|
295
|
+
};
|
|
296
|
+
readonly gmh: {
|
|
297
|
+
readonly name: "German (Middle High)";
|
|
298
|
+
readonly kind: "language";
|
|
299
|
+
readonly standard: "iso639-2b";
|
|
300
|
+
readonly iso639_3: "gmh";
|
|
301
|
+
readonly bcp47: "gmh";
|
|
302
|
+
};
|
|
303
|
+
readonly goh: {
|
|
304
|
+
readonly name: "German (Old High)";
|
|
305
|
+
readonly kind: "language";
|
|
306
|
+
readonly standard: "iso639-2b";
|
|
307
|
+
readonly iso639_3: "goh";
|
|
308
|
+
readonly bcp47: "goh";
|
|
309
|
+
};
|
|
310
|
+
readonly grc: {
|
|
311
|
+
readonly name: "Greek";
|
|
312
|
+
readonly kind: "language";
|
|
313
|
+
readonly standard: "iso639-2b";
|
|
314
|
+
readonly iso639_3: "grc";
|
|
315
|
+
readonly bcp47: "grc";
|
|
316
|
+
};
|
|
317
|
+
readonly guj: {
|
|
318
|
+
readonly name: "Gujarati";
|
|
319
|
+
readonly kind: "language";
|
|
320
|
+
readonly standard: "iso639-2b";
|
|
321
|
+
readonly iso639_3: "guj";
|
|
322
|
+
readonly bcp47: "gu";
|
|
323
|
+
};
|
|
324
|
+
readonly "zh-Latn-pinyin": {
|
|
325
|
+
readonly name: "Hanyu Pinyin";
|
|
326
|
+
readonly kind: "transliteration";
|
|
327
|
+
readonly standard: "bcp47";
|
|
328
|
+
readonly iso639_3: "cmn";
|
|
329
|
+
readonly bcp47: "zh-Latn-pinyin";
|
|
330
|
+
};
|
|
331
|
+
readonly htt: {
|
|
332
|
+
readonly name: "Hattian";
|
|
333
|
+
readonly kind: "language";
|
|
334
|
+
readonly standard: "ochre";
|
|
335
|
+
readonly iso639_3: "xht";
|
|
336
|
+
readonly bcp47: "xht";
|
|
337
|
+
};
|
|
338
|
+
readonly heb: {
|
|
339
|
+
readonly name: "Hebrew";
|
|
340
|
+
readonly kind: "language";
|
|
341
|
+
readonly standard: "iso639-2b";
|
|
342
|
+
readonly iso639_3: "heb";
|
|
343
|
+
readonly bcp47: "he";
|
|
344
|
+
};
|
|
345
|
+
readonly hin: {
|
|
346
|
+
readonly name: "Hindi";
|
|
347
|
+
readonly kind: "language";
|
|
348
|
+
readonly standard: "iso639-2b";
|
|
349
|
+
readonly iso639_3: "hin";
|
|
350
|
+
readonly bcp47: "hi";
|
|
351
|
+
};
|
|
352
|
+
readonly hit: {
|
|
353
|
+
readonly name: "Hittite";
|
|
354
|
+
readonly kind: "language";
|
|
355
|
+
readonly standard: "iso639-2b";
|
|
356
|
+
readonly iso639_3: "hit";
|
|
357
|
+
readonly bcp47: "hit";
|
|
358
|
+
};
|
|
359
|
+
readonly xhu: {
|
|
360
|
+
readonly name: "Hurrian";
|
|
361
|
+
readonly kind: "language";
|
|
362
|
+
readonly standard: "iso639-3";
|
|
363
|
+
readonly iso639_3: "xhu";
|
|
364
|
+
readonly bcp47: "xhu";
|
|
365
|
+
};
|
|
366
|
+
readonly ita: {
|
|
367
|
+
readonly name: "Italian";
|
|
368
|
+
readonly kind: "language";
|
|
369
|
+
readonly standard: "iso639-2b";
|
|
370
|
+
readonly iso639_3: "ita";
|
|
371
|
+
readonly bcp47: "it";
|
|
372
|
+
};
|
|
373
|
+
readonly jpn: {
|
|
374
|
+
readonly name: "Japanese";
|
|
375
|
+
readonly kind: "language";
|
|
376
|
+
readonly standard: "iso639-2b";
|
|
377
|
+
readonly iso639_3: "jpn";
|
|
378
|
+
readonly bcp47: "ja";
|
|
379
|
+
};
|
|
380
|
+
readonly "jpn-xlt": {
|
|
381
|
+
readonly name: "Japanese XLit";
|
|
382
|
+
readonly kind: "transliteration";
|
|
383
|
+
readonly standard: "ochre";
|
|
384
|
+
readonly iso639_3: "jpn";
|
|
385
|
+
readonly bcp47: "ja-Latn-t-ja";
|
|
386
|
+
};
|
|
387
|
+
readonly kaz: {
|
|
388
|
+
readonly name: "Kazakh";
|
|
389
|
+
readonly kind: "language";
|
|
390
|
+
readonly standard: "iso639-2b";
|
|
391
|
+
readonly iso639_3: "kaz";
|
|
392
|
+
readonly bcp47: "kk";
|
|
393
|
+
};
|
|
394
|
+
readonly kor: {
|
|
395
|
+
readonly name: "Korean";
|
|
396
|
+
readonly kind: "language";
|
|
397
|
+
readonly standard: "iso639-2b";
|
|
398
|
+
readonly iso639_3: "kor";
|
|
399
|
+
readonly bcp47: "ko";
|
|
400
|
+
};
|
|
401
|
+
readonly lmc: {
|
|
402
|
+
readonly name: "Late Middle Chinese";
|
|
403
|
+
readonly kind: "language";
|
|
404
|
+
readonly standard: "ochre";
|
|
405
|
+
readonly iso639_3: "ltc";
|
|
406
|
+
readonly bcp47: "ltc";
|
|
407
|
+
};
|
|
408
|
+
readonly lat: {
|
|
409
|
+
readonly name: "Latin";
|
|
410
|
+
readonly kind: "language";
|
|
411
|
+
readonly standard: "iso639-2b";
|
|
412
|
+
readonly iso639_3: "lat";
|
|
413
|
+
readonly bcp47: "la";
|
|
414
|
+
};
|
|
415
|
+
readonly xlt: {
|
|
416
|
+
readonly name: "Latin XLit";
|
|
417
|
+
readonly kind: "transliteration";
|
|
418
|
+
readonly standard: "ochre";
|
|
419
|
+
readonly iso639_3: null;
|
|
420
|
+
readonly bcp47: "und-Latn";
|
|
421
|
+
};
|
|
422
|
+
readonly luw: {
|
|
423
|
+
readonly name: "Luwian";
|
|
424
|
+
readonly kind: "language";
|
|
425
|
+
readonly standard: "ochre";
|
|
426
|
+
readonly iso639_3: null;
|
|
427
|
+
readonly bcp47: null;
|
|
428
|
+
};
|
|
429
|
+
readonly cmn: {
|
|
430
|
+
readonly name: "Mandarin";
|
|
431
|
+
readonly kind: "language";
|
|
432
|
+
readonly standard: "iso639-3";
|
|
433
|
+
readonly iso639_3: "cmn";
|
|
434
|
+
readonly bcp47: "cmn";
|
|
435
|
+
};
|
|
436
|
+
readonly mar: {
|
|
437
|
+
readonly name: "Marathi";
|
|
438
|
+
readonly kind: "language";
|
|
439
|
+
readonly standard: "iso639-2b";
|
|
440
|
+
readonly iso639_3: "mar";
|
|
441
|
+
readonly bcp47: "mr";
|
|
442
|
+
};
|
|
443
|
+
readonly met: {
|
|
444
|
+
readonly name: "Metrical";
|
|
445
|
+
readonly kind: "vocabulary";
|
|
446
|
+
readonly standard: "ochre";
|
|
447
|
+
readonly iso639_3: null;
|
|
448
|
+
readonly bcp47: null;
|
|
449
|
+
};
|
|
450
|
+
readonly zxx: {
|
|
451
|
+
readonly name: "No linguistic content";
|
|
452
|
+
readonly kind: "non-linguistic";
|
|
453
|
+
readonly standard: "iso639-2b";
|
|
454
|
+
readonly iso639_3: "zxx";
|
|
455
|
+
readonly bcp47: "zxx";
|
|
456
|
+
};
|
|
457
|
+
readonly och: {
|
|
458
|
+
readonly name: "Old Chinese";
|
|
459
|
+
readonly kind: "language";
|
|
460
|
+
readonly standard: "iso639-3";
|
|
461
|
+
readonly iso639_3: "och";
|
|
462
|
+
readonly bcp47: "och";
|
|
463
|
+
};
|
|
464
|
+
readonly peo: {
|
|
465
|
+
readonly name: "Old Persian";
|
|
466
|
+
readonly kind: "language";
|
|
467
|
+
readonly standard: "iso639-2b";
|
|
468
|
+
readonly iso639_3: "peo";
|
|
469
|
+
readonly bcp47: "peo";
|
|
470
|
+
};
|
|
471
|
+
readonly ota: {
|
|
472
|
+
readonly name: "Ottoman Turkish";
|
|
473
|
+
readonly kind: "language";
|
|
474
|
+
readonly standard: "iso639-2b";
|
|
475
|
+
readonly iso639_3: "ota";
|
|
476
|
+
readonly bcp47: "ota";
|
|
477
|
+
};
|
|
478
|
+
readonly "ota-xlt": {
|
|
479
|
+
readonly name: "Ottoman Turkish XLit";
|
|
480
|
+
readonly kind: "transliteration";
|
|
481
|
+
readonly standard: "ochre";
|
|
482
|
+
readonly iso639_3: "ota";
|
|
483
|
+
readonly bcp47: "ota-Latn-t-ota-arab";
|
|
484
|
+
};
|
|
485
|
+
readonly pla: {
|
|
486
|
+
readonly name: "Palaic";
|
|
487
|
+
readonly kind: "language";
|
|
488
|
+
readonly standard: "ochre";
|
|
489
|
+
readonly iso639_3: "plq";
|
|
490
|
+
readonly bcp47: "plq";
|
|
491
|
+
};
|
|
492
|
+
readonly per: {
|
|
493
|
+
readonly name: "Persian";
|
|
494
|
+
readonly kind: "language";
|
|
495
|
+
readonly standard: "iso639-2b";
|
|
496
|
+
readonly iso639_3: "fas";
|
|
497
|
+
readonly bcp47: "fa";
|
|
498
|
+
};
|
|
499
|
+
readonly phn: {
|
|
500
|
+
readonly name: "Phoenician";
|
|
501
|
+
readonly kind: "language";
|
|
502
|
+
readonly standard: "iso639-2b";
|
|
503
|
+
readonly iso639_3: "phn";
|
|
504
|
+
readonly bcp47: "phn";
|
|
505
|
+
};
|
|
506
|
+
readonly xpg: {
|
|
507
|
+
readonly name: "Phrygian";
|
|
508
|
+
readonly kind: "language";
|
|
509
|
+
readonly standard: "iso639-3";
|
|
510
|
+
readonly iso639_3: "xpg";
|
|
511
|
+
readonly bcp47: "xpg";
|
|
512
|
+
};
|
|
513
|
+
readonly pol: {
|
|
514
|
+
readonly name: "Polish";
|
|
515
|
+
readonly kind: "language";
|
|
516
|
+
readonly standard: "iso639-2b";
|
|
517
|
+
readonly iso639_3: "pol";
|
|
518
|
+
readonly bcp47: "pl";
|
|
519
|
+
};
|
|
520
|
+
readonly por: {
|
|
521
|
+
readonly name: "Portuguese";
|
|
522
|
+
readonly kind: "language";
|
|
523
|
+
readonly standard: "iso639-2b";
|
|
524
|
+
readonly iso639_3: "por";
|
|
525
|
+
readonly bcp47: "pt";
|
|
526
|
+
};
|
|
527
|
+
readonly pro: {
|
|
528
|
+
readonly name: "Pronunciation";
|
|
529
|
+
readonly kind: "vocabulary";
|
|
530
|
+
readonly standard: "iso639-2b";
|
|
531
|
+
readonly iso639_3: null;
|
|
532
|
+
readonly bcp47: null;
|
|
533
|
+
};
|
|
534
|
+
readonly rel: {
|
|
535
|
+
readonly name: "Relator";
|
|
536
|
+
readonly kind: "vocabulary";
|
|
537
|
+
readonly standard: "ochre";
|
|
538
|
+
readonly iso639_3: null;
|
|
539
|
+
readonly bcp47: "zxx";
|
|
540
|
+
};
|
|
541
|
+
readonly rus: {
|
|
542
|
+
readonly name: "Russian";
|
|
543
|
+
readonly kind: "language";
|
|
544
|
+
readonly standard: "iso639-2b";
|
|
545
|
+
readonly iso639_3: "rus";
|
|
546
|
+
readonly bcp47: "ru";
|
|
547
|
+
};
|
|
548
|
+
readonly san: {
|
|
549
|
+
readonly name: "Sanskrit";
|
|
550
|
+
readonly kind: "language";
|
|
551
|
+
readonly standard: "iso639-2b";
|
|
552
|
+
readonly iso639_3: "san";
|
|
553
|
+
readonly bcp47: "sa";
|
|
554
|
+
};
|
|
555
|
+
readonly srp: {
|
|
556
|
+
readonly name: "Serbian";
|
|
557
|
+
readonly kind: "language";
|
|
558
|
+
readonly standard: "iso639-2b";
|
|
559
|
+
readonly iso639_3: "srp";
|
|
560
|
+
readonly bcp47: "sr";
|
|
561
|
+
};
|
|
562
|
+
readonly spa: {
|
|
563
|
+
readonly name: "Spanish";
|
|
564
|
+
readonly kind: "language";
|
|
565
|
+
readonly standard: "iso639-2b";
|
|
566
|
+
readonly iso639_3: "spa";
|
|
567
|
+
readonly bcp47: "es";
|
|
568
|
+
};
|
|
569
|
+
readonly sux: {
|
|
570
|
+
readonly name: "Sumerian";
|
|
571
|
+
readonly kind: "language";
|
|
572
|
+
readonly standard: "iso639-2b";
|
|
573
|
+
readonly iso639_3: "sux";
|
|
574
|
+
readonly bcp47: "sux";
|
|
575
|
+
};
|
|
576
|
+
readonly sup: {
|
|
577
|
+
readonly name: "Supplemental";
|
|
578
|
+
readonly kind: "vocabulary";
|
|
579
|
+
readonly standard: "ochre";
|
|
580
|
+
readonly iso639_3: null;
|
|
581
|
+
readonly bcp47: null;
|
|
582
|
+
};
|
|
583
|
+
readonly syc: {
|
|
584
|
+
readonly name: "Syriac";
|
|
585
|
+
readonly kind: "language";
|
|
586
|
+
readonly standard: "iso639-2b";
|
|
587
|
+
readonly iso639_3: "syc";
|
|
588
|
+
readonly bcp47: "syc";
|
|
589
|
+
};
|
|
590
|
+
readonly tei: {
|
|
591
|
+
readonly name: "TEI";
|
|
592
|
+
readonly kind: "vocabulary";
|
|
593
|
+
readonly standard: "ochre";
|
|
594
|
+
readonly iso639_3: null;
|
|
595
|
+
readonly bcp47: null;
|
|
596
|
+
};
|
|
597
|
+
readonly tur: {
|
|
598
|
+
readonly name: "Turkish";
|
|
599
|
+
readonly kind: "language";
|
|
600
|
+
readonly standard: "iso639-2b";
|
|
601
|
+
readonly iso639_3: "tur";
|
|
602
|
+
readonly bcp47: "tr";
|
|
603
|
+
};
|
|
604
|
+
readonly uga: {
|
|
605
|
+
readonly name: "Ugaritic";
|
|
606
|
+
readonly kind: "language";
|
|
607
|
+
readonly standard: "iso639-2b";
|
|
608
|
+
readonly iso639_3: "uga";
|
|
609
|
+
readonly bcp47: "uga";
|
|
610
|
+
};
|
|
611
|
+
readonly ukr: {
|
|
612
|
+
readonly name: "Ukrainian";
|
|
613
|
+
readonly kind: "language";
|
|
614
|
+
readonly standard: "iso639-2b";
|
|
615
|
+
readonly iso639_3: "ukr";
|
|
616
|
+
readonly bcp47: "uk";
|
|
617
|
+
};
|
|
618
|
+
readonly urd: {
|
|
619
|
+
readonly name: "Urdu";
|
|
620
|
+
readonly kind: "language";
|
|
621
|
+
readonly standard: "iso639-2b";
|
|
622
|
+
readonly iso639_3: "urd";
|
|
623
|
+
readonly bcp47: "ur";
|
|
624
|
+
};
|
|
625
|
+
readonly uzb: {
|
|
626
|
+
readonly name: "Uzbek";
|
|
627
|
+
readonly kind: "language";
|
|
628
|
+
readonly standard: "iso639-2b";
|
|
629
|
+
readonly iso639_3: "uzb";
|
|
630
|
+
readonly bcp47: "uz";
|
|
631
|
+
};
|
|
632
|
+
readonly var: {
|
|
633
|
+
readonly name: "Variation";
|
|
634
|
+
readonly kind: "vocabulary";
|
|
635
|
+
readonly standard: "ochre";
|
|
636
|
+
readonly iso639_3: null;
|
|
637
|
+
readonly bcp47: null;
|
|
638
|
+
};
|
|
639
|
+
readonly was: {
|
|
640
|
+
readonly name: "Washo";
|
|
641
|
+
readonly kind: "language";
|
|
642
|
+
readonly standard: "iso639-2b";
|
|
643
|
+
readonly iso639_3: "was";
|
|
644
|
+
readonly bcp47: "was";
|
|
645
|
+
};
|
|
646
|
+
readonly yid: {
|
|
647
|
+
readonly name: "Yiddish";
|
|
648
|
+
readonly kind: "language";
|
|
649
|
+
readonly standard: "iso639-2b";
|
|
650
|
+
readonly iso639_3: "yid";
|
|
651
|
+
readonly bcp47: "yi";
|
|
652
|
+
};
|
|
653
|
+
readonly yua: {
|
|
654
|
+
readonly name: "Yucatec Maya";
|
|
655
|
+
readonly kind: "language";
|
|
656
|
+
readonly standard: "iso639-3";
|
|
657
|
+
readonly iso639_3: "yua";
|
|
658
|
+
readonly bcp47: "yua";
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* A language code OCHRE publishes
|
|
663
|
+
*/
|
|
664
|
+
export type OchreLanguageCode = keyof typeof OCHRE_LANGUAGES;
|
|
665
|
+
/**
|
|
666
|
+
* Check whether a string is a language code OCHRE publishes
|
|
667
|
+
* @param code - The code to check
|
|
668
|
+
* @returns Whether OCHRE publishes the code
|
|
669
|
+
*/
|
|
670
|
+
export declare function isOchreLanguageCode(code: string): code is OchreLanguageCode;
|
|
671
|
+
/**
|
|
672
|
+
* Look up a language OCHRE publishes by its OCHRE code
|
|
673
|
+
* @param code - The OCHRE language code
|
|
674
|
+
* @returns The language, or null when OCHRE does not publish the code
|
|
675
|
+
*/
|
|
676
|
+
export declare function getOchreLanguage(code: string): OchreLanguage | null;
|
|
677
|
+
/**
|
|
678
|
+
* Find the OCHRE code of a language from its ISO 639-3 identifier
|
|
679
|
+
* @param iso639_3 - The ISO 639-3 identifier
|
|
680
|
+
* @returns The OCHRE code of the language itself, not of a transliteration,
|
|
681
|
+
* or null when OCHRE publishes no code for it
|
|
682
|
+
*/
|
|
683
|
+
export declare function getOchreLanguageCode(iso639_3: string): OchreLanguageCode | null;
|
|
684
|
+
//#endregion
|