summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltunicode.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltunicode.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltunicode.dtx50
1 files changed, 32 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltunicode.dtx b/Master/texmf-dist/source/latex/base/ltunicode.dtx
index aa8366cfe93..d06ac7e0041 100644
--- a/Master/texmf-dist/source/latex/base/ltunicode.dtx
+++ b/Master/texmf-dist/source/latex/base/ltunicode.dtx
@@ -44,7 +44,7 @@
%
%<*driver>
\ProvidesFile{ltunicode.dtx}
- [2015/03/26 v1.0g LaTeX Kernel (Unicode data)]
+ [2015/05/11 v1.0h LaTeX Kernel (Unicode data)]
\documentclass{ltxdoc}
\begin{document}
\DocInput{\jobname.dtx}
@@ -578,15 +578,6 @@
\global\sfcode"201D=0 %
\endverbatimcopy
% \end{macrocode}
-% Lua\TeX{} and older versions of Xe\TeX{} stop here: character classes are a
-% Xe\TeX{}-only concept.
-% \begin{macrocode}
-\verbatimcopy
-\ifx\XeTeXchartoks\XeTeXcharclass
- \expandafter\endinput
-\fi
-\endverbatimcopy
-% \end{macrocode}
%
% \section{Xe\TeX{} Character classes}
%
@@ -727,6 +718,8 @@
% \end{macro}
% \end{macro}
%
+% \changes{v1.0h}{2015/05/11}{Apply cateogry codes to East Asian
+% chars in all cases}
% Before actually reading the line breaking data file, the appropriate
% temporary code is added to the output. As described above, only a limited
% number of classes need to be covered: they are hard-coded as classes
@@ -734,13 +727,23 @@
% \begin{macrocode}
\verbatimcopy
\begingroup
- \def\ID#1 {\global\XeTeXcharclass"#1=1 \global\catcode"#1=11 }
- \def\OP#1 {\global\XeTeXcharclass"#1=2 }
- \def\CL#1 {\global\XeTeXcharclass"#1=3 }
- \def\EX#1 {\global\XeTeXcharclass"#1=3 }
- \def\IS#1 {\global\XeTeXcharclass"#1=3 }
- \def\NS#1 {\global\XeTeXcharclass"#1=3 }
- \def\CM#1 {\global\XeTeXcharclass"#1=256 }
+ \ifx\XeTeXchartoks\XeTeXcharclass
+ \def\ID#1 {\global\catcode"#1=11 }
+ \def\OP#1 {}
+ \let\CL\OP
+ \let\EX\OP
+ \let\IS\OP
+ \let\NS\OP
+ \let\CM\OP
+ \else
+ \def\ID#1 {\global\XeTeXcharclass"#1=1 \global\catcode"#1=11 }
+ \def\OP#1 {\global\XeTeXcharclass"#1=2 }
+ \def\CL#1 {\global\XeTeXcharclass"#1=3 }
+ \def\EX#1 {\global\XeTeXcharclass"#1=3 }
+ \def\IS#1 {\global\XeTeXcharclass"#1=3 }
+ \def\NS#1 {\global\XeTeXcharclass"#1=3 }
+ \def\CM#1 {\global\XeTeXcharclass"#1=256 }
+ \fi
\endverbatimcopy
% \end{macrocode}
%
@@ -753,6 +756,18 @@
\repeat
% \end{macrocode}
%
+% \changes{v1.0h}{2015/05/11}{Move the stop point for Lua\TeX{}}
+% Lua\TeX{} and older versions of Xe\TeX{} stop here: character classes are a
+% Xe\TeX{}-only concept.
+% \begin{macrocode}
+\verbatimcopy
+\endgroup
+\ifx\XeTeXchartoks\XeTeXcharclass
+ \expandafter\endinput
+\fi
+\endverbatimcopy
+% \end{macrocode}
+%
% \changes{v1.0a}{2015/03/25}{Use \cs{hskip} rather than \cs{hspace}
% in glue settings}
% Set up material to be inserted between character classes.
@@ -760,7 +775,6 @@
% work with plain as well as \LaTeXe{}.
% \begin{macrocode}
\verbatimcopy
-\endgroup
\gdef\xtxHanGlue{\hskip0pt plus 0.1em\relax}
\gdef\xtxHanSpace{\hskip0.2em plus 0.2em minus 0.1em\relax}
\global\XeTeXinterchartoks 0 1 = {\xtxHanSpace}