Hello,

I experimented a little with various directions (TRT, RTL, RTT) and I have found illogical behavior in RTT direction. My question: is it desired behavior or it is a bug? I am not sure because I don't know any language where RTT needs to be used. My intend is to keep in a frame a boxes with various directions by OpTeX macros.

Suppose:

\hbox bdir0{\vrule\vbox{\hbox{ab}\hbox{xy}}} % OK

\bigskip

\hbox bdir2{\vrule\vbox{\hbox{ab}\hbox{xy}}} % OK

\bigskip

\hbox bdir3{\vrule\vbox{\hbox{ab}\hbox{xy}}} % problem

\showboxbreadth=50 \showlists

\bye

First two boxes are correct. The boundaries of \vrule (vertical in first case, horizontal in second) are equal with boundary of box content (in visual output) and the baseline of outer \hbox is equal to the baseline of the last element of internal \vbox.

But the third case (direction 3) recalculates the vertical baseline of the outer \hbox to be in the center, i.e. depth=height=8.70834pt, but the internal \vbox isn't shifted appropriately. We see that the \vrule is shifted relative to the box content. The \vrule shows the boundaries of the outer \hbox (which is vertical in this case) but the contents of this \hbox is shifted right from its right boundary.

More logical behavior in this case is to keep the vertical baseline of outer box equal to the vertical baseline of the \vbox inside it it. Alternatively: if we need recalculation for centering (because we need centering of individual letters: \hbox bdir3{Mix}), then the \vbox inside the outer \hbox should be appropriately shifted.

Best regards

Petr Olsak

_______________________________________________
dev-luatex mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to