From 3668f9ec6b4dd096f2109557ca523b3d774ad6d1 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 22 Oct 2019 19:56:58 -0400 Subject: minor --- org/output_harvest_metadata.org | 68 +++++++++++++++++++++++++++++------------ 1 file changed, 49 insertions(+), 19 deletions(-) (limited to 'org/output_harvest_metadata.org') diff --git a/org/output_harvest_metadata.org b/org/output_harvest_metadata.org index a25ab61..a7ce40f 100644 --- a/org/output_harvest_metadata.org +++ b/org/output_harvest_metadata.org @@ -252,8 +252,8 @@ foreach(k0; _prev_k = k0.toUpper.to!(char[])[0]; } if (k0 != "_a") { - topics ~= format(q"┃

%s

┃", - k0, k0,) ~ "\n"; + topics ~= format(q"┃

%s

┃", + k0.translate([' ' : "_"]), k0,) ~ "\n"; if (_opt_action.very_verbose) { writeln("", k0); } @@ -265,13 +265,13 @@ foreach(k0; _auth = []; if (t_a_.author_arr.length < 2) { _auth = format(q"┃ %s┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), t_a_.author, ); } else { foreach (a; t_a_.author_arr) { _auth ~= format(q"┃ %s,┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), a, ); } @@ -291,8 +291,8 @@ foreach(k0; .sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable) ) { if (k1 != "_a") { - topics ~= format(q"┃

%s

┃", - k1, k1,) ~ "\n"; + topics ~= format(q"┃

%s

┃", + k1.translate([' ' : "_"]), k1,) ~ "\n"; if (_opt_action.very_verbose) { writeln(" ", k1); } @@ -304,13 +304,13 @@ foreach(k0; _auth = []; if (t_a_.author_arr.length < 2) { _auth = format(q"┃ %s┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), t_a_.author, ); } else { foreach (a; t_a_.author_arr) { _auth ~= format(q"┃ %s,┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), a, ); } @@ -331,8 +331,8 @@ foreach(k0; .sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable) ) { if (k2 != "_a") { - topics ~= format(q"┃

%s

┃", - k2, k2,) ~ "\n"; + topics ~= format(q"┃

%s

┃", + k2.translate([' ' : "_"]), k2,) ~ "\n"; if (_opt_action.very_verbose) { writeln(" ", k2); } @@ -344,13 +344,13 @@ foreach(k0; _auth = []; if (t_a_.author_arr.length < 2) { _auth = format(q"┃ %s┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), t_a_.author, ); } else { foreach (a; t_a_.author_arr) { _auth ~= format(q"┃ %s,┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), a, ); } @@ -371,8 +371,8 @@ foreach(k0; .sort!("toUpper(a) < toUpper(b)", SwapStrategy.unstable) ) { if (k3 != "_a") { - topics ~= format(q"┃

%s

┃", - k3, k3,) ~ "\n"; + topics ~= format(q"┃

%s

┃", + k3.translate([' ' : "_"]), k3,) ~ "\n"; if (_opt_action.very_verbose) { writeln(" ", k3); } @@ -384,13 +384,13 @@ foreach(k0; _auth = []; if (t_a_.author_arr.length < 2) { _auth = format(q"┃%s┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), t_a_.author, ); } else { foreach (a; t_a_.author_arr) { _auth ~= format(q"┃ %s,┃", - t_a_.author_surname, + t_a_.author_surname.translate([' ' : "_"]), a, ); } @@ -521,8 +521,8 @@ template DocReformMetaDocHarvestsAuthors() { ) { if (doc_harvest.author_surname_fn != _prev_auth) { _au[doc_harvest.author_surname_fn] - = format(q"┃

%s

%s "%s" [%s]

┃", - doc_harvest.author_surname, + = format(q"┃

%s

%s "%s" [%s]

┃", + doc_harvest.author_surname.translate([' ' : "_"]), doc_harvest.author_surname_fn, (doc_harvest.date_published.length > 0) ? doc_harvest.date_published : "", @@ -616,6 +616,22 @@ string theme_dark_0 = format(q"┃ color : #888888; text-decoration : underline; } + a.lev0:hover { + color : #FFFFFF; + background-color : #000000; + } + a.lev1:hover { + color : #FFFFFF; + background : #333333; + } + a.lev2:hover { + color : #FFFFFF; + background : #555555; + } + a.lev3:hover { + color : #FFFFFF; + background : #777777; + } ┃"); string theme_light_0 = format(q"┃ body { @@ -642,6 +658,20 @@ string theme_light_0 = format(q"┃ color : #003399; text-decoration : underline; } + a.lev0:hover { + color : #000000; + background-color : #FFFFFF; + } + a.lev1:hover { + color : #FFFFFF; + background : #444444; + } + a.lev2:hover { + background : #888888; + } + a.lev3:hover { + background : #BBBBBB; + } ┃"); #+END_SRC @@ -718,7 +748,7 @@ string theme_light_1 = format(q"┃ - +