Hi David,

The attached patch changes a controversial mapping of the JIS X 0208
reverse solidus to Unicode.  The original tables (derived from tables
provided by the Unicode consortium) mapped this character to the good
old ASCII backslash (U+005C); according to Tomohiro Kubota, this is
not what Japanese users expect, preferring it to be mapped to the
compatibility character U+FF3C FULLWIDTH REVERSE SOLIDUS instead.

Jungshik Shin confirms that this is the desired behaviour.

Regards,

                                        Juliusz

Index: xc/lib/X11/lcUniConv/jisx0208.h
===================================================================
RCS file: /cvs/xc/lib/X11/lcUniConv/jisx0208.h,v
retrieving revision 1.4
diff -c -r1.4 jisx0208.h
*** xc/lib/X11/lcUniConv/jisx0208.h	2001/08/09 19:14:08	1.4
--- xc/lib/X11/lcUniConv/jisx0208.h	2001/10/26 16:09:36
***************
*** 9,15 ****
    0x3000, 0x3001, 0x3002, 0xff0c, 0xff0e, 0x30fb, 0xff1a, 0xff1b,
    0xff1f, 0xff01, 0x309b, 0x309c, 0x00b4, 0xff40, 0x00a8, 0xff3e,
    0xffe3, 0xff3f, 0x30fd, 0x30fe, 0x309d, 0x309e, 0x3003, 0x4edd,
!   0x3005, 0x3006, 0x3007, 0x30fc, 0x2015, 0x2010, 0xff0f, 0x005c,
    0x301c, 0x2016, 0xff5c, 0x2026, 0x2025, 0x2018, 0x2019, 0x201c,
    0x201d, 0xff08, 0xff09, 0x3014, 0x3015, 0xff3b, 0xff3d, 0xff5b,
    0xff5d, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e,
--- 9,15 ----
    0x3000, 0x3001, 0x3002, 0xff0c, 0xff0e, 0x30fb, 0xff1a, 0xff1b,
    0xff1f, 0xff01, 0x309b, 0x309c, 0x00b4, 0xff40, 0x00a8, 0xff3e,
    0xffe3, 0xff3f, 0x30fd, 0x30fe, 0x309d, 0x309e, 0x3003, 0x4edd,
!   0x3005, 0x3006, 0x3007, 0x30fc, 0x2015, 0x2010, 0xff0f, 0xff3c,
    0x301c, 0x2016, 0xff5c, 0x2026, 0x2025, 0x2018, 0x2019, 0x201c,
    0x201d, 0xff08, 0xff09, 0x3014, 0x3015, 0xff3b, 0xff3d, 0xff5b,
    0xff5d, 0x3008, 0x3009, 0x300a, 0x300b, 0x300c, 0x300d, 0x300e,
Index: xc/fonts/encodings/large/jisx0208.1983-0.enc
===================================================================
RCS file: /cvs/xc/fonts/encodings/large/jisx0208.1983-0.enc,v
retrieving revision 1.1
diff -c -r1.1 jisx0208.1983-0.enc
*** xc/fonts/encodings/large/jisx0208.1983-0.enc	1999/05/30 02:27:56	1.1
--- xc/fonts/encodings/large/jisx0208.1983-0.enc	2001/10/26 16:09:39
***************
*** 1,5 ****
--- 1,6 ----
  STARTENCODING jisx0208.1983-0
  SIZE 0x75 0x80
+ FIRSTINDEX 0x20 0x20
  STARTMAPPING unicode
  UNDEFINE 0x00 0x747F
  0x2121  0x2123  0x3000
***************
*** 25,31 ****
  0x213D  0x2014
  0x213E  0x2010
  0x213F  0xFF0F
! 0x2140  0x005C
  0x2141  0x301C
  0x2142  0x2016
  0x2143  0xFF5C
--- 26,32 ----
  0x213D  0x2014
  0x213E  0x2010
  0x213F  0xFF0F
! 0x2140  0xFF3C
  0x2141  0x301C
  0x2142  0x2016
  0x2143  0xFF5C
Index: xc/fonts/encodings/large/jisx0208.1990-0.enc
===================================================================
RCS file: /cvs/xc/fonts/encodings/large/jisx0208.1990-0.enc,v
retrieving revision 1.1
diff -c -r1.1 jisx0208.1990-0.enc
*** xc/fonts/encodings/large/jisx0208.1990-0.enc	1999/05/30 02:27:56	1.1
--- xc/fonts/encodings/large/jisx0208.1990-0.enc	2001/10/26 16:09:42
***************
*** 2,7 ****
--- 2,8 ----
  # This file is partly derived from data provided by the Unicode Consortium
  # Original data Copyright (c) 1991-1994 Unicode, Inc.
  SIZE 0x75 0x80
+ FIRSTINDEX 0x20 0x20
  STARTMAPPING unicode
  # override default identity mapping
  UNDEFINE 0x0000 0x747F
***************
*** 36,42 ****
  0x213D	0x2015	# HORIZONTAL BAR
  0x213E	0x2010	# HYPHEN
  0x213F	0xFF0F	# FULLWIDTH SOLIDUS
! 0x2140	0x005C	# REVERSE SOLIDUS
  0x2141	0x301C	# WAVE DASH
  0x2142	0x2016	# DOUBLE VERTICAL LINE
  0x2143	0xFF5C	# FULLWIDTH VERTICAL LINE
--- 37,43 ----
  0x213D	0x2015	# HORIZONTAL BAR
  0x213E	0x2010	# HYPHEN
  0x213F	0xFF0F	# FULLWIDTH SOLIDUS
! 0x2140	0xFF3C	# FULLWIDTH REVERSE SOLIDUS
  0x2141	0x301C	# WAVE DASH
  0x2142	0x2016	# DOUBLE VERTICAL LINE
  0x2143	0xFF5C	# FULLWIDTH VERTICAL LINE

Reply via email to