[latex3-commits] [git/LaTeX3-latex3-latex2e] hotfix/gh889: Introduce 2e names for new expl3 case functions (3fc79b2e)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jul 4 23:16:39 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : hotfix/gh889
Link : https://github.com/latex3/latex2e/commit/3fc79b2e05da257b5fb1bb7a4ac7b94ec0a8ee65
>---------------------------------------------------------------
commit 3fc79b2e05da257b5fb1bb7a4ac7b94ec0a8ee65
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Jul 4 22:16:39 2022 +0100
Introduce 2e names for new expl3 case functions
>---------------------------------------------------------------
3fc79b2e05da257b5fb1bb7a4ac7b94ec0a8ee65
base/changes.txt | 7 +++++++
base/ltfinal.dtx | 14 +++++++++++++-
2 files changed, 20 insertions(+), 1 deletion(-)
diff --git a/base/changes.txt b/base/changes.txt
index eeb9833e..e447452c 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,6 +10,13 @@ are not part of the distribution.
All changes above are only part of the development branch for the next release.
================================================================================
+2022-07-04 Joseph Wright <Joseph.Wright at latex-project.org>
+
+ * ltfinal.dtx
+ Introduce \MAkeTitlecase, \CaseSwitch and \DeclareCaseChangeEquivalent
+ as LaTeX2e names for expl3 case changing hooks, needed to support
+ some customisation requirements (e.g. biblatex)
+
#########################
# 2022-06-01 PL4 Release
########################
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 9859b279..9e5bbf5b 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltfinal.dtx}
- [2022/06/30 v2.2v LaTeX Kernel (Final Settings)]
+ [2022/07/04 v2.2w LaTeX Kernel (Final Settings)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltfinal.dtx}
@@ -1064,8 +1064,11 @@
%
% \begin{macro}{\MakeUppercase}
% \begin{macro}{\MakeUppercase}
+% \begin{macro}{\MakeTitlecase}
% \begin{macro}{\NoCaseChange}
% \begin{macro}{\AddToNoCaseChangeList}
+% \begin{macro}{\CaseSwitch}
+% \begin{macro}{\DeclareCaseChangeEquivalent}
% \begin{macro}{\@uclclist}
%
%
@@ -1081,6 +1084,7 @@
% {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}}
% \changes{v2.2v}{2022/06/30}{Just use \cs{text_lowercase:n} without \cs{protectd at edf} gh/881x}%
+% \changes{v2.2w}{2022/07/04}{Introduced \cs{CaseSwitch}, \cs{DeclareCaseChangeEquivalent} and \cs{MakeTitlecase} to support hooking into case changing gh/889}%
% Two wrappers around the L3 case changing functions.
% |\protected| to make them mostly safe as replacements for |uppercase|
% and |\lowercase|.
@@ -1109,6 +1113,8 @@
\cs_set_nopar:Npx\MakeUppercase#1{\use:c{MakeUppercase~}{#1}}
\cs_new_protected_nopar:cpn{MakeLowercase~}{\text_lowercase:n}
\cs_set_nopar:Npx\MakeLowercase#1{\use:c{MakeLowercase~}{#1}}
+\cs_new_protected_nopar:cpn{MakeTitlecase~}{\text_titlecase:n}
+\cs_set_nopar:Npx\MakeTitlecase#1{\use:c{MakeTitlecase~}{#1}}
% \end{macrocode}
%
% \changes{v2.2u}{2022/06/02}{Add \cs{NoCaseChange}}
@@ -1123,6 +1129,9 @@
{\tl_put_right:Nn \l_text_case_exclude_arg_tl}
\AddToNoCaseChangeList{ \NoCaseChange }
\cs_new_protected:Npn \NoCaseChange #1 {#1}
+\cs_new_eq:NN \CaseSwitch \text_case_switch:nnnn
+\cs_new_eq:NN \DeclareCaseChangeEquivalent
+ \text_declare_case_equivalent:Nn
\ExplSyntaxOff
% \end{macrocode}
%
@@ -1138,6 +1147,9 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
%
% \changes{v1.0h}{1994/05/13}{Added output enc stuff}
% \changes{v1.0i}{1994/05/16}{moved output enc stuff to lfonts}
More information about the latex3-commits
mailing list.