Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-24-2007, 12:18 PM   #451
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In the next release there will be a prs500-unsafe profile.
kovidgoyal is offline   Reply With Quote
Old 09-24-2007, 07:55 PM   #452
balok
Ugly alien
balok doesn't litterbalok doesn't litterbalok doesn't litter
 
balok's Avatar
 
Posts: 144
Karma: 225
Join Date: Sep 2007
Location: Québec, QC
Device: tricorder
Quote:
Originally Posted by kovidgoyal View Post
In the next release there will be a prs500-unsafe profile.
Thanks. I assume the safety feature also accounts for the few pixels left on the side margins, and the small space on the top margin also? Will the prs500-unsafe profile cover these too?
balok is offline   Reply With Quote
Old 09-24-2007, 08:10 PM   #453
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
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.
kovidgoyal is offline   Reply With Quote
Old 09-29-2007, 07:18 AM   #454
balok
Ugly alien
balok doesn't litterbalok doesn't litterbalok doesn't litter
 
balok's Avatar
 
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.
balok is offline   Reply With Quote
Old 09-30-2007, 05:18 AM   #455
Fallen angel
Time Vortex Manipulator
Fallen angel began at the beginning.
 
Fallen angel's Avatar
 
Posts: 30
Karma: 10
Join Date: Aug 2007
Location: Greece
Device: Sony Reader
The new version (0.4.5) gives me the same error.
Fallen angel is offline   Reply With Quote
Old 09-30-2007, 12:33 PM   #456
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
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.
kovidgoyal is offline   Reply With Quote
Old 09-30-2007, 12:47 PM   #457
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by balok View Post
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.
Hmm 'fraid I dont know what else to do that seems to be the best that can be done.
kovidgoyal is offline   Reply With Quote
Old 10-02-2007, 06:30 AM   #458
Fallen angel
Time Vortex Manipulator
Fallen angel began at the beginning.
 
Fallen angel's Avatar
 
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.
Fallen angel is offline   Reply With Quote
Old 10-02-2007, 11:43 AM   #459
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Since I did make some changes can you repost the error message.
kovidgoyal is offline   Reply With Quote
Old 10-03-2007, 07:40 AM   #460
Fallen angel
Time Vortex Manipulator
Fallen angel began at the beginning.
 
Fallen angel's Avatar
 
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)
Fallen angel is offline   Reply With Quote
Old 10-03-2007, 09:44 AM   #461
aaronvegh
Junior Member
aaronvegh began at the beginning.
 
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
The process seems to hang after spitting out a few error messages, and then throws these errors after I do an interrupt (Ctrl-C). Any suggestions on how to proceed?

Thanks,
Aaron.
Attached Files
File Type: zip CocoaFundamentals.zip (1.72 MB, 232 views)
aaronvegh is offline   Reply With Quote
Old 10-03-2007, 11:37 AM   #462
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Fallen angel View Post
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)
Hmm ok I'm trying another fix in the next version.
kovidgoyal is offline   Reply With Quote
Old 10-03-2007, 11:42 AM   #463
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by aaronvegh View Post
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!

The process seems to hang after spitting out a few error messages, and then throws these errors after I do an interrupt (Ctrl-C). Any suggestions on how to proceed?

Thanks,
Aaron.
The file it seems to be hanging on index-date0.html was not in the attached zip.
kovidgoyal is offline   Reply With Quote
Old 10-03-2007, 03:15 PM   #464
aaronvegh
Junior Member
aaronvegh began at the beginning.
 
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.
aaronvegh is offline   Reply With Quote
Old 10-03-2007, 03:32 PM   #465
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
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.
kovidgoyal is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 01:37 PM.


MobileRead.com is a privately owned, operated and funded community.