From 81124070f120ab658e094b64f6944d701b003a99 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 13 Jul 2010 07:35:01 +0000 Subject: Renamed xkbdata.src to xkeyboard-config (to reflect the name in the git repository) --- xorg-server/xkeyboard-config/symbols/lk | 93 +++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 xorg-server/xkeyboard-config/symbols/lk (limited to 'xorg-server/xkeyboard-config/symbols/lk') diff --git a/xorg-server/xkeyboard-config/symbols/lk b/xorg-server/xkeyboard-config/symbols/lk new file mode 100644 index 000000000..cfc5b1ff9 --- /dev/null +++ b/xorg-server/xkeyboard-config/symbols/lk @@ -0,0 +1,93 @@ +// $XKeyboardConfig$ + +// X Keyboard Extension file for Sinhala (Sri Lanka) (2004-04-22) +// Maintainer : Harshula Jayasuriya +// Last Updated: 2007-06-29 +// This is a static phonetic mapping for a standard US-English keyboard +// (qwerty) +// http://www.nongnu.org/sinhala/doc/keymaps/sinhala-keyboard_3.html + +// Repaya, Rakaransaya and Yansaya aren't inserted with A-r, R and Y, +// respectively. The problem lies with the XKB infrastructure which +// only allows a one-to-one mapping of keycodes to Unicode codepoints. +// Unfortunately, the 3 mentioned glyphs actually consists of 3 +// Unicode codepoints each. The result is that the user must +// manually construct the glyph by typing each of the 3 codepoints. +// ALT-, represents the 'JOIN' key, it requires +// two codepoints, hence it also has to be manually constructed. +// Similarly, ALT-/ representing the 'TOUCH' key requires +// two codepoints. + +// Repaya = rayanna,AL,ZWJ +// Rakaransaya = AL,ZWJ,rayanna +// Yansaya = AL,ZWJ,yayanna +// JOIN = AL,ZWJ +// TOUCH = ZWJ,AL + +// Where, +// AL = Al Lakuna = ALT-a +// ZWJ = Zero Width Joiner = ALT-/ +// rayanna = r +// yayanna = y + +partial default alphanumeric_keys +xkb_symbols "sin_phonetic" { + + include "us" +// it is default - no details in the name + name[Group1] = "Sri Lanka"; + key.type[Group1] = "FOUR_LEVEL"; + + // q - p + key { [ 0x01000d8d, 0x01000d8e, 0x01000dd8, 0x01000df2 ] }; + key { [ 0x01000d87, 0x01000d88, 0x01000dd0, 0x01000dd1 ] }; + key { [ 0x01000d91, 0x01000d92, 0x01000dd9, 0x01000dda ] }; + key { [ 0x01000dbb, 0x01000dca, 0x01000dbb, NoSymbol ] }; + key { [ 0x01000dad, 0x01000dae, 0x01000da7, 0x01000da8 ] }; + key { [ 0x01000dba, 0x01000dca, NoSymbol, NoSymbol ] }; + key { [ 0x01000d8b, 0x01000d8c, 0x01000dd4, 0x01000dd6 ] }; + key { [ 0x01000d89, 0x01000d8a, 0x01000dd2, 0x01000dd3 ] }; + key { [ 0x01000d94, 0x01000d95, 0x01000ddc, 0x01000ddd ] }; + key { [ 0x01000db4, 0x01000db5, NoSymbol, NoSymbol ] }; + + // a - l + key { [ 0x01000d85, 0x01000d86, 0x01000dca, 0x01000dcf ] }; + key { [ 0x01000dc3, 0x01000dc1, 0x01000dc2, NoSymbol ] }; + key { [ 0x01000daf, 0x01000db0, 0x01000da9, 0x01000daa ] }; + key { [ 0x01000dc6, NoSymbol, 0x01000ddb, 0x01000d93 ] }; + key { [ 0x01000d9c, 0x01000d9d, 0x01000d9f, NoSymbol ] }; + key { [ 0x01000dc4, 0x01000d83, 0x01000dde, 0x01000d96 ] }; + key { [ 0x01000da2, 0x01000da3, 0x01000da6, NoSymbol ] }; + key { [ 0x01000d9a, 0x01000d9b, 0x01000d8f, 0x01000d90 ] }; + key { [ 0x01000dbd, 0x01000dc5, 0x01000ddf, 0x01000df3 ] }; + + // z - ? + key { [ 0x01000da4, 0x01000da5, NoSymbol, NoSymbol ] }; + key { [ 0x01000db3, 0x01000dac, NoSymbol, NoSymbol ] }; + key { [ 0x01000da0, 0x01000da1, NoSymbol, NoSymbol ] }; + key { [ 0x01000dc0, NoSymbol, NoSymbol, NoSymbol ] }; + key { [ 0x01000db6, 0x01000db7, NoSymbol, NoSymbol ] }; + key { [ 0x01000db1, 0x01000dab, 0x01000d82, 0x01000d9e ] }; + key { [ 0x01000db8, 0x01000db9, NoSymbol, NoSymbol ] }; + key { [ any, any, 0x01000dca, NoSymbol ] }; + key { [ any, any, 0x01000df4, NoSymbol ] }; + key { [ any, any, 0x0100200d, NoSymbol ] }; + + // Space + include "nbsp(zwnj2nb3s)" + + include "level3(ralt_switch)" +}; + +partial alphanumeric_keys +xkb_symbols "tam_unicode" { + include "in(tam_unicode)" + name[Group1]= "Sri Lanka - Tamil Unicode"; +}; + +partial alphanumeric_keys +xkb_symbols "tam_TAB" { + include "in(tam_TAB)" + name[Group1]= "Sri Lanka - Tamil TAB Typewriter"; +}; + -- cgit v1.2.3