From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70511 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: R2L footnotes Date: Mon, 8 Aug 2011 18:06:08 +0200 Message-ID: <20110808160608.GA3054@khaled-laptop> References: <20110806200537.GA14901@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312819589 4793 80.91.229.12 (8 Aug 2011 16:06:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 16:06:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 08 18:06:25 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QqSLQ-0001Ot-IP for gctc-ntg-context-518@m.gmane.org; Mon, 08 Aug 2011 18:06:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF734CAE56; Mon, 8 Aug 2011 18:06:22 +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 yYtBK29GCxJz; Mon, 8 Aug 2011 18:06:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41EB7CAE9B; Mon, 8 Aug 2011 18:06:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8F269CAE9B for ; Mon, 8 Aug 2011 18:06:18 +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 Wj5p-B6gn3QT for ; Mon, 8 Aug 2011 18:06:16 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 997B2CAE56 for ; Mon, 8 Aug 2011 18:06:16 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p78G6FSq010290 for ; Mon, 8 Aug 2011 18:06:16 +0200 Original-Received: by wyi11 with SMTP id 11so193511wyi.14 for ; Mon, 08 Aug 2011 09:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ZO7qrEhU/k5+CRRTjEYQEPSdBGPD1SkmKsZBeYU073Y=; b=FK064aMF4bU0+CNNoWlaFI3lRaXuoSPNXvg2TKci2MbyknRq4kNi6Bv2BBgEo2Pwls prqztYnhL0sG1YgHf78O2GUB/SPp3qltAU7SIgutjfR4mNSpfQQG5Elh0AvitysmBIS9 gQglCP1wEoH/wJcM0kpJgx4vi6iNfAK2Kmu34= Original-Received: by 10.216.255.20 with SMTP id i20mr4653793wes.32.1312819575288; Mon, 08 Aug 2011 09:06:15 -0700 (PDT) Original-Received: from localhost ([41.176.167.42]) by mx.google.com with ESMTPS id a43sm3627193wed.4.2011.08.08.09.06.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 09:06:13 -0700 (PDT) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aFhQ6fbP - a7e8acc4ae90 - 20110808 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:70511 Archived-At: On Mon, Aug 08, 2011 at 04:57:19PM +0200, Wolfgang Schuster wrote: > > Am 06.08.2011 um 22:05 schrieb Khaled Hosny: > > > There are two issues with right-to-left fontnotes, 1) the footnote > > number gets somewhere in the middle of the footnote text instead of > > being in the right margin 2) the footnote rule is left aligned: > > > > \setupalign[r2l] > > \starttext > > Text\footnote{Note} > > \stoptext > > strc-not.mkiv: > > \def\letcurrentnoterulecommand{\expandafter\let\csname\??vn\c!rule:c:\currentnote\endcsname} > +\def\letcurrentnoterulealign {\expandafter\let\csname\??vn\c!rule:a:\currentnote\endcsname} > > \appendtoks > \letvalue{\??vn\c!rule:c:\currentnote}\currentnoterulecommandnormal > \letvalue{\??vn\c!rule:a:\currentnote}\lefttoright > \to \everysetupnote > > \appendtoks > - \processallactionsinset[\noteparameter\c!rule] > + \normalexpanded{\noexpand\processallactionsinset[\noteparameter\c!rule]} > [ \v!on=>\letcurrentnoterulecommand\currentnoterulecommandnormal, > \v!normal=>\letcurrentnoterulecommand\currentnoterulecommandnormal, > - \v!left=>\letcurrentnoterulecommand\lefttoright, > - \v!right=>\letcurrentnoterulecommand\righttoleft, > + \v!left=>\letcurrentnoterulealign \lefttoright, > + \v!right=>\letcurrentnoterulealign \righttoleft, > \v!off=>\letcurrentnoterulecommand\relax, > \s!default=>\letcurrentnoterulecommand\relax, > \s!unknown=>\letcurrentnoterulecommand\currentnoterulecommandunknown]% > \to \everysetupnote > > Example: > > \setupalign[r2l] > \setupnote[footnote][rule={on,right}] > \setupnotedefinition[footnote][location=left,command={\smash[w]}] % !!! > \starttext \showframe > Text\footnote{Note} > \stoptext Thanks Wolfgang! I understand that the patch fixes rule=right (that I tried earlier and didn't work), but I don't understand what \setupnotedefinition is doing (I'm trying to incorporate this in my bidi module so I need to have some understanding of what is happening) To Hans, besides applying this patch, shouldn't "rule=right" be the default in r2l mode? Regards, Khaled -- Khaled Hosny Egyptian Arab ___________________________________________________________________________________ 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 ___________________________________________________________________________________