[prev in list] [next in list] [prev in thread] [next in thread]
List: xfree-i18n
Subject: [I18n]keysyms: XK_Greek_SIGMA off by one
From: Markus Kuhn <Markus.Kuhn () cl ! cam ! ac ! uk>
Date: 2001-04-27 18:32:57
[Download RAW message or body]
VERSION:
R6.6 and older
CLIENT MACHINE and OPERATING SYSTEM:
DISPLAY TYPE:
WINDOW MANAGER:
COMPILER:
irrelevant
AREA:
Xlib
SYNOPSIS:
Wrong keysym code for XK_Greek_SIGMA in include/keysymdef.h
DESCRIPTION:
include/keysymdef.h says
#define XK_Greek_SIGMA 0x7d2
but http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-7.TXT
says
0xD3 0x03A3 # GREEK CAPITAL LETTER SIGMA
therefore, XK_Greek_SIGMA really ought to have been at 0x7d3,
not 0x7d2. ISO 8859 keysyms were supposed to show the correct
code position in ISO 8859 in the lower byte.
Another reference (if you don't trust the Unicode table):
http://www.itscj.ipsj.or.jp/ISO-IR/126.pdf
also shows that 0xd2 is unused in ISO 8859-7 and 0xd3 is capital sigma
REPEAT BY:
Read the spec.
SAMPLE FIX:
The proper fix would be to fix the keysym. There might be someone
mumbling about backwards compatibility though, not sure. At least the
keysym->UCS table should map both 0x7d2 and 0x7d3 to U+03A3 (just like
both 0x13a4 and 0x20ac should map to U+20AC) to allow for a future fix
towards ISO 8859 compatibility. At least document in a comment that the
value is wrong.
Markus
--
Markus G. Kuhn, Computer Laboratory, University of Cambridge, UK
Email: mkuhn at acm.org, WWW: <http://www.cl.cam.ac.uk/~mgk25/>
_______________________________________________
I18n mailing list
I18n@XFree86.Org
http://XFree86.Org/mailman/listinfo/i18n
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic