Merged with m17n-contrib/im/bn-itrans.mim.
[m17n/m17n-db.git] / MIM / bn-itrans.mim
1 ;; bn-itrans.mim -- Bengali 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 bn itrans)
25
26 (description "Bengali input method by ITRANS transliteration.
27
28 Itrans Bengali Keymap Layout created by Avinash Chopde in
29 accordance with the details in the following link:
30
31 http://www.aczoom.com/itrans/beng/node4.html
32
33 Key Summary:
34
35 The consonant alphabets are represented as half-characters by
36 default i.e. k = ক্ . To complete the character please use 'a'
37 representing 'অ' i.e. ka=ক. Consonant conjuncts can be created by
38 writing the consonant characters in sequential order. To complete
39 the conjunct either 'অ' or any other dependent vowel [অ (a),
40 া(aa), ি(i), ী(ii), ু(u), ূ(uu), ে(e), ৈ(ai), ো (o), ৌ (au)] needs
41 to be added at the end.
42
43 E.g. ক্রিয়া = k+r+i+Y+A
44
45 To write 'Khaanda-ta' (ৎ) use the key combination : t.h
46
47 Detailed instructions for typing are available at the above mentioned link
48
49 The following keysequences are not defined in the mentioned page,
50 but added for users' sake:
51
52 Ch JN shh yh dny LLi L^i RRI R^I LLI L^I # $ ^ * ] S-\ C-@
53 ")
54
55 (title "ক")
56
57 (map
58  (starter
59   (".") ("~") ("#") ("$") ("^") ("*") ((S-\ )) ((C-@))
60   ("0") ("1") ("2") ("3") ("4")
61   ("5") ("6") ("7") ("8") ("9")
62   ("A") ("C") ("D") ("G") ("H") ("I") ("J") ("K") ("L")
63   ("M") ("N") ("O") ("R") ("S") ("T") ("U") ("Y")
64   ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
65   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
66   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z")
67   ((KP_1)) ((KP_2)) ((KP_3)) ((KP_4)) ((KP_5))
68   ((KP_6)) ((KP_7)) ((KP_8)) ((KP_9)) ((KP_0)))
69
70  (consonant
71   ("k" "ক্")
72   ("kh" "খ্")
73   ("g" "গ্")
74   ("gh" "ঘ্")
75   ("~N" "ঙ্")
76   ("N^" "ঙ্")
77   ("ch" "চ্")
78   ("chh" "ছ্")
79   ("Ch" "ছ্")                               ; not in ITRANS Bengali table
80   ("j" "জ্")
81   ("jh" "ঝ্")
82   ("~n" "ঞ্")
83   ("n^" "ঞ্")
84   ("JN" "ঞ্")                               ; not in ITRANS Bengali table
85   ("T" "ট্")
86   ("Th" "ঠ্")
87   ("D" "ড্")
88   ("Dh" "ঢ্")
89   ("N" "ণ্")
90   ("t" "ত্")
91   ("th" "থ্")
92   ("d" "দ্")
93   ("dh" "ধ্")
94   ("n" "ন্")
95   ("p" "প্")
96   ("ph" "ফ্")
97   ("b" "ব্")
98   ("bh" "ভ্")
99   ("m" "ম্")
100   ("J" "য্")
101   ("y" "য্")
102   ("r" "র্")
103   ("l" "ল্")
104   ("sh" "শ্")
105   ("Sh" "ষ্")
106   ("shh" "ষ্")                              ; not in ITRANS Bengali table
107   ("s" "স্")
108   ("h" "হ্")
109   (".D" "ড়্")
110   (".Dh" "ঢ়্")
111   ("Y" "য়্")
112   ("yh" "য়্")                               ; not in ITRANS Bengali table
113   ("GY" "জ্ঞ্")
114   ("dny" "জ্ঞ্")                        ; not in ITRANS Bengali table
115   ("x" "ক্ষ্"))
116
117  (independent
118   ("a" "অ")
119   ("aa" "আ")
120   ("A" "আ")
121   ("i" "ই")
122   ("ii" "ঈ")
123   ("I" "ঈ")
124   ("u" "উ")
125   ("uu" "ঊ")
126   ("U" "ঊ")
127   ("RRi" "ঋ")
128   ("R^i" "ঋ")
129   ("LLi" "ঌ")                         ; not in ITRANS Bengali table
130   ("L^i" "ঌ")                         ; not in ITRANS Bengali table
131   ("e" "এ")
132   ("ai" "ঐ")
133   ("o" "ও")
134   ("au" "ঔ")
135   ("RRI" "ৠ")                         ; not in ITRANS Bengali table
136   ("R^I" "ৠ")                         ; not in ITRANS Bengali table
137   ("LLI" "ৡ")                         ; not in ITRANS Bengali table
138   ("L^I" "ৡ")                         ; not in ITRANS Bengali table
139   (".N" "ঁ")
140   (".n" "ং")
141   ("M" "ং")                           ; not in ITRANS Bengali table
142   ("H" "ঃ")
143   (".h" "্")
144   ("t.h" "ৎ")
145   ("0" "০")
146   ("1" "১")
147   ("2" "২")
148   ("3" "৩")
149   ("4" "৪")
150   ("5" "৫")
151   ("6" "৬")
152   ("7" "৭")
153   ("8" "৮")
154   ("9" "৯")
155   ("#" "্র")                                ; not in ITRANS Bengali table
156   ("$" "র্")                                ; not in ITRANS Bengali table
157   ("^" "ত্র")                             ; not in ITRANS Bengali table
158   ("*" "শ্র")                             ; not in ITRANS Bengali table
159   ("]" "়")                           ; not in ITRANS Bengali table
160   ((KP_1) "১")
161   ((KP_2) "২")
162   ((KP_3) "৩")
163   ((KP_4) "৪")
164   ((KP_5) "৫")
165   ((KP_6) "৬")
166   ((KP_7) "৭")
167   ((KP_8) "৮")
168   ((KP_9) "৯")
169   ((KP_0) "০")
170   ((S-\ ) "‌")                                ; not in ITRANS Bengali table
171   ((C-@) "‍"))                                ; not in ITRANS Bengali table
172
173  (dependent
174   ("a" (delete @-) "")
175   ("aa" (delete @-) "া")
176   ("A" (delete @-) "া")
177   ("i" (delete @-) "ি")
178   ("ii" (delete @-) "ী")
179   ("I" (delete @-) "ী")
180   ("u" (delete @-) "ু")
181   ("uu" (delete @-) "ূ")
182   ("U" (delete @-) "ূ")
183   ("RRi" (delete @-) "ৃ")
184   ("R^i" (delete @-) "ৃ")
185   ("LLi" (delete @-) "ৢ")             ; not in ITRANS Bengali table
186   ("L^i" (delete @-) "ৢ")             ; not in ITRANS Bengali table
187   ("e" (delete @-) "ে")
188   ("ai" (delete @-) "ৈ")
189   ("o" (delete @-) "ো")
190   ("au" (delete @-) "ৌ")
191   ("RRI" (delete @-) "ৄ")             ; not in ITRANS Bengali table
192   ("R^I" (delete @-) "ৄ")             ; not in ITRANS Bengali table
193   ("LLI" (delete @-) "ৣ")             ; not in ITRANS Bengali table
194   ("L^I" (delete @-) "ৣ"))            ; not in ITRANS Bengali table
195
196  (return
197   ((Return)))
198
199  (backspace
200   ((BackSpace) (undo))))
201
202 (state
203  (init
204   (starter (pushback 1) (shift intermediate)))
205
206  (intermediate
207   (consonant (shift second))
208   (independent (shift init))
209   (backspace)
210   (return (shift init)))
211
212  (second
213   (consonant)
214   (dependent (shift init))
215   (backspace)
216   (return (shift init))))
217
218 ;; Local Variables:
219 ;; coding: utf-8
220 ;; mode: emacs-lisp
221 ;; End: