Bug 365 - us_intl layout maps apostrophe and quotedbl incorrectly
Summary: us_intl layout maps apostrophe and quotedbl incorrectly
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Keyboard (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
Depends on:
Reported: 2004-03-23 11:19 UTC by Konstantin Ryabitsev
Modified: 2005-09-13 10:59 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Description Konstantin Ryabitsev 2004-03-23 11:19:08 UTC
(Not sure if the component is selected correctly, please reassign to where it
should be).

It seems like all us_intl layouts in X are incorrect. For key 48
(apostrophe-quotedbl) it lists almost everywhere this order:

dead_acute dead_diaeresis apostrophe quotedbl

The correct order is:

apostrophe quotedbl dead_acute dead_diaeresis

You can verify here, for example:

The chart clearly shows that dead_acute and dead_diaeresis are
supposed to be invoked with AltGr and AltGr-Shift. It doesn't really make much
sense for it to be otherwise, because dead keys are suddenly in the primary
place and typing a double quote becomes next to impossible without an emacs-ish
hand cramp. :)
Comment 1 Alexandre Oliva 2004-03-23 13:31:54 UTC
Err...  Dead keys enabled by default is exactly the desired behavior for
international users, at least on languages that do use accents commonly.  Just
imagine having to type `É a função do órgão' if dead keys weren't enabled by
default.  You wouldn't take your fingers *off* the AltGR key.  us_intl has been
like this forever and, AFAICT, the document you referenced actually describes
the current behavior as far as dead keys are concerned.  Please don't break it.
 Introduce a new layout, if you must, but leave this one alone.
Comment 2 Konstantin Ryabitsev 2004-03-23 13:46:10 UTC
Well, there are plenty of other deadkeys in us_intl that have to be invoked with
shift, so I don't see how this is an argument, except for "it's been like this
for a long time, so let's just keep it this way." I was just noting that this
seems to be different to other us_intl layouts, and very inconvenient for things
like writing code.
Comment 3 Ivan Pascal 2004-03-23 21:39:31 UTC
Since the document you refer to isn't quite clear for me I just switched on the 
US International keyboard layout in my MS Windows 2000 box and tried to print.

The key AC11 (apostrophe/quotedubl) pressed alone outputs nothing
AC11 and 'a'  prints á (a with acute)
AC11 and ' '  prints ' (apostrophe)
Apparently it behaves as dead_acute.

The same with Shift+AC11
Shift+AC11 alone:    nothing
Shift+AC11 and 'a' : ä (a with diaeresis)
Shift+AC11 and ' ' : " (double quote)
Apparently it is dead_diaeresis.

The AltGr+AC11 combination really differs from X's one.
AltGr+AC11 prints ´ (acute)
AltGr+Shift+AC11 prints ¨ (diaeresis)
But I don't think it's good to follow MS standard here. These signs (acute and 
diaeresis) are rarely used alone and I think that using AltGr+AC11 combinations 
as shortcuts for apostrophe and quotedbl is more useful.  Of course it's my 
opinion only and if users insist on these symbols should be exactly as in MS 
keymap they should be changed. But it has no relation to first two (dead) 
symbols of that key.

I guess what inconvenience you faced.  In MS International layout the double 
pressing of AC11 key ouputs two apostrophes together (and correspondly double 
Shift+AC11 produces two 'double quote').  But it is a result of composing and 
should be fixed in composing rules.
Unfortunately in X Window a composing rules set is not a part of keyboard 
layout and the same rules are used with different keyboard maps.  It means that 
the rule can't be changed for us_intl only and such changes can confuse other 
On the other hand IIRC in XFree the double dead_acute produces acute and 
double_diaeresis produces diaeresis.  I.e. what is really swapped in X are the 
double pressing of AC11 key and the combination of AltGr+AC11:
In MS Windows
AC11,AC11 : two apostrophes
AltGr+AC11 : acute
in X
AC11,AC11 : acute
AltGr+AC11 : apostrophe

Thus that is a thing that could be 'swaped back'.  But pleas don't touch the 
first two symbols of that key.  They are exactly as in MS Windows.

Comment 4 Sergey V. Udaltsov 2004-09-10 19:07:57 UTC
fixed in xkeyboard-config
Comment 5 Chris Lee 2005-09-14 03:59:21 UTC
Looks like the bug status wasn't updated when this was fixed. Closing.

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.