View Single Post
Old 03-17-2009, 04:53 PM   #10
Croker
Connoisseur
Croker will become famous soon enoughCroker will become famous soon enoughCroker will become famous soon enoughCroker will become famous soon enoughCroker will become famous soon enoughCroker will become famous soon enough
 
Posts: 73
Karma: 630
Join Date: Sep 2008
Location: Liverpool, UK
Device: Kindle Paperwhite, obv.
Quote:
Originally Posted by wallcraft View Post
One option would be to use Calibre. If you want to import the .html0 file you first need to rename it .html, but then the Calbre GUI should be enough to get the file converted to ePub. I don't know if the html0 file is a better starting point than a .html exported from Book Designer or not.
Thanks, I didn't know that - I'll give it a whirl. I'd still like to know how to use the script, though, for comparison purposes.

Do you have any advice on my question regarding fonts, though?

EDIT: Hmmm. I turned the .html0 file into an html file, added it to Calibre, and then converted it to ePub, but I got the following:

Job: **Convert book: The Beach**
**tuple**: ('SplitError', u'Could not find reasonable point at which to split: The Beach.html Sub-tree size: 800 KB')
**Traceback**:
Traceback (most recent call last):
File "parallel.py", line 942, in worker
File "parallel.py", line 900, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 393, in convert
File "calibre\ebooks\epub\split.pyo", line 480, in split
File "calibre\ebooks\epub\split.pyo", line 73, in __init__
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 141, in split_to_size
SplitError: Could not find reasonable point at which to split: The Beach.html Sub-tree size: 800 KB

**Log**:
Found OPF file in archive
Creating EPUB file...
[DEBUG] Processing HTMLFile:0:a:c:\users\dom\appdata\local\temp\calib re_0.4.129_adi8af_any2epub1\content\The Beach.html...
[INFO] Parsing calibre_0.4.129_adi8af_any2epub1\content\The Beach.html
[INFO] Rationalizing fonts...
[DEBUG] Done rationalizing
[DEBUG] Saving stylesheets...
[INFO] Splitting The Beach.html (803 KB)
[INFO] Splitting on page breaks...
[INFO] Looking for large trees...
[DEBUG] Splitting...
[DEBUG] Committed sub-tree #1 (1 KB)
[DEBUG] Splitting...
[DEBUG] Committed sub-tree #2 (0 KB)
[DEBUG] Splitting...
[DEBUG] Committed sub-tree #3 (0 KB)
[DEBUG] Splitting...
[DEBUG] Splitting...
[DEBUG] Splitting...
[DEBUG] Committed sub-tree #4 (2 KB)
[DEBUG] Splitting...
[DEBUG] Splitting...
('SplitError', u'Could not find reasonable point at which to split: The Beach.html Sub-tree size: 800 KB')
Traceback (most recent call last):
File "parallel.py", line 942, in worker
File "parallel.py", line 900, in work
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _any.py", line 148, in any2epub
File "C:\Program Files\calibre\library.zip\calibre\ebooks\epub\from _html.py", line 393, in convert
File "calibre\ebooks\epub\split.pyo", line 480, in split
File "calibre\ebooks\epub\split.pyo", line 73, in __init__
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 154, in split_to_size
File "calibre\ebooks\epub\split.pyo", line 141, in split_to_size
SplitError: Could not find reasonable point at which to split: The Beach.html Sub-tree size: 800 KB"

So that didn't work. I'll have to try opening the BD file, saving it as an html, and then trying to convert that instead.

DOUBLE EDIT: Saving the BD file as html and then trying to convert the resulting file produces the same error as above, too. Any ideas?

Last edited by Croker; 03-17-2009 at 05:10 PM. Reason: Added error data and further info.
Croker is offline   Reply With Quote