Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-27-2007, 07:47 AM   #16
jetspeed
Junior Member
jetspeed began at the beginning.
 
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...
jetspeed is offline   Reply With Quote
Old 04-27-2007, 09:13 AM   #17
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
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'
Above the result of processing 1632, but it seems to happen with any Baen title.
igorsk is offline   Reply With Quote
 
Enthusiast
Old 04-27-2007, 11:13 AM   #18
Thiana
Junior Member
Thiana began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2007
.OPF

Quote:
Originally Posted by igorsk
I can't process Baen books.
On the subject of Baen books. Is there any chance of adding support for the .opf format? (http://www.idpf.org/oebps/oebps1.0.1...b101-xhtml.htm) It would be nice to have the metadata and covers automatically imported.

Also, will you be adding support for managing collections on the Reader?

Thanks...
Thiana is offline   Reply With Quote
Old 04-27-2007, 12:27 PM   #19
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: 25,368
Karma: 4961459
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.
kovidgoyal is online now   Reply With Quote
Old 04-27-2007, 09:09 PM   #20
RWood
Technogeezer
RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.RWood ought to be getting tired of karma fortunes by now.
 
RWood's Avatar
 
Posts: 7,233
Karma: 1596436
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?
RWood is offline   Reply With Quote
Old 04-27-2007, 11:11 PM   #21
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: 25,368
Karma: 4961459
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?
kovidgoyal is online now   Reply With Quote
Old 04-28-2007, 02:06 PM   #22
Fauve
Member
Fauve began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Mar 2007
Device: Sony PRS-500
Can html2lrf do batch conversions?
Fauve is offline   Reply With Quote
Old 04-28-2007, 05:25 PM   #23
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: 25,368
Karma: 4961459
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.
kovidgoyal is online now   Reply With Quote
Old 04-28-2007, 07:12 PM   #24
jimmyzou
Connoisseur
jimmyzou began at the beginning.
 
jimmyzou's Avatar
 
Posts: 96
Karma: 11
Join Date: Jul 2006
Location: Montreal
Device: Sony Reader; Kobo; Nook color
Any user guide?
jimmyzou is offline   Reply With Quote
Old 04-28-2007, 07:45 PM   #25
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: 25,368
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
the command is self documenting. just type html2lrf and pres enter
kovidgoyal is online now   Reply With Quote
Old 04-30-2007, 03:58 PM   #26
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: 25,368
Karma: 4961459
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.
kovidgoyal is online now   Reply With Quote
Old 04-30-2007, 04:12 PM   #27
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Thanks!
igorsk is offline   Reply With Quote
Old 05-01-2007, 09:20 AM   #28
Xenophon
curmudgeon
Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.
 
Xenophon's Avatar
 
Posts: 1,453
Karma: 5657812
Join Date: Jun 2006
Location: Pittsburgh, PA USA
Device: Kobo Aura (soon), (soon-to-be-ex)nook, (ex)PRS-700, (ex)PRS-500
Quote:
Originally Posted by kovidgoyal
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.
Kovid:

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
...appropriately quoted to make your shell-of-choice happy.

I'll try varying the command line switches to see if there's and alternative that works, and update the results here.

Xenophon
Xenophon is offline   Reply With Quote
Old 05-01-2007, 12:33 PM   #29
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: 25,368
Karma: 4961459
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.
kovidgoyal is online now   Reply With Quote
Old 05-01-2007, 01:36 PM   #30
Xenophon
curmudgeon
Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.Xenophon ought to be getting tired of karma fortunes by now.
 
Xenophon's Avatar
 
Posts: 1,453
Karma: 5657812
Join Date: Jun 2006
Location: Pittsburgh, PA USA
Device: Kobo Aura (soon), (soon-to-be-ex)nook, (ex)PRS-700, (ex)PRS-500
Thanks, Kovid! This is helping to make libprs500 a super-useful tool.

Xenophon
Xenophon is offline   Reply With Quote
Reply

Tags
html2lrf, libprs500

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:11 AM.


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