aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_html.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2017-03-28 21:08:52 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:14 -0400
commite162e70ec5e83bf33fadc59e2375547828b81581 (patch)
treebdcb61244668b872017deea59b0ba347e1a85fe5 /src/sdp/output_html.d
parent0.13.8 endnotes for various types of block (diff)
start work on block outputs
Diffstat (limited to 'src/sdp/output_html.d')
-rw-r--r--src/sdp/output_html.d24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/sdp/output_html.d b/src/sdp/output_html.d
index 9e66311..ba6adc8 100644
--- a/src/sdp/output_html.d
+++ b/src/sdp/output_html.d
@@ -81,18 +81,18 @@ template outputHTML() {
case "block":
switch (obj.is_a) {
case "quote":
- doc_html ~= xhtml_format.nugget(obj);
+ doc_html ~= xhtml_format.quote_scroll(obj);
break;
case "group":
- doc_html ~= xhtml_format.nugget(obj);
+ doc_html ~= xhtml_format.group_scroll(obj);
break;
case "block":
- doc_html ~= xhtml_format.nugget(obj);
+ doc_html ~= xhtml_format.block_scroll(obj);
break;
case "poem":
break;
case "verse":
- doc_html ~= xhtml_format.verse(obj);
+ doc_html ~= xhtml_format.verse_scroll(obj, suffix);
break;
case "code":
doc_html ~= xhtml_format.code(obj);
@@ -302,18 +302,26 @@ template outputHTML() {
case "block":
switch (obj.is_a) {
case "quote":
- doc_html[segment_filename] ~= xhtml_format.nugget(obj);
+ auto t = xhtml_format.quote_seg(obj, suffix);
+ doc_html[segment_filename] ~= to!string(t[0]);
+ doc_html_endnotes[segment_filename] ~= t[1];
break;
case "group":
- doc_html[segment_filename] ~= xhtml_format.nugget(obj);
+ auto t = xhtml_format.group_seg(obj, suffix);
+ doc_html[segment_filename] ~= to!string(t[0]);
+ doc_html_endnotes[segment_filename] ~= t[1];
break;
case "block":
- doc_html[segment_filename] ~= xhtml_format.nugget(obj);
+ auto t = xhtml_format.block_seg(obj, suffix);
+ doc_html[segment_filename] ~= to!string(t[0]);
+ doc_html_endnotes[segment_filename] ~= t[1];
break;
case "poem":
break;
case "verse":
- doc_html[segment_filename] ~= xhtml_format.verse(obj);
+ auto t = xhtml_format.verse_seg(obj, suffix);
+ doc_html[segment_filename] ~= to!string(t[0]);
+ doc_html_endnotes[segment_filename] ~= t[1]; // work on
break;
case "code":
doc_html[segment_filename] ~= xhtml_format.code(obj);