[latex3-commits] [git/LaTeX3-latex3-latex3] unicode-data: Use "codepoint" as prefix for Unicode module (05e9d20b5)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Oct 8 11:59:42 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : unicode-data
Link       : https://github.com/latex3/latex3/commit/05e9d20b56a44dea38f43ed9cca0e01cb316fab6

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

commit 05e9d20b56a44dea38f43ed9cca0e01cb316fab6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Oct 8 10:58:34 2022 +0100

    Use "codepoint" as prefix for Unicode module
    
    This will make sense once \char_... renames land.


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

05e9d20b56a44dea38f43ed9cca0e01cb316fab6
 l3kernel/doc/l3prefixes.csv     |  1 +
 l3kernel/l3kernel-functions.dtx |  6 +++---
 l3kernel/l3str.dtx              |  2 +-
 l3kernel/l3token.dtx            |  6 +++---
 l3kernel/l3unicode.dtx          | 18 +++++++++---------
 5 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/l3kernel/doc/l3prefixes.csv b/l3kernel/doc/l3prefixes.csv
index 31d77835d..c69216e09 100644
--- a/l3kernel/doc/l3prefixes.csv
+++ b/l3kernel/doc/l3prefixes.csv
@@ -41,6 +41,7 @@ cmd,latex2e,The LaTeX Project,https://www.latex-project.org/latex3.html,https://
 code,l3kernel,The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2021-04-23,2021-04-23,
 codedoc,l3kernel,The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2012-09-27,2012-09-27,Somewhat experimental: may change
 codehigh,codehigh,Jianrui Lyu,https://github.com/lvjr/codehigh,https://github.com/lvjr/codehigh.git,https://github.com/lvjr/codehigh/issues,2022-04-02,2022-04-02,
+codepoint,l3kernel,The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2012-09-27,2012-09-27,
 coffin,"l3kernel,xcoffins",The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2012-09-27,2012-09-27,
 colon,l3kernel,The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2018-05-12,2018-05-12,
 color,l3kernel,The LaTeX Project,https://www.latex-project.org/latex3.html,https://github.com/latex3/latex3.git,https://github.com/latex3/latex3/issues,2012-09-27,2012-09-27,
diff --git a/l3kernel/l3kernel-functions.dtx b/l3kernel/l3kernel-functions.dtx
index a67161522..fa88fd502 100644
--- a/l3kernel/l3kernel-functions.dtx
+++ b/l3kernel/l3kernel-functions.dtx
@@ -477,7 +477,7 @@
 %   \meta{tl~var} and \meta{tokens}.
 % \end{function}
 %
-% \begin{function}[EXP]{\__kernel_unicode_data:nn}
+% \begin{function}[EXP]{\__kernel_codepoint_data:nn}
 %   \begin{syntax}
 %     \cs{__kernel_unicode_data:nn} \Arg{type} \Arg{codepoint}
 %   \end{syntax}
@@ -496,7 +496,7 @@
 %   \end{itemize}
 % \end{function}
 %
-% \begin{function}[EXP]{\__kernel_unicode_case:nn}
+% \begin{function}[EXP]{\__kernel_codepoint_case:nn}
 %   \begin{syntax}
 %     \cs{__kernel_unicode_case:nn} \Arg{mapping} \Arg{codepoint}
 %   \end{syntax}
@@ -512,7 +512,7 @@
 %   \end{itemize}
 % \end{function}
 %
-% \begin{function}[EXP]{\__kernel_unicode_nfd:n}
+% \begin{function}[EXP]{\__kernel_codepoint_nfd:n}
 %   \begin{syntax}
 %     \cs{__kernel_unicode_nfd:nn} \Arg{mapping}
 %   \end{syntax}
diff --git a/l3kernel/l3str.dtx b/l3kernel/l3str.dtx
index b56f9a9b1..82e907b88 100644
--- a/l3kernel/l3str.dtx
+++ b/l3kernel/l3str.dtx
@@ -2021,7 +2021,7 @@
     \@@_change_case_output:fw
       {
         \exp_args:Ne \@@_change_case_char_aux:nnn
-          { \__kernel_unicode_case:nn {#2} {#1} } {#1} {#3}
+          { \__kernel_codepoint_case:nn {#2} {#1} } {#1} {#3}
       }
     \@@_change_case_loop:nw {#2}
   }
diff --git a/l3kernel/l3token.dtx b/l3kernel/l3token.dtx
index b56a7bd96..b2b5e3468 100644
--- a/l3kernel/l3token.dtx
+++ b/l3kernel/l3token.dtx
@@ -1822,7 +1822,7 @@
 \cs_new:Npn \@@_to_nfd:nn #1#2
   {
     \exp_args:Ne \@@_to_nfd:nnn
-      { \__kernel_unicode_nfd:n {#1} } {#1} {#2}
+      { \__kernel_codepoint_nfd:n {#1} } {#1} {#2}
   }
 \cs_new:Npn \@@_to_nfd:nnn #1#2#3 { \@@_to_nfd:nnnn #1 {#2} {#3} }
 \cs_new:Npn \@@_to_nfd:nnnn #1#2#3#4
@@ -1917,7 +1917,7 @@
       { ~ }
       {
         \exp_args:Ne \@@_change_case_auxi:nN
-          { \__kernel_unicode_case:nn {#1} {`#2} } #2
+          { \__kernel_codepoint_case:nn {#1} {`#2} } #2
       }
   }
 \cs_new:Npn \@@_change_case_auxi:nN #1#2
@@ -2005,7 +2005,7 @@
       { ~ }
       {
         \exp_args:Ne \@@_str_change_case_aux:nN
-          { \__kernel_unicode_case:nn {#1} {`#2} } #2
+          { \__kernel_codepoint_case:nn {#1} {`#2} } #2
       }
   }
 \cs_new:Npn \@@_str_change_case_aux:nN #1#2
diff --git a/l3kernel/l3unicode.dtx b/l3kernel/l3unicode.dtx
index e513cbd0b..f05b781dd 100644
--- a/l3kernel/l3unicode.dtx
+++ b/l3kernel/l3unicode.dtx
@@ -64,7 +64,7 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-%<@@=unicode>
+%<@@=codeppint>
 %    \end{macrocode}
 %
 % Text operations requires data from the Unicode Consortium. Data read into
@@ -451,7 +451,7 @@
 \group_end:
 %    \end{macrocode}
 %
-% \begin{macro}[EXP]{\__kernel_unicode_data:nn}
+% \begin{macro}[EXP]{\__kernel_codepoint_data:nn}
 % \begin{macro}[EXP]{\@@_data:nnn}
 %   Recover data from a two-stage table: entirely generic as this applies to
 %   all tables (as we use the same block size for all of them). Notice that
@@ -459,7 +459,7 @@
 %   function is needed \emph{before} loading the special casing data, as there
 %   we need to be able to check the standard case mappings.
 %    \begin{macrocode}
-\cs_new:Npn \__kernel_unicode_data:nn #1#2
+\cs_new:Npn \__kernel_codepoint_data:nn #1#2
   {
     \exp_args:Nf \@@_data:nnn
       {
@@ -501,7 +501,7 @@
     {
       \if:w \tl_head:n { #2 ? } C
         \reverse_if:N \if_int_compare:w
-          \int_eval:n { \__kernel_unicode_data:nn { lowercase } {"#1} + "#1 }
+          \int_eval:n { \__kernel_codepoint_data:nn { lowercase } {"#1} + "#1 }
             = "#3 ~
           \tl_const:cx
             { c_@@_casefold_ \@@_generate_str:n {"#1} _tl }
@@ -575,7 +575,7 @@
 \group_end:
 %    \end{macrocode}
 %
-% \begin{macro}[EXP]{\__kernel_unicode_case:nn}
+% \begin{macro}[EXP]{\__kernel_codepoint_case:nn}
 % \begin{macro}[EXP]{\@@_case:nnn}
 % \begin{macro}[EXP]
 %   {\@@_uppercase:n, \@@_lowercase:n, \@@_titlecase:n, \@@_casefold:n}
@@ -585,7 +585,7 @@
 %   folding can also be covered. At this level, all that needs to be returned
 %   is the
 %    \begin{macrocode}
-\cs_new:Npn \__kernel_unicode_case:nn #1#2
+\cs_new:Npn \__kernel_codepoint_case:nn #1#2
   {
     \exp_args:Ne \@@_case:nnn
       { \@@_generate_str:n {#2} } {#1} {#2}
@@ -605,7 +605,7 @@
 \cs_new:Npn \@@_casefold:n  { \@@_case:nn { lowercase } }
 \cs_new:Npn \@@_case:nn #1#2
   {
-    { \int_eval:n { \__kernel_unicode_data:nn {#1} {#2} + #2 } }
+    { \int_eval:n { \__kernel_codepoint_data:nn {#1} {#2} + #2 } }
     { }
     { }
   }
@@ -616,11 +616,11 @@
 % \end{macro}
 %
 %
-% \begin{macro}[EXP]{\__kernel_unicode_nfd:n}
+% \begin{macro}[EXP]{\__kernel_codepoint_nfd:n}
 % \begin{macro}[EXP]{\@@_nfd:nn}
 %   A simple interface.
 %    \begin{macrocode}
-\cs_new:Npn \__kernel_unicode_nfd:n #1
+\cs_new:Npn \__kernel_codepoint_nfd:n #1
   { \exp_args:Ne \@@_nfd:nn { \@@_generate_str:n {#1} } {#1} }
 \cs_new:Npn \@@_nfd:nn #1#2
   {





More information about the latex3-commits mailing list.