gutenbergtools / ebookmaker

The Project Gutenberg tool to generate EPUBs and other ebook formats.
GNU General Public License v3.0
84 stars 18 forks source link

svg role="img" causes EPUB2 validation error #146

Open asylumcs opened 1 year ago

asylumcs commented 1 year ago

Both attached files have HTML+SVG images of the same 3 formulas. Epubmaker generates and EPB2 and EPUB3 for both. Both EPUB3s validate. Only the first one validates as EPUB2. The second zip has role="img" as an SVG attribute. I would like set role="img" on the outer [<svg>] element and give it a label. This should cause screen readers to just consider it as a single entity and describe it using the label, rather than trying to read out all the child nodes. test02-ebm1.zip test02-ebm2.zip