ЁЯМР
ROOT
/
usr
/
share
/
m17n
ЁЯУд Upload File
ЁЯУБ New Folder
тЬПя╕П EDITING: hi-optitransv2.mim
;; hi-optitransv2.mim -- Hindi input method. ;; Copyright (C) 2015 Vishvas Vasuki <vishvas.vasuki@gmail.com> ;; 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 hi optitransv2) (description "Hindi input method by the OPTITRANS transliteration system. 0. A major deviation from other transliteration systems like ITRANS and HK is that latin consonants are mapped to the correpsonding devanAgarI consonant *followed by the vowel a*. For example, k maps to рдХ, not рдХреН. 1. panchama-varNa-s of vyanjana-varga-s nnk->рдЩреНрдХ, nnkh->рдЩреНрдЦ, nng->рдЩреНрдЧ, nngh->рдЩреНрдШ nnch->рдЮреНрдЪ, nnCh->рдЮреНрдЫ, nnc->рдЮреНрдЪ, nnC->рдЮреНрдЫ, 2. Any common consonant, typed twice, yields that consonant with the virAma. So, nn yields рдиреН. The rationale is that a repeated consonant such as рдирди and рджрдж is far less common than the consonants with a virAma, such as рдиреН and рджреН. 3. The rare character sequences that conflict with shortcuts for more frequently occuring strings can be typed using the "commit key" - (Ctrl + Shift + Enter), or with the use of the arrow key. For example, sh yields рд╢. But if one wanted to type рд╕рд╣, one can type: s<Commit key>h or s<left arrow, right arrow>h. Examples: - Avoiding unnecessary 'a'-s. - kml or kamala - рдХрдорд▓ - Typing vyanjana-s with a virAma - sikkt - рд╕рд┐рдХреНрдд - sik;t - рд╕рд┐рдХреНрдд - Shortcut for typing panchama-s/ anunAsika-s of vargIya-vyanjana-s - shankara or shnnkr- рд╢рдЩреНрдХрд░ред - snncit - рд╕рдЮреНрдЪрд┐рдд - shann karoti - рд╢рдЩреН рдХрд░реЛрддрд┐ред - Overriding shortcuts - pashyann karoti - рдкрд╢реНрдпрдиреН рдХрд░реЛрддрд┐ред (Note two spaces here. Avoids рдкрд╢реНрдпрдЩреН рдХрд░реЛрддрд┐ ) - s<Commit key>h or s<left arrow, right arrow>h or sah or saha - рд╕рд╣ (Avoids рд╢) The motivation behind additions made to the basic ITRANS scheme is described in https://sites.google.com/site/sanskritcode/optitrans, along with a tabulated comparison with several other transliteration schemes. Also, see: http://en.wikipedia.org/wiki/Devanagari_transliteration.") (title "рдХ") (map (non_init_keys (".") (";") ("~") ("$") ("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") ) (consonant ("k" "рдХ") ("kh" "рдЦ") ("K" "рдЦ") ("g" "рдЧ") ("gh" "рдШ") ("G" "рдШ") (".k" "рдХрд╝") ("q" "реШ") (".kh" "рдЦрд╝") (".K" "рдЦрд╝") (".g" "рдЧрд╝") ("~N" "рдЩ") ("N^" "рдЩ") ("ch" "рдЪ") ("Ch" "рдЫ") ("c" "рдЪ") ("C" "рдЫ") ("chh" "рдЫ") ("j" "рдЬ") ("jh" "рдЭ") ("J" "рдЭ") ("~n" "рдЮ") ("T" "рдЯ") ("Th" "рда") ("D" "рдб") ("Dh" "рдв") (".D" "рдбрд╝") (".Dh" "рдврд╝") ("N" "рдг") ("t" "рдд") ("th" "рде") ("d" "рдж") ("dh" "рдз") ("n" "рди") (":n" "рдй") ("p" "рдк") ("ph" "рдл") ("P" "рдл") (".ph" "рдлрд╝") ("f" "рдлрд╝") ("b" "рдм") ("bh" "рдн") ("B" "рдн") ("m" "рдо") ("y" "рдп") ("Y" "реЯ") ("yh" "реЯ") (".y" "реЯ") ("r" "рд░") ("l" "рд▓") ("L" "рд│") ("v" "рд╡") ("w" "рд╡") ("sh" "рд╢") ("Z" "реЫ") (".j" "рдЬрд╝") ("z" "рд╢") ("S" "рд╖") ("Sh" "рд╖") ("shh" "рд╖") ("s" "рд╕") ("h" "рд╣") ("jjn" "рдЬреНрдЮ") ("JN" "рдЬреНрдЮ") ("x" "рдХреНрд╖") ; Best keys for the below are not clear. ; ("gH" ре╗) ; ("jH" ре╝) ; ("DH" "ре╛") ; ("BH" "ре┐") ; nn shortcuts ("nnk" "рдЩреН" (pushback 1)) ("nnx" "рдЩреН" (pushback 1)) ("nnkh" "рдЩреН" (pushback 1)) ("nnK" "рдЩреН" (pushback 1)) ("nng" "рдЩреН" (pushback 1)) ("nngh" "рдЩреН" (pushback 1)) ("nnG" "рдЩреН" (pushback 1)) ("nnch" "рдЮреН" (pushback 1)) ("nnCh" "рдЮреН" (pushback 1)) ("nnc" "рдЮреН" (pushback 1)) ("nnC" "рдЮреН" (pushback 1)) ("nnj" "рдЮреН" (pushback 1)) ("nnjh" "рдЮреН" (pushback 1)) ("nnJ" "рдЮреН" (pushback 1)) ("nnT" "рдгреН" (pushback 1)) ("nnTh" "рдгреН" (pushback 1)) ("nnD" "рдгреН" (pushback 1)) ("nnDh" "рдгреН" (pushback 1)) ) ; consonant ends (consonant_with_space ; nn shortcuts with space ("nn " "рдиреН ") ("nn " "рдиреН ") ; handle the case where the transformation to рдЩреН etc.. is not desired, even when followed by a character like k. ("nn k" "рдЩреН " (pushback 1)) ("nn x" "рдЩреН " (pushback 1)) ("nn K" "рдЩреН " (pushback 1)) ("nn g" "рдЩреН " (pushback 1)) ("nn G" "рдЩреН " (pushback 1)) ("nn c" "рдЮреН " (pushback 1)) ("nn C" "рдЮреН " (pushback 1)) ("nn j" "рдЮреН " (pushback 1)) ("nn J" "рдЮреН " (pushback 1)) ("nn T" "рдгреН " (pushback 1)) ("nn D" "рдгреН " (pushback 1)) ) ; consonant_with_space ends (consonant_with_viraama ; virAma shortcuts ("kk" "рдХреН") ("khkh" "рдЦреН") ("KK" "рдЦреН") ("gg" "рдЧреН") ("ghgh" "рдШреН") ("GG" "рдШреН") ("~N~N" "рдЩреН") ("chch" "рдЪреН") ("ChCh" "рдЫреН") ("cc" "рдЪреН") ("CC" "рдЫреН") ("jj" "рдЬреН") ("jhjh" "рдЭреН") ("JJ" "рдЭреН") ("~n~n" "рдЮреН") ("JNJN" "рдЮреН") ("TT" "рдЯреН") ("ThTh" "рдареН") ("DD" "рдбреН") ("DhDh" "рдвреН") ("NN" "рдгреН") ("tt" "рддреН") ("thth" "рдереН") ("dd" "рджреН") ("dhdh" "рдзреН") ("nn" "рдиреН") ("pp" "рдкреН") ("phph" "рдлреН") ("PP" "рдлреН") ("FF" "рдлрд╝реН") ("bb" "рдмреН") ("bhbh" "рднреН") ("BB" "рднреН") ("mm" "рдореН") ("M" "рдВ") ("MM" "рдореН") ("yy" "рдпреН") ("rr" "рд░реН") ("ll" "рд▓реН") ("LL" "рд│реН") ("vv" "рд╡реН") ("shsh" "рд╢реН") ("ZZ" "реЫреН") (".j.j" "рдЬрд╝реН") ("zz" "рд╢реН") ("SS" "рд╖реН") ("ShSh" "рд╖реН") ("ss" "рд╕реН") ("hh" "рд╣реН") ("xx" "рдХреНрд╖реН") ("jjnjjn" "рдЬреНрдЮреН") ("JNJN" "рдЬреНрдЮреН") ) ; consonant_with_viraama ends (independent ("a" "рдЕ") ("aa" "рдЖ") ("A" "рдЖ") ("i" "рдЗ") ("ii" "рдИ") ("I" "рдИ") ("u" "рдЙ") ("uu" "рдК") ("U" "рдК") ("R" "рдЛ") ("RRi" "рдЛ") ("R^i" "рдЛ") ("LLi" "рдМ") ("L^i" "рдМ") ("ea" "рдН") ("ee" "рдО") ("E" "рдО") ("e" "рдП") ("ai" "рдР") ("oo" "рдТ") ("O" "рдТ") ("o" "рдУ") ("oa" "рдС") ("au" "рдФ") ("RRI" "реа") ("RR" "реа") ("R^I" "реа") ("LLI" "реб") ("L^I" "реб") ("AUM" "реР") ("OM" "реР") (".a" "рд╜") ((S-\ ) "тАМ") ((C-@) "тАН")) ; independent ends (ayogavAhas ; Visarga and the like may appear after a vowel. So, they aren't expected just in the dependent state. (".N" "рдБ") ("M" "рдВ") ("H" "рдГ") ("HH" "с│▓") ; ardhavisarga - often used to denote jihvAmUlIya and upadhmAnIya. ) ; ayogavAhas end (ayogavAhas_with_consonant ; jihvAmUlIya and upadhmAnIya shortcuts ("Hk" "с│╡" (pushback 1)) ("Hp" "с│╢" (pushback 1)) ("Hkh" "с│╡" (pushback 1)) ("Hph" "с│╢" (pushback 1)) ("HK" "с│╡" (pushback 1)) ("HP" "с│╢" (pushback 1)) ) ; ayogavAhas_with_consonant ends (digit ("0" "реж") ("1" "рез") ("2" "реи") ("3" "рей") ("4" "рек") ("5" "рел") ("6" "рем") ("7" "рен") ("8" "рео") ("9" "реп") ((KP_0) "реж") ((KP_1) "рез") ((KP_2) "реи") ((KP_3) "рей") ((KP_4) "рек") ((KP_5) "рел") ((KP_6) "рем") ((KP_7) "рен") ((KP_8) "рео") ((KP_9) "реп")) ; digit ends (udattta ("_" "реТ") ("''" "реС")) (dependent ("a" "") ("aa" "рд╛") ("A" "рд╛") ("i" "рд┐") ("ii" "реА") ("I" "реА") ("u" "реБ") ("uu" "реВ") ("U" "реВ") ("R" "реГ") ("RRi" "реГ") ("R^i" "реГ") ("LLi" "рев") ("L^i" "рев") ("ea" "реЕ") ("ee" "реЖ") ("E" "реЖ") ("e" "реЗ") ("ai" "реИ") ("oo" "реК") ("O" "реК") ("o" "реЛ") ("oa" "реЙ") ("au" "реМ") ("RR" "реД") ("RRI" "реД") ("R^I" "реД") ("LLI" "рег") ("L^I" "рег") (";" "реН") (".h" "реН") ) ; dependent end (dot_start ("." "ред") (".." "ред") (".," "рее") ("./" "ре░") (". " "ред" (pushback 1)) ((?. Return) "ред" (pushback 1)) ((?. Tab) "ред" (pushback 1)) (".(" "ред" (pushback 1)) (".)" "ред" (pushback 1)) (".[" "ред" (pushback 1)) (".]" "ред" (pushback 1)) (".{" "ред" (pushback 1)) (".}" "ред" (pushback 1)) (".'" "ред" (pushback 1)) (".\"" "ред" (pushback 1))) ; dot_start ends (commit-key ((S-C-Return))) (backspace ((BackSpace) (undo))) ) ; map ends (state (state_init (non_init_keys (pushback 1) (shift state_indic_letter)) (udattta) (digit) (commit-key) ) (state_indic_letter (consonant (shift state_consonant_pressed)) (ayogavAhas_with_consonant (shift state_consonant_pressed)) (consonant_with_space (shift state_init)) (consonant_with_viraama (shift state_init)) (independent (shift state_init)) (dot_start (shift state_init)) (backspace) (ayogavAhas (shift state_init)) ) (state_consonant_pressed (consonant) (ayogavAhas_with_consonant) (consonant_with_space (shift state_init)) (consonant_with_viraama (shift state_init)) (dependent (shift state_init)) (dot_start (shift state_init)) (backspace) (ayogavAhas (shift state_init)) ) ) ; state ends ;; Local Variables: ;; coding: utf-8 ;; mode: emacs-lisp ;; End:
ЁЯТ╛ SAVE CHANGES
CANCEL