Menu

#1 problem with mathematical sign

open-accepted
nobody
None
8
2011-06-30
2011-05-25
No

I try to convert xhtml document with mathml formulae with this command:
umcl_cli convert -o out.xhtml -x mathml cmathml test.xhtml
and i have some problems because it was unsuccesfull.

Here is log:
mfenced
separators :
mi pour y
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/04_unary_op.xsl line 152 element element
xsl:element: The effective name '' is not a valid QName.
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/08_add_index.xsl line 69 element element
xsl:element: The effective name '' is not a valid QName.
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/04_unary_op.xsl line 152 element element
xsl:element: The effective name '' is not a valid QName.
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/08_add_index.xsl line 69 element element
xsl:element: The effective name '' is not a valid QName.
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/04_unary_op.xsl line 152 element element
xsl:element: The effective name '' is not a valid QName.
runtime error: file /usr/local/share/umcl/XSLT/xIN/MathML/08_add_index.xsl line 69 element element
xsl:element: The effective name '' is not a valid QName.
mfenced
separators :
mi pour q
mo pour ⁢
mi pour q
mfenced
separators :
mi pour q
mfenced
separators :
mi pour s
mo pour ⁢
mi pour q
mfenced
separators :
mi pour q
Segmentation fault

Problem is with this formulae: <math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><semantics><mo>±</mo><annotation-xml encoding="MathML-Content"><ci>±</ci></annotation-xml></semantics></math>
because mathematical sign "±" is in <mo> tag. I try replce it with some Strings and if there is mathematical sign transformation is unsuccesfull, but if there is any other string then it is succesfull.

I send you my test file in attachment.

Discussion

  • Peter Mravec

    Peter Mravec - 2011-05-25
     
  • Peter Mravec

    Peter Mravec - 2011-06-24
    • priority: 5 --> 8
     
  • guyon franck

    guyon franck - 2011-06-30

    The '<mo>±</mo>' or '<mo>&#177;</mo>' mathml patern crash umcl and for instance we can just get around the problem replacing the 'mo' tag by a 'mi' or a 'mtext' one in the patern.

     
  • guyon franck

    guyon franck - 2011-06-30
    • status: open --> open-accepted
     
  • Dominique Archambault

    ps: this is a workaround and we'll work on fiix the problem

     
  • Dominique Archambault

    Actually it looks it's only woith the French Braille. We are progressing...
    the problem does not happen when transcribing into Marburg or Nemeth

     
  • Peter Mravec

    Peter Mravec - 2011-07-05

    Thank you for your solutions.

     

Log in to post a comment.