09-06-2024, 09:42 AM | #76 |
Grand Sorcerer
Posts: 11,827
Karma: 232664548
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I use custom screensavers, not book covers, and they've never failed to display correctly.
|
09-06-2024, 09:59 AM | #77 | |
Resident Curmudgeon
Posts: 76,994
Karma: 138588794
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I've never heard of that issue, but then maybe it's related to 4.38.23038 which is fairly new. |
|
Advert | |
|
09-06-2024, 11:20 AM | #78 |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
It happens on both Libra 2 (4.38.23038) and Clara BW (4.39.23027).
I do seem to have a knack for finding strange behavior. It seems there would be less if I stuck to epub, but I like some kepub features. |
09-06-2024, 12:01 PM | #79 | |
Grand Sorcerer
Posts: 11,827
Karma: 232664548
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Quote:
I also have only kepubs on my Sage, but I probably don't notice every tiny detail. I do edit my books before reading them (for example, I set the justification OFF on my Kobos, because I specify the alignment in the css). I also read mostly lowbrow genre fiction, with no fancy formatting - very few footnotes, images, links, tables and so on. Mostly just plain text |
|
09-06-2024, 12:34 PM | #80 | |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Most of what I read is fiction (as you write, mostly just plain text), but a fair percentage is history and other non-fiction, which tends to have more footnotes, images, etc. I'm moving to turning justification off and fixing the css. |
|
Advert | |
|
09-06-2024, 01:00 PM | #81 |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
In case anyone cares, I applied the unforce patch to both of my devices and, when I want to deal with links, I add this to the css:
Code:
a { text-decoration: none; color: #005ECF; } |
09-06-2024, 02:35 PM | #82 | |
Bibliophagist
Posts: 41,347
Karma: 158303864
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
09-06-2024, 02:40 PM | #83 | |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
The latest problem covers: Code:
<div class="cover" id="cover"> <a href="9780063235915_Contents.xhtml#rcover"> <img alt="image" src="../images/9780063235915_Cover.jpg"/> </a></div> Code:
<p id="ji1838" style="text-align:center;"> <img alt="image" epub:type="cover" role="doc-cover" src="images/9780306830532.jpg" style="height: 100%;"/> </p> |
|
09-06-2024, 02:51 PM | #84 | |
Bibliophagist
Posts: 41,347
Karma: 158303864
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
<item id="cover" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/> The code I use for displaying the cover image is an SVG wrapper with ePub2 and ePub3 compatibility courtesy of RbJrg (see this message for the code. |
|
09-06-2024, 03:13 PM | #85 | |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Code:
<item href="images/9780063235915_Cover.jpg" id="cover-image" media-type="image/jpeg" properties="cover-image"/> |
|
09-06-2024, 05:42 PM | #86 |
Wizard
Posts: 1,489
Karma: 16300090
Join Date: Sep 2022
Device: Kobo Libra 2
|
I encountered something strange in KEPUB yesterday. The book CSS contains this (among a few other things):
Code:
h1 { text-align: center; font-size:1.5em; margin:1.5em 0em 1.5em 0em; font-weight: bold; } span.smallcaps { text-transform:uppercase; font-size:80%; } p.left { text-indent: 0em; margin-top:0em; margin-bottom:0em; text-align:justify; } p.follow { text-indent: 1.5em; margin-top:0em; margin-bottom:0em; text-align:justify; } Is it the case that WebKit does not reset font sizes when moving from one CSS class to another, and it's necessary to specify font-size:1em/100%/medium in order to reset the font to the default size after any class that might change it? The only explanation I can think of is that the smallcaps 80% size is being misapplied to p.left and p.follow, since they don't specify a font-size of their own. |
09-13-2024, 01:39 PM | #87 | |
Evangelist
Posts: 462
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
|
|
09-14-2024, 11:50 AM | #88 | |
Resident Curmudgeon
Posts: 76,994
Karma: 138588794
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
09-14-2024, 10:35 PM | #89 | |
Bibliophagist
Posts: 41,347
Karma: 158303864
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
.cover { margin: 0; height: 99vh; /* This property is for epub3 */ max-width: 100%; /* This property is for epub3 */ overflow: hidden !important; } .picWrapper { margin: 0; padding: 0; height: 100%; /* This property is for epub3 */ } .pic { /* This is the epub2 layer */ display: block; margin: auto; width: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; } Code:
<body class="cover"> <div class="picWrapper"> <svg class="pic" xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 1000 1500" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"><image height="1500" width="1000" xlink:href="../Images/cover.jpeg"/></svg> </div> </body> Last edited by DNSB; 09-14-2024 at 10:38 PM. |
|
09-15-2024, 09:29 AM | #90 |
Resident Curmudgeon
Posts: 76,994
Karma: 138588794
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
This is the code I use. It's simple and it works in ePub2 and ePub3.
HTML Code:
<div class="cover"> <img alt="" class="cover" src="../images/MSRCover.jpg"/> </div> Code:
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify; } img { max-height: 100%; max-width: 100%; } .cover { text-align: center; text-indent: 0; height: 100%; } |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
.dat in miscellaneous | ottischwenk | Editor | 1 | 01-06-2024 07:45 PM |
Accessories Best display graphics tablet for photo editing? | fanhun | enTourage eDGe | 0 | 06-05-2018 06:15 AM |
File gets moved to Miscellaneous | MerlinMama | Editor | 13 | 01-14-2017 10:19 PM |
Preferences Miscellaneous Tab | adun | EPUBReader | 2 | 07-28-2010 07:06 AM |
Miscellaneous questions ? | bugsbunny14 | iRex | 5 | 09-17-2006 12:40 PM |