texinfo-commits
[Top][All Lists]
Advanced

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

[7297] Fix pdfTeX PDF destination names


From: trueroad
Subject: [7297] Fix pdfTeX PDF destination names
Date: Wed, 3 Aug 2016 13:35:39 +0000 (UTC)

Revision: 7297
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7297
Author:   trueroad
Date:     2016-08-03 13:35:39 +0000 (Wed, 03 Aug 2016)
Log Message:
-----------
Fix pdfTeX PDF destination names

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-08-03 12:41:23 UTC (rev 7296)
+++ trunk/ChangeLog     2016-08-03 13:35:39 UTC (rev 7297)
@@ -1,5 +1,13 @@
 2016-08-03  Masamichi Hosoda  <address@hidden>
 
+       * doc/texinfo.tex (\xref):
+       Fix pdfTeX PDF destination names.
+       In order to replace Unicode characters with ASCII,
+       it is necessary that \edef\pdfxrefdest{#1} is
+       before \turnoffactive.
+
+2016-08-03  Masamichi Hosoda  <address@hidden>
+
        * doc/texinfo.tex (\documentencoding):
        Add warning for XeTeX with non-UTF-8 encodings.
 

Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex       2016-08-03 12:41:23 UTC (rev 7296)
+++ trunk/doc/texinfo.tex       2016-08-03 13:35:39 UTC (rev 7297)
@@ -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-08-03.12}
+\def\texinfoversion{2016-08-03.13}
 %
 % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -8845,16 +8845,21 @@
   \ifpdf
     % For pdfTeX and LuaTeX
     {\indexnofonts
+     \makevalueexpandable
+     %
+     % This (wrongly) does not take account of leading or trailing
+     % spaces in #1, which should be ignored.
+     \ifx\luatexversion\thisisundefined
+       \edef\pdfxrefdest{#1}% pdfTeX: Replace Unicode characters with ASCII.
+     \else
+       \def\pdfxrefdest{#1}% LuaTeX: Pass through Unicode characters.
+     \fi
      \turnoffactive
-     \makevalueexpandable
      % This expands tokens, so do it after making catcode changes, so _
      % etc. don't get their TeX definitions.  This ignores all spaces in
      % #4, including (wrongly) those in the middle of the filename.
      \getfilename{#4}%
      %
-     % This (wrongly) does not take account of leading or trailing
-     % spaces in #1, which should be ignored.
-     \edef\pdfxrefdest{#1}%
      \ifx\pdfxrefdest\empty
        \def\pdfxrefdest{Top}% no empty targets
      \else




reply via email to

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