Add special ligature SRI.
[m17n/m17n-db.git] / hi-itrans.mim
1 ;; hi-itrans.mim -- Hindi 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 hi itrans)
25
26 (description "Hindi 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   ("nh" "ऩ्")
69   ("p" "प्")
70   ("ph" "फ्")
71   ("b" "ब्")
72   ("bh" "भ्")
73   ("m" "म्")
74   ("y" "य्")
75   ("r" "र्")
76   ("rh" "ऱ्")
77   ("l" "ल्")
78   ("L" "ळ्")
79   ("ld" "ळ्")
80   ("v" "व्")
81   ("w" "व्")
82   ("sh" "श्")
83   ("Sh" "ष्")
84   ("shh" "ष्")
85   ("s" "स्")
86   ("h" "ह्")
87   ("q" "क़्")
88   ("K" "ख़्")
89   ("G" "ग़्")
90   ("J" "ज़्")
91   ("z" "ज़्")
92   (".D" "ड़्")
93   (".Dh" "ढ़्")
94   ("f" "फ़्")
95   ("Y" "य़्")
96   ("yh" "य़्")
97   ("GY" "ज्ञ्")
98   ("dny" "ज्ञ्")
99   ("x" "क्ष्"))
100
101  (independent
102   ("a" "अ")
103   ("aa" "आ")
104   ("A" "आ")
105   ("i" "इ")
106   ("ii" "ई")
107   ("I" "ई")
108   ("u" "उ")
109   ("uu" "ऊ")
110   ("U" "ऊ")
111   ("RRi" "ऋ")
112   ("R^i" "ऋ")
113   ("LLi" "ऌ")
114   ("L^i" "ऌ")
115   (".c" "ऍ")
116   ("e.c" "ऍ")
117   ("E" "ऎ")
118   ("e" "ए")
119   ("ai" "ऐ")
120   ("o.c" "ऑ")
121   ("O" "ऒ")
122   ("o" "ओ")
123   ("au" "औ")
124   ("RRI" "ॠ")
125   ("R^I" "ॠ")
126   ("LLI" "ॡ")
127   ("L^I" "ॡ")
128   (".N" "ँ")
129   (".n" "ं")
130   ("M" "ं")
131   ("H" "ः")
132   (".a" "ऽ")
133   (".h" "्")
134   ("AUM" "ॐ")
135   ("OM" "ॐ")
136   (".." "।")
137   ("0" "०")
138   ("1" "१")
139   ("2" "२")
140   ("3" "३")
141   ("4" "४")
142   ("5" "५")
143   ("6" "६")
144   ("7" "७")
145   ("8" "८")
146   ("9" "९")
147   ("#" "्र")
148   ("$" "र्")
149   ("^" "त्र")
150   ("*" "श्र")
151   ("]" "़")
152   ((S-\ ) "‌")
153   ((C-@) "‍"))
154
155  (dependent
156   ("a" (delete @-) "")
157   ("aa" (delete @-) "ा")
158   ("A" (delete @-) "ा")
159   ("i" (delete @-) "ि")
160   ("ii" (delete @-) "ी")
161   ("I" (delete @-) "ी")
162   ("u" (delete @-) "ु")
163   ("uu" (delete @-) "ू")
164   ("U" (delete @-) "ू")
165   ("RRi" (delete @-) "ृ")
166   ("R^i" (delete @-) "ृ")
167   ("LLi" (delete @-) "ॢ")
168   ("L^i" (delete @-) "ॢ")
169   (".c" (delete @-) "ॅ")
170   ("e.c" (delete @-) "ॅ")
171   ("E" (delete @-) "ॆ")
172   ("e" (delete @-) "े")
173   ("ai" (delete @-) "ै")
174   ("o.c" (delete @-) "ॉ")
175   ("O" (delete @-) "ॊ")
176   ("o" (delete @-) "ो")
177   ("au" (delete @-) "ौ")
178   ("RRI" (delete @-) "ॄ")
179   ("R^I" (delete @-) "ॄ")
180   ("LLI" (delete @-) "ॣ")
181   ("L^I" (delete @-) "ॣ"))
182
183  (return
184   ((Return)))
185
186  (backspace
187   ((BackSpace) (undo))))
188
189 (state
190  (init
191   (starter (pushback 1) (shift intermediate)))
192
193  (intermediate
194   (consonant (shift second))
195   (independent (shift finish))
196   (backspace)
197   (return (shift init)))
198
199  (second
200   (consonant)
201   (dependent (shift finish))
202   (backspace)
203   (return (shift init)))
204
205  (finish
206   (return)
207   (t (shift init))))
208
209 ;; Local Variables:
210 ;; coding: utf-8
211 ;; mode: lisp
212 ;; End: