(INPUT_METHOD): Add vi-base.mim.
[m17n/m17n-db.git] / MIM / ta-itrans.mim
1 ;; ta-itrans.mim -- Tamil 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 ta itrans)
25
26 (description "Tamil 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") ("E") ("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   ("g" "க்")
49   ("~N" "ங்")
50   ("N^" "ங்")
51   ("ch" "ச்")
52   ("j" "ஜ்")
53   ("~n" "ஞ்")
54   ("JN" "ஞ்")                               ; not in ITRANS Tamil table
55   ("T" "ட்")
56   ("Th" "ட்")
57   ("N" "ண்")
58   ("t" "த்")
59   ("th" "த்")
60   ("n" "ந்")
61   ("^n" "ன்")
62   ("nh" "ன்")                               ; not in ITRANS Tamil table
63   ("p" "ப்")
64   ("b" "ப்")
65   ("m" "ம்")
66   ("y" "ய்")
67   ("r" "ர்")
68   ("R" "ற்")
69   ("rh" "ற்")                               ; not in ITRANS Tamil table
70   ("l" "ல்")
71   ("L" "ள்")
72   ("ld" "ள்")
73   ("J" "ழ்")
74   ("z" "ழ்")
75   ("v" "வ்")
76   ("w" "வ்")
77   ;; ("sh" "ஶ")                               ; not in Unicode 4.1
78   ("Sh" "ஷ்")
79   ("shh" "ஷ்")                              ; not in ITRANS Tamil table
80   ("s" "ஸ்")
81   ("h" "ஹ்")
82   ("GY" "ஜ்ஞ்")                         ; not in ITRANS Tamil table
83   ("dny" "ஜ்ஞ்")                        ; not in ITRANS Tamil table
84   ("x" "க்ஷ்")
85   ("ksh" "க்ஷ்"))
86
87  (independent
88   ("a" "அ")
89   ("aa" "ஆ")
90   ("A" "ஆ")
91   ("i" "இ")
92   ("ii" "ஈ")
93   ("I" "ஈ")
94   ("u" "உ")
95   ("uu" "ஊ")
96   ("U" "ஊ")
97   ("e" "எ")
98   ("E" "ஏ")
99   ("ee" "ஏ")                          ; not in ITRANS Tamil table
100   ("ai" "ஐ")
101   ("o" "ஒ")
102   ("O" "ஓ")
103   ("oo" "ஓ")                          ; not in ITRANS Tamil table
104   ("au" "ஔ")
105   (".n" "ஂ")                          ; not in ITRANS Tamil table
106   ("M" "ஂ")                           ; not in ITRANS Tamil table
107   ("q" "ஃ")
108   ("H" "ஃ")                           ; not in ITRANS Tamil table
109   (".h" "்")                          ; not in ITRANS Tamil table
110   ("0" "௦")
111   ("1" "௧")
112   ("2" "௨")
113   ("3" "௩")
114   ("4" "௪")
115   ("5" "௫")
116   ("6" "௬")
117   ("7" "௭")
118   ("8" "௮")
119   ("9" "௯")
120   ("#" "்ர")                                ; not in ITRANS Tamil table
121   ("$" "ர்")                                ; not in ITRANS Tamil table
122   ("^" "த்ர")                             ; not in ITRANS Tamil table
123   ((KP_1) "௧")
124   ((KP_2) "௨")
125   ((KP_3) "௩")
126   ((KP_4) "௪")
127   ((KP_5) "௫")
128   ((KP_6) "௬")
129   ((KP_7) "௭")
130   ((KP_8) "௮")
131   ((KP_9) "௯")
132   ((KP_0) "௦")
133   ((S-\ ) "‌")                                ; not in ITRANS Tamil table
134   ((C-@) "‍"))                                ; not in ITRANS Tamil table
135
136  (dependent
137   ("a" (delete @-) "")
138   ("aa" (delete @-) "ா")
139   ("A" (delete @-) "ா")
140   ("i" (delete @-) "ி")
141   ("ii" (delete @-) "ீ")
142   ("I" (delete @-) "ீ")
143   ("u" (delete @-) "ு")
144   ("uu" (delete @-) "ூ")
145   ("U" (delete @-) "ூ")
146   ("e" (delete @-) "ெ")
147   ("E" (delete @-) "ே")
148   ("ee" (delete @-) "ே")              ; not in ITRANS Tamil table
149   ("ai" (delete @-) "ை")
150   ("o" (delete @-) "ொ")
151   ("O" (delete @-) "ோ")
152   ("oo" (delete @-) "ோ")              ; not in ITRANS Tamil table
153   ("au" (delete @-) "ௌ"))
154
155  (return
156   ((Return)))
157
158  (backspace
159   ((BackSpace) (undo))))
160
161 (state
162  (init
163   (starter (pushback 1) (shift intermediate)))
164
165  (intermediate
166   (consonant (shift second))
167   (independent (shift init))
168   (backspace)
169   (return (shift init))
170   (nil (shift init)))
171
172  (second
173   (consonant)
174   (dependent (shift init))
175   (backspace)
176   (return (shift init))))
177
178 ;; Local Variables:
179 ;; coding: utf-8
180 ;; mode: emacs-lisp
181 ;; End: