I can't compile the answer given here:
In LuaTex is it possible to change font/language according to the script/glyphs used?
Is it because it's old? My compiler says that \luatexdirectlua
is undefined.
PS. With \directlua
the error is:
! LuaTeX error luatexinterchartoks.lua:1: unexpected symbol near '%' stack traceback:
[C]: in function 'dofile'
[\directlua]:1: in main chunk. l.35 \directlua{dofile('luatexinterchartoks.lua')}
PS II. deleted ll. 1 and 2, now the error is:
! LuaTeX error ...ocal/texlive/2015/texmf-dist/tex/latex/base/ltluatex.lua:109:
Module luatexbase Error: Attempt to use callback.register() directly
(luatexbase) on input line 35
stack traceback:
[C]: in function 'error'
...ocal/texlive/2015/texmf-dist/tex/latex/base/ltluatex.lua:109: in function 'm
odule_error'
...ocal/texlive/2015/texmf-dist/tex/latex/base/ltluatex.lua:116: in function 'l
uatexbase_error'
...ocal/texlive/2015/texmf-dist/tex/latex/base/ltluatex.lua:291: in function 'r
egister'
luatexinterchartoks.lua:64: in main chunk
[C]: in function 'dofile'
[\directlua]:1: in main chunk.
l.35 \directlua{dofile('luatexinterchartoks.lua')}
\directlua
(the original name) the latex setup no longer renames luatex commands with the luatex prefix% luatexinterchartoks.lua
that is a title for the website but not legal lualuatexbase.add_to_callback ('token_filter', do_intertoks,"xetex chartoks emulation")
then it loads without error (but doesn't work, at least in my development build of luatex, looking....)