summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3kernel/l3kernel-functions.dtx')
-rw-r--r--macros/latex/contrib/l3kernel/l3kernel-functions.dtx49
1 files changed, 48 insertions, 1 deletions
diff --git a/macros/latex/contrib/l3kernel/l3kernel-functions.dtx b/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
index 6a5a81e6ef..143231de87 100644
--- a/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
+++ b/macros/latex/contrib/l3kernel/l3kernel-functions.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2022-11-02}
+% \date{Released 2022-12-17}
%
% \maketitle
%
@@ -105,6 +105,18 @@
% all of these tests succeed then the \meta{true code} is run.
% \end{function}
%
+% \begin{function}[EXP]{\__kernel_codepoint_to_bytes:n}
+% \begin{syntax}
+% \cs{__kernel_codepoint_to_bytes:n} \Arg{codepoint}
+% \end{syntax}
+% Converts the \meta{codepoint} to UTF-8 bytes. The expansion
+% of this function comprises four brace groups, each of which will contain
+% a hexadecimal value: the appropriate byte. As UTF-8 is a variable-length,
+% one or more of the groups may be empty: the bytes read in the logical order,
+% such that a two-byte codepoint will have groups |#1| and |#2| filled
+% and |#3| and |#4| empty.
+% \end{function}
+%
% \begin{function}{\__kernel_cs_parm_from_arg_count:nnF}
% \begin{syntax}
% \cs{__kernel_cs_parm_from_arg_count:nnF} \Arg{follow-on} \Arg{args} \Arg{false code}
@@ -477,6 +489,41 @@
% \meta{tl~var} and \meta{tokens}.
% \end{function}
%
+% \begin{function}[EXP]{\__kernel_codepoint_data:nn}
+% \begin{syntax}
+% \cs{__kernel_codepoint_data:nn} \Arg{type} \Arg{codepoint}
+% \end{syntax}
+% Expands to the appropriate value for the \meta{type} of data
+% requested for a \meta{codepoint}. The current list of \meta{types} and
+% results are
+% \begin{description}
+% \item[\texttt{lowercase}] The \emph{single} codepoint specified by
+% \texttt{UnicodeData.txt} for lowercase mapping of the codepoint:
+% will be equal to the input \meta{codepoint} if there is no mapping
+% specified in \texttt{UnicodeData.txt}
+% \item[\texttt{uppercase}] The \emph{single} codepoint specified by
+% \texttt{UnicodeData.txt} for uppercase mapping of the codepoint:
+% will be equal to the input \meta{codepoint} if there is no mapping
+% specified in \texttt{UnicodeData.txt}
+% \end{description}
+% \end{function}
+%
+% \begin{function}[EXP]{\__kernel_codepoint_case:nn}
+% \begin{syntax}
+% \cs{__kernel_codepoint_case:nn} \Arg{mapping} \Arg{codepoint}
+% \end{syntax}
+% Expands to a list of three balanced text, of which at least the first
+% will contain a codepoint. This list of up to three codepoints specifies
+% the full case mapping for the input \meta{codepoint}. The \meta{mapping}
+% should be one of
+% \begin{itemize}
+% \item \texttt{casefold}
+% \item \texttt{lowercase}
+% \item \texttt{titlecase}
+% \item \texttt{uppercase}
+% \end{itemize}
+% \end{function}
+%
% \subsection{Kernel backend functions}
%
% These functions are required to pass information to the backend. The nature