diff options
Diffstat (limited to 'src/sdp.d')
| -rwxr-xr-x | src/sdp.d | 55 | 
1 files changed, 2 insertions, 53 deletions
| @@ -37,57 +37,7 @@ private import    std.typecons,    std.utf,    std.conv : to; -struct SDPoutput { -  auto 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 -  ) { -    mixin ScreenTxtColors; -    mixin RgxInit; -    mixin SiSUoutputHub; -    auto rgx = Rgx(); -    uint return_ = 0; -    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"); -    } -    return return_; -  } -} +  mixin(import("version.txt"));  mixin CompileTimeInfo;  mixin RgxInit; @@ -135,8 +85,7 @@ void main(string[] args) {    scope(failure) {      debug(checkdoc) {        stderr.writefln( -        "%s~ run failure ~%s", -         scr_txt_color["fuchsia"], scr_txt_color["off"], +        "run failure",        );      }    } | 
