View Single Post
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.
 
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
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