Updated by the author.
[m17n/m17n-contrib.git] / im / hi-remington.mim
index 38d1a3c..60b485d 100644 (file)
@@ -1,23 +1,23 @@
 ;; hi-remington.mim -- Hindi input method for Remington typewriter layout
-;; Copyright (c) Red Hat, Inc. All Rights Reserved.
+;; Copyright (c) 2006-2010 Red Hat, Inc. All Rights Reserved.
 
 ;; 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 hi remington)
 
@@ -28,9 +28,72 @@ Author: Rajesh Ranjan <rranjan@redhat.com>
 (title "क")
 
 (map
- (trans
-  ("~" " ृ")
- ("`" "`") 
+ (starter
+  (".") ("~") ("!") ("@") ("#") ("$") ("%") ("^") ("&") 
+  ("*") ("(") (")") ("{") ("}") ("[") ("]") ("<") (">")
+  (",") ("?") ("/") ("\\") ("\"") (":") (";") ("+") ("=")
+  ("_") ("-") ("0") ("1") ("2") ("3") ("4") ("5") ("6")
+  ("7") ("8") ("9") ("`") ("|") ("'")
+  ("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")
+  ("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")
+  ((KP_1)) ((KP_2)) ((KP_3)) ((KP_4)) ((KP_5))
+  ((KP_6)) ((KP_7)) ((KP_8)) ((KP_9)) ((KP_0)))
+
+ (consonant
+  ("{" "क्ष्")
+  ("[" "ख्")
+  (")" "द्घ")
+  ("}" "द्व")
+ ("E" "म्")
+ ("R" "त्")
+ ("T" "ज्")
+ ("Y" "ल्")
+ ("U" "न्")
+ ("I" "प्")
+ ("O" "व्")
+("P" "च्") 
+ ("D" "क्")
+ ("F" "थ्")
+ ("H" "भ्")
+ ("L" "स्")
+  ("\"" "ष्")
+  ("'" "श्")
+ ("z" "्र")
+ ("Z" "र्") 
+ ("X" "ग्")
+ ("C" "ब्")
+  ("." "ण्")
+  ("?" "घ्")
+  ("/" "ध्"))
+
+  (independent
+  ((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) "-") 
+  ("vk" "आ")
+  ("Wa" "ँ")
+  ("ks" "ो")
+  ("kS" "ौ")
+  ("vAs" "ओ")
+  ("vAS" "औ")
+  ("`" "ृ")
+ ("~" "`") 
  ("!" "!")
   ("1" "१")
  ("@" "/")
@@ -39,7 +102,7 @@ Author: Rajesh Ranjan <rranjan@redhat.com>
   ("3" "३")
  ("$" "+")
   ("4" "४")
-  ("%" " ः")
+  ("%" "ः")
   ("5" "५")
  ("^" "'")
   ("6" "६")
@@ -49,65 +112,43 @@ Author: Rajesh Ranjan <rranjan@redhat.com>
   ("8" "८")
  ("(" ";")
   ("9" "९")
-  (")" "द्घ")
   ("0" "०")
   ("_" "ऋ")
  ("-" ".")
-  ("+" " ़")
+  ("+" "़")
   ("=" "त्र")
+("q" "ु")
+ ("W" "ॅ")
+ ("w" "ू")
  ("Q" "फ")
- ("q" " ु")
- ("W" " ॅ")
- ("w" " ू")
- ("E" "म्")
- ("e" "म")
- ("R" "त्")
  ("r" "त")
- ("T" "ज्")
+ ("e" "म")
  ("t" "ज")
- ("Y" "ल्")
  ("y" "ल")
- ("U" "न्")
  ("u" "न")
- ("I" "प्")
  ("i" "प")
- ("O" "व्")
  ("o" "व")
- ("P" "च्")
  ("p" "च")
-  ("{" "क्ष्")
-  ("[" "ख्")
-  ("}" "द्व")
  ("]" ",")
   ("|" "द्य")
- ("\" "?")
+ ("\\" "?")
  ("A" "।")
- ("a" ".")
- ("S" " ै")
- ("s" " े")
- ("D" "क्")
+ ("a" "ं")
+ ("S" "ै")
+ ("s" "े")
  ("d" "क")
- ("F" "थ्")
- ("f" " ि")
+ ("f" "ि")
  ("G" "ळ")
  ("g" "ह")
- ("H" "भ्")
- ("h" " ी")
+ ("h" "ी")
  ("J" "श्र")
  ("j" "र")
  ("K" "ज्ञ")
- ("k" " ा")
- ("L" "स्")
+ ("k" "ा")
  ("l" "स")
   (":" "रू")
   (";" "य")
-  ("\"" "ष्")
-  ("'" "श्")
- ("Z" "र्") 
- ("z" "z")
- ("X" "ग्")
  ("x" "ग")
- ("C" "ब्")
  ("c" "ब")
  ("V" "ट")
  ("v" "अ")
@@ -119,15 +160,34 @@ Author: Rajesh Ranjan <rranjan@redhat.com>
  ("m" "उ")
   ("<" "ढ")
   ("," "ए")
-  (">" "झ")
-  ("." "ण्")
-  ("?" "घ्")
-  ("/" "ध्")
-  ))
+  (">" "झ"))
+
+(dependent
+  ("k" (delete @-) ""))
+  
+ (return
+  ((Return)))
+
+ (backspace
+  ((BackSpace) (undo))))
 
 (state
-  (init
-    (trans)))
+ (init
+  (starter (pushback 1) (shift intermediate)))
 
+ (intermediate
+  (consonant (shift second))
+  (independent (shift init))
+  (backspace)
+  (return (shift init)))
 
+ (second
+  (consonant)
+  (dependent (shift init))
+  (backspace)
+  (return (shift init))))
 
+;; Local Variables:
+;; coding: utf-8
+;; mode: emacs-lisp
+;; End: