[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Support \noexpand in \MakeUpper/Lowercase (4d5db49b)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Apr 21 13:02:22 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/4d5db49b784151c950f9415a57594439eebf7593

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

commit 4d5db49b784151c950f9415a57594439eebf7593
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Apr 21 12:02:22 2022 +0100

    Support \noexpand in \MakeUpper/Lowercase
    
    We need to ensure these survive the expander inside
    the expl3 code, which is done most readily by suppressing
    that code entirely using \unexpanded.


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

4d5db49b784151c950f9415a57594439eebf7593
 base/changes.txt | 6 ++++++
 base/ltfinal.dtx | 7 ++++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 8f4a0995..636ce3c4 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,12 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2022-04-21  Joseph Wright <Joseph.Wright at latex-project.org>
+
+	* ltfinal.dtx (subsection{Lccodes and uccodes}):
+	Support \noexpand in arg. to \MakeUppercase and
+	\MakeLowercase
+
 2022-04-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltmath.dtx (subsubsection{The UNSORTED Rest}):
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index ec258b8e..5857e6cf 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2022/04/03 v2.2s LaTeX Kernel (Final Settings)]
+             [2022/04/21 v2.2t LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -1104,14 +1104,15 @@
 % \changes{v2.1h}{2019/09/14}{Expand UTF8 chars when case changing (github/177)}
 % \changes{v2.2r}{2022/02/20}
 %                {Use \cs{@expl at text@uppercase@@n}, removing local redefinition of \cs{UTF at two@octets at noexpand}}%
+% \changes{v2.2t}{2022/04/21}{Support \cs{noexpand} in argument of \cs{@expl at text@uppercase@@n}}
 %    \begin{macrocode}
-      \protected at edef\reserved at a{\@expl at text@uppercase@@n{#1}}%
+      \protected at edef\reserved at a{\@expl at text@uppercase@@n{\noexpand\unexpanded{#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}%
-      \protected at edef\reserved at a{\@expl at text@lowercase@@n{#1}}%
+      \protected at edef\reserved at a{\@expl at text@lowercase@@n{\noexpand\unexpanded{#1}}}%
       \reserved at a
    }}
 %    \end{macrocode}





More information about the latex3-commits mailing list.