// $XKeyboardConfig: xkeyboard-config/symbols/cz,v 1.9 2005-01-18 18:17:48 svu Exp $
// $XFree86: xc/programs/xkbcomp/symbols/cz,v 1.2 2002/11/22 04:02:22 dawes 
// Exp $

partial default alphanumeric_keys 
xkb_symbols "basic" {
     
     // This layout conforms to a new cz compromise standard designed 
     // to satisfy most unix, windows and mac users.
     // 2001 by Kamil Toman <ktoman@email.cz>
     // modified by Petr Herman aka robot <petr@dulos.cz> alias Kychot

    include "latin"

    name[Group1]= "Czechia";

//  key <TLDE>	{ [ semicolon, dead_abovering,    grave,   asciitilde     ] };
    key <TLDE>	{ [     grave, asciitilde,       degree, dead_tilde       ] };
    key <AE01>	{ [      plus,     exclam,            1, dead_tilde       ] };
    key <AE02>	{ [    ecaron,         at,            2, dead_caron       ] };
    key <AE03>	{ [    scaron, numbersign,            3, dead_circumflex  ] };
    key <AE04>	{ [    ccaron,     dollar,            4, dead_breve       ] };
    key <AE05>	{ [    rcaron,    percent,            5, dead_abovering   ] };
    key <AE06>	{ [    zcaron,asciicircum,            6, dead_ogonek      ] };
    key <AE07>	{ [    yacute,  ampersand,            7, dead_grave       ] };
    key <AE08>	{ [    aacute,   asterisk,            8, dead_abovedot    ] };
//  key <AE09>	{ [    iacute,  braceleft,            9, dead_acute       ] };
    key <AE09>	{ [    iacute,  parenleft,            9, dead_macron      ] };
    key <AE10>	{ [    eacute, parenright,            0, dead_doubleacute ] };
//  key <AE11>	{ [     equal,    percent,     NoSymbol, dead_diaeresis   ] };
    key <AE11>	{ [     minus, underscore,       endash, dead_diaeresis   ] };
//  key <AE12>	{ [dead_acute, dead_caron,   dead_acute, dead_cedilla     ] };
    key <AE12>	{ [     equal, dead_caron,   dead_acute, dead_cedilla     ] };

    key <AD01>	{ [         q,          Q,     Prior,     NoSymbol ]	};
    key <AD02>	{ [         w,          W,     Home,     Nosymbol ]	};
//  key <AD03>	{ [         e,          E,     EuroSign,    Greek_epsilon ]	};
    key <AD03>	{ [         e,          E,     Up,    Greek_epsilon ]	};
    key <AD04>	{ [         r,          R,     End,    Greek_rho ]	};
    key <AD05>	{ [         t,          T,     NoSymbol,    Greek_tau ]	};
    key <AD06>	{ [         y,          Y,     NoSymbol,    Greek_upsilon ]	};
    key <AD07>	{ [         u,          U,         KP_7,    Greek_theta ]	};
    key <AD08>	{ [         i,          I,         KP_8,    Greek_iota ]	};
    key <AD09>	{ [         o,          O,         KP_9,    Greek_omicron ]	};
    key <AD10>	{ [         p,          P,  KP_Multiply,    Greek_pi ]	};

//  key <AD11>	{ [    uacute,      slash,  bracketleft,     division ]	};
//  key <AD12>	{ [parenright,  parenleft, bracketright,     multiply ]	};

    key <AD11>	{ [bracketleft, braceleft,       uacute,     NoSymbol ]	};
    key <AD12>	{ [bracketright,braceright,    NoSymbol,     NoSymbol ]	};

    key <AC01>	{ [         a,          A,  Next,  Greek_alpha ]	};
//   key <AC02>	{ [         s,          S,      dstroke,ssharp,     NoSymbol ]	};
    key <AC02>	{ [         s,          S,  Left,  Greek_sigma ]	};
    key <AC03>	{ [         d,          D,  Down,     Greek_delta ]	};
    key <AC04>	{ [         f,          F,  Right,  Greek_phi ]	};
    key <AC05>	{ [         g,          G, bracketright,  Greek_gamma ]	};
    key <AC06>	{ [         h,          H,        grave,  Greek_eta ]	};
    key <AC07>	{ [         j,          J,            KP_4,  Greek_xi ]	};
    key <AC08>	{ [         k,          K,            KP_5,  Greek_kappa ]	};
    key <AC09>	{ [         l,          L,            KP_6,  Greek_lambda ]	};
                  
//  key <AC10>	{ [     uring,   quotedbl,       dollar,     NoSymbol ]	};
//  key <AC11>	{ [   section,     exclam,   apostrophe,       ssharp ]	};
//  key <AC12>	{ [  EuroSign, dead_diaeresis, NoSymbol,     NoSymbol ]	};
//  key <BKSL>	{ [dead_diaeresis, apostrophe, backslash,         bar ]	};

    key <AC10>	{ [     uring,      colon,     KP_Subtract,     NoSymbol ]	};
    key <AC11>	{ [apostrophe,       quotedbl,  section,     NoSymbol ]	};
    key <AC12>	{ [  EuroSign, dead_diaeresis, NoSymbol,     NoSymbol ]	};
    key <BKSL>	{ [semicolon,         bar,    backslash,     NoSymbol ]	};

    key <LSGT>	{ [ backslash,        bar,        slash,     NoSymbol ]	};
    key <AB01>	{ [         z,          Z,       degree,     Greek_zeta ]	};
    key <AB02>	{ [         x,          X,   numbersign,    Greek_chi ]	};
    key <AB03>	{ [         c,          C,    ampersand,    Greek_psi ]	};
    key <AB04>	{ [         v,          V,           at,    Greek_omega ]	};
    key <AB05>	{ [         b,          B,    braceleft,     Greek_beta ]	};
//  key <AB06>	{ [         n,          N,   braceright,     NoSymbol ]	};
    key <AB06>	{ [         n,          N,            KP_0,    Greek_nu ]	};
//  key <AB07>	{ [         m,          M,  asciicircum,     NoSymbol ]	};
    key <AB07>	{ [         m,          M,            KP_1,    Greek_mu ]	};
//  key <AB08>	{ [     comma,   question,         less,     NoSymbol ]	};
//  key <AB09>	{ [    period,      colon,      greater,     NoSymbol ]	};
//  key <AB10>	{ [     minus, underscore,     asterisk,     NoSymbol ]	};
    key <AB08>	{ [     comma,       less,            KP_2,     NoSymbol ]	};
    key <AB09>	{ [    period,    greater,            KP_3,     NoSymbol ]	};
    key <AB10>	{ [     slash,    question,    KP_Add,     NoSymbol ]	};

    key <SPCE>	{ [     space,      space, nobreakspace, nobreakspace ]	};

    key <KPDL>	{ type[Group1]="FOUR_LEVEL_KEYPAD",
                  [ KP_Delete,      comma,    KP_Delete,   KP_Decimal ]	};

    include "level3caps(caps_ralt_switch)"
};

// Use <BKSL> instead of <LSGT> (useful for keyboard without <LSGT> key)
xkb_symbols "bksl" {
    include "cz(basic)"
    name[Group1]= "Czechia - With <\|> key";

    key <BKSL>	{ [ backslash,        bar,        slash,     NoSymbol ]	};
};

partial alphanumeric_keys 
xkb_symbols "qwerty" {
 
    // This layout should work exactly as a cz with the exception 
    // of 'Z' and 'Y' keys, which are in the qwerty style (ie. swapped).
    // 2001 by Kamil Toman <ktoman@email.cz>
    
    include "cz(basic)"
    name[Group1]= "Czechia - qwerty";

    key <AB01>	{ [         z,          Z,       degree,     NoSymbol ]	};
    key <AD06>	{ [         y,          Y,     NoSymbol,     NoSymbol ]	};
};

// Use <BKSL> instead of <LSGT> (useful for keyboard without <LSGT> key)
xkb_symbols "qwerty_bksl" {
    include "cz(qwerty)"

    name[Group1]= "Czechia - qwerty, extended Backslash";

    key <BKSL>	{ [ backslash,        bar,        slash,     NoSymbol ]	};
};