[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Much easier babel patch (2c2086b1)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Oct 29 13:20:24 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/2c2086b1a3f5046a303efe370cfd89cba3fe78a0

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

commit 2c2086b1a3f5046a303efe370cfd89cba3fe78a0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Oct 29 12:20:24 2022 +0100

    Much easier babel patch
    
    Thanks to Javier!


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

2c2086b1a3f5046a303efe370cfd89cba3fe78a0
 required/firstaid/changes.txt                      |  5 ++++
 .../latex2e-first-aid-for-external-files.dtx       | 31 ++++------------------
 2 files changed, 10 insertions(+), 26 deletions(-)

diff --git a/required/firstaid/changes.txt b/required/firstaid/changes.txt
index d053ace2..3c6cb992 100644
--- a/required/firstaid/changes.txt
+++ b/required/firstaid/changes.txt
@@ -1,3 +1,8 @@
+2022-10-27	Joseph Wright <Joseph.Wright at latex-project.org>
+
+	* latex2e-first-aid-for-external-files.dtx:
+	Much easier babel patch
+
 2022-10-27	Joseph Wright <Joseph.Wright at latex-project.org>
 
 	* latex2e-first-aid-for-external-files.dtx:
diff --git a/required/firstaid/latex2e-first-aid-for-external-files.dtx b/required/firstaid/latex2e-first-aid-for-external-files.dtx
index 936c1bc5..9bc4969b 100644
--- a/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -111,8 +111,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\def\LaTeXFirstAidDate{2022/10/27}
-\def\LaTeXFirstAidVersion{v1.0t}
+\def\LaTeXFirstAidDate{2022/10/29}
+\def\LaTeXFirstAidVersion{v1.0u}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -406,30 +406,9 @@
 %
 % \subsection{The \pkg{babel} package}
 %
-% Because of the switch from what was already an odd structure to an \pkg{ltcmd}
-% expandable command, we have to save-and-restore an internal function to undo
-% a patch.
-%    \begin{macrocode}
-\AddToHook{file/babel.sty/before}[firstaid]{%
-  \FirstAidNeededT{babel}{sty}{2022/10/23 3.82 The Babel package}%
-    {%
-      \expandafter\let\expandafter\firstaid at MakeLowercase
-        \csname MakeLowercase \endcsname
-      \expandafter\let\expandafter\firstaid at MakeTitlecase
-        \csname MakeTitlecase \endcsname
-      \expandafter\let\expandafter\firstaid at MakeUppercase
-        \csname MakeUppercase \endcsname
-      \AtBeginDocument[firstaid-babel]{%
-        \expandafter\let\csname MakeLowercase \endcsname
-          \firstaid at MakeLowercase
-        \expandafter\let\csname MakeTitlecase \endcsname
-          \firstaid at MakeTitlecase
-        \expandafter\let\csname MakeUppercase \endcsname
-          \firstaid at MakeUppercase
-      }%
-     \DeclareHookRule{begindocument}{firstaid-babel}{after}{babel}%
-    }%
-}
+% Turn off the \pkg{babel} hack.
+%    \begin{macrocode}
+\AddToHook{file/babel.sty/before}[firstaid]{\def\BabelCaseHack{}}
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.