Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-18-2007, 12:56 AM   #106
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's part of libprs500. If you only want to use html2lrf all you need is
python 2.5 and setuptools. Once they're installed a simple
Code:
easy_install -f http://www.pythonware.com/products/pil Imaging
easy_install-2.5 -U libprs500
will install it automatically.

EDIT: Forgot about the dependency on Imaging

Last edited by kovidgoyal; 05-18-2007 at 01:22 PM.
kovidgoyal is offline   Reply With Quote
Old 05-18-2007, 05:25 AM   #107
FangornUK
Addict
FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.FangornUK has a complete set of Star Wars action figures.
 
FangornUK's Avatar
 
Posts: 206
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
Quote:
Originally Posted by kovidgoyal
Added support for the Canvas element to pylrs. ... I should also be able to implement the centering of ImageBlocks...now if only I had more time ;-)
Woohoo!
FangornUK is offline   Reply With Quote
Advert
Old 05-18-2007, 02:05 PM   #108
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Released 0.3.32
1) Large images are automatically placed in centered ImageBlocks
2) Fixed handling of images referred to in <a> tags
3) Autorotation of images whose width > height
4) Minor bug fixes

Note: there was a major module re-organization behind the scenes. This may cause some bugs, so let me know.

EDIT: Re-uploaded with autorotation of images.

Last edited by kovidgoyal; 05-18-2007 at 02:43 PM.
kovidgoyal is offline   Reply With Quote
Old 05-18-2007, 11:08 PM   #109
isaacrdz
Junior Member
isaacrdz began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2007
Quote:
Originally Posted by kovidgoyal
It's part of libprs500. If you only want to use html2lrf all you need is
python 2.5 and setuptools. Once they're installed a simple
Code:
easy_install -f http://www.pythonware.com/products/pil Imaging
easy_install-2.5 -U libprs500
will install it automatically.

EDIT: Forgot about the dependency on Imaging
For some reason, that made more sense to me than the instructions on libprs500 page.

Maybe I'll put together a more "Mac friendly" of the installation instructions later.
isaacrdz is offline   Reply With Quote
Old 05-18-2007, 11:16 PM   #110
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well that's because the instructions on the website cater to 3 operating systems and all the features of libprs500. If you do write up some instructions for OSX I'll add a link on the wiki.
kovidgoyal is offline   Reply With Quote
Advert
Old 05-20-2007, 04:53 PM   #111
Paviko
Junior Member
Paviko began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2006
Location: Poland
Device: Sony PRS-500
Hello kovidgoyal,

Thank you very much for html2lrf converter, it's very usefull.

I've noticed one strange thing with 0.3.32 version. The images, that have widht > height are missplaced (put to the right and cut off). Maybe PRS-500 is not supporting image rotating ?

I attaching simple html file that is causing problems.

Thank you.
Attached Files
File Type: zip Example.zip (15.5 KB, 483 views)
Paviko is offline   Reply With Quote
Old 05-20-2007, 08:49 PM   #112
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Support for tables!

Version 0.3.33
1) Added support for HTML tables
2) Squashed image handling bug that had crawled in for 0.3.32
3) Minor bug fixes

To see examples of table handling look at the demo file attached to the first post of this thread.

As a reminder bug reports go here:
https://libprs500.kovidgoyal.net/newticket
kovidgoyal is offline   Reply With Quote
Old 05-20-2007, 08:54 PM   #113
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
Quote:
Originally Posted by kovidgoyal
Version 0.3.33
1) Added support for HTML tables
2) Squashed image handling bug that had crawled in for 0.3.32
3) Minor bug fixes

To see examples of table handling look at the demo file attached to the first post of this thread.

As a reminder bug reports go here:
https://libprs500.kovidgoyal.net/newticket
Very nice! Would you mind also attaching the HTML code as a seperate file so we can have the code that is used for the demo? Thanks!
JSWolf is offline   Reply With Quote
Old 05-20-2007, 08:57 PM   #114
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The HTML code is embedded in the LRF file.
kovidgoyal is offline   Reply With Quote
Old 05-20-2007, 09:49 PM   #115
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
Quote:
Originally Posted by kovidgoyal
The HTML code is embedded in the LRF file.
Actually, it's not this time. It ends with the Recursive link following.
JSWolf is offline   Reply With Quote
Old 05-20-2007, 09:53 PM   #116
allovertheglobe
Grumpy Old Man
allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
allovertheglobe's Avatar
 
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
Quote:
Originally Posted by kovidgoyal
The HTML code is embedded in the LRF file.
I found that not to very useful due to:
1) the formatting of the HTML code being less than ideal on the reader, and without the possibility of syntax highlighting
2) having to try and read it on the reader's grayish screen in a dimmed room (for my backlit LCD screen) (I don't have access to the CONNECT software reader)

So I second JSwolf's request...
allovertheglobe is offline   Reply With Quote
Old 05-20-2007, 09:58 PM   #117
allovertheglobe
Grumpy Old Man
allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.allovertheglobe can even cheer up an android equipped with a defective Genuine Personality Prototype.
 
allovertheglobe's Avatar
 
Posts: 267
Karma: 30194
Join Date: Jul 2006
Location: L.A., Euro ex-pat
Device: Kobo, Nook Classic,Color,ST/Glow, iRex DR1000, Sony 505, REB1100&1200
Question re: LRF format optimization

Has anybody some advice regarding which is a better choice for LRF files (by way of html2lrf) in terms of performance (not necessarily filesize) for files with hundreds of links (references):
One very large monolithic file with all inline anchors OR rather many separate pages interlinked with external anchors? Or does it not make much a difference in the context of LRF either way?
allovertheglobe is offline   Reply With Quote
Old 05-20-2007, 10:05 PM   #118
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you're talking about the performance of the LRF file when viewed on the reader, it makes no difference.

Added HTML source.
kovidgoyal is offline   Reply With Quote
Old 05-20-2007, 10:17 PM   #119
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
Quote:
Originally Posted by kovidgoyal
If you're talking about the performance of the LRF file when viewed on the reader, it makes no difference.

Added HTML source.
I'm trying to convert the demo to LRF and it's not working. I did install the new version of libprs500.

Quote:
[e:\e-books\sonyreader\demo]"c:\Program Files\libprs500\html2lrf.exe" demo
Processing demo.html
Parsing HTML... done
Converting to BBeB...
Traceback (most recent call last):
File "convert_from.py", line 1351, in <module>
File "convert_from.py", line 1286, in main
File "convert_from.py", line 1158, in process_file
File "convert_from.py", line 356, in __init__
File "convert_from.py", line 440, in parse_file
File "convert_from.py", line 649, in process_children
File "convert_from.py", line 1060, in parse_tag
File "convert_from.py", line 649, in process_children
File "convert_from.py", line 1058, in parse_tag
File "convert_from.py", line 1069, in process_table
File "libprs500\ebooks\lrf\html\table.pyc", line 281, in blocks
File "libprs500\ebooks\lrf\html\table.pyc", line 251, in get_widths
File "libprs500\ebooks\lrf\html\table.pyc", line 209, in preferred_width
File "libprs500\ebooks\lrf\html\table.pyc", line 167, in preferred_width
File "libprs500\ebooks\lrf\html\table.pyc", line 164, in text_block_preferred_width
File "libprs500\ebooks\lrf\html\table.pyc", line 128, in text_block_size
File "libprs500\ebooks\lrf\fonts\__init__.pyc", line 38, in get_font
File "pkg_resources.pyc", line 800, in resource_filename
File "pkg_resources.pyc", line 1221, in get_resource_filename
NotImplementedError: resource_filename() only supported for .egg, not .zip
Did I do something wrong?
JSWolf is offline   Reply With Quote
Old 05-20-2007, 10:24 PM   #120
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,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Looks like a windows bug i'll uploaded a fixed version later.
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 08:51 AM.


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