111 lines
4.0 KiB
Plaintext
111 lines
4.0 KiB
Plaintext
// $XdotOrg$
|
|
// $XKeyboardConfig: xkbdesc/symbols/lk,v 1.4 2005/08/04 22:15:10 svu Exp $
|
|
|
|
// X Keyboard Extension file for Sinhala (Sri Lanka) (2004-04-22)
|
|
// Maintainer : Harshula Jayasuriya <hash@jayasolutions.cjb.net>
|
|
// Last Updated: 2004-11-14
|
|
// 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 resultant is that the user must
|
|
// manually construct the glyph by typing each of the 3 codepoints.
|
|
// Alt-backslash represents the 'join' key, this requires
|
|
// two codepoints, hence it also has to be manually constructed.
|
|
|
|
// Repaya = rayanna,AL,ZWJ
|
|
// Rakaransaya = AL,ZWJ,rayanna
|
|
// Yansaya = AL,ZWJ,yayanna
|
|
// join = AL,ZWJ
|
|
|
|
// Where,
|
|
// AL = Al Lakuna = Alt-a
|
|
// ZWJ = Zero Width Joiner = Alt-Shift-Backslash
|
|
// rayanna = r
|
|
// yayanna = y
|
|
|
|
partial default alphanumeric_keys
|
|
xkb_symbols "sin_phonetic" {
|
|
|
|
include "pc/us"
|
|
// it is default - no details in the name
|
|
name[Group1] = "Sri Lanka";
|
|
key.type = "FOUR_LEVEL";
|
|
|
|
// q - p
|
|
key <AD01> { [ 0x01000d8d, 0x01000d8e, 0x01000dd8, 0x01000df2 ] };
|
|
key <AD02> { [ 0x01000d87, 0x01000d88, 0x01000dd0, 0x01000dd1 ] };
|
|
key <AD03> { [ 0x01000d91, 0x01000d92, 0x01000dd9, 0x01000dda ] };
|
|
key <AD04> { [ 0x01000dbb, 0x01000dca, 0x01000dbb, NoSymbol ] };
|
|
key <AD05> { [ 0x01000da7, 0x01000da8, 0x01000dad, 0x01000dae ] };
|
|
key <AD06> { [ 0x01000dba, 0x01000dca, NoSymbol, NoSymbol ] };
|
|
key <AD07> { [ 0x01000d8b, 0x01000d8c, 0x01000dd4, 0x01000dd6 ] };
|
|
key <AD08> { [ 0x01000d89, 0x01000d8a, 0x01000dd2, 0x01000dd3 ] };
|
|
key <AD09> { [ 0x01000d94, 0x01000d95, 0x01000ddc, 0x01000ddd ] };
|
|
key <AD10> { [ 0x01000db4, 0x01000db5, NoSymbol, NoSymbol ] };
|
|
|
|
// a - l
|
|
key <AC01> { [ 0x01000d85, 0x01000d86, 0x01000dca, 0x01000dcf ] };
|
|
key <AC02> { [ 0x01000dc3, 0x01000dc2, 0x01000dc1, NoSymbol ] };
|
|
key <AC03> { [ 0x01000da9, 0x01000daa, 0x01000daf, 0x01000db0 ] };
|
|
key <AC04> { [ 0x01000dc6, 0x01000d93, 0x01000ddb, NoSymbol ] };
|
|
key <AC05> { [ 0x01000d9c, 0x01000d9d, 0x01000d9f, NoSymbol ] };
|
|
key <AC06> { [ 0x01000dc4, 0x01000d96, 0x01000dde, NoSymbol ] };
|
|
key <AC07> { [ 0x01000da2, 0x01000da3, 0x01000da6, NoSymbol ] };
|
|
key <AC08> { [ 0x01000d9a, 0x01000d9b, 0x01000d8f, 0x01000d90 ] };
|
|
key <AC09> { [ 0x01000dbd, 0x01000dc5, 0x01000ddf, 0x01000df3 ] };
|
|
|
|
// z - m
|
|
key <AB01> { [ 0x01000da4, 0x01000da5, NoSymbol, NoSymbol ] };
|
|
key <AB02> { [ 0x01000dac, 0x01000db3, NoSymbol, NoSymbol ] };
|
|
key <AB03> { [ 0x01000da0, 0x01000da1, NoSymbol, NoSymbol ] };
|
|
key <AB04> { [ 0x01000dc0, 0x01000d82, 0x01000d83, NoSymbol ] };
|
|
key <AB05> { [ 0x01000db6, 0x01000db7, NoSymbol, NoSymbol ] };
|
|
key <AB06> { [ 0x01000db1, 0x01000dab, 0x01000d9e, NoSymbol ] };
|
|
key <AB07> { [ 0x01000db8, 0x01000db9, NoSymbol, NoSymbol ] };
|
|
|
|
// '.' - Fullstop
|
|
key <AB09> { [ any, any, 0x01000df4, NoSymbol ] };
|
|
|
|
// Backslash
|
|
key <BKSL> { [ any, any, 0x01000dca, 0x0100200d ] };
|
|
|
|
// Space
|
|
key <SPCE> { [ space, nobreakspace, 0x0100200c, NoSymbol ] };
|
|
|
|
include "level3(ralt_switch)"
|
|
};
|
|
|
|
// based on a keyboard map from an 'xkb/symbols/tml' file
|
|
//
|
|
// $XFree86: xc/programs/xkbcomp/symbols/tml,v 1.2 2002/11/22 04:03:28 dawes Exp $
|
|
|
|
partial alphanumeric_keys
|
|
xkb_symbols "tam_unicode" {
|
|
include "pc/in(tam_unicode)"
|
|
name[Group1]= "Sri Lanka - Tamil Unicode";
|
|
};
|
|
|
|
partial alphanumeric_keys
|
|
xkb_symbols "tam_INSCRIPT" {
|
|
include "pc/in(tam)"
|
|
name[Group1]= "Sri Lanka - Tamil INSCRIPT";
|
|
};
|
|
|
|
partial alphanumeric_keys
|
|
xkb_symbols "tam_TSCII" {
|
|
include "pc/in(tam_TSCII)"
|
|
name[Group1]= "Sri Lanka - Tamil TSCII Typewriter";
|
|
};
|
|
|
|
partial alphanumeric_keys
|
|
xkb_symbols "tam_TAB" {
|
|
include "pc/in(tam_TAB)"
|
|
name[Group1]= "Sri Lanka - Tamil TAB Typewriter";
|
|
};
|
|
|