From eeee6445423f9288ed81bbd7e00f4f63c9ac3e4c Mon Sep 17 00:00:00 2001 From: ntakahas Date: Tue, 6 Dec 2011 04:17:39 +0000 Subject: [PATCH] Add alt-gr mappings (G- ) to correspond to alt mappings (A- ). --- im/si-phonetic-dynamic.mim | 22 ++++++++++++++++++++-- im/si-trans.mim | 13 +++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/im/si-phonetic-dynamic.mim b/im/si-phonetic-dynamic.mim index fbe7008..598e262 100644 --- a/im/si-phonetic-dynamic.mim +++ b/im/si-phonetic-dynamic.mim @@ -1,5 +1,5 @@ ;; si-phonetic-dynamic.mim -- Sinhala phonetic dynamic keymap -;; Copyright (C) 2007-2008 Harshula Jayasuriya +;; Copyright (C) 2007-2011 Harshula Jayasuriya ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License @@ -18,7 +18,7 @@ ;; m17n Keymap file for Sinhala (Sri Lanka) (2007-07-08) ;; Maintainer: Harshula Jayasuriya -;; Last Updated: 2008-12-26 +;; Last Updated: 2011-12-05 ;; This is a phonetic dynamic mapping for a standard US-English keyboard ;; (qwerty) ;; http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_4.html @@ -82,6 +82,7 @@ (map (phon ((A-n) "ං") ; 0x0d82 - anusvaraya (anusvara) + ((G-n) "ං") ; 0x0d82 - anusvaraya (anusvara) ("H" "ඃ") ; 0x0d83 - visargaya (visarga) ("a" (set c 0x0D85) (insert-vowel)) ; 0x0d85 - ayanna (a) @@ -95,20 +96,26 @@ ("q" (set c 0x0D8D) (insert-vowel)) ; 0x0d8d - iruyanna (iru) ("Q" (set c 0x0D8E) (insert-vowel)) ; 0x0d8e - iruuyanna (iruu) ((A-l) (set c 0x0D8F) (insert-vowel)) ; 0x0d8f - iluyanna (ilu) + ((G-l) (set c 0x0D8F) (insert-vowel)) ; 0x0d8f - iluyanna (ilu) ((A-L) (set c 0x0D90) (insert-vowel)) ; 0x0d90 - iluuyanna (iluu) + ((G-L) (set c 0x0D90) (insert-vowel)) ; 0x0d90 - iluuyanna (iluu) ("e" (set c 0x0D91) (insert-vowel)) ; 0x0d91 - eyanna (e) ("E" (set c 0x0D92) (insert-vowel)) ; 0x0d92 - eeyanna (ee) ((A-e) (set c 0x0D93) (insert-vowel)) ; 0x0d93 - aiyanna (ai) + ((G-e) (set c 0x0D93) (insert-vowel)) ; 0x0d93 - aiyanna (ai) ("o" (set c 0x0D94) (insert-vowel)) ; 0x0d94 - oyanna (o) ("O" (set c 0x0D95) (insert-vowel)) ; 0x0d95 - ooyanna (oo) ((A-o) (set c 0x0D96) (insert-vowel)) ; 0x0d96 - auyanna (au) + ((G-o) (set c 0x0D96) (insert-vowel)) ; 0x0d96 - auyanna (au) ("k" "ක") ; 0x0d9a - alpapraana kayanna (ka) ("K" "ඛ") ; 0x0d9b - mahaapraana kayanna (kha) ("g" "ග") ; 0x0d9c - alpapraana gayanna (ga) ("G" "ඝ") ; 0x0d9d - mahaapraana gayanna (gha) ((A-N) "ඞ") ; 0x0d9e - kantaja naasikyaya (nga) + ((G-N) "ඞ") ; 0x0d9e - kantaja naasikyaya (nga) ((A-g) "ඟ") ; 0x0d9f - sanyaka gayanna (nnga) + ((G-g) "ඟ") ; 0x0d9f - sanyaka gayanna (nnga) ("c" "ච") ; 0x0da0 - alpapraana cayanna (ca) ("C" "ඡ") ; 0x0da1 - mahaapraana cayanna (cha) ("j" "ජ") ; 0x0da2 - alpapraana jayanna (ja) @@ -116,10 +123,15 @@ ("z" "ඤ") ; 0x0da4 - taaluja naasikyaya (nya) ("Z" "ඥ") ; 0x0da5 - taaluja sanyooga naasikyaya (jnya) ((A-j) "ඦ") ; 0x0da6 - sanyaka jayanna (nyja) + ((G-j) "ඦ") ; 0x0da6 - sanyaka jayanna (nyja) ((A-t) "ට") ; 0x0da7 - alpapraana ttayanna (tta) + ((G-t) "ට") ; 0x0da7 - alpapraana ttayanna (tta) ((A-T) "ඨ") ; 0x0da8 - mahaapraana ttayanna (ttha) + ((G-T) "ඨ") ; 0x0da8 - mahaapraana ttayanna (ttha) ((A-d) "ඩ") ; 0x0da9 - alpapraana ddayanna (dda) + ((G-d) "ඩ") ; 0x0da9 - alpapraana ddayanna (dda) ((A-D) "ඪ") ; 0x0daa - mahaapraana ddayanna (ddha) + ((G-D) "ඪ") ; 0x0daa - mahaapraana ddayanna (ddha) ("N" "ණ") ; 0x0dab - muurdhaja nayanna (nna) ("X" "ඬ") ; 0x0dac - sanyaka ddayanna (nndda) ("t" "ත") ; 0x0dad - alpapraana tayanna (ta) @@ -140,23 +152,29 @@ ("v" "ව") ; 0x0dc0 - vayanna (va) ("S" "ශ") ; 0x0dc1 - taaluja sayanna (sha) ((A-s) "ෂ") ; 0x0dc2 - muurdhaja sayanna (ssa) + ((G-s) "ෂ") ; 0x0dc2 - muurdhaja sayanna (ssa) ("s" "ස") ; 0x0dc3 - dantaja sayanna (sa) ("h" "හ") ; 0x0dc4 - hayanna (ha) ("L" "ළ") ; 0x0dc5 - muurdhaja layanna (lla) ("f" "ෆ") ; 0x0dc6 - fayanna (fa) ((A-.) "෴") ; 0x0df4 - kunddaliya (punctuation) + ((G-.) "෴") ; 0x0df4 - kunddaliya (punctuation) ("R" "්‍ර") ; 0x0dca,0x200d,0x0dbb - rakaaranshaya ("Y" "්‍ය") ; 0x0dca,0x200d,0x0dba - yansaya ((A-r) "ර්‍") ; 0x0dbb,0x0dca,0x200d - repaya + ((G-r) "ර්‍") ; 0x0dbb,0x0dca,0x200d - repaya ((A-,) "්‍") ; 0x0dca,0x200d - join - conjunct letters cons 0DCA ZWJ cons + ((G-,) "්‍") ; 0x0dca,0x200d - join - conjunct letters cons 0DCA ZWJ cons ((A-/) "‍්") ; 0x200d,0x0dca - touch - cons ZWJ 0DCA cons + ((G-/) "‍්") ; 0x200d,0x0dca - touch - cons ZWJ 0DCA cons ;; Shift-space and Alt-space ((S-\ ) " ") ; 0x00a0 - no-break space ((A-\ ) "‌") ; 0x200c - ZWNJ + ((G-\ ) "‌") ; 0x200c - ZWNJ ((BackSpace) (cond diff --git a/im/si-trans.mim b/im/si-trans.mim index af2b0a9..279979f 100644 --- a/im/si-trans.mim +++ b/im/si-trans.mim @@ -1,5 +1,5 @@ ;; si-trans.mim -- Sinhala transliteration keymap -;; Copyright (C) 2007-2008 Harshula Jayasuriya +;; Copyright (C) 2007-2011 Harshula Jayasuriya ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU General Public License @@ -18,7 +18,7 @@ ;; m17n Keymap file for Sinhala (Sri Lanka) (2007-07-08) ;; Maintainer: Harshula Jayasuriya -;; Last Updated: 2008-09-10 +;; Last Updated: 2011-12-05 ;; This is a transliteration mapping for a standard US-English keyboard ;; (qwerty) ;; http://www.nongnu.org/sinhala/doc/transliteration/sinhala-transliteration_5.html @@ -41,16 +41,20 @@ ("NG" "ඞ්") ; 0x0d9e - kantaja naasikyaya (nga) ("Mg" "ඟ්") ; 0x0d9f - sanyaka gayanna (nnga) ((A-n g) "ඟ්") ; AS ABOVE + ((G-n g) "ඟ්") ; AS ABOVE ("c" "ච්") ; 0x0da0 - alpapraana cayanna (ca) ("cH" "ඡ්") ; 0x0da1 - mahaapraana cayanna (cha) ("j" "ජ්") ; 0x0da2 - alpapraana jayanna (ja) ("jH" "ඣ්") ; 0x0da3 - mahaapraana jayanna (jha) ("My" "ඤ්") ; 0x0da4 - taaluja naasikyaya (nya) ((A-n y) "ඤ්") ; AS ABOVE + ((G-n y) "ඤ්") ; AS ABOVE ("jqMy" "ඥ්") ; 0x0da5 - taaluja sanyooga naasikyaya (jnya) ((j q A-n y) "ඥ්") ; AS ABOVE + ((j q G-n y) "ඥ්") ; AS ABOVE ("Mj" "ඦ්") ; 0x0da6 - sanyaka jayanna (nyja) ((A-n j) "ඦ්") ; AS ABOVE + ((G-n j) "ඦ්") ; AS ABOVE ("T" "ට්") ; 0x0da7 - alpapraana ttayanna (tta) ("TH" "ඨ්") ; 0x0da8 - mahaapraana ttayanna (ttha) ("D" "ඩ්") ; 0x0da9 - alpapraana ddayanna (dda) @@ -58,6 +62,7 @@ ("N" "ණ්") ; 0x0dab - muurdhaja nayanna (nna) ("MD" "ඬ්") ; 0x0dac - sanyaka ddayanna (nndda) ((A-n D) "ඬ්") ; AS ABOVE + ((G-n D) "ඬ්") ; AS ABOVE ("t" "ත්") ; 0x0dad - alpapraana tayanna (ta) ("tH" "ථ්") ; 0x0dae - mahaapraana tayanna (tha) ("d" "ද්") ; 0x0daf - alpapraana dayanna (da) @@ -65,6 +70,7 @@ ("n" "න්") ; 0x0db1 - dantaja nayanna (na) ("Md" "ඳ්") ; 0x0db3 - sanyaka dayanna (nda) ((A-n d) "ඳ්") ; AS ABOVE + ((G-n d) "ඳ්") ; AS ABOVE ("p" "ප්") ; 0x0db4 - alpapraana payanna (pa) ("pH" "ඵ්") ; 0x0db5 - mahaapraana payanna (pha) ("b" "බ්") ; 0x0db6 - alpapraana bayanna (ba) @@ -105,10 +111,13 @@ ("nG" "ං") ; 0x0d82 - anusvaraya (anusvara) ("H" "ඃ") ; 0x0d83 - visargaya (visarga) ((A-h) "ඃ") ; AS ABOVE + ((G-h) "ඃ") ; AS ABOVE ((A-.) "෴") ; 0x0df4 - kunddaliya (punctuation) + ((G-.) "෴") ; 0x0df4 - kunddaliya (punctuation) ;; Shift-space and Alt-space ((S-\ ) " ") ; 0x00a0 - no-break space ((A-\ ) "‌") ; 0x200c - ZWNJ + ((G-\ ) "‌") ; 0x200c - ZWNJ ) (dependent -- 1.7.10.4