summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3text.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3text.dtx72
1 files changed, 36 insertions, 36 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
index b6516740066..c9121e6750a 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
@@ -31,7 +31,7 @@
% \fi
%
% \title{^^A
-% The \textsf{l3text} package: text processing^^A
+% The \textsf{l3text} package: Text processing^^A
% }
%
% \author{^^A
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2023-02-02}
+% \date{Released 2023-02-07}
%
% \maketitle
%
@@ -58,7 +58,8 @@
%
% \section{Expanding text}
%
-% \begin{function}[EXP, added = 2020-01-02]{\text_expand:n}
+% \begin{function}[EXP, added = 2020-01-02, updated = 2023-02-07]
+% {\text_expand:n}
% \begin{syntax}
% \cs{text_expand:n} \Arg{text}
% \end{syntax}
@@ -69,8 +70,7 @@
% \cs{l_text_math_delims_tl} or as the argument to commands listed
% in \cs{l_text_math_arg_tl}). Commands which are neither engine-
% nor \LaTeX{} protected are expanded exhaustively.
-% Any commands listed in \cs{l_text_expand_exclude_tl},
-% \cs{l_text_accents_tl} and \cs{l_text_letterlike_tl} are excluded from
+% Any commands listed in \cs{l_text_expand_exclude_tl} are excluded from
% expansion.
% \end{function}
%
@@ -84,7 +84,11 @@
% \end{syntax}
% Declares that the \meta{replacement} tokens should be used whenever the
% \meta{cmd} (a single token) is encountered. The \meta{replacement} tokens
-% should be expandable.
+% should be expandable. A token can be \enquote{replaced} by itself if
+% the defined replacement wraps it in \cs{exp_not:n}, for example
+% \begin{verbatim}
+% \text_declare_expand_equivalent:Nn \' { \exp_not:n { \' } }
+% \end{verbatim}
% \end{function}
%
% \section{Case changing}
@@ -165,8 +169,9 @@
% \item Greek (\texttt{el}).
% Removes accents from Greek letters when uppercasing; titlecasing
% leaves accents in place. A variant \texttt{el-x-iota} is available
-% which retains the \textit{ypogegrammeni} (subscript muted iota)
-% when uppercasing: the standard version converts these to a following
+% which converts the \textit{ypogegrammeni} (subscript muted iota)
+% to capital iota when uppercasing: the standard version retains the
+% subscript versions.
% capital iota.
% \item Lithuanian (\texttt{lt}).
% The lowercase letters i and j should retain a dot above when the
@@ -255,16 +260,6 @@
%
% \section{Control variables}
%
-% \begin{variable}{\l_text_accents_tl}
-% Lists commands which represent accents, and which are left unchanged
-% by expansion. (Defined only for the \LaTeXe{} package.)
-% \end{variable}
-%
-% \begin{variable}{\l_text_letterlike_tl}
-% Lists commands which represent letters; these are left unchanged by
-% expansion. (Defined only for the \LaTeXe{} package.)
-% \end{variable}
-%
% \begin{variable}{\l_text_math_arg_tl}
% Lists commands present in the \meta{text} where the argument of the
% command should be treated as math mode material. The treatment here is
@@ -794,27 +789,10 @@
% \subsection{Configuration variables}
%
% \begin{variable}{\l_text_accents_tl, \l_text_letterlike_tl}
-% Special cases for accents and letter-like symbols, which in some cases will
-% need to be converted further.
+% Used to be used for excluding these ideas from expansion: now deprecated.
% \begin{macrocode}
\tl_new:N \l_text_accents_tl
-\tl_set:Nn \l_text_accents_tl
- { \` \' \^ \~ \= \u \. \" \r \H \v \d \c \k \b \t }
\tl_new:N \l_text_letterlike_tl
-\tl_set:Nn \l_text_letterlike_tl
- {
- \AA \aa
- \AE \ae
- \DH \dh
- \DJ \dj
- \IJ \ij
- \L \l
- \NG \ng
- \O \o
- \OE \oe
- \SS \ss
- \TH \th
- }
% \end{macrocode}
% \end{variable}
%
@@ -1513,6 +1491,28 @@
% \end{macrocode}
% \end{macro}
%
+% Prevent expansion of various standard values.
+% \begin{macrocode}
+\tl_map_inline:nn
+ { \` \' \^ \~ \= \u \. \" \r \H \v \d \c \k \b \t }
+ { \text_declare_expand_equivalent:Nn #1 { \exp_not:n {#1} } }
+\tl_map_inline:nn
+ {
+ \AA \aa
+ \AE \ae
+ \DH \dh
+ \DJ \dj
+ \IJ \ij
+ \L \l
+ \NG \ng
+ \O \o
+ \OE \oe
+ \SS \ss
+ \TH \th
+ }
+ { \text_declare_expand_equivalent:Nn #1 { \exp_not:n {#1} } }
+% \end{macrocode}
+%
% \begin{macrocode}
%</package>
% \end{macrocode}