diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx b/Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx index 8b55915aec0..dd6e72f25e5 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3text-case.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2023-06-30} +% \date{Released 2023-08-03} % % \maketitle % @@ -147,6 +147,7 @@ % \begin{macro}[EXP]{\@@_change_case_math_group:nnNn} % \begin{macro}[EXP]{\@@_change_case_math_space:nnNw} % \begin{macro}[EXP]{\@@_change_case_cs_check:nnN} +% \begin{macro}[EXP]{\@@_change_case_cs_check:nnn} % \begin{macro}[EXP]{\@@_change_case_exclude:nnN} % \begin{macro}[EXP]{\@@_change_case_exclude:nnnN} % \begin{macro}[EXP]{\@@_change_case_exclude:nnNN} @@ -443,13 +444,18 @@ % \begin{macrocode} \cs_new:Npn \@@_change_case_cs_check:nnN #1#2#3 { - \token_if_cs:NTF #3 - { \@@_change_case_exclude:nnN {#1} {#2} } + \exp_args:Ne \@@_change_case_cs_check:nnn + { \@@_token_to_explicit:N #3 } {#1} {#2} + } +\cs_new:Npn \@@_change_case_cs_check:nnn #1#2#3 + { + \token_if_cs:NTF #1 + { \@@_change_case_exclude:nnN {#2} {#3} } { \@@_codepoint_process:nN - { \use:c { @@_change_case_custom_ #1 :nnn } {#1} {#2} } + { \use:c { @@_change_case_custom_ #2 :nnn } {#2} {#3} } } - #3 + #1 } % \end{macrocode} % To deal with a control sequence there is first a need to test if it is @@ -853,6 +859,7 @@ % \end{macro} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macro}{\text_declare_case_equivalent:Nn} % Create equivalents to allow replacement. |