Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-05-2007, 11:35 PM   #481
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Kewl! So it'll process uncompressed Book Designer files. Nice one! Just have to wait for the Windows version to be released.
JSWolf is offline   Reply With Quote
Old 10-06-2007, 02:17 AM   #482
danx
Junior Member
danx began at the beginning.
 
danx's Avatar
 
Posts: 4
Karma: 10
Join Date: Oct 2007
Location: San Diego, CA, US
Device: Palm Pilot m130
html2lrf

Kovid,

You're superman--what you did is amazing.

I had problems upgrading Python to 2.5. I have 2.4 and I don't want to upgrade the Linux distribution now. It was a pain to upgrade and I posted a comment here on the other software besides Python that is needed by html2lrf. See libprs500 bug #117 for details.

One question--I believe Sony LRF supports images, but unless I'm doing something wrong, html2lrf doesn't seem to include images. If my assumptions are true, are there any plans to include images in the generated LRF format? I viewed my generated LRF file and it had no images. I tried both relative and full paths for the image file. For example:
Relative: <img src="images/foo.jpg" />
Full path: <img src="http://www.foobar.com/images/foo.jpg" />


I donated to the Kovid PRS 505 fund--great work!
danx is offline   Reply With Quote
Advert
Old 10-06-2007, 07:16 AM   #483
maggotb0y
Connoisseur
maggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheese
 
Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
Quote:
Originally Posted by kovidgoyal View Post
Added initial support for pre-processing via the --book-designer option in svn.
Okay, you've got me downloading your VMWare image now so I can try to play around with this- I'm sure I'm jumping in over my head, but I can't help it.

Thanks!
maggotb0y is offline   Reply With Quote
Old 10-06-2007, 08:35 AM   #484
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by danx View Post
Kovid,

You're superman--what you did is amazing.

I had problems upgrading Python to 2.5. I have 2.4 and I don't want to upgrade the Linux distribution now. It was a pain to upgrade and I posted a comment here on the other software besides Python that is needed by html2lrf. See libprs500 bug #117 for details.

One question--I believe Sony LRF supports images, but unless I'm doing something wrong, html2lrf doesn't seem to include images. If my assumptions are true, are there any plans to include images in the generated LRF format? I viewed my generated LRF file and it had no images. I tried both relative and full paths for the image file. For example:
Relative: <img src="images/foo.jpg" />
Full path: <img src="http://www.foobar.com/images/foo.jpg" />


I donated to the Kovid PRS 505 fund--great work!
html2lrf does support images. See for example the demo lrf file attached in the first post of this thread. Probably there is something missing in your installation of the python imaging library. Try running html2lrf with the --verbose flag.

Thanks for the donation, its much appreciated.
kovidgoyal is offline   Reply With Quote
Old 10-06-2007, 08:35 AM   #485
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by maggotb0y View Post
Okay, you've got me downloading your VMWare image now so I can try to play around with this- I'm sure I'm jumping in over my head, but I can't help it.

Thanks!
Not a problem. If you have trouble using the vmware image let me know.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-06-2007, 03:58 PM   #486
danx
Junior Member
danx began at the beginning.
 
danx's Avatar
 
Posts: 4
Karma: 10
Join Date: Oct 2007
Location: San Diego, CA, US
Device: Palm Pilot m130
Quote:
Originally Posted by kovidgoyal View Post
html2lrf does support images. See for example the demo lrf file attached in the first post of this thread. Probably there is something missing in your installation of the python imaging library. Try running html2lrf with the --verbose flag.
I think I know the problem--the images are inside tables (for positioning and captions) and it appears the table contents are ignored because it's "too large" (an image):

html2lrf --verbose -o matthes.lrf -t "Francois Matthes and the Marks of Time" -a "Francois E. Matthes" matthes.html

Processing matthes.html
Parsing HTML...
Converting to BBeB...
An error occurred while processing a table: Table has cell that is too large. Ignoring table markup.
Output written to /local/apache/htdocs/yosemite/library/matthes/matthes.lrf

html2lrf --version
libprs500 0.4.7


Here's a typical table with an image:

<table border="0" align="right"><tr>
<td align="center">
<a href="images/dust_jacket.jpg">
<img src="images/thumbnail/dust_jacket.jpg"
alt="François Matthes and the Marks of Time, dust jacket"
width="576" height="411" border="0" /></a>
<br />
<a href="images/dust_jacket.jpg">
<span class="small"><i>Dust jacket</i></span></a>
</td>
</tr></table>
danx is offline   Reply With Quote
Old 10-06-2007, 04:13 PM   #487
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just delete the <a href="dust_jacket.jpeg"> line. There's no way for html2lrf to know what size the image referenced in an <a> element should be.
kovidgoyal is offline   Reply With Quote
Old 10-06-2007, 10:15 PM   #488
chatlumo
Enthusiast
chatlumo began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2007
Location: Paris, France
Device: iRex iLiad V2
About images (not included), this doesn't work with the GUI under Mac OS X but it's working if i use the command line. Do you know why ?

Thanks.
chatlumo is offline   Reply With Quote
Old 10-06-2007, 10:34 PM   #489
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You have to zip up the HTML file and all its images and then add it to the database. Only then will conversion from the GUI include the images.
kovidgoyal is offline   Reply With Quote
Old 10-06-2007, 11:57 PM   #490
glenn69
Junior Member
glenn69 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Oct 2007
Device: prs500
Quote:
It's a version problem. You should either install SPI and PyQt by hand or wait for gutsy.
OK, I now have Python 2.5 and the html referenced by web2lrf --url "http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?style=printable&full=1#book_part1" -r 0
seems to create an lrf without the errors I used to get. I have copied it to the reader, but when I choose the book to read the reader stays on "Formatting..." screen for about 5 minutes then when I read the book page changes take about 12 second each. Are these simply side effects of the translation from HTML or should I be looking into html2lrf options?

Thanks again

P.S. I did donate for your prs505, but didn't get the cool announcement line in my post. I hope you got it. Let me know if it didn't go through.

Last edited by glenn69; 10-07-2007 at 12:02 AM.
glenn69 is offline   Reply With Quote
Old 10-07-2007, 12:01 AM   #491
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You should probably try some of the chapter options, to force more frequent page breaks.
kovidgoyal is offline   Reply With Quote
Old 10-07-2007, 05:10 PM   #492
tidixon
Enthusiast
tidixon began at the beginning.
 
Posts: 36
Karma: 10
Join Date: Oct 2007
Device: PRS-505
Hey,
I am new to this forum and to all these tools. I installed libprs500 and tried to use web2lrf to get the economist. It took about 30 minutes and produced a 23MB lrf that could not be read on the reader. This was on linux. I tried it again on Windows with the same result. I can post error logs and stuff, but I think maybe they just haven't finished writing the profile? It is not listed in the graphical interface but is in the command line.
Thanks,
TIm.
tidixon is offline   Reply With Quote
Old 10-07-2007, 05:33 PM   #493
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah economist isn't done.
kovidgoyal is offline   Reply With Quote
Old 10-07-2007, 09:18 PM   #494
maggotb0y
Connoisseur
maggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheesemaggotb0y can extract oil from cheese
 
Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
Quote:
Originally Posted by kovidgoyal View Post
Not a problem. If you have trouble using the vmware image let me know.
Okay, I have trouble <g>.

I got the VM image up and running and networked, which took a little bit of fooling around as I am not terribly familiar with gentoo.

Now I try to update from SVN and when running python setup.py develop as root I get this error:

Code:
Trying to setup udev rules...
Setting up bash completion... failed
Traceback (most recent call last):
  File "/home/kovid/work/libprs500/src/libprs500/linux.py", line 79 in setup_completion
  from libprs500.gui2.lrf_renderer.main import option_parser as lrfviewerop
  File "/home/kovid/work/libprs500/src/libprs500/gui2/lrf_renderer/main.py", line 27 in <module>
  from libprs500.gui.lrf_renderer.main_us import Ui_mainWindow
ImportError: No module named main_ui
Setting up desktop integration
QPixmap::scaled: Pixmap is a null pixmap
/bin/sh: xdg-icon-resource: command not found
You do not have the Portland Desktop Utilities installed, skipping installation of desktop integration
Is this something I can safely ignore? Is the VMware image out of alignment with the current requirements?

Thanks for your help,
Christopher
maggotb0y is offline   Reply With Quote
Old 10-07-2007, 09:23 PM   #495
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,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You need to run make

make -C src/libprs500/gui2/
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 07:08 PM.


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