]> git.lyx.org Git - lyx.git/commitdiff
Little bit of fixup for math symbols.
authorRichard Heck <rgheck@comcast.net>
Sat, 14 Nov 2009 16:21:33 +0000 (16:21 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 14 Nov 2009 16:21:33 +0000 (16:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31983 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathSymbol.cpp

index 8a1ba2fd1b4656d763b9d3b88d8ec95ace61058b..a4a761171fbfd88239be554bbee952041a09f8a6 100644 (file)
@@ -175,19 +175,24 @@ void InsetMathSymbol::mathematica(MathematicaStream & os) const
 }
 
 
+// FIXME This will likely need some work.
 char const * MathMLtype(docstring const & s)
 {
-       if (s == "mathop")
-               return "mo";
-       return "mi";
+       if (s == "mathord")
+               return "mi";
+       return "mo";
 }
 
 
 void InsetMathSymbol::mathmlize(MathStream & os) const
 {
+       // FIXME To get this working properly, we need to do add the 
+       // XML entity definitions to lib/symbols. And probably do more
+       // interesting things with MathMLtype
        char const * type = MathMLtype(sym_->extra);
        os << '<' << type << "> ";
-       if (sym_->xmlname == "x") // unknown so far
+       if (sym_->xmlname == "x") 
+               // unknown so far
                os << name();
        else
                os << sym_->xmlname;