From 833042b6b2f677ceefed1dcf960c4a4c77108bbc Mon Sep 17 00:00:00 2001 From: r03 Date: Fri, 6 Jul 2018 14:00:52 +0200 Subject: [PATCH] win layout: ^ not a dead key --- README.md | 94 +++++++++++++++++++++------------------------- win/AzertyR03.klc | Bin 16100 -> 16010 bytes 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/README.md b/README.md index edc5c46..f45a29e 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,16 @@ The Apple azerty and Windows azerty (Belgium period) layouts are a bit different. This layout is a combination to make them both work. -It is also more developer friendly. +It is also more developer friendly. -Screenshot -========== - -![Layout](/keyboard-layout.png) +# Screenshot -[Keyboard-layout-editor](http://www.keyboard-layout-editor.com/#/gists/63b058a04445e88629c4292a479f954a) +![Layout](/keyboard-layout.png) +# Installing on macOS -Installing on macOS -=================== -- sudo cp -r AzertyR03.bundle /Library/Keyboard\ Layouts/ -- reboot -- select new layout from keyboard settings -> input sources +- sudo cp -r AzertyR03.bundle /Library/Keyboard\ Layouts/ +- reboot +- select new layout from keyboard settings -> input sources Here some extra information: http://apple.stackexchange.com/questions/43845/how-do-i-type-a-%C2%B2-or-a-%C2%B3-on-an-apple-keyboard-international-english-layout/45402#45402 @@ -22,71 +18,67 @@ http://apple.stackexchange.com/questions/43845/how-do-i-type-a-%C2%B2-or-a-%C2%B If you need to re-identify your keyboard for some reason: sudo rm /Library/Preferences/com.apple.keyboardtype.plist - The layout is made with [Ukele](http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ukelele) -Installing on Windows -===================== -- Run the setup (check the releases) -- Choose the new layout +# Installing on Windows + +- Run the setup (check the releases) +- Choose the new layout The layout and installer is made with [Microsoft Keyboard Layout Creator](https://msdn.microsoft.com/en-us/globalization/keyboardlayouts.aspx) -Installing on Linux -=================== +# Installing on Linux Add this to the end of file `/usr/share/X11/xkb/symbols/be`: - partial alphanumeric_keys - xkb_symbols "r03" { + partial alphanumeric_keys + xkb_symbols "r03" { - include "be(basic)" - name[Group1]="Belgian (r03)"; + include "be(basic)" + name[Group1]="Belgian (r03)"; - key { [ at, numbersign, notsign, notsign ] }; - key { [ eacute, 2, at, twosuperior ] }; - key { [ quotedbl, 3, numbersign, threesuperior ] }; - key { [ parenleft, 5, braceleft, bracketleft ] }; - key { [parenright, 6, asciicircum, fiveeighths ] }; - key { [ parenleft, 0, braceright, degree ] }; - key { [parenright, degree, braceright, bracketright ] }; + key { [ at, numbersign, notsign, notsign ] }; + key { [ eacute, 2, at, twosuperior ] }; + key { [ quotedbl, 3, numbersign, threesuperior ] }; + key { [ parenleft, 5, braceleft, bracketleft ] }; + key { [parenright, 6, asciicircum, fiveeighths ] }; + key { [ parenleft, 0, braceright, degree ] }; + key { [parenright, degree, braceright, bracketright ] }; - key { [asciicircum,dead_diaeresis, bracketleft,dead_abovering ] }; - key { [ dollar, asterisk, bracketright, dead_macron ] }; + key { [asciicircum,dead_diaeresis, bracketleft,dead_abovering ] }; + key { [ dollar, asterisk, bracketright, dead_macron ] }; - key { [ braceleft, percent, dead_acute, dead_caron ] }; - key { [braceright, sterling, dead_grave, dead_breve ] }; + key { [ braceleft, percent, dead_acute, dead_caron ] }; + key { [braceright, sterling, dead_grave, dead_breve ] }; - key { [ l, L, lstroke, bar ] }; - key { [ n, N, asciitilde, N ] }; - key { [ comma, question, dead_cedilla, masculine ] }; - key { [ semicolon, period,horizconnector, multiply ] }; - key { [ colon, slash,periodcentered, backslash ] }; - key { [ equal, plus, asciitilde, dead_abovedot] }; - - key { [ less, greater, backslash, backslash ] }; - }; + key { [ l, L, lstroke, bar ] }; + key { [ n, N, asciitilde, N ] }; + key { [ comma, question, dead_cedilla, masculine ] }; + key { [ semicolon, period,horizconnector, multiply ] }; + key { [ colon, slash,periodcentered, backslash ] }; + key { [ equal, plus, asciitilde, dead_abovedot] }; + key { [ less, greater, backslash, backslash ] }; + }; Add the new variant to the belgian layout in `/usr/share/X11/xkb/rules/evdev.xml`: - - - r03 - Belgian (r03) - - + + + r03 + Belgian (r03) + + -After a reboot you can select the new layout. +After a reboot you can select the new layout. Tested with Gnome 3.26 on Ubuntu 17.10 and Xfce 4.12 on Arch (Manjaro). Here is some more information: https://askubuntu.com/questions/973659/custom-keyboard-variant-not-selectable -I also switched home/end and pgdn/pgup, but that is only because of my current laptop keyboard layout. +I also switched home/end and pgdn/pgup, but that is only because of my current laptop keyboard layout. Here is the config if you need it: key { [ Prior ] }; key { [ Home ] }; key { [ Next ] }; key { [ End ] }; - diff --git a/win/AzertyR03.klc b/win/AzertyR03.klc index 3c1015c3acb41f68d5f8242afa36eafe8b14f82d..0ce959167167e37968e1a9c05098809ccd773f22 100644 GIT binary patch delta 22 ecmaD-+f}Slh;&BE+J1_LL9(qw-T<;e!NT$>NsoL~e19q0^E