diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-12 22:42:06 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-14 12:18:49 -0400 |
| commit | c959735f21b3ddac6932bc9e8862d77a4421f133 (patch) | |
| tree | 342fea358d2ae0fd68ce0f250daef42e0e3632a6 /src/sisudoc/outputs/io_out/xmls.d | |
| parent | epub: mimetype entry comes first in the archive (diff) | |
epub, html, db: use of elements & attributes, fix
fixed, four things used that XHTML does not have.
(search db sisudoc-spine-search-cgi results share styling)
(assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/outputs/io_out/xmls.d')
| -rw-r--r-- | src/sisudoc/outputs/io_out/xmls.d | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/sisudoc/outputs/io_out/xmls.d b/src/sisudoc/outputs/io_out/xmls.d index 4cc4599..3f7f4c9 100644 --- a/src/sisudoc/outputs/io_out/xmls.d +++ b/src/sisudoc/outputs/io_out/xmls.d @@ -201,7 +201,7 @@ template outputXHTMLs() { .replaceAll(rgx.inline_subscript, ("<sub>$1</sub>")) .replaceAll(rgx.inline_strike, ("<del>$1</del>")) .replaceAll(rgx.inline_insert, ("<ins>$1</ins>")) - .replaceAll(rgx.inline_mono, ("<tt>$1</tt>")) + .replaceAll(rgx.inline_mono, ("<code>$1</code>")) .replaceAll(rgx.inline_cite, ("<cite>$1</cite>")); return _txt; } @@ -545,7 +545,7 @@ string tail(M)(M doc_matters) { .replaceAll(rgx.inline_image, ("$1<img src=\"" ~ _img_pth - ~ "$3\" width=\"$4\" height=\"$5\" naturalsizeflag=\"0\" align=\"bottom\" border=\"0\" /> $6")) + ~ "$3\" width=\"$4\" height=\"$5\" /> $6")) .replaceAll( rgx.inline_link_empty, ("$1")); @@ -652,14 +652,14 @@ string tail(M)(M doc_matters) { _txt = font_face(_txt); _txt = _txt.replaceAll( rgx.inline_notes_al_regular_number_note, - ("<a href=\"#note_$1\"><note id=\"noteref_$1\"> <sup>$1</sup> </note></a>") + ("<a href=\"#note_$1\"><span class=\"noteref\" id=\"noteref_$1\"> <sup>$1</sup> </span></a>") ); } if (obj.has.inline_notes_star) { _txt = font_face(_txt); _txt = _txt.replaceAll( rgx.inline_notes_al_special_char_note, - ("<a href=\"#note_$1\"><note id=\"noteref_$1\"> <sup>$1</sup> </note></a>") + ("<a href=\"#note_$1\"><span class=\"noteref\" id=\"noteref_$1\"> <sup>$1</sup> </span></a>") ); } debug(markup_endnotes) { @@ -690,18 +690,18 @@ string tail(M)(M doc_matters) { "<a href=\"#noteref_", m.captures[1], "\">", - "<note id=\"note_", + "<span class=\"note\" id=\"note_", m.captures[1], "\"> <sup>", m.captures[1], - ".</sup></note></a>", + ".</sup></span></a>", m.captures[2], "</p>" ); } _txt = _txt.replaceAll( rgx.inline_notes_al_special_char_note, - ("<a href=\"#note_$1\"><note id=\"noteref_$1\"> <sup>$1</sup> </note></a>") + ("<a href=\"#note_$1\"><span class=\"noteref\" id=\"noteref_$1\"> <sup>$1</sup> </span></a>") ); } if (obj.has.inline_notes_reg) { @@ -714,18 +714,18 @@ string tail(M)(M doc_matters) { "<a href=\"#noteref_", m.captures[1], "\">", - "<note id=\"note_", + "<span class=\"note\" id=\"note_", m.captures[1], "\"> <sup>", m.captures[1], - ".</sup></note></a>", + ".</sup></span></a>", m.captures[2], "</p>" ); } _txt = _txt.replaceAll( rgx.inline_notes_al_regular_number_note, - ("<a href=\"#note_$1\"><note id=\"noteref_$1\"> <sup>$1</sup> </note></a>") + ("<a href=\"#note_$1\"><span class=\"noteref\" id=\"noteref_$1\"> <sup>$1</sup> </span></a>") ); } else if (_txt.match(rgx.inline_notes_al_regular_number_note)) { debug(markup) { @@ -787,7 +787,7 @@ string tail(M)(M doc_matters) { text = font_face(text); auto link = m.captures[3].to!string; lev4_subtoc ~= subtoc.replaceFirst(rgx.inline_link_subtoc, - format(q"┃ <p class="minitoc" indent="h%si%s"> + format(q"┃ <p class="minitoc" data-indent="h%si%s"> ۰ <a href="%s">%s</a> </p> ┃", @@ -1004,7 +1004,7 @@ string tail(M)(M doc_matters) { if (!(obj.metainfo.identifier.empty)) { o = format(q"┃ <div class="substance"> <label class="ocn"><a href="#%s" class="lnkocn">%s</a></label> - <p class="%s" indent="h%si%s" id="%s">%s + <p class="%s" data-indent="h%si%s" id="%s">%s %s </p> </div>┃", @@ -1023,7 +1023,7 @@ string tail(M)(M doc_matters) { ); } else { o = format(q"┃ <div class="substance"> - <p class="%s" indent="h%si%s">%s + <p class="%s" data-indent="h%si%s">%s %s </p> </div>┃", |
