![]() |
#91 |
Addict
![]() ![]() ![]() ![]() Posts: 206
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
|
kovidgoyal, is there a tip to stop images being resized when changing the font size? I have some images on a page with nothing else and would like to always be the original size.
|
![]() |
![]() |
![]() |
#92 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,442
Karma: 300001
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
|
Check the sample HTML.
|
![]() |
![]() |
Advert | |
|
![]() |
#93 |
Addict
![]() ![]() ![]() ![]() Posts: 206
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
|
I did and the image size of the big one changes. Possible bug introduced then after the recent image fixes? Before I log a bug I just wanted to make sure I wasn't missing anything.
|
![]() |
![]() |
![]() |
#94 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That behavior has changed in recent versions. It's a trade-off. I could go back to the old behavior, but in that case the large images would not respect centering (because I can't figure out how to get the ImageBlock element to respect centering).
Is there some particular reason you dont want the image to be resized? |
![]() |
![]() |
![]() |
#95 |
Addict
![]() ![]() ![]() ![]() Posts: 206
Karma: 317
Join Date: Oct 2006
Location: England
Device: Sony PRS-505, iPad, Kindle 3
|
Book Designer manages to centre it but of course it can't do in-line images as your libprs500 can.
Here's an output from Book Designer's LRS with an image that is 550x724 in size (it is centred): Code:
<ImageBlock x0="0" y0="0" x1="524" y1="690" xsize="524" ysize="690" blockwidth="524" blockheight="690" refstream="im_1" objid="pic_1" topskip="0" sidemargin="0" blockstyle="bs_im"> </ImageBlock> <BlockStyle stylelabel="bs_im" objid="bs_im" blockwidth="524" blockheight="704" sidemargin="0" blockrule="block-fixed" layout="LrTb" topskip="0" footskip="0" framecolor="0x00000000" framemode="square" framewidth="0" bgimagemode="fix"/> |
![]() |
![]() |
Advert | |
|
![]() |
#96 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's not actually centered, the image is simply scaled to the page size so it looks centered. If you try it with a narrow image, it will be left aligned.
|
![]() |
![]() |
![]() |
#97 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Does html2lfr support tables and inline graphics (graphics with text on either side)?
|
![]() |
![]() |
![]() |
#98 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
tables partially look at the demo file in the first post |
|
![]() |
![]() |
![]() |
#99 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I know html2lrf does not yet have support for embedded fonts. But, would it be possible for support for the three fonts already present in the Reader? So if I switch to one of those fonts, I'd get that same font on screen. To me this sounds like a fairly easy addition. I could be way off here. But it would be nice to have. It means I can use any of the three fonts as I see fit. Thanks!
Jon |
![]() |
![]() |
![]() |
#100 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That support is already there. See the demo file for example.
|
![]() |
![]() |
![]() |
#101 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Where can I find the demo file? The first post does not have the attached file that it says it does. And when you do reattach it, can you also attach the source HTML as well please? Thanks!
|
![]() |
![]() |
![]() |
#102 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm it seems to have disappeared. Re-attached. The html source is included within the files
|
![]() |
![]() |
![]() |
#103 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,354
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Added support for the Canvas element to pylrs. That's enough for rudimentary tables (modulo rowspan/colspan). I should also be able to implement the centering of ImageBlocks...now if only I had more time ;-)
|
![]() |
![]() |
![]() |
#104 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I'll ave to try out tables in that case. Kewl!
|
![]() |
![]() |
![]() |
#105 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2007
|
Is html2lrf a command line app? Or is it part of libprs500? If it's stand alone, can it be posted? The instructions to install the whole libprs500 package on Mac OSX is not clear for me.
Last edited by isaacrdz; 05-18-2007 at 12:48 AM. Reason: spelling errors |
![]() |
![]() |
![]() |
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 |