texlive[50124] Build/source/texk/dvipdfm-x: dvipdfm-x: tounicode for

commits+hironobu at tug.org commits+hironobu at tug.org
Mon Feb 25 11:27:33 CET 2019


Revision: 50124
          http://tug.org/svn/texlive?view=revision&revision=50124
Author:   hironobu
Date:     2019-02-25 11:27:33 +0100 (Mon, 25 Feb 2019)
Log Message:
-----------
dvipdfm-x: tounicode for double encoded glyphs (jp-forum:2575)

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/tt_cmap.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-02-25 03:08:38 UTC (rev 50123)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-02-25 10:27:33 UTC (rev 50124)
@@ -1,3 +1,10 @@
+2019-02-25  Hironobu Yamashita  <h.y.acetaminophen at gmail.com>
+
+	* tt_cmap.c (is_PUA_or_presentation):
+	Skip also CJK Radicals Supplement, to lower the priority for
+	double encoded glyphs. This does not break tounicode entries
+	for glyphs which are only encoded in this region.
+
 2019-02-25  Shunsaku Hirata  <shunsaku.hirata74 at gmail.com>
 
 	* tt_post.c: Since OpenType ver. 1.7, PostScript glyph names

Modified: trunk/Build/source/texk/dvipdfm-x/tt_cmap.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/tt_cmap.c	2019-02-25 03:08:38 UTC (rev 50123)
+++ trunk/Build/source/texk/dvipdfm-x/tt_cmap.c	2019-02-25 10:27:33 UTC (rev 50124)
@@ -850,8 +850,10 @@
 
 static int is_PUA_or_presentation (unsigned int uni)
 {
-  /* KANGXI RADICALs are commonly double encoded. */
-  return  ((uni >= 0x2F00 && uni <= 0x2FD5) ||
+  /* Some of CJK Radicals Supplement and Kangxi Radicals
+   * are commonly double encoded, lower the priority.
+   */
+  return  ((uni >= 0x2E80 && uni <= 0x2EF3) || (uni >= 0x2F00 && uni <= 0x2FD5) ||
            (uni >= 0xE000 && uni <= 0xF8FF) || (uni >= 0xFB00 && uni <= 0xFB4F) ||
            (uni >= 0xF0000 && uni <= 0xFFFFD) || (uni >= 0x100000 && uni <= 0x10FFFD));
 }



More information about the tex-live-commits mailing list