diff options
Diffstat (limited to 'org/sdp.org')
-rw-r--r-- | org/sdp.org | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/org/sdp.org b/org/sdp.org index f6c26f2..0817dfd 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -451,7 +451,7 @@ template SiSUabstraction() { <<sdp_mixin>> enum headBody { header, body_content, insert_filelist } enum makeMeta { make, meta } - enum docAbst { doc_abstraction, section_keys, segnames, images } + enum docAbst { doc_abstraction, section_keys, segnames, segnames_0_4, images } auto rgx = Rgx(); auto SiSUabstraction(Fn,O,E)(Fn fn_src, O opts, E env){ <<sdp_conf_files>> @@ -540,10 +540,11 @@ auto da = SiSUdocAbstraction!()( opts ); static assert(!isTypeTuple!(da)); -static assert(da.length==4); +static assert(da.length==5); auto doc_abstraction = da[docAbst.doc_abstraction]; // head ~ toc ~ body ~ endnotes_seg ~ glossary ~ bibliography ~ bookindex ~blurb; auto _document_section_keys_sequenced = da[docAbst.section_keys]; string[] _doc_html_segnames = da[docAbst.segnames]; +string[] _doc_epub_segnames_0_4 = da[docAbst.segnames_0_4]; auto _images = da[docAbst.images]; #+END_SRC @@ -564,6 +565,10 @@ struct DocumentMatters { string[] _k = _doc_html_segnames; return _k; } + string[] segnames_lv_0_to_4() { + string[] _k = _doc_epub_segnames_0_4; + return _k; + } auto dochead_make() { string[string][string] _k = _make_and_meta[makeMeta.make]; return _k; |