diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx b/Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx index 38558ff9325..eb1fa9c4b29 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3candidates.dtx @@ -38,7 +38,7 @@ \documentclass[full]{l3doc} %</driver> %<*driver|package> -\GetIdInfo$Id: l3candidates.dtx 5366 2014-08-24 21:35:03Z bruno $ +\GetIdInfo$Id: l3candidates.dtx 5466 2014-11-23 12:37:29Z joseph $ {L3 Experimental additions to l3kernel} %</driver|package> %<*driver> @@ -857,7 +857,7 @@ % level concept needed for both `title' and `sentence' casing of text.) % % As is generally true for \pkg{expl3}, these functions are designed to -% work with engine-native input only. As such, when used with \pdfTeX{} +% work with Unicode input only. As such, when used with \pdfTeX{} % \emph{only} the characters \texttt{a}--\texttt{zA}--\texttt{Z} are % modified. When used with \XeTeX{} or \LuaTeX{} a full range of Unicode % transformations are enabled. Specifically, the standard mappings here @@ -3109,12 +3109,18 @@ % assumption is made that in real text the end of a word will be indicated by % a small number of chars. As this may have to be extended over time to other % cases, the easiest handling is offered by using the numerical values for -% these chars. +% these chars. Notice that if the next token is a control sequence there is +% a need to make sure it's not the end-of-loop, as that will happen if +% the word in question is at the end of the current list. % \begin{macrocode} \cs_new:Npn \@@_change_case_lower_sigma:Nw #1#2 \q_recursion_stop { \token_if_cs:NTF #1 - { \c_@@_std_sigma_tl } + { + \token_if_eq_meaning:NNTF #1 \q_recursion_tail + { \c_@@_final_sigma_tl } + { \c_@@_std_sigma_tl } + } { \exp_after:wN \@@_change_case_lower_sigma_loop:Nw \exp_after:wN #1 \c_@@_after_final_sigma_clist |