[latex3-commits] [git/LaTeX3-latex3-latex3] main: Correct argument order for \text_switch_case:nnnn (730bc0af4)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Jul 15 12:26:10 CEST 2022
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/730bc0af4e724d340bb241345e2590b288ebb3d8
>---------------------------------------------------------------
commit 730bc0af4e724d340bb241345e2590b288ebb3d8
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Jul 15 11:26:10 2022 +0100
Correct argument order for \text_switch_case:nnnn
>---------------------------------------------------------------
730bc0af4e724d340bb241345e2590b288ebb3d8
l3kernel/CHANGELOG.md | 3 +++
l3kernel/l3text-case.dtx | 4 ++--
l3kernel/testfiles/m3text002.luatex.tlg | 8 ++++----
l3kernel/testfiles/m3text002.tlg | 8 ++++----
l3kernel/testfiles/m3text002.uptex.tlg | 8 ++++----
l3kernel/testfiles/m3text002.xetex.tlg | 8 ++++----
6 files changed, 21 insertions(+), 18 deletions(-)
diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 68df90b46..7c526cf80 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Fixed
+- Correct argument order in `\text_case_switch:nnnn`
+
## [2022-07-14]
### Changed
diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index 592e598b2..f6ca476d4 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -505,12 +505,12 @@
}
\cs_new:Npn \@@_change_case_switch_lower:nnNnnnn #1#2#3#4#5#6#7
{
- \@@_change_case_store:n {#5}
+ \@@_change_case_store:n {#6}
\@@_change_case_loop:nnw {#1} {#2}
}
\cs_new:Npn \@@_change_case_switch_upper:nnNnnnn #1#2#3#4#5#6#7
{
- \@@_change_case_store:n {#6}
+ \@@_change_case_store:n {#5}
\@@_change_case_loop:nnw {#1} {#2}
}
\cs_new:Npn \@@_change_case_switch_title:nnNnnnn #1#2#3#4#5#6#7
diff --git a/l3kernel/testfiles/m3text002.luatex.tlg b/l3kernel/testfiles/m3text002.luatex.tlg
index 48f2914f7..5cc130a16 100644
--- a/l3kernel/testfiles/m3text002.luatex.tlg
+++ b/l3kernel/testfiles/m3text002.luatex.tlg
@@ -341,12 +341,12 @@ l. ... }
============================================================
TEST 29: Case change switching
============================================================
-UPPER
lower
+UPPER
Title
-WORDS UPPER
-words lower
-Words lower
+WORDS lower
+words UPPER
+Words UPPER
============================================================
============================================================
TEST 30: Case change replacements
diff --git a/l3kernel/testfiles/m3text002.tlg b/l3kernel/testfiles/m3text002.tlg
index 4c8992e95..950bd0e03 100644
--- a/l3kernel/testfiles/m3text002.tlg
+++ b/l3kernel/testfiles/m3text002.tlg
@@ -337,12 +337,12 @@ l. ... }
============================================================
TEST 29: Case change switching
============================================================
-UPPER
lower
+UPPER
Title
-WORDS UPPER
-words lower
-Words lower
+WORDS lower
+words UPPER
+Words UPPER
============================================================
============================================================
TEST 30: Case change replacements
diff --git a/l3kernel/testfiles/m3text002.uptex.tlg b/l3kernel/testfiles/m3text002.uptex.tlg
index 430127527..86a5f054c 100644
--- a/l3kernel/testfiles/m3text002.uptex.tlg
+++ b/l3kernel/testfiles/m3text002.uptex.tlg
@@ -337,12 +337,12 @@ l. ... }
============================================================
TEST 29: Case change switching
============================================================
-UPPER
lower
+UPPER
Title
-WORDS UPPER
-words lower
-Words lower
+WORDS lower
+words UPPER
+Words UPPER
============================================================
============================================================
TEST 30: Case change replacements
diff --git a/l3kernel/testfiles/m3text002.xetex.tlg b/l3kernel/testfiles/m3text002.xetex.tlg
index 48f2914f7..5cc130a16 100644
--- a/l3kernel/testfiles/m3text002.xetex.tlg
+++ b/l3kernel/testfiles/m3text002.xetex.tlg
@@ -341,12 +341,12 @@ l. ... }
============================================================
TEST 29: Case change switching
============================================================
-UPPER
lower
+UPPER
Title
-WORDS UPPER
-words lower
-Words lower
+WORDS lower
+words UPPER
+Words UPPER
============================================================
============================================================
TEST 30: Case change replacements
More information about the latex3-commits
mailing list.