[latex3-commits] [latex3/latex3] gh1232-titlecase: Treat leading group correctly in updated titlecase-first (646c62916)

github at latex-project.org github at latex-project.org
Tue Jul 4 23:34:35 CEST 2023


Repository : https://github.com/latex3/latex3
On branch  : gh1232-titlecase
Link       : https://github.com/latex3/latex3/commit/646c62916a805300b8ef54ff9b3b3c351c6bede1

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

commit 646c62916a805300b8ef54ff9b3b3c351c6bede1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jul 4 22:34:35 2023 +0100

    Treat leading group correctly in updated titlecase-first


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

646c62916a805300b8ef54ff9b3b3c351c6bede1
 l3kernel/l3text-case.dtx                | 2 +-
 l3kernel/testfiles/m3text002.luatex.tlg | 8 ++++----
 l3kernel/testfiles/m3text002.ptex.tlg   | 8 ++++----
 l3kernel/testfiles/m3text002.tlg        | 8 ++++----
 l3kernel/testfiles/m3text002.uptex.tlg  | 8 ++++----
 l3kernel/testfiles/m3text002.xetex.tlg  | 8 ++++----
 6 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index 175c6a22c..89ce0c520 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -468,7 +468,7 @@
             \@@_change_case_auxii:nnnn {#4} {#1} {#2} {#3}
           }
       }
-    \@@_change_case_break:w
+    \@@_change_case_skip:nnw {#2} {#3}
   }
 \use:x
   {
diff --git a/l3kernel/testfiles/m3text002.luatex.tlg b/l3kernel/testfiles/m3text002.luatex.tlg
index 72cbfd318..449491028 100644
--- a/l3kernel/testfiles/m3text002.luatex.tlg
+++ b/l3kernel/testfiles/m3text002.luatex.tlg
@@ -16,7 +16,7 @@ TEST 2: Case changes in braces
 {hello} world \par with \ERROR &##
 {HELLO} WORLD \par WITH \ERROR &##
 {Hello} World \par With \ERROR &##
-{Hello} world \par with \ERROR &##
+{Hello} World \par With \ERROR &##
 {Hello} world \par with \ERROR &##
 ============================================================
 ============================================================
@@ -40,13 +40,13 @@ HELLO WORLD
 " Hello World"
 " HELLO WORLD"
 {H}ello World
-{H}ello world
+{H}ello World
 {H}ello World
 {H}ELLO WORLD
 {}hello World
-{}hello world
 {}hello World
-{}hello world
+{}hello World
+{}hello World
 ============================================================
 ============================================================
 TEST 5: Titlecase skipping chars
diff --git a/l3kernel/testfiles/m3text002.ptex.tlg b/l3kernel/testfiles/m3text002.ptex.tlg
index daa9c6442..ba6230713 100644
--- a/l3kernel/testfiles/m3text002.ptex.tlg
+++ b/l3kernel/testfiles/m3text002.ptex.tlg
@@ -16,7 +16,7 @@ TEST 2: Case changes in braces
 {hello} world \par with \ERROR &##
 {HELLO} WORLD \par WITH \ERROR &##
 {Hello} World \par With \ERROR &##
-{Hello} world \par with \ERROR &##
+{Hello} World \par With \ERROR &##
 {Hello} world \par with \ERROR &##
 ============================================================
 ============================================================
@@ -40,13 +40,13 @@ HELLO WORLD
 " Hello World"
 " HELLO WORLD"
 {H}ello World
-{H}ello world
+{H}ello World
 {H}ello World
 {H}ELLO WORLD
 {}hello World
-{}hello world
 {}hello World
-{}hello world
+{}hello World
+{}hello World
 ============================================================
 ============================================================
 TEST 5: Titlecase skipping chars
diff --git a/l3kernel/testfiles/m3text002.tlg b/l3kernel/testfiles/m3text002.tlg
index e7c24f65b..a6e4cd67a 100644
--- a/l3kernel/testfiles/m3text002.tlg
+++ b/l3kernel/testfiles/m3text002.tlg
@@ -16,7 +16,7 @@ TEST 2: Case changes in braces
 {hello} world \par with \ERROR &##
 {HELLO} WORLD \par WITH \ERROR &##
 {Hello} World \par With \ERROR &##
-{Hello} world \par with \ERROR &##
+{Hello} World \par With \ERROR &##
 {Hello} world \par with \ERROR &##
 ============================================================
 ============================================================
@@ -40,13 +40,13 @@ HELLO WORLD
 " Hello World"
 " HELLO WORLD"
 {H}ello World
-{H}ello world
+{H}ello World
 {H}ello World
 {H}ELLO WORLD
 {}hello World
-{}hello world
 {}hello World
-{}hello world
+{}hello World
+{}hello World
 ============================================================
 ============================================================
 TEST 5: Titlecase skipping chars
diff --git a/l3kernel/testfiles/m3text002.uptex.tlg b/l3kernel/testfiles/m3text002.uptex.tlg
index 237ff8618..7bd1f9acd 100644
--- a/l3kernel/testfiles/m3text002.uptex.tlg
+++ b/l3kernel/testfiles/m3text002.uptex.tlg
@@ -16,7 +16,7 @@ TEST 2: Case changes in braces
 {hello} world \par with \ERROR &##
 {HELLO} WORLD \par WITH \ERROR &##
 {Hello} World \par With \ERROR &##
-{Hello} world \par with \ERROR &##
+{Hello} World \par With \ERROR &##
 {Hello} world \par with \ERROR &##
 ============================================================
 ============================================================
@@ -40,13 +40,13 @@ HELLO WORLD
 " Hello World"
 " HELLO WORLD"
 {H}ello World
-{H}ello world
+{H}ello World
 {H}ello World
 {H}ELLO WORLD
 {}hello World
-{}hello world
 {}hello World
-{}hello world
+{}hello World
+{}hello World
 ============================================================
 ============================================================
 TEST 5: Titlecase skipping chars
diff --git a/l3kernel/testfiles/m3text002.xetex.tlg b/l3kernel/testfiles/m3text002.xetex.tlg
index 72cbfd318..449491028 100644
--- a/l3kernel/testfiles/m3text002.xetex.tlg
+++ b/l3kernel/testfiles/m3text002.xetex.tlg
@@ -16,7 +16,7 @@ TEST 2: Case changes in braces
 {hello} world \par with \ERROR &##
 {HELLO} WORLD \par WITH \ERROR &##
 {Hello} World \par With \ERROR &##
-{Hello} world \par with \ERROR &##
+{Hello} World \par With \ERROR &##
 {Hello} world \par with \ERROR &##
 ============================================================
 ============================================================
@@ -40,13 +40,13 @@ HELLO WORLD
 " Hello World"
 " HELLO WORLD"
 {H}ello World
-{H}ello world
+{H}ello World
 {H}ello World
 {H}ELLO WORLD
 {}hello World
-{}hello world
 {}hello World
-{}hello world
+{}hello World
+{}hello World
 ============================================================
 ============================================================
 TEST 5: Titlecase skipping chars





More information about the latex3-commits mailing list.