09-15-2019, 12:37 PM | #166 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
Unlike the svg code, this will not zoom the images on higher resolution displays. |
|
09-15-2019, 09:02 PM | #167 |
creator of calibre
Posts: 43,776
Karma: 22666666
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.
|
09-15-2019, 09:03 PM | #168 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
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.
|
09-15-2019, 09:10 PM | #169 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
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?) |
|
09-15-2019, 10:06 PM | #170 | |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
09-15-2019, 10:10 PM | #171 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
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. |
|
09-15-2019, 10:43 PM | #172 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Using a single HTML file with an svg containing the image to be fullscreened has long been the recommended practice for full screen images, not just in calibre.
Last edited by kovidgoyal; 09-15-2019 at 10:52 PM. |
09-15-2019, 10:56 PM | #173 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
Recommended by who? Not that I doubt you, but I've just *never* seen it used.. If you want, I cant start feeding you a dozen examples from different publishers,, but again, I did not intend this to derail the current work. I think the font issue I described earlier will be more of a problem for people. |
|
09-15-2019, 11:11 PM | #174 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No not quite, the viewer currently sets the users font size preference to the body font. So font sizes set on the body have no effect. I could change this to instead only set the font size on the root (<html>) element. This gives the user less control at the benefit of being closer to the publishers intent.
|
09-15-2019, 11:12 PM | #175 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I would be most interested in examples that use non svg markup for fullscreen images, I can add workarounds for them to the viewer.
|
09-15-2019, 11:41 PM | #176 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
The way it is now, there is no consistency in how books are displayed in the viewer, depending on how the publisher configured their book appearance. Edit: This problem is worsend by Calibre's font scaling if a book is converted in Calibre. The Publisher might have set a font size in the body, calibre will re-scale it in the paragraph/div, and the resulting book will be further from what the user intended when viewed in the viewer. Last edited by rashkae; 09-16-2019 at 12:01 AM. |
|
09-16-2019, 12:02 AM | #177 | |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
09-16-2019, 12:11 AM | #178 | |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
09-16-2019, 12:15 AM | #179 | |
Wizard
Posts: 1,140
Karma: 5061953
Join Date: Jun 2011
Location: Ontario, Canada
Device: Kobo Aura HD
|
Quote:
No, I meant what they user intended. Tradtionally, in calibre, with the default font scalling key and 12pt font size, when you convert in calibre, the size of regular text is adusted to 1 em. That gives all your books a consistent font size. Now, if you have a book that has body font size=1.125em , and you convert in Calibre, the paragraph font size is adjusted to .88889 (or some such.). In the new viewer, that font will now be super tiny... Edit: I'll keep an eye out for the next beta to re-examine Last edited by rashkae; 09-16-2019 at 12:17 AM. |
|
09-16-2019, 12:24 AM | #180 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
Thread Tools | Search this Thread |
|
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 |