aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sdp/ao_abstract_doc_source.d36
-rw-r--r--src/sdp/ao_conf_make_meta_sdlang.d391
2 files changed, 20 insertions, 407 deletions
diff --git a/src/sdp/ao_abstract_doc_source.d b/src/sdp/ao_abstract_doc_source.d
index 603c025..9851759 100644
--- a/src/sdp/ao_abstract_doc_source.d
+++ b/src/sdp/ao_abstract_doc_source.d
@@ -237,7 +237,7 @@ template SiSUdocAbstraction() {
continue;
} else if (type["poem"] == TriState.on) {
/+ within block object: poem +/
- poem_block(line, an_object, type, counter, obj_cite_number_poem);
+ poem_block(line, an_object, type, counter, obj_cite_number_poem, dochead_make_aa);
continue;
/+ within block object: group +/
} else if (type["group"] == TriState.on) {
@@ -360,7 +360,7 @@ template SiSUdocAbstraction() {
}
} else if (type["blocks"] == TriState.closing) {
/+ line empty, with blocks flag +/
- block_flag_line_empty(line, an_object, contents_the_objects, bookindex_unordered_hashes, obj_cite_number, node, counter, type, obj_cite_number_poem); // watch
+ block_flag_line_empty(line, an_object, contents_the_objects, bookindex_unordered_hashes, obj_cite_number, node, counter, type, obj_cite_number_poem, dochead_make_aa); // watch
} else {
/+ line empty +/
/+ line.empty, post contents, empty variables: +/
@@ -391,7 +391,7 @@ template SiSUdocAbstraction() {
an_object["is"]
); // heading
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
++heading_pointer;
@@ -433,7 +433,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -504,7 +504,7 @@ template SiSUdocAbstraction() {
* references / bibliography
* book index
+/
- obj_im.obj_inline_markup("doc_end_reset", "");
+ obj_im.obj_inline_markup("doc_end_reset", "", dochead_make_aa);
auto en_tuple =
note_section.endnote_objects(obj_cite_number);
static assert(!isTypeTuple!(en_tuple));
@@ -935,7 +935,8 @@ template SiSUdocAbstraction() {
ref string[string] an_object,
ref int[string] type,
ref long counter,
- string[string] obj_cite_number_poem
+ string[string] obj_cite_number_poem,
+ string[string][string] dochead_make_aa,
) {
if (type["curly_poem"] == TriState.on) {
if (matchFirst(line, rgx.block_curly_poem_close)) {
@@ -968,7 +969,7 @@ template SiSUdocAbstraction() {
}
an_object["is"] = "verse";
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1017,7 +1018,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1052,7 +1053,7 @@ template SiSUdocAbstraction() {
processing.remove("verse");
an_object["is"] = "verse";
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1101,7 +1102,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1264,7 +1265,8 @@ template SiSUdocAbstraction() {
ref string node,
ref long counter,
ref int[string] type,
- string[string] obj_cite_number_poem
+ string[string] obj_cite_number_poem,
+ string[string][string] dochead_make_aa,
) {
// line.empty, post contents, empty variables ---------------
assert(
@@ -1293,7 +1295,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1353,7 +1355,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1385,7 +1387,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1416,7 +1418,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -1448,7 +1450,7 @@ template SiSUdocAbstraction() {
an_object["is"]
);
an_object["substantive"] =
- obj_im.obj_inline_markup(an_object["is"], an_object["obj"]);
+ obj_im.obj_inline_markup(an_object["is"], an_object["obj"], dochead_make_aa);
an_object["attrib"] =
obj_att.obj_attributes(an_object["is"], an_object["obj"], node);
contents_the_objects ~=
@@ -2213,7 +2215,7 @@ template SiSUdocAbstraction() {
// struct ObjInlineMarkup : AssertObjInlineMarkup {
auto munge = ObjInlineMarkupMunge();
string[string] obj_txt;
- string obj_inline_markup(string obj_is_, string obj_raw)
+ string obj_inline_markup(string obj_is_, string obj_raw, string[string][string] dochead_make_aa)
in { }
body {
obj_txt["munge"]=obj_raw.dup;
diff --git a/src/sdp/ao_conf_make_meta_sdlang.d b/src/sdp/ao_conf_make_meta_sdlang.d
index 9369aef..9124697 100644
--- a/src/sdp/ao_conf_make_meta_sdlang.d
+++ b/src/sdp/ao_conf_make_meta_sdlang.d
@@ -15,7 +15,7 @@ template SiSUheaderExtractSDLang() {
foreach (subtag, content; subtags) {
if (!(conf_sdlang.maybe.tags[maintag].empty)) {
if (!(conf_sdlang.tags[maintag][0].maybe.attributes[subtag].empty)
- && (conf_sdlang.tags[maintag][0].attributes[subtag][0].value.length > 1)) {
+ && (conf_sdlang.tags[maintag][0].attributes[subtag][0].value.length > 0)) {
debug(headersdlang) {
writeln(conf_sdlang.tags[maintag][0].attributes[subtag][0].value);
}
@@ -235,395 +235,6 @@ template SiSUheaderExtractSDLang() {
private auto headerSDLangToAAmake(Tag header_sdlang, string[string][string] dochead_make) {
dochead_make = sdlangToAAmake(dochead_make, header_sdlang);
auto dochead_meta = sdlangToAAmake(meta_aa, header_sdlang);
- /+
- /+ dochead +/
- string hm;
- string hs;
- /+ meta +/
- auto dochead_meta = meta_aa;
- hm = "title";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- /+ TODO Title REQUIRED +/
- hs = "main";
- if (!(header_sdlang.tags[hm].empty)
- && (header_sdlang.tags[hm][0].values[0].length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].values[0]);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].values[0]);
- // to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- } else if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- } else {
- writeln("Required header metadata Title, missing");
- }
- hs = "sub";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- } else if (!(header_sdlang.tags[hm][0].maybe.attributes["subtitle"].empty)
- && (header_sdlang.tags[hm][0].attributes["subtitle"][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes["subtitle"][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes["subtitle"][0].value);
- }
- // full title composite (main + sub)
- // hs = "full";
- // dochead_meta[hm][hs] = dochead_meta[hm]["main"] ~ dochead_meta[hm]["sub"];
- hs = "language";
- if (!(header_sdlang.tags[hm][0].maybe.attributes["lang"].empty)
- && (header_sdlang.tags[hm][0].attributes["lang"][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes["lang"][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes["lang"][0].value);
- } else if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "edition";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "note";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "creator";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- /+ Creator / Author REQUIRED +/
- /+ TODO
- - decide on representation for & deal with multiple authors;
- - author(s) full name;
- - author(s) surname & other parts
- +/
- hs = "author";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "author_email";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "illustrator";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "translator";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "classify";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "dewey";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "keywords";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "loc";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "subject";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "topic_register";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "date";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "added_to_site";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "available";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "created";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "issued";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "modified";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "published";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "valid";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "identifier";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "isbn";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "oclc";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "pg";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "links";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- /+ TODO
- stuff to fix
- +/
- // hs = "link";
- // if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- // && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- // debug(headersdlang) {
- // writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- // }
- // dochead_meta[hm][hs] =
- // to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- // }
- }
- hm = "notes";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "abstract";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "description";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "original";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "language";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "source";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "title";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "publisher";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "name";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- hm = "rights";
- if (!(header_sdlang.maybe.tags[hm].empty)) {
- hs = "copyright";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "cover";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "illustrations";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- hs = "license";
- if (!(header_sdlang.tags[hm][0].maybe.attributes[hs].empty)
- && (header_sdlang.tags[hm][0].attributes[hs][0].value.length > 1)) {
- debug(headersdlang) {
- writeln(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- dochead_meta[hm][hs] =
- to!string(header_sdlang.tags[hm][0].attributes[hs][0].value);
- }
- }
- +/
auto t = tuple(dochead_make, dochead_meta);
static assert(!isTypeTuple!(t));
return t;