From b7da3f01212570daf9cc9678d7e46158514eb88b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 30 Sep 2026 16:55:58 -0400 Subject: title is h1 class "heading title", sized above h1 html & epub (share css): with gone the title became

. The title now carries class "heading title", and each stylesheet's h0 rules are h1.title rules with the same values; h0 leaves the grouped selectors, being emitted by nothing. In html the title looks as it did. (assisted by Claude-Code) --- src/sisudoc/outputs/io_out/xmls.d | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/sisudoc/outputs/io_out/xmls.d') diff --git a/src/sisudoc/outputs/io_out/xmls.d b/src/sisudoc/outputs/io_out/xmls.d index aba0e4f..b6001ea 100644 --- a/src/sisudoc/outputs/io_out/xmls.d +++ b/src/sisudoc/outputs/io_out/xmls.d @@ -236,6 +236,18 @@ template outputXHTMLs() { if (_lev < 1) { return 1; } return (_lev > 6) ? 6 : _lev; } + /+ ↓ the class a heading carries. The title (level A) shares

with level B, + having no element of its own since bespoke is not recognized and no + longer used, so it is told apart by class: "heading title", which the + stylesheets size a step above h1, as h0 was. Shifting every level down one + instead would give the title alone h1, and would further compress the + limited html heading range (h1 - h6). + +/ + string _heading_class(O)(O obj) { + return (obj.metainfo.heading_lev_markup == 0) + ? obj.metainfo.is_a ~ " title" + : obj.metainfo.is_a; + } /+ ↓ the anchors an object carries. "name" on an is obsolete; "id" is what a link target is. The two are not interchangeable here, because these tags are not all @@ -983,7 +995,7 @@ string tail(M)(M doc_matters) { ? "" : ((obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier), _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), obj.metainfo.identifier, tags, heading_lev_anchor_tag, @@ -999,7 +1011,7 @@ string tail(M)(M doc_matters) { ┃", _horizontal_rule, _heading_element_level(obj, _xml_type), - obj.metainfo.is_a, + _heading_class(obj), tags, heading_lev_anchor_tag, _txt, -- cgit v1.2.3