[latex3-commits] [git/LaTeX3-latex3-latex3] main: Move multi-byte change change data to __kernel (a1c2361ef)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Mar 24 07:06:15 CET 2022


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

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

commit a1c2361ef275280f4da1d8153605dce053ef627b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Mar 24 06:06:15 2022 +0000

    Move multi-byte change change data to __kernel


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

a1c2361ef275280f4da1d8153605dce053ef627b
 l3kernel/l3text-case.dtx | 31 +++++++++++++++----------------
 1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/l3kernel/l3text-case.dtx b/l3kernel/l3text-case.dtx
index 61681108e..e96634dcb 100644
--- a/l3kernel/l3text-case.dtx
+++ b/l3kernel/l3text-case.dtx
@@ -670,10 +670,10 @@
       { \@@_change_case_char_UTFviii:nnnn {#1} {#2} {#3} {#4#5#6#7} }
     \cs_new:Npn \@@_change_case_char_UTFviii:nnnn #1#2#3#4
       {
-        \cs_if_exist:cTF { c_@@_ #1 case_ \tl_to_str:n {#4} _tl }
+        \cs_if_exist:cTF { c__kernel_ #1 case_ \tl_to_str:n {#4} _tl }
           {
             \@@_change_case_store:v
-              { c_@@_ #1 case_ \tl_to_str:n {#4} _tl }
+              { c__kernel_ #1 case_ \tl_to_str:n {#4} _tl }
           }
           { \@@_change_case_store:n {#4} }
         \use:c { @@_change_case_char_next_ #2 :nn } {#2} {#3}
@@ -1536,11 +1536,11 @@
 %
 % For $8$-bit engines we now need to define the case-change data for
 % the multi-octet mappings. This data is here not in the \pkg{char} module
-% as the multi-byte nature means they are never |N|-type.
-% These need a list of what code points are
-% doable in |T1| so the list is hard coded (there's no saving in loading
-% the mappings dynamically). All of the straight-forward ones have two
-% octets, so that is taken as read.
+% as the multi-byte nature means they are never |N|-type. As this data is
+% needed both for text and string work, it is stored as |kernel|: it remains
+% internal as it is not really suitable for wider exposure.
+%
+% The first set of codepoints are those in |T1|: all of these are two bytes. 
 %    \begin{macrocode}
 \group_begin:
   \bool_lazy_or:nnF
@@ -1562,7 +1562,7 @@
         {
           \tl_const:cx
             {
-              c_@@_ #1 case_
+              c__kernel_ #1 case_
               \char_generate:nn {#2} { 12 }
               \char_generate:nn {#3} { 12 }
               _tl
@@ -1578,7 +1578,7 @@
         {
           \tl_const:cx
             {
-              c_@@_lowercase_
+              c__kernel_lowercase_
               \char_generate:nn {#1} { 12 }
               \char_generate:nn {#2} { 12 }
               _tl
@@ -1694,8 +1694,7 @@
         { 0218 } { 0219 }
         { 021A } { 021B }
 %    \end{macrocode}
-% Add |T2| (Cyrillic) as this is doable using a classical \tn{MakeUppercase}
-% approach.
+% Add |T2| (Cyrillic) : again two bytes.
 %    \begin{macrocode}
         { 0400 } { 0450 }
         { 0401 } { 0451 }
@@ -1818,7 +1817,7 @@
               {
                 \tl_const:cx
                   {
-                    c_@@_ #3 case_
+                    c__kernel_ #3 case_
                     \char_generate:nn {##1} { 12 }
                     \char_generate:nn {##2} { 12 }
                     _tl
@@ -1859,7 +1858,7 @@
               {
                 \tl_const:cn
                   {
-                    c_@@_ #3 case_
+                    c__kernel_ #3 case_
                     \char_generate:nn {##1} { 12 }
                     \char_generate:nn {##2} { 12 }
                     _tl
@@ -1880,7 +1879,7 @@
         {
           \tl_const:cx
             {
-              c_@@_ #1 case_
+              c__kernel_ #1 case_
               \char_generate:nn {#2} { 12 }
               \char_generate:nn {#3} { 12 }
               \char_generate:nn {#4} { 12 }
@@ -1899,7 +1898,7 @@
         {
           \tl_const:cx
             {
-              c_@@_lowercase_
+              c__kernel_lowercase_
               \char_generate:nn {#1} { 12 }
               \char_generate:nn {#2} { 12 }
               \char_generate:nn {#3} { 12 }
@@ -2025,7 +2024,7 @@
               {
                 \tl_const:cx
                   {
-                    c_@@_ #3 case_
+                    c__kernel_ #3 case_
                     \char_generate:nn {##1} { 12 }
                     \char_generate:nn {##2} { 12 }
                     \char_generate:nn {##3} { 12 }





More information about the latex3-commits mailing list.