Quote:
Originally Posted by Rev. Bob
A slightly cleaner and slower fix, provided the book is arranged in chapters, is to open the ebook in the calibre editor and manually split it at a chapter heading.
|
Frequently, the automatic conversion does it right and manual intervention isn't needed like this (although I have done it a few times).
Fixing it manually isn't too bad if the book is small and only has a handful of chapters, but for larger books, I look for other ways.
When the automatic conversion doesn't work (probably because the document isn't using proper headings for chapters or something), sometimes it's possible to spot a pattern of HTML that is used at the top of each chapter. If it's simple and unique, you can construct an xpath expression and tell calibre to split chapters there. If it's messier than that, use a global search and replace to insert something that can be easily matched with xpath and manually add/remove exceptions.
If the TOC isn't also badly formed, sometimes you can use the TOC as a guide on where to split it.