From 77045ec1b3d5364e7cfdc8e0a2710c5453242972 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 24 Oct 2020 03:01:50 +0000 Subject: CTAN sync 202010240301 --- macros/luatex/generic/nodetree/nodetree.dtx | 7 +++++-- macros/luatex/generic/nodetree/nodetree.lua | 5 ++++- macros/luatex/generic/nodetree/nodetree.pdf | Bin 361618 -> 281887 bytes 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'macros/luatex/generic') diff --git a/macros/luatex/generic/nodetree/nodetree.dtx b/macros/luatex/generic/nodetree/nodetree.dtx index 30eb6bea9e..4b7784a663 100644 --- a/macros/luatex/generic/nodetree/nodetree.dtx +++ b/macros/luatex/generic/nodetree/nodetree.dtx @@ -28,7 +28,7 @@ %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{nodetree} %<*package> - [2020/10/03 v2.1 Visualize node lists in a tree view] + [2020/10/23 v2.2 Visualize node lists in a tree view] % % \fi % @@ -69,6 +69,9 @@ % * Make the package compatible with the Harfbuzz mode of the luaotfload fontloader. % * Print node properties of copied nodes. % } +% \changes{v2.2}{2020/10/23}{ +% * Fix unavailable library error (utf8 not in Lua5.1) +% } % \DoNotIndex{\newcommand,\newenvironment,\def,\directlua} % % \StopEventually{} @@ -231,7 +234,7 @@ % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{nodetree-embed} - [2020/10/03 v2.1 Embed node trees into a LaTeX document] + [2020/10/23 v2.2 Embed node trees into a LaTeX document] % \end{macrocode} % % \begin{macrocode} diff --git a/macros/luatex/generic/nodetree/nodetree.lua b/macros/luatex/generic/nodetree/nodetree.lua index 880f189544..9931eb2780 100644 --- a/macros/luatex/generic/nodetree/nodetree.lua +++ b/macros/luatex/generic/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() diff --git a/macros/luatex/generic/nodetree/nodetree.pdf b/macros/luatex/generic/nodetree/nodetree.pdf index ab7b6c9539..5cc4c59c1d 100644 Binary files a/macros/luatex/generic/nodetree/nodetree.pdf and b/macros/luatex/generic/nodetree/nodetree.pdf differ -- cgit v1.2.3