From 69c906fc8cffc841fc33ab6f9bdeafcf1d8f3b82 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 18 Apr 2017 20:48:41 -0400 Subject: section keys sequence --- org/sdp.org | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'org/sdp.org') 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)) { -- cgit v1.2.3