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