News for hackers. Stuff that matters.
Re:Show HN: @smoores/epub, a JavaScript library for working ... by cyberax on Friday December 13, 2024 @08:08PM (#42413776)
I was going to suggest to use the same approach as the old CD tagging systems. Count the number of words in each chapter to create a "book fingerprint".

It's highly likely to be globally unique, and it can also help with the missing forewords/afterwords/bonus content sections.

In addition, you can also add fuzzy matching for the title.

Re:Show HN: @smoores/epub, a JavaScript library for working ... by smoores on Friday December 13, 2024 @09:24PM (#42414143)
I think that the thing we need to account for (which, number of words per chapter would capture this, I think) is different publications of the same book, which would need different overlays if they have different chapter filepaths, etc.