From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101059 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: bidi in footnotes Date: Fri, 22 Jun 2018 22:13:22 +0200 Message-ID: <5B2D5862.8070401@gmail.com> References: <20180621083652.0729e646@poo.hsd1.co.comcast.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0808791985367474845==" X-Trace: blaine.gmane.org 1529698314 3386 195.159.176.226 (22 Jun 2018 20:11:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2018 20:11:54 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) Cc: mailing list for ConTeXt users , Hans Hagen To: =?UTF-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMg2LPZhdin2YjZiiDYrdin?= =?UTF-8?B?2YXYrw==?= Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 22 22:11:50 2018 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fWSPN-0000lU-Da for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jun 2018 22:11:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BAE4E39136; Fri, 22 Jun 2018 22:13:37 +0200 (CEST) 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 XKetaCp3L9ZN; Fri, 22 Jun 2018 22:13:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 0B73D3913D; Fri, 22 Jun 2018 22:13:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2E27F390B2 for ; Fri, 22 Jun 2018 22:13:36 +0200 (CEST) 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 3Y4rw-A_05Lo for ; Fri, 22 Jun 2018 22:13:35 +0200 (CEST) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (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 ADB0B390B0 for ; Fri, 22 Jun 2018 22:13:25 +0200 (CEST) Original-Received: by mail-wm0-f44.google.com with SMTP id p11-v6so3865993wmc.4 for ; Fri, 22 Jun 2018 13:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to; bh=v+9PYZVFjHfnqmyPFzxHyaJVnBgSLnT7uE9u5B1poNI=; b=iPdEswn7/ledNCBi3Q8ZdxYdsPyzIu7JyPx0UBbtcbGGUreGZJqtGYCm76FmdospWA UBrm0zTYJupCk90JVckxH9ev24kUGUEJVyc57N7q93yN2bC7lBY4nl64FJVJVSuknKFU Evyw63cE4rEYXJp9Q7GwdCXpDxPXFeaobIYGSQ3ratkrepUtYwXOxPlay8Fd7036lTvP 0XbYld3UhN4QgkL13SDlCIvh/CXhhXcB862czuAY+PAobQYLL0DMdcp1yEyvg9eDdmKo UAssxsYUqoAZkolGu2RAHsJnDi5DdEfFcgQ3hOjwk3m9eg9LEZGeve59KtzpHoX4QwHG OUxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to; bh=v+9PYZVFjHfnqmyPFzxHyaJVnBgSLnT7uE9u5B1poNI=; b=rTmVdi0WHnKkSL0dKKD7MOTDBQihbFsqm3KlT5P1Z3bOisiDssGP9LwezQJl30T2HV twOXxtZYSGhCYoZ0ziqrVPEyi58wNlHVNG4ngvtCNzuQgEg/U/zPIbcfXWQYkVWsb5Vx O7s0/vZYHs6mEu6l00fjJiojiY9xGGSE/MsFcByuCeXXQVSQGfSv+vpVigq0sZZXNdhB 0eIFSDSl6Gk6JCC0PGqjGP4CSH/vKtR4M1XdabqFwiXkjGvQk/NHYJf2rpJz9nzTad7z NBYnwf2cu+L669BVNBEkNimuDkG5oAU7suva+StpeuifcLFwnSDc8S3qqGCZxlwmHUXL MFdQ== X-Gm-Message-State: APt69E1burI6s9nAmi9bUsoidLwzpGRHdWbGJngI9PbpV0ch/NsbjUUt uUi6A9cPXqVKNemdEDPfBbk= X-Google-Smtp-Source: ADUXVKL334k1dF/ReYAt0RaA3VAmMq3gpo1tFus27J/xEfYoVy2tQM5iaiGg2U3BkAVXBDwyrIvRIg== X-Received: by 2002:a1c:8a07:: with SMTP id m7-v6mr2878549wmd.27.1529698405315; Fri, 22 Jun 2018 13:13:25 -0700 (PDT) Original-Received: from [192.168.1.12] (x4dbe6c20.dyn.telefonica.de. [77.190.108.32]) by smtp.gmail.com with ESMTPSA id b16-v6sm13563795wrm.15.2018.06.22.13.13.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 13:13:24 -0700 (PDT) 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:101059 Archived-At: This is a multi-part message in MIME format. --===============0808791985367474845== Content-Type: multipart/alternative; boundary="------------090600090703060807080407" This is a multi-part message in MIME format. --------------090600090703060807080407 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Idris Samawi Hamid ادريس سماوي حامد > 22. Juni 2018 um 21:01 > On Thu, 21 Jun 2018 08:36:52 -0600, Alan Braslau > wrote: > > > Many thanks. Is there (Hans? Wolfgang?) available somewhere > > 1. a complete list of these environments whose typographical settings > are decoupled from the rest of the document? The problem you mentioned isn’t limited to bidi but applies also to linbreaking for east asian languages (e.g. chinese) and fixing it makes sense. The reason why you have to re-enable the functions is that certain environment disable a number of Lua attributes to avoid side effects, e.g. to change the footnote color when you change the text color at the page break. One way to fix this is to make the attributes of the affected commands global which means they won’t be reseted, e.g. change the line (typo-dir.mkiv) \definesystemattribute[directions][public] to \definesystemattribute[directions][public,global] Another way is to re-enable the commands in footnotes etc. \appendtoks \ifcase\directionsbidimode \else \setdirection[\number\directionsbidimode]% \fi \to \everybeforenoteinsert There are three parts in context where attributes are disabled which affects bidi: 1. Note inserts which affects \footnote. 2. Margin data which affects \inmargin etc. 3. The output routine which affects header and footer lines. 2. a complete list of those typographical settings (bidi, whitespace, etc,) which are have to explicitly setup for such environments? Whitespace etc. are unrelated to the problem above and can be changed with the normal setup-commands. Wolfgang --------------090600090703060807080407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On Thu, 21 Jun 2018 08:36:52 -0600, Alan Braslau <braslau.list@comcast.net> wrote:


Many thanks. Is there (Hans? Wolfgang?) available somewhere

1. a complete list of these environments whose typographical settings are decoupled from the rest of the document?

The problem you mentioned isn’t limited to bidi but applies also to linbreaking for east asian languages (e.g. chinese) and fixing it makes sense.


The reason why you have to re-enable the functions is that certain environment disable a number of Lua attributes to avoid side effects, e.g. to change the footnote color when you change the text color at the page break.


One way to fix this is to make the attributes of the affected commands global which means they won’t be reseted, e.g. change the line (typo-dir.mkiv)

    \definesystemattribute[directions][public]

to

    \definesystemattribute[directions][public,global]


Another way is to re-enable the commands in footnotes etc.

    \appendtoks
        \ifcase\directionsbidimode \else
            \setdirection[\number\directionsbidimode]%
        \fi
    \to \everybeforenoteinsert   


There are three parts in context where attributes are disabled which affects bidi:

1. Note inserts which affects \footnote.

2. Margin data which affects \inmargin etc.

3. The output routine which affects header and footer lines.


2. a complete list of those typographical settings (bidi, whitespace, etc,) which are have to explicitly setup for such environments?


Whitespace etc. are unrelated to the problem above and can be changed with the normal setup-commands.


Wolfgang
--------------090600090703060807080407-- --===============0808791985367474845== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============0808791985367474845==--