diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-13 20:53:26 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-14 12:18:51 -0400 |
| commit | 6835275408e1629f450d163e0cc5221c977e87d2 (patch) | |
| tree | ac35771a889a4766d8efc89af5f78e91fa99e3d3 /src/sisudoc/outputs/io_out/xmls_css.d | |
| parent | regex: confine url within an endnote (delimiter) (diff) | |
epub and html: no errors left over the sample set
epubcheck 5.3.0 over the 35 sample epubs went from 1302 remaining errors
to none. The six causes for those remaining errors fixed here.
most of the count was one of them:
- Tables (1123 errors, 86%) where the writer emitted obsolete
attributes, removed in 2014; table also now in div instead of a
paragraph. also fixed:
- Navigation (115). Every level 4 heading's nav entry ended "#0", the
ocn of an object that has no ocn and so no id.
- Duplicate ids (37). (from three unrelated sources).
- The publication identifier (27 warnings). dc:identifier was a
hardcoded hex string, not a UUID, and the same one in all 35 files,
so two documents in one library collided. It is now UUID v5 over the
document's own uid: a real RFC 4122 identifier, stable across builds
and distinct per document.
- Image manifest entries (15). media-type was "image/" plus the file
extension, giving "image/jpg", which is not a media type; epubcheck
reads it as a foreign resource and wants a fallback. There is now a
mapping, which also covers svg and webp. Item ids came from the file
basename, and "2bits_02_01-100.png" gave an id starting with a digit,
which is not an XML name; ids are now prefixed and sanitised.
- An ocn resolving to no segment (9). A poem block and its first verse
share one ocn; the verses are written into a segment and the block
itself is not.
Also dropped from the package document: an xmlns:xsi that nothing
used, and a prefix declaration for the rendition vocabulary, which is
a reserved prefix and needed no declaring. The package now carries
xml:lang.
test-epub-validity.sh now allows no fatal and no error. Two NAV-011
warnings remain and are described in it. Three reference .ssp files
change, all of them the anchor tag disambiguation above.
(assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc/outputs/io_out/xmls_css.d')
| -rw-r--r-- | src/sisudoc/outputs/io_out/xmls_css.d | 108 |
1 files changed, 108 insertions, 0 deletions
diff --git a/src/sisudoc/outputs/io_out/xmls_css.d b/src/sisudoc/outputs/io_out/xmls_css.d index ed9f994..6cab68e 100644 --- a/src/sisudoc/outputs/io_out/xmls_css.d +++ b/src/sisudoc/outputs/io_out/xmls_css.d @@ -880,6 +880,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; @@ -1668,6 +1686,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; @@ -2467,6 +2503,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; @@ -3181,6 +3235,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; @@ -3906,6 +3978,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; @@ -4460,6 +4550,24 @@ table { margin-right : 2em; background-color : inherit; } +div.table { + margin : 1em 0; + overflow-x : auto; +} +table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; +} +table.table th, table.table td { + padding : 2px; + vertical-align : top; +} +p.tablenote { + margin : 0.5em 0 0 0; +} tr { } th,td { vertical-align : top; |
