Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2007, 01:02 PM   #346
bluelight
Member
bluelight began at the beginning.
 
Posts: 16
Karma: 32
Join Date: Aug 2007
Device: Sony Reader
omg it worked. thank you so much XD
bluelight is offline   Reply With Quote
Old 08-15-2007, 12:42 PM   #347
_Sin
Member
_Sin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Sony PRS-500
Image support

Hi.

This tool is extremely useful - if it didn't exist, I'd have to write it myself!

However I've found a slight problem - it seems to not want to load images if the file extension isn't set correctly on them. I'm converting Mobipocket files (not being in the US I have to either blag credit for the Connect store or buy my books elsewhere...) and the images don't come with proper names. Right now I just spit out extentionless files matching the IDs in the file, but although they view fine in a IE, converting them to LRF loses the images. If I manually fix up the filenames and links to include the image extension, it works.

I could write some smarter post-processing stuff at this end, but is there a simple fix for html2lrf that would get around this?
_Sin is offline   Reply With Quote
Old 08-15-2007, 12:52 PM   #348
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Are the images embedded using <img> tags or <a> tags?
kovidgoyal is offline   Reply With Quote
Old 08-15-2007, 01:01 PM   #349
_Sin
Member
_Sin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Sony PRS-500
Quote:
Originally Posted by kovidgoyal View Post
Are the images embedded using <img> tags or <a> tags?
So far I've only seen <img> tags, they don't seem to be used for linking very often.
_Sin is offline   Reply With Quote
Old 08-15-2007, 01:07 PM   #350
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In that case I don't see why they should be omitted. Send me some example files with the image files as well.
kovidgoyal is offline   Reply With Quote
Old 08-15-2007, 01:11 PM   #351
_Sin
Member
_Sin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Sony PRS-500
Quote:
Originally Posted by kovidgoyal View Post
In that case I don't see why they should be omitted. Send me some example files with the image files as well.
Ok, I'll need to try to construct an example as the ones I'm actually using are obviously copyright...
_Sin is offline   Reply With Quote
Old 08-15-2007, 01:36 PM   #352
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,762
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 _Sin View Post
I'm converting Mobipocket files
Are you converting MobiPocket files with DRM? If so, I'd love to know how.
JSWolf is online now   Reply With Quote
Old 08-15-2007, 01:52 PM   #353
_Sin
Member
_Sin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Sony PRS-500
Quote:
Originally Posted by JSWolf View Post
Are you converting MobiPocket files with DRM? If so, I'd love to know how.
Yup. The DRM isn't too tricky to decode. However I'm probably on slightly dodgy territory if I say too much about that - I'm only doing it for my own use on files I own, and I have no plans to distribute the tools I've written to strip the DRM out.
_Sin is offline   Reply With Quote
Old 08-15-2007, 02:39 PM   #354
_Sin
Member
_Sin began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Aug 2007
Device: Sony PRS-500
Quote:
Originally Posted by kovidgoyal View Post
In that case I don't see why they should be omitted. Send me some example files with the image files as well.
Ok, here's a simple example of the problem - I've included the generated LRF file as well as the html source and image files...
Attached Files
File Type: zip html2lrf_extension_test.zip (4.8 KB, 302 views)
_Sin is offline   Reply With Quote
Old 08-15-2007, 02:55 PM   #355
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fixed in svn.
kovidgoyal is offline   Reply With Quote
Old 08-15-2007, 10:22 PM   #356
angelyne
Connoisseur
angelyne is on a distinguished road
 
Posts: 57
Karma: 50
Join Date: Jun 2007
Device: Sony Reader PRS-500
I really enjoy this tool, I've been using it more and more. I've even started to learn a little html so I could edit the books more to my liking before converting them into BBeB.

There is one thing I can't seem to do however, and that's due to my poor skill with html. I'd like to be able to center text vertically on a page. Can this be done easily? I searched but only ended up more confused. I figured that by asking here, I'd get an answer that's appropriate to the BBeB format. Sorry to ask what is probably a really newbie-ish question.
angelyne is offline   Reply With Quote
Old 08-15-2007, 10:34 PM   #357
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Glad to hear it. No you cannot center text vertically on a page. As far as I know the LRF format doesn't have any support for doing this in a reflowable fashion. A workaround you could use is inserting a few blank lines above the text and force a page break before and after.
kovidgoyal is offline   Reply With Quote
Old 08-16-2007, 06:12 AM   #358
Pode
Member
Pode began at the beginning.
 
Pode's Avatar
 
Posts: 22
Karma: 10
Join Date: Mar 2007
Location: France
Device: Sony Reader
I'm surprised by the two last comments.
I read a lot of webpages on the Sony Reader with the help of your tool, html2lrf.
Some of the pages I save on my hardrive for processing by html2lrf aren't properly edited (since usually I strip everything that's not useful from the page with a little bookmarklet, CSS and page style are messed up), and I end up several time with paragraph that are center vertically on the page, (justified on the left and right, but the first and last line are centered vertically).
Pode is offline   Reply With Quote
Old 08-16-2007, 09:37 AM   #359
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,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Hanging Indents

How can one make hanging indents with html2lrf?
JSWolf is online now   Reply With Quote
Old 08-16-2007, 10:47 AM   #360
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,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Pode View Post
I'm surprised by the two last comments.
I read a lot of webpages on the Sony Reader with the help of your tool, html2lrf.
Some of the pages I save on my hardrive for processing by html2lrf aren't properly edited (since usually I strip everything that's not useful from the page with a little bookmarklet, CSS and page style are messed up), and I end up several time with paragraph that are center vertically on the page, (justified on the left and right, but the first and last line are centered vertically).
Interesting can you send me an example?
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 03:42 PM.


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