New file.
[m17n/m17n-contrib.git] / im / kn-kgp.mim
index 1a3bbd8..dde23cb 100644 (file)
-;; kn-kgp.mim -- Kannada input method for KGP layout
-;; This file is derived from the Kannada KGP table of scim-tables,
-;; which was derived from iiimf unitLE's Kannada KGP layout.
-;; Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved.
+;; kn-kgp.mim -- Kannada input method with KGP method
+;;   Copyright (C) 2008
+;;   Sridhar M.A., Mysore; mas@mylug.org
+
 
 ;; This file is part of the m17n contrib; a sub-part of the m17n
 ;; library.
 
-;; The library is free software; you can redistribute it and/or
+;; 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 library is distributed in the hope that it will be useful,
+;; 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 library; if not, write to the Free
-;; Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-;; 02111-1307, USA.
+;; 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 kn kgp)
 
-(description "Kannada input method for KGP layout.
+(description "Kannada input method by KGP method.
 ")
 
 (title "ಕ")
 
 (map
- (trans
-  ("!" ?!)
-  ("1" ?೧)
-  ("@" ?@)
-  ("2" ?೨)
-  ("#" ?#)
-  ("3" ?೩)
-  ("$" ?$)
-  ("4" ?೪)
-  ("%" ?%)
-  ("5" ?೫)
-  ("^" ?^)
-  ("6" ?೬)
-  ("&" ?&)
-  ("7" ?೭)
-  ("*" ?*)
-  ("8" ?೮)
-  ("(" ?()
-  ("9" ?೯)
-  (")" ?))
-  ("0" ?೦)
-  ("_" ?_)
-  ("-"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("R") ("S") ("T") ("U")
+  ("V") ("W") ("Y") ("Z")
+  ("a") ("b") ("c") ("d") ("e") ("f") ("g") ("h") ("i")
+  ("j") ("k") ("l") ("m") ("n") ("o") ("p") ("q") ("r")
+  ("s") ("t") ("u") ("v") ("w") ("x") ("y") ("z"))
+
+ (consonant
+  ("k" "ಕ")
+  ("K" "ಖ")
+  ("g" "ಗ")
+  ("G" "ಘ")
+  ("Z" "ಙ")
+  ("c" "ಚ")
+  ("C" "ಛ")
+  ("j" "ಜ")
+  ("jX" "ಜ಼")
+  ("J" "ಝ")
+  ("z" "ಞ")
+  ("q" "ಟ")
+  ("Q" "ಠ")
+  ("w" "ಡ")
+  ("W" "ಢ")
+  ("N" "ಣ")
+  ("t" "ತ")
+  ("T" "ಥ")
+  ("d" "ದ")
+  ("D" "ಧ")
+  ("n" "ನ")
+  ("p" "ಪ")
+  ("P" "ಫ")
+  ("PX" "ಫ಼")
+  ("b" "ಬ")
+  ("B" "ಭ")
+  ("m" "ಮ")
+  ("y" "ಯ")
+  ("r" "ರ")
+  ("rX" "ಱ")
+  ("l" "ಲ")
+  ("v" "ವ")
+  ("S" "ಶ")
+  ("x" "ಷ")
+  ("s" "ಸ")
+  ("h" "ಹ")
+  ("L" "ಳ")
+  ("LX" "ೞ"))
+
+ (independent
+  ("a" "ಅ")
+  ("A" "ಆ")
+  ("i" "ಇ")
+  ("I" "ಈ")
+  ("u" "ಉ")
+  ("U" "ಊ")
+  ("R" "ಋ")
+  ("RU" "ೠ")
+  ("e" "ಎ")
+  ("E" "ಏ")
+  ("Y" "ಐ")
+  ("o" "ಒ")
+  ("O" "ಓ")
+  ("V" "ಔ")
+  ("M" "ಂ")
+  ("H" "ಃ")
+  ("|" "।")
+  ("||" "॥")
+  ("sX" "ಽ")
+  ("0" "೦")
+  ("1" "೧")
+  ("2" "೨")
+  ("3" "೩")
+  ("4" "೪")
+  ("5" "೫")
+  ("6" "೬")
+  ("7" "೭")
+  ("8" "೮")
+  ("9" "೯"))
+
+ (dependent
+  ("f" "್")
+  ("A" "ಾ")
+  ("i" "ಿ")
+  ("I" "ೀ")
+  ("u" "ು")
+  ("U" "ೂ")
+  ("R" "ೃ")
+  ("RX" "ೄ")
+  ("e" "ೆ")
+  ("E" "ೇ")
+  ("Y" "ೈ")
+  ("o" "ೊ")
+  ("O" "ೋ")
+  ("V" "ೌ")
+  ("ff" "್‌"))
+
+ (return
+  ((Return)))
+
+ (backspace
+  ((BackSpace) (undo))))
 
 (state
-  (init
-    (trans)))
+ (init
+  (starter (pushback 1) (shift intermediate)))
+
+ (intermediate
+  (consonant (shift second))
+  (independent (shift finish))
+  (backspace)
+  (return (shift init)))
+
+ (second
+  (consonant)
+  (dependent (shift finish))
+  (backspace)
+  (return (shift init)))
+
+ (finish
+  (return)
+  )
+
+;; (finish
+;;  (return)
+;;  (t (shift init))))
+
+;; Local Variables:
+;; coding: utf-8
+;; mode: lisp
+;; End: