Update copyright years
[m17n/m17n-contrib.git] / im / ml-mozhi.mim
1 ;; ml-mozhi.mim -- Malayalam input method with ITRANS method
2 ;; Copyright (C) Evuraan at Gmail Dot Com
3 ;; 
4
5 ;; This file is part of the m17n contrib; a sub-part of the m17n
6 ;; library.
7
8 ;; The m17n library is free software; you can redistribute it and/or
9 ;; modify it under the terms of the GNU Lesser General Public License
10 ;; as published by the Free Software Foundation; either version 2.1 of
11 ;; the License, or (at your option) any later version.
12
13 ;; The m17n library is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 ;; Lesser General Public License for more details.
17
18 ;; You should have received a copy of the GNU Lesser General Public
19 ;; License along with the m17n library; if not, write to the Free
20 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ;; Boston, MA 02110-1301, USA.
22
23 (input-method ml mozhi)
24
25 (description "Malayalam input method.
26 Supports both Atomic and Non-Atomic Malayalam Chillu characters.
27 For the details, see the page:
28   <http://chithrangal.blogspot.com/2012/02/ml-mozhi.html>
29 ")
30
31 (title "ഏ")
32
33 (map
34  (starter
35   (".") ("~") ("#") ("$") ("^") ("*") ((S-\ )) ((C-@))
36   ("0") ("1") ("2") ("3") ("4") ("~") ("=")
37   ("5") ("6") ("7") ("8") ("9") ("_")
38   ("A") ("C") ("D") ("G") ("H") ("I") ("J") ("K") ("L")
39   ("M") ("N") ("O") ("R") ("S") ("T") ("U") ("Y")
40   ("B") ("J") ("P") ("E") ("V") ("W")
41   ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
42   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
43   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
44
45  (consonant
46   ("k" "ക്")
47   ("k_" "ൿ")
48   ("K" "ക്ക്")
49   ("kh" "ഖ്")
50   ("g" "ഗ്")
51   ("G" "ഗ്ഗ്")
52   ("gh" "ഘ്")
53   ("ng" "ങ്")
54   ("nng" "ങ്ങ്")
55   ("ch" "ച്")
56   ("Ch" "ഛ്")
57   ("chh" "ഛ്")
58   ("j" "ജ്")
59   ("J" "ജ്ജ്")
60   ("jh" "ഝ്")
61   ("nj" "ഞ്")
62   ("nch" "ഞ്ച്")
63   ("nk" "ങ്ക്")
64   ("T" "ട്")
65   ("Th" "ഠ്")
66   ("D" "ഡ്")
67   ("Dh" "ഢ്")
68   ("N" "ണ്")
69   ("N_" "ൺ")
70   ("nT" "ണ്ട്")
71   ("nt" "ന്റ്")
72   ("nth" "ന്ത്")
73   ("th" "ത്")
74   ("thh" "ഥ്")
75   ("d" "ദ്")
76   ("dh" "ധ്")
77   ("n" "ന്")
78   ("n_" "ൻ")
79   ("nn" "ന്ന്")
80   ("p" "പ്")
81   ("P" "പ്പ്")
82   ("f" "ഫ്")
83   ("ph" "ഫ്")
84   ("b" "ബ്")
85   ("B" "ബ്ബ്")
86   ("bh" "ഭ്")
87   ("m" "മ്")
88   ("y" "യ്")
89   ("Y" "യ്യ്")
90   ("r" "ര്")
91   ("r_" "ർ")
92   ("R" "റ്")
93   ("R_" "ർ")
94   ("rr" "റ്")
95   ("l" "ല്")
96   ("l_" "ൽ")
97   ("L" "ള്")
98   ("L_" "ൾ")
99   ("LL" "ള്ള്")
100   ("v" "വ്")
101   ("V" "വ്വ്")
102   ("W" "വ്വ്")
103   ("w" "വ്")
104   ("z" "ശ്")
105   ("zh" "ഴ്")
106   ("t" "റ്റ്")
107   ("tt" "ട്ട്")
108   ("S" "ശ്")
109   ("sh" "ഷ്")
110   ("Sh" "ഴ്")
111   ("s" "സ്")
112   ("h" "ഹ്")
113   ("N__" "ണ്‍")
114   ("n__" "ന്‍")
115   ("l__" "ല്‍")
116   ("L__" "‌‌ള്‍")
117   ("r__" "ര്‍")
118   ("R__" "ര്‍")
119   ("x" "ക്ഷ്"))
120
121  (independent
122   ("a" "അ")
123   ("R" "ഋ")
124   ("aa" "ആ")
125   ("A" "ആ")
126   ("i" "ഇ")
127   ("ii" "ഈ")
128   ("ee" "ഈ")
129   ("I" "ഈ")
130   ("u" "ഉ")
131   ("uu" "ഊ")
132   ("oo" "ഊ")
133   ("U" "ഊ")
134   ("rr^" "രൃ")
135   ("R^" "ഋ")
136   ("r^" "ഋ")
137   ("LLLi" "ഌ")
138   ("L^i" "ഌ")
139   ("E" "ഏ")
140   ("e" "എ")
141   ("ai" "ഐ")
142   ("O" "ഓ")
143   ("o" "ഒ")
144   ("au" "ഔ")
145   (".n" "ം")
146   ("M" "ം")
147   ("~" "്")
148   ("_" "‌‌")     
149   ("m_" "ം")
150   ("m " "ം ")
151   ("m," "ം,")
152   ("m." "ം.")
153   ("m?" "ം?")
154   ("M." "ം.")
155   ("M?" "ം?")
156   ("M," "ം,")
157   ("N " "ൺ ")
158   ("N." "ൺ.")
159   ("N?" "ൺ?")
160   ("N," "ൺ,")
161   ("n " "ൻ ")
162   ("n." "ൻ.")
163   ("n?" "ൻ?")
164   ("n," "ൻ,")
165   ("r " "ർ ")
166   ("r." "ർ.")
167   ("r?" "ർ?")
168   ("r," "ർ,")
169   ("l " "ൽ ")
170   ("l." "ൽ.")
171   ("l?" "ൽ?")
172   ("l," "ൽ,")
173   ("L " "ൾ ")
174   ("L." "ൾ.")
175   ("L?" "ൾ?")
176   ("L," "ൾ,")
177   ("H" "ഃ")
178   (".h" "്")
179   ("0" "0")
180   ("1" "1")
181   ("2" "2")
182   ("3" "3")
183   ("4" "4")
184   ("5" "5")
185   ("6" "6")
186   ("7" "7")
187   ("8" "8")
188   ("9" "9")
189   ("=0" "൦")
190   ("=1" "൧")
191   ("=2" "൨")
192   ("=3" "൩")
193   ("=4" "൪")
194   ("=5" "൫")
195   ("=6" "൬")
196   ("=7" "൭")
197   ("=8" "൮")
198   ("=9" "൯")
199   ("#" "്ര")
200   ("$" "ര്")
201   ("^" "ത്ര")
202   ("*" "ശ്ര")
203   ((S-\ ) "‌")
204   ((C-@) "‍"))
205
206  (dependent
207   ("a" (delete @-) "")
208   ("aa" (delete @-) "ാ")
209   ("A" (delete @-) "ാ")
210   ("i" (delete @-) "ി")
211   ("ii" (delete @-) "ീ")
212   ("ee" (delete @-) "ീ")
213   ("I" (delete @-) "ീ")
214   ("u" (delete @-) "ു")
215   ("uu" (delete @-) "ൂ")
216   ("U" (delete @-) "ൂ")
217   ("oo" (delete @-) "ൂ")
218   ("R" (delete @-) "ൃ")
219   ("^" (delete @-) "ൃ")
220   ("RRi" (delete @-) "ൃ")
221   ("R^i" (delete @-) "ൃ")
222   ("LLi" (delete @-) "")
223   ("L^i" (delete @-) "")
224   ("E" (delete @-) "േ")
225   ("e" (delete @-) "െ")
226   ("ai" (delete @-) "ൈ")
227   ("O" (delete @-) "ോ")
228   ("o" (delete @-) "ൊ")
229   ("au" (delete @-) "ൗ"))
230
231
232  (return
233   ((Return)))
234
235  (backspace
236   ((BackSpace) (undo))))
237
238 (state
239  (init
240   (starter (pushback 1) (shift intermediate)))
241
242  (intermediate
243   (consonant (shift second))
244   (independent (shift finish))
245   (backspace)
246   (return (shift init)))
247
248  (second
249   (consonant)
250   (dependent (shift finish))
251   (backspace)
252   (return (shift init)))
253
254  (finish
255   (return)
256   (t (shift init))))
257
258 ;; Local Variables:
259 ;; coding: utf-8
260 ;; mode: lisp
261 ;; End: