ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupdirections RTL bug
@ 2019-02-04 23:36 Mohammad Hossein Bateni
  2019-02-05 12:30 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Mohammad Hossein Bateni @ 2019-02-04 23:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1127 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 6610 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setupdirections RTL bug
  2019-02-04 23:36 setupdirections RTL bug Mohammad Hossein Bateni
@ 2019-02-05 12:30 ` Hans Hagen
  2019-02-05 15:08   ` Mohammad Hossein Bateni
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2019-02-05 12:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Mohammad Hossein Bateni

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: setupdirections RTL bug
  2019-02-05 12:30 ` Hans Hagen
@ 2019-02-05 15:08   ` Mohammad Hossein Bateni
  0 siblings, 0 replies; 3+ messages in thread
From: Mohammad Hossein Bateni @ 2019-02-05 15:08 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1155 bytes --]

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 <j.hagen@xs4all.nl> wrote:

> 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
> -----------------------------------------------------------------
>

[-- Attachment #1.2: Type: text/html, Size: 2047 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-05 15:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 23:36 setupdirections RTL bug Mohammad Hossein Bateni
2019-02-05 12:30 ` Hans Hagen
2019-02-05 15:08   ` Mohammad Hossein Bateni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).