diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-04-18 20:48:41 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | 69c906fc8cffc841fc33ab6f9bdeafcf1d8f3b82 (patch) | |
tree | 9c809898d0cd5221df2d13b0995671befb3111c3 /org/sdp.org | |
parent | 0.13.9 sisupod & epub3, zipped output (diff) |
section keys sequencedoc-reform_v0.0.13
Diffstat (limited to 'org/sdp.org')
-rw-r--r-- | org/sdp.org | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/org/sdp.org b/org/sdp.org index 6ef3d06..19ec705 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -541,7 +541,7 @@ auto da = SiSUdocAbstraction!()( static assert(!isTypeTuple!(da)); static assert(da.length==4); auto doc_abstraction = da[docAbst.doc_abstraction]; // head ~ toc ~ body ~ endnotes_seg ~ glossary ~ bibliography ~ bookindex ~blurb; -string[][string] _document_section_keys_sequenced = da[docAbst.section_keys]; +auto _document_section_keys_sequenced = da[docAbst.section_keys]; string[] _doc_html_segnames = da[docAbst.segnames]; auto _images = da[docAbst.images]; #+END_SRC @@ -554,12 +554,9 @@ auto _images = da[docAbst.images]; #+NAME: sdp_each_file_do_document_matters #+BEGIN_SRC d struct DocumentMatters { - string[] keys_seq_seg() { - string[] _k = _document_section_keys_sequenced["seg"]; - return _k; - } - string[] keys_seq_scroll() { - string[] _k = _document_section_keys_sequenced["scroll"]; + auto keys_seq() { + /+ contains .seg & .scroll sequences +/ + auto _k = _document_section_keys_sequenced; return _k; } string[] segnames() { @@ -661,7 +658,7 @@ auto markup = InlineMarkup(); string[string] check = [ "last_obj_cite_number" : "NA [debug \"checkdoc\" not run]", ]; -foreach (k; doc_matters.keys_seq_seg) { +foreach (k; doc_matters.keys_seq.seg) { foreach (obj; doc_abstraction[k]) { if (obj.use != "empty") { if (!empty(obj.obj_cite_number)) { |