summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ucharcat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ucharcat')
-rw-r--r--Master/texmf-dist/tex/latex/ucharcat/ucharcat.sty7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/ucharcat/ucharcat.sty b/Master/texmf-dist/tex/latex/ucharcat/ucharcat.sty
index 3a1a67fd5e5..e9f4e81396f 100644
--- a/Master/texmf-dist/tex/latex/ucharcat/ucharcat.sty
+++ b/Master/texmf-dist/tex/latex/ucharcat/ucharcat.sty
@@ -13,7 +13,7 @@
%% See README for details.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ucharcat}
- [2015/08/23 v0.02 ucharcat for luaLaTeX (DPC)]
+ [2015/11/19 v0.03 ucharcat for luaLaTeX (DPC)]
\ifx\directlua\@undefined
\ifx\Ucharcat\@undefined
\ifx\XeTeXinterchartokenstate\@undefined
@@ -36,9 +36,10 @@
\newcatcodetable\ucharcat@table
\fi
\directlua{%
+local nt = newtoken or token
function UcharcatLua()
- local mych = newtoken.scan_int()
- local mycat = newtoken.scan_int()
+ local mych = nt.scan_int()
+ local mycat = nt.scan_int()
tex.setcatcode(\the\numexpr\ucharcat@table\relax,mych,mycat)
tex.sprint(\the\numexpr\ucharcat@table\relax,unicode.utf8.char(mych))
end