12-31-2011, 09:47 AM | #1 |
Fiend
Posts: 148
Karma: 559930
Join Date: Apr 2011
Device: none
|
Previously converted html no longer converts.
I updated Calibre last night and now am unable to convert my book from html.
I have a custom html template that I use, in fact the book in question was created from the template 2 months ago. All I changed was a single spelling error and now when I try to convert I get the following error: Code:
calibre.ebooks.oeb.transforms.split.SplitError: Could not find reasonable point at which to split: EPUB-TaH.html Sub-tree size: 293 KB I've tried adding <br /> before the chapters but Calibre doesn't appear to see them. Here is how my chapters are set up currently: Code:
<p class="chapter centered"><span class="centered">CHAPTER 1</p></span> Code:
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\s+', 'i')) or @class = 'chapter'] Code:
//h:p[re:test(@class, "chapter", "i")] **Update** Apparently increasing the split size isn't good enough. Doing so allows the conversion to be completed, but the result is a cover and 296 blank pages. I'm at a total loss here. I've been using Calibre for almost a year now with this template so I'm stuck at this point. Last edited by chrisanthropic; 12-31-2011 at 09:59 AM. Reason: update with more info. |
12-31-2011, 10:13 AM | #2 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Make sure you dont have a self closed <title/> tag in your HTML.
|
Advert | |
|
12-31-2011, 10:27 AM | #3 | |
Fiend
Posts: 148
Karma: 559930
Join Date: Apr 2011
Device: none
|
Quote:
I'm using Arch Linux so there is always the possibility that something isn't playing well with one of the dependencies...It's well past bedtime here and I need to work in a few hours. I'll try installing Calibre on a windows box tomorrow and see if I get the same results. **Update** I just checked and got the same results on a freshly installed Win7 machine. Last edited by chrisanthropic; 12-31-2011 at 10:35 AM. |
|
12-31-2011, 11:45 AM | #4 |
Grand Sorcerer
Posts: 12,624
Karma: 74358024
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Try installing an older version of Calbre and see if the conversion works then. That might help track down if the issue is the document or a change in calibre.
|
12-31-2011, 12:21 PM | #5 |
creator of calibre
Posts: 44,380
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Post a sample document that converts to something blank, that's the easiest way to tell what is going wrong, otherwise we're all just guessing.
|
Advert | |
|
12-31-2011, 09:15 PM | #6 |
Fiend
Posts: 148
Karma: 559930
Join Date: Apr 2011
Device: none
|
Thanks guys, after a bit of sleep and some coffee I found that my template was compromised and was missing bracket early in the document.
Thanks for helping out though, and as always, thanks for creating and maintaining Calibre - it's an amazing piece of software! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No Images When HTML Converts to Mobi -Why? | Akua | Conversion | 4 | 11-22-2011 01:52 AM |
Will Calibre maintain the links when it converts HTML? | ficbot | Calibre | 3 | 11-18-2010 10:27 PM |
HTML converts to ZIP? | Deejub44 | Calibre | 2 | 01-24-2009 08:57 PM |
Libprs500- error with adding previously converted books | bluesnews | Calibre | 4 | 04-08-2008 11:06 PM |
Docvert 2.0 converts MS Word files to clean HTML | Alexander Turcic | Lounge | 0 | 03-16-2006 04:50 AM |