summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-11 21:33:04 +0000
committerKarl Berry <karl@freefriends.org>2019-10-11 21:33:04 +0000
commit83b507f56f72909f7552936d229f1130c8fb05c5 (patch)
tree360f905351d9db1e1be9168840b76d7ba8c1e4ca /Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
parentaa2dbb8897371a36028d3ce667140365345dfbfe (diff)
l3 (11oct19)
git-svn-id: svn://tug.org/texlive/trunk@52343 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx15
1 files changed, 6 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx b/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
index cbc3d7a4e2f..7a59765ed5c 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3luatex.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2019-10-02}
+% \date{Released 2019-10-11}
%
% \maketitle
%
@@ -328,6 +328,7 @@ local os_clock = os.clock
local os_date = os.date
local setcatcode = tex.setcatcode
local sprint = tex.sprint
+local cprint = tex.cprint
local write = tex.write
% \end{macrocode}
%
@@ -354,15 +355,11 @@ end
% \end{macro}
%
% \begin{macro}{l3kernel.charcat}
-% Creating arbitrary chars needs a category code table. As set up here,
-% one may have been assigned earlier (see \pkg{l3bootstrap}) or a hard-coded
-% one is used. The latter is intended for format mode and should be adjusted
-% to match an eventual allocator.
+% Creating arbitrary chars using |tex.cprint|.
% \begin{macrocode}
-local charcat_table = l3kernel.charcat_table or 1
-local function charcat(charcode, catcode)
- setcatcode(charcat_table, charcode, catcode)
- sprint(charcat_table, utf8_char(charcode))
+local charcat
+function charcat(charcode, catcode)
+ cprint(catcode, utf8_char(charcode))
end
l3kernel.charcat = charcat
% \end{macrocode}