Open domenic opened 2 weeks ago
If we can get a date instead of a version number, then at least in EPUB 3, it looks like <meta property="dcterms:modified">...</meta>
is the way to go here.
We should also probably include publication date.
As of https://github.com/domenic/worm-scraper/commit/fba981ff10659263f7baa9d7a145feffecca3ed8 there is a dcterms:modified
giving the date that the edition was built.
This isn't fully satisfactory, because we would ideally want to output the same version/modified date for multiple people building at separate times, as long as the contents are the same.
Possible improvements:
dcterms:modified
that will show up in (some) ebook readers.
Rejected ideas:
max(latest date any source text is updated, latest publication date of worm-scraper)
.
Use neither dates nor version numbers, but instead content hashes.
Try to combine both worm-scraper version info and content version info into a single version string, or pseudo-date.
It'd be nice, if one sees a worm-scraper-produced EPUB in the wild, to know what version it is, and therefore how many of the text fixups it has.
The ideal version of this would only count changes that cause different EPUB outputs, but I don't think that's feasible without error-prone manual updates. So we'll probably just inject the worm-scraper version.