* MathML test suite feedback
@ 2006-03-20 19:45 nico
2006-03-20 20:20 ` Hans Hagen
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: nico @ 2006-03-20 19:45 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 771 bytes --]
Hello,
I've compiled with ConTeXt a large excerpt from the MathML 2.0 Test Suite
(http://www.w3.org/Math/testsuite) and I encountered the following
problems (test cases attached):
- Percentage in tag attributes are not correctly handled (seem to be seen
as tex comments) and make context crashes.
- mfenced with empty separators doesn't work.
- Using different brackets in <mo> doesn't work.
- I don't know if it's a local install problem, but some fonts are not
found when using UTF encoding.
This said, only 6% (41/657) of the tests fails, which is an excellent
rate. BTW, if someone is interested in the big context file containing all
the tests, just tell me. I can also send the perl script used to generate
this doc.
Regards,
BG
[-- Attachment #2: mathml-tests.tar.gz --]
[-- Type: application/x-gzip, Size: 1099 bytes --]
[-- Attachment #3: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 19:45 MathML test suite feedback nico
@ 2006-03-20 20:20 ` Hans Hagen
2006-03-20 20:29 ` Hans Hagen
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-03-20 20:20 UTC (permalink / raw)
nico wrote:
> Hello,
>
> I've compiled with ConTeXt a large excerpt from the MathML 2.0 Test
> Suite (http://www.w3.org/Math/testsuite) and I encountered the
> following problems (test cases attached):
>
> - Percentage in tag attributes are not correctly handled (seem to be
> seen as tex comments) and make context crashes.
> - mfenced with empty separators doesn't work.
> - Using different brackets in <mo> doesn't work.
> - I don't know if it's a local install problem, but some fonts are not
> found when using UTF encoding.
>
> This said, only 6% (41/657) of the tests fails, which is an excellent
> rate. BTW, if someone is interested in the big context file containing
> all the tests, just tell me. I can also send the perl script used to
> generate this doc.
i assume that you ran with \usemodule[mathml]
how does \usemodule[newmml] perform? that one should work better with utf
if you prepare a file with 'failures' i can have a look at it
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 19:45 MathML test suite feedback nico
2006-03-20 20:20 ` Hans Hagen
@ 2006-03-20 20:29 ` Hans Hagen
2006-03-20 20:35 ` Hans Hagen
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-03-20 20:29 UTC (permalink / raw)
nico wrote:
> This said, only 6% (41/657) of the tests fails, which is an excellent
> rate. BTW, if someone is interested in the big context file containing
> all the tests, just tell me. I can also send the perl script used to
> generate this doc.
ah, you attached the problematic files; i'll have a look
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 19:45 MathML test suite feedback nico
2006-03-20 20:20 ` Hans Hagen
2006-03-20 20:29 ` Hans Hagen
@ 2006-03-20 20:35 ` Hans Hagen
2006-03-20 20:37 ` Hans Hagen
2006-03-20 21:48 ` Hans Hagen
4 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-03-20 20:35 UTC (permalink / raw)
nico wrote:
> Hello,
>
> I've compiled with ConTeXt a large excerpt from the MathML 2.0 Test
> Suite (http://www.w3.org/Math/testsuite) and I encountered the
> following problems (test cases attached):
>
> - Percentage in tag attributes are not correctly handled (seem to be
> seen as tex comments) and make context crashes.
\startXMLdata does not change the catcode of % and it grabs an argument;
could be a low priority feature request ( to be added to the
wiki/collector)
best use:
\startXMLbuffer
\stopXMLbuffer
\processXMLbuffer
(the fontsize is not supported (does not make sense in a regular
typesetting context)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 19:45 MathML test suite feedback nico
` (2 preceding siblings ...)
2006-03-20 20:35 ` Hans Hagen
@ 2006-03-20 20:37 ` Hans Hagen
2006-03-20 21:28 ` nico
2006-03-20 21:48 ` Hans Hagen
4 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2006-03-20 20:37 UTC (permalink / raw)
nico wrote:
> Hello,
>
> I've compiled with ConTeXt a large excerpt from the MathML 2.0 Test
> Suite (http://www.w3.org/Math/testsuite) and I encountered the
> following problems (test cases attached):
you say:
\starttyping
<mml:math xmlns="http://www.w3.org/1998/Math/MathML">
<mfenced separators="" open="" close=" ">
<mi>x</mi>
<mi>y</mi>
</mfenced>
</mml:math>
\stoptyping
is rendered as:
\startXMLdata
<math>
<mfenced separators="" open="" close=" ">
<mi>x</mi>
<mi>y</mi>
</mfenced>
</math>
\stopXMLdata
\startbuffer
<mml:math xmlns="http://www.w3.org/1998/Math/MathML">
<mfenced separators="" open="" close=" ">
<mi>x</mi>
<mi>y</mi>
</mfenced>
</mml:math>
\stopbuffer
\typebuffer
is rendered as:
\processXMLbuffer
saves keystrokes and is less error prone (differences in code)
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 20:37 ` Hans Hagen
@ 2006-03-20 21:28 ` nico
0 siblings, 0 replies; 7+ messages in thread
From: nico @ 2006-03-20 21:28 UTC (permalink / raw)
On Mon, 20 Mar 2006 21:37:25 +0100, Hans Hagen <pragma@wxs.nl> wrote:
> nico wrote:
>> Hello,
>>
>> I've compiled with ConTeXt a large excerpt from the MathML 2.0 Test
>> Suite (http://www.w3.org/Math/testsuite) and I encountered the
>> following problems (test cases attached):
> you say: [...]
>
> \startbuffer
> <mml:math xmlns="http://www.w3.org/1998/Math/MathML">
> <mfenced separators="" open="" close=" ">
> <mi>x</mi>
> <mi>y</mi>
> </mfenced>
> </mml:math>
> \stopbuffer
>
> \typebuffer
>
> is rendered as:
>
> \processXMLbuffer
>
> saves keystrokes and is less error prone (differences in code)
Thanks for the advice. Indeed it is shorter and much more elegant. But in
this case the test was automatically generated.
Actually the code is different because the XML namespace does not seem
correctly handled.
For example, this does not compile:
\startXMLdata
<mml:math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><divide/><ci>1</ci><ci>6</ci></apply>
</mml:math>
\stopXMLdata
But this compiles:
\startXMLdata
<math>
<apply><divide/><ci>1</ci><ci>6</ci></apply>
</math>
\stopXMLdata
Regards,
BG
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: MathML test suite feedback
2006-03-20 19:45 MathML test suite feedback nico
` (3 preceding siblings ...)
2006-03-20 20:37 ` Hans Hagen
@ 2006-03-20 21:48 ` Hans Hagen
4 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2006-03-20 21:48 UTC (permalink / raw)
nico wrote:
>
> This said, only 6% (41/657) of the tests fails, which is an excellent
> rate. BTW, if someone is interested in the big context file containing
> all the tests, just tell me. I can also send the perl script used to
> generate this doc.
maybe we should start thinking of
texmf/samples/context/third/mathml/..
kind of archives, test suites, regression tests etc (preferable maintained by some users -)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-03-20 21:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-20 19:45 MathML test suite feedback nico
2006-03-20 20:20 ` Hans Hagen
2006-03-20 20:29 ` Hans Hagen
2006-03-20 20:35 ` Hans Hagen
2006-03-20 20:37 ` Hans Hagen
2006-03-20 21:28 ` nico
2006-03-20 21:48 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).