Thread: Kobo Bug thread
View Single Post
Old 11-09-2020, 07:33 AM   #1311
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,018
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by Rev. Bob View Post
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.
compurandom is offline   Reply With Quote