/usr/share/m17n/tai-sonla.mim is in m17n-contrib 1.1.13-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | ;; tai-sonla.mim -- Tai Viet input method with Phonetic sequence
;; Copyright (C) 2007
;; Thua Thien Hue Center of Information Technology (HueCIT, Vietnam)
;; Copyright (C) 2007
;; National Institute of Advanced Industrial Science and Technology (AIST)
;; Registration Number H15PRO112
;; This file is part of the m17n contrib; a sub-part of the m17n
;; library.
;; The m17n library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public License
;; as published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later version.
;; The m17n library is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
;; Lesser General Public License for more details.
;; You should have received a copy of the GNU Lesser General Public
;; License along with the m17n library; if not, write to the Free
;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
(input-method tai sonla-kbd)
(title "꫞")
(description (_"Tai Viet input method using the phonetic key sequence with the Tai Son La keyboard layout.
The phonetic key sequence means that you type a syllable in this order:
C W? V v? F? T?
where
C is an initial consonant,
W is a label for labializing C ('ꪫ'),
V is a vowel (V1:prefix, V2:combining, or V3:postfix),
v is the second vowel of a digraph vowel
(in the case that V is 'ꪹ' and v is 'ꪸ', 'ꪷ', or 'ꪱ'),
F is a final consonant,
T is a tonemark (spacing or combining).
You can type special symbols by these keys:
'$' -> 'ꫛ'
'#' -> 'ꫜ'
'%' -> 'ꫝ'
'!' -> '꫞'
'@' -> '꫟'
"))
(macro
(adjust-tone
(set TT @-1)
(delete @-)
(cond ((| (= T ?ꫀ) (= T ?ꫂ)) (delete @-) (move @>))
((> T 0) (move M) (delete @+) (move @>)))
(set T TT)
(cond ((| (= T ?ꫀ) (= T ?ꫂ)) (insert T))
((> T 0) (move M) (insert T) (move @>)))))
(map
(consonant
("k" "ꪀ")
("K" "ꪁ")
("x" "ꪂ")
("X" "ꪃ")
("q" "ꪄ")
("Q" "ꪅ")
("|" "ꪆ")
("\"" "ꪇ")
("g" "ꪈ")
("G" "ꪉ")
("c" "ꪊ")
("C" "ꪋ")
("." "ꪌ")
(">" "ꪍ")
("s" "ꪎ")
("S" "ꪏ")
("z" "ꪐ")
("Z" "ꪑ")
("d" "ꪒ")
("D" "ꪓ")
("t" "ꪔ")
("T" "ꪕ")
("w" "ꪖ")
("W" "ꪗ")
("n" "ꪘ")
("N" "ꪙ")
("b" "ꪚ")
("B" "ꪛ")
("p" "ꪜ")
("P" "ꪝ")
("/" "ꪞ")
("?" "ꪟ")
("f" "ꪠ")
("F" "ꪡ")
("m" "ꪢ")
("M" "ꪣ")
("j" "ꪤ")
("J" "ꪥ")
("r" "ꪦ")
("R" "ꪧ")
("l" "ꪨ")
("L" "ꪩ")
("v" "ꪪ")
("V" "ꪫ")
("h" "ꪬ")
("H" "ꪭ")
("o" "ꪮ")
("O" "ꪯ"))
(final-c
("b" "ꪚ")
("d" "ꪒ")
("k" "ꪀ")
("J" "ꪥ")
("M" "ꪣ")
("N" "ꪙ")
("G" "ꪉ")
("V" "ꪫ"))
(high-v
("V" "ꪫ"))
(special
("$" "ꫛ")
("#" "ꫜ")
("%" "ꫝ")
("!" "꫞")
("@" "꫟"))
(vowel-pre
("e" "ꪵ")
("," "ꪶ")
("E" "ꪹ")
("Y" "ꪻ")
("y" "ꪼ")
("o^" "ꪶ"))
(vowel-combining
("}" "ꪰ")
("i" "ꪲ")
("U" "ꪳ")
("u" "ꪴ")
("[" "ꪷ")
("I" "ꪸ")
("{" "ꪾ")
("awm" "ꪾ"))
(vowel-post
("a" "ꪱ")
;; ("A" "ꪱꪲ")
("<" "ꪺ")
("]" "ꪽ")
;; Note: "ꪮ" and "ꪯ" can be consonant and vowel.
("o" "ꪮ")
("O" "ꪯ"))
(vowel-digraph
("r" "ꪸ")
("R" "ꪷ")
("A" "ꪱ"))
(tone
(":" "ꫀ")
(";" "ꫂ")
("\"" "꪿")
("'" "꫁"))
(punctuation
("!!" "!")
("@@" "@")
("##" "#")
("$$" "$")
("%%" "%")
(",," ",")
(".." ".")
(";;" ";")
("::" ":")
(";;" ";")
("\"\"" "\"")
("//" "/")
("||" "|")
("''" "'")
("!!" "?")
("??" "?")
("[[" "[")
("]]" "]")
("{{" "{")
("}}" "}")
("<<" "<")
(">>" ">"))
(backspace
((BackSpace) (sub K 1) (undo K))))
(state
(init
(t (set K 0))
(consonant (mark M) (shift after-c))
(special)
(punctuation)
(vowel-pre)
(vowel-post)
(vowel-combining)
(tone))
(after-c
(t (mark M) (set V2 0) (set K @@))
(high-v (mark M))
(vowel-pre (set V1 @-1)
(delete @-)
(move @<) (insert V1) (move @>) (shift after-c-vpre))
(vowel-combining (cond ((> V2 0) (move @-) (delete @-) (move @>))
(1 (set K @@)))
(set V2 @-1) (mark M))
(vowel-post (shift after-c-v))
(vowel-digraph (mark M) (move @<) (insert "ꪹ") (move @>)
(shift after-c-v))
(final-c (delete @-) (pushback 1) (shift init))
(backspace)
(nil (shift after-c-v)))
(after-c-vpre
(t (set K @@))
(vowel-combining (set V2 @-1) (mark M) (shift after-c-v))
(vowel-post (shift after-c-v))
(backspace)
(nil (shift after-c-v)))
(after-c-v
(t (set T 0) (set K @@))
(tone (cond ((= T 0) (set K @@))) (adjust-tone))
(final-c (shift after-c-v-f))
(backspace))
(after-c-v-f
(t (set K @@))
(tone (adjust-tone))
(backspace)))
|