aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/out_xmls.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2023-06-27 16:53:20 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2023-06-28 16:20:33 -0400
commitb861bbb5810c95fe7079c853453ea698ca01f336 (patch)
tree7ddd70412a8c35cc994a50b5eecc883823f7a4ff /org/out_xmls.org
parent"empty page" index.html, sort homepage link (diff)
icon chars, usability / cosmetic minor fix
Diffstat (limited to 'org/out_xmls.org')
-rw-r--r--org/out_xmls.org73
1 files changed, 6 insertions, 67 deletions
diff --git a/org/out_xmls.org b/org/out_xmls.org
index 7cec142..06fd5d8 100644
--- a/org/out_xmls.org
+++ b/org/out_xmls.org
@@ -23,67 +23,6 @@
2023
#+END_SRC
-* html snippet
-** _module template_ :module:
-
-#+HEADER: :tangle "../src/doc_reform/io_out/html_snippet.d"
-#+HEADER: :noweb yes
-#+BEGIN_SRC d
-<<doc_header_including_copyright_and_license>>
-module doc_reform.io_out.html_snippet;
-template htmlSnippet() {
- import
- std.file,
- std.outbuffer,
- std.format,
- std.uri,
- std.conv : to;
- import
- doc_reform.io_out.rgx,
- doc_reform.meta.rgx_files,
- doc_reform.io_out.rgx_xhtml;
- auto format_html_blank_page_guide_home()(
- string css_style,
- string home_url,
- string collection_home_path
- ) {
- auto html_blank_default = format(q"┃<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/plain; charset=UTF-8" />
- <link href="%s" rel="stylesheet" />
- </head>
- <body>
- <p class="heading">
- <a href="%s">⟰&nbsp;</a>&nbsp;
- <a href="%s">&nbsp;≅&nbsp;</a>
- </p>
- </body>
-</html>┃",
- css_style,
- home_url,
- collection_home_path
- );
- return html_blank_default;
- }
- @safe string special_characters_text(string _txt) {
- mixin spineRgxOut;
- mixin spineRgxXHTML;
- static auto rgx = RgxO();
- static auto rgx_xhtml = RgxXHTML();
- _txt = _txt
- .replaceAll(rgx_xhtml.ampersand, "&amp;") // "&#38;"
- .replaceAll(rgx_xhtml.quotation, "&quot;") // "&#34;"
- .replaceAll(rgx_xhtml.less_than, "&lt;") // "&#60;"
- .replaceAll(rgx_xhtml.greater_than, "&gt;") // "&#62;"
- .replaceAll(rgx.br_line, "<br />")
- .replaceAll(rgx.br_line_inline, "<br />")
- .replaceAll(rgx.br_line_spaced, "<br />\n<br />")
- .replaceAll(rgx.nbsp_char, " ");
- return _txt;
- }
-}
-#+END_SRC
* xml offspring (xhtml html epub)
** format xhtml objects :format:
@@ -406,13 +345,13 @@ import
_locations = (doc_matters.conf_make_meta.make.home_button_text)
.replaceAll(
rgx.inline_link,
- ("<p class=\"tiny_left\"><a href=\"$2\">$1</a></p>"))
+ ("<p class=\"tiny_left\"><a href=\"$2\" class=\"lnkicon\">$1</a></p>"))
.replaceAll(
rgx.br_line, "")
.replaceAll(
rgx.br_line_inline, "");
} else {
- _locations = "<p class=\"tiny_left\"><a href=\"https://www.doc-reform.org\">spine</a></p>\n<p class=\"tiny_left\"><a href=\"https://git.sisudoc.org/software/spine/\">sources / git</a></p>\n<p class=\"tiny_left\"><a href=\"https://www.sisudoc.org\">www.sisudoc.org</a></p>";
+ _locations = "<p class=\"icons\"><a href=\"https://www.doc-reform.org\" class=\"lnkicon\">spine</a></p>\n<p class=\"icons\"><a href=\"https://git.sisudoc.org/software/spine/\" class=\"lnkicon\">sources / git</a></p>\n<p class=\"icons\"><a href=\"https://www.sisudoc.org\" class=\"lnkicon\">www.sisudoc.org</a></p>";
}
string o;
o = format(q"┃<div class="flex-menu-option">
@@ -501,7 +440,7 @@ import
) {
string o;
string metadata_links = ((doc_matters.opt.action.html_link_curate)
- ? format(q"┃<p class="small"><a href="%s">⟰&nbsp;</a>&nbsp;[<a href="%s">&nbsp;%s&nbsp;</a><a href="%sepub/%s.%s.epub">&nbsp;◆&nbsp;</a>%s%s<a href="%smetadata.%s.html">&nbsp;ℹ&nbsp;</a>]&nbsp;&nbsp;<a href="%s../../index.html">&nbsp;≅&nbsp;</a>|<a href="%s../../authors.html">&nbsp;&#x1F58B;&nbsp;</a>|<a href="%s../../topics.html">&nbsp;⌘&nbsp;</a>|</p>┃",
+ ? format(q"┃<p class="icons"><a href="%s" class="lnkicon">⟰&nbsp;</a>&nbsp;[<a href="%s" class="lnkicon">&nbsp;%s&nbsp;</a><a href="%sepub/%s.%s.epub" class="lnkicon">&nbsp;◆&nbsp;</a>%s%s<a href="%smetadata.%s.html" class="lnkicon">&nbsp;ℹ&nbsp;</a>]&nbsp;&nbsp;<a href="%s../../index.html" class="lnkicon">&nbsp;≅&nbsp;</a>|<a href="%s../../authors.html" class="lnkicon">&nbsp;&#x1F58B;&nbsp;</a>|<a href="%s../../topics.html" class="lnkicon">&nbsp;⌘&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
@@ -520,7 +459,7 @@ import
~ doc_matters.src.filename_base
~ "."
~ doc_matters.src.lng
- ~ ".a4.portrait.pdf\">&nbsp;□&nbsp;</a>")
+ ~ ".a4.portrait.pdf\" class=\"lnkicon\">&nbsp;□&nbsp;</a>")
: "",
(doc_matters.opt.action.html_link_pdf || doc_matters.opt.action.html_link_pdf_letter)
? ("<a href=\""
@@ -529,7 +468,7 @@ import
~ doc_matters.src.filename_base
~ "."
~ doc_matters.src.lng
- ~ ".letter.portrait.pdf\">&nbsp;□&nbsp;</a>")
+ ~ ".letter.portrait.pdf\" class=\"lnkicon\">&nbsp;□&nbsp;</a>")
: "",
(type == "seg") ? "../" : "",
doc_matters.src.filename_base,
@@ -686,7 +625,7 @@ import
<hr />
<div class="generator">
<p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
- <a href="https://sisudoc.org">≅ SiSU Spine ፨</a> (object numbering &amp; object search)
+ <a href="https://sisudoc.org" class="lnkicon">≅ SiSU Spine ፨</a> (object numbering &amp; object search)
</p>
<p class="small_center" id="sisu_spine"><a name="sisu_spine"></a>
(web 1993, object numbering 1997, object search 2002 ...) <<year>>