*** empty log message ***
[m17n/m17n-contrib.git] / im / kn-kgp.mim
1 ;; kn-kgp.mim -- Kannada input method with KGP method
2 ;;   Copyright (C) 2008
3 ;;   Sridhar M.A., Mysore; mas@mylug.org
4
5 ;; Modified for better visual appeal by Prasad H. L. hlprasu@gmail.com
6
7
8 ;; This file is part of the m17n contrib; a sub-part of the m17n
9 ;; library.
10
11 ;; The m17n library is free software; you can redistribute it and/or
12 ;; modify it under the terms of the GNU Lesser General Public License
13 ;; as published by the Free Software Foundation; either version 2.1 of
14 ;; the License, or (at your option) any later version.
15
16 ;; The m17n library is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19 ;; Lesser General Public License for more details.
20
21 ;; You should have received a copy of the GNU Lesser General Public
22 ;; License along with the m17n library; if not, write to the Free
23 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02110-1301, USA.
25
26 (input-method kn kgp)
27
28 (description "Kannada input method by KGP method.
29 ")
30
31 (title "ಕ")
32
33 (map
34  (starter
35   ("0") ("1") ("2") ("3") ("4")
36   ("5") ("6") ("7") ("8") ("9")
37   ("A") ("B") ("C") ("D") ("E") ("G") ("H") ("I") ("J") ("K") 
38   ("L") ("M") ("N") ("O") ("P") ("Q") ("R") ("S") ("T") ("U")
39   ("V") ("W") ("Y") ("Z")
40   ("a") ("b") ("c") ("d") ("e") ("g") ("h") ("i")
41   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
42   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
43
44  (consonant
45   ("k" "ಕ")
46   ("K" "ಖ")
47   ("g" "ಗ")
48   ("G" "ಘ")
49   ("Z" "ಙ")
50   ("c" "ಚ")
51   ("C" "ಛ")
52   ("j" "ಜ")
53   ("jX" "ಜ಼")
54   ("J" "ಝ")
55   ("z" "ಞ")
56   ("q" "ಟ")
57   ("Q" "ಠ")
58   ("w" "ಡ")
59   ("W" "ಢ")
60   ("N" "ಣ")
61   ("t" "ತ")
62   ("T" "ಥ")
63   ("d" "ದ")
64   ("D" "ಧ")
65   ("n" "ನ")
66   ("p" "ಪ")
67   ("P" "ಫ")
68   ("PX" "ಫ಼")
69   ("b" "ಬ")
70   ("B" "ಭ")
71   ("m" "ಮ")
72   ("y" "ಯ")
73   ("r" "ರ")
74   ("rX" "ಱ")
75   ("l" "ಲ")
76   ("v" "ವ")
77   ("S" "ಶ")
78   ("x" "ಷ")
79   ("s" "ಸ")
80   ("h" "ಹ")
81   ("L" "ಳ")
82   ("LX" "ೞ"))
83
84  (independent
85   ("a" "ಅ")
86   ("A" "ಆ")
87   ("i" "ಇ")
88   ("I" "ಈ")
89   ("u" "ಉ")
90   ("U" "ಊ")
91   ("R" "ಋ")
92   ("RU" "ೠ")
93   ("e" "ಎ")
94   ("E" "ಏ")
95   ("Y" "ಐ")
96   ("o" "ಒ")
97   ("O" "ಓ")
98   ("V" "ಔ")
99   ("|" "।")
100   ("||" "॥")
101   ("sX" "ಽ")
102   ("0" "೦")
103   ("1" "೧")
104   ("2" "೨")
105   ("3" "೩")
106   ("4" "೪")
107   ("5" "೫")
108   ("6" "೬")
109   ("7" "೭")
110   ("8" "೮")
111   ("9" "೯"))
112
113  (halantha
114    ("f" "್")
115    ("ff" "್‌"))
116  
117  (ayogavaaha
118   ("M" "ಂ")
119   ("H" "ಃ"))
120
121  (dependent
122   ("A" "ಾ")
123   ("i" "ಿ")
124   ("I" "ೀ")
125   ("u" "ು")
126   ("U" "ೂ")
127   ("R" "ೃ")
128   ("RX" "ೄ")
129   ("e" "ೆ")
130   ("E" "ೇ")
131   ("Y" "ೈ")
132   ("o" "ೊ")
133   ("O" "ೋ")
134   ("V" "ೌ"))
135
136  (return
137   ((Return)))
138
139  (backspace
140   ((BackSpace) (undo))))
141
142 (state
143  (init
144   (starter (pushback 1) (shift start)))
145
146  (start
147   (consonant (shift first))
148   (independent (shift ayogavaaha))
149   (backspace)
150   (return (shift init)))
151
152  (first
153   (consonant (set a @-1) (undo -1) (commit) (pushback a) (shift start))
154   (ayogavaaha (shift finish))
155   (dependent (shift ayogavaaha))
156   (halantha (shift second))
157   (backspace)
158   (return (shift init)))
159
160  (second
161   (consonant (shift first))
162   (backspace)
163   (return (shift init)))
164
165  (ayogavaaha
166   (ayogavaaha (shift ayogavaaha))
167   (backspace)
168   (return (shift init))
169
170  (finish
171   (backspace)
172   (return))
173 )
174
175 ;; (finish
176 ;;  (return)
177 ;;  (t (shift init))))
178
179 ;; Local Variables:
180 ;; coding: utf-8
181 ;; mode: lisp
182 ;; End: