aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/epub3.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-06-20 15:12:56 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commit0905fae7c1ba93b70cb10ad77b6a24dbbc2c5082 (patch)
treee3900bf2ee8adba9eb6f1ac4bcd14f473f4dfc18 /src/sdp/output/epub3.d
parenthtml seg, work on subtoc & on nav pre-next (diff)
top banner with previous next navigation bar with svg buttons
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 {