1 ;; hi-typewriter.mim -- Devanagari input method with typewriter method
3 ;; National Institute of Advanced Industrial Science and Technology (AIST)
4 ;; Registration Number H15PRO112
6 ;; This file is part of the m17n database; a sub-part of the m17n
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.
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.
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
24 (input-method hi typewriter)
26 (description "Hindi input method with `typewriter' method.
132 (vowel-I (shift after-vowel-I)))
136 ;; The current preedit is "IC". Reorder it to "CI".
137 (move @<) (delete @+) (move @>) (insert "ि")
138 ;; Keep on reading the following [HC]* sequence.
139 (shift after-consonant))
141 ;; Delete the lastly inserted I and rehandle it in `init' state.
142 (delete @-) (pushback 1) (shift init))
147 ;; The current preedit is "C[HC]*IH". Reorder it to "C[HC]*HI".
148 (move @-) (delete @-) (move @>) (insert "ि")
149 ;; Keep on reading the following C[HC]* sequence.
150 (shift after-consonant-halant)))
152 (after-consonant-halant
154 ;; The current preedit is "C[HC]*HIC". Reorder it to "C[HC]+I".
155 (move @-) (delete @-) (move @>) (insert "ि")
156 ;; Keep on reading the following [HC]* sequence.
157 (shift after-consonant))))