From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5939 invoked by alias); 16 Aug 2011 13:10:42 -0000 Received: (qmail 5455 invoked by uid 22791); 16 Aug 2011 13:10:41 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,TW_KB,TW_XK X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Aug 2011 13:10:27 +0000 Received: from 213-152-38-55.dsl.eclipse.net.uk (HELO [192.168.0.8]) ([213.152.38.55]) by smtpout.karoo.kcom.com with ESMTP; 16 Aug 2011 14:10:25 +0100 Message-ID: <4E4A6C4E.8010109@dronecode.org.uk> Date: Tue, 16 Aug 2011 13:10:00 -0000 From: Jon TURNEY Reply-To: cygwin-xfree User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110808 Thunderbird/6.0 MIME-Version: 1.0 To: cygwin-xfree@cygwin.com CC: Paul Maier Subject: Re: AW: 'de' keyboard layout issues (Re: AW: AW: AltGr key mostly fires an additional CONTROL key) References: <006301cc4fb3$2696d060$73c47120$@de> <4E36BED6.3070102@dronecode.org.uk> <000001cc5085$6b711fb0$42535f10$@de> <4E3949E0.6090306@dronecode.org.uk> <000001cc524d$3b4db6d0$b1e92470$@de> <4E40016D.2080801@dronecode.org.uk> <001c01cc5621$4ae653e0$e0b2fba0$@de> <4E4275B4.9090906@dronecode.org.uk> <000901cc58bb$d66bcf20$83436d60$@de> In-Reply-To: <000901cc58bb$d66bcf20$83436d60$@de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com X-SW-Source: 2011-08/txt/msg00040.txt.bz2 On 12/08/2011 07:48, Paul Maier wrote: >>> 1. Tilde sign >>> ------------- >>> >>>>> Tilde sign (~) should be a normal (not a blind) key. >>>>> In Windows I hit AltGr+"+" to get ~, in XWin I need to type AltGr+"+" then space >> to >>>> get a ~. >>>>> See attachment for the initial XWin xmodmap -pke table. >>>>> Possible xmodmap correction (works fine): >>>>> keycode 35 = plus asterisk plus asterisk asciitilde >>>> >>>> This is a can of worms I don't want to open :-) >> >> In case it wasn't clear, the can of worms here is ensuring that XWin selects a >> keyboard layout which matches the Windows one in all cases. >> >>>> At the moment, in the 'de' layout, the tilde deadkey will add a macron >>>> diacritic, e.g. AltGr + "+" + a = ã. >> >> Obviously I meant to write 'tilde diacritic' here :-) >> >>>> I really lack the expertise to determine if this is a bug in xkeyboard-config >>>> (if this german keyboard behavior is something no german keyboard user would >>>> ever expect or want) >>>> >>>> The xkb configurations we use come from the xkeyboard-config project, and >>>> aren't trying to be identical to Windows, but to conform to the appropriate >>>> national standards and user expectations. >>>> >>>> However, I can see in the case of XWin this is problematic, as it will be >>>> confusing to switch between X and normal Windows windows which have different >>>> keyboard behavior. >>> >>> I did some research: German computer keyboard layout is defined in DIN 2137-2. >>> And to my surprise I found, that tilde is a dead key there. >>> That means, that the xkeyboard-config project perfectly matches the DIN norm, >>> while Windows (where the key is not dead) does not match it. >>> So I understand, that you may want to stick to the DIN norm. >> >> Usability comes before standards compliance :-) >> >>> A workaround for guys like me, who want the XWin keyboard work the same like Windows, >>> is possible with xmodmap, so yeah ... let's close this point. >> >> Doing some more research, I found an upstream bug [1], which seems to make the >> opposite claim about DIN 2137-2(1998) >> >> I also discovered that the nodeadkeys variant of the de layout was at one >> stage the default used by XWin when a German Windows keyboard layout was >> reported [2] >> >> Maybe the 'correct' solution is possibly to create a 'nodeadtilde' variant of >> the de layout in xkeyboard-config, and then to arrange for that to be the >> default used by XWin when Windows reports a German keyboard layout. >> >> Perhaps you'd like to try the attached patch to /usr/share/X11/xkb/symbols/de, >> which adds a nodeadtilde variant, which you can then select with -xkbvariant >> nodeadtilde. >> >> Or perhaps the correct solution is to use one of the existing deadgraveacute >> or deadacute variants as the XWin default when Windows reports a German >> keyboard layout? >> >> [1] https://bugs.freedesktop.org/show_bug.cgi?id=9752 >> [2] http://cygwin.com/ml/cygwin-xfree/2003-05/msg00495.html > > > Hi Jon, > > thanks for your work. > I myself have made 2 patches and include them in this mail: > > - One patch for files /usr/share/x11/locale/iso8859-1/Compose and > /usr/share/x11/locale/iso8859-15/Compose. > > - My patch for the "de" file: > de.patch.patch patches your patch, whereas de.patch is the same thing > patching the original de file. > > Here is the explanation (I'm referring to the original pargraph numbering): > > 1. Tilde sign > ------------- > > Yes, file "de" patched with your de.patch and XWin invoked with "-xkbvariant nodeadtilde" > results in a German Windows keyboard (regarding the tilde). > > I did just a renaming of the Group description there to match the pattern of the other > xkbvariants. I'd really appreciate it if you could re-open the upstream bug [1] for the tilde issue, ideally with a suitable patch and referencing this discussion. I'd also suggest you send your other suggested changes to the xkb list [2], as I'm not really qualified to review them. [1] https://bugs.freedesktop.org/show_bug.cgi?id=9752 [2] http://www.freedesktop.org/wiki/Software/XKeyboardConfig/Development > 3. Non breaking space (NBSP) on ALT+space > ----------------------------------------- > > In my patch I provide a xkbvariant "windowscompatible", that puts nobreakspace onto Alt+Space, > like Windows has it. > > Furthermore, I added a line to the default German layout. > It doesn't change the behaviour of the space key with shift, Alt, AltGr, > but (and that's the reason why I've put it there), it makes the space key > xmodmap redefinable in regard to the Alt key. > Without that patch the key definition has not enough numbers of layers, > resulting in that xmodmap discards a change of AltGr layer of space. It looks like the mysterious voodoo to achieve this is adding '-xkboptions nbsp:level3' Perhaps that should be set by XWin by default if that is how Windows behaves for all keyboard layouts (so that we don't get different behavior between XWin windows and other Windows applications) > 5. New dead acute issue > ----------------------- > > Sorry to say, I found another difference while testing. > This is, what the Compose.patch is for. > > In Windows, all blind keys followed by a space result in that character. > Same in XWin, but with one exception: > dead-´ plus space gives ' instead of ´. > > Please check out my patch for that. This patch makes sense to me, but doesn't seem to go far enough. Since the compose sequences are selected by the locale, this fixes things if LANG=de_DE.iso8859-1 or LANG=de_DE.iso8859-15, but not if LANG=de_DE.UTF-8. I'll try to take another look when I'm back from my holiday :-) -- Jon TURNEY Volunteer Cygwin/X X Server maintainer -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/