From 886304a588411321758ffecd2559585ac0ab9a95 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sat, 14 Nov 2009 16:21:33 +0000 Subject: [PATCH] Little bit of fixup for math symbols. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31983 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathSymbol.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/mathed/InsetMathSymbol.cpp b/src/mathed/InsetMathSymbol.cpp index 8a1ba2fd1b..a4a761171f 100644 --- a/src/mathed/InsetMathSymbol.cpp +++ b/src/mathed/InsetMathSymbol.cpp @@ -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; -- 2.39.2