Thread: EPUB output
View Single Post
Old 12-31-2008, 02:13 PM   #295
moggie
Enthusiast
moggie is on a distinguished road
 
moggie's Avatar
 
Posts: 34
Karma: 74
Join Date: Nov 2008
Location: Cambridge,UK
Device: sony 505
Trying to track down an error in a reciepe

I have an html snippet.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body>
<div class="navbar" style="text-align:center;">
testing</div>
</body>
</html>

html2epub feed_0/article_0/index.html 
Building file list...
	Parsing feed_0/article_0/index.html
CSSStyleDeclaration: Unexpected token, ignoring upto u';'. [1:37: ;]
		Rationalizing fonts...
	Splitting index.html (0 KB)
	Splitting on page breaks...
	Looking for large trees...
	No large trees found
	Checking files for bad links...
Output written to /Users/jb23/tmp/quill/code/index.epub
I have a much larger file which is failing miserably and I am wondering if the first error is the issue.
Code:
[INFO] 	Parsing feed_0/article_0/index.html
[ERROR] CSSStyleDeclaration: Unexpected token, ignoring upto u';'. [4:56: ;]
[ERROR] CSSStyleDeclaration: Unexpected token, ignoring upto u';'. [5:37: ;]
[INFO] 		Rationalizing fonts...
[WARNING] Failed to rationalize font sizes.
[ERROR] 
Traceback (most recent call last):
  File "calibre/ebooks/epub/fonts.pyo", line 217, in rationalize
  File "calibre/ebooks/epub/fonts.pyo", line 190, in compute_font_sizes
TypeError: unsupported operand type(s) for *=: 'NoneType' and 'float'
[DEBUG] 		Done rationalizing
[DEBUG] Saving stylesheets...
[INFO] 	Splitting calibre_title_page.html (0 KB)
[INFO] 	Splitting on page breaks...
[INFO] 	Looking for large trees...
moggie is offline   Reply With Quote