aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/ao_abstract_doc_source.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2016-08-30 12:28:56 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:09 -0400
commit55bba8c290e1f5d1c4227b1b96c0e1932f3a8f55 (patch)
treef53584c994bfee21cf3dede8f546149c177467a9 /src/sdp/ao_abstract_doc_source.d
parentorg mode version sync (diff)
minor cleaning
Diffstat (limited to 'src/sdp/ao_abstract_doc_source.d')
-rw-r--r--src/sdp/ao_abstract_doc_source.d111
1 files changed, 33 insertions, 78 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index 5095dab..eb87535 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -128,10 +128,9 @@ template SiSUdocAbstraction() {
];
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)
);
@@ -139,8 +138,7 @@ template SiSUdocAbstraction() {
}
int tell_l(string color, in char[] line) {
writefln(
- "%s%s",
- scr_txt_marker[color],
+ "* %s",
line
);
return 0;
@@ -217,8 +215,7 @@ template SiSUdocAbstraction() {
debug(srclines) {
if (!line.empty) { // source lines, not empty
writefln(
- "%s%s",
- scr_txt_marker["green"],
+ "* %s",
line
);
}
@@ -700,9 +697,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -713,9 +708,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -729,9 +722,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -742,9 +733,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -755,9 +744,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -768,9 +755,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -781,9 +766,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -794,9 +777,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -809,9 +790,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -822,9 +801,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -835,9 +812,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -848,9 +823,7 @@ template SiSUdocAbstraction() {
/+ 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
);
}
@@ -930,9 +903,7 @@ template SiSUdocAbstraction() {
}
debug(biblio) {
writefln(
- "%s * %s %s",
- scr_txt_color["yellow"],
- scr_txt_color["off"],
+ "* %s",
line
);
}
@@ -990,9 +961,7 @@ template SiSUdocAbstraction() {
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]
@@ -1015,9 +984,7 @@ template SiSUdocAbstraction() {
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
);
}
@@ -1027,8 +994,7 @@ template SiSUdocAbstraction() {
debug(poem) { // poem (curly) close
writeln(__LINE__);
writefln(
- "%s%s %s",
- scr_txt_marker["fuchsia"],
+ "* %s %s",
obj_cite_number,
line
);
@@ -1038,7 +1004,6 @@ template SiSUdocAbstraction() {
if (an_object.length > 0) {
debug(poem) { // poem (curly) close
tell_lo(
- "fuchsia",
obj_cite_number,
an_object["obj"]
);
@@ -1079,8 +1044,7 @@ template SiSUdocAbstraction() {
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"]
);
@@ -1115,9 +1079,7 @@ template SiSUdocAbstraction() {
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
);
}
@@ -1127,7 +1089,7 @@ template SiSUdocAbstraction() {
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";
@@ -1165,8 +1127,7 @@ template SiSUdocAbstraction() {
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"]
);
@@ -1557,9 +1518,7 @@ template SiSUdocAbstraction() {
/+ 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");
@@ -1571,9 +1530,7 @@ template SiSUdocAbstraction() {
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");
@@ -1585,9 +1542,7 @@ template SiSUdocAbstraction() {
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");
@@ -2451,7 +2406,7 @@ template SiSUdocAbstraction() {
mixin ScreenTxtColors;
if (!bookindex_section.empty) {
writeln(
- scr_txt_color["blue"], "* [bookindex] ", scr_txt_color["off"],
+ "* [bookindex] ",
"[", to!string(obj_cite_number), "] ", bookindex_section
);
}
@@ -2929,9 +2884,9 @@ template SiSUdocAbstraction() {
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);
@@ -3077,15 +3032,15 @@ template SiSUdocAbstraction() {
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);