[luatex] \enddir

Khaled Hosny khaledhosny at eglug.org
Fri Dec 14 11:51:48 CET 2012


On Thu, Dec 13, 2012 at 12:15:31PM +0100, Taco Hoekwater wrote:
> 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}})
> 
> (DEFCBA)
> 
> >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:
> 
>   (DEFCBA)
>   ()DEFCBA
> 
> which looks good to me. Also,
> 
>   (\hbox{Z\textdir TRT ABC {\textdir TRT QRS\textdir TLT DEF} Y})
> 
> then (still) produces
> 
>   (ZY DEFSRQ CBA)
> 
> So then, why was that 'add extra node' code in Omega in the first place?

I don't know. I need to set down and try to understand all this
directionality code...

Regards,
Khaled


More information about the luatex mailing list