[latex3-commits] [git/LaTeX3-latex3-latex2e] case-lang: Adjustments as requested by FMi (95cf458c)
Joseph Wright
joseph.wright at morningstar2.co.uk
Wed Oct 26 19:13:24 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : case-lang
Link : https://github.com/latex3/latex2e/commit/95cf458c24765a509f14f7d7b5f01a1cd5dd4b00
>---------------------------------------------------------------
commit 95cf458c24765a509f14f7d7b5f01a1cd5dd4b00
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Wed Oct 26 18:13:24 2022 +0100
Adjustments as requested by FMi
>---------------------------------------------------------------
95cf458c24765a509f14f7d7b5f01a1cd5dd4b00
base/changes.txt | 4 ++++
base/ltfinal.dtx | 13 +++++++------
2 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index b5f67aa9..9eb7b551 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ completeness or accuracy and it contains some references to files that
are not part of the distribution.
================================================================================
+2022-10-26 Joseph Wright <Joseph.Wright at latex-project.org>
+
+ * ltfinal.dtx: Adjustments to case optional argument detail
+
2022-10-22 Joseph Wright <Joseph.Wright at latex-project.org>
* ltfinal.dtx: Auto-detect babel locale for case changing
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index af134d37..a490eeca 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltfinal.dtx}
- [2022/10/22 v2.2x LaTeX Kernel (Final Settings)]
+ [2022/10/26 v2.2x LaTeX Kernel (Final Settings)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltfinal.dtx}
@@ -1110,15 +1110,11 @@
% to handle legacy input encodings, but recent (2022) expl3 versions
% handle non-UTF8 text natively so we simply call the |\text_...case:n|
% functions.
-%
-% The odd use of \emph{three} spaces here is needed as \pkg{ltcmd} uses the
-% name with one and two spaces to give a `friendly' error message for a runaway
-% argument: that means we can't use it here.
% \begin{macrocode}
\ExplSyntaxOn
\keys_define:nn { __kernel }
{
- lang .meta:n = { locale = {#1} } ,
+ lang .str_set:N = \reserved at a ,
locale .str_set:N = \reserved at a
}
\cs_new_protected:Npn \@@text at case@aux #1#2#3
@@ -1147,6 +1143,11 @@
{ }
}
\exp_args_generate:n { cnx }
+% \end{macrocode}
+% The odd use of \emph{three} spaces here is needed as \pkg{ltcmd} uses the
+% name with one and two spaces to give a `friendly' error message for a runaway
+% argument: that means we can't use it here.
+% \begin{macrocode}
\cs_set_protected:Npn \reserved at a #1
{
\cs_generate_variant:cn { text_ \str_lowercase:n {#1} case:nn } { V }
More information about the latex3-commits
mailing list.