815687897c803287bbcdec579a0ee6879b631b4b
[m17n/m17n-contrib.git] / im / ta-vutam.mim
1 ;; ta-vutam.mim -- Tamil input method for "vutam"  Type_As_You_Write layout
2 ;; Copyright (c) 2009 V.Ramasami <v.ramasami@gmail.com>
3
4 ;; This file is part of the m17n contrib; a sub-part of the m17n library.
5
6 ;; The m17n library is free software; you can redistribute it and/or
7 ;; modify it under the terms of the GNU Lesser General Public License
8 ;; as published by the Free Software Foundation; either version 2.1 of
9 ;; the License, or (at your option) any later version.
10
11 ;; The m17n library is distributed in the hope that it will be useful,
12 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 ;; Lesser General Public License for more details.
15
16 ;; You should have received a copy of the GNU Lesser General Public
17 ;; License along with the m17n library; if not, write to the Free
18 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 ;; Boston, MA 02110-1301, USA.
20
21
22 ;; Begin author's comments:
23
24 ;; Vutam Type_As_You_Write is suitable for 3 basket mechanical type writers.
25 ;; Meant for those who know to write Tamil.
26 ;; Had the Unicode encoding scheme followed that of TSCII, Vutam can run even in unintelligent keyboards with atleast three baskets.
27 ;; The intelligent SCIM supports many baskets; the third basket is selected in it, by pressing any Alt. key & a Normal key together.
28 ;; Basket one Normal: Short vowels & Consonants.
29 ;; Basket two Shift: Long vowels & consonants with "u" vowel mark.
30 ;; Basket three Alt.: Tamil abbreviations, Numerals & consonants with "U" vowel mark. (H & Alt. h may also be used to get u & U vowel mark hooks.)
31 ;; SCIM's frontend globalsetup trigger may be configured, not to include Alt. grave, since Alt. `  has to produce ` in our layout.
32 ;; Hence the name: VUTAM.
33 ;; The vowel marks: "ai", "e" and  "E"  to be typed before the consonants, as in writing Tamil.
34 ;; Hence the name: Type_As_You_Write.
35 ;; Key allocation scheme: (1). No logic: \ & q  (2). Script similarity: w & f  (3). Convention: z,x & b(big)  & (4). Phonetic similarity: Rest.
36 ;;
37 ;; Author: V.Ramasami <v.ramasami@gmail.com>, www.geocities.com/vee_ramasami
38
39 ;; End author's comments.
40
41
42 (input-method ta vutam)
43 (title "க")
44 (map
45  (trans
46
47   ("`" ?ௗ)
48   ((A-`) ?`)
49   ((A-1) ?௧)
50   ((A-2) ?௨)
51   ((A-3) ?௩)
52   ((A-4) ?௪)
53   ((A-5) ?௫)
54   ((A-6) ?௬)
55   ((A-7) ?௭)
56   ((A-8) ?௮)
57   ((A-9) ?௯)
58   ((A-0) ?0)
59   ((A--) ?{)
60   ((A-=) ?})
61   ("q" ?ந)
62   ("Q" "நு")
63   ((A-q) "நூ")
64   ("w" ?ய)
65   ("W" "யு")
66   ((A-w) "யூ")
67   ("e" ?இ)
68   ("E" ?ஈ)
69   ((A-e) ?௹)
70   ("r" ?ர)
71   ("R" "ரு")
72   ((A-r) "ரூ")
73   ("t" ?த)
74   ("T" "து")
75   ((A-t) "தூ")
76   ("y" ?எ)
77   ("Y" ?ஏ)
78   ((A-y) ?௵)
79   ("u" ?உ)
80   ("U" ?ஊ)
81   ((A-u) ?௴)
82   ("i" ?ஐ)
83   ("I" " ை")
84   ((A-i) ?௳)
85   ("o" ?ஒ)
86   ("O" ?ஓ)
87   ((A-o) ?௸)
88   ("p" ?ப)
89   ("P" "பு")
90   ((A-p) "பூ")
91   ("[" " ெ")
92   ("{" " ே")
93   ((A-[) ?[)
94   ("]" ?ி)
95   ("}" ?ீ)
96   ((A-]) ?])
97   ("\\" ?ஞ)
98   ("|" "ஞு")
99   ((A-\\) "ஞூ")
100   ("a" ?அ)
101   ("A" ?ஆ)
102   ((A-a) ?ஃ)
103   ("s" ?ஸ)
104   ("S" ?ஷ)
105   ((A-s) "ஸ்ரீ")
106   ("d" ?ட)
107   ("D" "டு")
108   ((A-d) "டூ")
109   ("f" ?ள)
110   ("F" "ளு")
111   ((A-f) "ளூ")
112   ("g" ?ங)
113   ("G" "ஙு")
114   ((A-g) "ஙூ")
115   ("h" ?ஹ)
116   ("H" ?ு)
117   ((A-h) ?ூ)
118   ("j" ?ஜ)
119   ("J" "க்ஷ")
120   ((A-j) ?௺)
121   ("k" ?க)
122   ("K" "கு")
123   ((A-k) "கூ")
124   ("l" ?ல)
125   ("L" "லு")
126   ((A-l) "லூ")
127   ((A-;) ?§)
128   ("'" ?்)
129   ((A-') ?')
130   ("z" ?ழ)
131   ("Z" "ழு")
132   ((A-z) "ழூ")
133   ("x" ?ற)
134   ("X" "று")
135   ((A-x) "றூ")
136   ("c" ?ச)
137   ("C" "சு")
138   ((A-c) "சூ")
139   ("v" ?வ)
140   ("V" "வு")
141   ((A-v) "வூ")
142   ("b" ?ண)
143   ("B" "ணு")
144   ((A-b) "ணூ")
145   ("n" ?ன)
146   ("N" "னு")
147   ((A-n) "னூ")
148   ("m" ?ம)
149   ("M" "மு")
150   ((A-m) "மூ")
151   ((A-,) ?\\)
152   ((A-.) ?|)
153   ("/" ?ா)
154   ((A-/) ?/)
155   ("o`" ?ஔ)
156   ("[k" "கெ")
157   ("[c" "செ")
158   ("[d" "டெ")
159   ("[t" "தெ")
160   ("[p" "பெ")
161   ("[x" "றெ")
162   ("[w" "யெ")
163   ("[r" "ரெ")
164   ("[l" "லெ")
165   ("[v" "வெ")
166   ("[z" "ழெ")
167   ("[f" "ளெ")
168   ("[g" "ஙெ")
169   ("[`" "ஞெ")
170   ("[b" "ணெ")
171   ("[q" "நெ")
172   ("[m" "மெ")
173   ("[n" "னெ")
174   ("[s" "ஸெ")
175   ("[h" "ஹெ")
176   ("[j" "ஜெ")
177   ("[S" "ஷெ")
178   ("[J" "க்ஷெ")
179   ("Ik" "கை")
180   ("Ic" "சை")
181   ("Id" "டை")
182   ("It" "தை")
183   ("Ip" "பை")
184   ("Ix" "றை")
185   ("Iw" "யை")
186   ("Ir" "ரை")
187   ("Il" "லை")
188   ("Iv" "வை")
189   ("Iz" "ழை")
190   ("If" "ளை")
191   ("Ig" "ஙை")
192   ("I`" "ஞை")
193   ("Ib" "ணை")
194   ("Iq" "நை")
195   ("Im" "மை")
196   ("In" "னை")
197   ("Is" "ஸை")
198   ("Ih" "ஹை")
199   ("Ij" "ஜை")
200   ("IS" "ஷை")
201   ("IJ" "க்ஷை")
202   ("{k" "கே")
203   ("{c" "சே")
204   ("{d" "டே")
205   ("{t" "தே")
206   ("{p" "பே")
207   ("{x" "றே")
208   ("{w" "யே")
209   ("{r" "ரே")
210   ("{l" "லே")
211   ("{v" "வே")
212   ("{z" "ழே")
213   ("{f" "ளே")
214   ("{g" "ஙே")
215   ("{`" "ஞே")
216   ("{b" "ணே")
217   ("{q" "நே")
218   ("{m" "மே")
219   ("{n" "னே")
220   ("{s" "ஸே")
221   ("{h" "ஹே")
222   ("{j" "ஜே")
223   ("{S" "ஷே")
224   ("{J" "க்ஷே")
225
226 ))
227
228 (state
229   (init
230     (trans)))