Keen reader
Posts: 4
Karma: -54
Join Date: Jun 2007
Device: kobo touch
|
Quote:
Originally Posted by kovidgoyal
I'm happy to announce html2lrf, an open source, cross-platform HTML to LRF converter that I believe is the most
<snip>
If you have an HTML file it chokes on, I want to know about it!
|
Dear kovidgoyal
Many thanks for your kind reply to my request for html2rlf.
I got the problem below after downloading and saving the html from http://www.gutenberg.org/etext/19694 into your libprs500 directory.
I was expecting to see SmithHistory.lrf, is that right?
The directory SmithHistory_files contains all the pictures mentioned in SmithHistory.htm.
I’m running on Windows XP. The document is successfully rendered by Firefox.
Here is the DOS box showing the problem:
C:\Program Files\libprs500>html2lrf SmithHistory.htm
Processing SmithHistory.htm
Parsing HTML... done
Converting to BBeB...Unhandled/malformed CSS key: clear both
Unhandled/malformed CSS key: left 1%
Unhandled/malformed CSS key: vertical-align super
done
Traceback (most recent call last):
File "convert_from.py", line 1407, in <module>
File "convert_from.py", line 1342, in main
File "convert_from.py", line 1202, in process_file
File "convert_from.py", line 556, in process_links
File "encodings\utf_8.pyo", line 16, in decode
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in position 8:
ordinal not in range(128)
C:\Program Files\libprs500>dir
Volume in drive C is ACER
Volume Serial Number is 40A9-98AA
Directory of C:\Program Files\libprs500
29/06/2007 11:42 <DIR> .
29/06/2007 11:42 <DIR> ..
18/04/2007 16:51 77,824 bz2.pyd
04/07/2004 18:34 46,080 clit.exe
29/06/2007 10:57 <DIR> driver
29/06/2007 09:39 61,952 html2lrf.exe
29/06/2007 09:39 122,880 libprs500.exe
29/06/2007 10:57 58 libprs500.url
29/06/2007 09:39 1,919,171 library.zip
29/06/2007 09:39 15,124 LICENSE
29/06/2007 09:39 19,456 lit2lrf.exe
29/06/2007 09:39 38,912 lrf-meta.exe
29/06/2007 09:39 57,344 markdown.exe
13/01/2005 20:19 15,960 mingwm10.dll
12/07/2006 02:35 348,160 MSVCR71.dll
28/06/2007 21:56 28,160 multiarray.pyd
29/06/2007 09:39 28,672 prs500.exe
18/04/2007 16:51 135,168 pyexpat.pyd
18/04/2007 16:51 2,113,536 python25.dll
08/06/2007 06:27 6,656 Qt.pyd
08/06/2007 06:26 1,357,312 QtCore.pyd
03/06/2007 00:03 2,077,696 QtCore4.dll
08/06/2007 06:26 5,682,688 QtGui.pyd
25/05/2007 16:03 9,041,920 QtGui4.dll
08/06/2007 06:27 104,960 QtSvg.pyd
29/06/2007 09:39 411,648 QtSvg4.dll
29/06/2007 09:39 499,200 QtXml4.dll
29/06/2007 09:39 20,992 rtf-meta.exe
18/04/2007 16:51 7,680 select.pyd
03/06/2007 05:44 59,904 sip.pyd
29/06/2007 11:12 1,296,659 SmithHistory.htm
29/06/2007 11:42 <DIR> SmithHistory_files
03/04/2006 16:41 260,096 sqlite3.dll
28/03/2006 01:23 576,000 tcl84.dll
28/03/2006 01:44 1,038,848 tk84.dll
29/06/2007 09:39 19,968 txt2lrf.exe
28/06/2007 21:56 55,296 umath.pyd
18/04/2007 16:51 475,136 unicodedata.pyd
29/06/2007 10:57 127,953 Uninstall.exe
18/04/2007 16:51 4,608 w9xpopen.exe
18/04/2007 16:51 81,920 _ctypes.pyd
18/04/2007 16:52 323,584 _hashlib.pyd
03/12/2006 14:23 319,488 _imaging.pyd
03/12/2006 14:23 290,816 _imagingft.pyd
03/12/2006 14:23 10,752 _imagingmath.pyd
03/12/2006 14:23 5,120 _imagingtk.pyd
28/06/2007 21:56 72,192 _numpy.pyd
18/04/2007 16:52 53,248 _socket.pyd
18/04/2007 16:51 49,152 _sqlite3.pyd
18/04/2007 16:52 655,360 _ssl.pyd
46 File(s) 30,015,309 bytes
4 Dir(s) 18,338,516,992 bytes free
|