From f78907dd0dbcfa12698f85a6cebe77f3f5de46e9 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 13 Jun 2018 18:19:46 -0400 Subject: object_number, replaces object_cite_number in code --- org/sdp.org | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'org/sdp.org') diff --git a/org/sdp.org b/org/sdp.org index 7a8d86d..15fd5d4 100644 --- a/org/sdp.org +++ b/org/sdp.org @@ -940,24 +940,24 @@ auto markup = InlineMarkup(); #+name: meta_metadoc_summary #+BEGIN_SRC d string[string] check = [ - "last_obj_cite_number" : "NA [debug \"checkdoc\" not run]", - "last_obj_cite_number_body" : "0", - "last_obj_cite_number_bkidx" : "0", + "last_object_number" : "NA [debug \"checkdoc\" not run]", + "last_object_number_body" : "0", + "last_object_number_bkidx" : "0", ]; foreach (k; doc_matters.xml.keys_seq.seg) { foreach (obj; doc_abstraction[k]) { if (obj.typeinfo.of_part != "empty") { - if (!empty(obj.node.obj_cite_number)) { + if (!empty(obj.node.object_number)) { if (k == "body") { - check["last_obj_cite_number_body"] = obj.node.obj_cite_number; + check["last_object_number_body"] = obj.node.object_number; } - if (!(obj.node.obj_cite_number.empty)) { - check["last_obj_cite_number"] = obj.node.obj_cite_number; + if (!(obj.node.object_number.empty)) { + check["last_object_number"] = obj.node.object_number; } } if (k == "bookindex_seg") { - if (obj.misc.obj_cite_number_type == 2) { - check["last_obj_cite_number_bkidx"] = obj.misc.obj_cite_number_bkidx; + if (obj.misc.object_number_type == 2) { + check["last_object_number_bkidx"] = obj.misc.object_number_bkidx; } } } @@ -987,9 +987,9 @@ writefln( "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"]), + to!int(check["last_object_number_body"]), + "last object_number:", + to!int(check["last_object_number"]), "length endnotes:", // subtract headings (doc_abstraction["endnotes"].length > 2) ? (to!int(doc_abstraction["endnotes"].length - 2)) @@ -1007,7 +1007,7 @@ writefln( ? (to!int(doc_abstraction["bookindex_seg"].length)) : 0, " last book idx ocn:", - to!int(check["last_obj_cite_number_bkidx"]), + to!int(check["last_object_number_bkidx"]), "length blurb:", (doc_abstraction["blurb"].length > 1) ? (to!int(doc_abstraction["blurb"].length)) -- cgit v1.2.3