aboutsummaryrefslogtreecommitdiffhomepage
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/out_curate_metadata.org2
-rw-r--r--org/out_metadata.org39
-rw-r--r--org/out_xmls.org17
-rw-r--r--org/spine.org45
4 files changed, 67 insertions, 36 deletions
diff --git a/org/out_curate_metadata.org b/org/out_curate_metadata.org
index 2861895..b5a7fd6 100644
--- a/org/out_curate_metadata.org
+++ b/org/out_curate_metadata.org
@@ -804,7 +804,7 @@ string theme_light_1 = format(q"┃
) {
string o;
string _form;
- if (_opt_action.html_search_link) {
+ if (_opt_action.html_link_search) {
o = format(q"┃
<div class="flex-menu-option">
<!-- SiSU Spine Search -->
diff --git a/org/out_metadata.org b/org/out_metadata.org
index 605c32e..725bc9e 100644
--- a/org/out_metadata.org
+++ b/org/out_metadata.org
@@ -87,7 +87,7 @@ metadata_ ~= format(q"┃<body lang="en" xml:lang="en">
<a name="start" id="start"></a>
┃");
metadata_ ~= "<div class=\"flex-menu-bar\"><div class=\"flex-menu-option\">";
-if (doc_matters.opt.action.html_curate_link) {
+if (doc_matters.opt.action.html_link_curate) {
metadata_ ~= format(q"┃<p>[<a href="../../../index.html">&nbsp;<b>≅</b>&nbsp;HOME&nbsp;</a>] Curated metadata:
[<a href="../../authors.html">&nbsp;Authors&nbsp;</a>]
[<a href="../../topics.html">&nbsp;Topics&nbsp;</a>]</p>
@@ -103,7 +103,7 @@ if (!(doc_matters.conf_make_meta.meta.title_full.empty)) {
writeln("ERROR no Title information provided in document header ", doc_matters.src.filename_base);
}
if (!(doc_matters.conf_make_meta.meta.creator_author.empty)) {
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~= "<p class=\"lev1\">Author: <b><a href=\"../../authors.html#" ~ doc_matters.conf_make_meta.meta.creator_author_surname.translate([' ' : "_"]) ~ "\">"
~ doc_matters.conf_make_meta.meta.creator_author ~ "</a></b></p>";
} else {
@@ -130,24 +130,31 @@ if (!(doc_matters.conf_make_meta.meta.notes_summary.empty)) {
writeln("WARNING no summary of text provided in document header ", doc_matters.src.filename_base);
}
metadata_ ~= "<hr /><p class=\"lev1\">source: " ~ doc_matters.src.filename_base ~ "</p>";
-metadata_ ~= "<p class=\"lev1\">● markup source: [<a href=\"../../" ~ pth_pod.internal_base ~ "/" ~ doc_matters.src.filename_base ~ ".zip\">"
- ~ "&nbsp;zipped&nbsp;pod&nbsp;</a>] "
- ~ "[<a href=\"../../" ~ pth_pod.internal_base ~ "/" ~ doc_matters.src.filename_base ~ "/\">"
- ~ "&nbsp;pod&nbsp;tree&nbsp;</a>]</p>";
+if (doc_matters.opt.action.html_link_markup_source) {
+ metadata_ ~= "<p class=\"lev1\">● markup source: [<a href=\"../../" ~ pth_pod.internal_base ~ "/" ~ doc_matters.src.filename_base ~ ".zip\">"
+ ~ "&nbsp;zipped&nbsp;pod&nbsp;</a>] "
+ ~ "[<a href=\"../../" ~ pth_pod.internal_base ~ "/" ~ doc_matters.src.filename_base ~ "/\">"
+ ~ "&nbsp;pod&nbsp;tree&nbsp;</a>]";
+}
metadata_ ~= "<p class=\"lev1\">● outputs: [<a href=\"" ~ doc_matters.src.filename_base ~ ".html\">"
~ "&nbsp;▣&nbsp;html&nbsp;scroll&nbsp;</a>] "
~ "[<a href=\"" ~ doc_matters.src.filename_base ~ "/toc.html\">"
~ "&nbsp;▤&nbsp;html&nbsp;seg&nbsp;</a>]"
~ "[<a href=\"../../" ~ pth_epub.internal_base ~ "/" ~ doc_matters.src.filename_base ~ "." ~ doc_matters.src.language ~ ".epub\">"
~ "&nbsp;◆&nbsp;epub&nbsp;</a>]";
-if (doc_matters.opt.action.html_pdf_link) {
+if ((doc_matters.opt.action.html_link_pdf) || (doc_matters.opt.action.html_link_pdf_a4)) {
metadata_ ~= "[<a href=\"../../pdf/"
~ doc_matters.src.filename_base
~ "." ~ doc_matters.src.language ~ ".a4.portrait.pdf\">"
- ~ "&nbsp;□&nbsp;a4&nbsp;pdf&nbsp;</a>]</p>";
-} else {
- metadata_ ~= "</p>";
+ ~ "&nbsp;□&nbsp;pdf&nbsp;(a4)&nbsp;</a>]";
+}
+if ((doc_matters.opt.action.html_link_pdf) || (doc_matters.opt.action.html_link_pdf_letter)) {
+ metadata_ ~= "[<a href=\"../../pdf/"
+ ~ doc_matters.src.filename_base
+ ~ "." ~ doc_matters.src.language ~ ".letter.portrait.pdf\">"
+ ~ "&nbsp;□&nbsp;pdf&nbsp;(U.S.&nbsp;letter)&nbsp;</a>]";
}
+metadata_ ~= "</p>";
if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
metadata_ ~= "<hr /><p class=\"lev0\">Topics:</p>";
string[] _top = ["", "", "", "", ""];
@@ -156,7 +163,7 @@ if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
if (subject_tree.length > 0) {
if (subject_tree[0] != _top[0]) {
_top[0] = subject_tree[0];
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~=
"<p class=\"lev1\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "\">"
@@ -171,7 +178,7 @@ if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
if (subject_tree[1] != _top[1]) {
_top[1] = subject_tree[1];
_top[2] = ""; _top[3] = ""; _top[4] = "";
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~=
"<p class=\"lev2\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -187,7 +194,7 @@ if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
if (subject_tree[2] != _top[2]) {
_top[2] = subject_tree[2];
_top[3] = ""; _top[4] = "";
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~=
"<p class=\"lev3\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -204,7 +211,7 @@ if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
if (subject_tree[3] != _top[3]) {
_top[3] = subject_tree[3];
_top[4] = "";
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~=
"<p class=\"lev4\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -221,7 +228,7 @@ if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) {
if (subject_tree.length > 4) {
if (subject_tree[4] != _top[4]) {
_top[4] = subject_tree[4];
- if (doc_matters.opt.action.html_curate_link) {
+ if (doc_matters.opt.action.html_link_curate) {
metadata_ ~=
"<p class=\"lev5\"><a href=\"../../topics.html#"
~ subject_tree[0].translate([' ' : "_"]) ~ "."
@@ -548,7 +555,7 @@ string theme_light_1 = format(q"┃
) {
string o;
string _form;
- if (doc_matters.opt.action.html_search_link) {
+ if (doc_matters.opt.action.html_link_search) {
o = format(q"┃
<div class="flex-menu-option">
<!-- SiSU Spine Search -->
diff --git a/org/out_xmls.org b/org/out_xmls.org
index 7f3f52a..e1b7f0b 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -364,7 +364,7 @@ import
) {
string o;
string _form;
- if (doc_matters.opt.action.html_search_link) {
+ if (doc_matters.opt.action.html_link_search) {
o = format(q"┃
<div class="flex-menu-option">
<!-- SiSU Spine Search -->
@@ -403,8 +403,8 @@ import
string type,
) {
string o;
- string metadata_links = ((doc_matters.opt.action.html_curate_link)
- ? format(q"┃<p class="small">[<a href="%s">&nbsp;≅&nbsp;</a>|<a href="%s">&nbsp;%s&nbsp;</a>|<a href="%sepub/%s.%s.epub">&nbsp;◆&nbsp;</a>|%s<a href="%smetadata.%s.html">&nbsp;m&nbsp;</a>|<a href="%s../../authors.html">&nbsp;A&nbsp;</a>|<a href="%s../../topics.html">&nbsp;T&nbsp;</a>]</p>┃",
+ string metadata_links = ((doc_matters.opt.action.html_link_curate)
+ ? format(q"┃<p class="small">[<a href="%s">&nbsp;≅&nbsp;</a>|<a href="%s">&nbsp;%s&nbsp;</a>|<a href="%sepub/%s.%s.epub">&nbsp;◆&nbsp;</a>|%s%s<a href="%smetadata.%s.html">&nbsp;m&nbsp;</a>|<a href="%s../../authors.html">&nbsp;A&nbsp;</a>|<a href="%s../../topics.html">&nbsp;T&nbsp;</a>]</p>┃",
(doc_matters.opt.action.webserver_url_doc_root.length > 0)
? doc_matters.opt.action.webserver_url_doc_root
: doc_matters.conf_make_meta.conf.w_srv_data_root_url
@@ -416,7 +416,7 @@ import
(type == "seg") ? "../../" : "../",
doc_matters.src.filename_base,
doc_matters.src.lng,
- (doc_matters.opt.action.html_pdf_link)
+ (doc_matters.opt.action.html_link_pdf || doc_matters.opt.action.html_link_pdf_a4)
? ("<a href=\""
~ ((type == "seg") ? "../../../" : "../../")
~ "pdf/"
@@ -425,6 +425,15 @@ import
~ doc_matters.src.lng
~ ".a4.portrait.pdf\">&nbsp;□&nbsp;</a>|")
: "",
+ (doc_matters.opt.action.html_link_pdf || doc_matters.opt.action.html_link_pdf_letter)
+ ? ("<a href=\""
+ ~ ((type == "seg") ? "../../../" : "../../")
+ ~ "pdf/"
+ ~ doc_matters.src.filename_base
+ ~ "."
+ ~ doc_matters.src.lng
+ ~ ".letter.portrait.pdf\">&nbsp;□&nbsp;</a>|")
+ : "",
(type == "seg") ? "../" : "",
doc_matters.src.filename_base,
(type == "seg") ? "../" : "",
diff --git a/org/spine.org b/org/spine.org
index 52c0e6c..b83581e 100644
--- a/org/spine.org
+++ b/org/spine.org
@@ -355,7 +355,10 @@ bool[string] opts = [
"curate-topics" : false,
"html" : false,
"html-link-curate" : false,
+ "html-link-markup" : false,
"html-link-pdf" : false,
+ "html-link-pdf-a4" : false,
+ "html-link-pdf-letter" : false,
"html-link-search" : false,
"html-seg" : false,
"html-scroll" : false,
@@ -471,7 +474,10 @@ auto helpInfo = getopt(args,
"hide-ocn", "object cite numbers", &opts["hide-ocn"],
"html", "process html output", &opts["html"],
"html-link-curate", "place links back to curate in segmented html", &opts["html-link-curate"],
- "html-link-pdf", "provide a link to pdf a4 output", &opts["html-link-pdf"],
+ "html-link-markup", "provide html link to markup source, shared optionally", &opts["html-link-markup"],
+ "html-link-pdf", "provide html link to pdf a4 & letter output", &opts["html-link-pdf"],
+ "html-link-pdf-a4", "provide html link to pdf a4 output", &opts["html-link-pdf-a4"],
+ "html-link-pdf-letter", "provide html link to pdf letter size output", &opts["html-link-pdf-letter"],
"html-link-search", "html embedded search submission", &opts["html-link-search"],
"html-seg", "process html output", &opts["html-seg"],
"html-scroll", "process html output", &opts["html-scroll"],
@@ -638,6 +644,15 @@ struct OptActions {
@trusted bool debug_do_xmls() {
return (opts["debug"] || opts["debug-html"] || opts["debug-epub"]) ? true : false;
}
+ @trusted bool curate() {
+ return (opts["curate"] || opts["curate-authors"] || opts["curate-topics"]) ? true : false;
+ }
+ @trusted bool curate_authors() {
+ return (opts["curate"] || opts["curate-authors"]) ? true : false;
+ }
+ @trusted bool curate_topics() {
+ return (opts["curate"] || opts["curate-topics"]) ? true : false;
+ }
@trusted bool digest() {
return opts["digest"];
}
@@ -647,23 +662,23 @@ struct OptActions {
@trusted bool generated_by() {
return opts["generated-by"];
}
- @trusted bool html_curate_link() {
+ @trusted bool html_link_curate() {
return (opts["html-link-curate"]) ? true : false;
}
- @trusted bool html_pdf_link() {
+ @trusted bool html_link_markup_source() {
+ return (opts["html-link-markup"]) ? true : false;
+ }
+ @trusted bool html_link_pdf() {
return (opts["html-link-pdf"]) ? true : false;
}
- @trusted bool html_search_link() {
- return (opts["html-link-search"]) ? true : false;
+ @trusted bool html_link_pdf_a4() {
+ return (opts["html-link-pdf-a4"]) ? true : false;
}
- @trusted bool curate() {
- return (opts["curate"] || opts["curate-authors"] || opts["curate-topics"]) ? true : false;
+ @trusted bool html_link_pdf_letter() {
+ return (opts["html-link-pdf-letter"]) ? true : false;
}
- @trusted bool curate_authors() {
- return (opts["curate"] || opts["curate-authors"]) ? true : false;
- }
- @trusted bool curate_topics() {
- return (opts["curate"] || opts["curate-topics"]) ? true : false;
+ @trusted bool html_link_search() {
+ return (opts["html-link-search"]) ? true : false;
}
@trusted bool html() {
return (opts["html"] || opts["html-seg"] || opts["html-scroll"]) ? true : false;
@@ -686,12 +701,12 @@ struct OptActions {
@trusted bool latex_document_header_sty() {
return (opts["latex-init"] || opts["latex-header-sty"] || opts["pdf-init"]) ? true : false;
}
- @trusted bool odt() {
- return (opts["odf"] || opts["odt"]) ? true : false;
- }
@trusted bool manifest() {
return opts["manifest"];
}
+ @trusted bool odt() {
+ return (opts["odf"] || opts["odt"]) ? true : false;
+ }
@trusted bool ocn_hidden() {
return opts["hide-ocn"];
}