aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/meta/metadoc_from_src.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-01-06 20:34:42 -0500
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commitbdcb9189e4cf221bec1efaf2e6e612b127e51f25 (patch)
tree139cffff54a3afdfa9dd70799ef489c3fb51c73d /src/sdp/meta/metadoc_from_src.d
parenttarget config file locations, refine (diff)
0.23.3 work on source & target file paths/locations
Diffstat (limited to 'src/sdp/meta/metadoc_from_src.d')
-rw-r--r--src/sdp/meta/metadoc_from_src.d410
1 files changed, 205 insertions, 205 deletions
diff --git a/src/sdp/meta/metadoc_from_src.d b/src/sdp/meta/metadoc_from_src.d
index 917b66f..a8014e3 100644
--- a/src/sdp/meta/metadoc_from_src.d
+++ b/src/sdp/meta/metadoc_from_src.d
@@ -779,8 +779,8 @@ template SiSUdocAbstraction() {
: ocn_emit(OCNstatus.on); // : ocn_emit(obj_type_status["ocn_status"]);
an_object["is"] = "heading";
an_object_key="body_nugget";
- auto substantive_object_and_anchor_tags_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_object_and_anchor_tags_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_object_and_anchor_tags_tuple[sObj.content];
anchor_tags = substantive_object_and_anchor_tags_tuple[sObj.anchor_tags];
if (an_object["lev_markup_number"].to!int == 4) {
@@ -814,10 +814,10 @@ template SiSUdocAbstraction() {
break;
}
}
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(an_object["bookindex_nugget"], obj_cite_digits, segment_anchor_tag_that_object_belongs_to);
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(an_object["bookindex_nugget"], obj_cite_digits, segment_anchor_tag_that_object_belongs_to);
/+ (incrementally build toc) table of contents here! +/
_anchor_tag=to!string(obj_cite_digits.on);
the_table_of_contents_section = obj_im.table_of_contents_gather_headings(
@@ -833,8 +833,8 @@ template SiSUdocAbstraction() {
html_segnames_ptr = html_segnames_ptr_cntr;
html_segnames_ptr_cntr++;
}
- auto comp_obj_heading =
- node_construct.node_emitter_heading(
+ auto comp_obj_heading
+ = node_construct.node_emitter_heading(
an_object["substantive"], // string
an_object["lev"], // string
an_object["lev_markup_number"], // string
@@ -868,13 +868,13 @@ template SiSUdocAbstraction() {
&& (line_occur["para"] > State.off)) {
/+ paragraph object (current line empty) +/
obj_cite_digits = ocn_emit(obj_type_status["ocn_status"]);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(an_object["bookindex_nugget"], obj_cite_digits, segment_anchor_tag_that_object_belongs_to);
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(an_object["bookindex_nugget"], obj_cite_digits, segment_anchor_tag_that_object_belongs_to);
an_object["is"] = "para";
- auto comp_obj_heading =
- node_construct.node_location_emitter(
+ auto comp_obj_heading
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -882,8 +882,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"],
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_para = comp_obj_para.init;
@@ -968,8 +968,8 @@ template SiSUdocAbstraction() {
}
} /+ ← closed: loop markup document/text line by line +/
/+ ↓ post loop markup document/text +/
- auto en_tuple =
- note_section.endnote_objects(obj_cite_digits, opt_action);
+ auto en_tuple
+ = note_section.endnote_objects(obj_cite_digits, opt_action);
static assert(!isTypeTuple!(en_tuple));
auto the_endnotes_section = en_tuple[0];
obj_cite_digits = en_tuple[1];
@@ -1010,8 +1010,8 @@ template SiSUdocAbstraction() {
}
auto biblio_unsorted_incomplete = biblio_arr_json.dup;
auto biblio = Bibliography();
- auto biblio_ordered =
- biblio._bibliography_(biblio_unsorted_incomplete, bib_arr_json);
+ auto biblio_ordered
+ = biblio._bibliography_(biblio_unsorted_incomplete, bib_arr_json);
if (biblio_ordered.length > 0) {
comp_obj_heading_ = comp_obj_heading_.init;
comp_obj_heading_.of_part = "backmatter";
@@ -1104,8 +1104,8 @@ template SiSUdocAbstraction() {
}
}
auto bi = BookIndexReportSection();
- auto bi_tuple =
- bi.bookindex_build_abstraction_section(
+ auto bi_tuple
+ = bi.bookindex_build_abstraction_section(
bookindex_unordered_hashes,
obj_cite_digits,
opt_action,
@@ -1894,8 +1894,8 @@ template SiSUdocAbstraction() {
obj_type_status["ocn_status"] = OCNstatus.on;
}
} else {
- obj_type_status["ocn_status"] =
- obj_type_status["ocn_status_off_for_multiple_objects"];
+ obj_type_status["ocn_status"]
+ = obj_type_status["ocn_status_off_for_multiple_objects"];
}
}
} else if ((!line.empty) && (obj_type_status["ocn_status_off_for_multiple_objects"] > TriState.off)) {
@@ -2250,8 +2250,8 @@ template SiSUdocAbstraction() {
);
}
an_object["is"] = "verse";
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2308,8 +2308,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2351,8 +2351,8 @@ template SiSUdocAbstraction() {
}
processing.remove("verse");
an_object["is"] = "verse";
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2400,8 +2400,8 @@ template SiSUdocAbstraction() {
}
processing.remove("verse");
an_object["is"] = "verse";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2409,8 +2409,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2631,8 +2631,8 @@ template SiSUdocAbstraction() {
}
switch (biblio_tag_name) {
case "author_raw": // author_arr author (fn sn)
- j["author_arr"] =
- header_tag_value.split(rgx.arr_delimiter);
+ j["author_arr"]
+ = header_tag_value.split(rgx.arr_delimiter);
string tmp;
biblioAuthorLoop:
foreach (au; j["author_arr"].array) {
@@ -2646,8 +2646,8 @@ template SiSUdocAbstraction() {
j["author"].str = tmp;
goto default;
case "editor_raw": // editor_arr editor (fn sn)
- j["editor_arr"] =
- header_tag_value.split(rgx.arr_delimiter);
+ j["editor_arr"]
+ = header_tag_value.split(rgx.arr_delimiter);
string tmp;
biblioEditorLoop:
foreach (ed; j["editor_arr"].array) {
@@ -2701,8 +2701,8 @@ template SiSUdocAbstraction() {
) {
comp_obj_block = comp_obj_block.init;
obj_cite_digits = ocn_emit(OCNstatus.on);
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2711,8 +2711,8 @@ template SiSUdocAbstraction() {
"table"
);
an_object["is"] = "table";
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, "body_nugget", conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, "body_nugget", conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
comp_obj_block.ocn = obj_cite_digits.on;
comp_obj_block.obj_cite_number = (obj_cite_digits.on==0) ? "" : obj_cite_digits.on.to!string;
@@ -2751,17 +2751,17 @@ template SiSUdocAbstraction() {
assertions_flag_types_block_status_none_or_closed(obj_type_status);
if (obj_type_status["quote"] == TriState.closing) {
obj_cite_digits = ocn_emit(OCNstatus.on);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "quote";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2769,8 +2769,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2795,17 +2795,17 @@ template SiSUdocAbstraction() {
++cntr;
} else if (obj_type_status["group"] == TriState.closing) {
obj_cite_digits = ocn_emit(OCNstatus.on);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "group";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2813,8 +2813,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_block = comp_obj_block.init;
@@ -2839,17 +2839,17 @@ template SiSUdocAbstraction() {
++cntr;
} else if (obj_type_status["block"] == TriState.closing) {
obj_cite_digits = ocn_emit(OCNstatus.on);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "block";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2857,8 +2857,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
comp_obj_block = comp_obj_block.init;
comp_obj_block.of_part = "body";
@@ -2881,17 +2881,17 @@ template SiSUdocAbstraction() {
processing.remove("verse");
++cntr;
} else if (obj_type_status["poem"] == TriState.closing) {
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "verse";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2917,17 +2917,17 @@ template SiSUdocAbstraction() {
processing.remove("verse");
} else if (obj_type_status["code"] == TriState.closing) {
obj_cite_digits = ocn_emit(OCNstatus.on);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ = ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "code";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2935,8 +2935,8 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
anchor_tags = substantive_obj_misc_tuple[sObj.anchor_tags];
comp_obj_code = comp_obj_code.init;
@@ -2962,17 +2962,17 @@ template SiSUdocAbstraction() {
} else if (obj_type_status["table"] == TriState.closing) {
comp_obj_block = comp_obj_block.init;
obj_cite_digits = ocn_emit(OCNstatus.on);
- an_object["bookindex_nugget"] =
- ("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
- bookindex_unordered_hashes =
- bookindex_extract_hash.bookindex_nugget_hash(
+ an_object["bookindex_nugget"]
+ =("bookindex_nugget" in an_object) ? an_object["bookindex_nugget"] : "";
+ bookindex_unordered_hashes
+ = bookindex_extract_hash.bookindex_nugget_hash(
an_object["bookindex_nugget"],
obj_cite_digits,
segment_anchor_tag_that_object_belongs_to
);
an_object["is"] = "table";
- auto comp_obj_location =
- node_construct.node_location_emitter(
+ auto comp_obj_location
+ = node_construct.node_location_emitter(
content_non_header,
segment_anchor_tag_that_object_belongs_to,
obj_cite_digits,
@@ -2980,9 +2980,9 @@ template SiSUdocAbstraction() {
heading_ptr-1,
an_object["is"]
);
- auto substantive_obj_misc_tuple =
- obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
- an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
+ auto substantive_obj_misc_tuple
+ = obj_im.obj_inline_markup_and_anchor_tags_and_misc(an_object, an_object_key, conf_make_meta);
+ an_object["substantive"] = substantive_obj_misc_tuple[sObj.content];
comp_obj_block = comp_obj_block.init;
comp_obj_block.ocn = obj_cite_digits.on;
comp_obj_block.obj_cite_number = (obj_cite_digits.on==0) ? "" : obj_cite_digits.on.to!string;
@@ -3078,8 +3078,8 @@ template SiSUdocAbstraction() {
debug(headingsfound) {
writeln(dochead_make_identify_unmarked_headings);
}
- char[][] make_headings_spl =
- (cast(char[]) dochead_make_identify_unmarked_headings)
+ char[][] make_headings_spl
+ = (cast(char[]) dochead_make_identify_unmarked_headings)
.split(rgx.make_heading_delimiter);
debug(headingsfound) {
writeln(make_headings_spl.length);
@@ -3088,58 +3088,58 @@ template SiSUdocAbstraction() {
switch (make_headings_spl.length) {
case 7 :
if (!empty(make_headings_spl[6])) {
- heading_match_str["h_4"] =
- "^(" ~ make_headings_spl[6].to!string ~ ")";
- heading_match_rgx["h_4"] =
- regex(heading_match_str["h_4"]);
+ heading_match_str["h_4"]
+ = "^(" ~ make_headings_spl[6].to!string ~ ")";
+ heading_match_rgx["h_4"]
+ = regex(heading_match_str["h_4"]);
}
goto case;
case 6 :
if (!empty(make_headings_spl[5])) {
- heading_match_str["h_3"] =
- "^(" ~ make_headings_spl[5].to!string ~ ")";
- heading_match_rgx["h_3"] =
- regex(heading_match_str["h_3"]);
+ heading_match_str["h_3"]
+ = "^(" ~ make_headings_spl[5].to!string ~ ")";
+ heading_match_rgx["h_3"]
+ = regex(heading_match_str["h_3"]);
}
goto case;
case 5 :
if (!empty(make_headings_spl[4])) {
- heading_match_str["h_2"] =
- "^(" ~ make_headings_spl[4].to!string ~ ")";
- heading_match_rgx["h_2"] =
- regex(heading_match_str["h_2"]);
+ heading_match_str["h_2"]
+ = "^(" ~ make_headings_spl[4].to!string ~ ")";
+ heading_match_rgx["h_2"]
+ = regex(heading_match_str["h_2"]);
}
goto case;
case 4 :
if (!empty(make_headings_spl[3])) {
- heading_match_str["h_1"] =
- "^(" ~ make_headings_spl[3].to!string ~ ")";
- heading_match_rgx["h_1"] =
- regex(heading_match_str["h_1"]);
+ heading_match_str["h_1"]
+ = "^(" ~ make_headings_spl[3].to!string ~ ")";
+ heading_match_rgx["h_1"]
+ = regex(heading_match_str["h_1"]);
}
goto case;
case 3 :
if (!empty(make_headings_spl[2])) {
- heading_match_str["h_D"] =
- "^(" ~ make_headings_spl[2].to!string ~ ")";
- heading_match_rgx["h_D"] =
- regex(heading_match_str["h_D"]);
+ heading_match_str["h_D"]
+ = "^(" ~ make_headings_spl[2].to!string ~ ")";
+ heading_match_rgx["h_D"]
+ = regex(heading_match_str["h_D"]);
}
goto case;
case 2 :
if (!empty(make_headings_spl[1])) {
- heading_match_str["h_C"] =
- "^(" ~ make_headings_spl[1].to!string ~ ")";
- heading_match_rgx["h_C"] =
- regex(heading_match_str["h_C"]);
+ heading_match_str["h_C"]
+ = "^(" ~ make_headings_spl[1].to!string ~ ")";
+ heading_match_rgx["h_C"]
+ = regex(heading_match_str["h_C"]);
}
goto case;
case 1 :
if (!empty(make_headings_spl[0])) {
- heading_match_str["h_B"] =
- "^(" ~ make_headings_spl[0].to!string ~ ")";
- heading_match_rgx["h_B"] =
- regex(heading_match_str["h_B"]);
+ heading_match_str["h_B"]
+ = "^(" ~ make_headings_spl[0].to!string ~ ")";
+ heading_match_rgx["h_B"]
+ = regex(heading_match_str["h_B"]);
}
break;
default:
@@ -3252,8 +3252,8 @@ template SiSUdocAbstraction() {
.replaceFirst(rgx.variable_doc_author,
conf_make_meta.meta.creator_author);
collapsed_lev["h0"] = 0;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h0"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h0"].to!string;
lv["lv"] = DocStructMarkupHeading.h_sect_A;
++lv["h0"];
lv["h1"] = State.off;
@@ -3266,8 +3266,8 @@ template SiSUdocAbstraction() {
goto default;
case "B":
collapsed_lev["h1"] = collapsed_lev["h0"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h1"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h1"].to!string;
lv["lv"] = DocStructMarkupHeading.h_sect_B;
++lv["h1"];
lv["h2"] = State.off;
@@ -3279,8 +3279,8 @@ template SiSUdocAbstraction() {
goto default;
case "C":
collapsed_lev["h2"] = collapsed_lev["h1"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h2"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h2"].to!string;
lv["lv"] = DocStructMarkupHeading.h_sect_C;
++lv["h2"];
lv["h3"] = State.off;
@@ -3291,8 +3291,8 @@ template SiSUdocAbstraction() {
goto default;
case "D":
collapsed_lev["h3"] = collapsed_lev["h2"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h3"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h3"].to!string;
lv["lv"] = DocStructMarkupHeading.h_sect_D;
++lv["h3"];
lv["h4"] = State.off;
@@ -3310,8 +3310,8 @@ template SiSUdocAbstraction() {
} else if (lv["h0"] > State.off) {
collapsed_lev["h4"] = collapsed_lev["h0"] + 1;
}
- an_object["lev_collapsed_number"] =
- collapsed_lev["h4"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h4"].to!string;
lv["lv"] = DocStructMarkupHeading.h_text_1;
++lv["h4"];
lv["h5"] = State.off;
@@ -3320,12 +3320,12 @@ template SiSUdocAbstraction() {
goto default;
case "2":
if (lv["h5"] > State.off) {
- an_object["lev_collapsed_number"] =
- collapsed_lev["h5"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h5"].to!string;
} else if (lv["h4"] > State.off) {
collapsed_lev["h5"] = collapsed_lev["h4"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h5"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h5"].to!string;
}
lv["lv"] = DocStructMarkupHeading.h_text_2;
++lv["h5"];
@@ -3334,12 +3334,12 @@ template SiSUdocAbstraction() {
goto default;
case "3":
if (lv["h6"] > State.off) {
- an_object["lev_collapsed_number"] =
- collapsed_lev["h6"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h6"].to!string;
} else if (lv["h5"] > State.off) {
collapsed_lev["h6"] = collapsed_lev["h5"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h6"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h6"].to!string;
}
lv["lv"] = DocStructMarkupHeading.h_text_3;
++lv["h6"];
@@ -3347,12 +3347,12 @@ template SiSUdocAbstraction() {
goto default;
case "4":
if (lv["h7"] > State.off) {
- an_object["lev_collapsed_number"] =
- collapsed_lev["h7"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h7"].to!string;
} else if (lv["h6"] > State.off) {
collapsed_lev["h7"] = collapsed_lev["h6"] + 1;
- an_object["lev_collapsed_number"] =
- collapsed_lev["h7"].to!string;
+ an_object["lev_collapsed_number"]
+ = collapsed_lev["h7"].to!string;
}
lv["lv"] = DocStructMarkupHeading.h_text_4;
++lv["h7"];
@@ -3818,8 +3818,8 @@ template SiSUdocAbstraction() {
rgx.inline_notes_curly_sp_asterisk,
(mkup.en_a_o ~ "*" ~ " $1" ~ mkup.en_a_c)
);
- obj_txt_in =
- obj_txt_in.replaceAll(
+ obj_txt_in
+ = obj_txt_in.replaceAll(
rgx.inline_notes_curly_sp_plus,
(mkup.en_a_o ~ "+" ~ " $1" ~ mkup.en_a_c)
);
@@ -4313,7 +4313,7 @@ template SiSUdocAbstraction() {
heading_num_3 = 0;
} else if (
heading_num_top_level
- == obj_["lev_markup_number"].to!uint
+ == obj_["lev_markup_number"].to!uint
) {
heading_num_0 ++;
heading_num_1 = 0;
@@ -4321,26 +4321,26 @@ template SiSUdocAbstraction() {
heading_num_3 = 0;
} else if (
heading_num_top_level
- == (obj_["lev_markup_number"].to!uint - 1)
+ == (obj_["lev_markup_number"].to!uint - 1)
) {
heading_num_1 ++;
heading_num_2 = 0;
heading_num_3 = 0;
} else if (
heading_num_top_level
- == (obj_["lev_markup_number"].to!uint - 2)
+ == (obj_["lev_markup_number"].to!uint - 2)
) {
heading_num_2 ++;
heading_num_3 = 0;
} else if (
heading_num_top_level
- == (obj_["lev_markup_number"].to!uint - 3)
+ == (obj_["lev_markup_number"].to!uint - 3)
) {
heading_num_3 ++;
}
if (heading_num_3 > 0) {
- heading_number_auto_composite =
- (heading_num_depth == 3)
+ heading_number_auto_composite
+ = (heading_num_depth == 3)
? ( heading_num_0.to!string ~ "."
~ heading_num_1.to!string ~ "."
~ heading_num_2.to!string ~ "."
@@ -4348,8 +4348,8 @@ template SiSUdocAbstraction() {
)
: "";
} else if (heading_num_2 > 0) {
- heading_number_auto_composite =
- ((heading_num_depth >= 2)
+ heading_number_auto_composite
+ = ((heading_num_depth >= 2)
&& (heading_num_depth <= 3))
? ( heading_num_0.to!string ~ "."
~ heading_num_1.to!string ~ "."
@@ -4357,16 +4357,16 @@ template SiSUdocAbstraction() {
)
: "";
} else if (heading_num_1 > 0) {
- heading_number_auto_composite =
- ((heading_num_depth >= 1)
+ heading_number_auto_composite
+ = ((heading_num_depth >= 1)
&& (heading_num_depth <= 3))
? ( heading_num_0.to!string ~ "."
~ heading_num_1.to!string
)
: "";
} else if (heading_num_0 > 0) {
- heading_number_auto_composite =
- ((heading_num_depth >= 0)
+ heading_number_auto_composite
+ = ((heading_num_depth >= 0)
&& (heading_num_depth <= 3))
? (heading_num_0.to!string)
: "";
@@ -4706,10 +4706,10 @@ template SiSUdocAbstraction() {
oa_j.object["obj_cite_number"] = _comp_obj_heading.ocn;
oa_j.object["lev_markup_number"] = _comp_obj_heading.heading_lev_markup;
oa_j.object["lev_collapsed_number"] = _comp_obj_heading.heading_lev_collapsed;
- oa_j.object["heading_ptr"] =
- _comp_obj_heading.ptr_heading;
- oa_j.object["doc_object_ptr"] =
- _comp_obj_heading.ptr_doc_object;
+ oa_j.object["heading_ptr"]
+ = _comp_obj_heading.ptr_heading;
+ oa_j.object["doc_object_ptr"]
+ = _comp_obj_heading.ptr_doc_object;
}
oa_j.object["parent_obj_cite_number"] = _comp_obj_heading.parent_ocn;
oa_j.object["parent_lev_markup_number"] = _comp_obj_heading.parent_lev_markup;
@@ -4747,11 +4747,11 @@ template SiSUdocAbstraction() {
body {
static auto rgx = Rgx();
if (!bookindex_section.empty) {
- auto bi_main_terms_split_arr =
- bookindex_section.split(rgx.bi_main_terms_split);
+ auto bi_main_terms_split_arr
+ = bookindex_section.split(rgx.bi_main_terms_split);
foreach (bi_main_terms_content; bi_main_terms_split_arr) {
- auto bi_main_term_and_rest =
- bi_main_terms_content.split(rgx.bi_main_term_plus_rest_split);
+ auto bi_main_term_and_rest
+ = bi_main_terms_content.split(rgx.bi_main_term_plus_rest_split);
if (auto m = bi_main_term_and_rest[0].match(
rgx.bi_term_and_obj_cite_numbers_match)
) {
@@ -4768,8 +4768,8 @@ template SiSUdocAbstraction() {
bi[main_term]["_a"] ~= obj_cite_numbers;
obj_cite_numbers=null;
if (bi_main_term_and_rest.length > 1) {
- auto bi_sub_terms_split_arr =
- bi_main_term_and_rest[1].split(
+ auto bi_sub_terms_split_arr
+ = bi_main_term_and_rest[1].split(
rgx.bi_sub_terms_plus_obj_cite_number_offset_split
);
foreach (sub_terms_bits; bi_sub_terms_split_arr) {
@@ -4806,14 +4806,14 @@ template SiSUdocAbstraction() {
debug(asserts) {
static assert(is(typeof(bookindex_unordered_hashes) == string[][string][string]));
}
- auto mainkeys=
- bookindex_unordered_hashes.byKey.array.sort().release;
+ auto mainkeys
+ = bookindex_unordered_hashes.byKey.array.sort().release;
foreach (mainkey; mainkeys) {
debug(bookindex1) {
writeln(mainkey);
}
- auto subkeys=
- bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
+ auto subkeys
+ = bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
foreach (subkey; subkeys) {
debug(bookindex1) {
writeln(" ", subkey);
@@ -4846,8 +4846,8 @@ template SiSUdocAbstraction() {
}
writeln(" \\\\");
bookindex_unordered_hashes[mainkey].remove("_a");
- auto subkeys=
- bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
+ auto subkeys
+ = bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
foreach (subkey; subkeys) {
write(" ", subkey, ", ");
foreach (ref_; bookindex_unordered_hashes[mainkey][subkey]) {
@@ -4877,8 +4877,8 @@ template SiSUdocAbstraction() {
int heading_lev_markup, heading_lev_collapsed;
string attrib;
int[string] indent;
- auto mainkeys =
- bookindex_unordered_hashes.byKey.array.sort().release;
+ auto mainkeys
+ = bookindex_unordered_hashes.byKey.array.sort().release;
ObjGenericComposite[][string] bookindex_section;
ObjGenericComposite comp_obj_heading_, comp_obj_para;
auto node_para_int_ = node_metadata_para_int;
@@ -4941,8 +4941,8 @@ template SiSUdocAbstraction() {
auto bkidx_lnk_seg(string locs) {
string markup = "";
if (auto m = locs.matchFirst(rgx.book_index_go_seg)) {
- markup =
- munge.url_links("{ " ~ m["link"] ~ " }"
+ markup
+ = munge.url_links("{ " ~ m["link"] ~ " }"
~ mkup.mark_internal_site_lnk ~ m["seg"] ~ ".fnSuffix"
~ "#" ~ m["ocn"] ~ ", ");
} else {
@@ -4953,8 +4953,8 @@ template SiSUdocAbstraction() {
auto bkidx_lnk_scroll(string locs) {
string markup = "";
if (auto m = locs.matchFirst(rgx.book_index_go)) {
- markup =
- munge.url_links("{ " ~ m["link"] ~ " }"
+ markup
+ = munge.url_links("{ " ~ m["link"] ~ " }"
~ mkup.mark_internal_site_lnk
~ "#" ~ m["ocn"] ~ ", ");
} else {
@@ -4969,8 +4969,8 @@ template SiSUdocAbstraction() {
bi_tmp_scroll ~= " \\\\\n ";
bi_tmp_seg ~= " \\\\\n ";
bookindex_unordered_hashes[mainkey].remove("_a");
- auto subkeys =
- bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
+ auto subkeys
+ = bookindex_unordered_hashes[mainkey].byKey.array.sort().release;
foreach (subkey; subkeys) {
bi_tmp_scroll ~= subkey ~ ", ";
buffer.clear();
@@ -5214,8 +5214,8 @@ template SiSUdocAbstraction() {
}
}
body {
- JSONValue[] biblio_unsorted =
- _biblio_unsorted_complete_(biblio_unsorted_incomplete, bib_arr_json);
+ JSONValue[] biblio_unsorted
+ = _biblio_unsorted_complete_(biblio_unsorted_incomplete, bib_arr_json);
biblio_arr_json = [];
biblio_unsorted_incomplete = [];
JSONValue[] biblio_sorted__ = biblio_sort(biblio_unsorted);
@@ -5265,8 +5265,8 @@ template SiSUdocAbstraction() {
}
bib_arr_json ~= j;
}
- JSONValue[] biblio_unsorted_array_of_json_objects =
- bib_arr_json.dup;
+ JSONValue[] biblio_unsorted_array_of_json_objects
+ = bib_arr_json.dup;
destroy(bib_arr_json);
return biblio_unsorted_array_of_json_objects;
}
@@ -5275,8 +5275,8 @@ template SiSUdocAbstraction() {
static assert(is(typeof(biblio_unordered) == JSONValue[]));
}
JSONValue[] biblio_sorted_;
- biblio_sorted_ =
- sort!((a, b){
+ biblio_sorted_
+ = sort!((a, b){
return ((a["sortby_deemed_author_year_title"].str) < (b["sortby_deemed_author_year_title"].str));
})(biblio_unordered).array;
debug(bibliosorted) {
@@ -5426,24 +5426,24 @@ template SiSUdocAbstraction() {
lv = DocStructMarkupHeading.h_sect_B;
lv1 = obj_cite_digit;
lv2=0; lv3=0; lv4=0; lv5=0; lv6=0; lv7=0;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_A;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_A;
p_["obj_cite_number"] = lv0;
break;
case 2:
lv = DocStructMarkupHeading.h_sect_C;
lv2 = obj_cite_digit;
lv3=0; lv4=0; lv5=0; lv6=0; lv7=0;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_B;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_B;
p_["obj_cite_number"] = lv1;
break;
case 3:
lv = DocStructMarkupHeading.h_sect_D;
lv3=obj_cite_digit;
lv4=0; lv5=0; lv6=0; lv7=0;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_C;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_C;
p_["obj_cite_number"] = lv2;
break;
case 4:
@@ -5451,20 +5451,20 @@ template SiSUdocAbstraction() {
lv4 = obj_cite_digit;
lv5=0; lv6=0; lv7=0;
if (lv3 > State.off) {
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_D;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_D;
p_["obj_cite_number"] = lv3;
} else if (lv2 > State.off) {
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_C;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_C;
p_["obj_cite_number"] = lv2;
} else if (lv1 > State.off) {
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_B;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_B;
p_["obj_cite_number"] = lv1;
} else {
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_sect_A;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_sect_A;
p_["obj_cite_number"] = lv0;
}
break;
@@ -5472,23 +5472,23 @@ template SiSUdocAbstraction() {
lv = DocStructMarkupHeading.h_text_2;
lv5 = obj_cite_digit;
lv6=0; lv7=0;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_text_1;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_text_1;
p_["obj_cite_number"] = lv4;
break;
case 6:
lv = DocStructMarkupHeading.h_text_3;
lv6 = obj_cite_digit;
lv7=0;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_text_2;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_text_2;
p_["obj_cite_number"] = lv5;
break;
case 7:
lv = DocStructMarkupHeading.h_text_4;
lv7 = obj_cite_digit;
- p_["lev_markup_number"] =
- DocStructMarkupHeading.h_text_3;
+ p_["lev_markup_number"]
+ = DocStructMarkupHeading.h_text_3;
p_["obj_cite_number"] = lv6;
break;
default: