In Aleph, when changin textdir outside a box, the textdir inside the box is not changed. For example: \textdir TRT \setbox0 = \hbox{textdir: \the\textdir , boxdir: \the\boxdir0} \box0 \bye In Aleph, bot will remain TLT. However, in Omega textdir inside the box will get updated to TRT as well. IMO, Omega behaviour makes more sense. The current behaviour just make things more complex. I spent several hours trying to debug why in the following latex example, the second section number is misplaced: \documentclass{article} \begin{document} \section{Test} \textdir TRT\pardir TRT \section{Test} \end{document} I turned out that latex buts section number inside an hbox, which is TLT here. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
Khaled Hosny wrote:
In Aleph, when changin textdir outside a box, the textdir inside the box is not changed. For example:
\textdir TRT \setbox0 = \hbox{textdir: \the\textdir , boxdir: \the\boxdir0} \box0 \bye
In Aleph, bot will remain TLT. However, in Omega textdir inside the box will get updated to TRT as well. IMO, Omega behaviour makes more sense. The current behaviour just make things more complex. I spent several hours trying to debug why in the following latex example, the second section number is misplaced:
\documentclass{article} \begin{document} \section{Test} \textdir TRT\pardir TRT \section{Test} \end{document}
I turned out that latex buts section number inside an hbox, which is TLT here.
i can imagine it being configurable behaviour, something \inherittextdir=0/1 because there are quite some places in macropackages where boxing is used in a way that even in rtl assumes ltr packing; explicitly making all these boxes TLT then is a lot of work Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Sat, 18 Apr 2009, Khaled Hosny wrote:
In Aleph, when changin textdir outside a box, the textdir inside the box is not changed. For example:
\textdir TRT \setbox0 = \hbox{textdir: \the\textdir , boxdir: \the\boxdir0} \box0 \bye
In Aleph, bot will remain TLT. However, in Omega textdir inside the box will get updated to TRT as well. IMO, Omega behaviour makes more sense. The current behaviour just make things more complex. I spent several hours trying to debug why in the following latex example, the second section number is misplaced:
\documentclass{article} \begin{document} \section{Test} \textdir TRT\pardir TRT \section{Test} \end{document}
I turned out that latex buts section number inside an hbox, which is TLT here.
please check current svn luatex, we had this topics a few days before, it should now be more consistent. Regards, Hartmut
On Sat, Apr 18, 2009 at 04:22:32PM +0200, Hartmut Henkel wrote:
please check current svn luatex, we had this topics a few days before, it should now be more consistent.
I did an 'svn up' and build before posting this mail, I checked again now and still the same. Oh, I think I caught it. If the hbox is in vertical mode, it won't inherit textdir: \textdir TRT \setbox0 = \hbox{textdir: \the\textdir , boxdir: \the\boxdir0} \leavevmode\setbox1 = \hbox{textdir: \the\textdir , boxdir: \the\boxdir1} \box0 \box1 \bye Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer
participants (3)
-
Hans Hagen
-
Hartmut Henkel
-
Khaled Hosny