Re: [NTG-context] New tabulate features broken under new maths release

2022-07-09 Thread Hans Hagen via ntg-context

On 7/9/2022 6:45 PM, Bruce Horrocks via ntg-context wrote:

\starttext
\starttabulate[|lG{}|lG{}|]
\NC \showglyphs \setalignmentcharacter{=}111=111 \NC 
\setalignmentcharacter{=}111=111 \NC\NR
\stoptabulate
\stoptext


in node-ali.lmt around 615 add this if test

if signal then
-- maybe also signal
third_pass(head,attr,preamble)
end


--

-
  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] New tabulate features broken under new maths release

2022-07-09 Thread Bruce Horrocks via ntg-context
Hi Hans,

A few months back you announced some new tabulate features and gave some 
examples, from which I have taken the following MWE:

\starttext
\starttabulate[|lG{}|lG{}|]
\NC \showglyphs \setalignmentcharacter{=}111=111 \NC 
\setalignmentcharacter{=}111=111 \NC\NR
\stoptabulate
\stoptext


This works under "ConTeXt  ver: 2022.01.10 08:36 LMTX  fmt: 2022.1.13  int: 
english/english" but fails to compile under "ConTeXt  ver: 2022.07.06 21:42 
LMTX  fmt: 2022.7.9  int: english/english" with the Lua error:

callback error: 
...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:366: attempt to 
index a nil value (field '?')
stack traceback:
...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:366: in 
upvalue 'openup'
...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:596: in 
upvalue 'third_pass'
...-64/tex/texmf-context/tex/context/base/mkxl/node-ali.lmt:613: in 
upvalue 'nodes_handlers_fixmathalign'
[string "local tonut  = nodes.tonut..."]:17: in function <[string 
"local tonut  = nodes.tonut..."]:8>
(...tail calls...)
...-64/tex/texmf-context/tex/context/base/mkxl/node-pro.lmt:148: in 
function <...-64/tex/texmf-context/tex/context/base/mkxl/node-pro.lmt:146>  

Narrowing it down a bit, it seems to be the use of G{} as the MWE works with a 
plain \starttabulate[|l|l|] on the latest ConTeXt.

—
Bruce Horrocks
Hampshire, UK

___
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
___