(map:commit-preedit): Add SPC.
[m17n/m17n-db.git] / MIM / gu-itrans.mim
1 ;; gu-itrans.mim -- Gujarati input method with ITRANS method
2 ;; Copyright (C) 2003, 2004, 2005, 2006, 2007
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., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23
24 (input-method gu itrans)
25
26 (description "Gujarati 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   ((KP_1)) ((KP_2)) ((KP_3)) ((KP_4)) ((KP_5))
44   ((KP_6)) ((KP_7)) ((KP_8)) ((KP_9)) ((KP_0)))
45
46  (consonant
47   ("k" "ક્")
48   ("kh" "ખ્")
49   ("g" "ગ્")
50   ("gh" "ઘ્")
51   ("~N" "ઙ્")                               ; not in ITRANS Gujarati table
52   ("N^" "ઙ્")                               ; not in ITRANS Gujarati table
53   ("ch" "ચ્")
54   ("Ch" "છ્")
55   ("chh" "છ્")
56   ("j" "જ્")
57   ("jh" "ઝ્")
58   ("~n" "ઞ્")                               ; not in ITRANS Gujarati table
59   ("JN" "ઞ્")                               ; not in ITRANS Gujarati table
60   ("T" "ટ્")
61   ("Th" "ઠ્")
62   ("D" "ડ્")
63   ("Dh" "ઢ્")
64   ("N" "ણ્")
65   ("t" "ત્")
66   ("th" "થ્")
67   ("d" "દ્")
68   ("dh" "ધ્")
69   ("n" "ન્")
70   ("p" "પ્")
71   ("ph" "ફ્")
72   ("b" "બ્")
73   ("bh" "ભ્")
74   ("m" "મ્")
75   ("y" "ય્")
76   ("r" "ર્")
77   ("l" "લ્")
78   ("ld" "ળ્")
79   ("L" "ળ્")
80   ("v" "વ્")
81   ("w" "વ્")
82   ("sh" "શ્")
83   ("Sh" "ષ્")
84   ("shh" "ષ્")
85   ("s" "સ્")
86   ("h" "હ્")
87   ("j~n" "જ્ઞ્")
88   ("GY" "જ્ઞ્")
89   ("dny" "જ્ઞ્")                        ; not in ITRANS Gujarati table
90   ("x" "ક્ષ્"))
91
92  (independent
93   ("a" "અ")
94   ("aa" "આ")
95   ("A" "આ")
96   ("i" "ઇ")
97   ("ii" "ઈ")
98   ("I" "ઈ")
99   ("u" "ઉ")
100   ("uu" "ઊ")
101   ("U" "ઊ")
102   ("RRi" "ઋ")
103   ("R^i" "ઋ")
104   (".c" "ઍ")                          ; not in ITRANS Gujarati table
105   ("e.c" "ઍ")
106   ("e" "એ")
107   ("ai" "ઐ")
108   ("o.c" "ઑ")
109   ("o" "ઓ")
110   ("au" "ઔ")
111   ("RRI" "ૠ")                         ; not in ITRANS Gujarati table
112   ("R^I" "ૠ")                         ; not in ITRANS Gujarati table
113   (".N" "ઁ")
114   (".n" "ં")
115   ("M" "ં")
116   ("H" "ઃ")
117   (".a" "ઽ")                          ; not in ITRANS Gujarati table
118   (".h" "્")
119   ("AUM" "ૐ")
120   ("OM" "ૐ")
121   ("0" "૦")
122   ("1" "૧")
123   ("2" "૨")
124   ("3" "૩")
125   ("4" "૪")
126   ("5" "૫")
127   ("6" "૬")
128   ("7" "૭")
129   ("8" "૮")
130   ("9" "૯")
131   ("#" "્ર")                                ; not in ITRANS Gujarati table
132   ("$" "ર્")                                ; not in ITRANS Gujarati table
133   ("^" "ત્ર")                             ; not in ITRANS Gujarati table
134   ("*" "શ્ર")                             ; not in ITRANS Gujarati table
135   ("]" "઼")                           ; not in ITRANS Gujarati table
136   ((KP_1) "૧")
137   ((KP_2) "૨")
138   ((KP_3) "૩")
139   ((KP_4) "૪")
140   ((KP_5) "૫")
141   ((KP_6) "૬")
142   ((KP_7) "૭")
143   ((KP_8) "૮")
144   ((KP_9) "૯")
145   ((KP_0) "૦")
146   ((S-\ ) "‌")                                ; not in ITRANS Gujarati table
147   ((C-@) "‍"))                                ; not in ITRANS Gujarati table
148
149  (dependent
150   ("a" (delete @-) "")
151   ("aa" (delete @-) "ા")
152   ("A" (delete @-) "ા")
153   ("i" (delete @-) "િ")
154   ("ii" (delete @-) "ી")
155   ("I" (delete @-) "ી")
156   ("u" (delete @-) "ુ")
157   ("uu" (delete @-) "ૂ")
158   ("U" (delete @-) "ૂ")
159   ("RRi" (delete @-) "ૃ")
160   ("R^i" (delete @-) "ૃ")
161   ("RRI" (delete @-) "ૄ")             ; not in ITRANS Gujarati table
162   ("R^I" (delete @-) "ૄ")             ; not in ITRANS Gujarati table
163   (".c" (delete @-) "ૅ")
164   ("e.c" (delete @-) "ૅ")             ; not in ITRANS Gujarati table
165   ("e" (delete @-) "ે")
166   ("ai" (delete @-) "ૈ")
167   ("o.c" (delete @-) "ૉ")
168   ("o" (delete @-) "ો")
169   ("au" (delete @-) "ૌ"))
170
171
172  (return
173   ((Return)))
174
175  (backspace
176   ((BackSpace) (undo))))
177
178
179 (state
180  (init
181   (starter (pushback 1) (shift intermediate)))
182
183  (intermediate
184   (consonant (shift second))
185   (independent (shift init))
186   (backspace)
187   (return (shift init)))
188
189  (second
190   (consonant)
191   (dependent (shift init))
192   (backspace)
193   (return (shift init))))
194
195 ;; Local Variables:
196 ;; coding: utf-8
197 ;; mode: emacs-lisp
198 ;; End: