View Single Post
Old 03-11-2010, 06:58 AM   #2
eksor
Connoisseur
eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.eksor ought to be getting tired of karma fortunes by now.
 
eksor's Avatar
 
Posts: 94
Karma: 999884
Join Date: Jun 2009
Device: prs700, i-mate JAMin, smartq v7, GeeksPhone Zero, iPad 3rd Gen
Quote:
Originally Posted by eksor View Post
Hi:

Firstly, thanks to Mr. Kovid Goyal for such a fine piece of software, without it I could trashcan my prs-700.

This site http://homepages.inf.ed.ac.uk/rbf/CV...BMVA96Tut.html and similar ones obtained with latex2html crashes ebook-convert and even web2disk is not working well:

X:\convertir>web2disk http://homepages.inf.ed.ac.uk/rbf/CV...OCAL_COPIES/BM
VA96Tut/BMVA96Tut.html
.<<<<single dot

Directory listing:

11/03/2010 12:16 <DIR> links
11/03/2010 12:16 <DIR> images
11/03/2010 12:16 5.399 BMVA96Tut.xhtml
11/03/2010 12:16 <DIR> stylesheets

All the sub directories are empty, increasing levels of recursion has no effect.

ebook-convert output:

X:\convertir>ebook-convert BMVA96Tut.xhtml BMVA96Tut.lrf
1% Convirtiendo entrada a HTML...
InputFormatPlugin: HTML Input running
on X:\convertir\BMVA96Tut.xhtml
Language not specified
Creator not specified
Building file list...
34% Aplicando transformaciones al libro electrónico...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
max() arg is an empty sequence (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 103, in main
File "site.py", line 85, in run_entry_point
File "site-packages\calibre\ebooks\conversion\cli.py", line 250, in main
File "site-packages\calibre\ebooks\conversion\plumber.py", line 816, in run
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 123, in __
call__
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 167, in ba
seline_spine
ValueError: max() arg is an empty sequence

I have tried to download the site with wget (with --convert-links in order to make the links point to the local files) instead of web2disk. Ebook-convert crashes again. Editing BMVA96Tut.html (removing #manynumbers from links) was partially a success, the conversion process ended but images were not found.

Any suggestions would be greatly appreciated.

Regards.
Solved, I apologize for complaining to quickly, hope this works for everybody:

Just filter through tidy -m -c all the linked html files and everything went smooth.

Thanks!
eksor is offline   Reply With Quote