Idris Samawi Hamid ادريس سماوي حامد
22. Juni 2018 um 21:01
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