From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70510 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: R2L footnotes Date: Mon, 8 Aug 2011 16:57:19 +0200 Message-ID: References: <20110806200537.GA14901@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1312815486 8935 80.91.229.12 (8 Aug 2011 14:58:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2011 14:58:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 08 16:58:00 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 1QqRHC-00018C-Na for gctc-ntg-context-518@m.gmane.org; Mon, 08 Aug 2011 16:57:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7E80DCAEC0; Mon, 8 Aug 2011 16:57:55 +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 tPYzNzNxQAih; Mon, 8 Aug 2011 16:57:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCC0ACAEAD; Mon, 8 Aug 2011 16:57:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70CEFCAEAD for ; Mon, 8 Aug 2011 16:57:41 +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 CLes-E1dsX7x for ; Mon, 8 Aug 2011 16:57:30 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 87146CAE9B for ; Mon, 8 Aug 2011 16:57:30 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p78EvT3W001620 for ; Mon, 8 Aug 2011 16:57:30 +0200 Original-Received: by fxg9 with SMTP id 9so5470172fxg.14 for ; Mon, 08 Aug 2011 07:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=MuOPcqn9r6O6xhAUng4NAp7fAOcldy4FIsWPtHw51Ls=; b=nj/N4C9fefoxkjtM5l/vf92rnT8NgDE1TQvny7MrYn0vyEVPsFDKXB4epcfr3Rmiai wr5zdARlVD4oKiWXNVMlai++7kQiFgqhJxVO06PjHVbTfSI4qXbI6StlEOjuY5geLL07 kbOIGImbjUR8UbRLKfIKEorLgwQ7KlLFsdN7Q= Original-Received: by 10.223.40.198 with SMTP id l6mr7651060fae.14.1312815449637; Mon, 08 Aug 2011 07:57:29 -0700 (PDT) Original-Received: from [192.168.2.31] (p5482CFDF.dip.t-dialin.net [84.130.207.223]) by mx.google.com with ESMTPS id b14sm4203829fab.43.2011.08.08.07.57.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 07:57:27 -0700 (PDT) In-Reply-To: <20110806200537.GA14901@khaled-laptop> X-Mailer: Apple Mail (2.1244.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; 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: 0rFhOVtKn - 3e67ab43565c - 20110808 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:70510 Archived-At: 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 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 ___________________________________________________________________________________