#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
+#include "output_xhtml.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
InsetSpecialChar::InsetSpecialChar(Kind k)
- : kind_(k)
+ : Inset(0), kind_(k)
{}
}
-int InsetSpecialChar::xhtml(odocstream & os, OutputParams const &) const
+docstring InsetSpecialChar::xhtml(XHTMLStream & xs, OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
case LIGATURE_BREAK:
break;
case END_OF_SENTENCE:
- os << '.';
+ xs << '.';
break;
case LDOTS:
- os << "…";
+ xs << XHTMLStream::NextRaw() << "…";
break;
case MENU_SEPARATOR:
- os << "⇒";
+ xs << XHTMLStream::NextRaw() << "⇒";
break;
case SLASH:
- os << "⁄";
+ xs << XHTMLStream::NextRaw() << "⁄";
break;
case NOBREAKDASH:
- os << '-';
+ xs << '-';
break;
}
- return 0;
+ return docstring();
}
}
-bool InsetSpecialChar::isChar() const
-{
- return true;
-}
-
-
bool InsetSpecialChar::isLetter() const
{
return kind_ == HYPHENATION || kind_ == LIGATURE_BREAK;