Bug 8789 - bar not working when using "cz,us"
Summary: bar not working when using "cz,us"
Status: RESOLVED DUPLICATE of bug 10811
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-27 03:42 UTC by Stefan Dirsch
Modified: 2007-04-29 10:02 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
xmodmap -pke for cz,us (6.06 KB, text/plain)
2006-10-27 03:44 UTC, Stefan Dirsch
Details
xmodmap -pke for us,cz (6.07 KB, text/plain)
2006-10-27 03:45 UTC, Stefan Dirsch
Details
Diff us,cz --> cz,us (4.88 KB, text/plain)
2006-10-27 03:46 UTC, Stefan Dirsch
Details
Braindead patch, which seems to fix this issue (652 bytes, patch)
2006-10-27 05:23 UTC, Stefan Dirsch
Details | Splinter Review

Description Stefan Dirsch 2006-10-27 03:42:11 UTC
bar ('|') is not working when using

#  setxkbmap "cz,us"
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwertz)
types:      complete
compat:     complete
symbols:    pc+cz+us:2+group(shifts_toggle)
geometry:   pc(pc105)

but it does when using

#  setxkbmap "us,cz"
Warning! Multiple definitions of keyboard layout
         Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes:   xfree86+aliases(qwerty)
types:      complete
compat:     complete
symbols:    pc+us+cz:2+group(shifts_toggle)
geometry:   pc(pc105)

So it depends on the order. This is xkeyboard-config 0.9 on X.Org 7.2 RC1.
Comment 1 Stefan Dirsch 2006-10-27 03:44:49 UTC
Created attachment 7548 [details]
xmodmap -pke for cz,us
Comment 2 Stefan Dirsch 2006-10-27 03:45:17 UTC
Created attachment 7549 [details]
xmodmap -pke for us,cz
Comment 3 Stefan Dirsch 2006-10-27 03:46:52 UTC
Created attachment 7550 [details]
Diff us,cz --> cz,us
Comment 4 Stefan Dirsch 2006-10-27 03:56:21 UTC
Czech keyboard layout:

http://www.uni-regensburg.de/EDV/Misc/KeyBoards/#TschechischQWERTY
Comment 5 Stefan Dirsch 2006-10-27 05:23:40 UTC
Created attachment 7552 [details] [review]
Braindead patch, which seems to fix this issue
Comment 6 Denis Barbier 2006-10-28 06:40:09 UTC
Stefan, it looks like you want
  setxkbmap -layout cz,us -variant bksl,
Comment 7 Stefan Dirsch 2006-10-28 08:36:32 UTC
Thanks for the hint!
Comment 8 Sergey V. Udaltsov 2006-10-28 08:38:52 UTC
So, are we closing this one?
Comment 9 Stefan Dirsch 2006-10-28 08:40:30 UTC
Yes.
Comment 10 Martin Korsgaard 2007-04-26 00:50:48 UTC
The same problem applies to "no,us" (Norwegian/U.S.), and "fr,us" (French/U.S.).

This works:
  setxkbmap -layout 'us,no' -option -option 'grp:alts_toggle'

This does not:
  setxkbmap -layout 'no,us' -option -option 'grp:alts_toggle'


In the latter case, the backslash/pipe key will always stick to the Norwegian layout (single-quote/asterisk). All other keys are correctly remapped.

If "no" is exchanged with "fr", the same problem comes up in the latter case: The backslash/pipe key will stick to the french layout (asterisk/mu), even when toggling groups.
Comment 11 Sergey V. Udaltsov 2007-04-27 16:55:51 UTC
The problem happens because we always have symbols/pc put into the first group (before any other symbols). That's where original BKSL keycode is mapped to pipe and backslash.

If in the first group we have layout which redefines BKSL (like 'no') - the backslash and pipe get overridden. And if in other, higher (2 etc) groups it is not defined explicitly (like in 'us') - it just uses whatever mapping exists in the first group ('no') in our case.

If first group contains layout which does not have BKSL remapped (for example, 'us') - its mapping is taken from symbols/pc. And all higher groups use that mapping unless they override BKSL mapping explicitly (like 'no').

So, the only solution I see is trying to add symbols/pc to every group we are going to have in our configuration. Lads, what do you think on this?
Comment 12 Sergey V. Udaltsov 2007-04-29 08:58:04 UTC
Actually I think we'll fix it the simplest possible way...
Comment 13 Sergey V. Udaltsov 2007-04-29 08:58:50 UTC

*** This bug has been marked as a duplicate of bug 10811 ***
Comment 14 Denis Barbier 2007-04-29 09:10:09 UTC
There are 2 ways:
 * include symbols/pc in all layouts
 * move keys away from symbols/pc if they are not identical
   within all layouts
I am not sure whether the 1st solution is safe for non-PC keyboards,
so I prefer the 2nd one.  BTW <CAPS> needs also to be considered,
because it is redefined in symbols/jp.
Comment 15 Sergey V. Udaltsov 2007-04-29 09:17:11 UTC
Denis, I think #10811 fixes it for many layous (based on 'us'). Once/If we get more reports, we'll add BKSL to other layouts. That way we'll eventually implement your #2. Is this reasonable?

Comment 16 Denis Barbier 2007-04-29 09:47:39 UTC
Sure, please add CAPS as well into symbols/us.
Comment 17 Sergey V. Udaltsov 2007-04-29 10:02:00 UTC
sure!


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.