Bug 88853 - angle bracket keysym unicode inconsistency
Summary: angle bracket keysym unicode inconsistency
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xlib (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 21:26 UTC by Mattias Engdegård
Modified: 2018-08-10 20:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Mattias Engdegård 2015-01-28 21:26:42 UTC
It is unclear what Unicode characters correspond to the keysyms

  leftanglebracket (0xabc)
  rightanglebracket (0xabe)

XLookupString generates

  U+2039 SINGLE LEFT-POINTING ANGLE QUOTATION MARK
  U+203a SINGLE RIGHT-POINTING ANGLE QUOTATION MARK

which comes from a table in src/xlibi18n/imKStoUCS.c, and this controls the behaviour of most applications such as XTerm (but not Emacs, see below).

In contrast, the keysymdef.h header has the definitions:

#define XK_leftanglebracket              0x0abc  /*(U+27E8 MATHEMATICAL LEFT ANGLE BRACKET)*/
#define XK_rightanglebracket             0x0abe  /*(U+27E9 MATHEMATICAL RIGHT ANGLE BRACKET)*/

The keysyms.xml file has the entries

    <row>
      <entry>#x0ABC</entry>
      <entry>-</entry>
      <entry>LEFT ANGLE BRACKET</entry>
      <entry>Publish</entry>
    </row>

    <row>
      <entry>#x0ABE</entry>
      <entry>-</entry>
      <entry>RIGHT ANGLE BRACKET</entry>
      <entry>Publish</entry>
    </row>

with a "-" in the column where the Unicode number should be.

Emacs translates these keys to

  U+2329 LEFT-POINTING ANGLE BRACKET
  U+232a RIGHT-POINTING ANGLE BRACKET

which is wrong in any case since those characters are deprecated.

Most likely it's the XLib implementation (U+2039, U+203A) that is right, since these keysyms belong to the "publishing" group and not the "technical" or "mathematical" ones. Against that is the fact that the keysyms are called "brackets", not quotes, but perhaps that is reading too much in their names.

The keysyms are admittedly rarely seen on actual keycaps.
Comment 1 GitLab Migration User 2018-08-10 20:10:55 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/lib/libx11/issues/40.


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.