[latex3-commits] [git/LaTeX3-latex3-latex2e] gh1035: Provide full BCP-47 tag (b8cd037f)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Apr 16 20:41:11 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : gh1035
Link       : https://github.com/latex3/latex2e/commit/b8cd037f3f7e9ce37b4106b62c4462db6b1eff7c

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

commit b8cd037f3f7e9ce37b4106b62c4462db6b1eff7c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Apr 16 19:41:11 2023 +0100

    Provide full BCP-47 tag


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

b8cd037f3f7e9ce37b4106b62c4462db6b1eff7c
 base/doc/clsguide.tex | 1 +
 base/ltfinal.dtx      | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index 04183189..a9731832 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -1151,6 +1151,7 @@ setup. However, if \pkg{babel} or \pkg{polyglossia} are loaded, it is redefined
 expand to the BCP-47 information from the appropriate package. The supported
 arguments are the BCP-47 tag breakdowns:
 \begin{itemize}
+  \item \texttt{tag} The full BCP-47 tag (e.g.~\texttt{en-US})
   \item \texttt{language} (e.g.,~\texttt{de})
   \item \texttt{region} (e.g.,~\texttt{AT})
   \item \texttt{script} (e.g.,~\texttt{Latn})
diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 1c41a918..2d39b84e 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -1068,13 +1068,12 @@
 %    \begin{macrocode}
 \ExplSyntaxOn
 \newcommand*\BCPdata[1]{
-  \str_case:nnF {#1}
+  \str_case:nn {#1}
     {
       { language } { en }
       { region }   { US }
-      { casing }   { }
+      { tag }      { en-US }
     }
-    { en-US }
 }
 \ExplSyntaxOff
 %    \end{macrocode}





More information about the latex3-commits mailing list.