*** empty log message ***
[m17n/m17n-contrib.git] / im / te-pothana.mim
1 ;; te-pothana.mim -- Telugu input method proposed by  Thirumala Krishna Desikachari along with Pothana font for Windows environments.
2 ;; Adapted by Arjuna Rao Chavala (arjunaraoc@googlemail.com) for SCIM-m17n input method based on itrans.mim with minor modifications
3 ;; This file (to be included in m17n-library) is free software; you can redistribute it and/or
4 ;; modify it under the terms of the GNU Lesser General Public License
5 ;; as published by the Free Software Foundation; either version 2.1 of
6 ;; the License, or (at your option) any later version.
7
8 ;; This is distributed in the hope that it will be useful,
9 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ;; Lesser General Public License for more details.
12
13 ;; You should have received a copy of the GNU Lesser General Public
14 ;; License along with the m17n library; if not, write to the Free
15 ;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16 ;; 02111-1307, USA.
17
18 (input-method te pothana)
19
20 (description 
21 "pothana Telugu input method Version 2.0 date 24 Nov 2007
22 Telugu input method by Pothana layout and transliteration 
23 (key pairs have fixed one to one mapping), originally proposed by
24 Thirumala Krishna Desikachari along with Pothana font for Windows 
25 environments. 
26 For the detail of Pothana layout, see the telugu wikipedia page 
27 on Pothana font and download the paper available in that page
28 http://te.wikipedia.org/w/index.php?title=%E0%B0%AA%E0%B1%8B%E0%B0%A4%E0%B0%A8_%28%E0%B0%AB%E0%B0%BE%E0%B0%82%E0%B0%9F%E0%B1%81%29&oldid=188094.
29 the key mappings are in the last two pages of the paper.
30 Alt Key gives third level characters and 
31 Alt+shift key gives fourth level characters
32 Tested on Fedora core 6 under KDE with default US keyboard layout
33 Please give feedback/bugs to arjunaraoc@googlemail.com.
34 #change from previous version
35 base characters now give vowel endings than halanth
36
37 Thanks for your help
38 ")
39
40
41 (title "పో")
42
43 (map
44  (starter
45   ((S-\ )) ((C-@))
46   ((M-0)) ((M-1)) ((M-2)) ((M-3)) ((M-4))
47   ((M-5)) ((M-6)) ((M-7)) ((M-8)) ((M-9))
48  ((M-q)) ((M-e)) ((M-r)) ((M-y)) ((M-u)) ((M-i)) ((M-o)) ((M-\[)) ((M-\]))
49   ((M-a))
50 ;; ((M-l)) to determine unicode
51   ((M-\;)) ((M-\'))
52   ((M-,)) ((M-.))
53 ;;  ((M-/)) avagraha
54   ((M-E)) 
55 ;;  ((S-M-Y)) need to check what 
56  ((M-U)) ((M-I)) ((M-O)) ((M-\[))
57
58   ("{") ("}")
59   ("[") ("]")
60
61   ("A") ("B") ("C") ("D") ("E") ("F") ("G") ("H") ("I") ("J") ("K") ("L")
62   ("M") ("N") ("O") ("P") ("Q") ("R") ("S") ("T") ("U") ("V") ("W") ("X") ("Y") ("Z")
63   ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
64   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
65   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
66
67  (consonant
68   ("k" "క")
69   ("K" "ఖ")
70   ("g" "గ")
71   ("G" "ఘ")
72   ("c" "చ")
73   ("C" "ఛ")
74   ("j" "జ")
75   ("J" "ఝ")
76   ("t" "ట")
77   ("T" "ఠ")
78   ("z" "డ")
79   ("Z" "ఢ")
80   ("N" "ణ")
81   ("w" "త")
82   ("W" "థ")
83   ("d" "ద")
84   ("D" "ధ")
85   ("n" "న")
86   ("p" "ప")
87   ("P" "ఫ")
88   ("b" "బ")
89   ("B" "భ")
90   ("m" "మ")
91   ("y" "య")
92   ("r" "ర")
93   ("R" "ఱ")
94   ("H" "హ")
95   ("l" "ల")
96   ("L" "ళ")
97   ("v" "వ")
98   ("S" "శ")
99   ("x" "ష")
100   ("s" "స")
101   ("X" "క్ష")
102   ("h" "్")
103   ("M" "ఙ")
104   ("V" "ఞ"))
105
106  (independent
107   ("a" "అ")
108   ("A" "ఆ")
109   ("i" "ఇ")
110   ("I" "ఈ")
111   ("u" "ఉ")
112   ("U" "ఊ")
113   ("q" "ఋ")
114   ("Q" "ౠ")
115           ("{" "ఌ")
116           ("}" "ౡ")
117   ("e" "ఎ")
118   ("E" "ఏ")
119   ("Y" "ఐ")
120   ("o" "ఒ")
121   ("O" "ఓ")
122            ("[" "ఔ")
123
124   ("f" "ం")                   
125   ("F" "ఁ")
126                 
127            ("]" "ః")
128  ;; (".a" "ఽ")                                ; not in Unicode 4.1
129   ((M-0) "౦")
130   ((M-1) "౧")
131   ((M-2) "౨")
132   ((M-3) "౩")
133   ((M-4) "౪")
134   ((M-5) "౫")
135   ((M-6) "౬")
136   ((M-7) "౭")
137   ((M-8) "౮")
138   ((M-9) "౯")
139  
140   ((M-q) "ృ")
141   ((M-e) "ి") 
142   ((M-r) "ౄ")
143   ((M-y)  "ై")
144   ((M-u) "ు")
145   ((M-i) "ి") 
146   ((M-o) "ొ")
147   ((M-\[) "[")
148   ((M-\]) "]")
149   ((M-a) "ా")
150 ;;  ((M-l) )  to determine unicode for this matra lu in ottu form
151   ((M-\;) "{") 
152   ((M-\')  "}")
153   ((M-,)  08205) ;; ZWJ
154   ((M-.)  08204) ;; ZWNJ
155 ;;  ((M-/) )  avagraha
156   ((M-E) "ీ") 
157 ;;  ((M-Y)) need to check this with Tirumala is it tsa matra?
158   ((M-U) "ూ") 
159   ((M-I) "ీ")
160   ((M-O) "ో") 
161   ((M-\[)"ౌ")
162   ((S-\ ) "‌")                                ; not in ITRANS Telugu table
163   ((C-@) "‍"))                                ; not in ITRANS Telugu table
164
165  (dependent
166   ("a"  "")
167   ("A"  "ా")
168   ("i"  "ి")
169   ("I" "ీ")
170   ("u" "ు")
171   ("U" "ూ")
172   ("q"  "ృ")
173   ("Q"  "ౄ")
174   ("e"  "ె")
175   ("E" "ే")
176   ("Y"  "ై")
177   ("o" "ొ")
178   ("O" "ో")
179             ("[" "ౌ"))
180
181  (return
182   ((Return)))
183
184  (backspace
185   ((BackSpace) (undo))))
186
187 (state
188  (init
189   (starter (pushback 1) (shift intermediate)))
190
191  (intermediate
192   (consonant (shift second))
193   (independent (shift init))
194   (backspace)
195   (return (shift init)))
196
197  (second
198   (consonant)
199   (dependent (shift init))
200   (backspace)
201   (return (shift init))))
202
203 ;; Local Variables:
204 ;; coding: utf-8
205 ;; mode: emacs-lisp
206 ;; End: