aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/output.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/output.org')
-rw-r--r--org/output.org69
1 files changed, 54 insertions, 15 deletions
diff --git a/org/output.org b/org/output.org
index c0dfe5b..2d15db3 100644
--- a/org/output.org
+++ b/org/output.org
@@ -50,30 +50,43 @@ template outputHub() {
void outputHub(C,D)(C contents, D doc_matters) {
mixin SiSUrgxInit;
auto rgx = Rgx();
+ if ((doc_matters.opt_action_bool["verbose"])) {
+ writeln(doc_matters.keys_seq_seg);
+ }
if (doc_matters.opt_action_bool["source"]) {
/+ mixin outputSource; +/
writeln("source");
}
if (doc_matters.opt_action_bool["sisupod"]) {
+ if ((doc_matters.opt_action_bool["verbose"])) {write("sisupod source processing... ");}
SiSUpod!()(doc_matters.source_filename);
- writeln("sisupod source");
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("sisupod done");}
}
if (doc_matters.opt_action_bool["text"]) {
/+ mixin outputText; +/
writeln("text processing");
}
if (doc_matters.opt_action_bool["html"]) {
+ if ((doc_matters.opt_action_bool["verbose"])) {write("html scroll processing... ");}
outputHTML!().scroll(contents,doc_matters);
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("html scroll done");}
+ if ((doc_matters.opt_action_bool["verbose"])) {write("html seg processing... ");}
outputHTML!().seg(contents,doc_matters);
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("html seg done");}
} else if(doc_matters.opt_action_bool["html_seg"]) {
+ if ((doc_matters.opt_action_bool["verbose"])) {write("html seg processing... ");}
outputHTML!().seg(contents,doc_matters);
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("html seg done");}
} else if(doc_matters.opt_action_bool["html_scroll"]) {
+ if ((doc_matters.opt_action_bool["verbose"])) {write("html scroll processing... ");}
outputHTML!().scroll(contents,doc_matters);
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("html scroll done");}
}
if (doc_matters.opt_action_bool["epub"]) {
+ if ((doc_matters.opt_action_bool["verbose"])) {write("epub processing... ");}
outputEPub!()(contents, doc_matters);
// epub.css_write;
- // writeln("epub processing");
+ if ((doc_matters.opt_action_bool["verbose"])) {writeln("epub done");}
}
if (doc_matters.opt_action_bool["pdf"]) {
/+ mixin outputPDF; +/
@@ -589,12 +602,16 @@ void scroll(C,T)(
doc_html ~= xhtml_format.toc(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
} else if (obj.use == "body") {
@@ -608,7 +625,9 @@ void scroll(C,T)(
doc_html ~= xhtml_format.para(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
@@ -635,12 +654,16 @@ void scroll(C,T)(
doc_html ~= xhtml_format.code(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_of);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_of);
+ }
break;
}
} else if (obj.use == "backmatter") {
@@ -666,12 +689,16 @@ void scroll(C,T)(
doc_html ~= xhtml_format.para(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
}
@@ -773,7 +800,9 @@ void seg(C,M)(
doc_html[segment_filename] ~= xhtml_format.heading(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
} else if (obj.use == "frontmatter") {
@@ -827,7 +856,9 @@ void seg(C,M)(
doc_html[segment_filename] ~= xhtml_format.code(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
@@ -860,7 +891,9 @@ void seg(C,M)(
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
}
@@ -2417,7 +2450,9 @@ void outputEPub(C,T)(
doc_epub[segment_filename] ~= xhtml_format.heading(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
} else if (obj.use == "frontmatter") {
@@ -2471,7 +2506,9 @@ void outputEPub(C,T)(
doc_epub[segment_filename] ~= xhtml_format.code(obj);
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
break;
@@ -2504,7 +2541,9 @@ void outputEPub(C,T)(
}
break;
default:
- writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ if ((doc_matters.opt_action_bool["debug"])) {
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ }
break;
}
}