[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: XeTeX encoding problem
From: |
Masamichi HOSODA |
Subject: |
Re: XeTeX encoding problem |
Date: |
Mon, 21 Mar 2016 00:20:28 +0900 (JST) |
> I've noticed an issue of texinfo.tex ver. 2016-03-06.18.
> It can not compile the attached texi file.
>
[snip...]
>
> All the following engines fail.
> LuaTeX 0.89.2
> XeTeX 0.99992
> XeTeX 0.99995
> pdfTeX 1.40.16
>
> With texinfo.tex ver. 2016-03-05.11, they work fine.
Here is a patch that fixes the issue.
ChangeLog:
Fix Unicode character in @copying
2016-03-XX Masamichi Hosoda <address@hidden>
* doc/texinfo.tex: Fix Unicode character in @copying.
(\scanctxt): Add using \setcharscatcodeothernonglobal.
(\nativeunicodecharscatcodeothernonglobal):
Revert to 2015-03-15.
(\setcharscatcodeothernonglobal):
Revert to 2015-03-15.
--- texinfo.tex.org 2016-03-08 22:46:15.850782600 +0900
+++ texinfo.tex 2016-03-20 23:42:05.382585100 +0900
@@ -7896,6 +7896,7 @@
\catcode`\|=\other
\catcode`\~=\other
\passthroughcharstrue
+ \ifx\declaredencoding\ascii \else \setcharscatcodeothernonglobal \fi
}
\def\scanargctxt{% used for copying and captions, not macros.
@@ -10912,6 +10913,22 @@
\unicodechardefs
}
+% Native Unicode (XeTeX and LuaTeX) catcode other non global definitions
+\def\nativeunicodecharscatcodeothernonglobal{%
+ \let\DeclareUnicodeCharacter\DeclareUnicodeCharacterNativeOther
+ \unicodechardefs
+}
+
+% Catcode (non-ASCII or native Unicode) are set to \other (non-global
+% assignments).
+\def\setcharscatcodeothernonglobal{%
+ \iftxiusebytewiseio
+ \setnonasciicharscatcodenonglobal\other
+ \else
+ \nativeunicodecharscatcodeothernonglobal
+ \fi
+}
+
% US-ASCII character definitions.
\def\asciichardefs{% nothing need be done
\relax
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/06
- Re: XeTeX encoding problem, trueroad, 2016/03/07
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/03/20
- Re: XeTeX encoding problem,
Masamichi HOSODA <=
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/20
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/03/21
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/22
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/03/22
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/03/22
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/22
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/03/23
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/22
- Re: XeTeX encoding problem, Karl Berry, 2016/03/25
- Re: XeTeX encoding problem, Gavin Smith, 2016/03/26