Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2008, 01:45 PM   #1
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
HTML2LRF and inline pictures

I wonder: How exactly does HTML2LRF decide what to do with pictures? I have a book where there is a paragraph with several inline pictures (running as a part of the text). All images are done with exactly the same HTML code (except for a different SRC and ALT, obviously), yet HTML2LRF treats some as inline and others as block (breaking the paragraph before and after).
pepak is offline   Reply With Quote
Old 11-25-2008, 01:55 PM   #2
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: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's based on image size relative to page size
kovidgoyal is online now   Reply With Quote
Advert
Old 11-25-2008, 02:01 PM   #3
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Can I somehow force HTML2LRF to keep some images (identified by ID, CLASS, whatever) inline? Even ALL images would be fine if it was an option, e.g. --keep-all-images-inline - after all, I can always change images to blocks if I need to by putting them inside DIV or P tags.
pepak is offline   Reply With Quote
Old 11-25-2008, 02:23 PM   #4
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: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
At the moment there isn't.
kovidgoyal is online now   Reply With Quote
Old 11-26-2008, 02:23 AM   #5
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
"At the moment"? Dare I hope for this function in future versions? :-)
pepak is offline   Reply With Quote
Advert
Old 11-26-2008, 03:23 AM   #6
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: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
why dont you just switch to epub output?
kovidgoyal is online now   Reply With Quote
Old 11-26-2008, 04:32 AM   #7
pepak
Guru
pepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura aboutpepak has a spectacular aura about
 
Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
Because EPUB is slower to display than LRF, the intra-document links are extremely slow compared to intra-document links in LRF and the text is not justified on my PRS-505.

It makes no difference to me which format is "more readable" or "more compatible" since I keep the original files in pure HTML and batch-convert them as needed - so if a better support for EPUB comes out in future firmware, I will simply run one command ang get all my books converted to the new format. But at the moment, LRF is simply better.
pepak is offline   Reply With Quote
Old 01-21-2009, 09:48 PM   #8
Phonella
Enthusiast
Phonella began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
Hi, I'm having the same problem with inline images as Pepak.

Won't you please consider giving us more control over image placement with lrf?

If that's not possible could you please tell me the image dimensions that will cause a page break? I have an image that fills less than 1/2 of the page and yet it still causes a new page. I really want it to stay inline.
Phonella is offline   Reply With Quote
Old 01-21-2009, 10:22 PM   #9
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: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Page break only happens if the image is > 375 pixels in height. If you're seeing a page break for a small image, it's happening for some other reason
kovidgoyal is online now   Reply With Quote
Old 01-21-2009, 10:30 PM   #10
Phonella
Enthusiast
Phonella began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
Thanks for that information! It would be nice to have a little more control though, sometimes several lines of text could easily follow that size of image.

Btw my image was 400px in height.
Phonella is offline   Reply With Quote
Old 01-30-2009, 05:50 PM   #11
Phonella
Enthusiast
Phonella began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
Hi again,

I have an image that is 463 x 136 pixels and no matter what I do I cannot get it to center horizontally. I have smaller pixel width images and they center just fine -- is there a magic pixel width to get an image to center?

PS. Have tried CSS img {text-align: center; }, div=align center and using an inline style on the img tag (as in your demo): style= "text align: center" but nothing seems to be able to center this image.
Phonella is offline   Reply With Quote
Old 01-30-2009, 07:49 PM   #12
Phonella
Enthusiast
Phonella began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
Quote:
Originally Posted by Phonella View Post
Hi again,

I have an image that is 463 x 136 pixels and no matter what I do I cannot get it to center horizontally. I have smaller pixel width images and they center just fine -- is there a magic pixel width to get an image to center?

PS. Have tried CSS img {text-align: center; }, div=align center and using an inline style on the img tag (as in your demo): style= "text align: center" but nothing seems to be able to center this image.
After some testing it appears that the "magic number" for centering an image of a small height (136px) is 450px. 450px centers nicely; 451px is pushed over to the left side (as is the original 463px).
Phonella is offline   Reply With Quote
Old 02-04-2009, 12:12 PM   #13
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: 73,668
Karma: 127838212
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
bump!
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Macro: Footnotes to inline text ? Hadrien Workshop 17 10-08-2011 01:28 PM
inline page markers overtop of text?? Stinger Kobo Reader 9 05-28-2010 05:42 PM
Calibre email inline text? squawker Calibre 2 05-26-2010 06:17 PM
Trying to make an Inline TOC crutledge Sigil 2 05-09-2010 05:46 AM
inline images - html2lrf Converter in libprs500 benong Calibre 7 02-08-2008 11:07 PM


All times are GMT -4. The time now is 02:57 AM.


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