diff options
author | Karl Berry <karl@freefriends.org> | 2023-02-07 20:45:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-02-07 20:45:23 +0000 |
commit | d940fe123248ee02becf8b8ff34619824b784112 (patch) | |
tree | 3de119e7e72ead636233a2da42b758ee9579a0a7 /Master/texmf-dist/source/latex/l3kernel/l3text.dtx | |
parent | bc30a1c1247c5287d7332942ba096a2ef1bf5a0f (diff) |
l3kernel (7feb23)
git-svn-id: svn://tug.org/texlive/trunk@65749 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3text.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3text.dtx | 72 |
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} |