diff options
| author | James Thomas | 2020-04-27 08:06:48 +0530 |
|---|---|---|
| committer | Eli Zaretskii | 2020-05-28 20:29:56 +0300 |
| commit | 7f692114cdc983cc04b05dd31d3119d0f48c38d3 (patch) | |
| tree | 6de0b7622d1249069a185d9d95e9b377e6421a02 | |
| parent | d97f224fd0db2ee13150ec7c4d6311eab48cda9e (diff) | |
| download | emacs-7f692114cdc983cc04b05dd31d3119d0f48c38d3.tar.gz emacs-7f692114cdc983cc04b05dd31d3119d0f48c38d3.zip | |
Improve Malayalam language transliteration
The existing ITRANS scheme did not support some characters and
language quirks like 'chillu's. The Inscript method had errors.
* lisp/language/ind-util.el (indian-mlm-base-table): Add archaic
chars, Mozhi combos; cleanup.
(indian-mlm-mozhi-table): New scheme Mozhi.
* lisp/leim/quail/indian.el (inscript-mlm-keytable): Correct
errors. Add Inscript chillus & zero-width chars, Mozhi scheme.
* etc/NEWS: Mention the changes.
| -rw-r--r-- | etc/NEWS | 5 | ||||
| -rw-r--r-- | lisp/language/ind-util.el | 40 |
2 files changed, 40 insertions, 5 deletions
| @@ -70,6 +70,11 @@ specify 'cursor-type' to be '(box . SIZE)', the cursor becomes a hollow | |||
| 70 | box if the point is on an image larger than 'SIZE' pixels in any | 70 | box if the point is on an image larger than 'SIZE' pixels in any |
| 71 | dimension. | 71 | dimension. |
| 72 | 72 | ||
| 73 | --- | ||
| 74 | *** Improved language transliteration in Malayalam input methods. | ||
| 75 | Added a new Mozhi scheme. The inapplicable ITRANS scheme is now | ||
| 76 | deprecated. Errors in the Inscript method were corrected. | ||
| 77 | |||
| 73 | 78 | ||
| 74 | * Editing Changes in Emacs 28.1 | 79 | * Editing Changes in Emacs 28.1 |
| 75 | 80 | ||
diff --git a/lisp/language/ind-util.el b/lisp/language/ind-util.el index 4319e5537e7..62885227f10 100644 --- a/lisp/language/ind-util.el +++ b/lisp/language/ind-util.el | |||
| @@ -232,8 +232,8 @@ | |||
| 232 | '( | 232 | '( |
| 233 | (;; VOWELS | 233 | (;; VOWELS |
| 234 | (?അ nil) (?ആ ?ാ) (?ഇ ?ി) (?ഈ ?ീ) (?ഉ ?ു) (?ഊ ?ൂ) | 234 | (?അ nil) (?ആ ?ാ) (?ഇ ?ി) (?ഈ ?ീ) (?ഉ ?ു) (?ഊ ?ൂ) |
| 235 | (?ഋ ?ൃ) (?ഌ nil) nil (?ഏ ?േ) (?എ ?െ) (?ഐ ?ൈ) | 235 | (?ഋ ?ൃ) (?ഌ ?ൢ) (?ൡ ?ൣ) (?ഏ ?േ) (?എ ?െ) (?ഐ ?ൈ) |
| 236 | nil (? ?) (? ?) (?ഔ ?) nil nil) | 236 | nil (? ?) (? ?) (?ഔ ?) (?് ?്) (?ൠ ?ൄ)) |
| 237 | (;; CONSONANTS | 237 | (;; CONSONANTS |
| 238 | ?ക ?ഖ ?ഗ ?ഘ ?ങ ;; GUTTRULS | 238 | ?ക ?ഖ ?ഗ ?ഘ ?ങ ;; GUTTRULS |
| 239 | ?ച ?ഛ ?ജ ?ഝ ?ഞ ;; PALATALS | 239 | ?ച ?ഛ ?ജ ?ഝ ?ഞ ;; PALATALS |
| @@ -243,13 +243,16 @@ | |||
| 243 | ?യ ?ര ?റ ?ല ?ള ?ഴ ?വ ;; SEMIVOWELS | 243 | ?യ ?ര ?റ ?ല ?ള ?ഴ ?വ ;; SEMIVOWELS |
| 244 | ?ശ ?ഷ ?സ ?ഹ ;; SIBILANTS | 244 | ?ശ ?ഷ ?സ ?ഹ ;; SIBILANTS |
| 245 | nil nil nil nil nil nil nil nil ;; NUKTAS | 245 | nil nil nil nil nil nil nil nil ;; NUKTAS |
| 246 | "ജ്ഞ" "ക്ഷ") | 246 | "ജ്ഞ" "ക്ഷ" |
| 247 | "റ്റ" "ന്റ" "ത്ത" "ത്ഥ" "ഞ്ഞ" "ങ്ങ" "ന്ന" | ||
| 248 | "ഞ്ച" "ന്ക" "ങ്ക" "ച്ച" "ച്ഛ" "ക്ക" | ||
| 249 | "ബ്ബ" "ക്ക" "ഗ്ഗ" "ജ്ജ" "മ്മ" "പ്പ" "വ്വ" "ക്സ" "ശ്ശ") | ||
| 247 | (;; Misc Symbols | 250 | (;; Misc Symbols |
| 248 | nil ?ം ?ഃ nil ?് nil nil) | 251 | nil ?ം ?ഃ nil ?് nil nil) |
| 249 | (;; Digits | 252 | (;; Digits |
| 250 | ?൦ ?൧ ?൨ ?൩ ?൪ ?൫ ?൬ ?൭ ?൮ ?൯) | 253 | ?൦ ?൧ ?൨ ?൩ ?൪ ?൫ ?൬ ?൭ ?൮ ?൯) |
| 251 | (;; Inscript-extra (4) (#, $, ^, *, ]) | 254 | (;; Chillus |
| 252 | "്" "ര്" "്ര" "്ര" nil))) | 255 | "" ? "്" ?ൻ "ര്" ?ർ "്" ?ൽ "്" ?ൾ))) |
| 253 | 256 | ||
| 254 | (defvar indian-tml-base-table | 257 | (defvar indian-tml-base-table |
| 255 | '( | 258 | '( |
| @@ -323,6 +326,29 @@ | |||
| 323 | (;; misc -- 7 | 326 | (;; misc -- 7 |
| 324 | ".N" (".n" "M") "H" ".a" ".h" ("AUM" "OM") ".."))) | 327 | ".N" (".n" "M") "H" ".a" ".h" ("AUM" "OM") ".."))) |
| 325 | 328 | ||
| 329 | (defvar indian-mlm-mozhi-table | ||
| 330 | '(;; for encode/decode | ||
| 331 | (;; vowels -- 18 | ||
| 332 | "a" ("aa" "A") "i" ("ii" "I") "u" ("uu" "U") | ||
| 333 | "R" "Ll" "Lll" ("E" "ae") "e" "ai" | ||
| 334 | nil "o" "O" "au" "~" "RR") | ||
| 335 | (;; consonants -- 40 | ||
| 336 | ("k" "c") "kh" "g" "gh" "ng" | ||
| 337 | "ch" ("Ch" "chh") "j" "jh" "nj" | ||
| 338 | "T" "Th" "D" "Dh" "N" | ||
| 339 | "th" "thh" "d" "dh" "n" nil | ||
| 340 | "p" ("ph" "f") "b" "bh" "m" | ||
| 341 | "y" "r" "rr" "l" "L" "zh" ("v" "w") | ||
| 342 | ("S" "z") "sh" "s" "h" | ||
| 343 | nil nil nil nil nil nil nil nil | ||
| 344 | nil "X" | ||
| 345 | ;; some of these are extra to Mozhi | ||
| 346 | ("t" "tt") "nt" "tth" "tthh" "nnj" "nng" "nn" | ||
| 347 | "nch" "nc" "nk" "cch" "cchh" "cc" | ||
| 348 | "B" ("C" "K" "q") "G" "J" "M" "P" "V" "x" "Z") | ||
| 349 | (;; misc -- 7 | ||
| 350 | nil nil "H"))) | ||
| 351 | |||
| 326 | (defvar indian-kyoto-harvard-table | 352 | (defvar indian-kyoto-harvard-table |
| 327 | '(;; for encode/decode | 353 | '(;; for encode/decode |
| 328 | (;; vowel | 354 | (;; vowel |
| @@ -524,6 +550,10 @@ | |||
| 524 | (indian-make-hash indian-mlm-base-table | 550 | (indian-make-hash indian-mlm-base-table |
| 525 | indian-itrans-v5-table)) | 551 | indian-itrans-v5-table)) |
| 526 | 552 | ||
| 553 | (defvar indian-mlm-mozhi-hash | ||
| 554 | (indian-make-hash indian-mlm-base-table | ||
| 555 | indian-mlm-mozhi-table)) | ||
| 556 | |||
| 527 | (defvar indian-tml-itrans-v5-hash | 557 | (defvar indian-tml-itrans-v5-hash |
| 528 | (indian-make-hash indian-tml-base-table | 558 | (indian-make-hash indian-tml-base-table |
| 529 | indian-itrans-v5-table-for-tamil)) | 559 | indian-itrans-v5-table-for-tamil)) |