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