domenic / worm-scraper

Scrapes the web serial Worm, its sequel Ward, and the bridge series Glow-worm into an ebook format
Other
210 stars 48 forks source link

Add some kind of edition tracker inside the generated EPUBs #46

Open domenic opened 2 weeks ago

domenic commented 2 weeks ago

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.

domenic commented 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.

domenic commented 2 weeks ago

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:

Rejected ideas: