[luatex] description of node.traverse_{char,glyph}
luigi scarso
luigi.scarso at gmail.com
Mon Mar 13 10:22:30 CET 2023
On Mon, 13 Mar 2023 at 06:10, Hironori KITAGAWA via luatex <luatex at tug.org>
wrote:
> 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
>
Thank you very much. We will check it / fix it for the next luatex release
1.16.1.
--
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/luatex/attachments/20230313/419dac8c/attachment.html>
More information about the luatex
mailing list.