[latex3-commits] [git/LaTeX3-latex3-latex3] main: Re-order args for \text_declare_...case_mapping:nnn (d5d36444a)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Apr 20 10:24:01 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/d5d36444abf6703078f84991e73d53d0ef0dc181

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

commit d5d36444abf6703078f84991e73d53d0ef0dc181
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Apr 20 09:24:01 2023 +0100

    Re-order args for \text_declare_...case_mapping:nnn
    
    Formally a breaking change but it's only been one day!


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

d5d36444abf6703078f84991e73d53d0ef0dc181
 l3kernel/CHANGELOG.md            | 5 +++++
 l3kernel/l3text-case.dtx         | 2 +-
 l3kernel/l3text.dtx              | 4 ++--
 l3kernel/testfiles/m3text002.lvt | 2 +-
 4 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 0545e0885..081025556 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -7,6 +7,11 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Changed
+- Re-order arguments of `\text_declare_lowercase_mapping:nnn`,
+  `\text_declare_titlecase_mapping:nnn` and
+  `\text_declare_uppercase_mapping:nnn`
+
 ## [2023-04-19]
 
 ### Added
diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index a71bbc38f..8e1c3a325 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -908,7 +908,7 @@
 \cs_new_protected:Npn \@@_declare_case_mapping:nnnn #1#2#3#4
   {
     \exp_args:Ne \@@_declare_case_mapping_aux:nnnn
-      { \codepoint_str_generate:n {#2} } {#1} {#3} {#4}
+      { \codepoint_str_generate:n {#3} } {#1} {#2} {#4}
   }
 \cs_new_protected:Npn \@@_declare_case_mapping_aux:nnnn #1#2#3#4
   {
diff --git a/l3kernel/l3text.dtx b/l3kernel/l3text.dtx
index 40c8e5a6a..4410e61d3 100644
--- a/l3kernel/l3text.dtx
+++ b/l3kernel/l3text.dtx
@@ -216,7 +216,7 @@
 %   \meta{cmd} (a single token) is encountered during case changing.
 % \end{function}
 %
-% \begin{function}[added = 2023-04-11]
+% \begin{function}[added = 2023-04-11, updated = 2023-04-20]
 %   {
 %     \text_declare_lowercase_mapping:nn  ,
 %     \text_declare_lowercase_mapping:nnn ,
@@ -227,7 +227,7 @@
 %   }
 %   \begin{syntax}
 %     \cs{text_declare_lowercase_mapping:nn} \Arg{codeppoint}  \Arg{replacement}
-%     \cs{text_declare_lowercase_mapping:nnn} \Arg{codeppoint} \Arg{BCP-47} \Arg{replacement}
+%     \cs{text_declare_lowercase_mapping:nnn} \Arg{BCP-47} \Arg{codeppoint} \Arg{replacement}
 %   \end{syntax}
 %   Declares that the \meta{replacement} tokens should be used when case mapping
 %   the \meta{codepoint}, rather than the standard mapping given in the
diff --git a/l3kernel/testfiles/m3text002.lvt b/l3kernel/testfiles/m3text002.lvt
index 499ade0ac..06bbefcbe 100644
--- a/l3kernel/testfiles/m3text002.lvt
+++ b/l3kernel/testfiles/m3text002.lvt
@@ -410,7 +410,7 @@
 \TEST { Case~change~customisation }
   {
     \text_declare_uppercase_mapping:nn { "01F0 }  { \v J }
-    \text_declare_uppercase_mapping:nnn { "01F0 } { xx } { \v I }
+    \text_declare_uppercase_mapping:nnn { xx } { "01F0 } { \v I }
     \tl_show:x
       {
         \text_lowercase:n { ǰ }





More information about the latex3-commits mailing list.