[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[6999] xetex native unicode
From: |
Gavin D. Smith |
Subject: |
[6999] xetex native unicode |
Date: |
Sun, 07 Feb 2016 14:44:31 +0000 |
Revision: 6999
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6999
Author: gavin
Date: 2016-02-07 14:44:30 +0000 (Sun, 07 Feb 2016)
Log Message:
-----------
xetex native unicode
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/texinfo.tex
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2016-02-07 11:02:58 UTC (rev 6998)
+++ trunk/ChangeLog 2016-02-07 14:44:30 UTC (rev 6999)
@@ -1,5 +1,19 @@
2016-02-07 Masamichi Hosoda <address@hidden>
+ * doc/texinfo.tex:
+ Native Unicode replace switching instead of re-definition.
+
+ (\ifnativeunicodereplace): New switch.
+ (\DeclareUnicodeCharacterNative):
+ Integrate \DeclareUnicodeCharacterNativeThru.
+ Add capable to switch replace or pass-through characters.
+ (\DeclareUnicodeCharacterNativeThru): Remove.
+ (\nativeunicodechardefsthru): Remove.
+ (\passthroughcharacters):
+ Use switch instead of \nativeunicodechardefsthru
+
+2016-02-07 Masamichi Hosoda <address@hidden>
+
* doc/texinfo.tex:
Add PDF outline support for XeTeX.
(\pdfdest): set destination.
Modified: trunk/doc/texinfo.tex
===================================================================
--- trunk/doc/texinfo.tex 2016-02-07 11:02:58 UTC (rev 6998)
+++ trunk/doc/texinfo.tex 2016-02-07 14:44:30 UTC (rev 6999)
@@ -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-07.12}
+\def\texinfoversion{2016-02-07.14}
%
% Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
@@ -10798,12 +10798,25 @@
% For native Unicode (XeTeX and LuaTeX)
% Definition macro to replace the Unicode character
%
+\newif\ifnativeunicodereplace
+\nativeunicodereplacetrue
+
\def\DeclareUnicodeCharacterNative#1#2{%
\catcode"#1=\active
- \begingroup
- \uccode`\~="#1\relax
- \uppercase{\gdef~}{#2}%
- \endgroup}
+ \ifnativeunicodereplace
+ \begingroup
+ \uccode`\~="#1\relax
+ \uppercase{\gdef~}{#2}%
+ \endgroup
+ \else
+ \begingroup
+ \uccode`\.="#1\relax
+ \uppercase{\endgroup \def\UTFNativeTmp{.}}%
+ \begingroup
+ \uccode`\~="#1\relax
+ \uppercase{\endgroup \edef~}{\UTFNativeTmp}%
+ \fi
+}
% Native Unicode (XeTeX and LuaTeX) character replacing definitions
% It makes the setting that replace the Unicode characters.
@@ -10812,27 +10825,6 @@
\unicodechardefs
}
-% For native Unicode (XeTeX and LuaTeX)
-% Definition macro not to make the Unicode character expand to a non-active
-% token with the same character code. Used when writing to auxiliary files.
-%
-\def\DeclareUnicodeCharacterNativeThru#1#2{%
- \catcode"#1=\active
- \begingroup
- \uccode`\.="#1\relax
- \uppercase{\endgroup \def\UTFNativeTmp{.}}%
- \begingroup
- \uccode`\~="#1\relax
- \uppercase{\endgroup \edef~}{\UTFNativeTmp}%
-}
-
-% Native Unicode (XeTeX and LuaTeX) character ``through'' definitions.
-% It makes the setting that does not replace the Unicode characters.
-\def\nativeunicodechardefsthru{%
- \let\DeclareUnicodeCharacter\DeclareUnicodeCharacterNativeThru
- \unicodechardefs
-}
-
% For native Unicode (XeTeX and LuaTeX). Make the character token expand
% to the sequences given in \unicodechardefs for printing.
\def\DeclareUnicodeCharacterNativeAtU#1#2{%
@@ -10920,7 +10912,7 @@
\iftxiusebytewiseio
\nonasciistringdefs
\else
- \nativeunicodechardefsthru
+ \nativeunicodereplacefalse
\fi
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [6999] xetex native unicode,
Gavin D. Smith <=