Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 09-06-2024, 09:42 AM   #76
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,514
Karma: 230505500
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.
Sirtel is offline   Reply With Quote
Old 09-06-2024, 09:59 AM   #77
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: 76,448
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by foosion View Post
Another oddity: Occasionally when my Kobos go to sleep book covers will display as text (title and kobo epub) with a surrounding box rather than the expected graphic. This will be after displaying normally for days and without any changes to the device. I use kobo utilities to restore the cover.

Anyone else? Any idea how to prevent this?
I read mostly ePub and have no problem with the covers when the Kobo goes to sleep.

I've never heard of that issue, but then maybe it's related to 4.38.23038 which is fairly new.
JSWolf is offline   Reply With Quote
Old 09-06-2024, 11:20 AM   #78
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
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.
foosion is offline   Reply With Quote
Old 09-06-2024, 12:01 PM   #79
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 11,514
Karma: 230505500
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by foosion View Post
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.
Maybe you just notice all kinds of details most people don't. And it depends partly on the books you read.

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
Sirtel is offline   Reply With Quote
Old 09-06-2024, 12:34 PM   #80
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Sirtel View Post
Maybe you just notice all kinds of details most people don't. And it depends partly on the books you read.

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
I do tend to obsess over details.

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.
foosion is offline   Reply With Quote
Old 09-06-2024, 01:00 PM   #81
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
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; 
}
The text decoration line removes the underline and the color is lighter than black. I tried using blue as a color, but it's too dark to easily distinguish links from text on my devices. I'm open to suggestion for a color that's a bit lighter.
foosion is offline   Reply With Quote
Old 09-06-2024, 02:35 PM   #82
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,555
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
Another oddity: Occasionally when my Kobos go to sleep book covers will display as text (title and kobo epub) with a surrounding box rather than the expected graphic. This will be after displaying normally for days and without any changes to the device. I use kobo utilities to restore the cover.

Anyone else? Any idea how to prevent this?
Kepub is a bit fussy about how book covers are shown. Having the cover xhtml as the first in the text files list and the cover image given properties="cover-image" seems to work for me.
DNSB is offline   Reply With Quote
Old 09-06-2024, 02:40 PM   #83
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
Kepub is a bit fussy about how book covers are shown. Having the cover xhtml as the first in the text files list and the cover image given properties="cover-image" seems to work for me.
What puzzles me is why it would work for days, then suddenly stop working.

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>
This is after it was working, then stopped, then started working again after uploading the cover with KoboUtilities.
foosion is offline   Reply With Quote
Old 09-06-2024, 02:51 PM   #84
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,555
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by foosion View Post
What puzzles me is why it would work for days, then suddenly stop working.

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>
This is after it was working, then stopped, then started working again after uploading the cover with KoboUtilities.
KoboUtilities will upload the cover image and flag it in the database bypassing reading the information from the ePub file. What I was looking for was in the content.opf (actually filename.opf but content is popular):

Code:
<item id="cover" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/>
See the image for the text file bits.

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.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2024-09-06 104427.png
Views:	50
Size:	11.0 KB
ID:	210651  
DNSB is offline   Reply With Quote
Old 09-06-2024, 03:13 PM   #85
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
What I was looking for was in the content.opf (actually filename.opf but content is popular):

Code:
<item id="cover" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/>
See the image for the text file bits.
Pretty much the same.

Code:
<item href="images/9780063235915_Cover.jpg" id="cover-image" media-type="image/jpeg" properties="cover-image"/>
I suppose I should see what's in the opf file after a problem but before fixing it.
foosion is offline   Reply With Quote
Old 09-06-2024, 05:42 PM   #86
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,431
Karma: 16297052
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;
}
The book opens with an h1 header, then p.left with span.smallcaps, then p.follow for subsequent paragraphs. When I open the XHTML file in my browser, everything looks normal, but on my Kobo, the body text is smaller than it should be.

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.
Aleron Ives is offline   Reply With Quote
Old 09-13-2024, 01:39 PM   #87
foosion
Evangelist
foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.foosion is an enigma wrapped up in a mystery.
 
Posts: 450
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by foosion View Post
Another oddity: Occasionally when my Kobos go to sleep book covers will display as text (title and kobo epub) with a surrounding box rather than the expected graphic. This will be after displaying normally for days and without any changes to the device. I use kobo utilities to restore the cover.

Anyone else? Any idea how to prevent this?
Here's a reddit post with a number of people with a similar issue: https://www.reddit.com/r/kobo/commen...s_infuriating/
foosion is offline   Reply With Quote
Old 09-14-2024, 11:50 AM   #88
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: 76,448
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
KoboUtilities will upload the cover image and flag it in the database bypassing reading the information from the ePub file. What I was looking for was in the content.opf (actually filename.opf but content is popular):

Code:
<item id="cover" href="Images/cover.jpeg" media-type="image/jpeg" properties="cover-image"/>
See the image for the text file bits.

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.
RbJrg's code is not ePub2 compatible. You have to change height: 99vh; to height: 99%; to be ePub2 compatible.
JSWolf is offline   Reply With Quote
Old 09-14-2024, 10:35 PM   #89
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 40,555
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
RbJrg's code is not ePub2 compatible. You have to change height: 99vh; to height: 99%; to be ePub2 compatible.
Oddly enough, it is compatible. The 99vh is not compatible with ePub2 but if you look at the posts about RbnJrg's code please note the comments about which parts are ePub2 and which are ePub3 (for convenience, I bolded them):
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;
}
The code used in the xhtml file would be:

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.
DNSB is offline   Reply With Quote
Old 09-15-2024, 09:29 AM   #90
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: 76,448
Karma: 136564696
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>
CSS
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%;
}
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 12:07 PM.


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