View Single Post
Old 10-13-2012, 04:15 PM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by Dyspeptica View Post
I'm converting some large html files to epubs. Ebook-convert apparently cannot handle these files as one chunk and I see:

...
Splitting markup on page breaks and flow limits, if any
Looking for large trees in <file>
No large trees found
Split into <x> parts
...

The number of parts can be as many as 10.
This is by design, as the memory and processor speed is limited. The ePub (most use the Adobe Digital Editions) engine requires the epub to be in chunks smaller than 300k. To be safe calibre uses 260k as the guide. If the chucmk ends up above 300k many readers will lock-up.

Quote:
Originally Posted by Dyspeptica View Post
PROBLEM: In the epub output file, there are now hard page breaks (roughly corresponding to every 1/xth of the file) and the text commences at the top of a new page.
How can I avoid the insertion of the hard break?
Use Sigil and manually insert breaks at the end of chapters. As long as the chapters are less than 300k you will be fine.

Quote:
Originally Posted by Dyspeptica View Post
AND: Worse yet, the font size changes across this boundary!!
There is nothing in calibre that will cause this to happen. The original html needs to be examined closer to see exactly how the font info is applied.

Quote:
Originally Posted by Dyspeptica View Post
I presume that each part is starting with some default configuration. Where would that be set and how can I revised those defaults?
The sections do not have their own default. The css controls all aspects of the epub the same way css controls the html. Make sure your original css is correct.

You might get better guidance from the folks in the Sigil forum.

Good Luck.
DoctorOhh is offline   Reply With Quote