Move the macro section to the top as suggested by Takahashi.
[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
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 kn kgp)
25
26 (description "Kannada input method by KGP method.
27 ")
28
29 (title "ಕ")
30
31 (map
32  (starter
33   ("0") ("1") ("2") ("3") ("4")
34   ("5") ("6") ("7") ("8") ("9")
35   ("A") ("B") ("C") ("D") ("E") ("G") ("H") ("I") ("J") ("K") 
36   ("L") ("M") ("N") ("O") ("P") ("Q") ("R") ("S") ("T") ("U")
37   ("V") ("W") ("Y") ("Z")
38   ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
39   ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
40   ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
41
42  (consonant
43   ("k" "ಕ")
44   ("K" "ಖ")
45   ("g" "ಗ")
46   ("G" "ಘ")
47   ("Z" "ಙ")
48   ("c" "ಚ")
49   ("C" "ಛ")
50   ("j" "ಜ")
51   ("jX" "ಜ಼")
52   ("J" "ಝ")
53   ("z" "ಞ")
54   ("q" "ಟ")
55   ("Q" "ಠ")
56   ("w" "ಡ")
57   ("W" "ಢ")
58   ("N" "ಣ")
59   ("t" "ತ")
60   ("T" "ಥ")
61   ("d" "ದ")
62   ("D" "ಧ")
63   ("n" "ನ")
64   ("p" "ಪ")
65   ("P" "ಫ")
66   ("PX" "ಫ಼")
67   ("b" "ಬ")
68   ("B" "ಭ")
69   ("m" "ಮ")
70   ("y" "ಯ")
71   ("r" "ರ")
72   ("rX" "ಱ")
73   ("l" "ಲ")
74   ("v" "ವ")
75   ("S" "ಶ")
76   ("x" "ಷ")
77   ("s" "ಸ")
78   ("h" "ಹ")
79   ("L" "ಳ")
80   ("LX" "ೞ"))
81
82  (independent
83   ("a" "ಅ")
84   ("A" "ಆ")
85   ("i" "ಇ")
86   ("I" "ಈ")
87   ("u" "ಉ")
88   ("U" "ಊ")
89   ("R" "ಋ")
90   ("RU" "ೠ")
91   ("e" "ಎ")
92   ("E" "ಏ")
93   ("Y" "ಐ")
94   ("o" "ಒ")
95   ("O" "ಓ")
96   ("V" "ಔ")
97   ("M" "ಂ")
98   ("H" "ಃ")
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  (dependent
114   ("f" "್")
115   ("A" "ಾ")
116   ("i" "ಿ")
117   ("I" "ೀ")
118   ("u" "ು")
119   ("U" "ೂ")
120   ("R" "ೃ")
121   ("RX" "ೄ")
122   ("e" "ೆ")
123   ("E" "ೇ")
124   ("Y" "ೈ")
125   ("o" "ೊ")
126   ("O" "ೋ")
127   ("V" "ೌ")
128   ("ff" "್‌"))
129
130  (return
131   ((Return)))
132
133  (backspace
134   ((BackSpace) (undo))))
135
136 (state
137  (init
138   (starter (pushback 1) (shift intermediate)))
139
140  (intermediate
141   (consonant (shift second))
142   (independent (shift finish))
143   (backspace)
144   (return (shift init)))
145
146  (second
147   (consonant)
148   (dependent (shift finish))
149   (backspace)
150   (return (shift init)))
151
152  (finish
153   (return)
154   )
155
156 ;; (finish
157 ;;  (return)
158 ;;  (t (shift init))))
159
160 ;; Local Variables:
161 ;; coding: utf-8
162 ;; mode: lisp
163 ;; End: