;; ml-inscript2.mim -- Malayalam input method for enhanced inscript layout ;; Copyright (c) 2011-2016, 2021 Red Hat, Inc. All Rights Reserved. ;; This program 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. ;; This program 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. ;; ;; Author: Parag Nemade (input-method ml inscript2) (description "Malayalam input method for enhanced inscript layout. Reference URL - http://ildc.in/Inscript-layout.html Use AltGr (Alt_R key) to type the following characters: Character Key ---------------------------- ZWJ AltGr + 1 ZWNJ AltGr + 2 ₹ AltGr + 4 Following are the conjuncts formed in our language, shown along with the keys to reproduce them: Case 1: CHILLU aksharam: (i) ന്‍ = ന + ് + zero width joiner(zwj) ie, key 'v' + key 'd' + key (ii) ല്‍ = ല + ് + zero width joiner(zwj) ie, key 'n' + key 'd' + key (iii) ര്‍ = ര + ് + zero width joiner(zwj) ie, key 'j' + key 'd' + key (iv) ണ്‍ = ണ + ് + zero width joiner(zwj) ie, shift key 'c' + key 'd' + key (v) ള്‍ = ള + ് + zero width joiner(zwj) ie, shift key 'n' + key 'd' + key Case 2: (i) ങ്ങ = ങ + ് + ക ie, shift key 'u' + key 'd' + key 'k' (ii) ന്ത = ന + ് + ത ie, key 'v' + key 'd' + key 'l' (iii) ഞ്ച = ഞ + ് + ച ie, shift key '}' + key 'd' + key ';' (iv) ണ്ട = ണ + ് + ട ie, shift key 'c' + key 'd' + key '\'' (v) മ്പ = മ + ് + പ ie, key 'v' + key 'd' + key 'h' (vi) ക്ഷ = ക + ് + ഷ ie, key 'c' + key 'd' + shift key ',' Case 3: Koottaksharangal: (i) ക്ക = ക + ് + ക ie, key 'k' + key 'd' + key 'k' (ii) ങ്ങ = ങ + ് + ങ ie, shift key 'u' + key 'd' + shift key 'u' (iii) ച്ച = ച + ് + ച ie, key ';' + key 'd' + key ';' (iv) ഞ്ഞ = ഞ + ് + ഞ ie, shift key '}' + key 'd' + shift key '}' (v) ട്ട = ട + ് + ട ie, key '\'' + key 'd' + key '\'' (vi) ണ്ണ = ണ + ് + ണ ie, shift key 'c' + key 'd' + shift key 'c' (vii) ത്ത = ത + ് + ത ie, key 'l' + key 'd' + key 'l' (viii) ന്ന = ന + ് + ന ie, key 'v' + key 'd' + key 'v' (ix) മ്മ = മ + ് + മ ie, key 'c' + key 'd' + key 'c' (x) ല്ല = ല + ് + ല ie, key 'n' + key 'd' + key 'n' (xi) വ്വ = വ + ് + വ ie, key 'b' + key 'd' + key 'b' (xii) യ്യ = യ + ് + യ ie, key '/' + key 'd' + key '/' (xiii) ശ്ശ = ശ + ് + ശ ie, shift key 'm' + key 'd' + shift key 'm' (xiv) സ്സ = സ + ് + സ ie, key 'm' + key 'd' + key 'm' (xv) ള്ള = ള + ് + ള ie, shift key 'n' + key 'd' + shift key 'n' (xvi) റ്റ = റ + ് + റ ie, shift key 'j' + key 'd' + shift key 'j' Case 4: (Following conjuncts are explained with the help of consonant 'ക') (1) Conjuncts formed with ര (ra): ക്ര = ക + ് + ര ie, key 'k' + key 'd' + key 'j' (2) Conjuncts formed with യ (ya): ക്യ = ക + ് + യ ie, key 'k' + key 'd' + key '/' (3) Conjuncts formed with വ (va): ക്വ = ക + ് + വ ie, key 'k' + key 'd' + key 'b' Special case: ന്റ = ന + ് + റ ie, key 'v' + key 'd' + shift key 'j' Author: Ani Peter ") (title "ക") (map (trans ((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) "-") ("~" "ഒ") ("`" "ൊ") ((G-!) "൰") ("1" "൧") ((G-1) "‍") ((G-@) "൱") ("2" "൨") ((G-2) "‌") ("#" "്ര") ((G-#) "൲") ("3" "൩") ((G-$) "൳") ("4" "൪") ((G-4) "₹") ((G-%) "൴") ("5" "൫") ((G-^) "൵") ("6" "൬") ("&" "ക്ഷ") ("7" "൭") ("*" "ൾ") ("8" "൮") ("(" "(") ("9" "൯") (")" ")") ("0" "൦") ("_" "ഃ") ("-" "-") ("+" "ഋ") ((G-+) "ൠ") ("=" "ൃ") ((G-=) "ൄ") ("Q" "ഔ") ("q" "ൗ") ((G-q) "ൌ") ("W" "ഐ") ("w" "ൈ") ("E" "ആ") ("e" "ാ") ("R" "ഈ") ((G-R) "ൡ") ("r" "ീ") ((G-r) "ൣ") ("T" "ഊ") ("t" "ൂ") ("Y" "ഭ") ("y" "ബ") ("U" "ങ") ("u" "ഹ") ("I" "ഘ") ("i" "ഗ") ("O" "ധ") ("o" "ദ") ("P" "ഝ") ("p" "ജ") ("{" "ഢ") ("[" "ഡ") ("}" "ഞ") ("\\" "ർ") ("A" "ഓ") ("a" "ോ") ("S" "ഏ") ("s" "േ") ("D" "അ") ("d" "്") ("F" "ഇ") ((G-F) "ഌ") ("f" "ി") ((G-f) "ൢ") ("G" "ഉ") ("g" "ു") ("H" "ഫ") ("h" "പ") ("J" "റ") ("j" "ര") ("K" "ഖ") ("k" "ക") ("L" "ഥ") ("l" "ത") (":" "ഛ") (";" "ച") ("\"" "ഠ") ("'" "ട") ("~" "ഒ") ("`" "ൊ") ("G-'" "ഺ") ("Z" "എ") ("z" "െ") ("X" "ൺ") ("x" "ം") ("C" "ണ") ("c" "മ") ("V" "ൻ") ("G-V" "൹") ("v" "ന") ((G-v) "ഩ") ("B" "ഴ") ("b" "വ") ("N" "ള") ((G-N) "ൾ") ("n" "ല") ((G-n) "ൽ") ("M" "ശ") ("m" "സ") ("<" "ഷ") ("," ",") (">" "ൽ") ((G->) "ഽ") ("." ".") ((G-.) "॥") ("/" "യ") )) (state (init (trans)))