On 12/31/2009 01:14 PM, Andre Poenitz wrote:
+// The fonts we want to support are listed in lib/symbols
+void InsetMathFont::mathmlize(MathStream& os) const
+{
+ // FIXME These are not quite right, because they do not nest
+ // correctly. A proper fix would presumably involve tracking
+ // the fonts already in effect.
+ std::string variant;
+ if (key_->name == "mathnormal" || key_->name == "mathrm"
+ || key_->name == "text" || key_->name == "textnormal"
+ || key_->name == "textrm" || key_->name == "textup"
+ || key_->name == "textmd")
+ variant = "normal";
[...]
+ if (!variant.empty())
+ os<< "<mstyle mathvariant='"<< from_utf8(variant)<< "'>"
+ << cell(0)<< "</mstyle>";
+}
Would it make sense to use
os<< cell(0)
for the 'unknown' cases?
Oh, sorry, yes. Just an oversight.
rh