On Fri, 22 Jun 2018 14:13:22 -0600, Wolfgang Schuster <schuster.wolfg...@gmail.com> wrote:


Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu>
22. Juni 2018 um 21:01
On Thu, 21 Jun 2018 08:36:52 -0600, Alan Braslau
<braslau.l...@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.

This helps: many thanks for this detailed explanation!

--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to