09-19-2008, 11:35 AM | #16 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre will split on page breaks first and then on <div> and <p> tags if that is not enough. That should take care of most cases.
@JeffElkins: I just tested metadata on the reader. Works for me. What does epub-meta on the epub file give you? |
09-19-2008, 12:11 PM | #17 |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
I honestly can't think of a good way to split automatically > 300k flows though. Sure, using those <div> and <p> tags is necessary, but you might still break the flow in the middle of a dialog.
|
Advert | |
|
09-19-2008, 01:04 PM | #18 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yeah but having a couple of misplaced page breaks is much preferable to having a file that doesn't work at all. Oh and I should correct myself. The split order is actually going to be:
page-break h1-h6 div p |
09-19-2008, 01:12 PM | #19 |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
On the Sony Reader. It'll work on DE desktop, FBReader and Stanza. I hate the fact that we have to potentially add page breaks that have nothing to do in the text for a single device...
|
09-19-2008, 01:19 PM | #20 | ||
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
Quote:
Quote:
|
||
Advert | |
|
09-19-2008, 01:20 PM | #21 |
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
|
09-19-2008, 01:29 PM | #22 |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
I wouldn't say broken. I'd rather say that ePub on the Sony Reader has a different set of rules than ePub based on the official specs, that makes things much more complicated and require to arbitrarily add page breaks where there should be none.
|
09-19-2008, 01:32 PM | #23 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
FBReader and stanza dont have support for CSS. The situation is that if you want to view epub files on current generation devices with full support for XHTML1.1+CSS2 your only hope is adobe DE. And since all devices are memory limited, there is going to be some form of constraint on all of them. Which means that you can only view unsplit EPUB files on a desktop. To me that's completely irrelevant, since I have no desire to read ebooks on a desktop.
|
09-19-2008, 02:51 PM | #24 | |
Feedbooks.com Co-Founder
Posts: 2,263
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
|
Quote:
There's also a whole difference between unsplit ePub and an ePub file where one flow is 310k. |
|
09-19-2008, 02:59 PM | #25 |
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
My desire was to maintain one library, usable in both my Nokia tablets and Sony Readers (Two 505s, an N800 and 770). Looks like that's a non-starter for a while
|
09-19-2008, 04:47 PM | #26 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
True, I agree the Adobe DE could have been designed a lot better, but the fact remains that the only way users are going to be able to use epub in all its glory on their devices is by some sort of splitting.
@JeffElkins: Once I implement splitting support you will be able to move wholly to using epub on all your devices. EDIT: And I should add that I doubt splitting is going to change the meaning of the content in EPUB files significantly, in a vast majority of cases. |
09-19-2008, 04:52 PM | #27 | |
Guru
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
|
Quote:
|
|
09-19-2008, 05:01 PM | #28 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
Also, if anyone does not like where Calibre splits an ePub they can always add their own page-break to the original and have Calibre re-split it. |
|
09-20-2008, 03:16 PM | #29 |
creator of calibre
Posts: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
version 0.4.85 is now available with comic2epub
|
09-21-2008, 02:01 PM | #30 |
Enthusiast
Posts: 45
Karma: 16
Join Date: Mar 2004
Device: Palm Tungsten|TX, Sony Reader^H^H^H^H, iLiad, iPhone
|
html2epub looking for the wrong source file?
I'm using the command-line tools that are installed with the MacOS X version of Calibre (v 0.4.85), and html2epub seems to be using a cached html document (codyw1003010030-8.html) instead of the XML file specified at runtime (collinsw155155.xml):
Code:
dsl81:/tmp matthew$ /usr/bin/html2epub -o /tmp/collinsw155155.epub --chapter-mark=both --cover=/tmp/collinsw155155.jpg -t "The Moonstone" -a "Wilkie Collins" /tmp/collinsw155155.xml Building file list... Parsing /tmp/codyw1003010030-8.html Parsing /tmp/codyw1003010030-8_toc.html Output written to /tmp/collinsw155155.epub dsl81:/tmp matthew$ /usr/bin/html2epub -o /tmp/collinsw155155.epub --chapter-mark=both --cover=/tmp/collinsw155155.jpg -t "The Moonstone" -a "Wilkie Collins" -vvv /tmp/collinsw155155.xml Building file list... Found files... HTMLFile:0:a:/tmp/codyw1003010030-8.html HTMLFile:0:a:/tmp/codyw1003010030-8_toc.html [INFO] __init__.pyo:297: Parsing /tmp/codyw1003010030-8.html [DEBUG] __init__.pyo:297: Written processed HTML to /tmp/codyw1003010030-8.html-parsed.html [DEBUG] __init__.pyo:297: Written processed HTML to /tmp/codyw1003010030-8.html-nocss.html [INFO] __init__.pyo:297: Parsing /tmp/codyw1003010030-8_toc.html [DEBUG] __init__.pyo:297: Written processed HTML to /tmp/codyw1003010030-8_toc.html-parsed.html [DEBUG] __init__.pyo:297: Written processed HTML to /tmp/codyw1003010030-8_toc.html-nocss.html Output written to /tmp/collinsw155155.epub dsl81:/tmp matthew$ rm -f codyw1003010030-8.html dsl81:/tmp matthew$ /usr/bin/html2epub -o /tmp/collinsw155155.epub --chapter-mark=both --cover=/tmp/collinsw155155.jpg -t "The Moonstone" -a "Wilkie Collins" -vvv /tmp/collinsw155155.xml Building file list... Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/loaders/html2epub.py", line 9, in <module> main() File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/epub/from_html.py", line 165, in main File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/epub/from_html.py", line 91, in convert File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/html.py", line 616, in get_filelist File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/html.py", line 227, in opf_traverse File "/Applications/calibre.app/Contents/Resources/lib/python2.5/site-packages.zip/calibre/ebooks/html.py", line 112, in __init__ IOError: Could not read from file: /tmp/codyw1003010030-8.html with error: [Errno 2] No such file or directory: u'/tmp/codyw1003010030-8.html' Lest it sound like I'm ungrateful, I'd like to say that this looks like just the epub creation tool I've been waiting for! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Epub Output: Line Height | greenapple | Conversion | 20 | 01-27-2013 09:27 AM |
EPUB output justification | toki08 | Calibre | 10 | 01-08-2011 04:14 PM |
Calibre epub output details and Nook | squidward | Calibre | 6 | 11-24-2010 03:21 PM |
epub output metadata | troymc | Calibre | 5 | 05-22-2010 12:23 AM |
Problem with epub output in Cybook Gen3 | fjf | Calibre | 3 | 02-03-2010 02:23 AM |