From c7c6c121884feb55ae3964e6055ac8ca983458cd Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 20 Aug 2016 08:57:12 -0400 Subject: step 0.6.3 includes fixes --- org/ao_abstract_doc_source.org | 50 +++++++++++++----------------------------- 1 file changed, 15 insertions(+), 35 deletions(-) (limited to 'org/ao_abstract_doc_source.org') diff --git a/org/ao_abstract_doc_source.org b/org/ao_abstract_doc_source.org index 75c581d..2fe674b 100644 --- a/org/ao_abstract_doc_source.org +++ b/org/ao_abstract_doc_source.org @@ -752,7 +752,7 @@ auto bookindex_section = bi_tuple[0]; obj_cite_number = bi_tuple[1]; debug(bookindex) { // bookindex foreach (bi_entry; bookindex_section) { - writeln(bi_entry["obj"]); + writeln(bi_entry); } } #+END_SRC @@ -2971,39 +2971,7 @@ struct BookIndexNuggetHash { } #+END_SRC -**** book index report :report: - -#+name: ao_emitters -#+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]) - ); - } - ++skn; - } - ++mkn; - } - // return bookindex_the; - } -} -#+END_SRC - -**** book index report indented :report:indented: +**** book index (sort &) report indented :report:indented: #+name: ao_emitters #+BEGIN_SRC d @@ -3036,7 +3004,7 @@ struct BookIndexReportIndent { } #+END_SRC -**** book index report section :report:section: +**** book index (sort &) report section :report:section: #+name: ao_emitters #+BEGIN_SRC d @@ -3069,6 +3037,12 @@ struct BookIndexReportSection { ++mkn; } } +#+END_SRC + +**** book index (sort &) build section :report:section: + +#+name: ao_emitters +#+BEGIN_SRC d auto bookindex_build_section( string[][string][string] bookindex_unordered_hashes, int obj_cite_number @@ -3161,6 +3135,12 @@ struct BookIndexReportSection { auto t = tuple(bookindex_section, obj_cite_number); return t; } +#+END_SRC + +**** book index (sort &) build section :report:section: + +#+name: ao_emitters +#+BEGIN_SRC d auto bookindex_build_section_( string[][string][string] bookindex_unordered_hashes ) { -- cgit v1.2.3