aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/epub3.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output/epub3.d')
-rw-r--r--src/sdp/output/epub3.d26
1 files changed, 25 insertions, 1 deletions
diff --git a/src/sdp/output/epub3.d b/src/sdp/output/epub3.d
index 2c014b5..00814d4 100644
--- a/src/sdp/output/epub3.d
+++ b/src/sdp/output/epub3.d
@@ -101,6 +101,30 @@ template outputEPub3() {
content ~= parts["guide"];
content ~= " " ~ "</guide>" ~ "\n ";
content ~= "" ~ "</package>";
+ debug(epubmanifest) {
+ foreach (s; doc_matters.keys_seq.seg) {
+ foreach (obj; doc_abstraction[s]) {
+ if (obj.is_a == "heading") {
+ if (obj.heading_lev_markup == 4) {
+ writefln(
+ "%s~ [%s.xhtml] %s",
+ obj.marked_up_level,
+ obj.segment_anchor_tag,
+ obj.text
+ );
+ } else if (obj.heading_lev_markup > 4) {
+ writefln(
+ "%s~ [%s.xhtml#%s] %s",
+ obj.marked_up_level,
+ obj.segment_anchor_tag,
+ obj.obj_cite_number,
+ obj.text
+ );
+ }
+ }
+ }
+ }
+ }
return content;
}
string epub3_oebps_toc_nav_xhtml(D,I)(D doc_abstraction, I doc_matters) {
@@ -567,7 +591,6 @@ template outputEPub3() {
static assert(is(typeof(oebps_content_opf) == string));
}
auto src_path_info = doc_matters.src_path_info;
- string fn_rel_pth = doc_matters.source_filename;
string lng = doc_matters.language;
auto pth_epub3 = SiSUpathsEPUB!()(src_path_info, lng);
auto xhtml_format = outputXHTMLs();
@@ -741,6 +764,7 @@ template outputEPub3() {
catch (ErrnoException ex) {
// Handle error
}
+ writeln(" ", doc_matters.environment["pwd"], "/", fn_epub);
debug(epub_archive) {
if (exists(fn_epub)) {
try {