@hscii/xnglotr 0.0.0-stage → 2.0.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.
Files changed (43) hide show
  1. package/dist/hsciistr/dicts/codes.d.ts +32 -0
  2. package/dist/hsciistr/dicts/codes.js +16 -0
  3. package/dist/hsciistr/dicts/u10_map.d.ts +5 -0
  4. package/dist/hsciistr/dicts/u10_map.js +163 -0
  5. package/dist/hsciistr/dicts/u1_map.d.ts +5 -0
  6. package/dist/hsciistr/dicts/u1_map.js +161 -0
  7. package/dist/hsciistr/dicts/u2_map.d.ts +5 -0
  8. package/dist/hsciistr/dicts/u2_map.js +160 -0
  9. package/dist/hsciistr/dicts/u3_map.d.ts +5 -0
  10. package/dist/hsciistr/dicts/u3_map.js +159 -0
  11. package/dist/hsciistr/dicts/u4_map.d.ts +5 -0
  12. package/dist/hsciistr/dicts/u4_map.js +160 -0
  13. package/dist/hsciistr/dicts/u5_map.d.ts +5 -0
  14. package/dist/hsciistr/dicts/u5_map.js +161 -0
  15. package/dist/hsciistr/dicts/u6_map.d.ts +5 -0
  16. package/dist/hsciistr/dicts/u6_map.js +160 -0
  17. package/dist/hsciistr/dicts/u7_map.d.ts +5 -0
  18. package/dist/hsciistr/dicts/u7_map.js +160 -0
  19. package/dist/hsciistr/dicts/u8_map.d.ts +5 -0
  20. package/dist/hsciistr/dicts/u8_map.js +160 -0
  21. package/dist/hsciistr/dicts/u9_map.d.ts +5 -0
  22. package/dist/hsciistr/dicts/u9_map.js +160 -0
  23. package/dist/hsciistr/dicts/uten128.d.ts +3 -0
  24. package/dist/hsciistr/dicts/uten128.js +1341 -0
  25. package/dist/hsciistr/dom/transliterate_dom.d.ts +3 -0
  26. package/dist/hsciistr/dom/transliterate_dom.js +45 -0
  27. package/dist/hsciistr/e52_tu_e23.d.ts +1 -0
  28. package/dist/hsciistr/e52_tu_e23.js +45 -0
  29. package/dist/hsciistr/net/translate_e52_x.d.ts +1 -0
  30. package/dist/hsciistr/net/translate_e52_x.js +24 -0
  31. package/dist/hsciistr/net/transliterate_e52_x.d.ts +1 -0
  32. package/dist/hsciistr/net/transliterate_e52_x.js +40 -0
  33. package/dist/hsciistr/uL_to_xi38.d.ts +1 -0
  34. package/dist/hsciistr/uL_to_xi38.js +59 -0
  35. package/dist/hsciistr/ux38.d.ts +2 -0
  36. package/dist/hsciistr/ux38.js +195 -0
  37. package/dist/hsciistr/xnglo_post.d.ts +1 -0
  38. package/dist/hsciistr/xnglo_post.js +32 -0
  39. package/dist/hsciistr_file.d.ts +40 -0
  40. package/dist/hsciistr_file.js +275 -0
  41. package/package.json +23 -6
  42. package/readme.md +99 -0
  43. package/README.md +0 -3
@@ -0,0 +1,32 @@
1
+ export declare const ITC_CODE_DICT: Record<string, string>;
2
+ export declare const PHROM_DIKT: {
3
+ readonly e52: "e52";
4
+ readonly uL: "uL";
5
+ };
6
+ export declare const TU_DIKT: {
7
+ readonly e23: "e23";
8
+ readonly xe38: "xe38";
9
+ readonly xi38: "xi38";
10
+ readonly xih38: "xih38";
11
+ readonly xib38: "xib38";
12
+ readonly xip38: "xip38";
13
+ readonly xig38: "xig38";
14
+ readonly xio38: "xio38";
15
+ readonly xit38: "xit38";
16
+ readonly xij38: "xij38";
17
+ readonly xim38: "xim38";
18
+ readonly xik38: "xik38";
19
+ readonly xis38: "xis38";
20
+ readonly xhs38: "xhs38";
21
+ readonly xbs38: "xbs38";
22
+ readonly xps38: "xps38";
23
+ readonly xgs38: "xgs38";
24
+ readonly xos38: "xos38";
25
+ readonly xts38: "xts38";
26
+ readonly xjs38: "xjs38";
27
+ readonly xms38: "xms38";
28
+ readonly xks38: "xks38";
29
+ readonly xss38: "xss38";
30
+ };
31
+ export type PhromCode = typeof PHROM_DIKT[keyof typeof PHROM_DIKT];
32
+ export type TuCode = typeof TU_DIKT[keyof typeof TU_DIKT];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TU_DIKT = exports.PHROM_DIKT = exports.ITC_CODE_DICT = void 0;
4
+ exports.ITC_CODE_DICT = {
5
+ hi: "hi-t-i0-und", bn: "bn-t-i0-und", pa: "pa-t-i0-und", gu: "gu-t-i0-und",
6
+ or: "or-t-i0-und", ta: "ta-t-i0-und", te: "te-t-i0-und", kn: "kn-t-i0-und",
7
+ ml: "ml-t-i0-und",
8
+ };
9
+ exports.PHROM_DIKT = { e52: 'e52', uL: 'uL' };
10
+ exports.TU_DIKT = {
11
+ e23: 'e23', xe38: 'xe38', xi38: 'xi38',
12
+ xih38: 'xih38', xib38: 'xib38', xip38: 'xip38', xig38: 'xig38', xio38: 'xio38',
13
+ xit38: 'xit38', xij38: 'xij38', xim38: 'xim38', xik38: 'xik38', xis38: 'xis38',
14
+ xhs38: 'xhs38', xbs38: 'xbs38', xps38: 'xps38', xgs38: 'xgs38', xos38: 'xos38',
15
+ xts38: 'xts38', xjs38: 'xjs38', xms38: 'xms38', xks38: 'xks38', xss38: 'xss38',
16
+ };
@@ -0,0 +1,5 @@
1
+ export declare const U10_MAP: {
2
+ unicode_hindi_array: string[];
3
+ hard_consonants_modulo_list: number[];
4
+ vovli_modulo_list: number[];
5
+ };
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.U10_MAP = void 0;
4
+ // this file is xnglotr/src/sciistr/dicts/u10_map.ts
5
+ exports.U10_MAP = {
6
+ // Dewnagri char in comments is matched by OFFICIAL UNICODE CHARACTER NAME
7
+ // (e.g. sinhala "ALPAPRAANA KAYANNA" == Dewnagri "KA"), not by raw block
8
+ // offset — sinhala has 7 extra independent-vowel codepoints Dewnagri
9
+ // doesn't, so offset-based alignment breaks starting at the consonants
10
+ // (sinhala d9a=ka aligns to Dewnagri 0915=क, NOT to whatever sits at the
11
+ // same relative offset in u9_map.ts). blank Dewnagri comment = sinhala
12
+ // letter has no single-character Dewnagri equivalent (mostly the
13
+ // "sanyaka" prenasalized consonants: ṅga, ñja, ṇḍa, nda, mba — these are
14
+ // conjuncts in Dewnagri, not single letters) or Dewnagri doesn't
15
+ // distinguish a short/long vowel pair sinhala does.
16
+ ///////kKzZtTdDjJqQnpfbBmyrlwSsɦ
17
+ unicode_hindi_array: [
18
+ '', // d80
19
+ 'N', // ँ d81 CANDRABINDU
20
+ 'N', // ं d82 nbindu
21
+ ':', // ः d83 visarga
22
+ 'e', // d84
23
+ 'A', // अ d85 letter a
24
+ 'aa', // आ d86 letter aa
25
+ 'AE', // ऍ d87 letter ae
26
+ 'ae', // ऍ d88 letter aae
27
+ '_i', // इ d89 letter i
28
+ '_i', // ई d8a letter ii
29
+ '_u', // उ d8b = sinhala letter u
30
+ '_u', // ऊ d8c = sinhala letter uu
31
+ 'r', // ऋ d8d volalic r
32
+ 'ri', // ॠ d8e vocalic rr
33
+ 'l', // ऌ d8f volalic l
34
+ 'li', // ॡ d90 volalic ll
35
+ '_e', // ऎ d91 letter e
36
+ '_e', // ए d92 letter ee
37
+ '_e', // ऐ d93 = sinhala letter ai
38
+ '_o', // ऒ d94 = sinhala letter o
39
+ '_o', // ओ d95 = sinhala letter oo
40
+ '_o', // औ d96 = sinhala letter au
41
+ '', // d97 null
42
+ '', // d98 null
43
+ '', // d99 null
44
+ 'k', // क d9a ka
45
+ 'K', // ख d9b kha
46
+ 'g', // ग d9c ga
47
+ 'gh', // घ d9d gha
48
+ 'N', // ङ d9e nga
49
+ 'N', // d9f nnga
50
+ 'ch', // च da0 ch
51
+ 'Ch', // छ da1 chh
52
+ 'z', // ज da2 za
53
+ 'Z', // झ da3 zha
54
+ 'n', // ञ da4 = sinhala letter nya
55
+ 'n', // da5 = sinhala letter jnya
56
+ 'n', // da6 = sinhala letter nyja
57
+ 't', // ट da7 = sinhala letter tta
58
+ 'th', // ठ da8 = sinhala letter ttha
59
+ 'd', // ड da9 = sinhala letter dda
60
+ 'dh', // ढ daa = sinhala letter ddha
61
+ 'n', // ण dab = sinhala letter nna
62
+ 'n', // dac = sinhala letter nndda
63
+ 'T', // त dad = sinhala letter тa
64
+ 'Th', // थ dae = sinhala letter тha
65
+ 'D', // द daf = sinhala letter ԃa
66
+ 'Dh', // ध db0 = sinhala letter ԃha
67
+ 'n', // न db1 = sinhala letter na
68
+ '', // db2 =null
69
+ 'nq', // db3 = sinhala letter nԃa
70
+ 'p', // प db4 = sinhala letter pa
71
+ 'f', // फ db5 = sinhala letter pha
72
+ 'b', // ब db6 = sinhala letter ba
73
+ 'B', // भ db7 = sinhala letter bha
74
+ 'm', // म db8 = sinhala letter ma
75
+ 'mb', // db9 = sinhala letter mba
76
+ 'y', // य dba = sinhala letter ya
77
+ 'r', // र dbb = sinhala letter ra
78
+ '', // dbc =null
79
+ 'l', // ल dbd = sinhala letter la (dental)
80
+ '', // dbe =null
81
+ '', // dbf =null
82
+ 'w', // व dc0 = sinhala letter va
83
+ 'S', // श dc1 = sinhala letter sha
84
+ 's', // ष dc2 = sinhala letter ssa
85
+ 's', // स dc3 = sinhala letter sa (dental)
86
+ 'v', // v=∀=ह dc4 = sinhala letter ha
87
+ 'l', // ळ dc5 = sinhala letter lla
88
+ 'f', // फ़ dc6 = sinhala letter fa
89
+ '', // dc7 =null
90
+ '', // dc8 =null
91
+ '', // dc9 =null
92
+ '', // ् dca = virama
93
+ '', // dcb =null
94
+ '', // dcc =null
95
+ '', // dcd =null
96
+ '', // dce =null
97
+ 'a', // ा dcf = sinhala vowel sign aa
98
+ 'e', // dd0 = sinhala vowel sign ae
99
+ 'ae', // dd1 = sinhala vowel sign aae
100
+ 'i', // ि dd2 = sinhala vowel sign i
101
+ 'i', // ी dd3 = sinhala vowel sign ii
102
+ 'u', // ु dd4 = sinhala vowel sign u
103
+ '', // dd5 =null
104
+ 'u', // ू dd6 = sinhala vowel sign uu
105
+ '', // dd7 =null
106
+ 'ri', // ृ dd8 = sinhala vowel sign vocalic r
107
+ 'e', // ॆ dd9 = sinhala vowel sign e
108
+ 'e', // े dda = sinhala vowel sign ee
109
+ 'ye', // ै ddb = sinhala vowel sign ai
110
+ 'o', // ॊ ddc = sinhala vowel sign o
111
+ 'o', // ो ddd = sinhala vowel sign oo
112
+ 'o', // ौ dde = sinhala vowel sign au
113
+ 'l', // ॢ ddf = sinhala vowel sign vocalic l
114
+ '', // de0 =null
115
+ '', // de1 =null
116
+ '', // de2 =null
117
+ '', // de3 =null
118
+ '', // de4 =null
119
+ '', // de5 =null
120
+ '0', // ० de6
121
+ '1', // १ de7
122
+ '2', // २ de8
123
+ '3', // ३ de9
124
+ '4', // ४ dea
125
+ '5', // ५ deb
126
+ '6', // ६ dec
127
+ '7', // ७ ded
128
+ '8', // ८ dee
129
+ '9', // ९ def
130
+ '', // df0 =null
131
+ '', // df1 =null
132
+ 'ri', // ॄ df2 = sinhala vowel sign vocalic rr
133
+ 'li', // ॣ df3 = sinhala vowel sign vocalic ll
134
+ '.', // df4 eotext
135
+ '', // df5
136
+ '', // df6
137
+ '', // df7
138
+ '', // df8
139
+ '', // df9
140
+ '', // dfa
141
+ '', // dfb
142
+ '', // dfc
143
+ '', // dfd
144
+ '', // dfe
145
+ '' // dff
146
+ ],
147
+ // NOTE: these two lists were carried over positionally from u9_map.ts
148
+ // (Dewnagri). Dewnagri's implicit-schwa / modulo-based
149
+ // hard-consonant & vowel detection formula does not carry over to
150
+ // sinhala as-is (sinhala has no inherent schwa and its letter
151
+ // ordering doesn't line up semantically with Dewnagri at the same
152
+ // offsets). Currently unused by any consumer in src/ (only referenced
153
+ // here in dicts/) — needs a sinhala-specific derivation before any
154
+ // schwa/modulo logic is written against U10_MAP. Do not reuse the
155
+ // u9 modulo formula for sinhala.
156
+ hard_consonants_modulo_list: [
157
+ 0x1a, 0x1c, 0x20, 0x22, 0x27, 0x29, 0x2d, 0x2f, 0x33, 0x34, 0x36, 0x39,
158
+ 0x42, 0x43
159
+ ],
160
+ vovli_modulo_list: [
161
+ 0x6, 0x8, 0x9, 0xa, 0xb, 0xc, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16
162
+ ]
163
+ };
@@ -0,0 +1,5 @@
1
+ export declare const U1_MAP: {
2
+ unicode_hindi_array: string[];
3
+ hard_consonants_modulo_list: number[];
4
+ vovli_modulo_list: number[];
5
+ };
@@ -0,0 +1,161 @@
1
+ "use strict";
2
+ // SCAFFOLD NOTICE: this file currently holds the SAME table as the
3
+ // original shared u9_map.ts (Dewnagri-derived), seeded here as a
4
+ // placeholder while u1..u9 were split out one-per-script (previously
5
+ // all 9 ISCII-aligned scripts -- Dewnagri, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayalam --
6
+ // shared one table, per CLAUDE.md's original "u9: 9 indian writing
7
+ // scripts" design). This split is structural only so far: NO behavior
8
+ // change yet (still Dewnagri values for every script). u1_map.ts is
9
+ // for Dewnagri (hindi/marathi, block U+0900-U+097F) and its
10
+ // entries need verifying/rewriting against Dewnagri's own Unicode chart
11
+ // (letters, matras, digits) the same way u10_map.ts (sinhala) was done --
12
+ // see u10_map.ts's own top-of-file note and the commit history around it
13
+ // for the method (unicodedata name-matching, not raw offset-copying).
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.U1_MAP = void 0;
16
+ // xi52 convention: aspirated stops use two-letter digraphs (Dh, dh, Th, th),
17
+ // unaspirated stops use single letters (D, d, T, t).
18
+ // ह → H (font draws H with an extra dot).
19
+ // व → w.
20
+ // See xi38_xi52_table.md at repo root for the full mapping and rationale.
21
+ //this file is xnglotr/src/hsciistr/dicts/u1_map.ts
22
+ exports.U1_MAP = {
23
+ unicode_hindi_array: [
24
+ '', // ऀ 900 2304 inverted candrabindu
25
+ 'N', // ँ 901 2305 anunasika (candrabindu)
26
+ 'N', // ं 902 2306 anusvara bindu
27
+ ':', // ः 903 2307 visarga
28
+ 'Ae', // ऄ 904 2308 short a
29
+ 'x', // अ 905 2309
30
+ 'aa', // आ 906 2310
31
+ '_i', // इ 907 2311
32
+ '_i', // ई 908 2312
33
+ '_u', // उ 909 2313
34
+ '_u', // ऊ 90A 2314
35
+ 'ri', // ऋ 90B 2315
36
+ 'li', // ऌ 90C 2316
37
+ '_e', // ऍ 90D 2317 candra e
38
+ '_e', // ऎ 90E 2318 short e
39
+ '_e', // ए 90F 2319
40
+ '_e', // ऐ 910 2320
41
+ 'ao', // ऑ 911 2321 candra o
42
+ '_o', // ऒ 912 2322 short o
43
+ 'o', // ओ 913 2323
44
+ 'Au', // औ 914 2324
45
+ 'k', // क 915 2325
46
+ 'kh', // ख 916 2326
47
+ 'g', // ग 917 2327
48
+ 'gh', // घ 918 2328
49
+ 'N', // ङ 919 2329
50
+ 'c', // च 91A 2330
51
+ 'ch', // छ 91B 2331
52
+ 'z', // ज 91C 2332
53
+ 'zh', // झ 91D 2333
54
+ 'n', // ञ 91E 2334
55
+ 't', // ट 91F 2335
56
+ 'th', // ठ 920 2336 (xi52 aspirated retroflex)
57
+ 'd', // ड 921 2337
58
+ 'dh', // ढ 922 2338 (xi52 aspirated retroflex, lowercase dh)
59
+ 'n', // ण 923 2339
60
+ 'T', // त 924 2340 (xi52 unaspirated dental)
61
+ 'Th', // थ 925 2341 (xi52 aspirated dental)
62
+ 'D', // द 926 2342
63
+ 'Dh', // ध 927 2343 (xi52 aspirated dental, capital Dh)
64
+ 'n', // न 928 2344
65
+ 'n', // ऩ 929 2345
66
+ 'p', // प 92A 2346
67
+ 'f', // फ 92B 2347
68
+ 'b', // ब 92C 2348
69
+ 'bh', // भ 92D 2349
70
+ 'm', // म 92E 2350
71
+ 'y', // य 92F 2351
72
+ 'r', // र 930 2352
73
+ 'r', // ऱ 931 2353
74
+ 'l', // ल 932 2354
75
+ 'l', // ळ 933 2355
76
+ 'l', // ऴ 934 2356
77
+ 'w', // व 935 2357
78
+ 'sh', // श 936 2358
79
+ 's', // ष 937 2359
80
+ 's', // स 938 2360
81
+ 'v', // v = ∀ = ह 939 2361
82
+ 'oe', // ऺ 93A 2362
83
+ 'ui', // ऻ 93B 2363
84
+ '', // ़ 93C 2364 nukta
85
+ '!', // ऽ 93D 2365 avagraha
86
+ 'a', // ा 93E 2366
87
+ 'i', // ि 93F 2367
88
+ 'i', // ी 940 2368
89
+ 'u', // ु 941 2369
90
+ 'u', // ू 942 2370
91
+ 'ri', // ृ 943 2371
92
+ 'r', // ॄ 944 2372
93
+ 'e', // ॅ 945 2373
94
+ 'e', // ॆ 946 2374
95
+ 'e', // े 947 2375
96
+ 'ye', // ै 948 2376
97
+ 'o', // ॉ 949 2377
98
+ 'oe', // ॊ 94A 2378
99
+ 'o', // ो 94B 2379
100
+ 'ou', // ौ 94C 2380
101
+ '', // ् 94D 2381 virama
102
+ '', // ॎ 94E 2382
103
+ 'ou', // ॏ 94F 2383
104
+ 'om', // ॐ 950 2384
105
+ '', // ॑ 951 2385
106
+ '', // ॒ 952 2386
107
+ '`', // ॓ 953 2387
108
+ "'", // ॔ 954 2388
109
+ 'eei', // ॕ 955 2389
110
+ 'ui', // ॖ 956 2390
111
+ 'uui', // ॗ 957 2391
112
+ 'k', // क़ 958 2392
113
+ 'kh', // ख़ 959 2393
114
+ 'g', // ग़ 95A 2394
115
+ 'z', // ज़ 95B 2395
116
+ 'R', // ड़ 95C 2396 (xi52: ड़ = R)
117
+ 'dh', // ढ़ 95D 2397 (xi52: ढ़ = dh)
118
+ 'f', // फ़ 95E 2398
119
+ 'y', // य़ 95F 2399
120
+ 'ri', // ॠ 960 2400
121
+ 'li', // ॡ 961 2401
122
+ 'li', // ॢ 962 2402
123
+ 'li', // ॣ 963 2403
124
+ '.', // । 964 2404
125
+ '.', // ॥ 965 2405
126
+ '0', // ० 966 2406
127
+ '1', // १ 967 2407
128
+ '2', // २ 968 2408
129
+ '3', // ३ 969 2409
130
+ '4', // ४ 96A 2410
131
+ '5', // ५ 96B 2411
132
+ '6', // ६ 96C 2412
133
+ '7', // ७ 96D 2413
134
+ '8', // ८ 96E 2414
135
+ '9', // ९ 96F 2415
136
+ '_', // ॰ 970 2416
137
+ '__', // ॱ 971 2417
138
+ 'x', // ॲ 972 2418
139
+ 'Ao', // ॳ 973 2419
140
+ 'Ao', // ॴ 974 2420
141
+ 'Ao', // ॵ 975 2421
142
+ 'ui', // ॶ 976 2422
143
+ 'ui', // ॷ 977 2423
144
+ 'D', // ॸ 978 2424
145
+ 'z', // ॹ 979 2425
146
+ 'y', // ॺ 97A 2426
147
+ 'n', // ॻ 97B 2427
148
+ 'z', // ॼ 97C 2428
149
+ '?', // ॽ 97D 2429
150
+ 'd', // ॾ 97E 2430
151
+ 'b' // ॿ 97F 2431
152
+ ],
153
+ hard_consonants_modulo_list: [
154
+ 0x15, 0x17, 0x1a, 0x1c, 0x1f, 0x21, 0x24, 0x26, 0x2a, 0x2c, 0x37, 0x58,
155
+ 0x5a, 0x5b, 0x79, 0x7c, 0x7e, 0x7f
156
+ ],
157
+ vovli_modulo_list: [
158
+ 0x15, 0x17, 0x1a, 0x1c, 0x1f, 0x21, 0x24, 0x26, 0x2a, 0x2c, 0x37, 0x58,
159
+ 0x5a, 0x5b, 0x79, 0x7c, 0x7e, 0x7f
160
+ ]
161
+ };
@@ -0,0 +1,5 @@
1
+ export declare const U2_MAP: {
2
+ unicode_hindi_array: string[];
3
+ hard_consonants_modulo_list: number[];
4
+ vovli_modulo_list: number[];
5
+ };
@@ -0,0 +1,160 @@
1
+ "use strict";
2
+ // SCAFFOLD NOTICE: this file currently holds the SAME table as the
3
+ // original shared u9_map.ts (Dewnagri-derived), seeded here as a
4
+ // placeholder while u1..u9 were split out one-per-script (previously
5
+ // all 9 ISCII-aligned scripts -- Dewnagri, Bengali, Gurmukhi, Gujarati, Oriya, Tamil, Telugu, Kannada, Malayalam --
6
+ // shared one table, per CLAUDE.md's original "u9: 9 indian writing
7
+ // scripts" design). This split is structural only so far: NO behavior
8
+ // change yet (still Dewnagri values for every script). u2_map.ts is
9
+ // for Bengali (bengali, block U+0980-U+09FF) and its
10
+ // entries need verifying/rewriting against Bengali's own Unicode chart
11
+ // (letters, matras, digits) the same way u10_map.ts (sinhala) was done --
12
+ // see u10_map.ts's own top-of-file note and the commit history around it
13
+ // for the method (unicodedata name-matching, not raw offset-copying).
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.U2_MAP = void 0;
16
+ // xi52 convention: aspirated stops use two-letter digraphs (Dh, dh, Th, th),
17
+ // unaspirated stops use single letters (D, d, T, t).
18
+ // ह → H (font draws H with an extra dot).
19
+ // व → w.
20
+ // See xi38_xi52_table.md at repo root for the full mapping and rationale.
21
+ exports.U2_MAP = {
22
+ unicode_hindi_array: [
23
+ '', // ऀ 900 2304 inverted candrabindu
24
+ 'N', // ँ 901 2305 anunasika (candrabindu)
25
+ 'N', // ं 902 2306 anusvara bindu
26
+ ':', // ः 903 2307 visarga
27
+ 'Ae', // ऄ 904 2308 short a
28
+ 'A', // अ 905 2309
29
+ 'aa', // आ 906 2310
30
+ '_i', // इ 907 2311
31
+ '_i', // ई 908 2312
32
+ '_u', // उ 909 2313
33
+ '_u', // ऊ 90A 2314
34
+ 'ri', // ऋ 90B 2315
35
+ 'li', // ऌ 90C 2316
36
+ '_e', // ऍ 90D 2317 candra e
37
+ '_e', // ऎ 90E 2318 short e
38
+ '_e', // ए 90F 2319
39
+ '_e', // ऐ 910 2320
40
+ 'ao', // ऑ 911 2321 candra o
41
+ '_o', // ऒ 912 2322 short o
42
+ 'o', // ओ 913 2323
43
+ 'Au', // औ 914 2324
44
+ 'k', // क 915 2325
45
+ 'kh', // ख 916 2326
46
+ 'g', // ग 917 2327
47
+ 'gh', // घ 918 2328
48
+ 'N', // ङ 919 2329
49
+ 'c', // च 91A 2330
50
+ 'ch', // छ 91B 2331
51
+ 'z', // ज 91C 2332
52
+ 'zh', // झ 91D 2333
53
+ 'n', // ञ 91E 2334
54
+ 't', // ट 91F 2335
55
+ 'th', // ठ 920 2336 (xi52 aspirated retroflex)
56
+ 'd', // ड 921 2337
57
+ 'dh', // ढ 922 2338 (xi52 aspirated retroflex, lowercase dh)
58
+ 'n', // ण 923 2339
59
+ 'T', // त 924 2340 (xi52 unaspirated dental)
60
+ 'Th', // थ 925 2341 (xi52 aspirated dental)
61
+ 'D', // द 926 2342
62
+ 'Dh', // ध 927 2343 (xi52 aspirated dental, capital Dh)
63
+ 'n', // न 928 2344
64
+ 'n', // ऩ 929 2345
65
+ 'p', // प 92A 2346
66
+ 'f', // फ 92B 2347
67
+ 'b', // ब 92C 2348
68
+ 'bh', // भ 92D 2349
69
+ 'm', // म 92E 2350
70
+ 'y', // य 92F 2351
71
+ 'r', // र 930 2352
72
+ 'r', // ऱ 931 2353
73
+ 'l', // ल 932 2354
74
+ 'l', // ळ 933 2355
75
+ 'l', // ऴ 934 2356
76
+ 'w', // व 935 2357
77
+ 'sh', // श 936 2358
78
+ 's', // ष 937 2359
79
+ 's', // स 938 2360
80
+ 'v', // v = ∀ = ह 939 2361
81
+ 'oe', // ऺ 93A 2362
82
+ 'ui', // ऻ 93B 2363
83
+ '', // ़ 93C 2364 nukta
84
+ '!', // ऽ 93D 2365 avagraha
85
+ 'a', // ा 93E 2366
86
+ 'i', // ि 93F 2367
87
+ 'i', // ी 940 2368
88
+ 'u', // ु 941 2369
89
+ 'u', // ू 942 2370
90
+ 'ri', // ृ 943 2371
91
+ 'r', // ॄ 944 2372
92
+ 'e', // ॅ 945 2373
93
+ 'e', // ॆ 946 2374
94
+ 'e', // े 947 2375
95
+ 'ye', // ै 948 2376
96
+ 'o', // ॉ 949 2377
97
+ 'oe', // ॊ 94A 2378
98
+ 'o', // ो 94B 2379
99
+ 'ou', // ौ 94C 2380
100
+ '', // ् 94D 2381 virama
101
+ '', // ॎ 94E 2382
102
+ 'ou', // ॏ 94F 2383
103
+ 'om', // ॐ 950 2384
104
+ '', // ॑ 951 2385
105
+ '', // ॒ 952 2386
106
+ '`', // ॓ 953 2387
107
+ "'", // ॔ 954 2388
108
+ 'eei', // ॕ 955 2389
109
+ 'ui', // ॖ 956 2390
110
+ 'uui', // ॗ 957 2391
111
+ 'k', // क़ 958 2392
112
+ 'kh', // ख़ 959 2393
113
+ 'g', // ग़ 95A 2394
114
+ 'z', // ज़ 95B 2395
115
+ 'R', // ड़ 95C 2396 (xi52: ड़ = ढ़ = R)
116
+ 'R', // ढ़ 95D 2397 (xi52: ढ़ = ड़ = R)
117
+ 'f', // फ़ 95E 2398
118
+ 'y', // य़ 95F 2399
119
+ 'ri', // ॠ 960 2400
120
+ 'li', // ॡ 961 2401
121
+ 'li', // ॢ 962 2402
122
+ 'li', // ॣ 963 2403
123
+ '.', // । 964 2404
124
+ '.', // ॥ 965 2405
125
+ '0', // ० 966 2406
126
+ '1', // १ 967 2407
127
+ '2', // २ 968 2408
128
+ '3', // ३ 969 2409
129
+ '4', // ४ 96A 2410
130
+ '5', // ५ 96B 2411
131
+ '6', // ६ 96C 2412
132
+ '7', // ७ 96D 2413
133
+ '8', // ८ 96E 2414
134
+ '9', // ९ 96F 2415
135
+ '_', // ॰ 970 2416
136
+ '__', // ॱ 971 2417
137
+ 'A', // ॲ 972 2418
138
+ 'Ao', // ॳ 973 2419
139
+ 'Ao', // ॴ 974 2420
140
+ 'Ao', // ॵ 975 2421
141
+ 'ui', // ॶ 976 2422
142
+ 'ui', // ॷ 977 2423
143
+ 'D', // ॸ 978 2424
144
+ 'zh', // ॹ 979 2425
145
+ 'y', // ॺ 97A 2426
146
+ 'n', // ॻ 97B 2427
147
+ 'z', // ॼ 97C 2428
148
+ '?', // ॽ 97D 2429
149
+ 'd', // ॾ 97E 2430
150
+ 'b' // ॿ 97F 2431
151
+ ],
152
+ hard_consonants_modulo_list: [
153
+ 0x15, 0x17, 0x1a, 0x1c, 0x1f, 0x21, 0x24, 0x26, 0x2a, 0x2c, 0x37, 0x58,
154
+ 0x5a, 0x5b, 0x79, 0x7c, 0x7e, 0x7f
155
+ ],
156
+ vovli_modulo_list: [
157
+ 0x15, 0x17, 0x1a, 0x1c, 0x1f, 0x21, 0x24, 0x26, 0x2a, 0x2c, 0x37, 0x58,
158
+ 0x5a, 0x5b, 0x79, 0x7c, 0x7e, 0x7f
159
+ ]
160
+ };
@@ -0,0 +1,5 @@
1
+ export declare const U3_MAP: {
2
+ unicode_hindi_array: string[];
3
+ hard_consonants_modulo_list: number[];
4
+ vovli_modulo_list: number[];
5
+ };