summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/luatex/nodetree/nodetree.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/nodetree/nodetree.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua b/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
index 880f1895446..9931eb27805 100644
--- a/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
+++ b/Master/texmf-dist/tex/luatex/nodetree/nodetree.lua
@@ -16,7 +16,7 @@
-- luacheck: globals node tex luatexbase lfs callback os unicode status modules
if not modules then modules = { } end modules ['nodetree'] = {
- version = '2.1',
+ version = '2.2',
comment = 'nodetree',
author = 'Josef Friedrich',
copyright = 'Josef Friedrich',
@@ -26,6 +26,9 @@ if not modules then modules = { } end modules ['nodetree'] = {
local direct = node.direct
local todirect = direct.todirect
local getchar = direct.getchar
+--- Lua 5.1 does not have the utf8 library (Lua 5.1 is the default
+-- version in LuajitTeX). LuaJitTeX does include the slnunicode library.
+local utf8 = utf8 or unicode.utf8
local utfchar = utf8.char
local properties = direct.get_properties_table()