[NTG-context] MathML test suite feedback

2006-03-20 Thread nico

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

mathml-tests.tar.gz
Description: GNU Zip compressed data
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MathML test suite feedback

2006-03-20 Thread Hans Hagen
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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MathML test suite feedback

2006-03-20 Thread Hans Hagen
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= 
mix/mi
miy/mi
  /mfenced
/mml:math
\stoptyping

is rendered as:
\startXMLdata
math
  mfenced separators= open= close= 
mix/mi
miy/mi
  /mfenced
/math
\stopXMLdata


\startbuffer
mml:math xmlns=http://www.w3.org/1998/Math/MathML;
  mfenced separators= open= close= 
mix/mi
miy/mi
  /mfenced
/mml:math
\stopbuffer

\typebuffer

is rendered as:

\processXMLbuffer

saves keystrokes and is less error prone (differences in code)

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MathML test suite feedback

2006-03-20 Thread Hans Hagen
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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] MathML test suite feedback

2006-03-20 Thread nico
On Mon, 20 Mar 2006 21:37:25 +0100, Hans Hagen [EMAIL PROTECTED] 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= 
 mix/mi
 miy/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;
 applydivide/ci1/cici6/ci/apply
   /mml:math
\stopXMLdata

But this compiles:

\startXMLdata
   math
 applydivide/ci1/cici6/ci/apply
   /math
\stopXMLdata

Regards,
BG
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context