From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92123 Path: news.gmane.org!not-for-mail From: "talazem@fastmail.fm" Newsgroups: gmane.comp.tex.context Subject: Re: footnotes when using RtL (Arabic) Date: Thu, 30 Jul 2015 19:37:41 +0100 Message-ID: <739C797C-2603-41F9-8611-E7B88BC7FFFD@fastmail.fm> References: <5DE7C0E5-418B-41D4-8E1D-0C4C7C481B16@fastmail.fm> <55BA340A.2070501@gmx.es> <55BA64EF.3040701@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3073\)) Content-Type: multipart/mixed; boundary="===============0160332606==" X-Trace: ger.gmane.org 1438281474 29565 80.91.229.3 (30 Jul 2015 18:37:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2015 18:37:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 30 20:37:39 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZKsi2-0005Fa-K8 for gctc-ntg-context-518@m.gmane.org; Thu, 30 Jul 2015 20:37:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 204DB10225 for ; Thu, 30 Jul 2015 20:37:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DWC0nXZWo8fY for ; Thu, 30 Jul 2015 20:37:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4192E10235 for ; Thu, 30 Jul 2015 20:37:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2ADE8101FD for ; Thu, 30 Jul 2015 20:37:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SnW8i4Xc8ku0 for ; Thu, 30 Jul 2015 20:37:02 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id E7884101F7 for ; Thu, 30 Jul 2015 20:37:01 +0200 (CEST) Original-Received: from host21.specialservers.com (host21.specialservers.com [213.175.196.29] (may be forged)) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t6UIb0Vo016061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jul 2015 20:37:00 +0200 Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:39980 helo=[10.0.1.2]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZKshO-001Vk0-6w for ntg-context@ntg.nl; Thu, 30 Jul 2015 19:36:58 +0100 In-Reply-To: <55BA64EF.3040701@gmail.com> X-Mailer: Apple Mail (2.3073) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host21.specialservers.com X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fastmail.fm X-Get-Message-Sender-Via: host21.specialservers.com: authenticated_id: talal@alazem.org X-Source: X-Source-Args: X-Source-Dir: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.175.196.29; country=GB; latitude=51.5000; longitude=-0.1300; http://maps.google.com/maps?q=51.5000,-0.1300&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08OWGB0pk - d6ce72489f8e - 20150730 Received-SPF: neutral (filter3-utr.mf.surf.net: 213.175.196.29 is neither permitted nor denied by domain talazem@fastmail.fm) receiver=filter3-utr.mf.surf.net; client-ip=213.175.196.29; envelope-from=; helo=host21.specialservers.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:92123 Archived-At: --===============0160332606== Content-Type: multipart/alternative; boundary="Apple-Mail=_EADE0086-99A2-4B50-9217-E034EAF1FBD1" --Apple-Mail=_EADE0086-99A2-4B50-9217-E034EAF1FBD1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99ve come across a snag. When using parentheses in Arabic = footnotes, they are flipped. In any earlier email = (http://article.gmane.org/gmane.comp.tex.context/91501/match=3Dsetupdirect= ions+bidi+global), you had advised adding the following: > \startsetups[note:footnote] > \setupdirections[bidi=3Dglobal] > \stopsetups >=20 > \setupnote[footnote][setups=3Dnote:footnote] % align=3Drighttoleft However, if one does this with your patch, the second footnote gets = dropped. Here is the MWE: > \unprotect >=20 > \def\strc_notes_flush_global > {\begingroup > \useinterlinespaceparameter\noteparameter > \doifelse{\noteparameter\c!paragraph}\v!yes > {%\vbox\starthboxestohbox > \vbox\ifconditional\displaylefttoright \else dir TRT = \fi\starthboxestohbox > = \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber > \stophboxestohbox} > = {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber= }% > \endgroup} >=20 > \protect >=20 > = \definefontfamily[mainface][serif][ALMFixed][features=3Darabic,range=3Dara= bic,] > \setupbodyfont [mainface] >=20 > \startsetups[note:footnote] > \setupdirections[bidi=3Dglobal] > \stopsetups >=20 > = \setupnote[footnote][paragraph=3Dyes,align=3Drighttoleft,setups=3Dnote:foo= tnote,] > \setupnotation[footnote][align=3Drighttoleft,alternative=3Dserried,] >=20 > \showframe >=20 > \starttext >=20 > First note.\footnote{=D9=87=D8=B0=D9=87 =D9=87=D9=8A = (=D8=A7=D9=84=D8=AA=D8=B9=D9=84=D9=8A=D9=82=D8=A9) =D8=A7=D9=84=D8=A3=D9=88= =D9=84=D9=89.} > Second note.\footnote{=D9=87=D8=B0=D9=87 =D9=87=D9=8A = (=D8=A7=D9=84=D8=AA=D8=B9=D9=84=D9=8A=D9=82=D8=A9) =D8=A7=D9=84=D8=AB=D8=A7= =D9=86=D9=8A=D8=A9.} >=20 > \stoptext All the best, Talal > On 30 Jul 2015, at 18:54, Wolfgang Schuster = wrote: >=20 >> Pablo Rodriguez 30. Juli 2015 16:26 >>=20 >> I wonder whether there is a bug somewhere in notes, because you may = have >> r2l notations, but the notes paragraph is built l2r: >>=20 >> \setuppapersize[A6] >> \starttext \showframe >>=20 >> \definenote[afootnote][rule=3D{on,right}, paragraph=3Dyes] >> \definenotation[afootnote][align=3Dr2l] >>=20 >> \startalignment[r2l] >> Testing.\afootnote{This is footnote one.} >> Testing testing.\afootnote{This is footnote two.} >> Testing testing testing.\afootnote{This is footnote three.} >> \stopalignment >>=20 >> \stoptext > Can you test the following patch. >=20 > \unprotect >=20 > \def\strc_notes_flush_global > {\begingroup > \useinterlinespaceparameter\noteparameter > \doifelse{\noteparameter\c!paragraph}\v!yes > {%\vbox\starthboxestohbox > \vbox\ifconditional\displaylefttoright \else dir TRT = \fi\starthboxestohbox > = \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber > \stophboxestohbox} > = {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber= }% > \endgroup} >=20 > \protect >=20 > %\setupalign[righttoleft] >=20 > \setupnote[footnote][paragraph=3Dyes,align=3Drighttoleft] > \setupnotation[footnote][align=3Drighttoleft] >=20 > \showframe >=20 > \starttext >=20 > First note.\footnote{This is the first footnote.} > Second note.\footnote{This is the second footnote.} >=20 > \stoptext >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / = http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > = __________________________________________________________________________= _________ --Apple-Mail=_EADE0086-99A2-4B50-9217-E034EAF1FBD1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I=E2=80=99ve come across a snag. When using parentheses in = Arabic footnotes, they are flipped. In any earlier email (http://article.gmane.org/gmane.comp.tex.context/91501/match=3Ds= etupdirections+bidi+global), you had advised adding the = following:

\startsetups[note:footnote]
  = \setupdirections[bidi=3Dglobal]
\stopsetups

\setupnote[footnote][setups=3Dnote:footnote] % = align=3Drighttoleft

However, if one does this with your = patch, the second footnote gets dropped. Here is the MWE:

\unprotect

\def\strc_notes_flush_global
  = {\begingroup
  =  \useinterlinespaceparameter\noteparameter
  =  \doifelse{\noteparameter\c!paragraph}\v!yes
     {%\vbox\starthboxestohbox
      \vbox\ifconditional\displaylefttoright = \else dir TRT \fi\starthboxestohbox
    =     = \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
      \stophboxestohbox}
    =  {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertion= number}%
   \endgroup}

\protect

\definefontfamily[mainface][serif][ALMFixed][features=3Darabic,= range=3Darabic,]
\setupbodyfont = [mainface]

\startsetups[note:footnote]
  =  \setupdirections[bidi=3Dglobal]
\stopsetups

\setupnote[footnote][paragraph=3Dyes,align=3Drighttoleft,setups= =3Dnote:footnote,]
\setupnotation[footnote][align=3Drighttoleft,alternative=3Dserr= ied,]

\showframe

\starttext

First note.\footnote{=D9=87=D8=B0=D9=87 =D9=87=D9=8A = (=D8=A7=D9=84=D8=AA=D8=B9=D9=84=D9=8A=D9=82=D8=A9) = =D8=A7=D9=84=D8=A3=D9=88=D9=84=D9=89.}
Second = note.\footnote{=D9=87=D8=B0=D9=87 =D9=87=D9=8A (=D8=A7=D9=84=D8=AA=D8=B9=D9= =84=D9=8A=D9=82=D8=A9) =D8=A7=D9=84=D8=AB=D8=A7=D9=86=D9=8A=D8=A9.}
<= div class=3D"">
\stoptext

All the best,
Talal


On 30 Jul 2015, at 18:54, Wolfgang Schuster = <schuster.wolfgang@gmail.com> wrote:

=20 30. Juli 2015=20 16:26

I wonder=20 whether there is a bug somewhere in notes, because you may have
r2l=20 notations, but the notes paragraph is built l2r:

=20 \setuppapersize[A6]
\starttext \showframe

=20 \definenote[afootnote][rule=3D{on,right}, paragraph=3Dyes]
= =20 \definenotation[afootnote][align=3Dr2l]

= \startalignment[r2l]
Testing.\afootnote{This is footnote one.}
Testing=20= testing.\afootnote{This is footnote two.}
Testing = testing=20 testing.\afootnote{This is footnote three.}
= \stopalignment

\stoptext
Can you test the following patch.

\unprotect

\def\strc_notes_flush_global
  {\begingroup
   \useinterlinespaceparameter\noteparameter
   \doifelse{\noteparameter\c!paragraph}\v!yes
     {%\vbox\starthboxestohbox
      \vbox\ifconditional\displaylefttoright \else = dir TRT=20 \fi\starthboxestohbox
       =20 \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
      \stophboxestohbox}
    =20 = {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber= }%
   \endgroup}

\protect

%\setupalign[righttoleft]

\setupnote[footnote][paragraph=3Dyes,align=3Drighttoleft]
\setupnotation[footnote][align=3Drighttoleft]

\showframe

\starttext

First note.\footnote{This is the first footnote.}
Second note.\footnote{This is the second footnote.}

\stoptext

Wolfgang
= __________________________________________________________________________= _________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
_______________________________________________________________= ____________________

= --Apple-Mail=_EADE0086-99A2-4B50-9217-E034EAF1FBD1-- --===============0160332606== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0160332606==--