1 ;; tay-sonla-kdb.mim -- Tai Viet input method with Phonetic sequence
3 ;; Thua Thien Hue Center of Information Technology (HueCIT, Vietnam)
5 ;; This file is part of the m17n contrib; a sub-part of the m17n
8 ;; The m17n library is free software; you can redistribute it and/or
9 ;; modify it under the terms of the GNU Lesser General Public License
10 ;; as published by the Free Software Foundation; either version 2.1 of
11 ;; the License, or (at your option) any later version.
13 ;; The m17n library is distributed in the hope that it will be useful,
14 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ;; Lesser General Public License for more details.
18 ;; You should have received a copy of the GNU Lesser General Public
19 ;; License along with the m17n library; if not, write to the Free
20 ;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 ;; Boston, MA 02110-1301, USA.
23 (input-method tay sonla-kbd)
27 (description "Tay Viet input method using the phonetic key sequence, accord with the Tay Son La keyboard.
28 The phonetic key sequence means that you type a syllable in this order:
31 C is an initial consonant,
32 W is a label to labializing C ('ꪫ'),
33 V is a vowel (prefix, postfix, or combining),
34 v is the second vowel of a digraph vowel (in that case V is 'ꪹ'),
35 F is a final consonant,
36 T is a tonemark (spacing or combining).")
117 ("wow" "ꪹ") ; that is "ươ"
118 ("auw" "ꪻ") ; that is "aư", note:"aw" is used for "ă"
132 ("aw" "ꪰ") ;; that is “ă”
174 (t (mark M) (set U 0))
175 (consonant (mark M) (shift after-c))
186 (vowel-pre (set V @-1)
188 (move @<) (insert V) (move @>) (shift after-c-vpre))
189 (vowel-combining (set U @-1) (mark M) (shift after-c-v))
190 (vowel-post (shift after-c-v))
191 (vowel-digraph (set U @-1) (mark M) (move @-) (insert "ꪹ") (move @>)
195 (vowel-combining (set U @-1) (mark M) (shift after-c-v))
196 (vowel-post (shift after-c-v))
197 (nil (shift after-c-v)))
200 (tone-spacing (shift init))
201 (tone-combining (set T @-1) (delete @-) (move M) (insert T) (move @>)
203 (final-c (cond ((> U 0) (move M) (delete @-) (move @>) insert U))
204 (shift after-c-v-f)))
207 (tone-spacing (shift init))
208 (tone-combining (set T @-1) (delete @-) (move M) (insert T) (move @>)