(map:misc): Delete "\\".
[m17n/m17n-db.git] / MIM / si-wijesekera-preedit-alt.mim
1 ;; si-wijesekera-preedit-alt.mim -- Sinhala input method with wijesekera method
2 ;; Copyright (C) 2006
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., 51 Franklin Street, Fifth Floor,
22 ;; Boston, MA 02110-1301, USA.
23
24 (input-method si wijesekera-preedit-alt)
25
26 (description "Sinhala input method based on SLS 1134 Rev. 2:2004.
27   <http://www.fonts.lk/doc/sin-kbd-layout4.pdf>
28 This input method uses preedit rather than surrounding text.
29 ")
30
31 (title "සි")
32
33 (map
34  (consonant
35    ("l" "ක")                          ; 0D9A
36    ("L" "ඛ")                          ; 0D9B
37    ("." "ග")                          ; 0D9C
38    (">" "ඝ")                          ; 0D9D
39    ("X" "ඞ")                          ; 0D9E
40    ((A-.) "ඟ") ((0x2E A-z) "ඟ")             ; 0D9F
41    ("p" "ච")                          ; 0DA0
42    ("P" "ඡ")                          ; 0DA1
43    ("c" "ජ")                          ; 0DA2
44    ("C" "ඣ")                          ; 0DA3
45    ("\[" "ඤ")                         ; 0DA4
46    ("{" "ඥ")                          ; 0DA5
47    ((A-c) "ඦ") ((0x63 A-z) "ඦ")             ; 0DA6
48    ("g" "ට")                          ; 0DA7
49    ("G" "ඨ")                          ; 0DA8
50    ("v" "ඩ")                          ; 0DA9
51    ("V" "ඪ")                          ; 0DAA
52    ("K" "ණ")                          ; 0DAB
53    ((A-v) "ඬ") ((0x76 A-z) "ඬ")             ; 0DAC
54    (";" "ත")                          ; 0DAD
55    (":" "ථ")                          ; 0DAE
56    ("o" "ද")                          ; 0DAF
57    ("O" "ධ")                          ; 0DB0
58    ("k" "න")                          ; 0DB1
59    ((A-o) "ඳ") ((0x6F A-z) "ඳ")             ; 0DB3
60    ("m" "ප")                          ; 0DB4
61    ("M" "ඵ")                          ; 0DB5
62    ("n" "බ")                          ; 0DB6
63    ("N" "භ")                          ; 0DB7
64    ("u" "ම")                          ; 0DB8
65    ("U" "ඹ")                          ; 0DB9
66    ("h" "ය")                          ; 0DBA
67    ("r" "ර")                          ; 0DBB
68    ("," "ල")                          ; 0DBD
69    ("j" "ව")                          ; 0DC0
70    ("Y" "ශ")                          ; 0DC1
71    ("I" "ෂ")                          ; 0DC2
72    ("i" "ස")                          ; 0DC3
73    ("y" "හ")                          ; 0DC4
74    ("<" "ළ")                          ; 0DC5
75    ("F" "ෆ")                          ; 0DC6
76
77    ("<q" "ළු")                              ; muurdhaja lu (0DC5 0DD4)
78    ("<qE" "ළූ")                             ; 0DC5 0DD6
79    )
80
81  (others
82   ("x" "ං")                           ; 0D82
83   ((A-x) "ඃ")                         ; 0D83
84
85   ("w" "අ")                           ; 0D85
86   ("wd" "ආ")                          ; 0D86
87   ("we" "ඇ")                          ; 0D87
88   ("wE" "ඈ")                          ; 0D88
89   ("b" "ඉ")                           ; 0D89
90   ("B" "ඊ")                           ; 0D8A
91   ("W" "උ")                           ; 0D8B
92   ("WA" "ඌ")                          ; 0D8C
93   ("R" "ඍ")                           ; 0D8D
94   ("RD" "ඎ")                          ; 0D8E
95   ((A-,) "ඏ")                         ; 0D8F
96   ((A-, 0x41) "ඐ")                    ; 0D90
97   ("t" "එ")                           ; 0D91
98   ("ta" "ඒ")                          ; 0D92
99
100   ("T" "ඔ")                           ; 0D94
101   ("Ta" "ඕ")                          ; 0D95
102   ("TA" "ඖ")                          ; 0D96
103
104   ("a" "්")                           ; 0DCA
105
106   ("d" "ා")                           ; 0DCF
107   ("e" "ැ")                           ; 0DD0
108   ("E" "ෑ")                           ; 0DD1
109
110   ("q" "ු")                           ; 0DD4
111
112   ("Q" "ූ")                           ; 0DD6
113
114   ("D" "ෘ")                           ; 0DD8
115
116   ("A" "ෟ")                           ; 0DDF
117
118   ("DD" "ෲ")                          ; 0DF2
119   ((A-a) "ෳ")                         ; 0DF3
120   ((A-') "෴")                         ; 0DF4
121
122   ("J" "ළු")                                ; muurdhaja lu (0DC5 0DD4)
123   ("JE" "ළූ")                               ; 0DC5 0DD6
124
125   ((S-\ ) " ")                         ; NBSP (00A0)
126   ((A-\ ) "‌")                                ; ZWNJ (200C)
127
128   ("H" "්‍ය")                             ; yansaya (0DCA 200D 0DBA)
129   ("`" "්‍ර")                             ; rakaransaya (0DCA 200D 0DBB)
130   ("~" "ර්‍")                             ; repaya (0DBB 0DCA 200D)
131
132   ("\]" ";")
133   ("}" ":")
134   ("'" ".")
135   ("\"" ",")
136   ("z" "'")
137   ("Z" "\"")
138   )
139
140  (is-pilla
141   ("s" "ි")                           ; 0DD2
142   ("S" "ී"))                          ; 0DD3
143
144  (kombuva
145   ("f" "ෙ"))                          ; 0DD9
146
147  (yansaka
148   ("H"))
149
150  (rakaransaya
151   ("`"))
152
153  (repaya
154   ("~"))
155
156  (eyanna
157   ("w"))
158
159  (al-lakuna
160   ("a"))
161
162  (aela-pilla
163   ("d"))
164
165  (gayanukitta
166   ("A"))
167
168  (join
169   ("\\")
170   ("|"))
171
172  (backspace
173   ((BackSpace)))
174  )
175
176 (state
177  (init
178   (consonant (shift consonant))
179   (others)
180   (is-pilla (shift is-pilla))
181   (kombuva (shift kombuva)))
182
183  (consonant
184   (rakaransaya 0x0DCA 0x200D 0x0DBB)
185   (yansaya 0x0DCA 0x200D 0x0DBA)
186   (repaya (move @-) 0x0DBB 0x0DCA 0x200D (move @+))
187   (is-pilla (shift is-pilla))
188   (join 0x0DCA 0x200D (shift consonant+join)))
189
190  (consonant+join
191   (consonant (shift consonant))
192   (backspace (undo)))
193
194  (is-pilla
195   (rakaransaya (move @-) 0x0DCA 0x200D 0x0DBB (shift init)))
196
197  (kombuva
198   (eyanna (delete @<) 0x0D93 (shift init))
199   (al-lakuna (delete @<) 0x0DDA (shift init))
200   (kombuva (delete @<) 0x0DDB (shift combu_deka))
201   (aela-pilla (delete @<) 0x0DDC (shift kombuva_haa_aela-pilla))
202   (gayanukitta (delete @<) 0x0DDE (shift init))
203   (consonant (move @1) (delete @0) (move @>) 0x0DD9 (shift consonant+kombuva))
204   (backspace (undo)))
205
206  (combu_deka
207   (consonant (move @1) (delete @0) (move @>) 0x0DDB (shift init))
208   (backspace (undo)))
209
210  (kombuva_haa_aela-pilla
211   (al-lakuna (delete @<) 0x0DDD (shift init))
212   (backspace (undo)))
213
214  (consonant+kombuva
215   (al-lakuna (delete @-) 0x0DDA (shift init))
216   (aela-pilla (delete @-) 0x0DDC (shift consonant+kombuva_haa_aela-pilla))
217   (gayanukitta (delete @-) 0x0DDE (shift init))
218   (yansaka (move @-) 0x0DCA 0x200D 0x0DBA (move @>))
219   (rakaransaya (move @-) 0x0DCA 0x200D 0x0DBB (move @>))
220   (join (shift consonant+join+kombuva))
221   (touch (move @-) 0x200D 0x0DCA (move @>))
222   (backspace (undo)))
223
224  (consonant+kombuva_haa_aela-pilla
225   (al-lakuna (delete @-) 0x0DDD (shift init))
226   (backspace (undo)))
227
228  (consonant+join+kombuva
229   (consonant (move @-) (delete @-) 0x0DCA 0x200D (move @+) 0x0DD9
230              (shift consonant+kombuva))
231   (backspace (undo)))
232  )
233
234 ;; Local Variables:
235 ;; coding: utf-8
236 ;; mode: emacs-lisp
237 ;; End: