diff --git a/README.md b/README.md
index 496f908..5d1e77e 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,4 @@
# xkb_neo
My xkb modifications for making neo etc (inclusive vou) work properly with every part of GNU/Linux. YES, even IntelliJ
+
+Just execute patch_xkb.py as superuser to patch /usr/share/X11/xkb. Run enable_gnome.sh as normal user to enable alternative keyboard layouts on GNOME
diff --git a/enable_gnome.sh b/enable_gnome.sh
new file mode 100755
index 0000000..1529434
--- /dev/null
+++ b/enable_gnome.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/env sh
+gsettings set org.gnome.desktop.input-sources show-all-sources true
diff --git a/patch_xkb.py b/patch_xkb.py
new file mode 100755
index 0000000..8666855
--- /dev/null
+++ b/patch_xkb.py
@@ -0,0 +1,402 @@
+#!/usr/bin/env python3
+
+xkb = "/usr/share/X11/xkb"
+
+def brackets(text):
+ res = 0
+ slash = 0
+ for i in text:
+ match i:
+ case "/":
+ slash += 1
+ if slash == 2:
+ break
+ continue
+ case "{":
+ res += 1
+ case "}":
+ res -= 1
+ slash = 0
+ return res
+
+def bracket_end(code ,pos):
+ indent = 0
+ while indent := indent + brackets(code[pos]):
+ pos += 1
+ return pos + 1
+
+with open(f"{xkb}/rules/evdev.extras.xml", "r") as f:
+ evdev = f.read()
+if "vou" not in evdev:
+ evdev = evdev.split("\n")
+ koy = [i for i in range(len(evdev)) if "koy" in evdev[i]][0] - 2
+ vou = koy + 6
+ evdev = [*evdev[:vou],
+ ' ',
+ ' ',
+ ' vou',
+ ' German (VOU)',
+ ' ',
+ ' ',
+ ' ',
+ ' ',
+ ' kou',
+ ' German (KOU)',
+ ' ',
+ ' ',
+ *evdev[vou:]
+ ]
+ with open(f"{xkb}/rules/evdev.extras.xml", "w") as f:
+ f.write("\n".join(evdev))
+
+with open(f"{xkb}/symbols/de", "r") as f:
+ de = f.read()
+if "vou" not in de:
+ de = de.split("\n")
+ neo_base = ([i for i in range(len(de)) if "\"neo_base\"" in de[i]][0], -1)
+ neo_base = (neo_base[0]-1, bracket_end(de, neo_base[0]))
+ de = [
+ *de[:neo_base[0]],
+ 'partial alphanumeric_keys modifier_keys keypad_keys',
+ 'xkb_symbols "neo_base" {',
+ '',
+ ' // 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',
+ ' // Mod4-Lock: Shift + Mod3 + Tab',
+ '',
+ ' // 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 Ebene3 Ebene5 Ebene4 Pseudo-Ebene Ebene6 ??? ',
+ ' // Keys (Neo): None Shift Mod3 Mod3 + Shift Mod4 Mod4 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift ',
+ '',
+ '',
+ ' // Alphanumeric-keys',
+ ' // ===============',
+ ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";',
+ '',
+ ' // Tab as Multi_key (Compose)',
+ ' // --------------------------------------------------------------',
+ ' key { [ Tab, ISO_Left_Tab, Multi_key, ISO_Level5_Lock, NoSymbol, NoSymbol, NoSymbol, ISO_Level5_Lock ] };',
+ '',
+ '',
+ ' // Number row',
+ ' // --------------------------------------------------------------',
+ ' key { [ dead_circumflex, dead_caron, U21BB, U02DE, dead_abovedot, Pointer_EnableKeys, dead_belowdot, NoSymbol ] };',
+ '',
+ ' key { [ 1, degree, onesuperior, onesubscript, ordfeminine, NoSymbol, notsign, NoSymbol ] };',
+ ' key { [ 2, section, twosuperior, twosubscript, masculine, NoSymbol, logicalor, NoSymbol ] };',
+ ' key { [ 3, U2113, threesuperior, threesubscript, numerosign, NoSymbol, logicaland, NoSymbol ] };',
+ ' key { [ 4, guillemotright, U203A, femalesymbol, NoSymbol, NoSymbol, U22A5, NoSymbol ] };',
+ ' key { [ 5, guillemotleft, U2039, malesymbol, periodcentered, NoSymbol, U2221, NoSymbol ] };',
+ ' key { [ 6, dollar, cent, U26A5, sterling, NoSymbol, U2225, NoSymbol ] };',
+ '',
+ ' key { [ 7, EuroSign, yen, U03F0, currency, NoSymbol, rightarrow, NoSymbol ] };',
+ ' key { [ 8, doublelowquotemark, singlelowquotemark, U27E8, Tab, ISO_Left_Tab, U221E, NoSymbol ] };',
+ ' key { [ 9, leftdoublequotemark, leftsinglequotemark, U27E9, KP_Divide, KP_Divide, variation, NoSymbol ] };',
+ ' key { [ 0, rightdoublequotemark, rightsinglequotemark, zerosubscript, KP_Multiply, KP_Multiply, emptyset, NoSymbol ] };',
+ '',
+ ' key { [ minus, emdash, NoSymbol, U2011, KP_Subtract, KP_Subtract, hyphen, NoSymbol ] };',
+ ' key { [ dead_grave, dead_cedilla, dead_abovering, dead_dasia, dead_diaeresis, NoSymbol, dead_macron, NoSymbol ] };',
+ '',
+ ' // Top row',
+ ' // --------------------------------------------------------------',
+ ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";',
+ ' key { symbols[Group1] = [ x, X, ellipsis, Greek_xi, Prior, Prior, Greek_XI, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ v, V, underscore, NoSymbol, BackSpace, BackSpace, radical, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ l, L, bracketleft, Greek_lambda, Up, Up, Greek_LAMBDA, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ c, C, bracketright, Greek_chi, Delete, Delete, U2102, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ w, W, asciicircum, Greek_omega, Next, Next, Greek_OMEGA, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ '',
+ ' key { [ k, K, exclam, Greek_kappa, exclamdown, NoSymbol, multiply, NoSymbol ] };',
+ ' key { [ h, H, less, Greek_psi, KP_7, KP_7, Greek_PSI, NoSymbol ] };',
+ ' key { [ g, G, greater, Greek_gamma, KP_8, KP_8, Greek_GAMMA, NoSymbol ] };',
+ ' key { [ f, F, equal, Greek_phi, KP_9, KP_9, Greek_PHI, NoSymbol ] };',
+ ' key { [ q, Q, ampersand, U03D5, KP_Add, KP_Add, U211A, NoSymbol ] };',
+ '',
+ ' key { [ ssharp, U1E9E, U017F, Greek_finalsmallsigma, U2212, NoSymbol, jot, NoSymbol ] };',
+ '',
+ ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";',
+ ' key { [ dead_acute, dead_tilde, dead_stroke, dead_psili, dead_doubleacute, NoSymbol, dead_breve, NoSymbol ] };',
+ '',
+ ' // Middle row',
+ ' // --------------------------------------------------------------',
+ ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";',
+ ' key { symbols[Group1] = [ u, U, backslash, NoSymbol, Home, Home, includedin, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ i, I, slash, Greek_iota, Left, Left, integral, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ a, A, braceleft, Greek_alpha, Down, Down, U2200, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ e, E, braceright, Greek_epsilon, Right, Right, U2203, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ o, O, asterisk, Greek_omicron, End, End, elementof, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ '',
+ ' key { [ s, S, question, Greek_sigma, questiondown, NoSymbol, Greek_SIGMA, NoSymbol ] };',
+ ' key { [ n, N, parenleft, Greek_nu, KP_4, KP_4, U2115, NoSymbol ] };',
+ ' key { [ r, R, parenright, Greek_rho, KP_5, KP_5, U211D, NoSymbol ] };',
+ ' key { [ t, T, minus, Greek_tau, KP_6, KP_6, partialderivative, NoSymbol ] };',
+ ' key { [ d, D, colon, Greek_delta, KP_Separator, comma, Greek_DELTA, NoSymbol ] };',
+ '',
+ ' key { [ y, Y, at, Greek_upsilon, period, KP_Decimal, nabla, NoSymbol ] };',
+ '',
+ ' // Bottom row',
+ ' // --------------------------------------------------------------',
+ ' key { symbols[Group1] = [ udiaeresis, Udiaeresis, numbersign, NoSymbol, Escape, Escape, union, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ odiaeresis, Odiaeresis, dollar, U03F5, Tab, Tab, intersection, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ adiaeresis, Adiaeresis, bar, Greek_eta, Insert, Insert, U2135, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ p, P, asciitilde, Greek_pi, Return, Return, Greek_PI, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ z, Z, grave, Greek_zeta, Undo, Redo, U2124, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ '',
+ ' key { [ b, B, plus, Greek_beta, colon, NoSymbol, U21D0, NoSymbol ] };',
+ ' key { [ m, M, percent, Greek_mu, KP_1, KP_1, ifonlyif, NoSymbol ] };',
+ ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";',
+ ' key { [ comma, endash, quotedbl, U03F1, KP_2, KP_2, U21D2, NoSymbol ] };',
+ ' key { [ period, enfilledcircbullet, apostrophe, U03D1, KP_3, KP_3, U21A6, NoSymbol ] };',
+ ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";',
+ ' key { [ j, J, semicolon, Greek_theta, semicolon, NoSymbol, Greek_THETA, NoSymbol ] };',
+ ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";',
+ '',
+ ' // Space key',
+ ' // --------------------------------------------------------------',
+ ' key { [ space, space, space, nobreakspace, KP_0, KP_0, U202F, NoSymbol ] };',
+ '',
+ '',
+ ' // Keypad-keys',
+ ' // ===============',
+ '',
+ ' // The former Numlock key:',
+ ' key { [ Tab, ISO_Left_Tab, equal, approxeq, notequal, Pointer_EnableKeys, identical, NoSymbol ] };',
+ '',
+ ' // Topmost row',
+ ' // --------------------------------------------------------------',
+ ' key { [ KP_Divide, KP_Divide, division, U2300, U2215, NoSymbol, U2223, NoSymbol ] };',
+ ' key { [ KP_Multiply, KP_Multiply, U22C5, U2299, multiply, NoSymbol, U2297, NoSymbol ] };',
+ ' key { [ KP_Subtract, KP_Subtract, U2212, U2296, U2216, NoSymbol, U2238, NoSymbol ] };',
+ '',
+ ' // Top row',
+ ' // --------------------------------------------------------------',
+ ' key { [ KP_7, U2714, U2195, U226A, KP_Home, KP_Home, upstile, NoSymbol ] };',
+ ' key { [ KP_8, U2718, uparrow, intersection, KP_Up, KP_Up, U22C2, NoSymbol ] };',
+ ' key { [ KP_9, dagger, U20D7, U226B, KP_Prior, KP_Prior, U2309, NoSymbol ] };',
+ ' key { [ KP_Add, KP_Add, plusminus, U2295, U2213, NoSymbol, U2214, NoSymbol ] };',
+ '',
+ ' // Middle row',
+ ' // --------------------------------------------------------------',
+ ' key { [ KP_4, club, leftarrow, includedin, KP_Left, KP_Left, U2286, NoSymbol ] };',
+ ' key { [ KP_5, EuroSign, colon, U22B6, KP_Begin, KP_Begin, U22B7, NoSymbol ] };',
+ ' key { [ KP_6, U2023, rightarrow, includes, KP_Right, KP_Right, U2287, NoSymbol ] };',
+ '',
+ ' // Bottom row',
+ ' // --------------------------------------------------------------',
+ ' key { [ KP_1, diamond, U2194, lessthanequal, KP_End, KP_End, downstile, NoSymbol ] };',
+ ' key { [ KP_2, heart, downarrow, union, KP_Down, KP_Down, U22C3, NoSymbol ] };',
+ ' key { [ KP_3, U2660, U21CC, greaterthanequal, KP_Next, KP_Next, 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, percent, U2030, KP_Insert, KP_Insert, U25A1, NoSymbol ] };',
+ ' key { [ KP_Separator, period, comma, minutes, KP_Delete, KP_Delete, seconds, NoSymbol ] };',
+ '};',
+ *de[neo_base[1]:]
+ ]
+
+ koy = ([i for i in range(len(de)) if "\"koy\"" in de[i]][0], -1)
+ koy = (koy[0]-1, bracket_end(de, koy[0]))
+
+ de = [
+ *de[:koy[1]],
+ '',
+ 'partial alphanumeric_keys modifier_keys keypad_keys',
+ 'xkb_symbols "kou" {',
+ '',
+ ' include "de(koy_base)"',
+ '',
+ ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";',
+ ' // level 4: replace numero sign by heavy check mark (key 3)',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2714, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level 4: use unused place for heavy ballot X (key 4)',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2718, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level 4: replace middle dot on key 5 with WHITE MEDIUM STAR',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2B50, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level 4: move middle dot "·" from key 5 to key 7 (replacing the currency sign "¤")',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, periodcentered, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // move comma and endash to QWERTZ-C key',
+ ' key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] };',
+ '',
+ ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";',
+ ' // move f and ssharp keys to new positions, replace at by rightarrow; level4: replace period with semicolon',
+ ' key { [ f, F, ampersand, Greek_phi, KP_Add, KP_Add, Greek_PHI, NoSymbol ] };',
+ ' key { [ ssharp, U1E9E, rightarrow, Greek_finalsmallsigma, semicolon, KP_Decimal, jot, NoSymbol ] };',
+ '',
+ ' // rotate x, q, z, j and v',
+ ' key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] };',
+ ' key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] };',
+ ' key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] };',
+ ' key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] };',
+ ' key { [ v, V, NoSymbol, radical, NoSymbol, NoSymbol, multiply, NoSymbol ] };',
+ '',
+ ' // swap u, y and ä (and comma, but not here)',
+ ' key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] };',
+ ' key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] };',
+ ' key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] };',
+ '',
+ ' // swap b, d and p',
+ ' key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] };',
+ ' key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] };',
+ ' key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] };',
+ '',
+ ' // level3: replace long s by Euro sign',
+ ' key { [ NoSymbol, NoSymbol, EuroSign, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level3: put braces ({, }) in upper row',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, braceleft, NoSymbol, Up, NoSymbol, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), NoAction(), NoAction(), NoAction() ]};',
+ ' key { [ NoSymbol, NoSymbol, braceright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level3: swap underscore and percent',
+ ' key { [ NoSymbol, NoSymbol, percent, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level3: replace … by @',
+ ' key { [ NoSymbol, NoSymbol, at, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level3: rearrangement of the home row',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, bar, NoSymbol, Home, Home, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, grave, NoSymbol, Left, Left, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, parenleft, NoSymbol, Down, Down, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, parenright, NoSymbol, Right, Right, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ '',
+ ' key { [ NoSymbol, NoSymbol, slash, NoSymbol, 4, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, colon, NoSymbol, 5, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level3: rearrangement of the bottom row',
+ ' key { [ NoSymbol, NoSymbol, bracketleft, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, bracketright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, dollar, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, quotedbl, NoSymbol, 1, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, apostrophe, NoSymbol, 2, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, backslash, NoSymbol, 3, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ '',
+ ' // level 4: rotate page down, backspace and delete',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Next, Next, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, BackSpace, BackSpace, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Delete, Delete, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ '',
+ ' // level4: rotate escape, insert and return; replace undo with thumbs up sign',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Insert, Insert, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Return, Return, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Escape, Escape, NoSymbol, NoSymbol ],',
+ ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};',
+ ' key { [NoSymbol, NoSymbol, NoSymbol, NoSymbol, underscore, Undo, NoSymbol, NoSymbol ]};',
+ '',
+ ' // level4: swap . and ;',
+ ' // key BKSL was already changed above',
+ ' // key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, semicolon, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, period, KP_Decimal, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level4: replace ¡ by :',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, colon, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level4: replace ¿ by -',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, minus, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' // level4: replace : by _',
+ ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, 0, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' name[Group1]= "German (KOU)";',
+ '',
+ ' include "shift(both_capslock)"',
+ ' include "level3(caps_switch)"',
+ ' // use quote key (a-umlaut on German keyboards) as Mod3 switch',
+ ' include "level3(quote_switch)"',
+ ' include "level5(lsgt_switch_lock)"',
+ ' include "level5(ralt_switch_lock)"',
+ '};',
+ '',
+ 'partial alphanumeric_keys',
+ 'xkb_symbols "vou" {',
+ ' include "de(kou)"',
+ '',
+ ' key { [ k, K, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ l, L, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ h, H, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ ' key { [ c, C, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };',
+ '',
+ ' name[Group1]= "German (VOU)";',
+ '',
+ ' include "shift(both_capslock)"',
+ ' include "level3(caps_switch)"',
+ ' // use quote key (a-umlaut on German keyboards) as Mod3 switch',
+ ' include "level3(quote_switch)"',
+ ' include "level5(lsgt_switch_lock)"',
+ ' include "level5(ralt_switch_lock)"',
+ '};',
+ *de[koy[1]:]
+ ]
+
+ with open(f"{xkb}/symbols/de", "w") as f:
+ f.write("\n".join(de))
+with open(f"{xkb}/symbols/level3", "r") as f:
+ level3 = f.read()
+if "vou" not in level3:
+ level3 = level3.split("\n")
+ bksl_switch = ([i for i in range(len(level3)) if "\"bksl_switch\"" in level3[i]][0], -1)
+ bksl_switch = (bksl_switch[0]-1, bracket_end(level3, bksl_switch[0]))
+ level3 = [
+ *level3[:bksl_switch[1]],
+ '',
+ '// The Quote key (while pressed) chooses the third shift level.',
+ 'partial modifier_keys',
+ 'xkb_symbols "quote_switch" {',
+ ' key {',
+ ' type[Group1]="ONE_LEVEL",',
+ ' symbols[Group1] = [ ISO_Level3_Shift ]',
+ ' };',
+ ' include "level3(modifier_mapping)"',
+ '};',
+ *level3[bksl_switch[1]:]
+ ]
+ with open(f"{xkb}/symbols/level3", "w") as f:
+ f.write("\n".join(level3))
diff --git a/rules/evdev.extras.xml b/rules/evdev.extras.xml
deleted file mode 100644
index 9798870..0000000
--- a/rules/evdev.extras.xml
+++ /dev/null
@@ -1,1405 +0,0 @@
-
-
-
-
-
-
-
- apl
- apl
- APL
-
- eng
-
-
-
-
-
- dyalog
- dlg
- APL symbols (Dyalog APL)
-
-
-
-
- sax
- sax
- APL symbols (SAX, Sharp APL for Unix)
-
-
-
-
- unified
- ufd
- APL symbols (unified)
-
-
-
-
- apl2
- apl2
- APL symbols (IBM APL2)
-
-
-
-
- aplplusII
- aplII
- APL symbols (Manugistics APL*PLUS II)
-
-
-
-
- aplx
- aplx
- APL symbols (APLX unified)
-
-
-
-
-
-
- ca
- fr
- French (Canada)
-
- fra
-
-
-
-
-
- kut
- kut
- Kutenai
-
-
-
-
- shs
- shs
- Secwepemctsin
-
-
-
-
- sun_type6
- Multilingual (Canada, Sun Type 6/7)
-
-
-
-
-
-
- de
- de
- German
-
- deu
-
-
-
-
-
- hu
- German (with Hungarian letters, no dead keys)
-
- deu
- hun
-
-
-
-
-
- pl
- Polish (Germany, no dead keys)
-
- deu
- pol
-
-
-
-
-
- sun_type6
- German (Sun Type 6/7)
-
-
-
-
- adnw
- German (Aus der Neo-Welt)
-
-
-
-
- koy
- German (KOY)
-
-
-
-
- vou
- German (VOU)
-
-
-
-
- bone
- German (Bone)
-
-
-
-
- bone_eszett_home
- German (Bone, eszett in the home row)
-
-
-
-
- neo_qwertz
- German (Neo, QWERTZ)
-
-
-
-
- neo_qwerty
- German (Neo, QWERTY)
-
-
-
-
- ru-recom
-
- ru
- Russian (Germany, recommended)
-
- rus
-
-
-
-
-
- ru-translit
-
- ru
- Russian (Germany, transliteration)
-
- rus
-
-
-
-
-
- lld
- de_lld
- German (Ladin)
-
- deu
- lld
-
-
-
-
-
-
-
- eg
- Coptic
-
- cop
- egy
-
-
-
-
-
- hu
- Hungarian
-
-
-
-
- oldhun
- oldhun
- Old Hungarian
-
-
-
-
- oldhunlig
- oldhun(lig)
- Old Hungarian (for ligatures)
-
-
-
-
-
-
-
- ir
- fa
- Persian
-
- fas
-
-
-
-
-
- ave
- Avestan
-
- ave
-
-
-
-
-
-
-
- lt
- lt
- Lithuanian
-
- lit
-
-
-
-
-
- us_dvorak
- Lithuanian (Dvorak)
-
-
-
-
- sun_type6
- Lithuanian (Sun Type 6/7)
-
-
-
-
-
-
- lv
- lv
- Latvian
-
- lav
-
-
-
-
-
- dvorak
- Latvian (Dvorak)
-
-
-
-
- ykeydvorak
- Latvian (Dvorak, with Y)
-
-
-
-
- minuskeydvorak
- Latvian (Dvorak, with minus)
-
-
-
-
- dvorakprogr
- Latvian (programmer Dvorak)
-
-
-
-
- ykeydvorakprogr
- Latvian (programmer Dvorak, with Y)
-
-
-
-
- minuskeydvorakprogr
- Latvian (programmer Dvorak, with minus)
-
-
-
-
- colemak
- Latvian (Colemak)
-
-
-
-
- apostrophecolemak
- Latvian (Colemak, with apostrophe)
-
-
-
-
- sun_type6
- Latvian (Sun Type 6/7)
-
-
-
-
- apostrophe-deadquotes
- Latvian (apostrophe, dead quotes)
-
-
-
-
-
-
- us
- en
- English (US)
-
- eng
-
-
-
-
-
- intl-unicode
- English (US, intl., AltGr Unicode combining)
-
-
-
-
- alt-intl-unicode
- English (US, intl., AltGr Unicode combining, alt.)
-
-
-
-
- ats
- Atsina
-
-
-
-
-
- crd
- Coeur d'Alene Salish
-
- crd
-
-
-
-
-
- cz_sk_de
- Czech Slovak and German (US)
-
- eng
- ces
- slk
- deu
-
-
-
-
-
- cz_sk_pl_de_es_fi_sv
- Czech, Slovak, Polish, Spanish, Finnish, Swedish and German (US)
-
- eng
- cze
- slo
- pol
- ger
- spa
- fin
- swe
-
-
-
-
-
- drix
- English (Drix)
-
-
-
-
- de_se_fi
- German, Swedish and Finnish (US)
-
- eng
- deu
- swe
- fin
-
-
-
-
-
- ibm238l
- English (US, IBM Arabic 238_L)
-
-
-
-
- sun_type6
- English (US, Sun Type 6/7)
-
-
-
-
- carpalx
- English (Carpalx)
-
-
-
-
- carpalx-intl
- English (Carpalx, intl., with dead keys)
-
-
-
-
- carpalx-altgr-intl
- English (Carpalx, intl., with AltGr dead keys)
-
-
-
-
- carpalx-full
- English (Carpalx, full optimization)
-
-
-
-
- carpalx-full-intl
- English (Carpalx, full optimization, intl., with dead keys)
-
-
-
-
- carpalx-full-altgr-intl
- English (Carpalx, full optimization, intl., with AltGr dead keys)
-
-
-
-
- 3l
- English (3l)
-
-
-
-
- 3l-cros
- English (3l, Chromebook)
-
-
-
-
- 3l-emacs
- English (3l, emacs)
-
-
-
-
- scn
- Sicilian (US keyboard)
-
- eng
- ita
- scn
-
-
-
-
-
-
-
- pl
- pl
- Polish
-
- pol
-
-
-
-
-
- intl
- Polish (intl., with dead keys)
-
-
-
-
- colemak
- Polish (Colemak)
-
-
-
-
- colemak_dh
- Polish (Colemak-DH)
-
-
-
-
- sun_type6
- Polish (Sun Type 6/7)
-
-
-
-
- glagolica
- Polish (Glagolica)
-
-
-
-
-
-
- ro
- ro
- Romanian
-
- ron
-
-
-
-
-
- crh_dobruja
- crh
- Crimean Tatar (Dobruja Q)
-
- crh
-
-
-
-
-
- ergonomic
- Romanian (ergonomic Touchtype)
-
-
-
-
- sun_type6
- Romanian (Sun Type 6/7)
-
-
-
-
-
-
- rs
- sr
- Serbian
-
- srp
-
-
-
-
-
- combiningkeys
- Serbian (combining accents instead of dead keys)
-
-
-
-
-
-
- ru
- ru
- Russian
-
-
-
-
- chu
- Church Slavonic
-
- chu
-
-
-
-
-
- ruu
- ru
- Russian (with Ukrainian-Belorussian layout)
-
- rus
- ukr
- bel
-
-
-
-
-
- rulemak
- Russian (Rulemak, phonetic Colemak)
-
-
-
-
- phonetic_mac
- Russian (phonetic Macintosh)
-
-
-
-
- sun_type6
- Russian (Sun Type 6/7)
-
-
-
-
- unipunct
- Russian (with US punctuation)
-
-
-
-
- prxn
- ru
- Russian (Polyglot and Reactionary)
-
- RU
- RS
- BA
- ME
- MK
- BG
- MD
- UA
- BY
- KZ
- MN
- KG
- TJ
- UZ
- TM
- AZ
-
-
- rus
- ukr
- bel
- srp
- mkd
- bul
- chu
- kaz
- kir
- uzb
- bak
- aze
- tat
- uig
- kdr
- tyv
- kjh
- crh
- tgk
- abk
- sah
- mon
- kal
- sjd
- chv
- oss
- krl
- ale
- wbl
- kur
- niv
- dng
- kom
- udm
- sel
- ulc
- ude
- oac
- oaa
- gld
- eve
- evn
- kca
- itl
- yrk
- neg
-
-
-
-
-
-
-
- am
- hy
- Armenian
-
- hye
-
-
-
-
-
- olpc-phonetic
- Armenian (OLPC, phonetic)
-
-
-
-
-
-
- il
- he
- Hebrew
-
- heb
-
-
-
-
-
- biblicalSIL
- Hebrew (Biblical, SIL phonetic)
-
- heb
-
-
-
-
-
-
-
- ara
- ar
- Arabic
-
-
-
-
- sun_type6
- Arabic (Sun Type 6/7)
-
-
-
-
- basic_ext
- Arabic (Arabic numerals, extensions in the 4th level)
-
-
-
-
- basic_ext_digits
- Arabic (Eastern Arabic numerals, extensions in the 4th level)
-
-
-
-
- uga
- Ugaritic instead of Arabic
-
-
-
-
-
-
- be
- be
- Belgian
-
-
-
-
- sun_type6
- Belgian (Sun Type 6/7)
-
-
-
-
-
-
- br
- pt
- Portuguese (Brazil)
-
-
-
-
- sun_type6
- Portuguese (Brazil, Sun Type 6/7)
-
-
-
-
-
-
- cz
- cs
- Czech
-
-
-
-
- sun_type6
- Czech (Sun Type 6/7)
-
-
-
-
- prog
- Czech (programming)
-
-
-
-
- typo
- Czech (typographic)
-
-
-
-
- coder
- Czech (coder)
-
-
-
-
- prog_typo
- Czech (programming, typographic)
-
-
-
-
-
-
- dk
- da
- Danish
-
-
-
-
- sun_type6
- Danish (Sun Type 6/7)
-
-
-
-
-
-
- nl
- nl
- Dutch
-
-
-
-
- sun_type6
- Dutch (Sun Type 6/7)
-
-
-
-
-
-
- ee
- et
- Estonian
-
-
-
-
- sun_type6
- Estonian (Sun Type 6/7)
-
-
-
-
-
-
- fi
- fi
- Finnish
-
-
-
-
- sun_type6
- Finnish (Sun Type 6/7)
-
-
-
-
- das
- Finnish (DAS)
-
-
-
-
- fidvorak
- Finnish (Dvorak)
-
-
-
-
-
-
- fr
- fr
- French
-
-
-
-
- sun_type6
- French (Sun Type 6/7)
-
-
-
-
- us-alt
- French (US with dead keys, alt.)
-
-
-
-
- us-azerty
- French (US, AZERTY)
-
-
-
-
-
-
- gr
- gr
- Greek
-
-
-
-
- sun_type6
- Greek (Sun Type 6/7)
-
-
-
-
- colemak
- Greek (Colemak)
-
-
-
-
-
-
- it
- it
- Italian
-
-
-
-
- sun_type6
- Italian (Sun Type 6/7)
-
-
-
-
- lld
- it_lld
- Italian (Ladin)
-
- ita
- lld
-
-
-
-
-
- dvorak
- Italian (Dvorak)
-
- ita
-
-
-
-
-
-
-
- jp
- ja
- Japanese
-
-
-
-
- sun_type6
- Japanese (Sun Type 6)
-
-
-
-
- sun_type7
- Japanese (Sun Type 7, PC-compatible)
-
-
-
-
- sun_type7_suncompat
- Japanese (Sun Type 7, Sun-compatible)
-
-
-
-
-
-
- no
- no
- Norwegian
-
-
-
-
- sun_type6
- Norwegian (Sun Type 6/7)
-
-
-
-
-
-
- pk
- ur
- Urdu (Pakistan)
-
-
-
-
- urd-navees
- Urdu (Navees, Pakistan)
-
- urd
-
-
-
-
-
-
-
- pt
- pt
- Portuguese
-
-
-
-
- sun_type6
- Portuguese (Sun Type 6/7)
-
-
-
-
- colemak
- Portuguese (Colemak)
-
-
-
-
-
-
- sk
- sk
- Slovak
-
-
-
-
- acc
- Slovak (ACC layout, only accented letters)
-
-
-
-
- sun_type6
- Slovak (Sun Type 6/7)
-
-
-
-
-
-
- es
- es
- Spanish
-
-
-
-
- sun_type6
- Spanish (Sun Type 6/7)
-
-
-
-
-
-
- se
- sv
- Swedish
-
-
-
-
- dvorak_a5
- Swedish (Dvorak A5)
-
-
-
-
- sun_type6
- Swedish (Sun Type 6/7)
-
-
-
-
- ovd
- Elfdalian (Swedish, with combining ogonek)
-
- ovd
-
-
-
-
-
-
-
- ch
- de
- German (Switzerland)
-
-
-
-
- sun_type6_de
- German (Switzerland, Sun Type 6/7)
-
-
-
-
- sun_type6_fr
- French (Switzerland, Sun Type 6/7)
-
-
-
-
-
-
- tr
- tr
- Turkish
-
-
-
-
- sun_type6
- Turkish (Sun Type 6/7)
-
-
-
-
- otk
- Old Turkic
-
-
-
-
-
-
- ua
- uk
- Ukrainian
-
-
-
-
- sun_type6
- Ukrainian (Sun Type 6/7)
-
-
-
-
-
-
- gb
- en
- English (UK)
-
-
-
-
- sun_type6
- English (UK, Sun Type 6/7)
-
-
-
-
-
-
- kr
- ko
- Korean
-
-
-
-
- sun_type6
- Korean (Sun Type 6/7)
-
-
-
-
-
-
- vn
-
- vi
- Vietnamese
-
- vie
-
-
-
-
-
- aderty
- Vietnamese (AÐERTY)
-
-
-
-
- qderty
- Vietnamese (QĐERTY)
-
-
-
-
-
-
- eu
-
- eu
- EurKEY (US)
-
- cat
- dan
- eng
- est
- fao
- fin
- deu
- ell
- gsw
- ita
- lav
- lit
- nld
- nor
- por
- spa
- swe
-
-
-
-
-
- trans
-
- International Phonetic Alphabet
-
-
-
-
-
- in
-
- in
- Indian
-
-
-
-
- modi-kagapa
- mr
- Modi (KaGaPa phonetic)
-
- mar
-
-
-
-
-
- san-misc
- sas
- Sanskrit symbols
-
- san
-
-
-
-
-
- urd-navees
- ur
- Urdu (Navees)
-
- urd
-
-
-
-
-
-
-
-
-
-
- lv3
- Key to choose the 3rd level
-
-
-
-
-
-
-
- parens
- Parentheses position
-
-
-
-
-
diff --git a/symbols/de b/symbols/de
deleted file mode 100644
index 6a2d63e..0000000
--- a/symbols/de
+++ /dev/null
@@ -1,1360 +0,0 @@
-default
-xkb_symbols "basic" {
-
- include "latin(type4)"
-
- name[Group1]="German";
-
- 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 ]};
- 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, asciitilde, 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, rightsinglequotemark, 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 ] };
- key { [ less, greater, bar, dead_belowmacron ] };
-
- include "kpdl(comma)"
-
- include "level3(ralt_switch)"
-};
-
-partial alphanumeric_keys
-xkb_symbols "deadtilde" {
- // previous standard German layout with tilde as dead key
-
- include "de(basic)"
- name[Group1]="German (dead tilde)";
-
- key { [ plus, asterisk, dead_tilde, dead_macron ] };
-};
-
-partial alphanumeric_keys
-xkb_symbols "nodeadkeys" {
-
- // modify the basic German layout to not have any dead keys
-
- include "de(basic)"
- name[Group1]="German (no dead keys)";
-
- key { [asciicircum, degree, notsign, notsign ] };
- key { [ acute, 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, rightsinglequotemark, grave ] };
-};
-
-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]="German (dead grave acute)";
-
- key { [asciicircum, degree, notsign, notsign ] };
- key { [ plus, asterisk, asciitilde, dead_macron ] };
- key { [ numbersign, apostrophe, rightsinglequotemark, 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]="German (dead acute)";
-
- key { [dead_acute, grave, dead_cedilla, dead_ogonek ] };
- key { [numbersign, apostrophe, rightsinglequotemark, dead_grave ] };
-};
-
-partial alphanumeric_keys
-xkb_symbols "e1" {
- // German extended layout E1 based on DIN 2137-1:2020-11
- // Designed for a 105-key keyboard
- // https://de.wikipedia.org/wiki/Tastaturbelegung
-
- name[Group1]="German (E1)";
-
- // first row
- key.type[Group1] = "EIGHT_LEVEL";
- key { [ dead_circumflex, degree, multiply, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };
- key { [ 1, exclam, rightsinglequotemark, NoSymbol, onequarter, U25CA, NoSymbol, NoSymbol ] };
- key { [ 2, quotedbl, twosuperior, NoSymbol, onehalf, U00A6, NoSymbol, NoSymbol ] };
- key { [ 3, section, threesuperior, NoSymbol, threequarters, U00B6, NoSymbol, NoSymbol ] };
- key { [ 4, dollar, emdash, NoSymbol, currency, U2133, NoSymbol, NoSymbol ] };
- key { [ 5, percent, exclamdown, NoSymbol, U2030, U20B0, NoSymbol, NoSymbol ] };
- key { [ 6, ampersand, questiondown, NoSymbol, U2044, U204A, NoSymbol, NoSymbol ] };
- key { [ 7, slash, braceleft, NoSymbol, U2300, U2116, NoSymbol, NoSymbol ] };
- key { [ 8, parenleft, bracketleft, NoSymbol, U27E8, U27EA, NoSymbol, NoSymbol ] };
- key { [ 9, parenright, bracketright, NoSymbol, U27E9, U27EB, NoSymbol, NoSymbol ] };
- key { [ 0, equal, braceright, NoSymbol, division, U2205, NoSymbol, NoSymbol ] };
- key { [ ssharp, question, backslash, NoSymbol, notequal, U00AC, NoSymbol, NoSymbol ] };
- key { [ dead_acute, dead_grave, dead_abovedot, NoSymbol, sterling, U035C, NoSymbol, NoSymbol ] };
-
- // second row
- key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC";
- key { [ q, Q, at, NoSymbol, masculine, U2642, NoSymbol, NoSymbol ] };
- key { [ w, W, dead_macron, NoSymbol, ordfeminine, U2640, NoSymbol, NoSymbol ] };
- key { [ e, E, EuroSign, NoSymbol, schwa, SCHWA, NoSymbol, NoSymbol ] };
- key { [ r, R, dead_doubleacute, NoSymbol, trademark, registered, NoSymbol, NoSymbol ] };
- key { [ t, T, dead_caron, NoSymbol, thorn, THORN, NoSymbol, NoSymbol ] };
- key { [ z, Z, dead_diaeresis, NoSymbol, U0292, U01B7, NoSymbol, NoSymbol ] };
- key { [ u, U, dead_breve, NoSymbol, rightarrow, leftarrow, NoSymbol, NoSymbol ] };
- key { [ i, I, dead_tilde, NoSymbol, idotless, U26A5, NoSymbol, NoSymbol ] };
- key { [ o, O, dead_abovering, NoSymbol, oslash, Oslash, NoSymbol, NoSymbol ] };
- key { [ p, P, dead_hook, NoSymbol, downarrow, uparrow, NoSymbol, NoSymbol ] };
- key { [ udiaeresis, Udiaeresis, dead_horn, NoSymbol, U2198, U2197, NoSymbol, NoSymbol ] };
- key.type[Group1] = "EIGHT_LEVEL";
- key { [ plus, asterisk, asciitilde, NoSymbol, plusminus, U2052, NoSymbol, NoSymbol ] };
-
- // third row
- key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC";
- // Per DIN 2137-1:2018-12, p. 11-12, (Alt)Gr+a can either invoke
- // a selection possibility for emojis or special characters, or
- // output the U+263A smiley.
- key { [ a, A, Multi_key, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };
- key { [ s, S, seconds, NoSymbol, U017F, U2211, NoSymbol, NoSymbol ] };
- key { [ d, D, minutes, NoSymbol, eth, ETH, NoSymbol, NoSymbol ] };
- key { [ f, F, ISO_Level5_Latch, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };
- key { [ g, G, U1E9E, NoSymbol, U02BF, U261B, NoSymbol, NoSymbol ] };
- key { [ h, H, dead_belowmacron, NoSymbol, U02BE, U261A, NoSymbol, NoSymbol ] };
- key { [ j, J, dead_cedilla, NoSymbol, U02B9, U02BA, NoSymbol, NoSymbol ] };
- key { [ k, K, dead_belowcomma, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };
- key { [ l, L, dead_ogonek, NoSymbol, lstroke, Lstroke, NoSymbol, NoSymbol ] };
- key { [ odiaeresis, Odiaeresis, dead_belowdot, NoSymbol, oe, OE, NoSymbol, NoSymbol ] };
- key { [ adiaeresis, Adiaeresis, dead_stroke, NoSymbol, ae, AE, NoSymbol, NoSymbol ] };
- key.type[Group1] = "EIGHT_LEVEL";
- key { [ numbersign, apostrophe, U2212, NoSymbol, U2020, U2021, NoSymbol, NoSymbol ] };
-
- // fourth row
- key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC";
- key { [ y, Y, U203A, NoSymbol, U2423, U23D1, NoSymbol, NoSymbol ] };
- key { [ x, X, guillemotright, NoSymbol, doublelowquotemark, singlelowquotemark, NoSymbol, NoSymbol ] };
- key { [ c, C, U202F, NoSymbol, cent, copyright, NoSymbol, NoSymbol ] };
- key { [ v, V, guillemotleft, NoSymbol, leftdoublequotemark, leftsinglequotemark, NoSymbol, NoSymbol ] };
- key { [ b, B, U2039, NoSymbol, rightdoublequotemark, rightsinglequotemark, NoSymbol, NoSymbol ] };
- key { [ n, N, endash, NoSymbol, eng, ENG, NoSymbol, NoSymbol ] };
- // Per DIN 2137-1:2018-12, p. 12, U+2217 should be replaced by the
- // 'middle asterisk' character as soon as it has been added to
- // Unicode (see Unicode proposal L2/17-152).
- key { [ m, M, mu, NoSymbol, U200C, U2217, NoSymbol, NoSymbol ] };
- key.type[Group1] = "EIGHT_LEVEL";
- key { [ comma, semicolon, U2011, NoSymbol, U02BB, U2661, NoSymbol, NoSymbol ] };
- key