I'm wondering why, in the following code, the first \hbox{} is not seen
by the lua function while the second one is seen i.e. \hbox{} at
paragraph beginning isn't seen.
\directlua0{
local function traverse(h)
for n in node.traverse (h)
do texio.write_nl('node id='..node.type(n.id))
if n.id == node.id('hlist') then
traverse(n.list)
end
end
end
callback.register('pre_linebreak_filter',
function(h)
traverse(h)
return true
end
)
}
\hbox{Not seen}
Hello \hbox{seen}
\bye
Regards,
--
Khaled Hosny
Arabic localizer and member of Arabeyes.org team
\directlua0{
local function traverse(h)
for n in node.traverse (h)
do texio.write_nl('node id='..node.type(n.id))
if n.id == node.id('hlist') then
traverse(n.list)
end
end
end
callback.register('pre_linebreak_filter',
function(h)
traverse(h)
return true
end
)
}
\hbox{Not seen}
Hello \hbox{seen}
\bye
signature.asc
Description: Digital signature
_______________________________________________ dev-luatex mailing list [email protected] http://www.ntg.nl/mailman/listinfo/dev-luatex
