Improve InsetSpace docbook export

The removed link does not exist anymore. The character entities were taken
from http://www.sagehill.net/docbookxsl/SpecialChars.html.
This commit is contained in:
Georg Baum 2015-02-01 12:39:53 +01:00
parent 8fcbba8596
commit 8c3829e6f1

View File

@ -703,24 +703,39 @@ int InsetSpace::docbook(odocstream & os, OutputParams const &) const
{ {
switch (params_.kind) { switch (params_.kind) {
case InsetSpaceParams::NORMAL: case InsetSpaceParams::NORMAL:
case InsetSpaceParams::QUAD:
case InsetSpaceParams::QQUAD:
case InsetSpaceParams::ENSKIP:
os << " "; os << " ";
break; break;
// FIXME For spaces and dashes look here: case InsetSpaceParams::QUAD:
// http://oreilly.com/catalog/docbook/book2/iso-pub.html os << "&emsp;"
break;
case InsetSpaceParams::QQUAD:
os << "&emsp;&emsp;"
break;
case InsetSpaceParams::ENSKIP:
os << "&ensp;"
break;
case InsetSpaceParams::PROTECTED: case InsetSpaceParams::PROTECTED:
// FIXME &blank; ? os << "&nbsp;";
break;
case InsetSpaceParams::VISIBLE: case InsetSpaceParams::VISIBLE:
os << "&#x2423;";
break;
case InsetSpaceParams::ENSPACE: case InsetSpaceParams::ENSPACE:
// FIXME &thinsp; ? os << "&#x2060;&ensp;&#x2060;";
break;
case InsetSpaceParams::THIN: case InsetSpaceParams::THIN:
os << "&thinsp;";
break;
case InsetSpaceParams::MEDIUM: case InsetSpaceParams::MEDIUM:
os << "&emsp14;";
break;
case InsetSpaceParams::THICK: case InsetSpaceParams::THICK:
os << "&emsp13;";
break;
case InsetSpaceParams::NEGTHIN: case InsetSpaceParams::NEGTHIN:
case InsetSpaceParams::NEGMEDIUM: case InsetSpaceParams::NEGMEDIUM:
case InsetSpaceParams::NEGTHICK: case InsetSpaceParams::NEGTHICK:
// FIXME
os << "&nbsp;"; os << "&nbsp;";
break; break;
case InsetSpaceParams::HFILL: case InsetSpaceParams::HFILL: