diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-06 19:37:07 -0400 | 
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-20 11:27:26 -0400 | 
| commit | 37bae77e09df3a50947dd445acbcd19afa4ce17c (patch) | |
| tree | 5d72931f398f45b1f567c10a0a3ed7bb199750bf /org | |
| parent | doc abstraction, pith replaces obj_type_status (diff) | |
doc structure hash removed, replaced, unused
- doc abstraction changes (use of new associative
  array named "pith" with enum) replaces the
  redundant doc structure associative array
Diffstat (limited to 'org')
| -rw-r--r-- | org/default_misc.org | 49 | ||||
| -rw-r--r-- | org/in_source_files.org | 15 | ||||
| -rw-r--r-- | org/metaverse.org | 1 | ||||
| -rw-r--r-- | org/spine.org | 1 | 
4 files changed, 0 insertions, 66 deletions
| diff --git a/org/default_misc.org b/org/default_misc.org index ab7033f..4e0f78e 100644 --- a/org/default_misc.org +++ b/org/default_misc.org @@ -24,7 +24,6 @@    default settings  +/  module doc_reform.meta.defaults; -<<meta_defaults_template_init_flags>>  <<meta_defaults_template_node>>  <<meta_defaults_template_harvest>>  <<meta_defaults_template_biblio>> @@ -33,54 +32,6 @@ module doc_reform.meta.defaults;  #+END_SRC  ** template: flags regex initialize                            :regex_flags: -*** flags - -#+NAME: meta_defaults_template_init_flags -#+BEGIN_SRC d -template spineRgxDocStructFlags() { -  /+ regex flags +/ -  @safe static int[string] flags_type_init() { -    int[string] flags_type_init = [ -      "make_headings"                       : 0, -      "header_make"                         : 0, -      "header_meta"                         : 0, -      "heading"                             : 0, -      "biblio_section"                      : 0, -      "glossary_section"                    : 0, -      "blurb_section"                       : 0, -      "para"                                : 0, -      "blocks"                              : 0, // 0..2 generic -      "code"                                : 0, // 0..2 -      "poem"                                : 0, // 0..2 -      "table"                               : 0, // 0..2 -      "group"                               : 0, // 0..2 -      "block"                               : 0, // 0..2 -      "quote"                               : 0, // 0..2 -      "verse_new"                           : 0, -      "curly_code"                          : 0, -      "curly_poem"                          : 0, -      "curly_group"                         : 0, -      "curly_block"                         : 0, -      "curly_quote"                         : 0, -      "curly_table"                         : 0, -      "curly_table_special_markup"          : 0, -      "tic_code"                            : 0, -      "tic_poem"                            : 0, -      "tic_group"                           : 0, -      "tic_block"                           : 0, -      "tic_quote"                           : 0, -      "tic_table"                           : 0, -      "ocn_status"                          : 0, // 0 object_number; 1 no object_number; 2 no object_number & dummy headings -      "ocn_status_off_for_multiple_objects" : 0, // 0 object_number; 1 no object_number; 2 no object_number & dummy headings -      "heading_status"                      : 0, -      "heading_off_for_multiple_objects"    : 0, -      "book_index"                          : 0, -    ]; -    return flags_type_init; -  } -} -#+END_SRC -  *** node  #+NAME: meta_defaults_template_node diff --git a/org/in_source_files.org b/org/in_source_files.org index 49c4a5e..84702fe 100644 --- a/org/in_source_files.org +++ b/org/in_source_files.org @@ -355,7 +355,6 @@ template spineRawMarkupContent() {        char[][] markup_sourcefile_insert_content,        string   fn_src      ) { -      mixin spineRgxDocStructFlags;        <<meta_inserts_scan>>        foreach (line; markup_sourcefile_insert_content) {          <<meta_inserts_scan_loop>> @@ -368,7 +367,6 @@ template spineRawMarkupContent() {        string   fn_src      ) {        import std.algorithm; -      mixin spineRgxDocStructFlags;        <<meta_master_doc_scan_for_insert_filenames>>        foreach (line; sourcefile_body_content) {          <<meta_master_doc_scan_for_insert_filenames_loop>> @@ -518,7 +516,6 @@ split is on first match of level A~ (which is required)  char[][] contents_insert;  int code_block_status     = 0;  enum codeBlock { off, curly, tic, } -int[string] type = flags_type_init;  auto fn_pth_full = fn_src.match(rgx.src_pth_sst_or_ssm);  auto markup_src_file_path = fn_pth_full.captures[1];  #+END_SRC @@ -528,32 +525,22 @@ auto markup_src_file_path = fn_pth_full.captures[1];  #+NAME: meta_inserts_scan_loop  #+BEGIN_SRC d  if (code_block_status == codeBlock.curly) { -  type["header_make"] = 0; -  type["header_meta"] = 0;    if (line.matchFirst(rgx.block_curly_code_close)) {      code_block_status = codeBlock.off;    }    contents_insert ~= line;  } else if (line.matchFirst(rgx.block_curly_code_open)) {    code_block_status   = codeBlock.curly; -  type["header_make"] = 0; -  type["header_meta"] = 0;    contents_insert ~= line;  } else if (code_block_status == codeBlock.tic) { -  type["header_make"] = 0; -  type["header_meta"] = 0;    if (line.matchFirst(rgx.block_tic_close)) {      code_block_status = codeBlock.off;    }    contents_insert ~= line;  } else if (line.matchFirst(rgx.block_tic_code_open)) {    code_block_status   = codeBlock.tic; -  type["header_make"] = 0; -  type["header_meta"] = 0;    contents_insert ~= line;  } else if (auto m = line.match(rgx.insert_src_fn_ssi_or_sst)) { -  type["header_make"] = 0; -  type["header_meta"] = 0;    auto insert_fn = m.captures[2];    auto insert_sub_pth = m.captures[1];    auto fn_src_insert @@ -584,8 +571,6 @@ if (code_block_status == codeBlock.curly) {           - build image list, search for any image files to add to image list    +/  } else { -  type["header_make"] = 0; -  type["header_meta"] = 0;    contents_insert ~= line; // images to extract for image list?    if (_opt_action.source || _opt_action.pod) {      string[] _image_linelist = _extract_images(line); diff --git a/org/metaverse.org b/org/metaverse.org index 86269bb..683ed86 100644 --- a/org/metaverse.org +++ b/org/metaverse.org @@ -591,7 +591,6 @@ scope(exit) {  #+NAME: abs_init_rest  #+BEGIN_SRC d -mixin spineRgxDocStructFlags;  mixin spineNode;  auto node_para_int_    = node_metadata_para_int;  auto node_para_str_    = node_metadata_para_str; diff --git a/org/spine.org b/org/spine.org index b8f6609..bb2cb6e 100644 --- a/org/spine.org +++ b/org/spine.org @@ -302,7 +302,6 @@ mixin CompileTimeInfo;  #+BEGIN_SRC d  mixin spineRgxIn;  mixin spineBiblio; -mixin spineRgxDocStructFlags;  mixin outputHub;  #+END_SRC | 
