Bug#286581: xlibs: Error in key definition for Dutch keyboards
Hello Branden, On Saturday 26 March 2005 07:18, Branden Robinson wrote: > I've attached a patch. Because I am unable to evaluate its correctness > (not having a Dutch keyboard), I ask you to please evaluate it. You > can apply it to your running system by applying it as follows: Thanks very much for creating the patch. On testing (after borrowing a Dutch keyboard to test with) however, I discovered there was a lot more wrong with the X definitions for Dutch keyboards. The additional problems were: - accent keys are expected to work as deadkeys; - therefore, having accented characters defined (e.g. AltGr-a for รก) is superfluous; - EuroSign missing; - a lot of characters were defined more than once (under different keys); - some characters that were defined are not supported in iso-8859-15, the preferred encoding for Dutch. I have therefore created two new files: 1 /etc/X11/xkb/symbols/nl .I have kept this file basic: only the characters actually printed on the keyboard (with the 'yen' as only exception) .This file has mainly been cleaned up; it is a subset of the second file (there are no differences in the characters that _are_ defined) 2 /etc/X11/xkb/symbols/pc/nl .This file is a bit more elaborate: it supports almost all "extra" characters available in the iso-8859-15 encoding .This file is a complete rewrite and no longer depends on the definition for the 'latin' keymap I have extensively tested the _second_ file as that was the one used on the command 'setxkbmap nl'. I have not been able to find out how/when/where the _first_ file is used, but have of course reviewed the changes carefully. The following link shows the new keymap definition: http://home.tiscali.nl/isildur/debian/xkbd_nl.html A few remarks on the new definition: - The ~ key is not a deadkey because the tilde is rarely (if ever) used as an accent and because it _is_ used very often in Linux. - There are some characters that are not defined in iso-8859-15. This is because Dutch keyboards were originally developed for iso-8859-1 which does have these characters. Because of the Euro iso-8859-15 is now preferred. Also, these keys _do_ work under X11 (provided you save your document in UTF encoding). - Maybe it would be useful to create a "nodeadkeys" variant of this keymap, but I have left that for later. A diff from the old definitions is attached as well as a tarbal with the new files. I hope you do not find this patch too invasive. I've tried making a patch with only the most essential changes, but the result was unsatisfactory and even that patch got quite large. If you can give me some hints on how the file /etc/X11/xkb/symbols/nl is used, I'd be more than happy to test that as well (if possible). Cheers, Frans diff -ur symbols.orig/nl symbols/nl --- symbols.orig/nl 2005-04-03 22:58:40.0 +0200 +++ symbols/nl 2005-04-03 22:59:16.0 +0200 @@ -3,12 +3,13 @@ // converted from the nl-latin.map of the Linux kbd package by // Pablo Saratxaga <[EMAIL PROTECTED]> +// Revised by Frans Pop <[EMAIL PROTECTED]>, April 2005 default partial alphanumeric_keys xkb_symbols "basic" { // Describes the differences between a very simple US/ASCII -// keyboard and a very simple Nederland keyboard +// keyboard and a very simple Dutch keyboard // Alphanumeric section name[Group1]= "Nederland"; @@ -22,7 +23,7 @@ key { [ 4, dollar ], [ onequarter ] }; key { [ 5, percent ], - [ EuroSign ] }; + [ onehalf ] }; key { [ 6, ampersand ], [ threequarters ] }; key { [ 7, underscore ], @@ -34,59 +35,40 @@ key { [ 0, apostrophe ] }; key { [ slash, question ], [ backslash ] }; -key { [degree, dead_tilde ], - [ dead_cedilla ] }; +key { [degree, asciitilde ], + [ dead_cedilla, dead_tilde ] }; key { [ e, E ], - [eacute, Eacute ] }; + [ EuroSign ] }; key { [ r, R ], - [ paragraph, registered ] }; -key { [ t, T ], - [ thorn, THORN ] }; + [ paragraph ] }; key { [ y, Y ], - [ ydiaeresis, yen ] }; -key { [ u, U ], - [ udiaeresis, Udiaeresis ] }; -key { [ i, I ], - [ idiaeresis, Idiaeresis ] }; -key { [ o, O ], - [ograve, Ograve ] }; -key { [ p, P ], - [ paragraph ] }; -key { [ dead_diaeresis, dead_tilde ], - [ asciitilde, asciicircum ] }; + [ yen ] }; +key { [ dead_diaeresis, dead_circumflex ], + [ asciicircum ] }; key { [ asterisk, bar ] }; -key { [ a, A ], - [aacute, Aacute ] }; key { [ s, S ], [ssharp ] }; -key { [ d, D ], - [ eth, ETH ] }; -key { [ f, F ], - [ o
Bug#286581: Processed: Bug#286581: xlibs: Error in key definition for Dutch keyboards
On Sat, Mar 26, 2005 at 01:18:06AM -0500, Branden Robinson wrote: > I've attached a patch. Because I am unable to evaluate its correctness > (not having a Dutch keyboard), I ask you to please evaluate it. You can > apply it to your running system by applying it as follows: > > cd /etc/X11/xkb && patch -p3 > Use "setxkbmap nl" or restart the X server to make the change take effect. I am a master of forgetting to attach attachments. :( -- G. Branden Robinson| Measure with micrometer, Debian GNU/Linux | mark with chalk, [EMAIL PROTECTED] | cut with axe, http://people.debian.org/~branden/ | hope like hell. Swap left and right brackets on Dutch keyboard layouts, per Frans Pop and http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/nls/rbagslayouts.htm >. See Debian #286581. diff -urN xc/programs/xkbcomp/symbols~/nl xc/programs/xkbcomp/symbols/nl --- xc/programs/xkbcomp/symbols~/nl 2002-06-04 17:50:58.0 -0500 +++ xc/programs/xkbcomp/symbols/nl 2005-03-26 01:12:46.576556094 -0500 @@ -85,7 +85,7 @@ [ periodcentered, guillemotright ] }; key { [ minus,equal ], [hyphen ] }; -key { [ bracketleft, bracketright], +key { [ bracketright, bracketleft ], [ bar ] }; // End alphanumeric section diff -urN xc/programs/xkbcomp/symbols~/pc/nl xc/programs/xkbcomp/symbols/pc/nl --- xc/programs/xkbcomp/symbols~/pc/nl 2005-03-26 01:05:49.89887 -0500 +++ xc/programs/xkbcomp/symbols/pc/nl 2005-03-26 01:13:22.284529156 -0500 @@ -47,7 +47,7 @@ key { [period, colon, periodcentered, guillemotright ] }; key { [ minus, equal, hyphen, dead_abovedot] }; -key { [bracketleft, bracketright, bar,brokenbar ] }; +key { [bracketright, bracketleft, bar,brokenbar ] }; include "level3(ralt_switch)" }; signature.asc Description: Digital signature
Bug#286581: Processed: Bug#286581: xlibs: Error in key definition for Dutch keyboards
severity 286581 normal tag 286581 + moreinfo retitle 286581 xlibs: left and right brackets swapped on Dutch (nl) keyboards thanks On Mon, Dec 20, 2004 at 03:48:13PM -0800, Debian Bug Tracking System wrote: > Processing commands for [EMAIL PROTECTED]: > > > severity 286581 minor > Bug#286581: xlibs: Error in key definition for Dutch keyboards > Severity set to `minor'. No, "normal" was the correct severity for this, in my opinion. I do believe people's keyboards need to work correctly. :) I've attached a patch. Because I am unable to evaluate its correctness (not having a Dutch keyboard), I ask you to please evaluate it. You can apply it to your running system by applying it as follows: cd /etc/X11/xkb && patch -p3 http://people.debian.org/~branden/ | -- Noam Chomsky signature.asc Description: Digital signature
Processed: Re: Processed: Bug#286581: xlibs: Error in key definition for Dutch keyboards
Processing commands for [EMAIL PROTECTED]: > severity 286581 normal Bug#286581: xlibs: Error in key definition for Dutch keyboards Severity set to `normal'. > tag 286581 + moreinfo Bug#286581: xlibs: Error in key definition for Dutch keyboards Tags were: l10n Tags added: moreinfo > retitle 286581 xlibs: left and right brackets swapped on Dutch (nl) keyboards Bug#286581: xlibs: Error in key definition for Dutch keyboards Changed Bug title. > thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Processed: Bug#286581: xlibs: Error in key definition for Dutch keyboards
Processing commands for [EMAIL PROTECTED]: > severity 286581 minor Bug#286581: xlibs: Error in key definition for Dutch keyboards Severity set to `minor'. > thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Bug#286581: xlibs: Error in key definition for Dutch keyboards
Package: xlibs Version: 4.3.0.dfsg.1-8 Severity: normal Tags: l10n Yesterday I created a new keyboard layout for console-data for keyboards with a Dutch keymap (see #286401). Denis Barbier checked my layout against the one for X and noticed an inconsistency in de definition for keycode 86. It seems that bracketleft and bracketright are switched in the definition for X: 86 unshifted should be ] 86 shifted should be [ On Monday 20 December 2004 23:41, Denis Barbier wrote: > On Mon, Dec 20, 2004 at 11:18:08PM +0100, Frans Pop wrote: > > On Monday 20 December 2004 22:58, Denis Barbier wrote: > > > Your keymap looks good, and it seems that X keyboard definition > > > switches brakcetleft and bracketright, can you please check so > > > that > > > this can also be fixed? > > > > ] is a normal keypress, [ is with shift (unlogical but true), so my > > definition is correct. > > See also: > > http://publib.boulder.ibm.com/iseries/v5r2/ic2924/index.htm?info/nls/rbagslayouts.htm > > I trust you, but please file a bugreport against xlibs so that other > interested people may give comments. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.8-10.0412-2 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)