*** empty log message ***
[m17n/m17n-db.git] / gu-itrans.mim
1 ;; gu-itrans.mim -- Gujarati input method with ITRANS method
2 ;; Copyright (C) 2003, 2004, 2005, 2006
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 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
44  (consonant
45   ("k" "ક્")
46   ("kh" "ખ્")
47   ("g" "ગ્")
48   ("gh" "ઘ્")
49   ("~N" "ઙ્")                               ; not in ITRANS Gujarati table
50   ("N^" "ઙ્")                               ; not in ITRANS Gujarati table
51   ("ch" "ચ્")
52   ("Ch" "છ્")
53   ("chh" "છ્")
54   ("j" "જ્")
55   ("jh" "ઝ્")
56   ("~n" "ઞ્")                               ; not in ITRANS Gujarati table
57   ("JN" "ઞ્")                               ; not in ITRANS Gujarati table
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   ("l" "લ્")
76   ("ld" "ળ્")
77   ("L" "ળ્")
78   ("v" "વ્")
79   ("w" "વ્")
80   ("sh" "શ્")
81   ("Sh" "ષ્")
82   ("shh" "ષ્")
83   ("s" "સ્")
84   ("h" "હ્")
85   ("j~n" "જ્ઞ્")
86   ("GY" "જ્ઞ્")
87   ("dny" "જ્ઞ્")                        ; not in ITRANS Gujarati table
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   (".c" "ઍ")                          ; not in ITRANS Gujarati table
103   ("e.c" "ઍ")
104   ("e" "એ")
105   ("ai" "ઐ")
106   ("o.c" "ઑ")
107   ("o" "ઓ")
108   ("au" "ઔ")
109   ("RRI" "ૠ")                         ; not in ITRANS Gujarati table
110   ("R^I" "ૠ")                         ; not in ITRANS Gujarati table
111   (".N" "ઁ")
112   (".n" "ં")
113   ("M" "ં")
114   ("H" "ઃ")
115   (".a" "ઽ")                          ; not in ITRANS Gujarati table
116   (".h" "્")
117   ("AUM" "ૐ")
118   ("OM" "ૐ")
119   ("0" "૦")
120   ("1" "૧")
121   ("2" "૨")
122   ("3" "૩")
123   ("4" "૪")
124   ("5" "૫")
125   ("6" "૬")
126   ("7" "૭")
127   ("8" "૮")
128   ("9" "૯")
129   ("#" "્ર")                                ; not in ITRANS Gujarati table
130   ("$" "ર્")                                ; not in ITRANS Gujarati table
131   ("^" "ત્ર")                             ; not in ITRANS Gujarati table
132   ("*" "શ્ર")                             ; not in ITRANS Gujarati table
133   ("]" "઼")                           ; not in ITRANS Gujarati table
134   ((S-\ ) "‌")                                ; not in ITRANS Gujarati table
135   ((C-@) "‍"))                                ; not in ITRANS Gujarati table
136
137  (dependent
138   ("a" (delete @-) "")
139   ("aa" (delete @-) "ા")
140   ("A" (delete @-) "ા")
141   ("i" (delete @-) "િ")
142   ("ii" (delete @-) "ી")
143   ("I" (delete @-) "ી")
144   ("u" (delete @-) "ુ")
145   ("uu" (delete @-) "ૂ")
146   ("U" (delete @-) "ૂ")
147   ("RRi" (delete @-) "ૃ")
148   ("R^i" (delete @-) "ૃ")
149   ("RRI" (delete @-) "ૄ")             ; not in ITRANS Gujarati table
150   ("R^I" (delete @-) "ૄ")             ; not in ITRANS Gujarati table
151   (".c" (delete @-) "ૅ")
152   ("e.c" (delete @-) "ૅ")             ; not in ITRANS Gujarati table
153   ("e" (delete @-) "ે")
154   ("ai" (delete @-) "ૈ")
155   ("o.c" (delete @-) "ૉ")
156   ("o" (delete @-) "ો")
157   ("au" (delete @-) "ૌ"))
158
159
160  (return
161   ((Return)))
162
163  (backspace
164   ((BackSpace) (undo))))
165
166
167 (state
168  (init
169   (starter (pushback 1) (shift intermediate)))
170
171  (intermediate
172   (consonant (shift second))
173   (independent (shift init))
174   (backspace)
175   (return (shift init)))
176
177  (second
178   (consonant)
179   (dependent (shift init))
180   (backspace)
181   (return (shift init))))
182
183 ;; Local Variables:
184 ;; coding: utf-8
185 ;; mode: emacs-lisp
186 ;; End: