@vm75/inditrans 0.14.1 → 0.16.1

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 CHANGED
@@ -4,7 +4,7 @@
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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 Latin scripts for Node.js and the browser. Powered by a C++23 engine compiled to WASM
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, Kannada,
19
- Khmer, Malayalam, Oriya, Sinhala, Tamil, Tamil-Extended, Telugu, Thai, Tibetan
18
+ **Indic/Brahmic:** Assamese, Bengali, Burmese, Devanagari, Grantha, Gujarati, Gurmukhi,
19
+ Kannada, Khmer, Malayalam, Oriya, Sinhala, Tamil, Telugu, Thai, Tibetan
20
20
 
21
- **Latin/Roman:**
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
- Indlish (my own take on a readable roman/latin representation for Indian scripts)
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.
@@ -4,6 +4,7 @@ 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",
@@ -17,6 +18,7 @@ export declare enum Script {
17
18
  kannada = "kannada",
18
19
  khmer = "khmer",
19
20
  malayalam = "malayalam",
21
+ nastaliq = "nastaliq",
20
22
  odia = "odia",
21
23
  oriya = "oriya",
22
24
  punjabi = "punjabi",
@@ -24,11 +26,11 @@ export declare enum Script {
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
  }
@@ -10,6 +10,7 @@ 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";
@@ -23,6 +24,7 @@ var Script;
23
24
  Script["kannada"] = "kannada";
24
25
  Script["khmer"] = "khmer";
25
26
  Script["malayalam"] = "malayalam";
27
+ Script["nastaliq"] = "nastaliq";
26
28
  Script["odia"] = "odia";
27
29
  Script["oriya"] = "oriya";
28
30
  Script["punjabi"] = "punjabi";
@@ -30,11 +32,11 @@ var Script;
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 = {}));
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm75/inditrans",
3
- "version": "0.14.1",
3
+ "version": "0.16.1",
4
4
  "description": "A functional transliterator library for the most common Indic/Brahmic scripts.",
5
5
  "main": "./dist/src/index.js",
6
6
  "author": "VM75",