From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101047 Path: news.gmane.org!.POSTED!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: Re: bidi in footnotes Date: Thu, 21 Jun 2018 09:24:27 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5182304945540604455==" X-Trace: blaine.gmane.org 1529587401 31679 195.159.176.226 (21 Jun 2018 13:23:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 21 Jun 2018 13:23:21 +0000 (UTC) Cc: Hans Hagen To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 21 15:23:17 2018 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 esmtp (Exim 4.84_2) (envelope-from ) id 1fVzYR-00086M-9Q for gctc-ntg-context-518@m.gmane.org; Thu, 21 Jun 2018 15:23:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E6C6D38A4F; Thu, 21 Jun 2018 15:24:59 +0200 (CEST) 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 SU2w76ImOMiD; Thu, 21 Jun 2018 15:24:59 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3126338A55; Thu, 21 Jun 2018 15:24:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3202338A50 for ; Thu, 21 Jun 2018 15:24:58 +0200 (CEST) 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 CdehD-YT463V for ; Thu, 21 Jun 2018 15:24:55 +0200 (CEST) Original-Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com [74.125.82.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 876C238A4F for ; Thu, 21 Jun 2018 15:24:45 +0200 (CEST) Original-Received: by mail-ot0-f173.google.com with SMTP id i19-v6so3522206otk.10 for ; Thu, 21 Jun 2018 06:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vMsV33UjfyuQyD/t/M+or6nW2bFjUU7VCw/m6G8oEyc=; b=XdDOewktwf+C7Fi4OgyBjb2eTwQqUhh5u2bqdLW/ODiMq3pLhAiir/WNo0lsNr4qHP 5C06sBbOBIrIZXc50+lGxxWK8K2sYGLZzhaL8MAIt42qVxnUC8GwImzBr58RF1+4z3Hq cjBl25fEtnPOTLgF7fyYpi6eOmZ3sLzGXizOLFduXR2IaQIxVuzsYFOsBaSRAOpiQeEZ ltrkPpdeUVhQRfzENHM5O5C2qMXRakAqc8UPVuOvNgi4IA/4UebFa5IOdjDJ39JJZV6w bO2JxcJBLpw9GO82Gp8TX6wZ6bq+Gs9JJMSxK1bTUUP4xSjinzjEXDLDGOUeXJPHJtfk 6fLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vMsV33UjfyuQyD/t/M+or6nW2bFjUU7VCw/m6G8oEyc=; b=RZMFSTz1IDQPP5IHrHUknVmKqFKtNlQTUmx4Cgb8AYC2rOty93p7ndchlWWZyPBzcr zG7EfM8+LF22+xAGHVUk2fjkyiAet1Mf7NJ9aFGisJFfSLA8acZ+xc5FxmSMEkuPBnVB 7OT3GWFA6PslwD0C84IxagmG9KOdldGWKeyKPRfYHe3AakOLSS0GwYcX+JPY70DG0Df7 9FNF+QdBNbN7mFFXtRzHR261ftIyp986HusW1HskxiWsAHCR9cy1rVmayfWolhzcevmI 7R9u8MbgYY5SseRAyj7WdICwrX8oon5aJW5pp08k9pTk/mqO6DR9Y1yWJjW26U5XJbwK oEUg== X-Gm-Message-State: APt69E1iK7CH36mEnZehal9Sv6m/ekY66vjxjw8RgTjpAO+PnAXxwtt+ adDPvNg4c/8/huR2ubWeiI+2EZFiV/UWL9p5IuIZ0Q== X-Google-Smtp-Source: ADUXVKKaBEH5u71SNFZGGPfjJY/90TjzbD3cuCIb/+PK5VxdfCI2USG/VPEY+eyM3JWuVffVEpEA8u4li09p32gIOO0= X-Received: by 2002:a9d:1f3b:: with SMTP id x56-v6mr14720590otd.369.1529587479076; Thu, 21 Jun 2018 06:24:39 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:101047 Archived-At: --===============5182304945540604455== Content-Type: multipart/alternative; boundary="00000000000057e510056f26d67c" --00000000000057e510056f26d67c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I believe, you would need the setups, even if you had set up typescripts. For some reason, the environments for footnotes and marginnotes are different from that of the main content's. I got this solution from Wolfgang/Hans two years ago, so I suppose it's the officially recommended way. I do not know how heavy setupdirections is, but this method, I guess, applies that command *once per page*. It might be too much, but it's the price you pay for correct bidi formatting. For example, I hate to see that I need to babysit page numbers (LTR) within Farsi text (RTL) in headers but that's life. =E2=80=AAOn Thu, Jun 21, 2018 at 8:22 AM =E2=80=ABIdris Samawi Hamid =D8=A7= =D8=AF=D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85= =D8=AF=E2=80=AC=E2=80=8E < Idris.Hamid@colostate.edu> wrote:=E2=80=AC > Salaam, Mohammad Hossein, Otared, > > On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni > wrote: > > > \startsetups[bidi:footnotes] > > \setupdirections[bidi=3Don] > > \stopsetups > > \setupnotes[footnote][setups=3Dbidi:footnotes] > > On Wed, 20 Jun 2018 22:31:05 -0600, Otared Kavian > wrote: > > > %%%%% begin test-bidi-footnote.tex > > \setupdirections[bidi=3Dglobal] > > \startsetups[bidi:footnotes] > > \setupdirections[bidi=3Don] > > \definedfont[file:almfixed.otf*arabic at 14pt] > > \stopsetups > > \setupnotes[footnote][setups=3Dbidi:footnotes] > > > > \starttext > > \definedfont[file:almfixed.otf*arabic at 14pt] > > Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test > > \startfootnote > > Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test > > \stopfootnote{} > > \stoptext > > %%%%% end test-bidi-footnote.tex > > Many thanks. Question: Is this use of setups now the "official" or > preferred way to handle footnote typography options? On the surface, it > appears to be overkill. For the declaration > > \setupdirections[bidi=3Dglobal] > > shouldn't that mean that bidi is applied, well, globally? > > For \definedfont the behavior is less surprising, since that is obviously > a local command. But is setups the official way to globalize the command > (aside from typescripts or simplefonts)? > > Best wishes > Idris > > >> On 20 Jun 2018, at 23:22, =E2=81=A8Idris Samawi Hamid =D8=A7=D8=AF=D8= =B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF=E2= =81=A9 > >> <=E2=81=A8Idris.Hamid@colostate.edu=E2=81=A9> wrote: > >> > >> Dear gang, > >> > >> In the attached/following example, bidi is not applied in the footnote= : > >> > >> \setupdirections[bidi=3Dglobal] > >> > >> \starttext > >> \definedfont[file:almfixed.otf*arabic at 14pt] > >> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test > >> \startfootnote > >> \definedfont[file:almfixed.otf*arabic at 14pt] > >> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test > >> \stopfootnote{} > >> \stoptext > >> > >> Is there something else that I need to do? Thanks in advance! > >> > >> [Also: Is there a way to not have to declare \definedfont twice?] > > > -- > Idris Samawi Hamid, Professor > Department of Philosophy > Colorado State University > Fort Collins, CO 80512 > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ --00000000000057e510056f26d67c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I believe, you would need the setups, even if you had set = up typescripts.=C2=A0 For some reason, the environments for footnotes and m= arginnotes are different from that of the main content's.

I got this solution from Wolfgang/Hans two years ago, so I suppose it= 's the officially recommended way.

I do not kn= ow how heavy setupdirections is, but this method, I guess, applies that com= mand once per page.=C2=A0 It might be too much, but it's the pri= ce you pay for correct bidi formatting.=C2=A0 For example, I hate to see th= at I need to babysit page numbers (LTR) within Farsi text (RTL) in headers = but that's life.

=E2=80=AAOn Thu, Jun 21, 2018 at 8:22 AM =E2=80=ABIdris Samawi Hamid = =D8=A7=D8=AF=D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7= =D9=85=D8=AF=E2=80=AC=E2=80=8E <Idris.Hamid@colostate.edu> wrote:=E2=80=AC
Salaam, Mohammad Hossein, Otared,

On Wed, 20 Jun 2018 15:27:56 -0600, Mohammad Hossein Bateni=C2=A0
<bateni@gmail.com<= /a>> wrote:

> \startsetups[bidi:footnotes]
> \setupdirections[bidi=3Don]
> \stopsetups
> \setupnotes[footnote][setups=3Dbidi:footnotes]

On Wed, 20 Jun 2018 22:31:05 -0600, Otared Kavian <
otared@gmail.com> wrote:

> %%%%% begin test-bidi-footnote.tex
> \setupdirections[bidi=3Dglobal]
> \startsetups[bidi:footnotes]
> \setupdirections[bidi=3Don]
> \definedfont[file:almfixed.otf*arabic at 14pt]
> \stopsetups
> \setupnotes[footnote][setups=3Dbidi:footnotes]
>
> \starttext
> \definedfont[file:almfixed.otf*arabic at 14pt]
> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test
> \startfootnote
> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test
> \stopfootnote{}
> \stoptext
> %%%%% end test-bidi-footnote.tex

Many thanks. Question: Is this use of setups now the "official" o= r=C2=A0
preferred way to handle footnote typography options? On the surface, it=C2= =A0
appears to be overkill. For the declaration

\setupdirections[bidi=3Dglobal]

shouldn't that mean that bidi is applied, well, globally?

For \definedfont the behavior is less surprising, since that is obviously= =C2=A0
a local command. But is setups the official way to globalize the command=C2= =A0
(aside from typescripts or simplefonts)?

Best wishes
Idris

>> On 20 Jun 2018, at 23:22, =E2=81=A8Idris Samawi Hamid =D8=A7=D8=AF= =D8=B1=D9=8A=D8=B3 =D8=B3=D9=85=D8=A7=D9=88=D9=8A =D8=AD=D8=A7=D9=85=D8=AF= =E2=81=A9=C2=A0
>> <=E2=81=A8Idris.Hamid@colostate.edu=E2=81=A9> wrote:
>>
>> Dear gang,
>>
>> In the attached/following example, bidi is not applied in the foot= note:
>>
>> \setupdirections[bidi=3Dglobal]
>>
>> \starttext
>> \definedfont[file:almfixed.otf*arabic at 14pt]
>> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test
>> \startfootnote
>> \definedfont[file:almfixed.otf*arabic at 14pt]
>> Test =D8=A7=D9=85=D8=AA=D8=AD=D8=A7=D9=86 test
>> \stopfootnote{}
>> \stoptext
>>
>> Is there something else that I need to do? Thanks in advance!
>>
>> [Also: Is there a way to not have to declare \definedfont twice?]<= br>

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000057e510056f26d67c-- --===============5182304945540604455== 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 --===============5182304945540604455==--