[latex3-commits] [git/LaTeX3-latex3-latex2e] utf8andspace: fix for #177 (a7963325)

Frank Mittelbach frank.mittelbach at latex-project.org
Sat Sep 14 12:40:49 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : utf8andspace
Link       : https://github.com/latex3/latex2e/commit/a7963325cd2fabc0c88ee018450e839409b56881

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

commit a7963325cd2fabc0c88ee018450e839409b56881
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Sat Sep 14 12:40:49 2019 +0200

    fix for #177


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

a7963325cd2fabc0c88ee018450e839409b56881
 base/changes.txt                                   |  9 ++++++++
 base/ltfinal.dtx                                   | 15 ++++++++++++-
 base/testfiles/github-0177.lvt                     | 25 ++++++++++++++++++++++
 .../{github-0060.luatex.tlg => github-0177.tlg}    |  0
 4 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/base/changes.txt b/base/changes.txt
index 481604d4..c7a72d95 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -4,6 +4,15 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2019-09-14  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltfinal.dtx (subsection{Lccodes and uccodes}): 
+	process UTF-8 chars prior to case changing (github/177)
+
+#########################
+# 2019-09-13 Pre-Release-3
+#########################
+
 2019-09-11  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltclass.dtx (subsection{Providing shipment}):
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index de161a77..47641e96 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2019/08/27 v2.1g LaTeX Kernel (Final Settings)]
+             [2019/09/14 v2.1h LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -928,15 +928,28 @@
       \def\i{I}\def\j{J}%
       \def\reserved at a##1##2{\let##1##2\reserved at a}%
       \expandafter\reserved at a\@uclclist\reserved at b{\reserved at b\@gobble}%
+%    \end{macrocode}
+%    Tell UTF-8 processing to process chars even though we are in an \cs{protected at edef}.
+% \changes{v2.1h}{2019/09/14}{Expand UTF8 chrs when case changing (github/177)}
+%    \begin{macrocode}
+      \let\UTF at two@octets at noexpand\@empty
+      \let\UTF at three@octets at noexpand\@empty
+      \let\UTF at four@octets at noexpand\@empty
       \protected at edef\reserved at a{\uppercase{#1}}%
       \reserved at a
    }}
 \DeclareRobustCommand{\MakeLowercase}[1]{{%
       \def\reserved at a##1##2{\let##2##1\reserved at a}%
       \expandafter\reserved at a\@uclclist\reserved at b{\reserved at b\@gobble}%
+      \let\UTF at two@octets at noexpand\@empty
+      \let\UTF at three@octets at noexpand\@empty
+      \let\UTF at four@octets at noexpand\@empty
       \protected at edef\reserved at a{\lowercase{#1}}%
       \reserved at a
    }}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \def\@uclclist{\oe\OE\o\O\ae\AE
       \dh\DH\dj\DJ\l\L\ng\NG\ss\SS\th\TH}
 %    \end{macrocode}
diff --git a/base/testfiles/github-0177.lvt b/base/testfiles/github-0177.lvt
new file mode 100644
index 00000000..91ab1fd9
--- /dev/null
+++ b/base/testfiles/github-0177.lvt
@@ -0,0 +1,25 @@
+\documentclass{article}
+
+\usepackage[T1]{fontenc}
+
+\input{test2e}
+
+
+\begin{document}
+
+\START 
+
+\MakeLowercase{ähh}
+\MakeLowercase{Ähh}
+
+\MakeUppercase{ähh}
+\MakeUppercase{Ähh}
+
+\MakeLowercase{ère}
+\MakeLowercase{ÈRE}
+
+\MakeUppercase{ère}
+\MakeUppercase{ÈRE}
+
+ 
+\END
diff --git a/base/testfiles/github-0060.luatex.tlg b/base/testfiles/github-0177.tlg
similarity index 100%
copy from base/testfiles/github-0060.luatex.tlg
copy to base/testfiles/github-0177.tlg





More information about the latex3-commits mailing list