[NTG-context] bidi in footnotes

Idris Samawi Hamid ادريس سماوي حامد Idris.Hamid at colostate.edu
Sat Jun 23 14:31:01 CEST 2018


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

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


More information about the ntg-context mailing list