![]() |
#451 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In the next release there will be a prs500-unsafe profile.
|
![]() |
![]() |
![]() |
#452 |
Ugly alien
![]() ![]() ![]() Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
|
|
![]() |
![]() |
![]() |
#453 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No the profile doesn't set the top and side margins. There are non-zero defaults for them, setting them to zero is the best that can be done.
|
![]() |
![]() |
![]() |
#454 |
Ugly alien
![]() ![]() ![]() Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
|
prs500-unsafe
Hi Kovid,
I haven't noticed any difference when using the prs500-unsafe profile. I've made two lrf files, one with the prs500 profile and the other with the unsafe profile, both are exactly the same. |
![]() |
![]() |
![]() |
#455 |
Time Vortex Manipulator
![]() Posts: 30
Karma: 10
Join Date: Aug 2007
Location: Greece
Device: Sony Reader
|
The new version (0.4.5) gives me the same error.
|
![]() |
![]() |
![]() |
#456 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oops looks like I forgot to fix that error. Sorry, you'll have to wait for the next version.
Last edited by kovidgoyal; 09-30-2007 at 12:37 PM. |
![]() |
![]() |
![]() |
#457 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm 'fraid I dont know what else to do that seems to be the best that can be done.
|
![]() |
![]() |
![]() |
#458 |
Time Vortex Manipulator
![]() Posts: 30
Karma: 10
Join Date: Aug 2007
Location: Greece
Device: Sony Reader
|
I don't know what's wrong with my pc, but v.0.4.7 doesn't work either.
![]() |
![]() |
![]() |
![]() |
#459 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since I did make some changes can you repost the error message.
|
![]() |
![]() |
![]() |
#460 |
Time Vortex Manipulator
![]() Posts: 30
Karma: 10
Join Date: Aug 2007
Location: Greece
Device: Sony Reader
|
Traceback (most recent call last):
File "main.py", line 723, in <module> File "main.py", line 716, in main File "main.py", line 137, in __init__ File "libprs500\gui2\library.pyo", line 383, in set_database File "libprs500\gui2\library.pyo", line 118, in set_database File "libprs500\library\database.pyo", line 624, in __init__ File "libprs500\library\database.pyo", line 39, in _connect UnicodeEncodeError: 'ascii' codec can't encode characters in position 26-32: ordinal not in range(128) |
![]() |
![]() |
![]() |
#461 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2007
Device: None
|
html2lrf choking on this fileset
Hi there,
I'm attaching a copy of Apple's Cocoa Fundamentals development guide, a book in HTML format (a PDF is available as well, but I'd prefer to get this one working on my PRS500). I've run other files through html2lrf without problems, but this set is causing all kinds of problems! Code:
html2lrf /Developer/ADC\ Reference\ Library/documentation/Cocoa/Conceptual/CocoaFundamentalIntroduction/chapter_1_section_1.html Processing chapter_1_section_1.html Parsing HTML... Converting to BBeB... Processing index.html Parsing HTML... Converting to BBeB... An error occurred while processing a table: list index out of range. Ignoring table markup. Processing index-date.html Parsing HTML... Converting to BBeB... An error occurred while processing a table: list index out of range. Ignoring table markup. An error occurred while processing a table: Table has cell that is too large. Ignoring table markup. An error occurred while processing a table: Table has cell that is too large. Ignoring table markup. Processing index-date0.html Parsing HTML... Converting to BBeB... An error occurred while processing a table: list index out of range. Ignoring table markup. ^CTraceback (most recent call last): File "/Applications/libprs500.app/Contents/Resources/html2lrf.py", line 9, in <module> main() File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1590, in main File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1507, in process_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 179, in __init__ File "libprs500/ebooks/lrf/html/convert_from.pyo", line 231, in start_on_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 469, in process_links File "libprs500/ebooks/lrf/html/convert_from.pyo", line 231, in start_on_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 469, in process_links File "libprs500/ebooks/lrf/html/convert_from.pyo", line 231, in start_on_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 469, in process_links File "libprs500/ebooks/lrf/html/convert_from.pyo", line 229, in start_on_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 332, in parse_file File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1390, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1390, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1386, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1371, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1376, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 538, in process_children File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1380, in parse_tag File "libprs500/ebooks/lrf/html/convert_from.pyo", line 1401, in process_table File "libprs500/ebooks/lrf/html/table.pyo", line 371, in blocks File "libprs500/ebooks/lrf/html/table.pyo", line 326, in get_widths File "libprs500/ebooks/lrf/html/table.pyo", line 267, in preferred_width File "libprs500/ebooks/lrf/html/table.pyo", line 212, in preferred_width File "libprs500/ebooks/lrf/html/table.pyo", line 209, in text_block_preferred_width File "libprs500/ebooks/lrf/html/table.pyo", line 163, in text_block_size KeyboardInterrupt Thanks, Aaron. |
![]() |
![]() |
![]() |
#462 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#463 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
![]() |
#464 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Sep 2007
Device: None
|
The file it seems to be hanging on index-date0.html was not in the attached zip. Yeah, I noticed that! I don't know where that file is coming from. I started with the original index.html, and I guess your tool goes through parsing for <a> tags? There's no index-date00.html referenced in the file. That's why I included the complete file set, hoping you could replicate the problem.
|
![]() |
![]() |
![]() |
#465 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
unzip that zip file into some non-standard location (like your home directory) and then run html2lrf on toc.html. That worked for me.
|
![]() |
![]() |
![]() |
Tags |
html2lrf, libprs500 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change font of header for LRF Output on PRS 505 | duckbill | Calibre | 3 | 05-15-2010 11:07 AM |
Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 01:14 PM |
Fonts for LRF output | krischik | Calibre | 1 | 10-03-2009 05:01 AM |
CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 06:44 AM |
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 12:16 PM |