Skip to content

Commit

Permalink
Update Swanalekha Malayalam
Browse files Browse the repository at this point in the history
* By default, do not show lookup table, but access candidates using
  arrows in preedit buffer.
* Use ~ for ZWJ. Consonant+Virama+ZWJ is chillu. So n~ => ന+ ് +  ZWJ
  which is a chillu.
* Continue using _ for ZWNJ
* If chillu created using lookup table(Example: n2, n+down arrow etc), it
  produces atomic chillu
* n_ is atomic chillu
* n_ + backspace => n => ന്
* n2 + backspace => [blank]
* n~ + backspace => n => ന്
* m + space = anuswaram+ space. Similar effect for proceeding fullstop
  and question mark
  • Loading branch information
santhoshtr committed Apr 7, 2016
1 parent 4e45f88 commit 831b8ec
Showing 1 changed file with 30 additions and 34 deletions.
64 changes: 30 additions & 34 deletions m17n/swanalekha/ml-swanalekha.mim
Expand Up @@ -26,13 +26,13 @@
(title "സ്വനലേഖ")
(variable
(candidates-group-size)
(show-lookup (_"Show lookup table") 1))
(show-lookup (_"Show lookup table") 0))

(map
(starter
("~") ("@") ("^")
("0") ("1") ("2") ("3") ("4") ("~")
("5") ("6") ("7") ("8") ("9") ("_") ("#")
("~") ("@") ("^") ("_") ("#") (".")
("0") ("1") ("2") ("3") ("4")
("5") ("6") ("7") ("8") ("9")
("A") ("C") ("D") ("G") ("H") ("I") ("J") ("K") ("L")
("M") ("N") ("O") ("Q") ("R") ("S") ("T") ("U") ("Y")
("B") ("J") ("P") ("E") ("V") ("W") ("X")
Expand All @@ -41,8 +41,8 @@
("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))

(map
("^" (("്")))
("~" (("")))
("^" (("്")))
("~" (("")))
("_" (("‌")))
("@A" (("ാ")))
("a" (("അ") ("ആ") ("എ")))
Expand Down Expand Up @@ -133,7 +133,7 @@
("bu" (("ബു")))
("buu" (("ബൂ")))
("Buu" (("ഭൂ")))
("c" (("ക്") ("കു്") ("ക്‍") ("സി")))
("c" (("ക്") ("കു്") ("ൿ") ("സി")))
("C" (("സി")))
("ca" (("ക") ("കാ") ("കേ")))
("cA" (("കാ")))
Expand Down Expand Up @@ -331,7 +331,7 @@
("DU" (("ഡൂ")))
("Duu" (("ഡൂ")))
("duu" (("ദൂ")))
("@e" (("െ")))
("@e" (("െ")))
("@E" (("േ")))
("E" (("ഏ") ("ഇ")))
("e" (("എ") ("ഇ")))
Expand Down Expand Up @@ -560,7 +560,7 @@
("joo" (("ജൂ")))
("jou" (("ജൌ")))
("Jou" (("ഝൌ")))
("JR" (("ഝൃ") ("ജെ.ആര്‍")))
("JR" (("ഝൃ") ("ജെ.ആർ")))
("jR" (("ജൃ")))
("JU" (("ഝൂ") ("ജെ.യു.")))
("Ju" (("ഝു") ("ജു")))
Expand All @@ -570,10 +570,9 @@
("juu" (("ജൂ")))
("K^" (("ഖ്") ("ഖു്")))
("k^" (("ക്")))
("k~" (("ക്‍")))
("k_" (("ക്‍")))
("k_" (("ൿ")))
("K" (("ഖ്") ("ഖു്") ("കെ")))
("k" (("ക്") ("കു്") ("ക്‍") ("ക്ക്") ("ക്കു്") ("കെ")))
("k" (("ക്") ("കു്") ("ൿ") ("ക്ക്") ("ക്കു്") ("കെ")))
("ka" (("ക") ("ഗ") ("ഖ") ("ഘ") ("കഃ")))
("Ka" (("ഖ") ("ക") ("ക്ക")))
("KA" (("ഖാ")))
Expand Down Expand Up @@ -651,12 +650,10 @@
("l^^" (("ഌ")))
("l^" (("ല്")))
("L^" (("ള്")))
("L~" (("ള്‍")))
("l~" (("ല്‍")))
("l_" (("ല്‍")))
("L_" (("ള്‍")))
("l" (("ല്") ("ല്‍") ("ള്‍") ("ലു്") ("എല്‍")))
("L" (("ള്") ("ള്‍") ("ളു്") ("എല്‍") ("ള്ള്")))
("l_" (("ൽ")))
("L_" (("ൾ")))
("l" (("ല്") ("ൽ") ("ൾ") ("ലു്") ("എൽ")))
("L" (("ള്") ("ൾ") ("ളു്") ("എൽ") ("ള്ള്")))
("La" (("ള") ("ല")))
("la" (("ല") ("ള")))
("LA" (("ളാ")))
Expand Down Expand Up @@ -708,6 +705,11 @@
("m~" (("ം")))
("M~" (("ം")))
("m_" (("ം")))
("m " "ം ")
("m," "ം,")
("m." "ം.")
("m?" "ം?")
("M." "ം.")
("M_" (("ം")))
("M" (("മ്") ("ം") ("എം")))
("m" (("മ്") ("ം") ("എം")))
Expand Down Expand Up @@ -759,12 +761,10 @@
("muu" (("മൂ")))
("n^" (("ന്")))
("N^" (("ണ്")))
("N~" (("ണ്‍")))
("n~" (("ന്‍")))
("n_" (("ന്‍")))
("n_" (("ൻ")))
("N_" (("ണ്‍")))
("n" (("ന്") ("ന്‍") ("നു്") ("ണ്‍") ("ണ്") ("ന്ന്") ("എന്‍")))
("N" (("ണ്") ("ണ്‍") ("ണു്") ("ന്‍") ("ണ്ണ്") ("ണ്ണു്") ("എന്‍")))
("n" (("ന്") ("") ("നു്") ("") ("ണ്") ("ന്ന്") ("എൻ")))
("N" (("ണ്") ("") ("ണു്") ("") ("ണ്ണ്") ("ണ്ണു്") ("എൻ")))
("Na" (("ണ") ("ന") ("നാ") ("ണ്ണ")))
("na" (("ന") ("ണ") ("ഩ")))
("NA" (("ണാ")))
Expand Down Expand Up @@ -805,7 +805,7 @@
("nchu" (("ഞ്ചു")))
("nchU" (("ഞ്ചൂ")))
("nchuu" (("ഞ്ചൂ")))
("ne" (("നെ") ("ണെ") ("ന്‍") ("ണ്‍")))
("ne" (("നെ") ("ണെ") ("") ("ണ്‍")))
("Ne" (("ണെ")))
("NE" (("ണേ")))
("nE" (("നേ")))
Expand Down Expand Up @@ -1065,13 +1065,11 @@
("r^^" (("ൠ")))
("r^" (("ഋ")))
("R^" (("റ്")))
("r~" (("ര്‍")))
("r#" (("ൎ")))
("R~" (("ര്‍")))
("R_" (("ര്‍")))
("r_" (("ര്‍")))
("r" (("ര്") ("ര്‍") ("രു്") ("ആര്‍")))
("R" (("റ്") ("ര്‍") ("റു്") ("ആര്‍")))
("R_" (("ർ")))
("r_" (("ർ")))
("r" (("ര്") ("ർ") ("രു്") ("ആർ")))
("R" (("റ്") ("ർ") ("റു്") ("ആർ")))
("Ra" (("റ") ("ര") ("രാ")))
("ra" (("ര") ("റ")))
("rA" (("രാ")))
Expand Down Expand Up @@ -1212,7 +1210,7 @@
("soo" (("സൂ") ("ശൂ")))
("Sou" (("ശൌ") ("സൌ")))
("sou" (("സൌ")))
("SR" (("ശൃ") ("എസ്.ആര്‍.")))
("SR" (("ശൃ") ("എസ്.ആർ.")))
("sR" (("സൃ")))
("su" (("സു") ("ശു")))
("Su" (("ശു") ("സു")))
Expand Down Expand Up @@ -1385,7 +1383,7 @@
("TTo" (("റ്റൊ")))
("TToo" (("റ്റൂ")))
("TTou" (("റ്റൌ")))
("TTR" (("റ്റൃ") ("ടി.ടി.ആര്‍.")))
("TTR" (("റ്റൃ") ("ടി.ടി.ആർ.")))
("TTu" (("റ്റു")))
("TTU" (("റ്റൂ")))
("TTuu" (("റ്റൂ")))
Expand Down Expand Up @@ -1600,7 +1598,6 @@
("zu" (("ശു") ("സു")))
("zU" (("ശൂ")))
("zuu" (("ശൂ")))

)
)

Expand Down Expand Up @@ -1656,7 +1653,6 @@
(map (shift select))
(nil (hide) (shift check-undo))))


(state
(check-undo
;; When Backspace is typed, cancel the last input.
Expand Down

0 comments on commit 831b8ec

Please sign in to comment.