Bug 5659 - Right/Left handed dvorak layouts (patch)
Summary: Right/Left handed dvorak layouts (patch)
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high enhancement
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 00:58 UTC by sqweek
Modified: 2008-05-27 14:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch adding left and right handed dvorak layouts to xkb/symbols/pc/us (4.39 KB, patch)
2006-01-20 00:59 UTC, sqweek
Details | Splinter Review
CVS diff adding left and right dvorak layouts (5.59 KB, patch)
2006-01-30 20:23 UTC, sqweek
Details | Splinter Review
Remove groups from dvorak-l and dvorak-r layouts (3.86 KB, patch)
2008-05-26 08:15 UTC, sqweek
Details | Splinter Review

Description sqweek 2006-01-20 00:58:28 UTC
A couple of months ago I went and fractured my left elbow. As a consequence, I
was unable to type with both hands for some time. While single handed dvorak
layouts were readily available in linux console mode, I was disappointed to find
that there was no equivalent X keymap. So, armed with my one day of right-handed
dvorak experience, zero knowledge of X keymaps, and the single-minded
determination that only arises in the aftermath of finishing a good book[1], I
made one. I promised myself that when I had two hands again I'd build a matching
left-handed keymap and submit them to be included in the distribution[2]. That
time has come.

 I've built a patch against /etc/X11/xkb/symbols/pc/us, adding the variants
dvorak-l and dvorak-r. This seemed like the most sensible course of action, but
it seems there's been some restructuring of this area recently and I'm not sure
how things are supposed to be organised (out of curiousity what is
/etc/X11/xkb/symbols/dvorak around for?).
 If I should submit a patch on some other file or there's anything else I need
to for these to be included let me know - I made the layouts just by examining
already existing layouts, so I don't really have much idea how xkb works.

[1] Terry Pratchett, _A_Hat_Full_of_Sky_
[2] So that no other poor one armed saps have to duplicate the effort.
[3] While I'm here, I'll note that another level of indirection in the xkb
symbol files could come in handy for layouts like this. That is, dvorak has all
the same keys as qwerty, they're just in different places. But currently, all
the {[ q, Q ]}, {[ period, greater ], [ dead_abovedot, periodcentered ]} stuff
is duplicated between qwerty/dvorak.
[4] No, footnotes [3] and [4] weren't actually referenced. Yes, I crack myself up.
Comment 1 sqweek 2006-01-20 00:59:12 UTC
Created attachment 4395 [details] [review]
Patch adding left and right handed dvorak layouts to xkb/symbols/pc/us
Comment 2 Sergey V. Udaltsov 2006-01-29 07:21:41 UTC
These layouts actually contain two groups. Which is forbidden by
xkeyboard-config policy. Could you please fix them to be one-group. Actually I
would prefer the patch against current xkeyboard-config CVS, including base.xml.in.

Thanks
Comment 3 sqweek 2006-01-30 20:23:23 UTC
Created attachment 4510 [details] [review]
CVS diff adding left and right dvorak layouts

Alrighty.
I'm not really sure what you mean by groups - if all I had to do was add
name[Group1]="U.S. English - Left Handed Dvorak"; to the description as with
the other us variants then that is done, otherwise could you point me toward
the policy or information on groups? (I read through docs/README* and searched
for the policy but nothing is sticking out)

Also, I note that the dvorak layout itself doesn't include pc(common) or
us(basic), nor does it define anything for keys such as <LWIN> <RWIN>... is
this intentional?
Actually now that I'm looking at it it doesn't look like us(basic) is ever
defining anything for <LFSH> <RTSH> and some others - it includes pc(common)
but not pc(basic)

If the best course of action here is for me to lurk on the mailing list for
awhile and get a clue then let me know and i'll sign up :)
Comment 4 Sergey V. Udaltsov 2006-02-01 09:45:04 UTC
Thanks. Committed.
Comment 5 Sergey V. Udaltsov 2008-05-20 14:47:40 UTC
Oops, sorry, these variants still contain 2 groups. Could you please fix this ASAP? The syntax { [ ...], [ ... ] } is forbidden. The only valid syntax is { [ ... ] }

Thanks.
Comment 6 sqweek 2008-05-26 08:15:27 UTC
Created attachment 16742 [details] [review]
Remove groups from dvorak-l and dvorak-r layouts

 OK. I never worked out dead keys so it doesn't bother me.
 Does this have anything to do with my x server going to 100% cpu usage when I change layouts sometimes?
-sqweek
Comment 7 Sergey V. Udaltsov 2008-05-26 08:22:30 UTC
Thanks, I'll apply it ASAP.

It would hardly explain your 100% cpu usage though.

(In reply to comment #6)
> Created an attachment (id=16742) [details]
> Remove groups from dvorak-l and dvorak-r layouts
> 
>  OK. I never worked out dead keys so it doesn't bother me.
>  Does this have anything to do with my x server going to 100% cpu usage when I
> change layouts sometimes?
> -sqweek
> 

Comment 8 Sergey V. Udaltsov 2008-05-27 14:52:01 UTC
Thanks a bunch! Committed.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.