|10-12-2012, 04:20 PM||#1|
Join Date: May 2012
Large files: parts have different formatting, hard page break
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.
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?
AND: Worse yet, the font size changes across this boundary!!
I am using a font size directive at the top of the file, in an attempt to meld the four parts of each file into a coherent single text. And not succeeding.
I presume that each part is starting with some default configuration. Where would that be set and how can I revised those defaults?
|10-12-2012, 10:48 PM||#2|
Join Date: Dec 2006
Device: Coolreader(Galaxy S4)\Coolreader(Nook Touch)
An html file inside an epub is broken if its larger than 260kb as many old eink readers are unable to open epubs otherwise. You can change the limit in epub output options but I would recommend using Sigil for converting Html to epub for the best results.
|10-13-2012, 04:15 PM||#3|
US Navy, Retired
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7, Sony PRS-950, PRS-300
You might get better guidance from the folks in the Sigil forum.
|10-14-2012, 06:46 PM||#4|
Join Date: May 2012
" Doctor Oh: 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."
Thanks. This confirms something I read somewhere. I have no problem with this generally, although I would like to avoid it, if I could.
"Use Sigil and manually insert breaks at the end of chapters. As long as the chapters are less than 300k you will be fine."
Doppelganger recommended sigil as well, but I cannot get it to build on Fedora 17. It has a problem finding the boost libraries when linking. I'll post on sigil's forums about that.
If I get that fixed I will be happy to try sigil... but I have no idea if it can be run from the command line. I have a large number of files to convert, which I am presently doing by script, not in the calibre gui.
There ARE no chapters. These are large single files.
Doppelganger stated "You can change the limit in epub output options". I am presently unable to see exactly where that can be done (noting that I am using convert from the command line. The man pages give me no joy on this point. Can someone give me a clue?
If I can change the limit, I will. Does anyone know if stanza and fbreader have the 300k limit problem?
"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."
Well it IS happening and there are no font directive changes at the break points. That's why the change is so weird/annoying.
"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."
I'm not actually *using* css. I just pushed some (I know, now deprecated) html font size directives at the top. I can create a 'standard.css' file and call that instead of putting in html, but I fail to see how/why that would be different *unless* the convert code remembers that there is a css directive file, and *re-loads* the css.
Can anyone confirm/deny this?
"You might get better guidance from the folks in the Sigil forum."
Hope so! As noted, I already have a problem getting sigil to compile.
I think I need it! None of this is fatal but it is annoying.
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|any feedback on hard shell cases for large e-readers?||paola||General Discussions||1||08-22-2012 05:29 PM|
|Trying hard to give a hand to an experience writer to break into the world of ebooks||Artha||Writers' Corner||2||11-11-2011 09:04 AM|
|Can I fix ePub page break formatting?||arcane_scholar||Calibre||3||02-02-2011 05:01 PM|
|I don’t want a page break between different xhtml files||Sergi||ePub||3||09-16-2010 03:09 PM|
|How to deal with irregular hard-wrapping on a large scale?||Robotech_Master||Workshop||7||04-27-2009 09:06 PM|