[latex3-commits] [git/LaTeX3-latex3-latex2e] case-lang: Use key name "locale" and make "lang" an alias (10693f72)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sat Oct 22 14:26:46 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : case-lang
Link : https://github.com/latex3/latex2e/commit/10693f727cce567faa0ec25209bcf4fd31a1752c
>---------------------------------------------------------------
commit 10693f727cce567faa0ec25209bcf4fd31a1752c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sat Oct 22 13:26:46 2022 +0100
Use key name "locale" and make "lang" an alias
>---------------------------------------------------------------
10693f727cce567faa0ec25209bcf4fd31a1752c
base/doc/ltnews36.tex | 3 ++-
base/doc/usrguide.tex | 3 ++-
base/ltfinal.dtx | 5 ++++-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/base/doc/ltnews36.tex b/base/doc/ltnews36.tex
index d442bd52..e8196dec 100644
--- a/base/doc/ltnews36.tex
+++ b/base/doc/ltnews36.tex
@@ -214,7 +214,8 @@ The commands \cs{MakeUppercase}, \cs{MakeLowercase} and \cs{MakeTitlecase}
now automatically detect the locale currently in use when \pkg{babel} is
loaded. This allows automatic adjustment of letter mappings where appropriate.
They also accept a leading optional argument. This accepts a key--value list of
-control settings. At present, there is one key available: \texttt{lang}.
+control settings. At present, there is one key available: \texttt{locale},
+which can also be accessed via the alias \texttt{lang}.
This
are intended to allow local setting of the language, which can be done using
a BCP-47 descriptor. For example, this could be used to force Turkic
diff --git a/base/doc/usrguide.tex b/base/doc/usrguide.tex
index f5516863..32e12a13 100644
--- a/base/doc/usrguide.tex
+++ b/base/doc/usrguide.tex
@@ -1167,7 +1167,8 @@ engines match those available in standard input encodings (|T1|, |T2|, |LGR|).
\end{quotation}
The case-changing commands take an optional argument which can be used to
-tailor the output. This optional argument accepts the key \texttt{lang},
+tailor the output. This optional argument accepts the key \texttt{locale},
+also available under the alias \texttt{lang},
which can be used to give a language identifier in BCP-47
format. This is then applied to select language-specific features during
case-changing.
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 5618a1f5..af134d37 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -1117,7 +1117,10 @@
% \begin{macrocode}
\ExplSyntaxOn
\keys_define:nn { __kernel }
- { lang .str_set:N = \reserved at a }
+ {
+ lang .meta:n = { locale = {#1} } ,
+ locale .str_set:N = \reserved at a
+ }
\cs_new_protected:Npn \@@text at case@aux #1#2#3
{
\cs_set_nopar:Npn \reserved at a { }
More information about the latex3-commits
mailing list.