From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92121 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:17:57 +0100 Message-ID: <19A9BA9B-076D-43E9-840B-E39FB06A7164@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="===============0867046949==" X-Trace: ger.gmane.org 1438280512 13255 80.91.229.3 (30 Jul 2015 18:21:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jul 2015 18:21:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 30 20:21:37 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 1ZKsSV-0000M1-6X for gctc-ntg-context-518@m.gmane.org; Thu, 30 Jul 2015 20:21:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8D33210520 for ; Thu, 30 Jul 2015 20:21:34 +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 D9nhhbEdpCMa for ; Thu, 30 Jul 2015 20:21:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C2AAD10247 for ; Thu, 30 Jul 2015 20:20:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B6D3410203 for ; Thu, 30 Jul 2015 20:20:53 +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 91pMkpAIwQt2 for ; Thu, 30 Jul 2015 20:20:52 +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 3D4B110202 for ; Thu, 30 Jul 2015 20:17:17 +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 t6UIHF6q028514 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jul 2015 20:17:16 +0200 Original-Received: from cpc69046-oxfd25-2-0-cust964.4-3.cable.virginm.net ([81.109.87.197]:37514 helo=[10.0.1.2]) by host21.specialservers.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85) (envelope-from ) id 1ZKsOH-001SH5-MD for ntg-context@ntg.nl; Thu, 30 Jul 2015 19:17:13 +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: 08OWGhfwU - 729ce3780084 - 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:92121 Archived-At: --===============0867046949== Content-Type: multipart/alternative; boundary="Apple-Mail=_A4698CAB-EAD5-4AE2-A822-EC295BE0439F" --Apple-Mail=_A4698CAB-EAD5-4AE2-A822-EC295BE0439F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Indeed, that seems to do the trick, Wolfgang. > 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=_A4698CAB-EAD5-4AE2-A822-EC295BE0439F Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Indeed, that seems to do the trick, Wolfgang.

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

30. Juli 2015 16:26

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

\setuppapersize[A6]
\starttext \showframe

\definenote[afootnote][rule={on,right}, paragraph=yes]
\definenotation[afootnote][align=r2l]

\startalignment[r2l]
Testing.\afootnote{This is footnote one.}
Testing testing.\afootnote{This is footnote two.}
Testing testing 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 \fi\starthboxestohbox
        \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber
      \stophboxestohbox}
     {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}%
   \endgroup}

\protect

%\setupalign[righttoleft]

\setupnote[footnote][paragraph=yes,align=righttoleft]
\setupnotation[footnote][align=righttoleft]

\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=_A4698CAB-EAD5-4AE2-A822-EC295BE0439F-- --===============0867046949== 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= --===============0867046949==--