diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-04-23 12:07:22 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | db92f9af3293f8009543448a100b08b7a2f2ffbe (patch) | |
tree | 026d884db374b4ab6c575b2b56edc2526de4adc4 /org/output_hub.org | |
parent | sqlite3 some stuff & rearrange files, dlang, org (diff) |
0.26.1 single sqlite file, premature?
Diffstat (limited to 'org/output_hub.org')
-rw-r--r-- | org/output_hub.org | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/org/output_hub.org b/org/output_hub.org index 6d62477..3129b72 100644 --- a/org/output_hub.org +++ b/org/output_hub.org @@ -29,6 +29,35 @@ template outputHub() { void outputHub(D,I)(D doc_abstraction, I doc_matters) { mixin SiSUoutputRgxInit; static auto rgx = Rgx(); + debug (substitutions) { + enum Substitute { match, markup, html, } + writeln(__LINE__, ":", __FILE__, ": DEBUG substitutions:"); + writeln("Doc Title: ", doc_matters.conf_make_meta.meta.title_full); + if (doc_matters.conf_make_meta.make.bold) { + writeln("regex to match: ", doc_matters.conf_make_meta.make.bold[Substitute.match]); + writeln("substitution to make: ", doc_matters.conf_make_meta.make.bold[Substitute.html]); + + auto _w = "1. Debian test string. Debian again. (the problem) do not use initialized only not repopulated" + .replaceAll( + regex(doc_matters.conf_make_meta.make.bold[Substitute.match]), + doc_matters.conf_make_meta.make.bold[Substitute.html] + ); + writeln(_w); + + writeln("2a. Debian test string. Debian again. (the problem) do not use initialized only not repopulated" + .replaceAll( + regex(doc_matters.conf_make_meta.make.bold[Substitute.match]), + doc_matters.conf_make_meta.make.bold[Substitute.html] + )); + + auto _v = regex(doc_matters.conf_make_meta.make.bold[Substitute.match]); + writeln("2b. Debian test string. Debian again. (the problem) do not use initialized only not repopulated" + .replaceAll( + _v, + doc_matters.conf_make_meta.make.bold[Substitute.html] + )); + } + } <<output_options>> } } @@ -50,7 +79,6 @@ import sdp.output, sdp.output.epub3, sdp.output.html, sdp.output.sqlite, - sdp.output.sqlite_discrete, sdp.output.xmls, sdp.output.source_sisupod, sdp.output.create_zip_file, @@ -202,7 +230,7 @@ if (doc_matters.opt.action.sqlite_discrete) { if ((doc_matters.opt.action.verbose)) { writeln("sqlite processing... "); } - SQLiteDiscreteBuildTablesAndPopulate!()(doc_abstraction, doc_matters); + SQLiteHubDiscreteBuildTablesAndPopulate!()(doc_abstraction, doc_matters); } #+END_SRC @@ -214,7 +242,7 @@ if (doc_matters.opt.action.sqlite_update) { if ((doc_matters.opt.action.verbose)) { writeln("sqlite processing... "); } - SQLiteBuildTablesAndPopulate!()(doc_abstraction, doc_matters); + SQLiteHubBuildTablesAndPopulate!()(doc_abstraction, doc_matters); } #+END_SRC |