[latex3-commits] [l3svn] branch master updated: Chars ^^Y/^^Z need to be valid whilst reading some setup
noreply at latex-project.org
noreply at latex-project.org
Fri Nov 13 14:59:27 CET 2015
This is an automated email from the git hooks/post-receive script.
joseph pushed a commit to branch master
in repository l3svn.
The following commit(s) were added to refs/heads/master by this push:
new 4e8d552 Chars ^^Y/^^Z need to be valid whilst reading some setup
4e8d552 is described below
commit 4e8d552e9f1ff9e46a9b84dcaffb006249d9fa87
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Nov 13 13:58:38 2015 +0000
Chars ^^Y/^^Z need to be valid whilst reading some setup
---
l3kernel/l3final.dtx | 22 ++++++++++++++++++----
1 file changed, 18 insertions(+), 4 deletions(-)
diff --git a/l3kernel/l3final.dtx b/l3kernel/l3final.dtx
index da48a20..ccd390f 100644
--- a/l3kernel/l3final.dtx
+++ b/l3kernel/l3final.dtx
@@ -259,6 +259,14 @@
% \begin{macrocode}
\char_set_catcode_invalid:n { 127 }
% \end{macrocode}
+% For the $8$-bit engines dotless-I and dotless-J need to be valid,
+% and these therefore appear in some following code. To avoid an issue
+% when those lines are read, the chars are made valid here and that is
+% reversed for Unicode engines below.
+% \begin{macrocode}
+\char_set_catcode_letter:n { `\^^Y }
+\char_set_catcode_letter:n { `\^^Z }
+% \end{macrocode}
%
% For non-Unicode engine we now need to convert from UTF-$8$ to $8$-bit
% for pattern reading and document use. The set up here is copied from
@@ -268,17 +276,23 @@
% (The primitives have to be available at point of use not just at point of
% definition so a compatibility layer is hard to arrange here.)
% \begin{macrocode}
-\bool_if:nF
+\bool_if:nTF
{
\sys_if_engine_luatex_p:
|| \sys_if_engine_xetex_p:
}
+% \end{macrocode}
+% Unicode engines: make these two invalid (this happens after \TeX{}
+% has read and thrown away their use in the following).
+% \begin{macrocode}
{
+ \char_set_catcode_invalid:n { `\^^Y }
+ \char_set_catcode_invalid:n { `\^^Z }
+ }
% \end{macrocode}
-% For the $8$-bit engines dotless-I and dotless-J need to be valid.
+% Now for $8$-bit engines.
% \begin{macrocode}
- \char_set_catcode_letter:n { `\^^Y }
- \char_set_catcode_letter:n { `\^^Z }
+ {
% \end{macrocode}
% At least for the present, make \upTeX{} behave like \pdfTeX{} so
% the set up is easier.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the latex3-commits
mailing list