[NTG-context] Bidi-related register problem

Rik Kabel context at rik.users.panix.com
Fri Jan 25 02:36:17 CET 2019

Recent betas have introduced a bidi-related problem with register 

In the following example, compilation generates a recoverable error when 
register processing has to trim an entry to fit maxwidth. The error is:

luatex warning  > node filter: error: ...eXt/tex/texmf-context/tex/context/base/mkiv/typo-dub.lua:496: attempt to index local 'stacktop' (a nil value)

Removing the maxwidth constraint, or setting it to a much wider value, 
allows error-free compilation.

Without \setupdirections[bidi=on,method=two] there is no problem, but 
without it RTL texts are not handled properly. This is a recent change; 
bidi=global worked a few months ago. (I have not tried with LTR text in 
a default-RTL document).

    % macros=mkvi
    \setupregister [Mindex]

    \starttexdefinition unexpanded MIndex

    \starttexdefinition unexpanded doMIndex #MARKER

    \starttexdefinition doMIndexFull #ITEM

    \setupdirections [bidi=on,method=two]

    \setupbodyfont   [libertinus,11pt]


       \MIndex{One}{Mairzy doats and dozy doats and liddle lamzy divey}

       \input jojomayer


    סלאם שלום


Rik Kabel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190124/5cd56d5b/attachment.html>

More information about the ntg-context mailing list