Recent betas have introduced a bidi-related problem with register processing.

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

If your question is of interest to others as well, please add an entry to the 

maillist : /
webpage  : /
archive  :
wiki     :

Reply via email to