<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2019 at 5:29 PM Javier Bezos <<a href="mailto:listas@tex-tipografia.com">listas@tex-tipografia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Maybe it has been already fixed, but I can't install 1.10<br>
right now, so first a little favour. What do you get with<br>
the following document (plain luatex):<br>
<br>
--------------------------------<br>
\directlua{<br>
<br>
function test (head, g)<br>
   texio.write_nl('==== ' .. g)<br>
   texio.write_nl('')<br>
   for item in node.traverse(head) do<br>
     if <a href="http://item.id" rel="noreferrer" target="_blank">item.id</a> == <a href="http://node.id" rel="noreferrer" target="_blank">node.id</a>'glyph' then<br>
       texio.write('{' .. item.char .. '}')<br>
     elseif <a href="http://item.id" rel="noreferrer" target="_blank">item.id</a> == <a href="http://node.id" rel="noreferrer" target="_blank">node.id</a>'dir' then<br>
       texio.write('<' .. item.dir .. '>')<br>
     elseif <a href="http://item.id" rel="noreferrer" target="_blank">item.id</a> == <a href="http://node.id" rel="noreferrer" target="_blank">node.id</a>'glue' then<br>
       texio.write(' ')<br>
     else<br>
       texio.write('[' .. <a href="http://item.id" rel="noreferrer" target="_blank">item.id</a> .. ':' .. (item.subtype or '?') .. ']')<br>
     end<br>
   end<br>
   return head<br>
end<br>
<br>
% callback.register("pre_linebreak_filter", test)<br>
callback.register("hpack_filter", test)<br>
}<br>
<br>
ABC \hbox{abc \textdir TRT fgh} DEF<br>
<br>
\textdir TLT<br>
<br>
ABC \hbox{abc \textdir TRT fgh} DEF<br>
<br>
\bye<br>
-----------------------------------<br>
<br>
With 1.07 the log shows:<br>
<br>
==== hbox<br>
{97}{98}[13:0]{99} <+TRT>{102}{103}{104}<br>
==== hbox<br>
{97}{98}[13:0]{99} <-TLT><+TRT>{102}{103}{104}<br>
<br>
Note the extra node with a closing dir after setting<br>
explicitly the global \textdir to TLT (which is the<br>
default dir). The stuff after this node is discarded.<br>
<br>
Does 1.10 give the same result?<br>
<br>
Javier<br>
<br>
<br>
</blockquote></div><div><br></div><div><br></div><div>==== hbox</div><div>{97}{98}{99} <+TRT>{102}{103}{104}</div><div>==== hbox</div><div>{97}{98}{99} <+TRT>{102}{103}{104}</div><div>==== adjusted_hbox</div><div>[1:0] </div><div>==== adjusted_hbox</div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div></div>