Hello, This is perhaps *related* to what Alan Bowen reported. Not the same, since I don't get compilation errors. Here's a MWE. See explanation of bad behavior below. \setupdirections[bidi=global,method=one] \definefont[Ar][dejavusans*arabic] \setupfootertexts[\setups{L}][\setups{R}] \startsetups L %\setupdirections[bidi=on,method=one] %\setupdirections[bidi=local,method=one] \Ar%left چپ \stopsetups \startsetups R %\setupdirections[bidi=on,method=one] \Ar%right راست \stopsetups \starttext Test \stoptext 1. The right footer is placed over the left footer. 2. There's no problem if I replace the RTL text of right footer with an LTR text. 3. Left footer's text does not get proper RTL treatment. Perhaps *this* is the change of behavior introduced in the past year. My guess is that RTLed footers are moved to the other side. 4. If I use bidi=local or bidi=on in the preamble, RTL treatment is applied to neither footer. I can't seem to turn on RTL via setupdirections inside the (left) footer. How does one do that? Thanks, MHB
On 2/5/2019 12:36 AM, Mohammad Hossein Bateni wrote:
Hello,
This is perhaps /related/ to what Alan Bowen reported. Not the same, since I don't get compilation errors. use method "three"
(I'll add "unicode" method which will take the latest version.) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Thanks, Hans!
With \setupdirections[bidi=global,method=three], the footers are placed
correctly. But the *left* footer still does not get RTL treatment. Adding
\setupdirections[bidi=global,method=three] inside startsetups does not help.
Method three has this "bug": a word with ZWNJ gets the long direction. For
example, if I have A+ZWNJ+B (logical), visually I should get "B+ZWNJ+A" but
I don't. It works correctly with SPC in place of ZWNJ.
On Tue, Feb 5, 2019 at 7:30 AM Hans Hagen
On 2/5/2019 12:36 AM, Mohammad Hossein Bateni wrote:
Hello,
This is perhaps /related/ to what Alan Bowen reported. Not the same, since I don't get compilation errors. use method "three"
(I'll add "unicode" method which will take the latest version.)
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Mohammad Hossein Bateni