aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/output/xmls.d
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/output/xmls.d')
-rw-r--r--src/doc_reform/output/xmls.d35
1 files changed, 33 insertions, 2 deletions
diff --git a/src/doc_reform/output/xmls.d b/src/doc_reform/output/xmls.d
index 41787ae..fe02338 100644
--- a/src/doc_reform/output/xmls.d
+++ b/src/doc_reform/output/xmls.d
@@ -379,8 +379,7 @@ template outputXHTMLs() {
rgx.inline_link_hash,
"┥$1┝┤"
~ doc_matters.xml.tag_associations[(m.captures[3])][seg_lvs]
- ~ _suffix
- ~ "#" ~ "$3"
+ ~ _suffix ~ "#" ~ "$3"
~ "├"
);
}
@@ -627,6 +626,10 @@ template outputXHTMLs() {
string _txt,
string _xml_type = "html",
) {
+ assert(obj.metainfo.is_of_part == "body" || "frontmatter" || "backmatter");
+ assert(obj.metainfo.is_of_section == "body" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "para");
+ assert(obj.metainfo.is_a == "heading");
auto tags = _xhtml_anchor_tags(obj);
string heading_lev_anchor_tag;
string _horizontal_rule = "<hr />";
@@ -709,6 +712,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body" || "frontmatter" || "backmatter");
+ assert(obj.metainfo.is_of_section == "body" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "para");
+ assert(obj.metainfo.is_a == "para" || "toc" || "endnotes" || "glossary" || "bibliography" || "bookindex" || "blurb");
auto tags = _xhtml_anchor_tags(obj);
_txt = font_face(_txt);
string o;
@@ -778,6 +785,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "quote");
_txt = font_face(_txt);
string o;
if (!(obj.metainfo.identifier.empty)) {
@@ -837,6 +848,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "group");
_txt = font_face(_txt);
string o;
if (!(obj.metainfo.identifier.empty)) {
@@ -897,6 +912,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "block");
_txt = font_face(_txt);
string o;
if (!(obj.metainfo.identifier.empty)) {
@@ -953,6 +972,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body" || "glossary" || "bibliography" || "bookindex" || "blurb");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "verse");
_txt = font_face(_txt);
string o;
if (!(obj.metainfo.identifier.empty)) {
@@ -1042,6 +1065,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "table");
auto tags = _xhtml_anchor_tags(obj);
_txt = font_face(_txt);
auto t = tablarize(obj, _txt);
@@ -1086,6 +1113,10 @@ template outputXHTMLs() {
const O obj,
string _txt,
) {
+ assert(obj.metainfo.is_of_part == "body");
+ assert(obj.metainfo.is_of_section == "body");
+ assert(obj.metainfo.is_of_type == "block");
+ assert(obj.metainfo.is_a == "code");
string o;
if (!(obj.metainfo.identifier.empty)) {
o = format(q"¶ <div class="substance">