[luatex] description of node.traverse_{char,glyph}

Hironori KITAGAWA h_kitagawa2001 at yahoo.co.jp
Mon Mar 13 06:09:16 CET 2023


Hello,

In LuaTeX Reference Manual, node.traverse_{char,glyph} are described as
>  <node> n, font, char = node.traverse_char(<node> n)
>  <node> n, font, char = node.traverse_glyph(<node> n)

But this differs from the actual behavior:

% test-traverse.tex
abc
\directlua{
   for n,f,c in node.traverse_glyph(tex.nest[tex.nest.ptr].head) do
     texio.write_nl('term and log', 'f=' .. tostring(f) .. ', c='
       .. tostring(c))
   end
}
\bye

$ luatex test-traverse.tex
This is LuaTeX, Version 1.16.0 (TeX Live 2023)
  restricted system commands enabled.
(./test-traverse.tex
f=97, c=1
f=98, c=1
f=99, c=1 [1...

Regards
Hironori KITAGAWA


More information about the luatex mailing list.