Edit file File name : hi-vedmata.mim Content : ;; hi-vedmata.mim -- Hindi input method with Remington method ;; Copyright (C) 2010 Shantikunj, Haridwar, UK, INDIA <www.awgp.org> ;; 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., 59 Temple Place, Suite 330, Boston, MA ;; Boston, MA 02110-1301 USA. (input-method hi vedmata) (description "Hindi input method for Remington typewriter layout. Author: Shantikunj, Haridwar, UK, INDIA <www.awgp.org>") (title "वेदमाता हिन्दी - Remington") (map (starter (".") ("~") ("#") ("$") ("^") ("*") ((S-\ )) ((C-@)) ("0") ("1") ("2") ("3") ("4") ("5") ("6") ("7") ("8") ("9") ("A") ("C") ("D") ("G") ("H") ("I") ("J") ("K") ("L") ("M") ("N") ("O") ("R") ("S") ("T") ("U") ("Y") ("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") ("[") ("{") ("]") ("}") ("P") ("Q") ("z") ("Z") ("E") ("F") ("X") ("B") ("-") ("_") ("(") (")") ("+") ("=") ("\"") ("|") (",") ("<") (">") ("?") ("/") ("@") ("&") ("%") ("V") ("`") (":") (";") ("W") ("'") ) (consonant ((KP_1) "१") ((KP_2) "२") ((KP_3) "३") ((KP_4) "४") ((KP_5) "५") ((KP_6) "६") ((KP_7) "७") ((KP_8) "८") ((KP_9) "९") ((KP_0) "०") ((KP_Decimal) ".") ((KP_Divide) "/") ((KP_Multiply) "*") ((KP_Add) "+") ((KP_Subtract) "-") ) (chotiMatra ("f" "ि" (set C @-1)) ) (setFullChar ("e" "म" (insert C)) ("ez" "म्र" (insert C)) ("r" "त" (insert C)) ("rz" "त्र" (insert C)) ("t" "ज" (insert C)) ("tz" "ज्र" (insert C)) ("iQ" "फ" (insert C)) ("iQz" "फ्र" (insert C)) ("y" "ल" (insert C)) ("yz" "ल्र" (insert C)) ("u" "न" (insert C)) ("uz" "न्र" (insert C)) ("i" "प" (insert C)) ("iz" "प्र" (insert C)) ("o" "व" (insert C)) ("oz" "व्र" (insert C)) ("p" "च" (insert C)) ("pz" "च्र" (insert C)) ("d" "क" (insert C)) ("dz" "क्र" (insert C)) ("G" "ळ" (insert C)) ("g" "ह" (insert C)) ("gz" "ह्र" (insert C)) ("j" "र" (insert C)) ("l" "स" (insert C)) ("lz" "स्र" (insert C)) (";" "य" (insert C)) (";z" "य्र" (insert C)) ("x" "ग" (insert C)) ("xz" "ग्र" (insert C)) ("c" "ब" (insert C)) ("cz" "ब्र" (insert C)) ("V" "ट" (insert C)) ("Vz" "ट्र" (insert C)) ("B" "ठ" (insert C)) ("Bz" "ठ्र" (insert C)) ("b" "इ" (insert C)) ("N" "छ" (insert C)) ("Nz" "छ्र" (insert C)) ("n" "द" (insert C)) ("nz" "द्र" (insert C)) ("M" "ड" (insert C)) ("Mz" "ड्र" (insert C)) ("m" "उ" (insert C)) ("<" "ढ" (insert C)) ("<z" "ढ्र" (insert C)) (">" "झ" (insert C)) (">z" "झ्र" (insert C)) ("{k" "क्ष" (insert C)) ("Hk" "भ" (insert C)) ("Hkz" "भ्र" (insert C)) ("Fk" "थ" (insert C)) ("Fkz" "थ्र" (insert C)) ("'k" "श" (insert C)) ("'kz" "श्र" (insert C)) ("\"k" "ष" (insert C)) ("\"kz" "ष्र" (insert C)) (".k" "ण" (insert C)) ("/k" "ध" (insert C)) ("/kz" "ध्र" (insert C)) ("?k" "घ" (insert C)) ("?kz" "घ्र" (insert C)) ("[k" "ख" (insert C)) ("[kz" "ख्र" (insert C)) ("_" "त्र" (insert C)) ("J" "श्र" (insert C)) ;; ("*" "ञ" (insert C)) ("K" "ज्ञ" (insert C)) ("x@" "ॻ" (insert C)) ("t@" "ॼ" (insert C)) ("M@" "ॾ" (insert C)) ("c@" "ॿ" (insert C)) ) (setHalfChar ("e" (delete @-) (insert B) "म" (insert C)) ("r" (delete @-) (insert B) "त" (insert C)) ("t" (delete @-) (insert B) "ज" (insert C)) ("iQ" (delete @-) (insert B) "फ" (insert C)) ("y" (delete @-) (insert B) "ल" (insert C)) ("u" (delete @-) (insert B) "न" (insert C)) ("i" (delete @-) (insert B) "प" (insert C)) ("o" (delete @-) (insert B) "व" (insert C)) ("p" (delete @-) (insert B) "च" (insert C)) ("d" (delete @-) (insert B) "क" (insert C)) ("G" (delete @-) (insert B) "ळ" (insert C)) ("g" (delete @-) (insert B) "ह" (insert C)) ("j" (delete @-) (insert B) "र" (insert C)) ("l" (delete @-) (insert B) "स" (insert C)) (";" (delete @-) (insert B) "य" (insert C)) ("x" (delete @-) (insert B) "ग" (insert C)) ("c" (delete @-) (insert B) "ब" (insert C)) ("V" (delete @-) (insert B) "ट" (insert C)) ("B" (delete @-) (insert B) "ठ" (insert C)) ;; ("b" (delete @-) (insert B) "इ" (insert C)) ("N" (delete @-) (insert B) "छ" (insert C)) ("n" (delete @-) (insert B) "द" (insert C)) ("M" (delete @-) (insert B) "ड" (insert C)) ;; ("m" (delete @-) (insert B) "उ" (insert C)) ("<" (delete @-) (insert B) "ढ" (insert C)) (">" (delete @-) (insert B) "झ" (insert C)) ("{k" (delete @-) (insert B) "क्ष" (insert C)) ("Hk" (delete @-) (insert B) "भ" (insert C)) ("Fk" (delete @-) (insert B) "थ" (insert C)) ("'k" (delete @-) (insert B) "श" (insert C)) (".k" (delete @-) (insert B) "ण" (insert C)) ("\"k" (delete @-) (insert B) "ष" (insert C)) ("[k" (delete @-) (insert B) "ख" (insert C)) ("*" (delete @-) (insert B) "ञ" (insert C)) ) (matra ("~" "◌") ("`" "्") ("1" "़") ("2" "ृ") ("%" "ः") ("^" "=") ("q" "ु") ("W" "ॅ") ("w" "ू") ("A" "ँ") ("a" "ं") ("S" "ै") ("s" "े") ("h" "ी") ("k" "ा") ("sk" "ो") ("ks" "ो") ("kS" "ौ") ("Sk" "ौ") ("z" "्र") ("@" " ॒") ("ka" "ां") ("kW" "ॉ") ("vW" "ॲ") (",W" "ऍ") ("vkW" "ऑ") ("ha" "ीं") ("sa" "ें") ("Sa" "ैं") ("qa" "ुं") ("wa" "ूं") ("kA" "ाँ") ("hA" "ीँ") ("sA" "ेँ") ("SA" "ैँ") ("qA" "ुँ") ("wA" "ूँ") ("~2" "ॄ") ("~y" "ॢ") ("~y2" "ॣ") ) (number ;; ("1" ".") ;; ("2" "ृ") ("3" "१") ("4" "२") ("5" "३") ("6" "४") ("7" "५") ("8" "६") ("9" "७") ("0" "८") ("-" "९") ("=" "०") ) (mainChar ("v" "अ") ("~v" "ऄ") ("vk" (delete @-) "आ") ("vsk" (delete @-) "ओ") ("vks" (delete @-) "ओ") ("~o" "ऒ") ("vSk" (delete @-) "औ") ("vkS" (delete @-) "औ") ) (fullChar ("e" "म") ("r" "त") ("t" "ज") ("Q" "ऊ") ("y" "ल") ("u" "न") ("i" "प") ("o" "व") ("p" "च") ("d" "क") ("G" "ळ") ("g" "ह") ("j" "र") ("l" "स") (";" "य") ("x" "ग") ("c" "ब") ("V" "ट") ("B" "ठ") ("b" "इ") ("bZ" "ई") ("N" "छ") ("n" "द") ("M" "ड") ("m" "उ") ("<" "ढ") ("," "ए") ("~," "ऎ") (",s" "ऐ") (">" "झ") ("{k" "क्ष") ("Hk" "भ") ("Fk" "थ") ("'k" "श") ("\"k" "ष") (".k" "ण") ("/k" "ध") ("?k" "घ") ("[k" "ख") ("iQ" "फ") ("x@" "ॻ") ("t@" "ॼ") ("M@" "ॾ") ("c@" "ॿ") ("+2" "ॠ") ("+22" "ॠ") ("~y" "ऌ") ("~y2" "ॡ") ("d~y" "कॢ") ("d~y2" "कॣ") (")" "द्घ") ("}" "द्व") ("|" "द्य") ("J" "श्र") ("K" "ज्ञ") ;; (":" "रू") (":" "ॐ") ("::" "卐") ("~a" "ऽ") ("!" "?") ("#" ".") ("$" "ङ") ("&" "-") ("*" "ञ") ("(" " ।") ("((" " ॥") ("_" "त्र") ("+" "ऋ") ("\\" "्र") ("]" ",") ) (getHalfChar ("E" "म्" (set B @-1)) ("R" "त्" (set B @-1)) ("T" "ज्" (set B @-1) ) ("Y" "ल्" (set B @-1)) ("U" "न्" (set B @-1)) ("I" "प्" (set B @-1)) ("O" "व्" (set B @-1)) ("P" "च्" (set B @-1) ) ("{" "क्ष्" (set B @-1) ) ("D" "क्" (set B @-1)) ("F" "थ्" (set B @-1) ) ("H" "भ्" (set B @-1)) ("L" "स्" (set B @-1) ) ("\"" "ष्" (set B @-1)) ("'" "श्" (set B @-1)) ;; ("Z" "र्" (set B @-1)) ("X" "ग्" (set B @-1)) ("C" "ब्" (set B @-1)) ("." "ण्" (set B @-1)) ("?" "घ्" (set B @-1)) ("/" "ध्" (set B @-1)) ("[" "ख्" (set B @-1)) ("*`" "ञ्" (set B @-1)) ) (halfChar ("E" "म्") ("R" "त्") ("T" "ज्") ("Y" "ल्") ("U" "न्") ("I" "प्") ("O" "व्") ("P" "च्") ("{" "क्ष्") ("D" "क्") ("F" "थ्") ("H" "भ्") ("L" "स्") ("\"" "ष्") ("'" "श्") ("Z" "र्") ("X" "ग्") ("C" "ब्") ("." "ण्") ("?" "घ्") ("/" "ध्") ("[" "ख्") ("*`" "ञ्") ) ;; (rChar ;; ("Z" "र्" (set A1 @-) (set A2 @-1) (set A3 @-2)(set A4 @-3)(delete @-) (delete @-1)(delete @-1)(insert A3)(insert A2)(insert A4)) ;; ) (jointChar (")" "द्घ") ("}" "द्व") ("|" "द्य") ("J" "श्र") ("K" "ज्ञ") ) (pause) (return ((Return)) ) (backspace ((BackSpace) (undo)) ) ) (state (init (starter (pushback 1) (shift intermediate) ) ) (intermediate ;; (rChar (shift intermediate)) (matra (shift intermediate)) (chotiMatra (delete @-) (shift third)) (mainChar (shift intermediate)) (fullChar (shift second)) (halfChar (shift intermediate)) (jointChar (shift intermediate)) (number (shift intermediate)) (backspace) (return (shift init)) ) (third (getHalfChar (shift fourth)) (setFullChar (shift intermediate)) ) (fourth (setHalfChar (shift intermediate)) ) (fifth (setrChar (shift intermediate)) ) (second (mainChar (shift intermediate)) (fullChar (shift intermediate)) (halfChar (shift intermediate)) (matra (shift intermediate)) (jointChar (shift intermediate)) ;; (rChar (shift intermediate)) (backspace) (return (shift init)) ) (finish (return) (t (shift init)) ) ) ;; Local Variables: ;; coding: utf-8 ;; mode: lisp ;; End: Save