I was looking at a five-year-old proposal from Alex to allow HTML in descriptions (w3c/epub-specs#1650), and I note that this was resolved in EPUB 3.3 in favour of allowing external HTML files to act as descriptions: https://www.w3.org/TR/epub-33/#example-link-to-a-description
I guess we don’t want to do anything here (at least at this point) as the compatibility changes would potentially be quite painful, but here’s a proposed process if we decide we should.
- Drop the existing
dc:description from content.opf.
- Create a new /src/epub/description.html file for the long description to live in. (xhtml?)
- Change the
meta property="se:long-description" element to be <link rel="dcterms:description" href="description.html" media-type="text/html"/>. (application/xhtml+xml?)
- Add a new
inline_description function to se_epub_build.py` that strips the markup from description.html’s main section and inlines the resulting text.
- Update the website to expect to extract the longdesc from description.html.
- Update the step-by-step guide, SEMoS, etc etc.
Updating the corpus should be fairly easily scriptable.
I was looking at a five-year-old proposal from Alex to allow HTML in descriptions (w3c/epub-specs#1650), and I note that this was resolved in EPUB 3.3 in favour of allowing external HTML files to act as descriptions: https://www.w3.org/TR/epub-33/#example-link-to-a-description
I guess we don’t want to do anything here (at least at this point) as the compatibility changes would potentially be quite painful, but here’s a proposed process if we decide we should.
dc:descriptionfrom content.opf.meta property="se:long-description"element to be<link rel="dcterms:description" href="description.html" media-type="text/html"/>. (application/xhtml+xml?)inline_descriptionfunction to se_epub_build.py` that strips the markup from description.html’s main section and inlines the resulting text.Updating the corpus should be fairly easily scriptable.