[NTG-context] MathML broken in mkiv?

2011-02-27 Thread Reviczky, Adam
Hi

I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file.

Adam
\usemodule[mathml]
\starttext
test
\xmlprocessdata{}{
math xmlns='http://www.w3.org/1998/Math/MathML'
 mrow
  msup mix/mimn2/mn /msup
  mo+/mo
  mrow
mn4/mnmix/mi
  /mrow
  mo+/mo
  mn4/mn
 /mrow
/math
}{}
\stoptext
(mathml.tex

ConTeXt  ver: 2011.02.25 22:03 MKIV  fmt: 2011.2.26  int: english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   mathml.top loaded
system   options  begin of optionfile
system   options 
system   options  % runtime options files (command line driven)
system   options  \unprotect
system   options  % feedback and basic job control
system   options  % handy for special styles
system   options  \startluacode
system   options  document = document or { }
system   options  document.arguments={
system   options  }
system   options  document.files={
system   options   mathml.tex,
system   options  }
system   options  \stopluacode
system   options  % process info
system   options  \setupsystem[inputfile=mathml.tex]
system   options  \setupsystem[\c!n=1,\c!m=1]
system   options  % modes
system   options  % options (not that important)
system   options  \startsetups *runtime:options
system   options  \stopsetups
system   options  % styles and modules
system   options  \startsetups *runtime:modules
system   options  \stopsetups
system   options  % done
system   options  \protect \endinput
system   options 
system   options  end of optionfile
(mathml.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
resolversmodules  loaded: 'mathml'
(/usr/share/texmf/tex/context/base/x-mathml.mkiv
loading  ConTeXt XML Macros / MathML Renderer
- /usr/share/texmf/tex/context/base/x-mathml.lua
resolversmodules  loaded: 'calcmath'
(/usr/share/texmf/tex/context/base/x-calcmath.mkiv+ /usr/share/texmf/tex/context/base/x-calcmath.lua)){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsfallback modern rm 12pt is loaded
system   begin file mathml.tex at line 2
xml  lpath  unknown function 'remapopenmath'
xml  lpath  unknown function 'remapmmlbind'
xml  lpath  unknown function 'remapmmlcsymbol'
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.

system   tex  error on line 7 in file mathml.tex: LuaTeX error  ...

 1 \usemodule[mathml]
 2 \starttext
 3 test
 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7 msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14  /mrow
15 /math
16 }{}
17 \stoptext


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.7 }
 
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right \rightfakedelimiter $#1
  \expandafter $\expandafter...
argument ...kdelimiters {\xmlall {::3}{/mml:mo}}
  \fakeleftdelimiter \xmlflu...
...
l.16 }{}

? q
OK, entering \batchmode...
! LuaTeX error main ctx instance:1: attempt to index field 'mathml' (a nil value)
stack traceback:
	main ctx instance:1: in main chunk.


system   tex  error on line 14 in file mathml.tex: LuaTeX error  ...

 4 \xmlprocessdata{}{
 5 math xmlns='http://www.w3.org/1998/Math/MathML'
 6  mrow
 7   msup mix/mimn2/mn /msup
 8   mo+/mo
 9   mrow
10 mn4/mnmix/mi
11   /mrow
12   mo+/mo
13   mn4/mn
14/mrow
15 /math
16 }{}
17 \stoptext
18 


\ctxmodulemathml ...rocount {moduledata.mathml.#1}
  
\@@su:mml:mo ...miter }\ctxmodulemathml {mo(#1)}
  \setfalse \mmlignoredelimi...
l.14 }
  
\ctxlxml #1-\directlua \zerocount {lxml.#1}

\checkdelimiters ...\right 

Re: [NTG-context] MathML broken in mkiv?

2011-02-27 Thread Hans Hagen

On 27-2-2011 3:40, Reviczky, Adam wrote:

Hi

I'm trying to use MathML with mkiv (latest beta), but I'm getting errors.
I'm attaching the minimal example (borrowed from the wiki) and the log file..


remove line 20 in x-mathml.lua

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___