[Dev-luatex] Traversing node list structures

Patrick Gundlach patrick at gundla.ch
Mon Nov 29 12:42:36 CET 2010


Already answered in a private mail, but for the archive and others to correct the answer.


> 
> the way you would traverse the node tree (which links to
> follow) to get the glyphs output in the right order
> 


I _think_ that the right order is

loop over head.next
 if current_node == hlist or vlist then loop over head.list end
 do something with current node
end loop


Additional places to recurse into, depending on application:
* disc nodes (components)
* leader part of glue
* sub_box and sub_mlist subnodes (?)
* box_left, box_right in local_par node


Patrick




More information about the dev-luatex mailing list