Add special ligature SRI.
[m17n/m17n-db.git] / ml-itrans.mim
1 ;; ml-itrans.mim -- Malayalam input method with ITRANS method
2 ;; Copyright (C) 2003, 2004, 2005
3 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
4 ;;   Registration Number H15PRO112
5
6 ;; This file is part of the m17n database; a sub-part of the m17n
7 ;; library.
8
9 ;; The m17n library is free software; you can redistribute it and/or
10 ;; modify it under the terms of the GNU Lesser General Public License
11 ;; as published by the Free Software Foundation; either version 2.1 of
12 ;; the License, or (at your option) any later version.
13
14 ;; The m17n library is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 ;; Lesser General Public License for more details.
18
19 ;; You should have received a copy of the GNU Lesser General Public
20 ;; License along with the m17n library; if not, write to the Free
21 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 ;; 02111-1307, USA.
23
24 (input-method ml itrans)
25
26 (description "Malayalam input method by ITRANS transliteration.
27 For the detail of ITRANS, see the page:
28   <http://www.aczoom.com/itrans/>
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   ("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   ("kh" "ഖ്")
47   ("g" "ഗ്")
48   ("gh" "ഘ്")
49   ("~N" "ങ്")
50   ("N^" "ങ്")
51   ("ch" "ച്")
52   ("Ch" "ഛ്")
53   ("chh" "ഛ്")
54   ("j" "ജ്")
55   ("jh" "ഝ്")
56   ("~n" "ഞ്")
57   ("JN" "ഞ്")
58   ("T" "ട്")
59   ("Th" "ഠ്")
60   ("D" "ഡ്")
61   ("Dh" "ഢ്")
62   ("N" "ണ്")
63   ("t" "ത്")
64   ("th" "ഥ്")
65   ("d" "ദ്")
66   ("dh" "ധ്")
67   ("n" "ന്")
68   ("p" "പ്")
69   ("ph" "ഫ്")
70   ("b" "ബ്")
71   ("bh" "ഭ്")
72   ("m" "മ്")
73   ("y" "യ്")
74   ("r" "ര്")
75   ("rh" "റ്")
76   ("l" "ല്")
77   ("L" "ള്")
78   ("ld" "ള്")
79   ("v" "വ്")
80   ("w" "വ്")
81   ("sh" "ശ്")
82   ("Sh" "ഷ്")
83   ("shh" "ഷ്")
84   ("s" "സ്")
85   ("h" "ഹ്")
86   ("GY" "ജ്ഞ്")
87   ("dny" "ജ്ഞ്")
88   ("x" "ക്ഷ്"))
89
90  (independent
91   ("a" "അ")
92   ("aa" "ആ")
93   ("A" "ആ")
94   ("i" "ഇ")
95   ("ii" "ഈ")
96   ("I" "ഈ")
97   ("u" "ഉ")
98   ("uu" "ഊ")
99   ("U" "ഊ")
100   ("RRi" "ഋ")
101   ("R^i" "ഋ")
102   ("LLi" "ഌ")
103   ("L^i" "ഌ")
104   ("E" "ഏ")
105   ("e" "എ")
106   ("ai" "ഐ")
107   ("O" "ഓ")
108   ("o" "ഒ")
109   ("au" "ഔ")
110   (".n" "ം")
111   ("M" "ം")
112   ("H" "ഃ")
113   (".h" "്")
114   ("0" "൦")
115   ("1" "൧")
116   ("2" "൨")
117   ("3" "൩")
118   ("4" "൪")
119   ("5" "൫")
120   ("6" "൬")
121   ("7" "൭")
122   ("8" "൮")
123   ("9" "൯")
124   ("#" "്ര")
125   ("$" "ര്")
126   ("^" "ത്ര")
127   ("*" "ശ്ര")
128   ((S-\ ) "‌")
129   ((C-@) "‍"))
130
131  (dependent
132   ("a" (delete @-) "")
133   ("aa" (delete @-) "ാ")
134   ("A" (delete @-) "ാ")
135   ("i" (delete @-) "ി")
136   ("ii" (delete @-) "ീ")
137   ("I" (delete @-) "ീ")
138   ("u" (delete @-) "ു")
139   ("uu" (delete @-) "ൂ")
140   ("U" (delete @-) "ൂ")
141   ("RRi" (delete @-) "ൃ")
142   ("R^i" (delete @-) "ൃ")
143   ("LLi" (delete @-) "")
144   ("L^i" (delete @-) "")
145   ("E" (delete @-) "േ")
146   ("e" (delete @-) "െ")
147   ("ai" (delete @-) "ൈ")
148   ("O" (delete @-) "ോ")
149   ("o" (delete @-) "ൊ")
150   ("au" (delete @-) "ൌ"))
151
152  (return
153   ((Return)))
154
155  (backspace
156   ((BackSpace) (undo))))
157
158 (state
159  (init
160   (starter (pushback 1) (shift intermediate)))
161
162  (intermediate
163   (consonant (shift second))
164   (independent (shift finish))
165   (backspace)
166   (return (shift init)))
167
168  (second
169   (consonant)
170   (dependent (shift finish))
171   (backspace)
172   (return (shift init)))
173
174  (finish
175   (return)
176   (t (shift init))))
177
178 ;; Local Variables:
179 ;; coding: utf-8
180 ;; mode: lisp
181 ;; End: