From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103121 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Bidi-related register problem Date: Sun, 27 Jan 2019 13:15:39 -0500 Message-ID: <9ff25cdf-d97b-3d5a-d145-3d8001d37d9b@panix.com> References: <75c1c14d-fd00-c9f2-ac21-782a1fbeed47@rik.users.panix.com> <35d6c610-7a9a-9297-73fd-ed95a89a3b50@xs4all.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2348622679378695574==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="26300"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 To: Hans Hagen , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 27 19:16:11 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gnoyY-0006j9-VS for gctc-ntg-context-518@m.gmane.org; Sun, 27 Jan 2019 19:16:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1EFA4D78B9; Sun, 27 Jan 2019 19:15:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ICit9NxZJ-km; Sun, 27 Jan 2019 19:15:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F6DDD78AF; Sun, 27 Jan 2019 19:15:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 69E0ED78AF for ; Sun, 27 Jan 2019 19:15:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V0J6rnL-jpDB for ; Sun, 27 Jan 2019 19:15:43 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 57355D78AE for ; Sun, 27 Jan 2019 19:15:43 +0100 (CET) Original-Received: from [192.168.201.199] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id 43ngt60NBfz15jC; Sun, 27 Jan 2019 13:15:41 -0500 (EST) In-Reply-To: <35d6c610-7a9a-9297-73fd-ed95a89a3b50@xs4all.nl> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:103121 Archived-At: This is a multi-part message in MIME format. --===============2348622679378695574== Content-Type: multipart/alternative; boundary="------------A7532072E654437E4ABB3CF6" Content-Language: en-US This is a multi-part message in MIME format. --------------A7532072E654437E4ABB3CF6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 1/27/2019 12:07, Hans Hagen wrote: > On 1/27/2019 12:59 AM, Rik Kabel wrote: >> Here is a much-closer-to minimal example. >> >> >>   \setupregister   [index] [maxwidth=4cm] >>   \setupdirections [bidi=on,method=two] >>   \starttext >>   .\index{Mairzy doats and dozy doats and liddle lamzy divey} >>   \placeindex >>   \stoptext >> >> With the \setupdirections line removed, all is well. However, that >> line is otherwise required. Setting bidi off around \placeindex is >> not an option either, since some index entries require it. > Tricky ... i'll catch it but better use method tree then (later this > year i might redo some r2l code) > > 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 > ----------------------------------------------------------------- That allows the compilation to complete, but method=three breaks other stuff. Try this: \starttext \setupdirections [bidi=on,method=three] \rightaligned{(( How is this?} \stoptext (I also see problems with boxes set in the margin where before they were set centered in the textblock, but cannot construct an example yet.) -- Rik --------------A7532072E654437E4ABB3CF6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 1/27/2019 12:07, Hans Hagen wrote:
On 1/27/2019 12:59 AM, Rik Kabel wrote:
Here is a much-closer-to minimal example.


  \setupregister   [index] [maxwidth=4cm]
  \setupdirections [bidi=on,method=two]
  \starttext
  .\index{Mairzy doats and dozy doats and liddle lamzy divey}
  \placeindex
  \stoptext

With the \setupdirections line removed, all is well. However, that line is otherwise required. Setting bidi off around \placeindex is not an option either, since some index entries require it.
Tricky ... i'll catch it but better use method tree then (later this year i might redo some r2l code)

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

That allows the compilation to complete, but method=three breaks other stuff. Try this:

\starttext
\setupdirections [bidi=on,method=three]
\rightaligned{(( How is this?}
\stoptext

(I also see problems with boxes set in the margin where before they were set centered in the textblock, but cannot construct an example yet.)

--
Rik

--------------A7532072E654437E4ABB3CF6-- --===============2348622679378695574== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2348622679378695574==--