From 9b9ecaf925c2a5096d2f7a061a96b2bd2437eb71 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 14 Jun 2022 21:44:40 -0400 Subject: ocn metaverse, rearrange --- org/metaverse.org | 26 +++++++++++++++++++++++--- src/doc_reform/meta/metadoc_from_src.d | 4 ++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/org/metaverse.org b/org/metaverse.org index 79071e3..d4b47bc 100644 --- a/org/metaverse.org +++ b/org/metaverse.org @@ -43,6 +43,9 @@ template docAbstraction() { <> <> <> + <> + <> + <> <> /+ ↓ abstract marked up document +/ @system auto docAbstraction(CMM,Opt,Mf) ( @@ -610,10 +613,16 @@ enum DomTags { none, open, close, close_and_open, open_still, } #+NAME: abs_top_init_ocn_emit #+BEGIN_SRC d -@safe static auto ocn_emit(int ocn_status_flag) { +@safe static OCNset ocn_emit(int ocn_status_flag) { return object_citation_number.ocn_emitter(ocn_status_flag); } -@safe static auto inline_markup_faces(L)(L line) { +#+END_SRC + +**** inline markup faces + +#+NAME: abs_top_init_inline_markup_faces +#+BEGIN_SRC d +@safe auto inline_markup_faces(L)(L line) { static auto rgx = RgxI(); static auto mkup = InlineMarkup(); line = replaceAll!(m => mkup.quote_o ~ m[1] ~ mkup.quote_c)(line, rgx.within_quotes); @@ -624,6 +633,12 @@ enum DomTags { none, open, close, close_and_open, open_still, } } return line; } +#+END_SRC + +**** string links & images + +#+NAME: abs_top_init_string_links_and_images +#+BEGIN_SRC d @safe static string links_and_images()(string obj_txt) { static auto rgx = RgxI(); static auto mkup = InlineMarkup(); @@ -664,6 +679,12 @@ enum DomTags { none, open, close, close_and_open, open_still, } } return obj_txt; } +#+END_SRC + +**** trail + +#+NAME: abs_top_init_trail +#+BEGIN_SRC d /+ book index variables +/ string book_idx_tmp; string[][string][string] bookindex_unordered_hashes; @@ -5671,7 +5692,6 @@ if (pith["block_is"] == eN.blk_is.quote) { #+END_SRC ***** object inline markup munge :markup:inline: - ****** { struct, inline markup munge #+NAME: meta_emitters_obj_inline_markup_munge_function_open diff --git a/src/doc_reform/meta/metadoc_from_src.d b/src/doc_reform/meta/metadoc_from_src.d index c9b6fda..73e76c7 100644 --- a/src/doc_reform/meta/metadoc_from_src.d +++ b/src/doc_reform/meta/metadoc_from_src.d @@ -349,10 +349,10 @@ template docAbstraction() { obj.metainfo.dom_structure_collapsed_tags_status = dom.dup; return obj; } - @safe static auto ocn_emit(int ocn_status_flag) { + @safe static OCNset ocn_emit(int ocn_status_flag) { return object_citation_number.ocn_emitter(ocn_status_flag); } - @safe static auto inline_markup_faces(L)(L line) { + @safe auto inline_markup_faces(L)(L line) { static auto rgx = RgxI(); static auto mkup = InlineMarkup(); line = replaceAll!(m => mkup.quote_o ~ m[1] ~ mkup.quote_c)(line, rgx.within_quotes); -- cgit v1.2.3