diff options
author | Ralph Amissah <ralph@amissah.com> | 2017-07-27 12:07:34 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:14 -0400 |
commit | b1c43b3f554a3bb9b82a62fddc392f8829e24552 (patch) | |
tree | da155487ecc99686d1de9e1d80272894605a4fba /src/sdp | |
parent | maker.org makefile supported compilers, make all_builds_debug (diff) |
meta doc abstraction summary
Diffstat (limited to 'src/sdp')
-rw-r--r-- | src/sdp/meta/metadoc_summary.d | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/sdp/meta/metadoc_summary.d b/src/sdp/meta/metadoc_summary.d index e2b85b8..e217726 100644 --- a/src/sdp/meta/metadoc_summary.d +++ b/src/sdp/meta/metadoc_summary.d @@ -23,12 +23,21 @@ template SiSUabstractionSummary() { if (doc_matters.opt_action["verbose"]) { string[string] check = [ "last_obj_cite_number" : "NA [debug \"checkdoc\" not run]", + "last_obj_cite_number_body" : "0", + "last_obj_cite_number_bkidx" : "0", ]; foreach (k; doc_matters.keys_seq.seg) { foreach (obj; doc_abstraction[k]) { if (obj.use != "empty") { if (!empty(obj.obj_cite_number)) { - check["last_obj_cite_number"] = obj.obj_cite_number; + if (k == "body") { + check["last_obj_cite_number_body"] = obj.obj_cite_number; + } + if ((k != "bookindex_seg") && (k != "blurb")) { + check["last_obj_cite_number"] = obj.obj_cite_number; + } else if (k == "bookindex_seg") { + check["last_obj_cite_number_bkidx"] = obj.obj_cite_number; + } } } } @@ -40,7 +49,7 @@ template SiSUabstractionSummary() { ? char_repeat_number : min_repeat_number; writefln( - "%s\n\"%s\", %s\n%s\n%s\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n(%s: %s)\n%s", + "%s\n\"%s\", %s\n%s\n%s\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n%30-s%10-d\n(%s: %s)\n%s", markup.repeat_character_by_number_provided("-", char_repeat_number), doc_matters.dochead_meta["title"]["full"], doc_matters.dochead_meta["creator"]["author"], @@ -50,11 +59,13 @@ template SiSUabstractionSummary() { to!int(doc_abstraction["toc_seg"].length), "length doc_abstraction arr:", to!int(doc_abstraction["body"].length), + "last doc body ocn:", + to!int(check["last_obj_cite_number_body"]), "last obj_cite_number:", to!int(check["last_obj_cite_number"]), - "length endnotes:", - (doc_abstraction["endnotes"].length > 1) - ? (to!int(doc_abstraction["endnotes"].length)) + "length endnotes:", // subtract headings + (doc_abstraction["endnotes"].length > 2) + ? (to!int(doc_abstraction["endnotes"].length - 2)) : 0, "length glossary:", (doc_abstraction["glossary"].length > 1) @@ -68,6 +79,8 @@ template SiSUabstractionSummary() { (doc_abstraction["bookindex_seg"].length > 1) ? (to!int(doc_abstraction["bookindex_seg"].length)) : 0, + " last book idx ocn:", + to!int(check["last_obj_cite_number_bkidx"]), "length blurb:", (doc_abstraction["blurb"].length > 1) ? (to!int(doc_abstraction["blurb"].length)) |