Bug 38017 - several cz keyboard symbols incorrect
Summary: several cz keyboard symbols incorrect
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-06 18:09 UTC by Bryce Harrington
Modified: 2011-10-09 15:02 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
locale.txt (335 bytes, text/plain)
2011-06-06 18:10 UTC, Bryce Harrington
Details
peripherals.txt (1.57 KB, text/plain)
2011-06-06 18:10 UTC, Bryce Harrington
Details
setxkbmap.txt (286 bytes, text/plain)
2011-06-06 18:10 UTC, Bryce Harrington
Details
xinput.txt (913 bytes, text/plain)
2011-06-06 18:11 UTC, Bryce Harrington
Details
xkbcomp.txt (58.57 KB, text/plain)
2011-06-06 18:12 UTC, Bryce Harrington
Details
Patched file: /usr/share/X11/xkb/symbols/cz (1.18 KB, patch)
2011-06-07 13:52 UTC, Lukáš Mojžíš
Details | Splinter Review
Patched file: /usr/share/X11/xkb/symbols/cz (1.49 KB, patch)
2011-06-08 07:04 UTC, Lukáš Mojžíš
Details | Splinter Review
Patched file: /usr/share/X11/xkb/symbols/cz (1.49 KB, patch)
2011-10-05 14:12 UTC, Lukáš Mojžíš
Details | Splinter Review
Patch for version 2011-10-09 17:15:17.470118542 (253 bytes, patch)
2011-10-09 08:24 UTC, Lukáš Mojžíš
Details | Splinter Review

Description Bryce Harrington 2011-06-06 18:09:29 UTC
Forwarding this bug from Ubuntu reporter Luk Moj:
http://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/770354

[Problem]
Seven of the key mappings for the cz keyboard are incorrect for this user's keyboard.  I don't know if it's a keyboard-specific issue or a problem with cz in general.

[Original Description]
When I press certain keys, I expect I'll get the keys on the keyboard in my layout, I get bad ones instead though. Even when it is the right keystrokes that work well even in Windows and on Mac, even the symbols are printed on the keyboard. This needs to be patched. Problem is the symbols are mapped on different keys, some symbols have been duplicated. Maybe new keyboard layout should be made, some users sure used to this "buggy" layout. I made a new one where all errors I've found are already corrected. I attach new layout in the patchfile.

lsb_release is not relevant as this problem persists at least for 6 years in every distro I used (Ubuntu, Debian, Fedora, Linux Mint, etc...)

P.S.: The patchfile was made from:

/usr/share/X11/xkb/symbols/cz

Best regards
Luk Moj

174a175,198
> 
> partial alphanumeric_keys 
> xkb_symbols "qwerty_common" {
>  
>     // This layout should work properly and it's goal is to represent actual
>     // keyboard layout according to symbols printed on keys.
>     // -----------------------------------------------------------------------
>     // This layout was created in 2011 by Lukáš Mojžíš <lmojzis@grenames.cz>
>     // Feel free to ask for further fixes to fully conform the original QWERTY
>     // layout. Everybody makes mistakes. It is made for users that used to
>     // use Czechia - qwerty on Windows or Mac OS and are a bit confused why
>     // thez press something and ged another symbol, that they didn't expect :).
>     
>     include "cz(basic)"
>     name[Group1]= "Czechia - qwerty, common";
> 
>     key <AB01>	{ [         z,          Z,       degree,         NoSymbol ] };
>     key <AC10>	{ [     uring,   quotedbl,    semicolon,         NoSymbol ] };
>     key <AD06>	{ [         y,          Y,     NoSymbol,         NoSymbol ] };
>     key <AD11>	{ [    uacute,      slash,  bracketleft,        braceleft ] };
>     key <AD12>	{ [parenright,  parenleft, bracketright,       braceright ] };
>     key <AE09>	{ [    iacute,          9,    parenleft,       dead_acute ] };
>     key <AE10>	{ [    eacute,          0,   parenright, dead_doubleacute ] };
> };

--- 
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
CompositorRunning: compiz
DRM.card0.DP.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes: 
 edid-base64:
DRM.card0.HDMI.A.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes: 
 edid-base64:
DRM.card0.LVDS.1:
 status: connected
 enabled: enabled
 dpms: On
 modes: 1366x768
 edid-base64: AP///////wANr3EVAAAAACQSAQOAIxN4Cgf1mldOhyYeUFQAAAABAQEBAQEBAQEBAQEBAQEBfh1WwlAAJjAfQUwAWMEQAAAYAAAA/gBOMTU2QjYtTDA0CiAgAAAA/gBDTU8KICAgICAgICAgAAAA/gBOMTU2QjYtTDA0CiAgAD0=
DRM.card0.VGA.1:
 status: disconnected
 enabled: disabled
 dpms: Off
 modes: 
 edid-base64:
DistUpgraded: Fresh install
DistroCodename: natty
DistroRelease: Ubuntu 11.04
DistroVariant: ubuntu
DkmsStatus: virtualbox-ose, 4.0.4, 2.6.38-8-generic, x86_64: installed
GraphicsCard:
 Intel Corporation Core Processor Integrated Graphics Controller [8086:0046] (rev 18) (prog-if 00 [VGA controller])
   Subsystem: Device [1b0a:00b9]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
MachineType: GIGABYTE i1520M
Package: xkeyboard-config (not installed)
ProcEnviron:
 LANGUAGE=cs_CZ:en
 LANG=cs_CZ.UTF-8ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic root=UUID=6118117d-1935-4975-851d-fcc23addbd48 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Renderer: Unknown
Tags:  natty running-unity ubuntu compiz-0.9
Uname: Linux 2.6.38-8-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
dmi.bios.date: 07/09/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: Spring Peak 151D  0900
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 10
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrSpringPeak151D0900:bd07/09/2010:svnGIGABYTE:pni1520M:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct10:cvrToBeFilledByO.E.M.:
dmi.product.name: i1520M
dmi.product.version: To be filled by O.E.M.
dmi.sys.vendor: GIGABYTE
version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu2
version.ia32-libs: ia32-libs 20090808ubuntu13
version.libdrm2: libdrm2 2.4.23-1ubuntu6
version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110107+b795ca6e-0ubuntu7
Comment 1 Bryce Harrington 2011-06-06 18:10:08 UTC
Created attachment 47628 [details]
locale.txt
Comment 2 Bryce Harrington 2011-06-06 18:10:28 UTC
Created attachment 47629 [details]
peripherals.txt
Comment 3 Bryce Harrington 2011-06-06 18:10:46 UTC
Created attachment 47630 [details]
setxkbmap.txt
Comment 4 Bryce Harrington 2011-06-06 18:11:28 UTC
Created attachment 47631 [details]
xinput.txt
Comment 5 Bryce Harrington 2011-06-06 18:12:54 UTC
Created attachment 47632 [details]
xkbcomp.txt
Comment 6 Lukáš Mojžíš 2011-06-07 07:49:58 UTC
To complete the information. My name is Lukáš Mojžíš - Not Luk Moj as the accented letters were probably wiped during the CopyPasting.

There is also 1 mistake in the layout's comment-header...
-thez press something and ged another symbol, that they didn't expect :).
+they press something and get another symbol, that they didn't expect :).

I was typing late at night. Sorry for that :)

(In reply to comment #0)
> Forwarding this bug from Ubuntu reporter Luk Moj:
> http://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/770354
> 
> [Problem]
> Seven of the key mappings for the cz keyboard are incorrect for this user's
> keyboard.  I don't know if it's a keyboard-specific issue or a problem with cz
> in general.
> 
> [Original Description]
> When I press certain keys, I expect I'll get the keys on the keyboard in my
> layout, I get bad ones instead though. Even when it is the right keystrokes
> that work well even in Windows and on Mac, even the symbols are printed on the
> keyboard. This needs to be patched. Problem is the symbols are mapped on
> different keys, some symbols have been duplicated. Maybe new keyboard layout
> should be made, some users sure used to this "buggy" layout. I made a new one
> where all errors I've found are already corrected. I attach new layout in the
> patchfile.
> 
> lsb_release is not relevant as this problem persists at least for 6 years in
> every distro I used (Ubuntu, Debian, Fedora, Linux Mint, etc...)
> 
> P.S.: The patchfile was made from:
> 
> /usr/share/X11/xkb/symbols/cz
> 
> Best regards
> Luk Moj
> 
> 174a175,198
> > 
> > partial alphanumeric_keys 
> > xkb_symbols "qwerty_common" {
> >  
> >     // This layout should work properly and it's goal is to represent actual
> >     // keyboard layout according to symbols printed on keys.
> >     // -----------------------------------------------------------------------
> >     // This layout was created in 2011 by Lukáš Mojžíš <lmojzis@grenames.cz>
> >     // Feel free to ask for further fixes to fully conform the original QWERTY
> >     // layout. Everybody makes mistakes. It is made for users that used to
> >     // use Czechia - qwerty on Windows or Mac OS and are a bit confused why
> >     // thez press something and ged another symbol, that they didn't expect :).
> >     
> >     include "cz(basic)"
> >     name[Group1]= "Czechia - qwerty, common";
> > 
> >     key <AB01>	{ [         z,          Z,       degree,         NoSymbol ] };
> >     key <AC10>	{ [     uring,   quotedbl,    semicolon,         NoSymbol ] };
> >     key <AD06>	{ [         y,          Y,     NoSymbol,         NoSymbol ] };
> >     key <AD11>	{ [    uacute,      slash,  bracketleft,        braceleft ] };
> >     key <AD12>	{ [parenright,  parenleft, bracketright,       braceright ] };
> >     key <AE09>	{ [    iacute,          9,    parenleft,       dead_acute ] };
> >     key <AE10>	{ [    eacute,          0,   parenright, dead_doubleacute ] };
> > };
> 
> --- 
> Architecture: amd64
> CompizPlugins:
> [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
> CompositorRunning: compiz
> DRM.card0.DP.1:
>  status: disconnected
>  enabled: disabled
>  dpms: Off
>  modes: 
>  edid-base64:
> DRM.card0.HDMI.A.1:
>  status: disconnected
>  enabled: disabled
>  dpms: Off
>  modes: 
>  edid-base64:
> DRM.card0.LVDS.1:
>  status: connected
>  enabled: enabled
>  dpms: On
>  modes: 1366x768
>  edid-base64:
> AP///////wANr3EVAAAAACQSAQOAIxN4Cgf1mldOhyYeUFQAAAABAQEBAQEBAQEBAQEBAQEBfh1WwlAAJjAfQUwAWMEQAAAYAAAA/gBOMTU2QjYtTDA0CiAgAAAA/gBDTU8KICAgICAgICAgAAAA/gBOMTU2QjYtTDA0CiAgAD0=
> DRM.card0.VGA.1:
>  status: disconnected
>  enabled: disabled
>  dpms: Off
>  modes: 
>  edid-base64:
> DistUpgraded: Fresh install
> DistroCodename: natty
> DistroRelease: Ubuntu 11.04
> DistroVariant: ubuntu
> DkmsStatus: virtualbox-ose, 4.0.4, 2.6.38-8-generic, x86_64: installed
> GraphicsCard:
>  Intel Corporation Core Processor Integrated Graphics Controller [8086:0046]
> (rev 18) (prog-if 00 [VGA controller])
>    Subsystem: Device [1b0a:00b9]
> InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
> MachineType: GIGABYTE i1520M
> Package: xkeyboard-config (not installed)
> ProcEnviron:
>  LANGUAGE=cs_CZ:en
>  LANG=cs_CZ.UTF-8ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-8-generic
> root=UUID=6118117d-1935-4975-851d-fcc23addbd48 ro quiet splash vt.handoff=7
> ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
> Renderer: Unknown
> Tags:  natty running-unity ubuntu compiz-0.9
> Uname: Linux 2.6.38-8-generic x86_64
> UpgradeStatus: No upgrade log present (probably fresh install)
> UserGroups: adm admin cdrom dialout libvirtd lpadmin plugdev sambashare
> dmi.bios.date: 07/09/2010
> dmi.bios.vendor: American Megatrends Inc.
> dmi.bios.version: Spring Peak 151D  0900
> dmi.board.asset.tag: To be filled by O.E.M.
> dmi.board.name: To be filled by O.E.M.
> dmi.board.vendor: To be filled by O.E.M.
> dmi.board.version: To be filled by O.E.M.
> dmi.chassis.asset.tag: To Be Filled By O.E.M.
> dmi.chassis.type: 10
> dmi.chassis.vendor: To Be Filled By O.E.M.
> dmi.chassis.version: To Be Filled By O.E.M.
> dmi.modalias:
> dmi:bvnAmericanMegatrendsInc.:bvrSpringPeak151D0900:bd07/09/2010:svnGIGABYTE:pni1520M:pvrTobefilledbyO.E.M.:rvnTobefilledbyO.E.M.:rnTobefilledbyO.E.M.:rvrTobefilledbyO.E.M.:cvnToBeFilledByO.E.M.:ct10:cvrToBeFilledByO.E.M.:
> dmi.product.name: i1520M
> dmi.product.version: To be filled by O.E.M.
> dmi.sys.vendor: GIGABYTE
> version.compiz: compiz 1:0.9.4+bzr20110415-0ubuntu2
> version.ia32-libs: ia32-libs 20090808ubuntu13
> version.libdrm2: libdrm2 2.4.23-1ubuntu6
> version.libgl1-mesa-dri: libgl1-mesa-dri 7.10.2-0ubuntu2
> version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
> version.libgl1-mesa-glx: libgl1-mesa-glx 7.10.2-0ubuntu2
> version.xserver-xorg: xserver-xorg 1:7.6+4ubuntu3
> version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.0-0ubuntu4
> version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.14.0-4ubuntu7
> version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau
> 1:0.0.16+git20110107+b795ca6e-0ubuntu7
Comment 7 Lukáš Mojžíš 2011-06-07 07:54:34 UTC
It is NOT keyboard-dependent - What I have is a generic keyboard that is usually put into notebooks. On desktop, the problem is same, so it is not really keyboard-dependent.
Comment 8 Sergey V. Udaltsov 2011-06-07 10:58:21 UTC
Are you sure you need separate new section qwerty_common? Could you patch the existing variant? Also, could you provide some reference so we would be sure your updated version is more correct?

Thanks
Comment 9 Lukáš Mojžíš 2011-06-07 13:30:50 UTC
I think yes, we need a separate layout, because MANY people using czech qwerty on linux are already comfortable with the bad one. I think we should provide an alternative layout OR patch the current layout AND name the bad one as qwerty-legacy etc.

I cannot provide any referrence, but you can personally boot up Windows or Mac and compare these two layouts with the linux one. As you can see, there is just a few modifications comparing to czech-qwertz. I think there are just swapped Z<->Y AND z<->y. I know we shouldn't copy everything from windows, but for me, it is really difficult to dual-boot vanilla linux and windows. These two layouts are just different.

I really think we should really provide an alternative layout, because newcomers from Windows and Mac would be confused and the current users would be as well confused if their layout will get modified.

I think we should at least provide some time to all current users using cz-qwerty on linux right now to get used to the correct layout.

Use google for terms "czech qwerty {windows,mac} keyboard" and "česká qwerty klávesnice {windows,mac}" and you should really see the difference, if you open keyboard preferrences on linux and show it. Then compare my modified layout with the pictures. It is better, isn't it?

(In reply to comment #8)
> Are you sure you need separate new section qwerty_common? Could you patch the
> existing variant? Also, could you provide some reference so we would be sure
> your updated version is more correct?
> 
> Thanks
Comment 10 Sergey V. Udaltsov 2011-06-07 13:34:28 UTC
Ok, the general policy is to have the default variant matching the expectections of majority. Since today the majority comes from Windows, there are all reasons to patch the default variant. Let's just do that.

If we get complains from unhappy users of the previous version, we can always add "legacy" variant, as you advised.

Could you provide a patch please?
Comment 11 Lukáš Mojžíš 2011-06-07 13:43:51 UTC
Sure, I hope I will have it done in less than half an hour. Please be patient.

(In reply to comment #10)
> Ok, the general policy is to have the default variant matching the
> expectections of majority. Since today the majority comes from Windows, there
> are all reasons to patch the default variant. Let's just do that.
> 
> If we get complains from unhappy users of the previous version, we can always
> add "legacy" variant, as you advised.
> 
> Could you provide a patch please?
Comment 12 Lukáš Mojžíš 2011-06-07 13:52:39 UTC
Created attachment 47689 [details] [review]
Patched file: /usr/share/X11/xkb/symbols/cz
Comment 13 Lukáš Mojžíš 2011-06-07 13:53:21 UTC
Patch done. Hope it will be fixed soon.
Comment 14 Sergey V. Udaltsov 2011-06-07 16:31:37 UTC
Comment on attachment 47689 [details] [review]
Patched file: /usr/share/X11/xkb/symbols/cz

The patch is in the invalid format. Please use "diff -u"
Comment 15 Lukáš Mojžíš 2011-06-08 07:04:30 UTC
Created attachment 47715 [details] [review]
Patched file: /usr/share/X11/xkb/symbols/cz
Comment 16 Sergey V. Udaltsov 2011-06-08 12:28:48 UTC
This time it is better. Even though it is not against git (even not against latest 2.3). Next time please submit the patches against the latest version.

Thanks for the contribution. If someone complains about broken layout, we'll reopen this bug
Comment 17 Petr Pisar 2011-10-05 13:57:57 UTC
(In reply to comment #15)
> Created an attachment (id=47715) [details]
> Patched file: /usr/share/X11/xkb/symbols/cz

Why is the change applied to qwerty variant instead of to cz(basic)? The cz(basic) is included from qwerty and it itself redefines keys you redefine with your patch any way.

Your changes in qwerty:

+    key <AB01>	{ [         z,          Z,       degree,         NoSymbol ] };
+    key <AC10>	{ [     uring,   quotedbl,    semicolon,         NoSymbol ] };
+    key <AD06>	{ [         y,          Y,     NoSymbol,         NoSymbol ] };
+    key <AD11>	{ [    uacute,      slash,  bracketleft,        braceleft ] };
+    key <AD12>	{ [parenright,  parenleft, bracketright,       braceright ] };
+    key <AE09>	{ [    iacute,          9,    parenleft,       dead_acute ] };
+    key <AE10>	{ [    eacute,          0,   parenright, dead_doubleacute ] };

The cz(basic):

     key <AB01>  { [        y,          Y,       degree,         NoSymbol ] };
     key <AC10>  { [    uring,   quotedbl,       dollar,         NoSymbol ] };
     key <AD06>  { [        z,          Z,     NoSymbol,         NoSymbol ] };
     key <AD11>  { [    uacute,      slash, bracketleft,         division ] };
     key <AD12>  { [parenright,  parenleft,bracketright,         multiply ] };
     key <AE09>  { [    iacute,         9,    braceleft,       dead_acute ] };
     key <AE10>  { [    eacute,         0,   braceright, dead_doubleacute ] };

In other words, you should apply your changes to cs(basic) and keep qwerty  exchanging Z/Y only.
Comment 18 Lukáš Mojžíš 2011-10-05 14:10:00 UTC
Because they're NOT the same.

Sym|    QWERTY    | QWERTZ
---+--------------+--------
 @ | RAlt-2       | RAlt-V
 # | RAlt-3       | RAlt-X
 & | RAlt-7       | Ralt-C
 \ | RAlt-¨       | RAlt-Q
 | | RAlt-Shift-¨ | RAlt-W

That's why I patched only QWERTY and not QWERTZ

Have a nice day.

(In reply to comment #17)
Comment 19 Lukáš Mojžíš 2011-10-05 14:12:39 UTC
Created attachment 52023 [details] [review]
Patched file: /usr/share/X11/xkb/symbols/cz

Forgot to add colon on one key. This is the updated patch.
Comment 20 Sergey V. Udaltsov 2011-10-08 14:40:29 UTC
Lukas, your patch does not apply to the current git. Could you please fix that?
Comment 21 Lukáš Mojžíš 2011-10-09 04:19:35 UTC
(In reply to comment #20)
> Lukas, your patch does not apply to the current git. Could you please fix that?

How to obtain it, please?
Comment 22 Sergey V. Udaltsov 2011-10-09 05:04:24 UTC
git clone git://anongit.freedesktop.org/git/xkeyboard-config
Comment 23 Lukáš Mojžíš 2011-10-09 08:24:21 UTC
Created attachment 52141 [details] [review]
Patch for version 2011-10-09 17:15:17.470118542

Seems like my corrected layout was already in git. I just patched 2 keys I forgot to modify.
Comment 24 Sergey V. Udaltsov 2011-10-09 15:02:34 UTC
thanks, committed. Next time could you please use "diff -u"


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.