// vn, TCVN 5712:1993 // Le Hong Boi // August 1999 // Further modified by Ashley Clark // July 2000 for X 4.0 // // Symbols definition for a very simple US and VN keyboard layout. // This is a terrible hack, I use temporarily for myself: // Instead of using VN char keysyms (which requires hacking X source // and recompile) it use the latin-1 keysyms at the same code // // toggle US and VN keyboard by Shift + Caps_Lock key // // -------- // aclark (2000-07-27) // I've modified this to refer to the correct keysyms in the server // // $XFree86: xc/programs/xkbcomp/symbols/vn,v 1.4 2002/11/20 04:49:03 dawes Exp $ partial modifier_keys xkb_symbols "toggle" { include "vn(basic)" key { [ Control_L, ISO_Next_Group] }; modifier_map Control { , }; }; //partial hidden alphanumeric_keys modifier_keys partial default alphanumeric_keys xkb_symbols "basic" { include "srvr_ctrl(xfree86)" name[Group1]= "US/ASCII"; name[Group2]= "Vietnamese"; key { [ Escape ] }; // Alphanumeric section key { [ quoteleft, asciitilde ], [ quoteleft, asciitilde ] }; key { [ 1, exclam ], [ abreve, Abreve ] }; key { [ 2, at ], [ acircumflex, Acircumflex ] }; key { [ 3, numbersign ], [ ecircumflex, Ecircumflex ] }; key { [ 4, dollar ], [ ocircumflex, Ocircumflex ] }; key { [ 5, percent ], [ dead_grave, percent ] }; key { [ 6, asciicircum ], [ dead_hook, asciicircum ] }; key { [ 7, ampersand ], [ dead_tilde, ampersand ] }; key { [ 8, asterisk ], [ dead_acute, asterisk ] }; key { [ 9, parenleft ], [ dead_belowdot,parenleft ] }; key { [ 0, parenright ], [ dstroke, Dstroke ] }; key { [ minus, underscore ], [ minus, underscore ] }; key { [ equal, plus ], [ equal, plus ] }; key { type="CTRL+ALT", symbols[Group1]= [ BackSpace, Terminate_Server ] }; key { [ Tab, ISO_Left_Tab ], [ Tab, ISO_Left_Tab ] }; key { [ q, Q ], [ q, Q ] }; key { [ w, W ], [ w, W ] }; key { [ e, E ], [ e, E ] }; key { [ r, R ], [ r, R ] }; key { [ t, T ], [ t, T ] }; key { [ y, Y ], [ y, Y ] }; key { [ u, U ], [ u, U ] }; key { [ i, I ], [ i, I ] }; key { [ o, O ], [ o, O ] }; key { [ p, P ], [ p, P ] }; key { [ bracketleft, braceleft ], [ 0x10001b0, 0x10001af ] }; key { [ bracketright, braceright ], [ 0x10001a1, 0x10001a0 ] }; key { [ Return ], [ Return ] }; key { [ a, A ], [ a, A ] }; key { [ s, S ], [ s, S ] }; key { [ d, D ], [ d, D ] }; key { [ f, F ], [ f, F ] }; key { [ g, G ], [ g, G ] }; key { [ h, H ], [ h, H ] }; key { [ j, J ], [ j, J ] }; key { [ k, K ], [ k, K ] }; key { [ l, L ], [ l, L ] }; key { [ semicolon, colon ], [ semicolon, colon ] }; key { [ quoteright, quotedbl ], [ quoteright, quotedbl ] }; key { [ Shift_L ], [ Shift_L ] }; key { [ z, Z ], [ z, Z ] }; key { [ x, X ], [ x, X ] }; key { [ c, C ], [ c, C ] }; key { [ v, V ], [ v, V ] }; key { [ b, B ], [ b, B ] }; key { [ n, N ], [ n, N ] }; key { [ m, M ], [ m, M ] }; key { [ comma, less ], [ comma, less ] }; key { [ period, greater ], [ period, greater ] }; key { [ slash, question ], [ slash, question ] }; key { [ backslash, bar ], [ backslash, bar ] }; key { [ Control_L ], [ Control_L ] }; key { [ space ], [ space ] }; // End alphanumeric section // begin modifier mappings modifier_map Shift { Shift_L }; modifier_map Lock { Caps_Lock }; modifier_map Control{ Control_L }; }; // definition of a US/ASCII layout for a typical 101-key keyboard. // Includes the basic alphanumeric and punctuation keys and then // defines the "extra" (right) modifier keys, function keys, cursor, // edit, and keypad keys. xkb_symbols "generic101" { include "vn(basic)" key { [ Shift_R ], [ Shift_R ] }; key { [ Alt_L ], [ Alt_L ] }; key { [ Control_R ], [ Control_R ] }; key { [ Alt_R ], [ Alt_R ] }; // Begin "Function" section key { [ F1 ], [ F1 ] }; key { [ F2 ], [ F2 ] }; key { [ F3 ], [ F3 ] }; key { [ F4 ], [ F4 ] }; key { [ F5 ], [ F5 ] }; key { [ F6 ], [ F6 ] }; key { [ F7 ], [ F7 ] }; key { [ F8 ], [ F8 ] }; key { [ F9 ], [ F9 ] }; key { [ F10 ], [ F10 ] }; key { [ F11 ], [ F11 ] }; key { [ F12 ], [ F12 ] }; // End "Function" section // Begin "Editing" section key { type= "PC_SYSRQ", symbols[Group1]= [ Print, Execute ] }; key { [ Scroll_Lock ], [ Scroll_Lock ] }; key { type= "PC_BREAK", symbols[Group1]= [ Pause, Break ] }; key { [ Insert ], [ Insert ] }; key { [ Home ], [ Home ] }; key { [ Prior ], [ Prior ] }; key { [ Delete ], [ Delete ] }; key { [ End ], [ End ] }; key { [ Next ], [ Next ] }; key { [ Up ], [ Up ] }; key { [ Left ], [ Left ] }; key { [ Down ], [ Down ] }; key { [ Right ], [ Right ] }; // End "Editing" section, begin "Keypad" key { [ Num_Lock, Pointer_EnableKeys ], [ Num_Lock, Pointer_EnableKeys ] }; key { [ KP_Divide ], [ KP_Divide ] }; key { [ KP_Multiply ], [ KP_Multiply ] }; key { [ KP_Subtract ], [ KP_Subtract ] }; key { [ KP_Home, KP_7 ], [ KP_Home, KP_7 ] }; key { [ KP_Up, KP_8 ], [ KP_Up, KP_8 ] }; key { [ KP_Prior, KP_9 ], [ KP_Prior, KP_9 ] }; key { [ KP_Add ], [ KP_Add ] }; key { [ KP_Left, KP_4 ], [ KP_Left, KP_4 ] }; key { [ KP_Begin, KP_5 ], [ KP_Begin, KP_5 ] }; key { [ KP_Right, KP_6 ], [ KP_Right, KP_6 ] }; key { [ KP_End, KP_1 ], [ KP_End, KP_1 ] }; key { [ KP_Down, KP_2 ], [ KP_Down, KP_2 ] }; key { [ KP_Next, KP_3 ], [ KP_Next, KP_3 ] }; key { [ KP_Enter ], [ KP_Enter ] }; key { [ KP_Insert, KP_0 ], [ KP_Insert, KP_0 ] }; key { [ KP_Delete, KP_Decimal ], [ KP_Delete, KP_Decimal ] }; // End "Keypad" section // begin modifier mappings modifier_map Shift { Shift_R }; modifier_map Control{ Control_R }; modifier_map Mod1 { Alt_L, Alt_R }; modifier_map Mod2 { Num_Lock }; modifier_map Mod5 { Scroll_Lock }; }; // definition for the PC-AT type 101 key keyboard //default xkb_symbols "pc101" { include "vn(generic101)" key { [ Alt_L, Meta_L ], [ Alt_L, Meta_L ] }; key { [ Alt_R, Meta_R ], [ Alt_R, Meta_R ] }; // begin modifier mappings modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R }; }; // definition for the extra key on 102-key keyboards xkb_symbols "pc102" { include "vn(pc101)" key { [ less, greater ], [ less, greater ] }; }; // definition of Euro-style, Alt_R == [Mode_switch, Multi_key] xkb_symbols "pc101euro" { include "vn(generic101)" key { [ Alt_L, Meta_L ], [ Alt_L, Meta_L ] }; key { [ Mode_switch, Multi_key ], [ Mode_switch, Multi_key ] }; // begin modifier mappings modifier_map Mod1 { Alt_L, Meta_L }; }; // definition of Alternate Euro-style, Alt_R == [Multi_key] xkb_symbols "pc101compose" { include "vn(generic101)" key { [ Alt_L, Meta_L ], [ Alt_L, Meta_L ] }; key { [ Multi_key ], [ Multi_key ] }; // begin modifier mappings modifier_map Mod1 { Alt_L, Meta_L }; }; xkb_symbols "pc102euro" { include "us(pc101euro)" key { [ less, greater ] }; }; xkb_symbols "pc102compose" { include "us(pc101compose)" key { [ less, greater ] }; }; // definition for the extra keys on 104-key "Windows95" keyboards xkb_symbols "pc104" { include "vn(generic101)" key { [ Alt_L ], [ Alt_L ] }; key { [ Alt_R ], [ Alt_R ] }; key { [ Meta_L ], [ Meta_L ] }; key { [ Meta_R ], [ Meta_R ] }; key { [ Menu ], [ Menu ] }; // modifier mappings modifier_map Mod1 { Alt_L, Alt_R }; modifier_map Mod4 { Meta_L, Meta_R }; }; // definition of Euro-style, Right "logo" key == [Mode_switch, Multi_key] xkb_symbols "pc104euro" { include "vn(pc104)" key { [ Mode_switch, Multi_key ], [ Mode_switch, Multi_key ] }; }; // put the compose key on the right "logo" key xkb_symbols "pc104compose" { include "vn(pc104)" key { [ Multi_key ], [ Multi_key ] }; }; // defintion which includes both the Windows95 keyboards _and_ // the extra key on most European keyboards. xkb_symbols "pc105" { include "us(pc104)" key { [ less, greater ] }; }; xkb_symbols "pc105euro" { include "us(pc104euro)" key { [ less, greater ] }; }; xkb_symbols "pc105compose" { include "us(pc104compose)" key { [ less, greater ] }; }; // universam maps are identical to pc105; wish we had aliases for map names. xkb_symbols "pc_universal" { include "us(pc104)" key { [ less, greater ] }; }; xkb_symbols "pc105euro" { include "us(pc104euro)" key { [ less, greater ] }; }; xkb_symbols "pc105compose" { include "us(pc104compose)" key { [ less, greater ] }; };