Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2019, 09:07 PM   #1
stoneguy
Junior Member
stoneguy began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2019
Location: Ontario
Device: Kobo Aura2
Could not find reasonable point at which to split - revisited

It's been 10 years since the definitive thread on this topic was published https://www.mobileread.com/forums/sh...ad.php?t=53311 Recently. trying to convert a mobi to an epub produced the same error, but with a different root cause than large pre.../pre blocks.

Turns out this book had been generated using blockquote tags to chunk the input. Just why blockquote tags were be used, especially without the cite modifier, is a mystery. Perhaps some book generator does that.

My fix was to run calibre in debug mode, and edit the index.html in the input subdirectory as described in the article referenced above. However, instead of looking for long pre blocks to chop up, use an editor to replace all instances of /blockquote with /div, and blockquote with div,in that order. Now use Sigil as discussed in the thread to build an epub from the modified index.html. When you have this epub, you can use Calibre to fill in the metadata by cutting and pasting fields from the opf.html file. (There's probably a way to tell Sigil to use the original opf data, but I didn't bother digging that far.)

Now you have the book as an epub.
stoneguy is offline   Reply With Quote
Old 12-23-2019, 03:42 PM   #2
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
For that first part of fixing/removing the blockquote tags there's a plugin for Sigil called TagMechanic that works well for this kind of thing. It can modify tags as well as delete them and in the latter case handles the begin and end tags regardless of how far apart they are.
hobnail is offline   Reply With Quote
Advert
Reply

Tags
convert, epub, mobi

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't split at chosen point dkplayaclub Editor 14 05-11-2015 01:18 PM
Regex or other method to find split quotations "" CyanBC Sigil 9 05-14-2013 02:52 PM
Find, replace, split chapter? laelaps Sigil 8 01-20-2011 04:01 PM
Error: Could not find reasonable point at which to split MTR Calibre 7 10-09-2009 11:03 AM
Could not find reasonable point at which to split scgf Calibre 20 09-14-2009 01:19 PM


All times are GMT -4. The time now is 05:09 AM.


MobileRead.com is a privately owned, operated and funded community.