@vm75/inditrans 0.14.0 → 0.16.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 +23 -5
- package/dist/src/Script.d.ts +4 -2
- package/dist/src/Script.js +4 -2
- package/dist/src/inditrans.js +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://github.com/vm75/inditrans/blob/master/LICENSE)
|
|
5
5
|
|
|
6
6
|
A transliteration library for [Indic/Brahmic](https://en.wikipedia.org/wiki/Brahmic_scripts)
|
|
7
|
-
and
|
|
7
|
+
and Roman scripts for Node.js and the browser. Powered by a C++23 engine compiled to WASM
|
|
8
8
|
for near-native performance, with no server dependency.
|
|
9
9
|
|
|
10
10
|
- ITRANS toggle transliteration — wrap any region in `##…##` to pass it through unchanged.
|
|
@@ -15,16 +15,16 @@ for near-native performance, with no server dependency.
|
|
|
15
15
|
|
|
16
16
|
## Supported scripts
|
|
17
17
|
|
|
18
|
-
**Indic/Brahmic:** Assamese, Bengali, Burmese, Devanagari, Gujarati, Gurmukhi,
|
|
19
|
-
Khmer, Malayalam, Oriya, Sinhala, Tamil,
|
|
18
|
+
**Indic/Brahmic:** Assamese, Bengali, Burmese, Devanagari, Grantha, Gujarati, Gurmukhi,
|
|
19
|
+
Kannada, Khmer, Malayalam, Oriya, Sinhala, Tamil, Telugu, Thai, Tibetan
|
|
20
20
|
|
|
21
|
-
**
|
|
21
|
+
**Roman schemes:**
|
|
22
22
|
[IAST](https://en.wikipedia.org/wiki/International_Alphabet_of_Sanskrit_Transliteration) ·
|
|
23
23
|
[IPA](https://en.wikipedia.org/wiki/International_Phonetic_Alphabet) ·
|
|
24
24
|
[ISO 15919](https://en.wikipedia.org/wiki/ISO_15919) ·
|
|
25
25
|
[ITRANS](https://www.aczoom.com/itrans/) ·
|
|
26
26
|
[TITUS](https://titus.uni-frankfurt.de/indexe.htm) ·
|
|
27
|
-
|
|
27
|
+
Indlish (my own take on a readable Roman representation for Indian scripts)
|
|
28
28
|
|
|
29
29
|
### ITRANS notation notes
|
|
30
30
|
|
|
@@ -120,3 +120,21 @@ yarn test # build WASM and run tests
|
|
|
120
120
|
## License
|
|
121
121
|
|
|
122
122
|
[MIT](../LICENSE)
|
|
123
|
+
|
|
124
|
+
## Forward accuracy and Urdu
|
|
125
|
+
|
|
126
|
+
`Script.urdu` (alias `Script.nastaliq`) supports Urdu/Perso-Arabic text. Use a
|
|
127
|
+
Nastaliq-capable font and RTL text direction in your application. The returned
|
|
128
|
+
string is ordinary Unicode in logical order. Explicit vowels, aspirates and
|
|
129
|
+
shadda are supported; ordinary unvocalized Urdu needs lexical information to
|
|
130
|
+
recover omitted vowels, so bare consonants receive no guessed vowel.
|
|
131
|
+
|
|
132
|
+
Targets use their native letters or documented phonetic approximations; source
|
|
133
|
+
distinctions may merge. ISO input now accepts the additional spreadsheet
|
|
134
|
+
notations, including ê, ŭ, ĉ, ž, w and the Urdu loan-letter spellings. Artificial
|
|
135
|
+
extended-vowel separators/accents have been replaced by native approximations.
|
|
136
|
+
Real supported accents remain separate marks. There is no round-trip guarantee.
|
|
137
|
+
|
|
138
|
+
The script profiles implement transliteration, not complete language-specific
|
|
139
|
+
pronunciation. See the repository's [mapping review](https://github.com/vm75/inditrans/blob/main/docs/phonetic-mappings.md)
|
|
140
|
+
for exact notation behavior and limitations.
|
package/dist/src/Script.d.ts
CHANGED
|
@@ -4,31 +4,33 @@ export declare enum Script {
|
|
|
4
4
|
bengali = "bengali",
|
|
5
5
|
burmese = "burmese",
|
|
6
6
|
devanagari = "devanagari",
|
|
7
|
+
grantha = "grantha",
|
|
7
8
|
gujarati = "gujarati",
|
|
8
9
|
gurmukhi = "gurmukhi",
|
|
9
10
|
hindi = "hindi",
|
|
10
11
|
hk = "hk",
|
|
11
12
|
iast = "iast",
|
|
12
13
|
indic = "indic",
|
|
14
|
+
indlish = "indlish",
|
|
13
15
|
ipa = "ipa",
|
|
14
16
|
iso = "iso",
|
|
15
17
|
itrans = "itrans",
|
|
16
18
|
kannada = "kannada",
|
|
17
19
|
khmer = "khmer",
|
|
18
20
|
malayalam = "malayalam",
|
|
21
|
+
nastaliq = "nastaliq",
|
|
19
22
|
odia = "odia",
|
|
20
23
|
oriya = "oriya",
|
|
21
24
|
punjabi = "punjabi",
|
|
22
|
-
readableLatin = "readableLatin",
|
|
23
25
|
sanskrit = "sanskrit",
|
|
24
26
|
sinhala = "sinhala",
|
|
25
27
|
slp1 = "slp1",
|
|
26
28
|
tamil = "tamil",
|
|
27
|
-
tamilExtended = "tamilExtended",
|
|
28
29
|
telugu = "telugu",
|
|
29
30
|
thai = "thai",
|
|
30
31
|
tibetan = "tibetan",
|
|
31
32
|
titus = "titus",
|
|
33
|
+
urdu = "urdu",
|
|
32
34
|
velthuis = "velthuis",
|
|
33
35
|
wx = "wx"
|
|
34
36
|
}
|
package/dist/src/Script.js
CHANGED
|
@@ -10,31 +10,33 @@ var Script;
|
|
|
10
10
|
Script["bengali"] = "bengali";
|
|
11
11
|
Script["burmese"] = "burmese";
|
|
12
12
|
Script["devanagari"] = "devanagari";
|
|
13
|
+
Script["grantha"] = "grantha";
|
|
13
14
|
Script["gujarati"] = "gujarati";
|
|
14
15
|
Script["gurmukhi"] = "gurmukhi";
|
|
15
16
|
Script["hindi"] = "hindi";
|
|
16
17
|
Script["hk"] = "hk";
|
|
17
18
|
Script["iast"] = "iast";
|
|
18
19
|
Script["indic"] = "indic";
|
|
20
|
+
Script["indlish"] = "indlish";
|
|
19
21
|
Script["ipa"] = "ipa";
|
|
20
22
|
Script["iso"] = "iso";
|
|
21
23
|
Script["itrans"] = "itrans";
|
|
22
24
|
Script["kannada"] = "kannada";
|
|
23
25
|
Script["khmer"] = "khmer";
|
|
24
26
|
Script["malayalam"] = "malayalam";
|
|
27
|
+
Script["nastaliq"] = "nastaliq";
|
|
25
28
|
Script["odia"] = "odia";
|
|
26
29
|
Script["oriya"] = "oriya";
|
|
27
30
|
Script["punjabi"] = "punjabi";
|
|
28
|
-
Script["readableLatin"] = "readableLatin";
|
|
29
31
|
Script["sanskrit"] = "sanskrit";
|
|
30
32
|
Script["sinhala"] = "sinhala";
|
|
31
33
|
Script["slp1"] = "slp1";
|
|
32
34
|
Script["tamil"] = "tamil";
|
|
33
|
-
Script["tamilExtended"] = "tamilExtended";
|
|
34
35
|
Script["telugu"] = "telugu";
|
|
35
36
|
Script["thai"] = "thai";
|
|
36
37
|
Script["tibetan"] = "tibetan";
|
|
37
38
|
Script["titus"] = "titus";
|
|
39
|
+
Script["urdu"] = "urdu";
|
|
38
40
|
Script["velthuis"] = "velthuis";
|
|
39
41
|
Script["wx"] = "wx";
|
|
40
42
|
})(Script || (exports.Script = Script = {}));
|
package/dist/src/inditrans.js
CHANGED
|
Binary file
|