[luatex] \enddir

Taco Hoekwater taco at elvenkind.com
Thu Dec 13 12:15:31 CET 2012

On 12/13/2012 11:59 AM, Khaled Hosny wrote:
>> which to my layman's eyes appears to make more sense (the second
>> \textdir now actually replaces the first, instead of starting an
>> implied direction group).
> So what happens with
> (\hbox{\textdir TRT{\textdir TRT ABC\textdir TLT DEF}})


> or:
> (\textdir TRT\hbox{\textdir TRT ABC\textdir TLT DEF})

() % blatantly wrong !!!!!

That's because it now produces

...\hbox(0.0+0.0)x20.0, direction TLT
...\tenrm (
...\begindir TRT
...\hbox(6.83331+0.0)x42.77788, direction TRT
....\enddir TRT
....\begindir TRT
....\tenrm A

which is clearly nonsense. I tried not inserting the
'extra' node at all, and that gives:


which looks good to me. Also,

   (\hbox{Z\textdir TRT ABC {\textdir TRT QRS\textdir TLT DEF} Y})

then (still) produces


So then, why was that 'add extra node' code in Omega in the first place?

Best wishes,

More information about the luatex mailing list