04-27-2007, 07:47 AM | #16 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2006
Location: Outwood, UK
Device: Sony Reader PRS-500
|
html2lrf??
I have the same problem as Gameboy.
I can see the application within the folder, but I'm not sure how to run an html doc through it. Sorry for the ignorance... |
04-27-2007, 09:13 AM | #17 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
I can't process Baen books. If I convert a single file, it goes fine, but with two of more I get this exception:
Code:
Processing 0671578499___0.htm Parsing HTML... done Converting to BBeB... done Processing 0671578499___1.htm Parsing HTML... done Converting to BBeB... done Traceback (most recent call last): File "convert_from.py", line 848, in <module> File "convert_from.py", line 783, in main File "convert_from.py", line 757, in process_file File "convert_from.py", line 707, in writeto File "libprs500\lrf\pylrs\pylrs.pyc", line 489, in renderLrf File "libprs500\lrf\pylrs\pylrs.pyc", line 249, in toLrf File "libprs500\lrf\pylrs\pylrs.pyc", line 245, in toLrfDelegates File "libprs500\lrf\pylrs\pylrs.pyc", line 1911, in toLrf File "libprs500\lrf\pylrs\pylrs.pyc", line 1932, in toLrf AttributeError: 'NoneType' object has no attribute 'objId' |
Advert | |
|
04-27-2007, 11:13 AM | #18 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Apr 2007
|
.OPF
Quote:
Also, will you be adding support for managing collections on the Reader? Thanks... |
|
04-27-2007, 12:27 PM | #19 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
To run the program open a DOS command prompt and type html2lrf and press enter.
@igorsk Hmm looks like a problem with the logic in processing <a name=> elements. I'm travelling right now but I'll fix it on Monday. |
04-27-2007, 09:09 PM | #20 |
Technogeezer
Posts: 7,233
Karma: 1601464
Join Date: Nov 2006
Location: Virginia, USA
Device: Sony PRS-500
|
Support for external cover pages would be nice but they can be included with inline code as well.
While you are able to make a Table of Contents, the routine does not populate the Reader's Table of Contents area, it just leaves it with zero entries. Is this a design decision or one that will be cleaned up in future revisions? |
Advert | |
|
04-27-2007, 11:11 PM | #21 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
opf and collections are both features I don't need personally and hence have limited motivation for. But who knows...if I'm ever at a sufficiently loose end...
Not having anything in the table of contents was a design decision. the reason being that its is impossible to know which links in a HTML are for the toc and which not. By passing the --cover option to html2lrf the first page becomes a full size cover and a thumbnail is automatically generated. Is there some other behavior you are talking about? |
04-28-2007, 02:06 PM | #22 |
Member
Posts: 11
Karma: 10
Join Date: Mar 2007
Device: Sony PRS-500
|
Can html2lrf do batch conversions?
|
04-28-2007, 05:25 PM | #23 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No though cooking up a script to do batch conversions is trivial. After I've ironed out the bugs I'll write one.
|
04-28-2007, 07:12 PM | #24 |
Connoisseur
Posts: 96
Karma: 11
Join Date: Jul 2006
Location: Montreal
Device: Sony Reader; Kobo; Nook color
|
Any user guide?
|
04-28-2007, 07:45 PM | #25 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the command is self documenting. just type html2lrf and pres enter
|
04-30-2007, 03:58 PM | #26 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Released v0.3.16 which fixes igorsk's bug as well as https://libprs500.kovidgoyal.net/ticket/34
A general note on converting Baen books. Its usually a good idea to pass the file with "toc" in its name to html2lrf. |
04-30-2007, 04:12 PM | #27 |
Wizard
Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Thanks!
|
05-01-2007, 09:20 AM | #28 | |
curmudgeon
Posts: 1,481
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Quote:
The new version of html2lrf no longer crashes on my Grantville Gazettes (from Baen, of course). However, I now get .lrf files that cause my reader to crash and re-start itself. You should be able to reproduce this with the example html I sent you before, and the command line: Code:
html2lrf --title="Grantville Gazette Vol. 2" --author="Eric Flint, ed." 1011250005_toc.htm -o GrantvilleGazetteV2.lrf --cover=1011250005.jpg I'll try varying the command line switches to see if there's and alternative that works, and update the results here. Xenophon |
|
05-01-2007, 12:33 PM | #29 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm the generated LRF file work fine in the connect software but not on the reader. Annoying...I'll look into it.
|
05-01-2007, 01:36 PM | #30 |
curmudgeon
Posts: 1,481
Karma: 5748190
Join Date: Jun 2006
Location: Redwood City, CA USA
Device: Kobo Aura HD, (ex)nook, (ex)PRS-700, (ex)PRS-500
|
Thanks, Kovid! This is helping to make libprs500 a super-useful tool.
Xenophon |
Tags |
html2lrf, libprs500 |
|
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 |