| Summary: | bogus entries in keyboards table | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Marja Van Waes <marja11> |
| Component: | RPM Packages | Assignee: | Marja Van Waes <marja11> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | mageia, pablo, thierry.vignaud |
| Version: | Cauldron | Keywords: | 6sta1, PATCH |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | drakx-kbd-mouse-x11 | CVE: | |
| Status comment: | |||
|
Description
Marja Van Waes
2016-07-05 13:29:37 CEST
I think your guess is right and than on other hands, we'll have a hard time find a tester. So just commit your changes and close this BR. That'll fix at least a known error.
Thierry Vignaud
2016-07-05 13:46:50 CEST
Keywords:
(none) =>
PATCH
Thierry Vignaud
2016-07-05 13:46:58 CEST
Assignee:
bugsquad =>
marja11 Marja, you might also find /usr/share/X11/xkb/rules/xorg.lst helpful - it lists all the valid keyboard layout and variant combinations in a fairly readable way. There is a check() subroutine in the keyboard.pm module which looks to be designed to validate the keyboards table, but it has clearly not been used for a while, as it still refers to /usr/lib/X11/xkb/rules/xfree86.lst. I did try fixing that, but there are other files it tries to read that are also no longer present and don't have an obvious replacement. (In reply to Thierry Vignaud from comment #1) > So just commit your changes and close this BR. Will do, sorry for having feared to break something that was already broken. (In reply to Martin Whitaker from comment #2) > Marja, you might also find /usr/share/X11/xkb/rules/xorg.lst helpful - it > lists all the valid keyboard layout and variant combinations in a fairly > readable way. Thanks, I didn't know that file. So instead of "ma(arabic)" I should have proposed "ma". And to put on top of yours & Pablo's patch for bug 14476, I understand now "fr,am,ara", ",tifinagh,azerty" should become "ma,ma,ma", "french,tifinagh," and "fr,am,ara", ",tifinagh-phonetic,azerty" should become "ma,ma,ma", "french,tifinagh-phonetic," Is that correct, or is there no need to repeat "ma" 3 times? > > There is a check() subroutine in the keyboard.pm module which looks to be > designed to validate the keyboards table, but it has clearly not been used > for a while, as it still refers to /usr/lib/X11/xkb/rules/xfree86.lst. I did > try fixing that, but there are other files it tries to read that are also no > longer present and don't have an obvious replacement. Thanks for your efforts. I understand that even for people who know Perl, our code is still a labyrinth ;-) CC:
(none) =>
pablo (In reply to Marja van Waes from comment #3) > "ma,ma,ma", "french,tifinagh-phonetic," > > Is that correct, or is there no need to repeat "ma" 3 times? > I should have looked at attachment 8131 [details] "srp,srp", "basic,latin", So, yes, repeating is apparently needed :-) hello, > "fr,am,ara", ",tifinagh,azerty" > should become > "ma,ma,ma", "french,tifinagh," fr(basic) and me(french) are the same (ma(french) just includes fr(basic)) same for ar(azerty) and ma(arabic). So, using one or the other is the same. However, I find "fr" and "ara(azerty)" easier to understand > Is that correct, or is there no need to repeat "ma" 3 times? There are indeed *3* keyboard layouts stacked, one in latin letters, one in tifinagh letters, one in arabic letters. > > There is a check() subroutine in the keyboard.pm module which looks to be > > designed to validate the keyboards table, but it has clearly not been used > > for a while, a quite simple check would be try to load the keyboard layout (that is, do a shell call to: setxkbmap "$layout" -option "$option" if the return code is a failure, display an error message telling the $layout $option combination is broken. at the end of trying all layouts the original layout has to be loaded (the current values can be retrieve with: "setxkbmap -query" (In reply to Pablo Saratxaga from comment #5) > hello, > > > "fr,am,ara", ",tifinagh,azerty" > > should become > > "ma,ma,ma", "french,tifinagh," > > fr(basic) and me(french) are the same (ma(french) just includes fr(basic)) > same for ar(azerty) and ma(arabic). > > So, using one or the other is the same. > However, I find "fr" and "ara(azerty)" easier to understand I agree that they are easier to understand. I had seen the includes, but remembered when we had the ⬠added. If Morocco would decide to have a dedicated symbol for their currency, it would then end up in the ma layouts. However, we can still adjust it _if_ that ever happens at all, so let's just do what you prefer, and only switch from "am" to "ma" for tifinagh. commit 6bc379e2f3884590878644bd7b92a6a2f17e846b
Author: Marja van Waes <marja@...>
Date: Sat Jul 9 22:34:16 2016 +0200
Last fix for two bogus keyboards table entries (mga#18862)
o after Pablo already fixed a bunch of them.
---
Commit Link:
http://gitweb.mageia.org/software/drakx-kbd-mouse-x11/commit/?id=6bc379e2f3884590878644bd7b92a6a2f17e846b
fixed in git Resolution:
(none) =>
FIXED |