[luatex] Misplaced letter

Javier Bezos listas at tex-tipografia.com
Thu Dec 14 19:23:21 CET 2017

I'm using TeXLive 2017. The following document renders the
text correctly.





\pardir TRT
\textdir TRT

نشر لودجي جالفاني عام
   {\textdir TLT 1791}
اكتشافه الخاص بالكهرباء الحيوية الذي أظهر أن الكهرباء هي الوسيط الذي
تقوم من خلاله الخلايا العصبية بنقل الإشارات


However, if I change \iffalse -> \iftrue, the very last
alif is displaced to the left (a few points; this is not
the only misplaced letter). So, the local \textdir is
changing something (or the internal -TLT node). Actually,
I discovered this odd behavior with dir nodes inserted
with a lua script. Interestingly, if I comment \pardir TRT
out, the alif is at the right position (and in the complete
document, if I reset \pardir TLT).

I don't know where the problem is. A bug? I missed


More information about the luatex mailing list