@vm75/inditrans 0.13.1 → 0.14.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
@@ -24,7 +24,7 @@ Khmer, Malayalam, Oriya, Sinhala, Tamil, Tamil-Extended, Telugu, Thai, Tibetan
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
- ReadableLatin
27
+ Indlish (my own take on a readable roman/latin representation for Indian scripts)
28
28
 
29
29
  ### ITRANS notation notes
30
30
 
@@ -98,6 +98,9 @@ Returns `true` when the given script name is recognised.
98
98
  | `Option.IgnoreVedicAccents` | `8` | Strip Vedic accent markers |
99
99
  | `Option.RetainSpecialMarkers` | `16` | Keep non-standard character markers |
100
100
  | `Option.NoXMLTagHandling` | `32` | Treat XML/HTML tags as plain text |
101
+ | `Option.DisableInference` | `64` | Disable anuswara assimilation and contextual Tamil pronunciation/letter inference |
102
+
103
+ For Tamil **source** text, `Option.TamilSuperscripted` automatically enables `DisableInference`. The same flag on Tamil **output** does not disable inference. When disabled, a mapped anuswara spelling is emitted rather than assimilated to the next consonant.
101
104
 
102
105
  Combine flags with the bitwise OR operator: `Option.IgnoreVedicAccents | Option.TamilSuperscripted`.
103
106
 
@@ -5,5 +5,6 @@ export declare enum Option {
5
5
  ASCIINumerals = 4,
6
6
  IgnoreVedicAccents = 8,
7
7
  RetainSpecialMarkers = 16,
8
- NoXMLTagHandling = 32
8
+ NoXMLTagHandling = 32,
9
+ DisableInference = 64
9
10
  }
@@ -20,5 +20,7 @@ var Option;
20
20
  Option[Option["RetainSpecialMarkers"] = 16] = "RetainSpecialMarkers";
21
21
  /// Do not check for xml/html tags, and treat them as normal text
22
22
  Option[Option["NoXMLTagHandling"] = 32] = "NoXMLTagHandling";
23
+ /// Disable contextual pronunciation inference (including anuswara assimilation and Tamil reading/writing rules)
24
+ Option[Option["DisableInference"] = 64] = "DisableInference";
23
25
  })(Option || (exports.Option = Option = {}));
24
26
  //# sourceMappingURL=Option.js.map
@@ -10,6 +10,7 @@ export declare enum Script {
10
10
  hk = "hk",
11
11
  iast = "iast",
12
12
  indic = "indic",
13
+ indlish = "indlish",
13
14
  ipa = "ipa",
14
15
  iso = "iso",
15
16
  itrans = "itrans",
@@ -19,7 +20,6 @@ export declare enum Script {
19
20
  odia = "odia",
20
21
  oriya = "oriya",
21
22
  punjabi = "punjabi",
22
- readableLatin = "readableLatin",
23
23
  sanskrit = "sanskrit",
24
24
  sinhala = "sinhala",
25
25
  slp1 = "slp1",
@@ -16,6 +16,7 @@ var Script;
16
16
  Script["hk"] = "hk";
17
17
  Script["iast"] = "iast";
18
18
  Script["indic"] = "indic";
19
+ Script["indlish"] = "indlish";
19
20
  Script["ipa"] = "ipa";
20
21
  Script["iso"] = "iso";
21
22
  Script["itrans"] = "itrans";
@@ -25,7 +26,6 @@ var Script;
25
26
  Script["odia"] = "odia";
26
27
  Script["oriya"] = "oriya";
27
28
  Script["punjabi"] = "punjabi";
28
- Script["readableLatin"] = "readableLatin";
29
29
  Script["sanskrit"] = "sanskrit";
30
30
  Script["sinhala"] = "sinhala";
31
31
  Script["slp1"] = "slp1";
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vm75/inditrans",
3
- "version": "0.13.1",
3
+ "version": "0.14.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",