aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/ao_output_debugs.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-08-20 08:57:12 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-04 14:53:38 -0400
commitc7c6c121884feb55ae3964e6055ac8ca983458cd (patch)
treeb354f012dd41202081bdd5cbc8b3e18fc8f945f9 /org/ao_output_debugs.org
parentminor move (diff)
step 0.6.3 includes fixes
Diffstat (limited to 'org/ao_output_debugs.org')
-rw-r--r--org/ao_output_debugs.org39
1 files changed, 37 insertions, 2 deletions
diff --git a/org/ao_output_debugs.org b/org/ao_output_debugs.org
index 0f001e1..d5d8177 100644
--- a/org/ao_output_debugs.org
+++ b/org/ao_output_debugs.org
@@ -14,6 +14,40 @@
* output debugs :debug:output:
[[./sdp.org][sdp]] [[./][org/]]
+
+** book index (sort &) report :report:
+
+#+name: book_index_sorted_report
+#+BEGIN_SRC d
+struct BookIndexReport {
+// class BookIndexReport : AssertBookIndexReport {
+ int mkn, skn;
+ auto bookindex_report_sorted(
+ string[][string][string] bookindex_unordered_hashes
+ ) {
+ auto mainkeys=bookindex_unordered_hashes.byKey.array.
+ sort!("toLower(a) < toLower(b)", SwapStrategy.stable).release;
+ foreach (mainkey; mainkeys) {
+ auto subkeys=bookindex_unordered_hashes[mainkey].byKey.array.
+ sort!("toLower(a) < toLower(b)", SwapStrategy.stable).release;
+ foreach (subkey; subkeys) {
+ debug(bookindex) {
+ writeln(
+ mainkey, ": ",
+ subkey, ": ",
+ to!string(bookindex_unordered_hashes[mainkey][subkey])
+ );
+ }
+ // bookindex_the[mkn][mainkey][skn][subkey] ~= (bookindex_unordered_hashes[mainkey][subkey]);
+ ++skn;
+ }
+ ++mkn;
+ }
+ // return bookindex_the;
+ }
+}
+#+END_SRC
+
** (parent) :parent:
#+name: ao_output_debugs
@@ -477,13 +511,14 @@ debug(checkdoc) {
ao_output_debugs.d
+/
template SiSUoutputDebugs() {
+ <<book_index_sorted_report>>
struct SDPoutputDebugs {
auto abstract_doc_source_debugs(S)(
auto ref const S contents,
string[][string][string] bookindex_unordered_hashes,
JSONValue[] biblio,
- JSONValue[string] dochead_make,
- JSONValue[string] dochead_meta,
+ string[string][string] dochead_make,
+ string[string][string] dochead_meta,
string fn_src,
bool[string] opt_action_bool
) {