aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/doc_reform.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/doc_reform.d')
-rwxr-xr-xsrc/doc_reform/doc_reform.d47
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() {