diff options
author | Karl Berry <karl@freefriends.org> | 2023-05-05 21:23:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-05-05 21:23:26 +0000 |
commit | 847808083e98635eb04dad9a4fb45ee3936f5520 (patch) | |
tree | a1db51910bc0b3e2f49eb6fb17260dad92718979 /Master/texmf-dist/source/latex/l3kernel/l3token.dtx | |
parent | 7ba90ca45bbdc7354c25890431ec21f1a9f58ffd (diff) |
l3kernel (5may23)
git-svn-id: svn://tug.org/texlive/trunk@67026 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3token.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3token.dtx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3token.dtx b/Master/texmf-dist/source/latex/l3kernel/l3token.dtx index e934973a511..dad206a4066 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3token.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3token.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2023-04-20} +% \date{Released 2023-05-05} % % \maketitle % @@ -155,6 +155,11 @@ % \end{texnote} % \end{function} % +% \begin{variable}[added = 2017-08-07]{\c_catcode_active_space_tl} +% Token list containing one character with category code $13$, +% (\enquote{active}), and character code $32$ (space). +% \end{variable} +% % \begin{variable}[added = 2011-09-05]{\c_catcode_other_space_tl} % Token list containing one character with category code $12$, % (\enquote{other}), and character code $32$ (space). @@ -1838,6 +1843,21 @@ % \end{macro} % \end{macro} % +% \begin{variable}{\c_catcode_active_space_tl} +% While \cs{char_generate:nn} can produce active characters in some +% engines it cannot in general. It would be possible to simply change +% the catcode of space but then the code would need to avoid all +% spaces, making it quite unreadable. Instead we use the primitive +% \cs{tex_lowercase:D} trick. +% \begin{macrocode} +\group_begin: + \char_set_catcode_active:N * + \char_set_lccode:nn { `* } { `\ } + \tex_lowercase:D { \tl_const:Nn \c_catcode_active_space_tl { * } } +\group_end: +% \end{macrocode} +% \end{variable} +% % \begin{macro}{\c_catcode_other_space_tl} % Create a space with category code $12$: an \enquote{other} space. % \begin{macrocode} |