From ab80f734713d5571f9014d17ec1f04d09b38011e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 16 Oct 2019 12:26:36 -0400 Subject: multilingual pods, zipped source --- src/doc_reform/doc_reform.d | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'src/doc_reform/doc_reform.d') diff --git a/src/doc_reform/doc_reform.d b/src/doc_reform/doc_reform.d index 40f1a05..e6a9b59 100755 --- a/src/doc_reform/doc_reform.d +++ b/src/doc_reform/doc_reform.d @@ -240,7 +240,7 @@ void main(string[] args) { if (helpInfo.helpWanted) { defaultGetoptPrinter("Some information about the program.", helpInfo.options); } - enum outTask { pod, source, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } + enum outTask { source_or_pod, sqlite, sqlite_multi, latex, odt, epub, html_scroll, html_seg, html_stuff } struct OptActions { bool assertions() { return opts["assertions"]; @@ -359,6 +359,9 @@ void main(string[] args) { bool source() { return opts["source"]; } + bool source_or_pod() { + return (opts["pod"] || opts["source"]) ? true : false; + } bool sqlite_discrete() { return opts["sqlite-discrete"]; } @@ -463,8 +466,7 @@ void main(string[] args) { || odt || latex || manifest - || pod - || source + || source_or_pod || sqlite_discrete ) { _is = true; @@ -476,11 +478,8 @@ void main(string[] args) { } auto output_task_scheduler() { int[] schedule; - if (pod) { - schedule ~= outTask.pod; - } - if (source) { - schedule ~= outTask.source; + if (source_or_pod) { + schedule ~= outTask.source_or_pod; } if (sqlite_discrete) { schedule ~= outTask.sqlite; @@ -509,8 +508,7 @@ void main(string[] args) { bool _is; if (opts["abstraction"] || concordance - || source - || pod + || source_or_pod || harvest || html || epub -- cgit v1.2.3