;; my-kbd.mim -- Myanmar input method with Myanmar keyboard layout ;; Copyright (C) 2014 ;; Sithu Thwin, sithu@thwin.net ;; This file is part of the m17n database; 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 my kbd) (description "Myanmar input method simulating the Myanmar keyboard. ") (title "MY") (map (numbers ("1" ?၁) ("2" ?၂) ("3" ?၃) ("4" ?၄) ("5" ?၅) ("6" ?၆) ("7" ?၇) ("8" ?၈) ("9" ?၉) ("0" ?၀)) (consonants ("u" ?က) ("c" ?ခ) ("*" ?ဂ) (":" ?ဂ) ("C" ?ဃ) ("i" ?င) ("p" ?စ) ("q" ?ဆ) ("Z" ?ဇ) ("Q" ?ဈ) ("N" ?ဉ) ("n" ?ည) ("!" ?ဍ) ("X" ?ဌ) ("#" ?ဋ) ("~" ?ဎ) ("P" ?ဏ) ("w" ?တ) ("x" ?ထ) ("K" ?ဒ) ("L" ?ဓ) ("'" ?ဒ) ("\"" ?ဓ) ("e" ?န) ("y" ?ပ) ("z" ?ဖ) ("A" ?ဗ) ("b" ?ဘ) ("r" ?မ) ("B" ?ယ) ("&" ?ရ) ("v" ?လ) ("W" ?ဝ) ("o" ?သ) ("[" ?ဟ) ("V" ?ဠ) ("t" ?အ) ("O" ?ဿ) ("|" ?ၑ) ("U" ?ဥ) ("M" ?ဦ) ("@" ?ၒ) ("$" ?ၓ) ("%" ?ၔ) ("^" ?ၕ) ; xkb my ;; ("က" ?က) ;; ("ခ" ?ခ) ;; ("ဂ" ?ဂ) ;; ("ဂ" ?ဂ) ;; ("ဃ" ?ဃ) ;; ("င" ?င) ;; ("စ" ?စ) ;; ("ဆ" ?ဆ) ;; ("ဇ" ?ဇ) ;; ("ဈ" ?ဈ) ;; ("ဉ" ?ဉ) ;; ("ည" ?ည) ;; ("ဍ" ?ဍ) ;; ("ဌ" ?ဌ) ;; ("ဋ" ?ဋ) ;; ("ဎ" ?ဎ) ;; ("ဏ" ?ဏ) ;; ("တ" ?တ) ;; ("ထ" ?ထ) ;; ("ဒ" ?ဒ) ;; ("ဓ" ?ဓ) ;; ("ဒ" ?ဒ) ;; ("ဓ" ?ဓ) ;; ("န" ?န) ;; ("ပ" ?ပ) ;; ("ဖ" ?ဖ) ;; ("ဗ" ?ဗ) ;; ("ဘ" ?ဘ) ;; ("မ" ?မ) ;; ("ယ" ?ယ) ;; ("ရ" ?ရ) ;; ("လ" ?လ) ;; ("ဝ" ?ဝ) ;; ("သ" ?သ) ;; ("ဟ" ?ဟ) ;; ("ဠ" ?ဠ) ;; ("အ" ?အ) ;; ("ဿ" ?ဿ) ;; ("ၑ" ?ၑ) ;; ("ဥ" ?ဥ) ;; ("ဦ" ?ဦ) ;; ("ၒ" ?ၒ) ;; ("ၓ" ?ၓ) ;; ("ၔ" ?ၔ) ;; ("ၕ" ?ၕ) ) (iVowelsCons ("E" ?ဣ) ("R" ?၎) ("T" ?ဤ) ("{" ?ဧ) ("]" ?ဩ) ("}" ?ဪ) ("Y" ?၌) ("I" ?၍) ("<" ?၊) (">" ?။) ("\\" ?၏) ;; ("ဣ" ?ဣ) ;; ("၎" ?၎) ;; ("ဤ" ?ဤ) ;; ("ဧ" ?ဧ) ;; ("ဩ" ?ဩ) ;; ("ဪ" ?ဪ) ;; ("၌" ?၌) ;; ("၍" ?၍) ;; ("၊" ?၊) ;; ("။" ?။) ;; ("၏" ?၏) ) (vowels ("m" ?ာ) ("g" ?ါ) ("k" ?ု) ("l" ?ူ) (";" ?း) ("J" ?ဲ) ("h" ?့) ("H" ?ံ) ("d" ?ိ) ("D" ?ီ) ("f" ?်) ;; ("ာ" ?ာ) ;; ("ါ" ?ါ) ;; ("ု" ?ု) ;; ("ူ" ?ူ) ;; ("း" ?း) ;; ("ဲ" ?ဲ) ;; ("့" ?့) ;; ("ံ" ?ံ) ;; ("ိ" ?ိ) ;; ("ီ" ?ီ) ;; ("်" ?်) ) (medials ("s" ?ျ) ("j" ?ြ) ("G" ?ွ) ("S" ?ှ) ;; ("ျ" ?ျ) ;; ("ြ" ?ြ) ;; ("ွ" ?ွ) ;; ("ှ" ?ှ) ) (vowelE ("a" ?ေ) ;; ("ေ" ?ေ) ) (kinzi ("F" "င်္") ;; ("င်္" "င်္") ) (virama ("`" ?္) ;; ("္" ?္) ) ) (state (init (numbers) (consonants (shift beforeKinzi)) (iVowelsCons) (medials) (vowels) (kinzi) (virama) (vowelE (shift afterVowelE)) ) ;; from hi-typewriter.mim (afterVowelE (consonants (move @<) (delete @+) (move @>) (insert "ေ") (shift after-consonant)) (vowelE (delete @-) (pushback 1) (shift init)) (nil (shift init))) (after-consonant (medials (move @-) (delete @-) (move @>) (insert "ေ") (shift after-consonant)) (virama (move @-) (delete @-) (move @>) (insert "ေ") (shift after-consonant-virama)) (kinzi (move @<) (insert "င်္") (move @>) (delete @-3)) ) (after-consonant-virama (consonants (move @-) (delete @-) (move @>) (insert "ေ") (shift after-consonant))) (beforeKinzi (kinzi (move @<) (insert "င်္") (move @>) (delete @-3) ) (nil (shift init))) ) ;; Local Variables: ;; coding: utf-8 ;; mode: lisp ;; End: