[latex3-commits] [git/LaTeX3-latex3-latex2e] Umathchar: Switch from Umathchar to Umathcode for detection (ba06bb2c)

Marcel Fabian Krüger tex at 2krueger.de
Sat Aug 1 00:35:50 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : Umathchar
Link       : https://github.com/latex3/latex2e/commit/ba06bb2c5876b168dfa71ad3fda43b67c3c35164

>---------------------------------------------------------------

commit ba06bb2c5876b168dfa71ad3fda43b67c3c35164
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Wed Jul 22 17:53:07 2020 +0200

    Switch from Umathchar to Umathcode for detection


>---------------------------------------------------------------

ba06bb2c5876b168dfa71ad3fda43b67c3c35164
 base/changes.txt                 | 5 +++++
 base/fontdef.dtx                 | 8 ++++----
 base/inputenc.dtx                | 4 ++--
 base/ltfinal.dtx                 | 4 ++--
 base/ltluatex.dtx                | 4 ++--
 base/testfiles/github-0060.lvt   | 2 +-
 base/testfiles/tlb-umath-001.lvt | 2 +-
 base/testfiles/tlb4024.lvt       | 4 ++--
 8 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 061838fd..bf471ae8 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -7,6 +7,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2020-08-01  Marcel Krüger     <Marcel.Krueger at latex-project.org>
+
+	* fontdef.dtx, inputenc.dtx, ltfinal.dtx, ltluatex.dtx:
+	More consistently use \Umathcode to check for Unicode-aware engines. (gh/279)
+
 2020-07-27  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltpage.dtx (section| command.):
diff --git a/base/fontdef.dtx b/base/fontdef.dtx
index 936db0d7..632f1c9b 100644
--- a/base/fontdef.dtx
+++ b/base/fontdef.dtx
@@ -39,7 +39,7 @@
 %<driver, >\ProvidesFile{fontdef.drv}
 % \fi
 %          \ProvidesFile{fontdef.dtx}
-%<-latexrelease>           [2020/04/24 v3.0h LaTeX Kernel
+%<-latexrelease>           [2020/08/01 v3.0i LaTeX Kernel
 % \iftrue  (\else
 %<text,   >(Text
 %<math,   >(Math
@@ -269,7 +269,7 @@
 %
 % \changes{v3.0a}{2016/12/03}{(DPC) Default to TU encoding for Unicode TeX engines}
 %    \begin{macrocode}
-\ifx\Umathchar\@undefined
+\ifx\Umathcode\@undefined
 %    \end{macrocode}
 %
 %    We then set the default text font encoding. This will
@@ -436,7 +436,7 @@
 %    The following three definitions set up the meaning for
 %    |\rmfamily|, |\sffamily|, and |\ttfamily|.
 %    \begin{macrocode}
-\ifx\Umathchar\@undefined
+\ifx\Umathcode\@undefined
 \newcommand\encodingdefault{OT1}
 \newcommand\rmdefault{cmr}
 \newcommand\sfdefault{cmss}
@@ -451,7 +451,7 @@
 %</text>
 %<latexrelease>\IncludeInRelease{2017/01/01}%
 %<latexrelease>                 {\encodingdefault}{TU encoding default}%
-%<latexrelease>\ifx\Umathchar\@undefined
+%<latexrelease>\ifx\Umathcode\@undefined
 %<latexrelease>\renewcommand\encodingdefault{OT1}
 %<latexrelease>\fontencoding{\encodingdefault}
 %<latexrelease>\renewcommand\rmdefault{cmr}
diff --git a/base/inputenc.dtx b/base/inputenc.dtx
index 01a8303e..c1d08b48 100644
--- a/base/inputenc.dtx
+++ b/base/inputenc.dtx
@@ -410,7 +410,7 @@
 %<cp1252&!ansinew>  \ProvidesFile{cp1252.def}
 %<cp1250>  \ProvidesFile{cp1250.def}
 %<cp1257>  \ProvidesFile{cp1257.def}
-   [2020/04/14 v1.3c Input encoding file]
+   [2020/08/01 v1.3d Input encoding file]
 %<cp850>%%
 %<cp850>%% If you need a Euro symbol, try cp858 instead.
 %<cp850>%%
@@ -545,7 +545,7 @@
 %    produces a warning message if no suitable definitions get read.
 %
 %    \begin{macrocode}
-\ifx\Umathchar\@undefined
+\ifx\Umathcode\@undefined
 %    \end{macrocode}
 %
 %    \begin{macrocode}
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 9089c8a7..68c42070 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2020-07-16 v2.2f LaTeX Kernel (Final Settings)]
+             [2020-08-01 v2.2g LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -590,7 +590,7 @@
 % Skip this section in Unicode TeX, or if  MLTeX and EncTeX are enabled.
 %    \begin{macrocode}
 \ifnum0%
-  \ifx\Umathchar\@undefined\else 1\fi
+  \ifx\Umathcode\@undefined\else 1\fi
   \ifx\mubyte\@undefined\else 1\fi
   \ifx\charsubdef\@undefined\else 1\fi
   =\z@
diff --git a/base/ltluatex.dtx b/base/ltluatex.dtx
index 2e692a99..bf80ad25 100644
--- a/base/ltluatex.dtx
+++ b/base/ltluatex.dtx
@@ -28,7 +28,7 @@
 \ProvidesFile{ltluatex.dtx}
 %</driver>
 %<*tex>
-[2020/06/10 v1.1n
+[2020/08/01 v1.1o
 %</tex>
 %<plain>  LuaTeX support for plain TeX (core)
 %<*tex>
@@ -459,7 +459,7 @@
 %    \end{macrocode}
 % luatex/xetex also allow more math fam.
 %    \begin{macrocode}
-\edef \et at xmaxfam {\ifx\Umathchar\@undefined\sixt@@n\else\@cclvi\fi}
+\edef \et at xmaxfam {\ifx\Umathcode\@undefined\sixt@@n\else\@cclvi\fi}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
diff --git a/base/testfiles/github-0060.lvt b/base/testfiles/github-0060.lvt
index 9a3167de..fc36d7fb 100644
--- a/base/testfiles/github-0060.lvt
+++ b/base/testfiles/github-0060.lvt
@@ -5,7 +5,7 @@
 \documentclass{article}
 
 \START
-\ifx\Umathchar\undefined\else\expandafter\END\fi
+\ifx\Umathcode\undefined\else\expandafter\END\fi
 
 \typeout{^^J===Declare 10FFFF}
 \DeclareUnicodeCharacter{10FFFF}{U+10FFFF\typeout{MAX VALUE!!}}
diff --git a/base/testfiles/tlb-umath-001.lvt b/base/testfiles/tlb-umath-001.lvt
index ad91e794..04f08055 100644
--- a/base/testfiles/tlb-umath-001.lvt
+++ b/base/testfiles/tlb-umath-001.lvt
@@ -11,7 +11,7 @@
 
 \START
 
-\ifx\Umathchar\undefined\else
+\ifx\Umathcode\undefined\else
 
 \Umathchardef\alpha"0"0"010B
 \protected\def\hat{\Umathaccent fixed 7\symoperators "00302\relax}
diff --git a/base/testfiles/tlb4024.lvt b/base/testfiles/tlb4024.lvt
index 5cd83353..b33d66a6 100644
--- a/base/testfiles/tlb4024.lvt
+++ b/base/testfiles/tlb4024.lvt
@@ -10,8 +10,8 @@
 \documentclass{article}
 \input{test2e}
 % trigger xetex behavour udf pdftex
-\ifx\Umathchar\xxundefined
-\let\Umathchar\relax
+\ifx\Umathcode\xxundefined
+\let\Umathcode\relax
 \fi
 
 \usepackage[utf8]{inputenc}





More information about the latex3-commits mailing list.