aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/spine.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/spine.org')
-rw-r--r--org/spine.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/org/spine.org b/org/spine.org
index 40a89e9..1eef0a3 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -341,6 +341,7 @@ bool[string] opts = [
"pdf-init" : false,
"pod" : false,
"serial" : false,
+ "show-abstraction" : false,
"show-config" : false,
"show-curate" : false,
"show-curate-authors" : false,
@@ -476,6 +477,7 @@ auto helpInfo = getopt(args,
"section-toc", "table of contents (default)", &opts["section_toc"],
"serial", "serial processing", &opts["serial"],
"skip-output", "skip output", &opts["skip-output"],
+ "show-abstraction", "show document abstraction (write .ssp file)", &opts["show-abstraction"],
"show-config", "show config", &opts["show-config"],
"show-curate", "show curate", &opts["show-curate"],
"show-curate-authors", "show curate authors", &opts["show-curate-authors"],
@@ -694,6 +696,9 @@ struct OptActions {
@trusted bool show_config() {
return opts["show-config"];
}
+ @trusted bool show_abstraction() {
+ return opts["show-abstraction"];
+ }
@trusted bool show_curate() {
return opts["show-curate"];
}
@@ -942,6 +947,7 @@ struct OptActions {
@trusted bool abstraction() {
return (
opts["abstraction"]
+ || show_abstraction
|| concordance
|| source_or_pod
|| curate
@@ -968,6 +974,7 @@ struct OptActions {
|| latex
|| odt
|| manifest
+ || show_abstraction
|| show_make
|| show_metadata
|| show_summary
@@ -982,6 +989,7 @@ struct OptActions {
@trusted bool meta_processing_general() {
return (
opts["abstraction"]
+ || show_abstraction
|| curate
|| html
|| epub
@@ -1535,6 +1543,7 @@ if ((doc.matters.opt.action.debug_do)
<<spine_each_file_do_debugs_checkdoc_1>>
<<spine_each_file_do_debugs_checkdoc_2>>
<<spine_each_file_do_debugs_checkdoc_3>>
+<<spine_each_file_show_abstraction>>
<<spine_each_file_do_debugs_checkdoc_4>>
<<spine_each_file_do_debugs_checkdoc_5>>
#+END_SRC
@@ -1586,6 +1595,18 @@ if (doc.matters.opt.action.show_config) {
}
#+END_SRC
+***** show abstraction (PEG)
+--show-abstraction
+
+#+NAME: spine_each_file_show_abstraction
+#+BEGIN_SRC d
+/+ ↓ document abstraction text representation +/
+if (doc.matters.opt.action.show_abstraction) {
+ import sisudoc.io_out.create_abstraction_txt;
+ spineAbstractionTxt!()(doc);
+}
+#+END_SRC
+
***** abstraction curate :abstraction:curate:
- abstraction curate