From 90de31cb8efcdc21a8e5bc5ce7bba7b6575417fa Mon Sep 17 00:00:00 2001 From: stephan Date: Sat, 9 May 2009 21:54:18 +0000 Subject: Neuer xkb-Entwurf hinzugefügt. Readme ergänzt. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1824 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- linux/X/README | 16 ++ linux/X/de-test | 543 ++++++++++++++++++++++++++++++++++++++++++++++++++++ linux/X/level5-test | 174 +++++++++++++++++ 3 files changed, 733 insertions(+) create mode 100644 linux/X/de-test create mode 100644 linux/X/level5-test diff --git a/linux/X/README b/linux/X/README index cf4a2c0..4fe4d04 100644 --- a/linux/X/README +++ b/linux/X/README @@ -70,6 +70,22 @@ vorzunehmen erstellt man in /etc/hal/fdi/policy eine Datei namens +== Test-Version zum Ausprobieren == + +Diese neue Version zielt darauf ab, die Referenz in Sachen Lock-Verhalten noch +besser umzusetzen und in der neuen xkeyboard-config aufgenommen zu werden. +Der einzige Nachteil ist der, dass zum Testen zwei Dateien verändert werden +müssen. + +Sicherheitskopien falls benötigt vorher anfertigen. +Die Datei „de-test“ zu „de“ umbenennen und nach „/usr/share/X11/xkb/symbols“ +kopieren. +Außerdem die Datei „level5-test“ zu „level5“ umbenennen und nach +„/usr/share/X11/xkb/types“ kopieren. + +Das Aktivieren funktioniert wie gehabt: + setxkbmap de neo + == FAQ == Bei Problemen erst mal in die FAQ schauen, das meiste ist bekannt. diff --git a/linux/X/de-test b/linux/X/de-test new file mode 100644 index 0000000..857bff0 --- /dev/null +++ b/linux/X/de-test @@ -0,0 +1,543 @@ + +// based on a keyboard map from an 'xkb/symbols/de' file +// +// $XKeyboardConfig$ +// $XFree86: xc/programs/xkbcomp/symbols/de,v 1.6 2003/09/08 13:12:51 pascal Exp $ + +default +xkb_symbols "basic" { + + include "latin(type4)" + + name[Group1]="Germany"; + + key { [ 2, quotedbl, twosuperior, oneeighth ] }; + key { [ 3, section, threesuperior, sterling ] }; + key { [ 4, dollar, onequarter, currency ] }; + + key {type[Group1]="FOUR_LEVEL_PLUS_LOCK", symbols[Group1]= + [ssharp, question, backslash, questiondown, 0x1001E9E ]}; +// The unicode capital letter sharp s U+1E9E is transformed to "SS" +// to match the rules for capitalizing sharp s in german. +// If the capital sharp s is needed, delete the line +// starting with from /usr/share/X11/locale/iso8859-15/Compose. +// If both doubled S and capital sharp s are needed, use 0x1001E9E +// for capital sharp s and some free unicode codepoint like 0x1001E9C +// for doubled S. Don`t forget to change this in the Compose file, too. + + key { [dead_acute, dead_grave, dead_cedilla, dead_ogonek ] }; + + key { [ e, E, EuroSign, EuroSign ] }; + key { [ z, Z, leftarrow, yen ] }; + key { [udiaeresis, Udiaeresis, dead_diaeresis, dead_abovering ] }; + key { [ plus, asterisk, dead_tilde, dead_macron ] }; + + key { [ s, S, U017F, U1E9E ] }; + key { [ j, J, dead_belowdot, dead_abovedot ] }; + key { [odiaeresis, Odiaeresis, dead_doubleacute, dead_belowdot ] }; + key { [adiaeresis, Adiaeresis, dead_circumflex, dead_caron ] }; + key { [dead_circumflex, degree, U2032, U2033 ] }; + + key { [numbersign, apostrophe, dead_grave, dead_breve ] }; + key { [ y, Y, guillemotright, U203A ] }; + key { [ x, X, guillemotleft, U2039 ] }; + key { [ v, V, doublelowquotemark, singlelowquotemark ] }; + key { [ b, B, leftdoublequotemark, leftsinglequotemark ] }; + key { [ n, N, rightdoublequotemark, rightsinglequotemark ] }; + key { [ comma, semicolon, periodcentered, multiply ] }; + key { [ period, colon, U2026, division ] }; + key { [ minus, underscore, endash, emdash ] }; + + include "kpdl(comma)" + + include "level3(ralt_switch)" +}; + +partial alphanumeric_keys +xkb_symbols "nodeadkeys" { + + // modify the basic German layout to not have any dead keys + + include "de(basic)" + name[Group1]="Germany - Eliminate dead keys"; + + key { [asciicircum, degree, notsign, notsign ] }; + key { [apostrophe, grave, cedilla, cedilla ] }; + key { [udiaeresis, Udiaeresis, diaeresis, diaeresis ] }; + key { [ plus, asterisk, asciitilde, macron ] }; + key { [odiaeresis, Odiaeresis, doubleacute, doubleacute ] }; + key { [adiaeresis, Adiaeresis, asciicircum, asciicircum ] }; + key { [numbersign, apostrophe, grave, grave ] }; + key { [ minus, underscore, dead_belowdot, abovedot ] }; +}; + +partial alphanumeric_keys +xkb_symbols "deadgraveacute" { + // modify the basic German layout to have only acute and grave + // as dead keys (tilde and circumflex are needed as spacing characters + // in many programming languages) + + include "de(basic)" + name[Group1]="Germany - Dead grave acute"; + + key { [asciicircum, degree, notsign, notsign ] }; + key { [ plus, asterisk, asciitilde, dead_macron ] }; + key { [numbersign, apostrophe, grave, grave ] }; +}; + +partial alphanumeric_keys +xkb_symbols "deadacute" { + // modify the basic German layout to have only acute as + // dead keys (ASCII grave, tilde and circumflex are needed as + // spacing characters in many programming languages and text formatters) + + include "de(deadgraveacute)" + + name[Group1]="Germany - Dead acute"; + + key { [dead_acute, grave, dead_cedilla, dead_ogonek ] }; + key { [numbersign, apostrophe, dead_grave, dead_grave ] }; +}; + +partial alphanumeric_keys +xkb_symbols "ro" { + // add romanian-specific letters to the basic German layout. + // Romanian symbols are accessible with combination of and + // 'a', 's', 't', 'i', 'ä (ä)' (+ for capital letters). + // To view romanian-specific symbols, add "export LC_CTYPE=ro_RO" + // or "export LC_CTYPE=de_DE.utf8" to your .profile. + + include "de(basic)" + + name[Group1]="Germany - Romanian keyboard with German letters"; + + key { [ t, T, tcedilla, Tcedilla ] }; + key { [ i, I, icircumflex, Icircumflex ] }; + key { [ a, A, acircumflex, Acircumflex ] }; + key { [ s, S, scedilla, Scedilla ] }; + key { [ adiaeresis, Adiaeresis, abreve, Abreve ] }; +}; + +partial alphanumeric_keys +xkb_symbols "ro_nodeadkeys" { + // add romanian-specific letters to the German nodeadkeys layout. + // Read the comment for de_ro ! + + include "de(nodeadkeys)" + name[Group1]="Germany - Romanian keyboard with German letters, eliminate dead keys"; + + key { [ t, T, tcedilla, Tcedilla ] }; + key { [ i, I, icircumflex, Icircumflex ] }; + key { [ a, A, acircumflex, Acircumflex ] }; + key { [ s, S, scedilla, Scedilla ] }; + key { [ adiaeresis, Adiaeresis, abreve, Abreve ] }; +}; + +// German Dvorak keymap by Thorsten Staerk (www.staerk.de/thorsten) +// Have acute and grave as dead keys, tilde and circumflex alive as they are needed +// in many programming languages. +// to use this keymap, use a 105-key-keyboard and the command setxkbmap -model pc105 -layout dvorak -variant de +// source: http://www-lehre.informatik.uni-osnabrueck.de/~rfreund/dvorak.php +partial alphanumeric_keys +xkb_symbols "dvorak" { + include "us(dvorak)" + + name[Group1]="Germany - Dvorak"; + + key { [ asciicircum, degree ] }; + + key { [ 1, exclam, onesuperior ] }; + key { [ 2, quotedbl, twosuperior ] }; + key { [ 3, section, threesuperior ] }; + key { [ 4, dollar, bar ] }; + key { [ 5, percent, bar ] }; + key { [ 6, ampersand, brokenbar ] }; + key { [ 7, slash, braceleft ] }; + key { [ 8, parenleft, bracketleft ] }; + key { [ 9, parenright, bracketright ] }; + key { [ 0, equal, braceright ] }; + key { [ plus, asterisk, asciitilde ] }; + key { [ less, greater, dead_grave ] }; + + key { [ udiaeresis, Udiaeresis, at ] }; + key { [ comma, semicolon, dead_diaeresis ] }; + key { [ period, colon ] }; + key { [ c, C, copyright, Cacute ] }; + key { [ t, T, trademark ] }; + key { [ z, Z, zabovedot, Zabovedot ] }; + key { [ question, ssharp ] }; + key { [ slash, backslash, dead_acute ] }; + + key { [ a, A, at, aogonek ] }; + key { [ o, O, oacute, Oacute ] }; + key { [ e, E, EuroSign, eogonek ] }; + key { [ i, I ] }; + key { [ u, U ] }; + key { [ h, H ] }; + key { [ d, D ] }; + key { [ r, R, registered ] }; + key { [ n, N, nacute, Nacute ] }; + key { [ s, S, sacute, Sacute] }; + key { [ l, L, lstroke, Lstroke ] }; + + key { [ odiaeresis, Odiaeresis ] }; + key { [ q, Q, at ] }; + key { [ m, M, mu ] }; + key { [ numbersign, apostrophe ] }; + + key { [ minus, underscore, hyphen, diaeresis] }; + + key { [ adiaeresis, Adiaeresis, bar ] }; + + include "level3(ralt_switch)" +}; + +partial alphanumeric_keys +xkb_symbols "Sundeadkeys" { + + // For naming consistency + + include "de(basic)" + +}; + +partial alphanumeric_keys +xkb_symbols "sundeadkeys" { + + // For naming consistency + + include "de(Sundeadkeys)" + + name[Group1]="Germany - Sun dead keys"; +}; + +// German NEO-Layout Version 2 +// adopted 2004 by Hanno Behrens +// inspired by Dvorak/de-ergo http://www.goebel-consult.de/de-ergo/ +// +// Authors: +// +// Benjamin Kellermann +// Erik Streb +// and many other contributers +// +// http://www.neo-layout.org +// +// $Revision: 1803 $, $Date: 2009-04-21 23:49:27 +0200 (Di, 21. Apr 2009) $ + +partial alphanumeric_keys modifier_keys keypad_keys +xkb_symbols "neo" { + + name[Group1]= "Germany - Neo 2"; + + // Levels in Neo jargon + // -------------------------------------------------------------- + // Ebene 1: normal + // Ebene 2: Shift + // Ebene 3: Mod3 + // Ebene 4: Mod4 (for marking something use Shift+Mod4) + // Ebene 5: Shift + Mod3 + // Ebene 6: Mod3 + Mod4 + // Compose (not a level): Mod3 + Tab + // Feststelltaste (Capslock): Shift + Shift + // Mod4-Lock: Mod4 + Mod4 + // + + // NOTE: To get the desired Mod4-Lock the real modifier Mod2 was misused in order to get control over the lock-state! + // I wasn't able to get it working with a virtual modifier and I think its not that fatal, because Num-Lock (the original use for Mod2) isn't used in Neo anyways. + + + // Modifier-keys + // =============== + + // Shift + // -------------------------------------------------------------- + // Shift + Shift = Caps_Lock + key.type[Group1] = "TWO_LEVEL"; + key { + symbols[Group1] = [ Shift_L, Caps_Lock ], + actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] + }; + key { + symbols[Group1] = [ Shift_R, Caps_Lock ], + actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ] + }; + + // Neo-Mod3 + // -------------------------------------------------------------- + key.type[Group1] = "ONE_LEVEL"; + key { + vmods = LevelFive, + symbols[Group1] = [ ISO_Level3_Shift ], + actions[Group1] = [ SetMods(modifiers=LevelFive) ] + }; + key { + vmods = LevelFive, + symbols[Group1] = [ ISO_Level3_Shift ], + actions[Group1] = [ SetMods(modifiers=LevelFive) ] + }; + modifier_map Mod3 { , }; + + // Neo-Mod4 + // -------------------------------------------------------------- + key.type[Group1] = "THREE_LEVEL"; + // Mod4 + Mod4 = Mod4_Lock + key { + vmods = NumLock, + symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ], + actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ] + }; + key { + vmods = NumLock, + symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ], + actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ] + }; + modifier_map Mod2 { , }; + + + // Legend + // =============== + // Levels in Xkbmap jargon to be found here in the definitions. + // These are the levels used, and Xorg's translations: + // -------------------------------------------------------------- + // Xorg: Level1 Level2 Level3 Level4 Level5 Level6 Level7 Level8 + // Neo: Ebene1 Ebene2 Ebene4 ??? Ebene3 Ebene5 Ebene6 ??? + // Keys (Neo): None Shift Mod4 Mod4 + Shift Mod3 Mod3 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift + + + // Alphanumeric-keys + // =============== + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; + + // Tab as Multi_key (Compose) + // -------------------------------------------------------------- + key { [ Tab, ISO_Left_Tab, NoSymbol, NoSymbol, Multi_key, NoSymbol, NoSymbol, NoSymbol ] }; + + // Number Row + // -------------------------------------------------------------- + key { [ dead_circumflex, dead_tilde, dead_caron, Pointer_EnableKeys, dead_abovering, dead_breve, dead_macron, NoSymbol ] }; + + key { [ 1, degree, ordfeminine, NoSymbol, onesuperior, onesubscript, notsign, NoSymbol ] }; + key { [ 2, section, masculine, NoSymbol, twosuperior, twosubscript, logicalor, NoSymbol ] }; + key { [ 3, U2113, numerosign, NoSymbol, threesuperior, threesubscript, logicaland, NoSymbol ] }; + key { [ 4, guillemotright, Prior, Prior, U203A, femalesymbol, U22A5, NoSymbol ] }; + key { [ 5, guillemotleft, periodcentered, NoSymbol, U2039, malesymbol, U2221, NoSymbol ] }; + key { [ 6, dollar, sterling, NoSymbol, cent, U26A5, U2225, NoSymbol ] }; + + key { [ 7, EuroSign, currency, NoSymbol, yen, Greek_kappa, rightarrow, NoSymbol ] }; + key { [ 8, doublelowquotemark, NoSymbol, NoSymbol, singlelowquotemark, U27E8, U221E, NoSymbol ] }; + key { [ 9, leftdoublequotemark, KP_Divide, NoSymbol, leftsinglequotemark, U27E9, U220B, NoSymbol ] }; + key { [ 0, rightdoublequotemark, KP_Multiply, NoSymbol, rightsinglequotemark, zerosubscript, emptyset, NoSymbol ] }; + + key { [ minus, emdash, KP_Subtract, NoSymbol, NoSymbol, U2011, hyphen, NoSymbol ] }; + key { [ dead_grave, NoSymbol, dead_doublegrave, NoSymbol, dead_diaeresis, dead_dasia, NoSymbol, NoSymbol ] }; + key { [ BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, NoSymbol ] }; + + // Top Row + // -------------------------------------------------------------- + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; + key { [ x, X, U22EE, NoSymbol, ellipsis, Greek_xi, Greek_XI, NoSymbol ] }; + key { [ v, V, BackSpace, BackSpace, underscore, NoSymbol, U222E, NoSymbol ] }; + key { [ l, L, Up, Up, bracketleft, Greek_lambda, Greek_LAMBDA, NoSymbol ] }; + key { [ c, C, Delete, Delete, bracketright, Greek_chi, U2102, NoSymbol ] }; + key { [ w, W, Insert, Insert, asciicircum, Greek_omega, Greek_OMEGA, NoSymbol ] }; + + key { [ k, K, exclamdown, NoSymbol, exclam, U03F0, radical, NoSymbol ] }; + key { [ h, H, KP_7, NoSymbol, less, Greek_psi, Greek_PSI, NoSymbol ] }; + key { [ g, G, KP_8, NoSymbol, greater, Greek_gamma, Greek_GAMMA, NoSymbol ] }; + key { [ f, F, KP_9, NoSymbol, equal, Greek_phi, Greek_PHI, NoSymbol ] }; + key { [ q, Q, KP_Add, NoSymbol, ampersand, U03D5, U211A, NoSymbol ] }; + + key { [ ssharp, U1E9E, U2212, NoSymbol, U017F, Greek_finalsmallsigma, jot, NoSymbol ] }; + + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; + key { [ dead_acute, dead_cedilla, dead_doubleacute, NoSymbol, dead_stroke, dead_psili, dead_abovedot, NoSymbol ] }; + + // Middle Row + // -------------------------------------------------------------- + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; + key { [ u, U, Home, Home, backslash, NoSymbol, mu, NoSymbol ] }; + key { [ i, I, Left, Left, slash, Greek_iota, integral, NoSymbol ] }; + key { [ a, A, Down, Down, braceleft, Greek_alpha, U2200, NoSymbol ] }; + key { [ e, E, Right, Right, braceright, Greek_epsilon, U2203, NoSymbol ] }; + key { [ o, O, End, End, asterisk, Greek_omicron, elementof, NoSymbol ] }; + + key { [ s, S, questiondown, NoSymbol, question, Greek_sigma, Greek_SIGMA, NoSymbol ] }; + key { [ n, N, KP_4, NoSymbol, parenleft, Greek_nu, U2115, NoSymbol ] }; + key { [ r, R, KP_5, NoSymbol, parenright, U03F1, U211D, NoSymbol ] }; + key { [ t, T, KP_6, NoSymbol, minus, Greek_tau, partialderivative, NoSymbol ] }; + key { [ d, D, KP_Separator, NoSymbol, colon, Greek_delta, Greek_DELTA, NoSymbol ] }; + + key { [ y, Y, KP_Decimal, NoSymbol, at, Greek_upsilon, nabla, NoSymbol ] }; + + // Bottom Row + // -------------------------------------------------------------- + key { [ udiaeresis, Udiaeresis, Escape, Escape, numbersign, NoSymbol, U211C, NoSymbol ] }; + key { [ odiaeresis, Odiaeresis, Tab, Tab, dollar, U03F5, U2111, NoSymbol ] }; + key { [ adiaeresis, Adiaeresis, Next, Next, bar, Greek_eta, U2135, NoSymbol ] }; + key { [ p, P, Return, Return, asciitilde, Greek_pi, Greek_PI, NoSymbol ] }; + key { [ z, Z, Undo, NoSymbol, grave, Greek_zeta, U2124, NoSymbol ] }; + + key { [ b, B, colon, NoSymbol, plus, Greek_beta, U21D0, NoSymbol ] }; + key { [ m, M, KP_1, NoSymbol, percent, Greek_mu, ifonlyif, NoSymbol ] }; + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; + key { [ comma, endash, KP_2, NoSymbol, quotedbl, Greek_rho, U21D2, NoSymbol ] }; + key { [ period, enfilledcircbullet, KP_3, NoSymbol, apostrophe, U03D1, Greek_THETA, NoSymbol ] }; + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC"; + key { [ j, J, semicolon, NoSymbol, semicolon, Greek_theta, variation, NoSymbol ] }; + key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS"; + + // Space key + // -------------------------------------------------------------- + key { [ space, space, KP_0, NoSymbol, space, nobreakspace, U202F, NoSymbol ] }; + + + // Keypad-keys + // =============== + + // The former Numlock key: + key { [ Tab, ISO_Left_Tab, notequal, NoSymbol, equal, approxeq, identical, NoSymbol ] }; + + // Topmost Row + // -------------------------------------------------------------- + key { [ KP_Divide, KP_Divide, U2215, NoSymbol, division, U2300, U2223, NoSymbol ] }; + key { [ KP_Multiply, KP_Multiply, multiply, NoSymbol, U2219, U2299, U2297, NoSymbol ] }; + key { [ KP_Subtract, KP_Subtract, U2216, NoSymbol, U2212, U2296, U2238, NoSymbol ] }; + + // Top Row + // -------------------------------------------------------------- + key { [ KP_7, U2714, KP_Home, KP_Home, U2195, U226A, upstile, NoSymbol ] }; + key { [ KP_8, U2718, KP_Up, KP_Up, uparrow, intersection, U22C2, NoSymbol ] }; + key { [ KP_9, dagger, KP_Prior, KP_Prior, U20D7, U226B, U2309, NoSymbol ] }; + key { [ KP_Add, KP_Add, U2213, NoSymbol, plusminus, U2295, U2214, NoSymbol ] }; + + // Middle Row + // -------------------------------------------------------------- + key { [ KP_4, club, KP_Left, KP_Left, leftarrow, includedin, U2286, NoSymbol ] }; + key { [ KP_5, EuroSign, KP_Begin, KP_Begin, brokenbar, U22B6, U22B7, NoSymbol ] }; + key { [ KP_6, U2023, KP_Right, KP_Right, rightarrow, includes, U2287, NoSymbol ] }; + + // Bottom Row + // -------------------------------------------------------------- + key { [ KP_1, diamond, KP_End, KP_End, U2194, lessthanequal, downstile, NoSymbol ] }; + key { [ KP_2, heart, KP_Down, KP_Down, downarrow, union, U22C3, NoSymbol ] }; + key { [ KP_3, U2660, KP_Next, KP_Next, U21CC, greaterthanequal, U230B, NoSymbol ] }; + key { [ KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, NoSymbol ] }; + key { [ KP_Equal, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; + + // Bottommost Row + // -------------------------------------------------------------- + key { [ KP_0, U2423, KP_Insert, KP_Insert, percent, U2030, U25A1, NoSymbol ] }; + key { [ KP_Separator, KP_Decimal, KP_Delete, KP_Delete, period, apostrophe, quotedbl, NoSymbol ] }; +}; + +// Copied from macintosh_vndr/de +// olh@suse.de very close to MacOS map + +partial alphanumeric_keys +xkb_symbols "mac" { + + include "de" + name[Group1]= "Germany - Macintosh"; + + // Alphanumeric section + key { [ 1, exclam, exclamdown, at ] }; + key { [ 5, percent, bracketleft ] }; + key { [ 6, ampersand, bracketright ] }; + key { [ 7, slash, bar, backslash ] }; + key { [ 8, parenleft, braceleft, asciitilde ] }; + key { [ 9, parenright, braceright ] }; + key { [ q, Q, guillemotleft, guillemotright ] }; + key { [ r, R, registered ] }; + key { [ u, U, diaeresis, Aacute ] }; + key { [ i, I, slash, Ucircumflex ] }; + key { [ udiaeresis, Udiaeresis, periodcentered, degree ] }; + key { [ plus, asterisk, asciitilde ] }; + key { [ a, A, aring, Aring ] }; + key { [ g, G, copyright ] }; + key { [ h, H, ordfeminine ] }; + key { [ l, L, at ] }; + key { [ odiaeresis, Odiaeresis, dead_acute ] }; + key { [ n, N, asciitilde ] }; + +}; + +partial alphanumeric_keys +xkb_symbols "mac_nodeadkeys" { + // modify the standard German mac layout to not have any dead keys + include "de(mac)" + name[Group1]= "Germany - Macintosh, eliminate dead keys"; + key { [ 4, dollar, onequarter, currency ] }; + + key { [ asciicircum, degree, notsign ] }; + key { [ acute, grave, cedilla ] }; + key { [ udiaeresis, Udiaeresis, diaeresis ] }; + key { [ plus, asterisk, asciitilde, macron ] }; + key { [ odiaeresis, Odiaeresis, acute ] }; + key { [ adiaeresis, Adiaeresis, asciicircum ] }; + + key { [ numbersign, apostrophe, grave ] }; +}; + +partial alphanumeric_keys +xkb_symbols "dsb" +{ + name[Group1] = "Germany - Lower Sorbian"; + include "latin(basic)" + include "level3(ralt_switch)" + include "kpdl(comma)" + key { [ z, Z, zcaron, Zcaron ] }; + key { [ x, X, zacute, Zacute ] }; + key { [ c, C, cacute, Cacute ] }; + key { [ v, V, ccaron, Ccaron ] }; + key { [ n, N, nacute, Nacute ] }; + key { [ s, S, sacute, Sacute ] }; + key { [ d, D, scaron, Scaron ] }; + key { [ f, F ] }; + key { [ q, Q ] }; + key { [ w, W ] }; + key { [ e, E, ecaron, Ecaron ] }; + key { [ r, R, racute, Racute ] }; + key { [ t, T, U20B5, EuroSign ] }; + key { [ o, O, oacute, Oacute ] }; +}; + +partial alphanumeric_keys +xkb_symbols "dsb_qwertz" +{ + name[Group1] = "Germany - Lower Sorbian (qwertz)"; + include "latin(basic)" + include "level3(ralt_switch)" + include "kpdl(comma)" + key { [ y, Y ] }; + key { [ x, X ] }; + key { [ c, C, cacute, Cacute ] }; + key { [ v, V, ccaron, Ccaron ] }; + key { [ n, N, nacute, Nacute ] }; + key { [ s, S, sacute, Sacute ] }; + key { [ d, D, scaron, Scaron ] }; + key { [ f, F ] }; + key { [ q, Q ] }; + key { [ w, W ] }; + key { [ e, E, ecaron, Ecaron ] }; + key { [ r, R, racute, Racute ] }; + key { [ t, T, U20B5, EuroSign ] }; + key { [ z, Z, zcaron, Zcaron ] }; + key { [ u, U, zacute, Zacute ] }; + key { [ o, O, oacute, Oacute ] }; +}; + +partial alphanumeric_keys +xkb_symbols "qwerty" { + + // This layout should work exactly as a de with the exception + // of 'Z' and 'Y' keys, which are in the qwerty style (ie. swapped). + // 2008 by Matej Košík + + include "de(basic)" + + name[Group1] = "Germany - qwerty"; + + key { [ z, Z, leftarrow, yen ] }; + key { [ y, Y, guillemotleft, less ] }; +}; diff --git a/linux/X/level5-test b/linux/X/level5-test new file mode 100644 index 0000000..9a6b22a --- /dev/null +++ b/linux/X/level5-test @@ -0,0 +1,174 @@ +// $XKeyboardConfig$ +// $XFree86: xc/programs/xkbcomp/types/extra,v 1.3 2002/11/26 02:14:02 dawes Exp $ + +partial default xkb_types "default" { + // Definition for a key type used for the czech keymap, for instance. + // Defines style a with four level shift. It is similar to three_level + // type used for iso9995 but it lets the shift key behave "normally". + + virtual_modifiers LevelThree,ScrollLock,LevelFive; + + type "EIGHT_LEVEL" { + modifiers = Shift+LevelThree+LevelFive; + map[None] = Level1; + map[Shift] = Level2; + map[LevelThree] = Level3; + map[Shift+LevelThree] = Level4; + map[LevelFive] = Level5; + map[Shift+LevelFive] = Level6; + map[LevelThree+LevelFive] = Level7; + map[Shift+LevelThree+LevelFive] = Level8; + level_name[Level1] = "Base"; + level_name[Level2] = "Shift"; + level_name[Level3] = "Alt Base"; + level_name[Level4] = "Shift Alt"; + level_name[Level5] = "X"; + level_name[Level6] = "X Shift"; + level_name[Level7] = "X Alt Base"; + level_name[Level8] = "X Shift Alt"; + }; + + type "EIGHT_LEVEL_ALPHABETIC" { + modifiers = Shift+Lock+LevelThree+LevelFive; + map[None] = Level1; + map[Shift] = Level2; + map[Lock] = Level2; + map[LevelThree] = Level3; + map[Shift+LevelThree] = Level4; + map[Lock+LevelThree] = Level4; + map[Lock+Shift+LevelThree] = Level3; + + map[LevelFive] = Level5; + map[Shift+LevelFive] = Level6; + map[Lock+LevelFive] = Level6; + map[LevelThree+LevelFive] = Level7; + map[Shift+LevelThree+LevelFive] = Level8; + map[Lock+LevelThree+LevelFive] = Level8; + map[Lock+Shift+LevelThree+LevelFive] = Level7; + + level_name[Level1] = "Base"; + level_name[Level2] = "Shift"; + level_name[Level3] = "Alt Base"; + level_name[Level4] = "Shift Alt"; + level_name[Level5] = "X"; + level_name[Level6] = "X Shift"; + level_name[Level7] = "X Alt Base"; + level_name[Level8] = "X Shift Alt"; + }; + + type "EIGHT_LEVEL_NEO_LOCKS" { + // 'NumLock' is used for the (Neo-)Mod4-Lock. + modifiers = Shift + LevelThree + NumLock + LevelFive; + + map[None] = Level1; + map[Shift] = Level2; + map[LevelThree] = Level3; + map[LevelThree+Shift] = Level4; + map[NumLock] = Level3; + map[NumLock+Shift] = Level4; + map[NumLock+LevelThree] = Level1; + map[NumLock+LevelThree+Shift] = Level2; + map[LevelFive] = Level5; + map[LevelFive+Shift] = Level6; + map[LevelFive+LevelThree] = Level7; + map[LevelFive+LevelThree+Shift] = Level8; + map[LevelFive+NumLock] = Level7; + map[LevelFive+NumLock+Shift] = Level8; + map[LevelFive+NumLock+LevelThree] = Level5; + map[LevelFive+NumLock+LevelThree+Shift] = Level6; + + level_name[Level1] = "Neo Level1"; + level_name[Level2] = "Neo Level2"; + level_name[Level3] = "Neo Level4"; + level_name[Level4] = "Neo Level4 Shift"; + level_name[Level5] = "Neo Level3"; + level_name[Level6] = "Neo Level5"; + level_name[Level7] = "Neo Level6"; + level_name[Level8] = "Neo Level6 Shift"; + }; + + type "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC" { + // 'NumLock' is used for the (Neo-)Mod4-Lock. + modifiers = Shift + Lock + LevelThree + NumLock + LevelFive; + + map[None] = Level1; + map[Shift] = Level2; + map[LevelThree] = Level3; + map[LevelThree+Shift] = Level4; + map[NumLock] = Level3; + map[NumLock+Shift] = Level4; + map[NumLock+LevelThree] = Level1; + map[NumLock+LevelThree+Shift] = Level2; + map[LevelFive] = Level5; + map[LevelFive+Shift] = Level6; + map[LevelFive+LevelThree] = Level7; + map[LevelFive+LevelThree+Shift] = Level8; + map[LevelFive+NumLock] = Level7; + map[LevelFive+NumLock+Shift] = Level8; + map[LevelFive+NumLock+LevelThree] = Level5; + map[LevelFive+NumLock+LevelThree+Shift] = Level6; + // Lock interchanges Level1 and Level2 + map[Lock] = Level2; + map[Lock+Shift] = Level1; + map[Lock+LevelThree] = Level3; + map[Lock+LevelThree+Shift] = Level4; + map[Lock+NumLock] = Level3; + map[Lock+NumLock+Shift] = Level4; + map[Lock+NumLock+LevelThree] = Level2; + map[Lock+NumLock+LevelThree+Shift] = Level1; + map[Lock+LevelFive] = Level5; + map[Lock+LevelFive+Shift] = Level6; + map[Lock+LevelFive+LevelThree] = Level7; + map[Lock+LevelFive+LevelThree+Shift] = Level8; + map[Lock+LevelFive+NumLock] = Level7; + map[Lock+LevelFive+NumLock+Shift] = Level8; + map[Lock+LevelFive+NumLock+LevelThree] = Level5; + map[Lock+LevelFive+NumLock+LevelThree+Shift] = Level6; + + level_name[Level1] = "Neo Level1"; + level_name[Level2] = "Neo Level2"; + level_name[Level3] = "Neo Level4"; + level_name[Level4] = "Neo Level4 Shift"; + level_name[Level5] = "Neo Level3"; + level_name[Level6] = "Neo Level5"; + level_name[Level7] = "Neo Level6"; + level_name[Level8] = "Neo Level6 Shift"; + }; + + type "EIGHT_LEVEL_SEMIALPHABETIC" { + modifiers = Shift+Lock+LevelThree+LevelFive; + map[None] = Level1; + map[Shift] = Level2; + map[Lock] = Level2; + map[LevelThree] = Level3; + map[Shift+LevelThree] = Level4; + map[Lock+LevelThree] = Level3; + map[Lock+Shift+LevelThree] = Level4; + + map[LevelFive] = Level5; + map[Shift+LevelFive] = Level6; + map[Lock+LevelFive] = Level6; + map[LevelThree+LevelFive] = Level7; + map[Shift+LevelThree+LevelFive] = Level8; + map[Lock+LevelThree+LevelFive] = Level7; + map[Lock+Shift+LevelThree+LevelFive] = Level8; + + preserve[Lock+LevelThree] = Lock; + preserve[Lock+Shift+LevelThree] = Lock; + preserve[Lock+LevelFive] = Lock; + preserve[Lock+Shift+LevelFive] = Lock; + preserve[Lock+LevelThree+LevelFive] = Lock; + preserve[Lock+Shift+LevelThree+LevelFive] = Lock; + + level_name[Level1] = "Base"; + level_name[Level2] = "Shift"; + level_name[Level3] = "Alt Base"; + level_name[Level4] = "Shift Alt"; + level_name[Level5] = "X"; + level_name[Level6] = "X Shift"; + level_name[Level7] = "X Alt Base"; + level_name[Level8] = "X Shift Alt"; + }; + +}; + -- cgit v1.2.3