]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDots.cpp
listerrors.lyx : Update a link.
[lyx.git] / src / mathed / InsetMathDots.cpp
index 8ca2a1e46981c9ed5f4a40f95803b143434360ca..147e7627e48e9fc7791bb9cf66ad8470ab93c69b 100644 (file)
@@ -93,14 +93,12 @@ void InsetMathDots::mathmlize(MathStream & os) const
        std::string ent;
        if (n == "dots" || n == "dotsc" || n == "dotso" || n == "ldots")
                ent = "…";
-       else if (n == "adots")
+       else if (n == "adots" || n == "iddots")
                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
@@ -108,4 +106,26 @@ void InsetMathDots::mathmlize(MathStream & os) const
        os << MTag("mi") << from_ascii(ent) << ETag("mi");
 }
 
+
+void InsetMathDots::htmlize(HtmlStream & os) const
+{
+       // 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 = "&#x02026;";
+       else if (n == "adots" || n == "iddots")
+               ent = "&#x022F0;";
+       else if (n == "cdots" || n == "dotsb" || n == "dotsi" || n == "dotsm")
+               ent = "&#x022EF;";
+       else if (n == "ddots")
+               ent = "&#x022F1;";
+       else if (n == "vdots")
+               ent = "&#x022EE;";
+       else
+               LASSERT(false, ent = "#x02026;");
+       os << from_ascii(ent);
+}
+
 } // namespace lyx