diff options
Diffstat (limited to 'org/metaverse.org')
-rw-r--r-- | org/metaverse.org | 198 |
1 files changed, 99 insertions, 99 deletions
diff --git a/org/metaverse.org b/org/metaverse.org index cec377e..586e25f 100644 --- a/org/metaverse.org +++ b/org/metaverse.org @@ -20,7 +20,7 @@ * 1. Document Abstraction Process markup document, create document abstraction. -** _module template_ :module:metadoc_from_src: +** _module template_ :module:metadoc_from_src: #+BEGIN_SRC d :tangle "../src/doc_reform/meta/metadoc_from_src.d" /++ @@ -267,8 +267,8 @@ template docAbstraction() { <<template_doc_sect_keys_seq>> #+END_SRC -** 1. _pre loop process ing_ :pre: -*** imports :imports: +** 1. _pre loop process ing_ :pre: +*** imports :imports: [[./meta_defaults.org][meta_defaults]] #+NAME: abs_top_imports @@ -286,7 +286,7 @@ import doc_reform.meta.rgx; #+END_SRC -*** mixins :mixins: +*** mixins :mixins: #+NAME: abs_top_mixins #+BEGIN_SRC d @@ -295,7 +295,7 @@ mixin InternalMarkup; mixin spineRgxIn; #+END_SRC -*** initialize :initialize: +*** initialize :initialize: **** declare enum #+NAME: abs_top_init_struct_0 @@ -872,8 +872,8 @@ debug (substitutions) { } #+END_SRC -** 2. ↻ *LOOP* _loop: process document body_ [+6] :loop: -*** Loop scope :scope: +** 2. ↻ *LOOP* _loop: process document body_ :loop:document: +*** Loop scope :scope: #+NAME: abs_in_loop_body_00_0 #+BEGIN_SRC d @@ -901,7 +901,7 @@ debug(srclines) { } #+END_SRC -*** check whether object number is on or turned off :ocn: +*** check whether object number is on or turned off :ocn: #+NAME: abs_in_loop_body_00_1 #+BEGIN_SRC d @@ -911,7 +911,7 @@ if (!line.empty) { #+END_SRC *** separate _code blocks_ from _other markup text_ [+5] [#A] -**** _code blocks_ :block:code: +**** _code blocks_ :block:code: #+NAME: abs_in_loop_body_00_code_block #+BEGIN_SRC d @@ -928,8 +928,8 @@ continue; line = line.inline_markup_faces; // by text line (rather than by text object), linebreaks in para problematic #+END_SRC -***** in section (biblio, glossary, blurb) +(block group)+ [+1] :block:active: -****** in section: biblio :biblio: +***** in section (biblio, glossary, blurb) +(block group)+ [+1] :block: +****** in section: biblio :biblio: #+NAME: abs_in_loop_body_non_code_obj_in_biblio #+BEGIN_SRC d @@ -951,7 +951,7 @@ if (line.matchFirst(rgx.heading_biblio) continue; #+END_SRC -****** in section: glossary :glossary: +****** in section: glossary :glossary: if there is a glossary section you need to: - extract it @@ -1059,7 +1059,7 @@ if there is a glossary section you need to: continue; #+END_SRC -****** in section: blurb :blurb: +****** in section: blurb :blurb: if there is a blurb section you need to: - extract it @@ -1219,14 +1219,14 @@ if there is a blurb section you need to: continue; #+END_SRC -***** in blocks [+1] :block:active: +***** in blocks [+1] :block: #+NAME: abs_in_loop_body_non_code_obj_in_block #+BEGIN_SRC d } else if (pith["block_state"] == eN.blk_state.on) { #+END_SRC -****** in block: quote :quote: +****** in block: quote :quote: #+NAME: abs_in_loop_body_non_code_obj_in_block_quote #+BEGIN_SRC d @@ -1238,7 +1238,7 @@ if (pith["block_is"] == eN.blk_is.quote) { continue; #+END_SRC -****** in block: group :group: +****** in block: group :group: #+NAME: abs_in_loop_body_non_code_obj_in_block_group #+BEGIN_SRC d @@ -1251,7 +1251,7 @@ if (pith["block_is"] == eN.blk_is.quote) { continue; #+END_SRC -****** in block: block :block: +****** in block: block :block: #+NAME: abs_in_loop_body_non_code_obj_in_block_block #+BEGIN_SRC d @@ -1267,7 +1267,7 @@ if (pith["block_is"] == eN.blk_is.quote) { continue; #+END_SRC -****** in block: poem :poem: +****** in block: poem :poem: #+NAME: abs_in_loop_body_non_code_obj_in_block_poem #+BEGIN_SRC d @@ -1276,7 +1276,7 @@ if (pith["block_is"] == eN.blk_is.quote) { continue; #+END_SRC -****** in block: table :table: +****** in block: table :table: #+NAME: abs_in_loop_body_non_code_obj_in_block_table #+BEGIN_SRC d @@ -1312,7 +1312,7 @@ continue; #+END_SRC ****** line not empty [+2] -******* asserts :assert: +******* asserts :assert: #+NAME: abs_in_loop_body_not_block_obj_assert #+BEGIN_SRC d @@ -1340,7 +1340,7 @@ if (pith["block_state"] == eN.blk_state.closing) { } #+END_SRC -******* book index :bookindex: +******* book index :bookindex: #+NAME: abs_in_loop_body_not_block_obj_bookindex #+BEGIN_SRC d @@ -1357,7 +1357,7 @@ if (line.matchFirst(rgx.book_index_item) } else { /+ not book_index +/ #+END_SRC -******** matched: comment :comment:match: +******** matched: comment :comment:match: #+NAME: abs_in_loop_body_not_block_obj_not_bookindex_a_comment #+BEGIN_SRC d @@ -1379,7 +1379,7 @@ if (auto m = line.matchFirst(rgx.comment)) { /+ ++cntr; #+END_SRC -******** flag !set & line !exist: heading or para :heading:paragraph: +******** flag !set & line !exist: heading or para :heading:paragraph: #+NAME: abs_in_loop_body_not_block_obj_not_bookindex_a_para_type #+BEGIN_SRC d @@ -1424,7 +1424,7 @@ if (auto m = line.matchFirst(rgx.comment)) { /+ } #+END_SRC -******** line exist: heading :heading: +******** line exist: heading :heading: #+NAME: abs_in_loop_body_not_block_obj_not_bookindex_a_heading #+BEGIN_SRC d @@ -1436,7 +1436,7 @@ if (auto m = line.matchFirst(rgx.comment)) { /+ ++line_occur["heading"]; #+END_SRC -******** line exist: para :para: +******** line exist: para :para: #+NAME: abs_in_loop_body_not_block_obj_not_bookindex_a_para #+BEGIN_SRC d @@ -1479,7 +1479,7 @@ an_object = line.flow_block_flag_line_empty_( #+END_SRC ****** line empty [+1] -******* assert line empty :assert: +******* assert line empty :assert: #+NAME: abs_in_loop_body_not_block_obj_line_empty_assert #+BEGIN_SRC d @@ -1494,7 +1494,7 @@ assert( ); #+END_SRC -******* heading object :heading:object: +******* heading object :heading:object: #+NAME: abs_in_loop_body_not_block_obj_line_empty_heading_obj #+BEGIN_SRC d @@ -1628,7 +1628,7 @@ if (pith["txt_is"] == eN.txt_is.heading ++cntr; #+END_SRC -******* paragraph object :paragraph:object: +******* paragraph object :paragraph:object: #+NAME: abs_in_loop_body_not_block_obj_line_empty_para_obj #+BEGIN_SRC d @@ -1697,7 +1697,7 @@ if (pith["txt_is"] == eN.txt_is.heading } #+END_SRC -*** regular _text objects_ identified :text:paragraph: +*** regular _text objects_ identified :text:paragraph: #+NAME: abs_in_loop_body_reloop_get_prior_state #+BEGIN_SRC d @@ -1746,7 +1746,7 @@ if (the_document_body_section.length > 0) { } #+END_SRC -** 3. _post main-loop processing_ :post: +** 3. _post main-loop processing_ :post: *** misc /+ @@ -1759,7 +1759,7 @@ if (the_document_body_section.length > 0) { +/ *** tie up preparation of document sections -**** endnotes section (scroll & seg) :endnotes: +**** endnotes section (scroll & seg) :endnotes: #+NAME: abs_post_endnote_tuple #+BEGIN_SRC d @@ -1779,7 +1779,7 @@ debug(endnotes) { } #+END_SRC -**** no glossary section? :glossary: +**** no glossary section? :glossary: #+NAME: abs_post_glossary_nugget #+BEGIN_SRC d @@ -1808,7 +1808,7 @@ debug(glossary) { } #+END_SRC -**** bibliography section (objects) :bibliography: +**** bibliography section (objects) :bibliography: #+NAME: abs_post_biblio_init #+BEGIN_SRC d @@ -1969,7 +1969,7 @@ JSONValue biblio_entry_tags_jsonstr = `{ }`; // is: book, article, magazine, newspaper, blog, other #+END_SRC -**** bookindex section (scroll & seg) :book:index: +**** bookindex section (scroll & seg) :book:index: #+NAME: abs_post_bookindex #+BEGIN_SRC d @@ -1990,7 +1990,7 @@ debug(bookindex) { } #+END_SRC -**** no blurb section? :blurb: +**** no blurb section? :blurb: #+NAME: abs_post_no_blurb #+BEGIN_SRC d @@ -2021,7 +2021,7 @@ debug(blurb) { } #+END_SRC -**** toc backmatter, table of contents backmatter (scroll & seg) :contents: +**** toc backmatter, table of contents backmatter (scroll & seg) :contents: #+NAME: abs_post_contents #+BEGIN_SRC d @@ -2130,7 +2130,7 @@ the_document_head_section ~= the_document_body_section[0]; the_document_body_section = the_document_body_section[1..$]; #+END_SRC -*** ↻ *LOOPs* _post main-loop loops_ :loop:post: +*** ↻ *LOOPs* _post main-loop loops_ :loop:post: **** 1. ↻ _Loop as required_ (e.g. backmatter): loop up to lev4, extract html segnames, set pointers this extra loop is used/needed to determine pre and (in particular) next segment @@ -2329,7 +2329,7 @@ NOTE there are issues attempting to do this on first pass as: } #+END_SRC -***** ↻ Loop section: document body [bd] +***** ↻ Loop section: document body [bd] :loop:body: - substantive object numbers already exist - number un-numbered non-substantive text @@ -2360,7 +2360,7 @@ if (the_document_body_section.length > 1) { } #+END_SRC -***** ↻ Loop section: endnotes [en] +***** ↻ Loop section: endnotes [en] :loop:endnotes: #+NAME: abs_post_loop_section_endnotes #+BEGIN_SRC d @@ -2381,7 +2381,7 @@ if (the_endnotes_section.length > 1) { } #+END_SRC -***** ↻ Loop section: glossary [gl] +***** ↻ Loop section: glossary [gl] :loop:glossary: #+NAME: abs_post_loop_section_glossary #+BEGIN_SRC d @@ -2402,7 +2402,7 @@ if (the_glossary_section.length > 1) { } #+END_SRC -***** ↻ Loop section: bibliography [bb] +***** ↻ Loop section: bibliography [bb] :loop:bibliography: #+NAME: abs_post_loop_section_biblio #+BEGIN_SRC d @@ -2423,7 +2423,7 @@ if (the_bibliography_section.length > 1) { } #+END_SRC -***** ↻ Loop section: book index [bi] +***** ↻ Loop section: book index [bi] :loop:bookindex: #+NAME: abs_post_loop_section_bookindex #+BEGIN_SRC d @@ -2444,7 +2444,7 @@ if (the_bookindex_section.length > 1) { } #+END_SRC -***** ↻ Loop section: blurb [bl] +***** ↻ Loop section: blurb [bl] :loop:blurb: #+NAME: abs_post_loop_section_blurb #+BEGIN_SRC d @@ -2650,7 +2650,7 @@ string[] segnames_0_to_4; } #+END_SRC -***** ↻ Loop section: head +***** ↻ Loop section: head :loop:head: #+NAME: abs_post_loop_section_head #+BEGIN_SRC d @@ -2682,7 +2682,7 @@ foreach (ref obj; the_document_head_section) { } #+END_SRC -***** ↻ Loop section: toc [to] +***** ↻ Loop section: toc :loop:table_of_contents: #+NAME: abs_post_loop_section_toc #+BEGIN_SRC d @@ -2712,7 +2712,7 @@ if (the_table_of_contents_section.length > 1) { } #+END_SRC -***** ↻ Loop section: document body [bd] +***** ↻ Loop section: document body [bd] :loop:body: #+NAME: abs_post_reloop_section_body #+BEGIN_SRC d @@ -2761,7 +2761,7 @@ if (the_document_body_section.length > 1) { auto image_list = (_images.sort()).uniq; #+END_SRC -***** ↻ Loop section: endnotes [en] +***** ↻ Loop section: endnotes [en] :loop:endnotes: - endnotes have their own number, (also use in node) and they belong to calling object @@ -2806,7 +2806,7 @@ if (the_endnotes_section.length > 1) { } #+END_SRC -***** ↻ reLoop section: glossary [gl] +***** ↻ reLoop section: glossary [gl] :loop:glossary: - add glossary numbering, (also use in node) no need to show in text @@ -2851,7 +2851,7 @@ if (the_glossary_section.length > 1) { } #+END_SRC -***** ↻ reLoop section: bibliography [bb] +***** ↻ reLoop section: bibliography [bb] :loop:bibliography: - add bibliography numbering, (also use in node) no need to show in text @@ -2896,7 +2896,7 @@ if (the_bibliography_section.length > 1) { } #+END_SRC -***** ↻ Loop section: book index (scroll, seg) [bi] +***** ↻ Loop section: book index (scroll, seg) [bi] :loop:bookindex: - add book index numbering?, (also use in node) no need to show in text @@ -2953,7 +2953,7 @@ if (the_bookindex_section.length > 1) { / } #+END_SRC -***** ↻ Loop section: blurb [bl] +***** ↻ Loop section: blurb [bl] :loop:blurb: #+NAME: abs_post_reloop_section_blurb_get_numbering #+BEGIN_SRC d @@ -2996,7 +2996,7 @@ if (the_blurb_section.length > 1) { } #+END_SRC -***** ↻ reLoop sections: get decendants +***** ↻ reLoop sections: get decendants :loop:document: #+NAME: abs_post_reloop_section_all_get_decendants #+BEGIN_SRC d @@ -3094,7 +3094,7 @@ if (the_document_body_section.length > 1) { } #+END_SRC -**** TODO update BUG? +**** update TODO BUG? #+NAME: abs_post_heading_obj_reinitialize #+BEGIN_SRC d @@ -3131,8 +3131,8 @@ comp_obj_heading_ = comp_obj_heading_.obj_heading_ancestors(lv_ancestors_txt); // the_dom_tail_section ~= comp_obj_heading_; // remove tail for now, decide on later #+END_SRC -** 4. _return document tuple_ :post: -*** _the document_ :document: +** 4. _return document tuple_ :post: +*** _the document_ :document: #+NAME: abs_post_the_document #+BEGIN_SRC d @@ -3295,7 +3295,7 @@ dom_structure_collapsed_tags_status_buffer = [ 0, 0, 0, 0, 0, 0, 0, 0, 0,]; } #+END_SRC -*** _return the document tuple_ [#A] :return:tuple: +*** _return the document tuple_ [#A] :return:tuple: #+NAME: abs_return_tuple #+BEGIN_SRC d @@ -3306,12 +3306,12 @@ auto t = tuple( return t; #+END_SRC -** 5. Functions :abstract:function: +** 5. Functions :abstract:function: functions used in document abstraction -*** set & resets :reset: -**** object reset: remove (clean) :object:remove: +*** set & resets :reset: +**** object reset: remove (clean) :object:remove: #+NAME: abs_functions_object_reset #+BEGIN_SRC d @@ -3325,7 +3325,7 @@ functions used in document abstraction } #+END_SRC -**** set, initialize or re-initialize :set: +**** set, initialize or re-initialize :set: #+NAME: abs_functions_header_set_common #+BEGIN_SRC d @@ -3341,7 +3341,7 @@ functions used in document abstraction } #+END_SRC -*** check object_number status in document :ocn: +*** check object_number status in document :ocn: #+NAME: abs_functions_ocn_status #+BEGIN_SRC d @@ -3454,8 +3454,8 @@ functions used in document abstraction } #+END_SRC -*** block :block: -**** block start (open) block :start: +*** block :block: +**** block start (open) block :start: ***** { block starts function #+NAME: abs_functions_block_open @@ -3468,7 +3468,7 @@ functions used in document abstraction ) { #+END_SRC -****** block (various) curly open :curly: +****** block (various) curly open :curly: #+NAME: abs_functions_block_regex #+BEGIN_SRC d @@ -3609,7 +3609,7 @@ if (auto m = line.matchFirst(rgx.block_curly_code_open)) { pith["block_delim"] = eN.blk_delim.curly_special; #+END_SRC -****** block (various) tic open :tic: +****** block (various) tic open :tic: ******* code #+NAME: abs_functions_block_tic_open_code @@ -3739,8 +3739,8 @@ if (auto m = line.matchFirst(rgx.block_curly_code_open)) { } #+END_SRC -**** block continue (an open block) :continue: -***** _code block_ (special status, deal with first) :code: +**** block continue (an open block) :continue: +***** _code block_ (special status, deal with first) :code: #+NAME: abs_functions_block_code #+BEGIN_SRC d @@ -3790,7 +3790,7 @@ if (auto m = line.matchFirst(rgx.block_curly_code_open)) { } #+END_SRC -***** biblio block :biblio: +***** biblio block :biblio: ****** biblio map tags #+NAME: abs_functions_block_biblio_map_tags @@ -3969,7 +3969,7 @@ final string biblio_tag_map_()(string abr) { } #+END_SRC -***** quote block :quote: +***** quote block :quote: #+NAME: abs_functions_block_quote #+BEGIN_SRC d @@ -4016,7 +4016,7 @@ final string biblio_tag_map_()(string abr) { } #+END_SRC -***** group block :group: +***** group block :group: - apply inline markup - discard leading and newline whitespace @@ -4066,7 +4066,7 @@ final string biblio_tag_map_()(string abr) { } #+END_SRC -***** block block :block: +***** block block :block: - apply inline markup - keep whitespace indentation @@ -4117,7 +4117,7 @@ final string biblio_tag_map_()(string abr) { } #+END_SRC -***** poem block, verse objects :poem:verse: +***** poem block, verse objects :poem:verse: why extra object stuff only in poem/verse? @@ -4369,7 +4369,7 @@ why extra object stuff only in poem/verse? } #+END_SRC -***** table block :table: +***** table block :table: there are 3 types of table markup that need to be nomalized (given a single representation) here @@ -4504,7 +4504,7 @@ process and use an_object["table_head"] (then empty it) } #+END_SRC -**** block end (close an open block): line empty, block flag _makes_ :close: +**** block end (close an open block): line empty, block flag _makes_ :close: ***** { line empty, _make block_ @@ -4871,7 +4871,7 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -*** book index :bookindex: +*** book index :bookindex: #+NAME: abs_functions_book_index #+BEGIN_SRC d @@ -4927,8 +4927,8 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -*** heading or paragraph :heading:paragraph: -**** heading found :heading: +*** heading or paragraph :heading:paragraph: +**** heading found :heading: #+NAME: abs_functions_heading_found #+BEGIN_SRC d @@ -5015,7 +5015,7 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -**** heading make set :heading: +**** heading make set :heading: #+NAME: abs_functions_heading_make_set #+BEGIN_SRC d @@ -5077,7 +5077,7 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -**** heading match :heading: +**** heading match :heading: #+NAME: abs_functions_heading_matched #+BEGIN_SRC d @@ -5233,7 +5233,7 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -**** para match :para: +**** para match :para: #+NAME: abs_functions_para_matched #+BEGIN_SRC d @@ -5534,9 +5534,9 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -*** function emitters :emitters: -**** object :object: -***** ocn :ocn: +*** function emitters :emitters: +**** object :object: +***** ocn :ocn: #+NAME: meta_emitters_ocn #+BEGIN_SRC d @@ -5590,7 +5590,7 @@ if (pith["block_is"] == eN.blk_is.quote) { } #+END_SRC -***** object inline markup munge :markup:inline: +***** object inline markup munge :markup:inline: ****** { struct, inline markup munge @@ -5968,7 +5968,7 @@ invariant() { } #+END_SRC -***** toc, tags, object inline markup :markup:inline: +***** toc, tags, object inline markup :markup:inline: ****** { #+NAME: meta_emitters_obj_inline_markup_function_open @@ -5980,7 +5980,7 @@ static struct ObjInlineMarkup { static string anchor_tag = ""; #+END_SRC -******* object inline markup and anchor tags :markup:inline: +******* object inline markup and anchor tags :markup:inline: #+NAME: meta_emitters_obj_inline_markup_and_anchor_tags_and_misc #+BEGIN_SRC d @@ -6079,7 +6079,7 @@ invariant() { } #+END_SRC -******* toc (table of contents), build, gather headings :markup:inline: +******* toc (table of contents), build, gather headings :markup:inline: #+NAME: meta_emitters_obj_inline_markup_table_of_contents #+BEGIN_SRC d @@ -6386,7 +6386,7 @@ static int heading_num_lev1 = 0; } #+END_SRC -***** object attrib :attributes: +***** object attrib :attributes: ****** { attributes structure open, public #+NAME: meta_emitters_obj_attributes @@ -6660,8 +6660,8 @@ invariant() { } #+END_SRC -**** book index :book:index: -***** book index nugget hash :hash:nugget: +**** book index :book:index: +***** book index nugget hash :hash:nugget: #+NAME: meta_emitters_bookindex_nugget #+BEGIN_SRC d @@ -6741,7 +6741,7 @@ struct BookIndexNuggetHash { } #+END_SRC -***** book index (sort &) report indented :report:indented: +***** book index (sort &) report indented :report:indented: #+NAME: meta_emitters_bookindex_report_indented #+BEGIN_SRC d @@ -6773,7 +6773,7 @@ struct BookIndexReportIndent { } #+END_SRC -***** book index (sort &) report section :report:section: +***** book index (sort &) report section :report:section: ****** { book index struct open #+NAME: meta_emitters_bookindex_report_section_function_open @@ -6819,7 +6819,7 @@ struct BookIndexReportSection { } #+END_SRC -******* book index (sort &) build section :report:section: +******* book index (sort &) build section :report:section: #+NAME: meta_emitters_bookindex_report_section_function_build_abstraction #+BEGIN_SRC d @@ -6989,7 +6989,7 @@ struct BookIndexReportSection { } #+END_SRC -**** (end)notes section :endnotes:section: +**** (end)notes section :endnotes:section: #+NAME: meta_emitters_endnotes_function_open #+BEGIN_SRC d @@ -7226,7 +7226,7 @@ struct NotesSection { } #+END_SRC -**** bibliography :bibliography: +**** bibliography :bibliography: ***** { biblio struct #+NAME: meta_emitters_bibliography_function_open @@ -7342,7 +7342,7 @@ struct Bibliography { } #+END_SRC -**** node structure metadata :structure:metadata:node: +**** node structure metadata :structure:metadata:node: ***** { metadata node struct #+NAME: meta_emitters_metadata_function_open @@ -7623,8 +7623,8 @@ invariant() { } #+END_SRC -*** function assertions :assertions: -**** assertions on markup document structure :doc_structure: +*** function assertions :assertions: +**** assertions on markup document structure :doc_structure: #+NAME: abs_functions_assertions #+BEGIN_SRC d @@ -7858,7 +7858,7 @@ template ObjectSetter() { } #+END_SRC -** 1. initialize structs :struct: +** 1. initialize structs :struct: *** heading attribute #+BEGIN_SRC d |