Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486978 - x11-misc/xkeyboard-config Add Svorak A5 to X11 xkb se layout (symbols file)
Summary: x11-misc/xkeyboard-config Add Svorak A5 to X11 xkb se layout (symbols file)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo X packagers
URL: https://bugs.gentoo.org/show_bug.cgi?...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-04 22:02 UTC by Peter Asplund
Modified: 2014-05-30 14:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The section to be added (file_486978.txt,2.99 KB, patch)
2013-10-04 22:09 UTC, Peter Asplund
Details | Diff
New version instead of paste in comment (file_486978.txt,3.04 KB, patch)
2013-10-26 16:04 UTC, Peter Asplund
Details | Diff
Patch for base.xml.in (xkeyboard-config-2.10.1-r1_svoraka5_basexml.patch,539 bytes, patch)
2013-10-26 16:57 UTC, Peter Asplund
Details | Diff
Working patch for symbols/se file (xkeyboard-config-2.10.1-r1_svoraka5.patch,3.05 KB, patch)
2013-10-26 16:58 UTC, Peter Asplund
Details | Diff
New ebuild (xkeyboard-config-2.10.1-r1.ebuild,1.43 KB, text/plain)
2013-10-26 16:59 UTC, Peter Asplund
Details
Updated version of symbols/se patch (xkeyboard-config-2.10.1-r1_svoraka5.patch,3.05 KB, patch)
2013-11-20 20:10 UTC, Peter Asplund
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Asplund 2013-10-04 22:02:57 UTC
The symbols file (/usr/share/X11/xkb/symbols/se) for swedish currently lacks the Svorak A5 layout, but has both Svorak A1 (commonly called Swedish Dvorak) and Svdvorak (another version).

You could say that the Svorak A5 is a swedish version of the Programmer's Dvorak.

This would also be great to have upstream, I guess.
Comment 1 Peter Asplund 2013-10-04 22:09:39 UTC
Created attachment 360128 [details, diff]
The section to be added

This is the section that should be added in the file. I
Comment 2 Peter Asplund 2013-10-04 22:14:06 UTC
The source of the file is from this page:
http://www.aoeu.info/s/dvorak/unix

but I've removed the section where they clear all the symbols (¡@£$€¥{[]}\±) from the number row. I think it's better to have them in both places, as long at it doesn't collide in X11.
Comment 3 Peter Asplund 2013-10-04 22:18:36 UTC
I don't know if I need to regenerate the evdev.lst, evdev.xml, or any of the other files... But I'm currently editing them on my system just to get it to work.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-10-04 22:22:26 UTC
What is the upstream status of this patch?
Comment 5 Peter Asplund 2013-10-04 22:29:50 UTC
Comment on attachment 360128 [details, diff]
The section to be added

>--- /usr/share/X11/xkb/symbols/se	2013-10-05 00:05:56.110244461 +0200
>+++ se_new	2013-10-05 00:05:24.000000000 +0200
>@@ -90,6 +90,53 @@
> 	key <AB10> { [         z,          Z, guillemotleft,        less ]	};
> };
> 
>+partial alphanumeric_keys
>+xkb_symbols "svorak-a5" {
>+
>+	name[Group1]="Swedish (Dvorak A5)";
>+
>+	include "se(basic)"
>+
>+	key <LWIN> { [ Super_L                                           ] };
>+	key <RWIN> { [ Super_R                                           ] };
>+	key <AD01> { [ aring,      Aring,      braceleft,           none ] };
>+	key <AD02> { [ adiaeresis, Adiaeresis, braceright,          none ] };
>+	key <AD03> { [ odiaeresis, Odiaeresis, bracketleft,         none ] };
>+	key <AD04> { [ p,          P,          bracketright,        none ] };
>+	key <AD05> { [ y,          Y,          dollar,              none ] };
>+	key <AD06> { [ f,          F,          quotedbl,            none ] };
>+	key <AD07> { [ g,          G,          question,            none ] };
>+	key <AD08> { [ c,          C,          ampersand,           none ] };
>+	key <AD09> { [ r,          R,          less,                none ] };
>+	key <AD10> { [ l,          L,          greater,             none ] };
>+	key <AD11> { [ comma,      semicolon,  dead_cedilla,        none ] };
>+	key <AD12> { [ dead_diaeresis, dead_circumflex, dead_tilde,	asciicircum	]	};
>+	key <AE12> { [ dead_acute, dead_grave, plusminus,           none ] };
>+	key <AC01> { [ a,          A,          semicolon,           none ] };
>+	key <AC02> { [ o,          O,          slash,               none ] };
>+	key <AC03> { [ e,          E,          parenleft,           none ] };
>+	key <AC04> { [ u,          U,          parenright,          none ] };
>+	key <AC05> { [ i,          I,          bar,                 none ] };
>+	key <AC06> { [ d,          D,          numbersign,          none ] };
>+	key <AC07> { [ h,          H,          asciicircum,         none ] };
>+	key <AC08> { [ t,          T,          numbersign,          none ] };
>+	key <AC09> { [ n,          N,          quotedbl,            none ] };
>+	key <AC10> { [ s,          S,          asciitilde,          none ] };
>+	key <AC11> { [ minus,      underscore, grave,               none ] };
>+	key <BKSL> { [ apostrophe, asterisk,   asterisk,            none ] };
>+	key <AB01> { [ period,     colon,      colon,               none ] };
>+	key <AB02> { [ q,          Q,          equal,               none ] };
>+	key <AB03> { [ j,          J,          at,                  none ] };
>+	key <AB04> { [ k,          K,          exclam,              none ] };
>+	key <AB05> { [ x,          X,          backslash,           none ] };
>+	key <AB06> { [ b,          B,          percent,             none ] };
>+	key <AB07> { [ m,          M,          grave,               none ] };
>+	key <AB08> { [ w,          W,          lstroke,             none ] };
>+	key <AB09> { [ v,          V,          leftdoublequotemark, none ] };
>+	key <AB10> { [ z,          Z,          guillemotleft,       none ] };
>+
>+};
>+
Comment 6 Peter Asplund 2013-10-04 22:32:39 UTC
There, I re-added the semicolon and the colon for the shift modifier for comma and period, respectively. I don't think there's really any reason to remove them in comparison to the original Svorak layout.
Comment 7 Peter Asplund 2013-10-05 11:03:00 UTC
After adding the extra layout in the base.lst and base.xml, it works correctly.
Comment 8 Peter Asplund 2013-10-26 16:04:41 UTC
Created attachment 361982 [details, diff]
New version instead of paste in comment
Comment 9 Peter Asplund 2013-10-26 16:06:36 UTC
Adding links to two other bugs that got the layout added to the console keymap.
https://bugs.gentoo.org/show_bug.cgi?id=430950
https://bugs.gentoo.org/show_bug.cgi?id=55643
Comment 10 Peter Asplund 2013-10-26 16:57:53 UTC
Created attachment 361992 [details, diff]
Patch for base.xml.in
Comment 11 Peter Asplund 2013-10-26 16:58:52 UTC
Created attachment 361994 [details, diff]
Working patch for symbols/se file
Comment 12 Peter Asplund 2013-10-26 16:59:16 UTC
Created attachment 361996 [details]
New ebuild
Comment 13 Peter Asplund 2013-10-26 16:59:46 UTC
I've added this ebuild to my own overlay AzP (which can be found in layman).
Comment 14 Peter Asplund 2013-11-20 20:10:19 UTC
Created attachment 363682 [details, diff]
Updated version of symbols/se patch

Change name to dvorak_a5 (as it is in the other patch) to follow the convention in the file.
Comment 15 Peter Asplund 2013-11-20 20:30:19 UTC
I created an upstream bug report for this:

https://bugs.freedesktop.org/show_bug.cgi?id=71852
Comment 16 Peter Asplund 2014-01-07 15:45:30 UTC
It's been added upstream now!
Comment 17 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-01-07 16:14:02 UTC
I think is it not fully fixed upstream, only rules/base.extras.xml.in was changed and symbols/se wasn't.
Comment 18 Peter Asplund 2014-01-10 14:01:40 UTC
Oh, that's strange...
Comment 19 Peter Asplund 2014-04-28 20:45:06 UTC
I informed the developer of the issue and he updated the patch! Don't know if the new version is released or anything though.
Comment 20 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-05-30 14:44:30 UTC
xkeyboard-config-2.12 is now in portage