// $XdotOrg$ // Serbian XKB keyboard mapping (derived from "Danube" D.2) // // Danube D.2 from 2003-05-12 is available at http://srpski.org/dunav/ // // Original authors: // Danilo Segan (Данило Шеган) // Chusslove Illich (Часлав Илић) // // Modified for inclusion in XFree86 by Danilo Segan // default partial alphanumeric_keys xkb_symbols "basic" { name[Group1]= "Serbian"; include "pc/srp(level3)" include "pc/srp(common)" include "pc/srp(cyralpha)" include "level3(ralt_switch)" }; partial alphanumeric_keys xkb_symbols "yz" { // Cyrillic_zhe and Cyrillic_ze swapped. name[Group1]= "Serbian - Z and ZHE swapped"; include "pc/srp(basic)" key { [ Cyrillic_zhe, Cyrillic_ZHE, any,any ] }; // y key { [ Cyrillic_ze, Cyrillic_ZE, any,any ] }; // z }; partial alphanumeric_keys xkb_symbols "common" { // "Common" keys: keys which are same for both latin and cyrillic keyboards key.type[Group1] = "FOUR_LEVEL"; key { [ quoteleft, asciitilde, any,any ] }; // key { [ 1, exclam, any,any ] }; // key { [ 2, quotedbl, any,any ] }; // key { [ 3, numbersign, any,any ] }; // key { [ 4, dollar, any,any ] }; // key { [ 5, percent, any,any ] }; // key { [ 6, ampersand, any,any ] }; // key { [ 7, slash, any,any ] }; // key { [ 8, parenleft, any,any ] }; // key { [ 9, parenright, any,any ] }; // key { [ 0, equal, any,any ] }; // key { [ apostrophe, question, any,any ] }; // key { [ plus, asterisk, any,any ] }; // key { [ comma, semicolon, any,any ] }; // key { [ period, colon, any,any ] }; // key { [ minus, underscore, any,any ] }; // include "keypad(comma)" }; partial alphanumeric_keys xkb_symbols "cyralpha" { key.type[Group1] = "FOUR_LEVEL_ALPHABETIC"; key { [ Cyrillic_lje, Cyrillic_LJE, any,any ] }; // q key { [ Cyrillic_nje, Cyrillic_NJE, any,any ] }; // w key { [ Cyrillic_ie, Cyrillic_IE, any,any ] }; // e key { [ Cyrillic_er, Cyrillic_ER, any,any ] }; // r key { [ Cyrillic_te, Cyrillic_TE, any,any ] }; // t key { [ Cyrillic_ze, Cyrillic_ZE, any,any ] }; // y key { [ Cyrillic_u, Cyrillic_U, any,any ] }; // u key { [ Cyrillic_i, Cyrillic_I, any,any ] }; // i key { [ Cyrillic_o, Cyrillic_O, any,any ] }; // o key { [ Cyrillic_pe, Cyrillic_PE, any,any ] }; // p key { [ Cyrillic_sha, Cyrillic_SHA, any,any ] }; // [ { key { [ Serbian_dje, Serbian_DJE, any,any ] }; // ] } key { [ Cyrillic_a, Cyrillic_A, any,any ] }; // a key { [ Cyrillic_es, Cyrillic_ES, any,any ] }; // s key { [ Cyrillic_de, Cyrillic_DE, any,any ] }; // d key { [ Cyrillic_ef, Cyrillic_EF, any,any ] }; // f key { [ Cyrillic_ghe, Cyrillic_GHE, any,any ] }; // g key { [ Cyrillic_ha, Cyrillic_HA, any,any ] }; // h key { [ Cyrillic_je, Cyrillic_JE, any,any ] }; // j key { [ Cyrillic_ka, Cyrillic_KA, any,any ] }; // k key { [ Cyrillic_el, Cyrillic_EL, any,any ] }; // l key { [ Cyrillic_che, Cyrillic_CHE, any,any ] }; // ; : key { [ Serbian_tshe, Serbian_TSHE, any,any ] }; // ' " key { [ Cyrillic_zhe, Cyrillic_ZHE, any,any ] }; // \ | key { [ Cyrillic_zhe, Cyrillic_ZHE, any,any ] }; // z key { [ Cyrillic_dzhe, Cyrillic_DZHE, any,any ] }; // x key { [ Cyrillic_tse, Cyrillic_TSE, any,any ] }; // c key { [ Cyrillic_ve, Cyrillic_VE, any,any ] }; // v key { [ Cyrillic_be, Cyrillic_BE, any,any ] }; // b key { [ Cyrillic_en, Cyrillic_EN, any,any ] }; // n key { [ Cyrillic_em, Cyrillic_EM, any,any ] }; // m }; partial alphanumeric_keys xkb_symbols "latalpha" { key.type[Group1] = "FOUR_LEVEL_ALPHABETIC"; key { [ q, Q, any,any ] }; // key { [ w, W, any,any ] }; // key { [ e, E, any,any ] }; // key { [ r, R, any,any ] }; // key { [ t, T, any,any ] }; // key { [ z, Z, any,any ] }; // key { [ u, U, any,any ] }; // key { [ i, I, any,any ] }; // key { [ o, O, any,any ] }; // key { [ p, P, any,any ] }; // key { [ scaron, Scaron, any,any ] }; // key { [ dstroke, Dstroke, any,any ] }; // key { [ a, A, any,any ] }; // key { [ s, S, any,any ] }; // key { [ d, D, any,any ] }; // key { [ f, F, any,any ] }; // key { [ g, G, any,any ] }; // key { [ h, H, any,any ] }; // key { [ j, J, any,any ] }; // key { [ k, K, any,any ] }; // key { [ l, L, any,any ] }; // key { [ ccaron, Ccaron, any,any ] }; // key { [ cacute, Cacute, any,any ] }; // key { [ zcaron, Zcaron, any,any ] }; // key { [ y, Y, any,any ] }; // key { [ x, X, any,any ] }; // key { [ c, C, any,any ] }; // key { [ v, V, any,any ] }; // key { [ b, B, any,any ] }; // key { [ n, N, any,any ] }; // key { [ m, M, any,any ] }; // }; partial alphanumeric_keys xkb_symbols "twoletter" { // These are letters which are written in latin transcription with two-characters. key { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC", [ U1C9, U1C8, any, U1C7 ] }; // q key { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC", [ U1CC, U1CB, any, U1CA ] }; // w key { type[Group1] = "SEPARATE_CAPS_AND_SHIFT_ALPHABETIC", [ U1C6, U1C5, any, U1C4 ] }; // x // Also replace letter Y with Zcaron, since Y is of no use any longer key { [ zcaron, Zcaron, any,any ] }; // }; partial alphanumeric_keys xkb_symbols "level3" { key { [ any,any, NoSymbol, NoSymbol ] }; // ` ~ key { [ any,any, dead_tilde, NoSymbol ] }; // 1 ! key { [ any,any, dead_caron, NoSymbol ] }; // 2 @ key { [ any,any, dead_circumflex, NoSymbol ] }; // 3 # key { [ any,any, dead_breve, NoSymbol ] }; // 4 $ key { [ any,any, dead_abovering, NoSymbol ] }; // 5 % key { [ any,any, dead_ogonek, NoSymbol ] }; // 6 ^ key { [ any,any, dead_grave, NoSymbol ] }; // 7 & key { [ any,any, dead_abovedot, NoSymbol ] }; // 8 * key { [ any,any, dead_acute, NoSymbol ] }; // 9 ( key { [ any,any, dead_doubleacute, NoSymbol ] }; // 0 ) key { [ any,any, dead_diaeresis, NoSymbol ] }; // - _ key { [ any,any, dead_cedilla, NoSymbol ] }; // = + key { [ any,any, backslash, NoSymbol ] }; // q key { [ any,any, bar, NoSymbol ] }; // w key { [ any,any, EuroSign, NoSymbol ] }; // e key { [ any,any, NoSymbol, NoSymbol ] }; // r key { [ any,any, NoSymbol, NoSymbol ] }; // t key { [ any,any, NoSymbol, NoSymbol ] }; // y key { [ any,any, NoSymbol, NoSymbol ] }; // u key { [ any,any, NoSymbol, NoSymbol ] }; // i key { [ any,any, NoSymbol, NoSymbol ] }; // o key { [ any,any, NoSymbol, NoSymbol ] }; // p key { [ any,any, NoSymbol, NoSymbol ] }; // [ key { [ any,any, NoSymbol, NoSymbol ] }; // ] key { [ any,any, NoSymbol, NoSymbol ] }; // a key { [ any,any, doublelowquotemark, NoSymbol ] }; // s key { [ any,any, leftdoublequotemark, NoSymbol ] }; // d key { [ any,any, bracketleft, NoSymbol ] }; // f key { [ any,any, bracketright, NoSymbol ] }; // g key { [ any,any, NoSymbol, NoSymbol ] }; // h key { [ any,any, NoSymbol, NoSymbol ] }; // j key { [ any,any, NoSymbol, NoSymbol ] }; // k key { [ any,any, NoSymbol, NoSymbol ] }; // l key { [ any,any, NoSymbol, NoSymbol ] }; // ; key { [ any,any, NoSymbol, NoSymbol ] }; // ' key { [ any,any, NoSymbol, NoSymbol ] }; // \ key { [ any,any, leftsinglequotemark, NoSymbol ] }; // z key { [ any,any, rightsinglequotemark,NoSymbol ] }; // x key { [ any,any, NoSymbol, NoSymbol ] }; // c key { [ any,any, at, NoSymbol ] }; // v key { [ any,any, braceleft, NoSymbol ] }; // b key { [ any,any, braceright, NoSymbol ] }; // n key { [ any,any, asciicircum, NoSymbol ] }; // m key { [ any,any, less, NoSymbol ] }; // , < key { [ any,any, greater, NoSymbol ] }; // . > key { [ any,any, emdash, endash ] }; // / ? }; partial alphanumeric_keys xkb_symbols "latin" { name[Group1]= "Serbian - Latin"; include "pc/srp(level3)" include "pc/srp(common)" include "pc/srp(latalpha)" include "level3(ralt_switch)" }; partial alphanumeric_keys xkb_symbols "latinunicode" { // This mapping supports the Unicode characters 0x1c4-0x1cc (dz, lj, and nj // as single character). You get the title form with AltGr+Shift. name[Group1]= "Serbian - Latin Unicode"; include "pc/srp(latin)" include "pc/srp(twoletter)" }; partial alphanumeric_keys xkb_symbols "latinyz" { // For those who insist on using "english-position" Z and Y. name[Group1]= "Serbian - Latin qwerty"; include "pc/srp(latin)" key { [ y, Y, any,any ] }; // y key { [ z, Z, any,any ] }; // z }; partial alphanumeric_keys xkb_symbols "latinunicodeyz" { // Unicode, ZHE and Z swapped. name[Group1]= "Serbian - Latin Unicode qwerty"; include "pc/srp(latinunicode)" key { [ zcaron, Zcaron, any,any ] }; // y key { [ z, Z, any,any ] }; // z }; xkb_symbols "alternatequotes" { // Another acceptable »pair of quotes« for Serbian name[Group1]= "Serbian - With guillemots"; include "pc/srp(basic)" key { [ any,any, guillemotright, NoSymbol ] }; // s key { [ any,any, guillemotleft, NoSymbol ] }; // d }; xkb_symbols "latinalternatequotes" { // Another acceptable »pair of quotes« for Serbian name[Group1]= "Serbian - Latin with guillemots"; include "pc/srp(latin)" key { [ any,any, guillemotright, NoSymbol ] }; // s key { [ any,any, guillemotleft, NoSymbol ] }; // d };