![]() |
#481 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#482 |
Junior Member
![]() 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! |
![]() |
![]() |
Advert | |
|
![]() |
#483 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
|
![]() |
![]() |
![]() |
#484 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Thanks for the donation, its much appreciated. |
|
![]() |
![]() |
![]() |
#485 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#486 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Oct 2007
Location: San Diego, CA, US
Device: Palm Pilot m130
|
Quote:
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> |
|
![]() |
![]() |
![]() |
#487 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#488 |
Enthusiast
![]() 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. |
![]() |
![]() |
![]() |
#489 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#490 | |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Oct 2007
Device: prs500
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#491 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#492 |
Enthusiast
![]() 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. |
![]() |
![]() |
![]() |
#493 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yeah economist isn't done.
|
![]() |
![]() |
![]() |
#494 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 1166
Join Date: Apr 2007
Location: New Jersey, Outside of Philadelphia
Device: Sony Reader
|
Quote:
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 Thanks for your help, Christopher |
|
![]() |
![]() |
![]() |
#495 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,349
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You need to run make
make -C src/libprs500/gui2/ |
![]() |
![]() |
![]() |
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 |