Skip to content

Potentially update longdesc to be its own file #984

Description

@robinwhittleton

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.

  1. Drop the existing dc:description from content.opf.
  2. Create a new /src/epub/description.html file for the long description to live in. (xhtml?)
  3. Change the meta property="se:long-description" element to be <link rel="dcterms:description" href="description.html" media-type="text/html"/>. (application/xhtml+xml?)
  4. 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.
  5. Update the website to expect to extract the longdesc from description.html.
  6. Update the step-by-step guide, SEMoS, etc etc.

Updating the corpus should be fairly easily scriptable.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions