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 --- org/out_metadata.org | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'org/out_metadata.org') 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"┃ ┃"); 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 ]

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

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

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

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 = ["", "", "", "", ""]; @@ -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_ ~= "

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

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

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

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

-- cgit v1.2.3