Fix a few MathML things: the default output and the output of limits.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32542 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-12-16 14:53:23 +00:00
parent 512215606b
commit 9e149b8919
3 changed files with 10 additions and 3 deletions

View File

@ -122,8 +122,10 @@ void InsetMath::mathematica(MathematicaStream & os) const
void InsetMath::mathmlize(MathStream & os) const
{
os << MTag("mi");
NormalStream ns(os.os());
normalize(ns);
os << ETag("mi");
}

View File

@ -1768,9 +1768,10 @@ int InsetMathHull::docbook(odocstream & os, OutputParams const & runparams) cons
docstring InsetMathHull::xhtml(XHTMLStream & xs, OutputParams const &) const
{
if (getType() == hullSimple)
xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"");
xs << StartTag("math", "xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
else
xs << StartTag("math", "display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"");
xs << StartTag("math",
"display=\"block\" xmlns=\"http://www.w3.org/1998/Math/MathML\"", true);
MathStream ms(xs.os());
InsetMathGrid::mathmlize(ms);
xs << EndTag("math");

View File

@ -73,7 +73,11 @@ void InsetMathLim::mathematica(MathematicaStream & os) const
void InsetMathLim::mathmlize(MathStream & os) const
{
os << "lim(" << cell(0) << ',' << cell(1) << ',' << cell(2) << ')';
// FIXME XHTML We need a form of MTag that takes attributes.
os << "<munder>"
<< "<mo form='prefix'>" << "lim" << "</mo>"
<< "<mrow>" << cell(1) << "<mo>&rarr;</mo>" << cell(2) << "</mrow></munder>"
<< "<mfenced open='(' close=')'>" << cell(0) << "</mfenced>";
}