mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 13:20:58 +00:00
Get MathML output for InsetMathDots working.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32633 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aa77492617
commit
8fa637a36f
@ -20,7 +20,7 @@
|
||||
#include "MetricsInfo.h"
|
||||
|
||||
#include "frontends/FontMetrics.h"
|
||||
|
||||
#include "support/lassert.h"
|
||||
|
||||
namespace lyx {
|
||||
|
||||
@ -85,10 +85,27 @@ void InsetMathDots::validate(LaTeXFeatures & features) const
|
||||
}
|
||||
|
||||
|
||||
// FIXME XHTML
|
||||
void InsetMathDots::mathmlize(MathStream & os) const
|
||||
{
|
||||
InsetMath::mathmlize(os);
|
||||
// which symbols we support is decided by what is listed in
|
||||
// lib/symbols as generating a dots inset
|
||||
docstring const & n = key_->name;
|
||||
std::string ent;
|
||||
if (n == "dots" || n == "dotsc" || n == "dotso" || n == "ldots")
|
||||
ent = "…";
|
||||
else if (n == "adots")
|
||||
ent = "⋰";
|
||||
else if (n == "cdots" || n == "dotsb" || n == "dotsi" || n == "dotsm")
|
||||
ent = "⋯";
|
||||
else if (n == "ddots")
|
||||
ent = "⋱";
|
||||
else if (n == "iddots")
|
||||
ent = "⋰";
|
||||
else if (n == "vdots")
|
||||
ent = "⋮";
|
||||
else
|
||||
LASSERT(false, ent = "…");
|
||||
os << from_ascii(ent);
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
|
Loading…
Reference in New Issue
Block a user