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 Today, 12:37 PM   #166
rashkae
Guru
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 761
Karma: 3301569
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by kovidgoyal View Post
Or just use the recommended SVG markup that calibre uses, it works everywhere, including the new reader.
I'll have to do a bit of testing with inline images to make sure I'm not missing a painfully obvious gotchya, but I think, at least for images, wrapping all <img> in a div with max-height: 100vh, max-width: 100vw would be a good option. This could be an option added to the Viewer to "Automatically resize images larger than the screen." Most browsers so something to that effect automatically, and I think Kindles do as well.

Unlike the svg code, this will not zoom the images on higher resolution displays.
rashkae is online now   Reply With Quote
Old Today, 09:02 PM   #167
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: 34,869
Karma: 12571798
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Why would one need to wrap images in a div? A simple img { max-height: 100vh } would do the trick to prevent images being split over multiple pages. As for max-width: 100vw not usre would need to check how well it plays with columns.
kovidgoyal is offline   Reply With Quote
Old Today, 09:03 PM   #168
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: 34,869
Karma: 12571798
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by theducks View Post
Nope
The guide still has the bogus entry that was flagged after I clicked remove all references (and then fix all after that did not work and I had re run the check)
I doubt this has anything to do with the beta as there were no changes to check book, so open a ticket and attach an epub to reproduce the issue and I will take a look when I have a moment.
kovidgoyal is offline   Reply With Quote
Old Today, 09:10 PM   #169
rashkae
Guru
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 761
Karma: 3301569
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by kovidgoyal View Post
Why would one need to wrap images in a div? A simple img { max-height: 100vh } would do the trick to prevent images being split over multiple pages. As for max-width: 100vw not usre would need to check how well it plays with columns.
Because the e-book viewer as it is now does not play well with how many, many ebooks are formatted, most of which assume that height % is the size of the screen. (and vh is not compatible with the epub spec.) I was tossing an idea as a work around to improve the book e-book viewer app and keep it consistent.

In any case, a new bug with the Viewer for you.

The font size of a <p> overrides the font size of the <body>, rather than adjust relative to it. (I haven't tried nesting a p in a <div> to see if all cascading font sizes are ignored.)

For example, if your body has font-size: 3em and the paragraph font-size: 1em, the e-book reader displays the font as though it were 1em. This works correctly in the editor preview. (Maybe related to the same bug that prevents the inspector from working?)
rashkae is online now   Reply With Quote
Old Today, 10:06 PM   #170
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: 34,869
Karma: 12571798
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by rashkae View Post
Because the e-book viewer as it is now does not play well with how many, many ebooks are formatted, most of which assume that height % is the size of the screen. (and vh is not compatible with the epub spec.) I was tossing an idea as a work around to improve the book e-book viewer app and keep it consistent.
The viewer already detects and fixes 100% height for the common form of fullscreen image markup. If you have some books where the detection does not work, let me know and I can fix it.
kovidgoyal is offline   Reply With Quote
Old Today, 10:10 PM   #171
rashkae
Guru
rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.rashkae ought to be getting tired of karma fortunes by now.
 
rashkae's Avatar
 
Posts: 761
Karma: 3301569
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
Quote:
Originally Posted by kovidgoyal View Post
The viewer already detects and fixes 100% height for the common form of fullscreen image markup. If you have some books where the detection does not work, let me know and I can fix it.
Common fullscreen image markup? So far, calibre is the *only* place I've seen that used.. And fullscreen image is not the only use case.

In any case, that can be debated at a better time, (if anyone else cares).. I don't mean to get hung up on it in the Beta thread for v4.
rashkae is online now   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
[Android App] Calibre Companion 1.7 Beta testing Adoby Devices 31 09-07-2012 10:13 PM
Kobo Wifi beta testing mdclements Kobo Reader 0 10-15-2011 03:49 PM
Beta testing libprs500's new GUI kovidgoyal Calibre 409 01-07-2009 12:33 PM


All times are GMT -4. The time now is 10:41 PM.


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