int InsetSpecialChar::docbook(odocstream & os, OutputParams const &) const { switch (kind_) { case HYPHENATION: break; case ALLOWBREAK: // U+200B ZERO WIDTH SPACE (ZWSP) os.put(0x200b); break; case LIGATURE_BREAK: break; case END_OF_SENTENCE: os << '.'; break; case LDOTS: os << "…"; break; case MENU_SEPARATOR: os << "&lyxarrow;"; break; case SLASH: os << '/'; break; case NOBREAKDASH: os << '-'; break; case PHRASE_LYX: os << "LyX"; break; case PHRASE_TEX: os << "TeX"; break; case PHRASE_LATEX2E: os << "LaTeX2"; // ε U+03B5 GREEK SMALL LETTER EPSILON os.put(0x03b5); break; case PHRASE_LATEX: os << "LaTeX"; break; } return 0; }
int InsetERT::docbook(odocstream & os, OutputParams const &) const { // FIXME can we do the same thing here as for LaTeX? ParagraphList::const_iterator par = paragraphs().begin(); ParagraphList::const_iterator end = paragraphs().end(); int lines = 0; while (par != end) { pos_type siz = par->size(); for (pos_type i = 0; i < siz; ++i) os.put(par->getChar(i)); ++par; if (par != end) { os << "\n"; ++lines; } } return lines; }