Re: [NTG-context] attempt to index nil value with bidi math in hbox

2023-04-03 Thread Hans Hagen via ntg-context

On 4/3/2023 7:50 AM, Max Chernoff via ntg-context wrote:

Hi Hans,

This test file:

\setupdirections[bidi=global,method=one]
\starttext
\hbox{$\varepsilon$-TeX}
\stoptext

gives the following error:

callback error: 
...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to 
index a nil value (local 'before')
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: in 
upvalue 'resolve_weak'
...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:781: in 
upvalue 'resolve_levels'
...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:1053: 
in local 'handler'
...ext/tex/texmf-context/tex/context/base/mkxl/typo-dir.lmt:182: in 
upvalue 'typesetters_directions_handler'
[string "local tonut  = nodes.tonut..."]:20: in function <[string "local 
tonut  = nodes.tonut..."]:13>
(...tail calls...)

Running either this:

i'll check it (at least get rid of the error)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] attempt to index nil value with bidi math in hbox

2023-04-02 Thread Max Chernoff via ntg-context
Hi Hans,

This test file:

   \setupdirections[bidi=global,method=one]
   \starttext
   \hbox{$\varepsilon$-TeX}
   \stoptext

gives the following error:

   callback error: 
...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: attempt to 
index a nil value (local 'before')
   stack traceback:
   ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:618: in 
upvalue 'resolve_weak'
   ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:781: in 
upvalue 'resolve_levels'
   ...ext/tex/texmf-context/tex/context/base/mkxl/typo-duc.lmt:1053: in 
local 'handler'
   ...ext/tex/texmf-context/tex/context/base/mkxl/typo-dir.lmt:182: in 
upvalue 'typesetters_directions_handler'
   [string "local tonut  = nodes.tonut..."]:20: in function <[string 
"local tonut  = nodes.tonut..."]:13>
   (...tail calls...)
   
Running either this:

   \starttext
   \hbox{$\varepsilon$-TeX}
   \stoptext

or this:

   \setupdirections[bidi=global,method=one]
   \starttext
   \hbox{$\varepsilon$TeX}
   \stoptext
   
works as expected, without any errors.

Thanks,
-- Max
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___