aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sisudoc/spine.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2026-09-08 17:30:00 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2026-09-09 19:03:54 -0400
commit557810df54fb5411c362528b459648611e8267ba (patch)
treef93054bbf53b5ae4a84ec341e42d8e076a82b812 /src/sisudoc/spine.d
parentoutput: the abstraction artefacts live with the pod (diff)
--ocda-db replaces --show-abstraction-db
ocda (object centric document abstraction) flag --ocda-db (or --abstraction-db) replaces --show-abstraction-db rename results in consequently large diff
Diffstat (limited to 'src/sisudoc/spine.d')
-rw-r--r--src/sisudoc/spine.d32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/sisudoc/spine.d b/src/sisudoc/spine.d
index 1c68045..568a102 100644
--- a/src/sisudoc/spine.d
+++ b/src/sisudoc/spine.d
@@ -115,6 +115,7 @@ string program_name = "spine";
}
bool[string] opts = [
"abstraction" : false,
+ "abstraction-db" : false,
"allow-downloads" : false,
"assertions" : false,
"concordance" : false,
@@ -156,6 +157,7 @@ string program_name = "spine";
"manifest" : false,
"hide-ocn" : false,
"no-ocn" : false,
+ "ocda-db" : false,
"ocn-off" : false,
"odf" : false,
"odt" : false,
@@ -168,7 +170,6 @@ string program_name = "spine";
"pod2" : false,
"serial" : false,
"show-abstraction" : false,
- "show-abstraction-db" : false,
"show-config" : false,
"show-curate" : false,
"show-curate-authors" : false,
@@ -238,6 +239,7 @@ string program_name = "spine";
auto helpInfo = getopt(args,
std.getopt.config.passThrough,
"abstraction", "document abstraction", &opts["abstraction"],
+ "abstraction-db", "document abstraction (write ocda.db sqlite file)", &opts["abstraction-db"],
"allow-downloads", "allow downloads (includes cgi.d from github)", &opts["allow-downloads"],
"assert", "set optional assertions on", &opts["assertions"],
"cgi-bin-root", "path to cgi-bin directory", &settings["cgi-bin-root"],
@@ -272,6 +274,7 @@ string program_name = "spine";
"light", "default light theme", &opts["light"],
"manifest", "process manifest output", &opts["manifest"],
"no-ocn", "object cite numbers", &opts["no-ocn"],
+ "ocda-db", "document abstraction (write ocda.db sqlite file)", &opts["ocda-db"],
"ocn-off", "object cite numbers", &opts["ocn-off"],
"odf", "open document format text (--odt)", &opts["odf"],
"odt", "open document format text", &opts["odt"],
@@ -298,7 +301,6 @@ string program_name = "spine";
"serial", "serial processing", &opts["serial"],
"skip-output", "skip output", &opts["skip-output"],
"show-abstraction", "show document abstraction (write .ssp file)", &opts["show-abstraction"],
- "show-abstraction-db", "show document abstraction (write .db sqlite file)", &opts["show-abstraction-db"],
"show-config", "show config", &opts["show-config"],
"show-curate", "show curate", &opts["show-curate"],
"show-curate-authors", "show curate authors", &opts["show-curate-authors"],
@@ -590,11 +592,14 @@ string program_name = "spine";
@trusted bool latex_document_header_sty() {
return (opts["latex-init"] || opts["latex-header-sty"] || opts["pdf-init"]) ? true : false;
}
+ @trusted bool odt() {
+ return (opts["odf"] || opts["odt"]) ? true : false;
+ }
@trusted bool manifest() {
return opts["manifest"];
}
- @trusted bool odt() {
- return (opts["odf"] || opts["odt"]) ? true : false;
+ @trusted bool ocda_db() {
+ return (opts["abstraction-db"] || opts["ocda-db"]) ? true : false;
}
@trusted bool ocn_hidden() {
return opts["hide-ocn"];
@@ -614,9 +619,6 @@ string program_name = "spine";
@trusted bool show_abstraction() {
return (opts["show-abstraction"] || pod2) ? true : false;
}
- @trusted bool show_abstraction_db() {
- return opts["show-abstraction-db"];
- }
@trusted bool show_curate() {
return opts["show-curate"];
}
@@ -866,7 +868,7 @@ string program_name = "spine";
return (
opts["abstraction"]
|| show_abstraction
- || show_abstraction_db
+ || ocda_db
|| concordance
|| source_or_pod
|| curate
@@ -894,7 +896,7 @@ string program_name = "spine";
|| odt
|| manifest
|| show_abstraction
- || show_abstraction_db
+ || ocda_db
|| show_make
|| show_metadata
|| show_summary
@@ -910,7 +912,7 @@ string program_name = "spine";
return (
opts["abstraction"]
|| show_abstraction
- || show_abstraction_db
+ || ocda_db
|| curate
|| html
|| epub
@@ -926,7 +928,7 @@ string program_name = "spine";
return (
opts["abstraction"]
|| show_abstraction
- || show_abstraction_db
+ || ocda_db
|| html
|| epub
|| odt
@@ -1440,9 +1442,9 @@ string program_name = "spine";
come out are what is written, so the database cannot carry
anything the .ssp does not
+/
- if (doc.matters.opt.action.show_abstraction_db) {
+ if (doc.matters.opt.action.ocda_db) {
import sisudoc.ocda.abstraction.ssp_in;
- import sisudoc.outputs.io_out.create_abstraction_db;
+ import sisudoc.outputs.io_out.create_ocda_db;
mixin spineAbstractionRead;
spineAbstractionDb!()(doc, sspRoundTripAbstraction(doc));
}
@@ -1555,9 +1557,9 @@ string program_name = "spine";
come out are what is written, so the database cannot carry
anything the .ssp does not
+/
- if (doc.matters.opt.action.show_abstraction_db) {
+ if (doc.matters.opt.action.ocda_db) {
import sisudoc.ocda.abstraction.ssp_in;
- import sisudoc.outputs.io_out.create_abstraction_db;
+ import sisudoc.outputs.io_out.create_ocda_db;
mixin spineAbstractionRead;
spineAbstractionDb!()(doc, sspRoundTripAbstraction(doc));
}