Thread: LRF output
View Single Post
Old 10-27-2007, 03:41 PM   #527
moneytoo
Enthusiast
moneytoo began at the beginning.
 
Posts: 39
Karma: 20
Join Date: Oct 2007
Location: Czech Republic
Device: Sony PRS-505
Hi kovidgoyal,
thanks for all the useful tools. Im just trying to convert some web pages to see how it can handle the charset I use.

I used this command
Code:
html2lrf -o "c:\Program Files\libprs500\test\test.lrf" --link-levels=0 --serif-family="C:\Windows\Fonts, Times New Roman" "c:\Program Files\libprs500\test\default8391.html"
But all I get is a LRF file which cant be read neither the Sony eBook Library or the LRF viewer.

The LRF viewer prints this:
Code:
LRFParseError: Bad tag ID 00 at 1701355
Failed to render document
Detailed traceback:
Traceback (most recent call last):
  File "main.py", line 47, in run
  File "libprs500\ebooks\lrf\parser.pyo", line 38, in parse
  File "libprs500\ebooks\lrf\parser.pyo", line 62, in _parse_objects
  File "libprs500\ebooks\lrf\parser.pyo", line 70, in _parse_object
  File "libprs500\ebooks\lrf\objects.pyo", line 1102, in get_object
  File "libprs500\ebooks\lrf\objects.pyo", line 79, in __init__
  File "libprs500\ebooks\lrf\tags.pyo", line 202, in __init__
LRFParseError: Bad tag ID 00 at 1701355
If I delete all the CSS files, html2lrf creates right file. But I think it shouldnt create LRF which cant be read. Havent tried put it on the Reader because I dont have any warranty outside the US (I know it has reset button but Im too scared :-) ).

EDIT: I have just tryid downloading the site using web2disk and then converting but I got same results. (The site is http://www.mobilmania.cz/default.aspx?textver=1)
Attached Files
File Type: zip website.zip (8.6 KB, 243 views)

Last edited by moneytoo; 10-27-2007 at 03:50 PM.
moneytoo is offline   Reply With Quote