Skip to content

Instantly share code, notes, and snippets.

@tcheneau
Last active November 18, 2020 23:13
Show Gist options
  • Save tcheneau/9305f71d68c7f9c4cb101421ea216d49 to your computer and use it in GitHub Desktop.
Save tcheneau/9305f71d68c7f9c4cb101421ea216d49 to your computer and use it in GitHub Desktop.
Fix French keyboard layout once and for all
Index: xkeyboard-config-2.27/symbols/fr
===================================================================
--- xkeyboard-config-2.27.orig/symbols/fr
+++ xkeyboard-config-2.27/symbols/fr
@@ -219,7 +219,7 @@ xkb_symbols "oss_latin9" {
key <LSGT> { [ less, greater, less, greater ] }; // < > < >
key <AB01> { [ w, W, guillemotleft, guillemotleft ] }; // w W « «
key <AB02> { [ x, X, guillemotright, guillemotright ] }; // x X » »
- key <AB04> { [ v, V, nobreakspace, less ] }; // v V ⍽ < (espace insécable)
+ key <AB04> { [ v, V, space, less ] }; // v V ⍽ < (espace insécable)
key <AB05> { [ b, B, minus, asciicircum ] }; // b B - ^
key <AB06> { [ n, N, notsign, greater ] }; // n N ¬ >
key <AB07> { [ comma, question, questiondown, period ] }; // , ? ¿ .
@@ -529,7 +529,7 @@ xkb_symbols "bepo" {
key <AB09> { [ h, H, dagger, doubledagger ] }; // h H † ‡
key <AB10> { [ f, F, dead_ogonek, ordfeminine ] }; // f F ̨ ª
- key <SPCE> { [ space, nobreakspace, underscore, U202F ] }; // ␣ (espace insécable) _ (espace insécable fin)
+ key <SPCE> { [ space, space, underscore, space ] }; // ␣ (espace insécable) _ (espace insécable fin)
};
partial alphanumeric_keys
@@ -574,7 +574,7 @@ xkb_symbols "bepo_latin9" {
// Note : on a besoin de redéfinir les niveaux 3 et 4,
// donc nbsp(level2) ne suffit pas !
- key <SPCE> { [ space, nobreakspace, underscore, nobreakspace ] }; // ␣ (espace insécable) _ (espace insécable)
+ key <SPCE> { [ space, space, underscore, space ] }; // ␣ (espace insécable) _ (espace insécable)
};
// Author : Francis Leboutte, http://www.algo.be/ergo/dvorak-fr.html
@@ -678,7 +678,7 @@ xkb_symbols "dvorak" {
key <AB09> { [ p, P, section ] };
key <AB10> { [ j, J ] };
- key <SPCE> { [ space, space, nobreakspace, nobreakspace ] };
+ key <SPCE> { [ space, space, space, space ] };
};
// C'WHERTY: Breton keyboard. Ar c'hlavier brezhoneg.
@@ -775,7 +775,7 @@ xkb_symbols "bre" {
key <AB09> { [ period, colon, section, copyright ] };
key <AB10> { [ comma, semicolon, percent ] };
- key <SPCE> { [ space, nobreakspace, space, nobreakspace ] };
+ key <SPCE> { [ space, space, space, space ] };
include "level3(ralt_switch)"
};
@@ -912,7 +912,7 @@ xkb_symbols "mac" {
key <AB09> { [ colon, slash, division, backslash ] };
key <AB10> { [ equal, plus, VoidSymbol, plusminus ] };
- key <SPCE> { [ space, space, nobreakspace, nobreakspace ] };
+ key <SPCE> { [ space, space, space, space ] };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment