ee66bcf28ebf670539240373da51d102a09f9c5e
[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 For the details, see the page:
27   <http://chithrangal.blogspot.com/2008/01/m17n-itrans.html>
28 ")
29
30 (title "ഏ")
31
32 (map
33  (starter
34   (".") ("~") ("#") ("$") ("^") ("*") ((S-\ )) ((C-@))
35   ("0") ("1") ("2") ("3") ("4") ("~") ("=")
36   ("5") ("6") ("7") ("8") ("9") ("_")
37   ("A") ("C") ("D") ("G") ("H") ("I") ("J") ("K") ("L")
38   ("M") ("N") ("O") ("R") ("S") ("T") ("U") ("Y")
39   ("B") ("J") ("P") ("E") ("V") ("W")
40   ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
41   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
42   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
43
44  (consonant
45   ("k" "ക്")
46   ("K" "ക്ക്")
47   ("kh" "ഖ്")
48   ("g" "ഗ്")
49   ("G" "ഗ്ഗ്")
50   ("gh" "ഘ്")
51   ("ng" "ങ്")
52   ("nng" "ങ്ങ്")
53   ("ch" "ച്")
54   ("Ch" "ഛ്")
55   ("chh" "ഛ്")
56   ("j" "ജ്")
57   ("J" "ജ്ജ്")
58   ("jh" "ഝ്")
59   ("nj" "ഞ്")
60   ("nch" "ഞ്ച്")
61   ("T" "ട്")
62   ("Th" "ഠ്")
63   ("D" "ഡ്")
64   ("Dh" "ഢ്")
65   ("N" "ണ്")
66   ("nT" "ണ്ട്")
67   ("nt" "ന്റ്")
68   ("nth" "ന്ത്")
69   ("th" "ത്")
70   ("thh" "ഥ്")
71   ("d" "ദ്")
72   ("dh" "ധ്")
73   ("n" "ന്")
74   ("nn" "ന്ന്")
75   ("p" "പ്")
76   ("P" "പ്പ്")
77   ("f" "ഫ്")
78   ("ph" "ഫ്")
79   ("b" "ബ്")
80   ("B" "ബ്ബ്")
81   ("bh" "ഭ്")
82   ("m" "മ്")
83   ("y" "യ്")
84   ("Y" "യ്യ്")
85   ("r" "ര്")
86   ("R" "റ്")
87   ("l" "ല്")
88   ("L" "ള്")
89   ("LL" "ള്ള്")
90   ("v" "വ്")
91   ("V" "വ്വ്")
92   ("W" "വ്വ്")
93   ("w" "വ്")
94   ("z" "ശ്")
95   ("zh" "ഴ്")
96   ("t" "റ്റ്")
97   ("S" "ശ്")
98   ("sh" "ഷ്")
99   ("Sh" "ഴ്")
100   ("s" "സ്")
101   ("h" "ഹ്")
102   ("x" "ക്ഷ്"))
103
104  (independent
105   ("a" "അ")
106   ("aa" "ആ")
107   ("A" "ആ")
108   ("i" "ഇ")
109   ("ii" "ഈ")
110   ("ee" "ഈ")
111   ("I" "ഈ")
112   ("u" "ഉ")
113   ("uu" "ഊ")
114   ("oo" "ഊ")
115   ("U" "ഊ")
116   ("RRi" "ഋ")
117   ("rr^" "രൃ")
118   ("R^i" "ഋ")
119   ("r^" "ഋ")
120   ("LLLi" "ഌ")
121   ("L^i" "ഌ")
122   ("E" "ഏ")
123   ("e" "എ")
124   ("ai" "ഐ")
125   ("O" "ഓ")
126   ("o" "ഒ")
127   ("au" "ഔ")
128   (".n" "ം")
129   ("M" "ം")
130   ("~" "്")
131   ("_" "‌‌")     
132   ("m_" "ം")
133   ("H" "ഃ")
134   (".h" "്")
135   ("0" "0")
136   ("1" "1")
137   ("2" "2")
138   ("3" "3")
139   ("4" "4")
140   ("5" "5")
141   ("6" "6")
142   ("7" "7")
143   ("8" "8")
144   ("9" "9")
145   ("=0" "൦")
146   ("=1" "൧")
147   ("=2" "൨")
148   ("=3" "൩")
149   ("=4" "൪")
150   ("=5" "൫")
151   ("=6" "൬")
152   ("=7" "൭")
153   ("=8" "൮")
154   ("=9" "൯")
155   ("#" "്ര")
156   ("$" "ര്")
157   ("^" "ത്ര")
158   ("*" "ശ്ര")
159   ((S-\ ) "‌")
160   ((C-@) "‍"))
161
162  (dependent
163   ("a" (delete @-) "")
164   ("aa" (delete @-) "ാ")
165   ("A" (delete @-) "ാ")
166   ("i" (delete @-) "ി")
167   ("ii" (delete @-) "ീ")
168   ("ee" (delete @-) "ീ")
169   ("I" (delete @-) "ീ")
170   ("u" (delete @-) "ു")
171   ("uu" (delete @-) "ൂ")
172   ("U" (delete @-) "ൂ")
173   ("oo" (delete @-) "ൂ")
174   ("RRi" (delete @-) "ൃ")
175   ("R^i" (delete @-) "ൃ")
176   ("^" (delete @-) "ൃ")
177   ("LLi" (delete @-) "")
178   ("L^i" (delete @-) "")
179   ("E" (delete @-) "േ")
180   ("e" (delete @-) "െ")
181   ("ai" (delete @-) "ൈ")
182   ("O" (delete @-) "ോ")
183   ("o" (delete @-) "ൊ")
184   ("au" (delete @-) "ൗ"))
185
186
187  (return
188   ((Return)))
189
190  (backspace
191   ((BackSpace) (undo))))
192
193 (state
194  (init
195   (starter (pushback 1) (shift intermediate)))
196
197  (intermediate
198   (consonant (shift second))
199   (independent (shift finish))
200   (backspace)
201   (return (shift init)))
202
203  (second
204   (consonant)
205   (dependent (shift finish))
206   (backspace)
207   (return (shift init)))
208
209  (finish
210   (return)
211   (t (shift init))))
212
213 ;; Local Variables:
214 ;; coding: utf-8
215 ;; mode: lisp
216 ;; End: