How to get difference text of two ebooks converted to plain text? They are both the same book but different editions, so much of text is exactly the same to within hyphenation and punctuation changes.
I have read previous edition so I would like now only skim over changes of new edition, and not reread the whole new edition. And this could be helpful not only for one book but for many!
Things I found, but they do not solve the task:
- 'diff' utility and diff-type GUI utilities are supposed for use with software source codes, since their unit of comparison is a single line of text, which is not the case for text in natural language, which flows naturally not limited by lines,
- 'wdiff' and 'dwdiff' utilities are supposed for use with ordinary text, not source codes, since they perform comparison by 'words' considered as a result of text splitting by some specific delimiters. But in practice due to some unknown reason they both fail to find any similarities in identical parts of books, like same sentences, even entire same chapters
- anti-plagiarism software simply doesn't allow such functionality, they are big complex specialized software, working interactive, without ability to batch produce the "diff of natural text" output
Any local operating system or remote online service will do.