aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_hub.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-08-20 08:57:12 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-04 14:53:38 -0400
commitc7c6c121884feb55ae3964e6055ac8ca983458cd (patch)
treeb354f012dd41202081bdd5cbc8b3e18fc8f945f9 /src/sdp/output_hub.d
parentminor move (diff)
step 0.6.3 includes fixes
Diffstat (limited to 'src/sdp/output_hub.d')
-rw-r--r--src/sdp/output_hub.d48
1 files changed, 46 insertions, 2 deletions
diff --git a/src/sdp/output_hub.d b/src/sdp/output_hub.d
index f81c118..28784a3 100644
--- a/src/sdp/output_hub.d
+++ b/src/sdp/output_hub.d
@@ -3,6 +3,52 @@
output_hub.d
+/
template SiSUoutputHub() {
+ struct SDPoutput {
+ void hub(S)(
+ auto ref const S contents,
+ string[][string][string] bookindex_unordered_hashes,
+ JSONValue[] biblio,
+ string[string][string] dochead_make_json,
+ string[string][string] dochead_meta_json,
+ string fn_src,
+ bool[string] opt_action_bool
+ ) {
+ auto rgx = Rgx();
+ if (opt_action_bool["source"]) {
+ writeln("sisupod source");
+ }
+ if (opt_action_bool["sisupod"]) {
+ writeln("sisupod source");
+ }
+ if (opt_action_bool["text"]) {
+ writeln("text processing");
+ // auto text=SDPoutput_text();
+ // text.scroll(contents, bookindex_unordered_hashes, biblio, fn_src, opt_action_bool);
+ // // text.scroll(contents, bookindex_unordered_hashes, biblio, dochead_make, dochead_meta, fn_src, opt_action_bool);
+ }
+ if (opt_action_bool["html"]) {
+ auto html=SDPoutputHTML();
+ html.css_write;
+ html.scroll(contents, bookindex_unordered_hashes, biblio, fn_src, opt_action_bool);
+ // html.scroll(contents, bookindex_unordered_hashes, biblio, dochead_make_aa, dochead_meta_aa, fn_src, opt_action_bool);
+ }
+ if (opt_action_bool["epub"]) {
+ writeln("epub processing");
+ }
+ if (opt_action_bool["pdf"]) {
+ writeln("pdf processing");
+ }
+ if (opt_action_bool["odt"]) {
+ writeln("odt processing");
+ }
+ if (opt_action_bool["sqlite"]) {
+ writeln("sqlite processing");
+ }
+ if (opt_action_bool["postgresql"]) {
+ writeln("pgsql processing");
+ }
+ }
+ }
struct SDPoutputHTML {
auto html_css() {
string css;
@@ -1415,8 +1461,6 @@ template SiSUoutputHub() {
string fn_src,
bool[string] opt_action_bool
) {
- mixin ScreenTxtColors;
- mixin RgxInit;
auto rgx = Rgx();
string[] toc;
string[] body_;