From 364e6888fb5e1f5a8dd3fc47b80db0fa8bf9953d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 6 Jun 2017 17:47:49 -0400 Subject: epub, special characters in content.opf header, fix --- src/sdp/output/epub3.d | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/sdp/output/epub3.d') diff --git a/src/sdp/output/epub3.d b/src/sdp/output/epub3.d index 0f91c86..b05cf20 100644 --- a/src/sdp/output/epub3.d +++ b/src/sdp/output/epub3.d @@ -30,6 +30,7 @@ template outputEPub3() { return o; } string epub3_oebps_content(D,I,P)(D doc_abstraction, I doc_matters, P parts) { + auto xhtml_format = outputXHTMLs(); auto pth_epub3 = SiSUpathsEPUB!()(doc_matters.src_path_info, doc_matters.language); string uuid = "18275d951861c77f78acd05672c9906924c59f18a2e0ba06dad95959693e9bd8"; // TODO sort uuid in doc_matters! string content = format(q"¶ @@ -61,19 +62,19 @@ template outputEPub3() { ¶", uuid, - doc_matters.dochead_meta["title"]["full"], - doc_matters.dochead_meta["title"]["main"], + xhtml_format.special_characters_text(doc_matters.dochead_meta["title"]["full"]), + xhtml_format.special_characters_text(doc_matters.dochead_meta["title"]["main"]), (doc_matters.dochead_meta["title"]["sub"].empty) - ? "" : doc_matters.dochead_meta["title"]["sub"], + ? "" : xhtml_format.special_characters_text(doc_matters.dochead_meta["title"]["sub"]), (doc_matters.dochead_meta["creator"]["author"].empty) - ? "" : doc_matters.dochead_meta["creator"]["author"], + ? "" : xhtml_format.special_characters_text(doc_matters.dochead_meta["creator"]["author"]), (doc_matters.dochead_meta["creator"]["author"].empty) - ? "" : doc_matters.dochead_meta["creator"]["author"], + ? "" : xhtml_format.special_characters_text(doc_matters.dochead_meta["creator"]["author"]), doc_matters.language, (doc_matters.dochead_meta["date"]["published"].empty) - ? "" : doc_matters.dochead_meta["date"]["published"], + ? "" : xhtml_format.special_characters_text(doc_matters.dochead_meta["date"]["published"]), (doc_matters.dochead_meta["rights"]["copyright"].empty) - ? "" : doc_matters.dochead_meta["rights"]["copyright"], + ? "" : xhtml_format.special_characters_text(doc_matters.dochead_meta["rights"]["copyright"]), uuid, uuid, uuid, -- cgit v1.2.3