diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-20 10:11:57 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-10-17 19:07:20 -0400 |
commit | 2e720c5cbf12b988265f014f569ac64b65038f95 (patch) | |
tree | cb4d3304012aa3c3c1cb3f0662828e4e68e2bec3 /src/doc_reform/doc_reform.d | |
parent | meta_abstraction, ultimately cosmetic (diff) |
0.7.1 odt (initial stub)doc-reform_v0.7.1
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-x | src/doc_reform/doc_reform.d | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d index be475b4..25ab2cc 100755 --- a/src/doc_reform/doc_reform.d +++ b/src/doc_reform/doc_reform.d @@ -125,6 +125,8 @@ void main(string[] args) { "light" : false, "manifest" : false, "ocn" : true, + "odf" : false, + "odt" : false, "parallel" : false, "parallel-subprocesses" : false, "quiet" : false, @@ -176,6 +178,8 @@ void main(string[] args) { "light", "--light default light theme", &opts["light"], "manifest", "--manifest process manifest output", &opts["manifest"], "ocn", "--ocn object cite numbers (default)", &opts["ocn"], + "odf", "--odf open document format text (--odt)", &opts["odf"], + "odt", "--odt open document format text", &opts["odt"], "parallel", "--parallel parallelisation", &opts["parallel"], "parallel-subprocesses", "--parallel-subprocesses nested parallelisation", &opts["parallel-subprocesses"], "quiet|q", "--quiet output to terminal", &opts["quiet"], @@ -214,7 +218,7 @@ void main(string[] args) { if (helpInfo.helpWanted) { defaultGetoptPrinter("Some information about the program.", helpInfo.options); } - enum outTask { pod, source, sqlite, sqlite_multi, epub, html_scroll, html_seg, html_stuff } + enum outTask { pod, source, sqlite, sqlite_multi, odt, epub, html_scroll, html_seg, html_stuff } struct OptActions { bool assertions() { return opts["assertions"]; @@ -266,6 +270,12 @@ void main(string[] args) { { _is = true; } else { _is = false; } return _is; } + bool odt() { + bool _is; + if ( opts["odf"] || opts["odt"]) + { _is = true; } else { _is = false; } + return _is; + } bool manifest() { return opts["manifest"]; } @@ -379,8 +389,9 @@ void main(string[] args) { _is = false; } else if (opts["abstraction"] || concordance - || epub || html + || epub + || odt || manifest || pod || source @@ -416,23 +427,49 @@ void main(string[] args) { if (html_stuff) { schedule ~= outTask.html_stuff; } + if (odt) { + schedule ~= outTask.odt; + } return schedule.sort().uniq; } bool abstraction() { bool _is; if (opts["abstraction"] || concordance - || epub + || source + || pod || html + || epub + || odt || manifest - || pod - || source || sqlite_discrete || sqlite_delete || sqlite_update ) { _is = true; } else { _is = false; } return _is; } + bool meta_processing_general() { + bool _is; + if (opts["abstraction"] + || html + || epub + || odt + || sqlite_discrete + || sqlite_update + ) { _is = true; } else { _is = false; } + return _is; + } + bool meta_processing_xml_dom() { + bool _is; + if (opts["abstraction"] + || html + || epub + || odt + || sqlite_discrete + || sqlite_update + ) { _is = true; } else { _is = false; } + return _is; + } } auto _opt_action = OptActions(); auto program_info() { |