diff options
author | Ralph Amissah <ralph@amissah.com> | 2016-08-30 12:28:56 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:09 -0400 |
commit | 55bba8c290e1f5d1c4227b1b96c0e1932f3a8f55 (patch) | |
tree | f53584c994bfee21cf3dede8f546149c177467a9 /org/ao_abstract_doc_source.org | |
parent | org mode version sync (diff) |
minor cleaning
Diffstat (limited to 'org/ao_abstract_doc_source.org')
-rw-r--r-- | org/ao_abstract_doc_source.org | 115 |
1 files changed, 35 insertions, 80 deletions
diff --git a/org/ao_abstract_doc_source.org b/org/ao_abstract_doc_source.org index 2fe674b..1239a50 100644 --- a/org/ao_abstract_doc_source.org +++ b/org/ao_abstract_doc_source.org @@ -152,10 +152,9 @@ line_occur = [ ]; auto type = flags_type_init; mixin ScreenTxtColors; -int tell_lo(string color, int obj_cite_number, in char[] line) { +int tell_lo(int obj_cite_number, in char[] line) { writefln( - "%s%s %s", - scr_txt_marker[color], + "* %s %s", to!string(obj_cite_number), to!string(line) ); @@ -163,8 +162,7 @@ int tell_lo(string color, int obj_cite_number, in char[] line) { } int tell_l(string color, in char[] line) { writefln( - "%s%s", - scr_txt_marker[color], + "* %s", line ); return 0; @@ -243,8 +241,7 @@ debug(source) { // source lines debug(srclines) { if (!line.empty) { // source lines, not empty writefln( - "%s%s", - scr_txt_marker["green"], + "* %s", line ); } @@ -965,9 +962,7 @@ auto start_block( /+ curly code open +/ debug(code) { // code (curly) open writefln( - "%s* [code curly] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [code curly] %s", line ); } @@ -978,9 +973,7 @@ auto start_block( /+ curly poem open +/ debug(poem) { // poem (curly) open writefln( - "%s* [poem curly] %s%s", - scr_txt_color["red"], - scr_txt_color["off"], + "* [poem curly] %s", line ); } @@ -994,9 +987,7 @@ auto start_block( /+ curly group open +/ debug(group) { // group (curly) open writefln( - "%s* [group curly] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [group curly] %s", line ); } @@ -1007,9 +998,7 @@ auto start_block( /+ curly block open +/ debug(block) { // block (curly) open writefln( - "%s* [block curly] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [block curly] %s", line ); } @@ -1020,9 +1009,7 @@ auto start_block( /+ curly quote open +/ debug(quote) { // quote (curly) open writefln( - "%s* [quote curly] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [quote curly] %s", line ); } @@ -1033,9 +1020,7 @@ auto start_block( /+ curly table open +/ debug(table) { // table (curly) open writefln( - "%s* [table curly] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [table curly] %s", line ); } @@ -1052,9 +1037,7 @@ auto start_block( /+ tic code open +/ debug(code) { // code (tic) open writefln( - "%s* [code tic] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [code tic] %s", line ); } @@ -1065,9 +1048,7 @@ auto start_block( /+ tic poem open +/ debug(poem) { // poem (tic) open writefln( - "%s* [poem tic] %s%s", - scr_txt_color["red"], - scr_txt_color["off"], + "* [poem tic] %s", line ); } @@ -1080,9 +1061,7 @@ auto start_block( /+ tic group open +/ debug(group) { // group (tic) open writefln( - "%s* [group tic] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [group tic] %s", line ); } @@ -1093,9 +1072,7 @@ auto start_block( /+ tic block open +/ debug(block) { // block (tic) open writefln( - "%s* [block tic] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [block tic] %s", line ); } @@ -1106,9 +1083,7 @@ auto start_block( /+ tic quote open +/ debug(quote) { // quote (tic) open writefln( - "%s* [quote tic] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [quote tic] %s", line ); } @@ -1119,9 +1094,7 @@ auto start_block( /+ tic table open +/ debug(table) { // table (tic) open writefln( - "%s* [table tic] %s%s", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [table tic] %s", line ); } @@ -1285,9 +1258,7 @@ auto biblio_block( } debug(biblio) { writefln( - "%s * %s %s", - scr_txt_color["yellow"], - scr_txt_color["off"], + "* %s", line ); } @@ -1345,9 +1316,7 @@ auto biblio_block( s = j.toString(); debug(biblio) { writefln( - "%s* %s%s: %s\n%s", - scr_txt_color["red"], - scr_txt_color["off"], + "* %s: %s\n%s", biblio_tag_name, biblio_tag_entry, j[biblio_tag_name] @@ -1377,9 +1346,7 @@ auto poem_block( an_object["obj"]="verse"; // check that this is as you please debug(poem) { // poem (curly) close writefln( - "%s* [poem curly] %s%s", - scr_txt_color["red"], - scr_txt_color["off"], + "* [poem curly] %s", line ); } @@ -1389,8 +1356,7 @@ auto poem_block( debug(poem) { // poem (curly) close writeln(__LINE__); writefln( - "%s%s %s", - scr_txt_marker["fuchsia"], + "* %s %s", obj_cite_number, line ); @@ -1400,7 +1366,6 @@ auto poem_block( if (an_object.length > 0) { debug(poem) { // poem (curly) close tell_lo( - "fuchsia", obj_cite_number, an_object["obj"] ); @@ -1441,8 +1406,7 @@ auto poem_block( an_object["obj"] = processing["verse"]; debug(poem) { // poem verse writefln( - "%s%s curly\n%s", - scr_txt_marker["green"], + "* %s curly\n%s", obj_cite_number, an_object["obj"] ); @@ -1477,9 +1441,7 @@ auto poem_block( an_object["obj"]="verse"; // check that this is as you please debug(poem) { // poem (curly) close writefln( - "%s* [poem tic] %s%s", - scr_txt_color["red"], - scr_txt_color["off"], + "* [poem tic] %s", line ); } @@ -1489,7 +1451,7 @@ auto poem_block( if (an_object.length > 0) { debug(poem) { // poem (tic) close writeln(__LINE__); - tell_lo("fuchsia", obj_cite_number, line); + tell_lo(obj_cite_number, line); } processing.remove("verse"); an_object["is"] = "verse"; @@ -1527,8 +1489,7 @@ auto poem_block( an_object["obj"] = processing["verse"]; debug(poem) { // poem (tic) close writefln( - "%s%s tic\n%s", - scr_txt_marker["green"], + "* %s tic\n%s", obj_cite_number, an_object["obj"] ); @@ -1955,9 +1916,7 @@ auto book_index( /+ match book_index +/ debug(bookindexmatch) { // book index writefln( - "%s* [bookindex] %s%s\n", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [bookindex] %s\n", to!string(m.captures[1]), ); // writeln(scr_txt_marker["blue"], to!string(m.captures[1]), "\n"); @@ -1969,9 +1928,7 @@ auto book_index( book_idx_tmp = to!string(m.captures[1]); debug(bookindexmatch) { // book index writefln( - "%s* [bookindex] %s%s\n", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [bookindex] %s\n", book_idx_tmp, ); // writeln(scr_txt_marker["blue"], book_idx_tmp, "\n"); @@ -1983,9 +1940,7 @@ auto book_index( an_object["bookindex"] = book_idx_tmp ~ to!string(m.captures[1]); debug(bookindexmatch) { // book index writefln( - "%s* [bookindex] %s%s\n", - scr_txt_color["blue"], - scr_txt_color["off"], + "* [bookindex] %s\n", book_idx_tmp, ); // writeln(scr_txt_marker["blue"], book_idx_tmp, "\n"); @@ -2911,7 +2866,7 @@ struct BookIndexNuggetHash { mixin ScreenTxtColors; if (!bookindex_section.empty) { writeln( - scr_txt_color["blue"], "* [bookindex] ", scr_txt_color["off"], + "* [bookindex] ", "[", to!string(obj_cite_number), "] ", bookindex_section ); } @@ -3039,7 +2994,7 @@ struct BookIndexReportSection { } #+END_SRC -**** book index (sort &) build section :report:section: +**** book index (sort &) build section :report:section: #+name: ao_emitters #+BEGIN_SRC d @@ -3137,7 +3092,7 @@ struct BookIndexReportSection { } #+END_SRC -**** book index (sort &) build section :report:section: +**** book index (sort &) build section :report:section: #+name: ao_emitters #+BEGIN_SRC d @@ -3432,9 +3387,9 @@ struct NodeStructureMetadata { debug(node) { mixin ScreenTxtColors; if (match(lev_markup_number, rgx.levels_numbered_headings)) { - writeln(scr_txt_marker["yellow"], to!string(node)); + writeln("* ", to!string(node)); } else { - writeln(scr_txt_marker["white"], to!string(node)); + writeln("* ", to!string(node)); } } JSONValue j = parseJSON(node); @@ -3586,15 +3541,15 @@ struct NodeStructureMetadata { debug(heading) { mixin ScreenTxtColors; if (match(lev_markup_number, rgx.levels_numbered_headings)) { - writeln(scr_txt_marker["yellow"], to!string(node)); + writeln("* ", to!string(node)); } } debug(node) { mixin ScreenTxtColors; if (match(lev_markup_number, rgx.levels_numbered_headings)) { - writeln(scr_txt_marker["yellow"], to!string(node)); + writeln("* ", to!string(node)); } else { - writeln(scr_txt_marker["white"], to!string(node)); + writeln("* ", to!string(node)); } } JSONValue j = parseJSON(node); |