texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[7018] xetex pdf outline


From: Masamichi Hosoda
Subject: [7018] xetex pdf outline
Date: Mon, 15 Feb 2016 15:09:13 +0000

Revision: 7018
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7018
Author:   trueroad
Date:     2016-02-15 15:06:38 +0000 (Mon, 15 Feb 2016)
Log Message:
-----------
xetex pdf outline

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/doc/texinfo.tex

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-02-14 17:26:14 UTC (rev 7017)
+++ trunk/ChangeLog     2016-02-15 15:06:38 UTC (rev 7018)
@@ -1,3 +1,7 @@
+2016-02-15  Masamichi Hosoda  <address@hidden>
+
+       * doc/texinfo.tex: Fix PDF outline cmap for XeTeX.
+
 2016-02-14  Gavin Smith  <address@hidden>
 
        * tp/Texinfo/Convert/TexinfoXML.pm (output): Add a comment.

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-02-14 17:26:14 UTC (rev 7017)
+++ trunk/doc/texinfo.tex       2016-02-15 15:06:38 UTC (rev 7018)
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2016-02-09.12}
+\def\texinfoversion{2016-02-15.14}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -1528,7 +1528,16 @@
   ]
 
   \special{pdf:docview << /PageMode /UseOutlines >> }
-  \special{pdf:tounicode UTF8-UTF16 }
+  \openin 1 uptex.tex % upTeX has UTF8-UTF16 cmap
+  \ifeof 1
+    % upTeX does not exist. To use UTF8-UCS2 cmap.
+    % In this case, non-BMP characters (over U+FFFF) can not be used.
+    \special{pdf:tounicode UTF8-UCS2}
+  \else
+    % upTeX exists. To use UTF8-UTF16 cmap.
+    % Non-BMP characters (over U+FFFF) can be used.
+    \special{pdf:tounicode UTF8-UTF16}
+  \fi
 \fi
 
 %




reply via email to

[Prev in Thread] Current Thread [Next in Thread]