diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2019-04-20 14:44:42 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2019-05-17 16:59:54 -0400 |
commit | d60c328d3bd3d1a8be39dd835b2ee96640490120 (patch) | |
tree | 9f0c930715dcf9ba2fd5800447b96f49fad1b82c /org/output_xmls.org | |
parent | text format delimiter, use: "┃" instead of "┋" (diff) |
(segmented html) dummy heading related
Diffstat (limited to 'org/output_xmls.org')
-rw-r--r-- | org/output_xmls.org | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/org/output_xmls.org b/org/output_xmls.org index faa273f..747ca9d 100644 --- a/org/output_xmls.org +++ b/org/output_xmls.org @@ -639,9 +639,14 @@ auto inline_markup_scroll(O,M)( M doc_matters, string _suffix = ".html", ) { - _txt = inline_images(_txt, obj, doc_matters, _suffix, "scroll"); - _txt = inline_links(_txt, obj, doc_matters, _suffix, "scroll"); - _txt = inline_notes_scroll(_txt, obj, doc_matters); + if (obj.metainfo.dummy_heading + && (obj.metainfo.is_a == "toc" || obj.metainfo.is_a == "heading")) { + _txt = ""; + } else { + _txt = inline_images(_txt, obj, doc_matters, _suffix, "scroll"); + _txt = inline_links(_txt, obj, doc_matters, _suffix, "scroll"); + _txt = inline_notes_scroll(_txt, obj, doc_matters); + } return _txt; } #+END_SRC @@ -657,8 +662,16 @@ auto inline_markup_seg(O,M)( string _suffix = ".html", string _xml_type = "seg", ) { - _txt = inline_images(_txt, obj, doc_matters, _suffix, _xml_type); // TODO - _txt = inline_links(_txt, obj, doc_matters, _suffix, _xml_type); // TODO + if (obj.metainfo.dummy_heading + && ((_xml_type == "epub" + && (obj.metainfo.is_a == "toc" || obj.metainfo.is_a == "heading")) + || obj.metainfo.is_a == "heading") + ) { + _txt = ""; + } else { + _txt = inline_images(_txt, obj, doc_matters, _suffix, _xml_type); // TODO + _txt = inline_links(_txt, obj, doc_matters, _suffix, _xml_type); // TODO + } auto t = inline_notes_seg(_txt, obj, doc_matters); return t; } @@ -808,7 +821,12 @@ auto heading(O)( heading_lev_anchor_tag = (obj.tags.heading_lev_anchor_tag.empty) ? "" : "<a name=\"" ~ obj.tags.heading_lev_anchor_tag ~ "\"></a>"; - if (!(obj.metainfo.identifier.empty)) { + if (_txt.empty) { + o = format(q"┃%s + ┃", + _horizontal_rule, + ); + } else if (!(obj.metainfo.identifier.empty)) { o = format(q"┃%s <div class="substance"> <label class="ocn"><a href="#%s" class="lnkocn">%s</a></label> @@ -1460,7 +1478,7 @@ void scroll(D,M)( string delimit = ""; #+END_SRC -**** the loops & outer switch (sections & objects) format output +**** ↻ the loops & outer switch (sections & objects) format output #+name: output_html_scroll #+BEGIN_SRC d |