diff options
Diffstat (limited to 'org/spine.org')
| -rw-r--r-- | org/spine.org | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/org/spine.org b/org/spine.org index 1eef0a3..abc4b07 100644 --- a/org/spine.org +++ b/org/spine.org @@ -342,6 +342,7 @@ bool[string] opts = [ "pod" : false, "serial" : false, "show-abstraction" : false, + "show-abstraction-db" : false, "show-config" : false, "show-curate" : false, "show-curate-authors" : false, @@ -478,6 +479,7 @@ auto helpInfo = getopt(args, "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"], @@ -699,6 +701,9 @@ struct OptActions { @trusted bool show_abstraction() { return opts["show-abstraction"]; } + @trusted bool show_abstraction_db() { + return opts["show-abstraction-db"]; + } @trusted bool show_curate() { return opts["show-curate"]; } @@ -948,6 +953,7 @@ struct OptActions { return ( opts["abstraction"] || show_abstraction + || show_abstraction_db || concordance || source_or_pod || curate @@ -975,6 +981,7 @@ struct OptActions { || odt || manifest || show_abstraction + || show_abstraction_db || show_make || show_metadata || show_summary @@ -990,6 +997,7 @@ struct OptActions { return ( opts["abstraction"] || show_abstraction + || show_abstraction_db || curate || html || epub @@ -1543,7 +1551,8 @@ 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_show_abstraction_peg>> +<<spine_each_file_show_abstraction_db>> <<spine_each_file_do_debugs_checkdoc_4>> <<spine_each_file_do_debugs_checkdoc_5>> #+END_SRC @@ -1598,7 +1607,7 @@ if (doc.matters.opt.action.show_config) { ***** show abstraction (PEG) --show-abstraction -#+NAME: spine_each_file_show_abstraction +#+NAME: spine_each_file_show_abstraction_peg #+BEGIN_SRC d /+ ↓ document abstraction text representation +/ if (doc.matters.opt.action.show_abstraction) { @@ -1607,6 +1616,18 @@ if (doc.matters.opt.action.show_abstraction) { } #+END_SRC +***** show abstraction (sqlite db) +--show-abstraction-db + +#+NAME: spine_each_file_show_abstraction_db +#+BEGIN_SRC d +/+ ↓ document abstraction sqlite database +/ +if (doc.matters.opt.action.show_abstraction_db) { + import sisudoc.io_out.create_abstraction_db; + spineAbstractionDb!()(doc); +} +#+END_SRC + ***** abstraction curate :abstraction:curate: - abstraction curate |
