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-31-2011, 09:47 AM   #1
chrisanthropic
Fiend
chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.
 
chrisanthropic's Avatar
 
Posts: 148
Karma: 559930
Join Date: Apr 2011
Location: In my head
Device: PRS-650
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
Does anyone have a clue what's changed? I know I can increase the split size for now, but again, all that changed was a single character in the html file which converted fine 2 months ago.

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>
And I use this structure detection:
Code:
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\s+', 'i')) or @class = 'chapter']
with this level 1 TOC xpath:
Code:
//h:p[re:test(@class, "chapter", "i")]
Thanks for any input you might have.

**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.
chrisanthropic is offline   Reply With Quote
Old 12-31-2011, 10:13 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,377
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure you dont have a self closed <title/> tag in your HTML.
kovidgoyal is online now   Reply With Quote
 
Enthusiast
Old 12-31-2011, 10:27 AM   #3
chrisanthropic
Fiend
chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.
 
chrisanthropic's Avatar
 
Posts: 148
Karma: 559930
Join Date: Apr 2011
Location: In my head
Device: PRS-650
Quote:
Originally Posted by kovidgoyal View Post
Make sure you dont have a self closed <title/> tag in your HTML.
Just checked and verified. The blank pages only appear with the built in ebook reader. Opening it on my PRS650 just gives me an error.

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.
chrisanthropic is offline   Reply With Quote
Old 12-31-2011, 11:45 AM   #4
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,509
Karma: 42519226
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
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.
PeterT is offline   Reply With Quote
Old 12-31-2011, 12:21 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,377
Karma: 4961459
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.
kovidgoyal is online now   Reply With Quote
Old 12-31-2011, 09:15 PM   #6
chrisanthropic
Fiend
chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.chrisanthropic ought to be getting tired of karma fortunes by now.
 
chrisanthropic's Avatar
 
Posts: 148
Karma: 559930
Join Date: Apr 2011
Location: In my head
Device: PRS-650
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!
chrisanthropic is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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