Remove the "finish" state and change mode to emacs-lisp.
[m17n/m17n-db.git] / pa-itrans.mim
1 ;; pa-itrans.mim -- Punjabi input method with ITRANS method
2 ;; Copyright (C) 2003, 2004, 2005
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., 59 Temple Place, Suite 330, Boston, MA
22 ;; 02111-1307, USA.
23
24 (input-method pa itrans)
25
26 (description "Panjabi 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") ("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
44  (consonant
45   ("k" "ਕ੍")
46   ("kh" "ਖ੍")
47   ("g" "ਗ੍")
48   ("gh" "ਘ੍")
49   ("~N" "ਙ੍")
50   ("N^" "ਙ੍")
51   ("ch" "ਚ੍")
52   ("Ch" "ਛ੍")
53   ("chh" "ਛ੍")
54   ("j" "ਜ੍")
55   ("jh" "ਝ੍")
56   ("~n" "ਞ੍")
57   ("JN" "ਞ੍")
58   ("T" "ਟ੍")
59   ("Th" "ਠ੍")
60   ("D" "ਡ੍")
61   ("Dh" "ਢ੍")
62   ("N" "ਣ੍")
63   ("t" "ਤ੍")
64   ("th" "ਥ੍")
65   ("d" "ਦ੍")
66   ("dh" "ਧ੍")
67   ("n" "ਨ੍")
68   ("p" "ਪ੍")
69   ("ph" "ਫ੍")
70   ("b" "ਬ੍")
71   ("bh" "ਭ੍")
72   ("m" "ਮ੍")
73   ("y" "ਯ੍")
74   ("r" "ਰ੍")
75   ("l" "ਲ੍")
76   ("L" "ਲ਼੍")
77   ("ld" "ਲ਼੍")
78   ("v" "ਵ੍")
79   ("w" "ਵ੍")
80   ("sh" "ਸ਼੍")
81   ("s" "ਸ੍")
82   ("h" "ਹ੍")
83   ("K" "ਖ਼੍")
84   ("G" "ਗ਼੍")
85   ("J" "ਜ਼੍")
86   ("z" "ਜ਼੍")
87   (".D" "ੜ੍")
88   ("f" "ਫ਼੍")
89   ("GY" "ਜ੍ਞ੍")
90   ("dny" "ਜ੍ਞ੍"))
91
92  (independent
93   ("a" "ਅ")
94   ("aa" "ਆ")
95   ("A" "ਆ")
96   ("i" "ਇ")
97   ("ii" "ਈ")
98   ("I" "ਈ")
99   ("u" "ਉ")
100   ("uu" "ਊ")
101   ("U" "ਊ")
102   ("e" "ਏ")
103   ("ai" "ਐ")
104   ("o" "ਓ")
105   ("au" "ਔ")
106   (".n" "ਂ")
107   ("M" "ਂ")
108   (".h" "੍")
109   ("0" "੦")
110   ("1" "੧")
111   ("2" "੨")
112   ("3" "੩")
113   ("4" "੪")
114   ("5" "੫")
115   ("6" "੬")
116   ("7" "੭")
117   ("8" "੮")
118   ("9" "੯")
119   ("#" "੍ਰ")
120   ("$" "ਰ੍")
121   ("^" "ਤ੍ਰ")
122   ("*" "ਸ਼੍ਰ")
123   ("]" "਼")
124   ((S-\ ) "‌")
125   ((C-@) "‍"))
126
127  (dependent
128   ("a" (delete @-) "")
129   ("aa" (delete @-) "ਾ")
130   ("A" (delete @-) "ਾ")
131   ("i" (delete @-) "ਿ")
132   ("ii" (delete @-) "ੀ")
133   ("I" (delete @-) "ੀ")
134   ("u" (delete @-) "ੁ")
135   ("uu" (delete @-) "ੂ")
136   ("U" (delete @-) "ੂ")
137   ("e" (delete @-) "ੇ")
138   ("ai" (delete @-) "ੈ")
139   ("o" (delete @-) "ੋ")
140   ("au" (delete @-) "ੌ"))
141
142  (return
143   ((Return)))
144
145  (backspace
146   ((BackSpace) (undo))))
147
148
149 (state
150  (init
151   (starter (pushback 1) (shift intermediate)))
152
153  (intermediate
154   (consonant (shift second))
155   (independent (shift finish))
156   (backspace)
157   (return (shift init)))
158
159  (second
160   (consonant)
161   (dependent (shift finish))
162   (backspace)
163   (return (shift init)))
164
165  (finish
166   (return)
167   (t (shift init))))
168
169 ;; Local Variables:
170 ;; coding: utf-8
171 ;; mode: lisp
172 ;; End: