diff options
Diffstat (limited to 'tex/context/base/toks-ini.mkiv')
-rw-r--r-- | tex/context/base/toks-ini.mkiv | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/toks-ini.mkiv b/tex/context/base/toks-ini.mkiv index e8b296210..4eb756b75 100644 --- a/tex/context/base/toks-ini.mkiv +++ b/tex/context/base/toks-ini.mkiv @@ -46,24 +46,24 @@ % \stoptext \unexpanded\def\defineremapper[#1]% - {\setuevalue{\e!start#1}{\tokens_start_remapper{#1}}% - \setuevalue{\e!stop #1}{\tokens_stop_remapper {#1}}% + {\setuevalue{\e!start#1}{\toks_start_remapper{#1}}% + \setuevalue{\e!stop #1}{\toks_stop_remapper {#1}}% \letvalue{#1}\relax \normalexpanded{\expandafter\def\csname#1\endcsname##1{\csname\e!start#1\endcsname##1\csname\e!stop#1\endcsname}}} -\unexpanded\def\tokens_start_remapper#1% +\unexpanded\def\toks_start_remapper#1% {\ctxlua{tokens.collectors.install("#1", "\e!stop#1")}} -\unexpanded\def\tokens_stop_remapper#1% +\unexpanded\def\toks_stop_remapper#1% {\ctxlua{tokens.collectors.handle("#1",function(str) return tokens.collectors.remapper.convert("#1",str) end, true)}} \unexpanded\def\remaptokens#1% {\ctxlua{tokens.collectors.handle("#1",function(str) return tokens.collectors.remapper.convert("#1",str) end)}} \unexpanded\def\remapcharacter - {\dodoubleempty\tokens_remap_character} + {\dodoubleempty\toks_remap_character} -\def\tokens_remap_character[#1][#2]#3% +\def\toks_remap_character[#1][#2]#3% {\ctxlua{tokens.collectors.install("store", "ctxlua")}#3% \ctxlua{tokens.collectors.remapper.store("store","#1",\number#2)}} |