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 /org/doc_reform.org | |
parent | meta_abstraction, ultimately cosmetic (diff) |
0.7.1 odt (initial stub)doc-reform_v0.7.1
Diffstat (limited to 'org/doc_reform.org')
-rw-r--r-- | org/doc_reform.org | 49 |
1 files changed, 43 insertions, 6 deletions
diff --git a/org/doc_reform.org b/org/doc_reform.org index eb47d69..ac0aa4d 100644 --- a/org/doc_reform.org +++ b/org/doc_reform.org @@ -27,7 +27,7 @@ struct Version { int minor; int patch; } -enum _ver = Version(0, 7, 0); +enum _ver = Version(0, 7, 1); #+END_SRC ** compilation restrictions (supported compilers) @@ -317,6 +317,8 @@ bool[string] opts = [ "light" : false, "manifest" : false, "ocn" : true, + "odf" : false, + "odt" : false, "parallel" : false, "parallel-subprocesses" : false, "quiet" : false, @@ -368,6 +370,8 @@ auto helpInfo = getopt(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"], @@ -413,7 +417,7 @@ if (helpInfo.helpWanted) { #+NAME: doc_reform_args #+BEGIN_SRC d -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"]; @@ -465,6 +469,12 @@ struct OptActions { { _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"]; } @@ -578,8 +588,9 @@ struct OptActions { _is = false; } else if (opts["abstraction"] || concordance - || epub || html + || epub + || odt || manifest || pod || source @@ -615,23 +626,49 @@ struct OptActions { 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(); #+END_SRC |