From dadc2caf1369f8268ada37b0a9779d2bb1c6cee4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 26 May 2022 11:01:21 -0400 Subject: html links to output, flags for a bit finer control --- src/doc_reform/io_out/metadata.d | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'src/doc_reform/io_out/metadata.d') diff --git a/src/doc_reform/io_out/metadata.d b/src/doc_reform/io_out/metadata.d index e3c04c1..395cda9 100644 --- a/src/doc_reform/io_out/metadata.d +++ b/src/doc_reform/io_out/metadata.d @@ -56,7 +56,7 @@ template outputMetadata() { ) { string o; string _form; - if (doc_matters.opt.action.html_search_link) { + if (doc_matters.opt.action.html_link_search) { o = format(q"┃
@@ -352,7 +352,7 @@ string theme_light_1 = format(q"┃ ┃"); metadata_ ~= "
"; - if (doc_matters.opt.action.html_curate_link) { + if (doc_matters.opt.action.html_link_curate) { metadata_ ~= format(q"┃

[  HOME ] Curated metadata: [ Authors ] [ Topics ]

@@ -368,7 +368,7 @@ string theme_light_1 = format(q"┃ 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_ ~= "

Author: " ~ doc_matters.conf_make_meta.meta.creator_author ~ "

"; } else { @@ -395,24 +395,31 @@ string theme_light_1 = format(q"┃ writeln("WARNING no summary of text provided in document header ", doc_matters.src.filename_base); } metadata_ ~= "

source: " ~ doc_matters.src.filename_base ~ "

"; - metadata_ ~= "

● markup source: [" - ~ " zipped pod ] " - ~ "[" - ~ " pod tree ]

"; + if (doc_matters.opt.action.html_link_markup_source) { + metadata_ ~= "

● markup source: [" + ~ " zipped pod ] " + ~ "[" + ~ " pod tree ]"; + } metadata_ ~= "

● outputs: [" ~ " ▣ html scroll ] " ~ "[" ~ " ▤ html seg ]" ~ "[" ~ " ◆ epub ]"; - 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_ ~= "[" - ~ " □ a4 pdf ]

"; - } else { - metadata_ ~= "

"; + ~ " □ pdf (a4) ]"; + } + if ((doc_matters.opt.action.html_link_pdf) || (doc_matters.opt.action.html_link_pdf_letter)) { + metadata_ ~= "[" + ~ " □ pdf (U.S. letter) ]"; } + metadata_ ~= "

"; if (doc_matters.conf_make_meta.meta.classify_topic_register_arr.length > 0) { metadata_ ~= "

Topics:

"; string[] _top = ["", "", "", "", ""]; @@ -421,7 +428,7 @@ string theme_light_1 = format(q"┃ 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_ ~= "

" @@ -436,7 +443,7 @@ string theme_light_1 = format(q"┃ 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_ ~= "

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_ ~= "