aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output_html.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdp/output_html.d')
-rw-r--r--src/sdp/output_html.d91
1 files changed, 60 insertions, 31 deletions
diff --git a/src/sdp/output_html.d b/src/sdp/output_html.d
index 42ecf0a..5cd1b26 100644
--- a/src/sdp/output_html.d
+++ b/src/sdp/output_html.d
@@ -43,7 +43,7 @@ template SiSUoutputHTML() {
if (obj.obj_cite_number.empty) {
o = format(q"¶ <div class="substance">
<label class="ocn"><a href="#%s" class="lnkocn">%s</a></label>
- <p class="%s" attrib="h%si%s">%s
+ <p class="%s" indent="h%si%s">%s
%s
</p>
</div>¶",
@@ -58,7 +58,7 @@ template SiSUoutputHTML() {
} else {
o = format(q"¶ <div class="substance">
<label class="ocn"><a href="#%s" class="lnkocn">%s</a></label>
- <p class="%s" attrib="h%si%s" id="%s">%s
+ <p class="%s" indent="h%si%s" id="%s">%s
%s
</p>
</div>¶",
@@ -128,7 +128,7 @@ template SiSUoutputHTML() {
) {
string o;
o = format(q"¶ <div class="substance">
- <p class="%s" attrib="h%si%s">
+ <p class="%s" indent="h%si%s">
%s
</p>
</div>¶",
@@ -143,7 +143,7 @@ template SiSUoutputHTML() {
auto ref const O obj,
) {
string o;
- o = format(q"¶ <p class="%s" attrib="h%si%s">
+ o = format(q"¶ <p class="%s" indent="h%si%s">
%s
</p>¶",
obj.is_a,
@@ -176,38 +176,67 @@ template SiSUoutputHTML() {
foreach (part; document_section_keys_sequenced["scroll"]) {
foreach (obj; contents[part]) {
if (obj.use == "content") {
- switch (obj.is_a) {
- case "heading":
- body_html ~= html_heading(obj);
- break;
- case "toc":
- body_html ~= html_toc(obj);
- break;
+ switch (obj.is_of) {
case "para":
- body_html ~= html_para(obj);
- break;
- case "verse":
- body_html ~= html_nugget(obj);
- break;
- case "group":
- body_html ~= html_nugget(obj);
+ switch (obj.is_a) {
+ case "heading":
+ body_html ~= html_heading(obj);
+ break;
+ case "toc":
+ body_html ~= html_toc(obj);
+ break;
+ case "para":
+ body_html ~= html_para(obj);
+ break;
+ case "endnote":
+ body_html ~= html_endnote(obj);
+ break;
+ case "glossary":
+ body_html ~= html_para(obj);
+ break;
+ case "bibliography":
+ body_html ~= html_para(obj);
+ break;
+ case "bookindex":
+ body_html ~= html_para(obj);
+ break;
+ case "blurb":
+ body_html ~= html_para(obj);
+ break;
+ default:
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ break;
+ }
break;
case "block":
- body_html ~= html_nugget(obj);
- break;
- case "quote":
- body_html ~= html_nugget(obj);
- break;
- case "table":
- body_html ~= html_para(obj);
- break;
- case "code":
- body_html ~= html_nugget(obj);
- break;
- case "endnote":
- body_html ~= html_endnote(obj);
+ switch (obj.is_a) {
+ case "poem":
+ break;
+ case "verse":
+ body_html ~= html_nugget(obj);
+ break;
+ case "group":
+ body_html ~= html_nugget(obj);
+ break;
+ case "block":
+ body_html ~= html_nugget(obj);
+ break;
+ case "quote":
+ body_html ~= html_nugget(obj);
+ break;
+ case "table":
+ body_html ~= html_para(obj); //
+ break;
+ case "code":
+ body_html ~= html_nugget(obj);
+ break;
+ default:
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_a);
+ break;
+ }
break;
default:
+ writeln(__FILE__, ":", __LINE__, ": ", obj.is_of);
break;
}
}