From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93423 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Page Numbers change after 9 to 01 - 11 -21 - 31 and so on. Date: Tue, 19 Jan 2016 12:30:51 +0100 Message-ID: <569E1E6B.5010701@gmail.com> References: <569E0DE0.9020506@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7865703373858102453==" X-Trace: ger.gmane.org 1453203242 14783 80.91.229.3 (19 Jan 2016 11:34:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2016 11:34:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 19 12:33:43 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aLUXf-000396-4h for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jan 2016 12:33:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C6C6A612C; Tue, 19 Jan 2016 12:31:07 +0100 (CET) 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 CEZ4IfBuMsa1; Tue, 19 Jan 2016 12:31:05 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D9C176096; Tue, 19 Jan 2016 12:31:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D180A6096 for ; Tue, 19 Jan 2016 12:31:04 +0100 (CET) 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 Cy-5FOXzjNdB for ; Tue, 19 Jan 2016 12:31:04 +0100 (CET) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 63B50609C for ; Tue, 19 Jan 2016 12:30:54 +0100 (CET) Original-Received: by mail-wm0-f50.google.com with SMTP id b14so165944129wmb.1 for ; Tue, 19 Jan 2016 03:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=UTqDHlz5VCs8/JCwnV/TKJoVQQQWpbMuOCxaN66sgHg=; b=xb9GBBs9jrl4Gsw0SMrBCJVDnwmqWZVZkHTQ8RfNfXHExeQkKGFrN1ZJyb0HZ0aAVL gV0Y0Q+ueW8f9gSTq0+XOAJMG0BfuchNiMlUsKTZ0P7rFGF2/B4nEAGlvhlJFrfQZBUZ hgP+vRfZ/yW7a4aJ9HdwgE4wxZ04bC7O1v7ZnY0j+fzXHznzpBZq6+DcvpmljYHFMEmh EoySE0Q4qhEVRO9fDfoXeP6OYBEZzRE3igEaxWYcM5eu8xAyLGSBzYeA+0eny0o4U2YJ YKPLD3tGFX4K+kB6D9oqpwmvf03GPS8D5JMRIBXD3FPtzLwBSQAVBwk1DsZkwrBQkZf5 aHoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=UTqDHlz5VCs8/JCwnV/TKJoVQQQWpbMuOCxaN66sgHg=; b=Xk4a84l9Q3uXT+if+euVJuugSBNqBhSy4ZnjSxKIUslSx8mBeySz4JPsx1wODeNTVn VOGc9udroQvCUCP0CIbD1YccpHuNSS58mbxcZ1KqoO/yb49i4MuqtzrMhxAMpOm+sp1U qQsM8HuL+bQXcKRmBns4p2+TpXyjM3+EKNUHqPxQpR3FMLvx3pUJXsITGNNfWcliH5Uh Fel4m0d8cUxOsGi4RA2YPpUI74/XdHQXttrwwC3znSEmuSlLshS33m33+UxBPQ3sjGgi 2fUFPp309TrKPNiO1nhVUey/EdXeO7V7hfMezncMPu97+9AiIiHFRkROG+/bTLTeupe+ s+4Q== X-Gm-Message-State: AG10YOQ1oGOlpTKs6aSUbL4EgdZFNDLQ0Gx9HJQoWXUhZZuaEFJYcnN6VFPAgdZKhkAAIg== X-Received: by 10.28.212.85 with SMTP id l82mr17539524wmg.11.1453203054191; Tue, 19 Jan 2016 03:30:54 -0800 (PST) Original-Received: from keima.localdomain (x2f26867.dyn.telefonica.de. [2.242.104.103]) by smtp.gmail.com with ESMTPSA id t195sm20098271wme.13.2016.01.19.03.30.53 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 19 Jan 2016 03:30:53 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) 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:93423 Archived-At: This is a multi-part message in MIME format. --===============7865703373858102453== Content-Type: multipart/alternative; boundary="------------090605000708050204040701" This is a multi-part message in MIME format. --------------090605000708050204040701 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Mohammad Hossein Bateni > 19. Januar 2016 um 12:16 > That should work for Ibn Saeed, but it's not a complete solution. For > example it does not work if one wants to write "page x of y" instead, > with "page" and "y" written in Arabic/Persian. Then the text of the > header is partly LTR and part RTL. > > This is still simple and I can use my hacky solution and mix > \lefttoright and \righttoleft to get it right. But is it possible to > extend the \setupdirections[bidi=on] to apply to parts other than the > main text? I just noticed this does not apply to footnotes either. > Having numbers in the TRL footnote text produces incorrect typesetting. ConTeXt resets many settings for headers, footers, footnotes etc. and have to set them again for these elements. To apply the bidi setting to footnotes you have to add \startsetups[bidi:footnotes] \setupdirection[bidi=on] \stopsetups \setupnotes[footnote][setups=bidi:footnotes] to your document. Wolfgang --------------090605000708050204040701 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
19= .=20 Januar 2016 um 12:16
That should= work for Ibn Saeed, but it's not a complete solution.=C2=A0 For example it do= es=20 not work if one wants to write "page x of y" instead, with "page" and=20 "y" written in Arabic/Persian.=C2=A0 Then the text of the header is partl= y=20 LTR and part RTL.

This is still simple and I can use=20 my hacky solution and mix \lefttoright and \righttoleft to get it=20 right.=C2=A0 But is it possible to extend the \setupdirections[bidi=3Don]= to=20 apply to parts other than the main text?=C2=A0 I just noticed this does n= ot=20 apply to footnotes either.=C2=A0 Having numbers in the TRL footnote text=20 produces incorrect typesetting.
ConTeXt resets many settings for headers, footers, footnotes etc. and=20 have to set them again for these elements.

To apply the bidi setting to footnotes you have to add

\startsetups[bidi:footnotes]
=C2=A0 \setupdirection[bidi=3Don]
\stopsetups

\setupnotes[footnote][setups=3Dbidi:footnotes]

to your document.

Wolfgang


--------------090605000708050204040701-- --===============7865703373858102453== 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= --===============7865703373858102453==--