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