From b86c91d6136476de3a35e0077db28caccacd816e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 20 Jun 2018 11:42:14 -0400 Subject: doc object metainfo consolidation --- org/meta_debugs.org | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'org/meta_debugs.org') diff --git a/org/meta_debugs.org b/org/meta_debugs.org index 7789f06..b89b4ea 100644 --- a/org/meta_debugs.org +++ b/org/meta_debugs.org @@ -89,8 +89,8 @@ debug(parent) { ); foreach (key; doc_matters.xml.keys_seq.seg) { foreach (obj; contents[key]) { - if (obj.typeinfo.is_of_part != "empty") { - if (obj.typeinfo.is_a == "heading") { + if (obj.metainfo.is_of_part != "empty") { + if (obj.metainfo.is_a == "heading") { writefln( "%s node: %s heading: %s %s", obj.object_number, @@ -117,11 +117,11 @@ debug(dumpdoc) { ); if (key.length > 0) { foreach (obj; contents[key]) { - if (obj.typeinfo.is_of_part != "empty") { + if (obj.metainfo.is_of_part != "empty") { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -190,7 +190,7 @@ debug(checkdoc) { foreach (obj; contents[key]) { writefln( "[%s]\n%s", - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -213,7 +213,7 @@ debug(checkdoc) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -234,7 +234,7 @@ debug(section_head) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -292,7 +292,7 @@ debug(section_body) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -308,7 +308,7 @@ debug(toc_nav_dom) { enum DomTags { none, open, close, close_and_open, open_still, } foreach (sect; doc_matters.xml.keys_seq.seg) { foreach (obj; contents[sect]) { - if (obj.typeinfo.is_a == "heading") { + if (obj.metainfo.is_a == "heading") { foreach_reverse (k; 0 .. 7) { switch (obj.dom_markedup[k]) { case DomTags.close : @@ -335,7 +335,7 @@ debug(toc_nav_dom) { writeln("--------------------"); foreach (sect; doc_matters.xml.keys_seq.seg) { foreach (obj; contents[sect]) { - if (obj.typeinfo.is_a == "heading") { + if (obj.metainfo.is_a == "heading") { foreach_reverse (k; 0 .. 7) { switch (obj.dom_collapsed[k]) { case DomTags.close : @@ -394,7 +394,7 @@ debug(section_glossary) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -413,7 +413,7 @@ debug(section_bibliography) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -463,7 +463,7 @@ debug(blurb_section) { writefln( "[%s][%s]\n%s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -482,11 +482,11 @@ debug(objects) { __LINE__, ); foreach (obj; contents[key]) { - if (obj.typeinfo.is_of_part != "empty") { + if (obj.metainfo.is_of_part != "empty") { writefln( "* [%s][%s] %s", obj.object_number, - obj.typeinfo.is_a, + obj.metainfo.is_a, obj.text ); } @@ -666,7 +666,7 @@ debug(anchor) { ); foreach (k; doc_matters.xml.keys_seq.seg) { foreach (obj; contents[k]) { - if (obj.typeinfo.is_a == "heading") { + if (obj.metainfo.is_a == "heading") { writefln( "%s~ [%s] %s %s", obj.marked_up_level, @@ -688,7 +688,7 @@ debug(anchor) { debug(heading) { // heading foreach (k; doc_matters.xml.keys_seq.seg) { foreach (o; contents[k]) { - if (o.typeinfo.is_a == "heading") { + if (o.metainfo.is_a == "heading") { writefln( "%s* %s\n (markup level: %s; collapsed level: %s)", replicate(" ", o.heading_lev_markup), @@ -714,7 +714,7 @@ debug(headings) { ); foreach (k; doc_matters.xml.keys_seq.seg) { foreach (obj; contents[k]) { - if (obj.typeinfo.is_a == "heading") { + if (obj.metainfo.is_a == "heading") { writefln( "%s~ [%s] %s", obj.marked_up_level, -- cgit v1.2.3