In luatex, function show_node_list() displays the nodes of a discretionary in a different order than pdftex. Is this intended? I'm especially missing the number of nodes of the replacement (in the example: 2). Example: \showboxbreadth=\maxdimen \showboxdepth=\maxdimen \tracingonline=1 \newbox\mybox \setbox\mybox=\hbox{\discretionary{aa}{bb}{cc}} \showbox\mybox \bye Output of luatex: .\discretionary replacing ..\tenrm c ..\tenrm c ..\tenrm a ..\tenrm a .|\tenrm b .|\tenrm b Output of pdftex: .\discretionary replacing 2 ..\tenrm a ..\tenrm a .|\tenrm b .|\tenrm b .\tenrm c .\tenrm c Ciao Andreas
On 06/10/2012 12:17 AM, Andreas Matthias wrote:
In luatex, function show_node_list() displays the nodes of a discretionary in a different order than pdftex. Is this intended?
Yes, and that is because discretionaries in luatex are structurally different from discretionaries in pdftex.
I'm especially missing the number of nodes of the replacement (in the example: 2).
Luatex does not actually 'know' that number the way pdftex does. The differences are fully explained in luatex's reference manual (well, as best as I could, anyway). Best wishes, Taco
participants (2)
-
Andreas Matthias
-
Taco Hoekwater