patricmutwiri / symja

Automatically exported from code.google.com/p/symja
0 stars 0 forks source link

MathML rendering doesn't work for symbols like Pi, Alpha,... #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Evaluate a symbol like "Pi" in pretty printer mode

What is the expected output? What do you see instead?

It's expected to see the MathML output for "Pi" but instead it throws 
exception:

Caused by: org.xml.sax.SAXParseException: The entity "pi" was referenced, 
but not declared.
    at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseE
xception(ErrorHandlerWrapper.java:195)
    at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Erro
rHandlerWrapper.java:174)
    at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErr
orReporter.java:388)
    at 
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScan
ner.java:1411)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan
EntityReference(XMLDocumentFragmentScannerImpl.java:1885)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Frag
mentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3017)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocu
mentScannerImpl.java:645)
    at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNS
DocumentScannerImpl.java:140)
    at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan
Document(XMLDocumentFragmentScannerImpl.java:508)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
nfiguration.java:807)
    at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
nfiguration.java:737)
    at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:1
07)
    at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:2
25)
    at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentB
uilderImpl.java:283)
    at 
net.sourceforge.jeuclid.parser.Parser.parseStreamSourceAsXml(Parser.java:31
8)
    at 
net.sourceforge.jeuclid.MathMLParserSupport.parseString(MathMLParserSupport
.java:143)
    at 
net.sourceforge.jeuclid.swing.JMathComponent.setContent(JMathComponent.java
:315)
    ... 9 more

Original issue reported on code.google.com by axelclk@gmail.com on 22 May 2009 at 6:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Fixed with http://code.google.com/p/symja/source/detail?r=324

Original comment by axelclk@gmail.com on 27 Dec 2009 at 7:50