|  08-13-2007, 01:02 PM | #346 | 
| Member  Posts: 16 Karma: 32 Join Date: Aug 2007 Device: Sony Reader | 
			
			omg it worked. thank you so much XD
		 | 
|   |   | 
|  08-15-2007, 12:42 PM | #347 | 
| Member  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? | 
|   |   | 
|  08-15-2007, 12:52 PM | #348 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Are the images embedded using <img> tags or <a> tags?
		 | 
|   |   | 
|  08-15-2007, 01:01 PM | #349 | 
| Member  Posts: 13 Karma: 10 Join Date: Aug 2007 Device: Sony PRS-500 | |
|   |   | 
|  08-15-2007, 01:07 PM | #350 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  08-15-2007, 01:11 PM | #351 | 
| Member  Posts: 13 Karma: 10 Join Date: Aug 2007 Device: Sony PRS-500 | |
|   |   | 
|  08-15-2007, 01:36 PM | #352 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 | |
|   |   | 
|  08-15-2007, 01:52 PM | #353 | 
| Member  Posts: 13 Karma: 10 Join Date: Aug 2007 Device: Sony PRS-500 | 
			
			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.
		 | 
|   |   | 
|  08-15-2007, 02:39 PM | #354 | 
| Member  Posts: 13 Karma: 10 Join Date: Aug 2007 Device: Sony PRS-500 | 
			
			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...
		 | 
|   |   | 
|  08-15-2007, 02:55 PM | #355 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | 
			
			Fixed in svn.
		 | 
|   |   | 
|  08-15-2007, 10:22 PM | #356 | 
| Connoisseur  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. | 
|   |   | 
|  08-15-2007, 10:34 PM | #357 | 
| creator of calibre            Posts: 45,604 Karma: 28548974 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.
		 | 
|   |   | 
|  08-16-2007, 06:12 AM | #358 | 
| Member  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). | 
|   |   | 
|  08-16-2007, 09:37 AM | #359 | 
| Resident Curmudgeon            Posts: 80,727 Karma: 150249619 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?
		 | 
|   |   | 
|  08-16-2007, 10:47 AM | #360 | |
| creator of calibre            Posts: 45,604 Karma: 28548974 Join Date: Oct 2006 Location: Mumbai, India Device: Various | Quote: 
 | |
|   |   | 
|  | 
| Tags | 
| html2lrf, libprs500 | 
| Thread Tools | Search this Thread | 
| 
 | 
|  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 |