Skip to content

Instantly share code, notes, and snippets.

@vishaltelangre
Created February 13, 2014 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vishaltelangre/8973393 to your computer and use it in GitHub Desktop.
Save vishaltelangre/8973393 to your computer and use it in GitHub Desktop.
/usr/share/m17n/mr-marathi.mim #ibus #scim #phonetic #devnagari #linux #ubuntu
;; mr-marathi.mim -- Marathi Phonetic input method
;; Minor modifications in original "hi-baraha.mim" by vishaltelangre@gmail.com
;; for few Marathi character support.
;;
;; The MIT License (MIT)
;;
;; Copyright (c) 2011 Vishal Telangre
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
;;
;; The above copyright notice and this permission notice shall be included in
;; all copies or substantial portions of the Software.
;;
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
;; THE SOFTWARE.
(input-method mr marathi)
(description "Devnagari phonetic input method as similar as Baraha on Windows.")
(title "म")
(map
(starter
(".") ("~") ("$") ("^") ("@") ("#") ("&")
("0") ("1") ("2") ("3") ("4") ("5") ("6") ("7") ("8") ("9")
("A") ("B") ("C") ("D") ("E") ("G") ("H") ("I") ("J") ("K") ("L")
("M") ("N") ("O") ("P") ("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"))
(consonant
("k" "क्")
("kx" "क़्")
("kh" "ख्")
("K" "ख्")
("khx" "ख़्")
("Kx" "ख़्")
("g" "ग्")
("gx" "ग़्")
("G" "घ्")
("gh" "घ्")
("~g" "ङ्")
("c" "च्")
("ch" "च्")
("C" "छ्")
("Ch" "छ्")
("j" "ज्")
("jx" "ज़्")
("z" "ज़्")
("J" "झ्")
("jh" "झ्")
("~j" "ञ्")
("T" "ट्")
("Th" "ठ्")
("D" "ड्")
("Dx" "ड़्")
("Dh" "ढ्")
("Dhx" "ढ़्")
("N" "ण्")
("t" "त्")
("th" "थ्")
("d" "द्")
("dh" "ध्")
("n" "न्")
("nx" "ऩ्")
("p" "प्")
("P" "फ्")
("ph" "फ्")
("Px" "फ़्")
("phx" "फ़्")
("f" "फ़्")
("b" "ब्")
("B" "भ्")
("bh" "भ्")
("m" "म्")
("y" "य्")
("Y" "य़्")
("r" "र्")
("R" "ऱ")
("rx" "ऱ्")
("l" "ल्")
("L" "ळ्")
("Lx" "ऴ्")
("v" "व्")
("w" "व्")
("S" "श्")
("sh" "श्")
("Sh" "ष्")
("s" "स्")
("h" "ह्")
("~h" "ह्")
)
(independent
("a" "अ")
("aa" "आ")
("A" "आ")
("i" "इ")
("ii" "ई")
("I" "ई")
("ee" "ई")
("u" "उ")
("oo" "ऊ")
("U" "ऊ")
("e" "ए")
("Ru" "ऋ")
("RU" "ॠ")
("~Lu" "ऌ")
("~LU" "ॡ")
("E" "अॅ")
("~a" "अॅ")
("~e" "अॅ")
("e" "ए")
("ai" "ऐ")
("~o" "ऑ")
("O" "ऑ")
("o" "ओ")
("ou" "औ")
("au" "औ")
(".a" "ऽ")
("@" "॒")
("#" "॑")
("~M" "ँ")
("M" "ं")
("H" "ः")
("&" "ऽ")
("~~" "~")
("~@" "@")
("~#" "#")
("~$" "$")
("~^" "^")
("~&" "&")
("oum" "ॐ")
("^" "‍")
("^^" "‌")
("0" "०")
("1" "१")
("2" "२")
("3" "३")
("4" "४")
("5" "५")
("6" "६")
("7" "७")
("8" "८")
("9" "९"))
(dependent
("@" (delete @-) "॒")
("#" (delete @-) "॑")
("~M" (delete @-) "ँ")
("M" (delete @-) "ं")
("H" (delete @-) "ः")
("~e" (delete @-) "ॅ")
("E" (delete @-) "ॅ")
("a" (delete @-) "")
("aa" (delete @-) "ा")
("A" (delete @-) "ा")
("i" (delete @-) "ि")
("I" (delete @-) "ी")
("ee" (delete @-) "ी")
("u" (delete @-) "ु")
("U" (delete @-) "ू")
("Ru" (delete @-) "ृ")
("RU" (delete @-) "ॄ")
("Lu" (delete @-) "ॢ")
("LU" (delete @-) "ॣ")
("E" (delete @-) "ॆ")
("e" (delete @-) "े")
("ai" (delete @-) "ै")
("~o" (delete @-) "ॉ")
("O" (delete @-) "ॉ")
("o" (delete @-) "ो")
("au" (delete @-) "ौ")
("&" (delete @-) "ऽ")
("|" (delete @-) "।")
(" " (delete @-) " ")
((Tab) (delete @-) " ")
((Return) (delete @-) "
")
("[" (delete @-) "[")
("]" (delete @-) "]")
("{" (delete @-) "{")
("}" (delete @-) "}")
("(" (delete @-) "(")
(")" (delete @-) ")")
("-" (delete @-) "-")
("+" (delete @-) "+")
("*" (delete @-) "*")
("/" (delete @-) "/")
("=" (delete @-) "=")
(";" (delete @-) ";")
(":" (delete @-) ":")
("." (delete @-) ".")
("," (delete @-) ",")
("\"" (delete @-) "\"")
("?" (delete @-) "?")
("!" (delete @-) "!")
("%" (delete @-) "%")
("\\" (delete @-) "\\")
("~" (delete @-) "~")
("_" (delete @-) "_")
("x" (delete @-) "़"))
(return
((Return)))
(backspace
((BackSpace) (undo))))
(state
(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)
(t (shift init))))
;; Local Variables:
;; coding: utf-8
;; mode: lisp
;; End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment