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 08-23-2024, 10:25 PM   #46
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Karellen View Post
In the css, I use...

Code:
s {
  text-decoration: line-through;
  text-decoration-color: black;
}

<s>Some strikethrough text</s>
and on the couple of occasions I have had to use it, I have had no problem seeing the strikethrough in my Libra2.

Probably depends on the size of the font you have set, and which font you are using.
Alas, your CSS renders the same barely visible line as <span class="strike"> in this text.

It's meant to strike through bold italic normal sized text. I'm using Merrirweather font at 54 on my kobo. Everything else looks fine. The file is Kepub if that matters.

EDIT: Perhaps it's the Merriweather font?

EDIT 2: I uploaded the book to Google Play Books. On my phone, strikethrough is very visible with Merriweather font, so it doesn't seem to be the font itself, just how Kobo renders it

Maybe something about kepub?

Last edited by foosion; 08-23-2024 at 10:59 PM.
foosion is offline   Reply With Quote
Old 08-24-2024, 01:18 AM   #47
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,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Sadly, this appears to be an artifact of using kepub. See sample images from an ePub and the same ePub converted to kepub using 3 different fonts and the following code for the strike class.

Code:
.strike {
  text-decoration: line-through;
  text-decoration-color: black;
  text-decoration-thickness: 2px;
}
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	60
Size:	52.4 KB
ID:	210372   Click image for larger version

Name:	screen_002.png
Views:	56
Size:	89.5 KB
ID:	210373  
Attached Files
File Type: epub Strikethrough.epub (2.09 MB, 29 views)
DNSB is offline   Reply With Quote
Advert
Old 08-24-2024, 05:08 AM   #48
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I don't know if I have the solution but the case is similar to the one I had with the ToC, which looked light grey and I wanted it to be black. I found a solution but I don't know enough to understand it. Instead of applying ‘colour:black’, using ‘-webkit-text-fill-color:inherit’ the ToC text looks black (I use epub edited with Sigil and convert it to kepub with Calibre).
repilo is offline   Reply With Quote
Old 08-24-2024, 06:09 AM   #49
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by repilo View Post
I don't know if I have the solution but the case is similar to the one I had with the ToC, which looked light grey and I wanted it to be black. I found a solution but I don't know enough to understand it. Instead of applying ‘colour:black’, using ‘-webkit-text-fill-color:inherit’ the ToC text looks black (I use epub edited with Sigil and convert it to kepub with Calibre).
Do you mean:

Code:
.strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  -webkit-text-fill-color:inherit;
}
If so, that didn't work.

Neither did text-decoration-webkit-text-fill-color:inherit
foosion is offline   Reply With Quote
Old 08-24-2024, 06:19 AM   #50
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by DNSB View Post
Sadly, this appears to be an artifact of using kepub. See sample images from an ePub and the same ePub converted to kepub using 3 different fonts and the following code for the strike class.

Code:
.strike {
  text-decoration: line-through;
  text-decoration-color: black;
  text-decoration-thickness: 2px;
}
Sad

foosion is offline   Reply With Quote
Advert
Old 08-24-2024, 08:14 AM   #51
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I checked my usual css and found that I had to do the following to stop the footnotes from showing up as light grey:
Code:
a { font-style:normal; font-weight:normal; text-decoration:none;
	colour:inherit; -webkit-text-fill-color:inherit; }
As I said before, I can't explain it, I just found it. Try colour:inherit; -webkit-text-fill-color:inherit;
repilo is offline   Reply With Quote
Old 08-24-2024, 12:28 PM   #52
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,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by repilo View Post
I checked my usual css and found that I had to do the following to stop the footnotes from showing up as light grey:
Code:
a { font-style:normal; font-weight:normal; text-decoration:none;
	colour:inherit; -webkit-text-fill-color:inherit; }
As I said before, I can't explain it, I just found it. Try colour:inherit; -webkit-text-fill-color:inherit;
Tried that and no joy. The line through the text is still a thin pale echo of what it should be. As for your CSS, the text inside an <a>...</a> tag is automagically rendered as blue unless the defaults are overridden.
DNSB is offline   Reply With Quote
Old 08-27-2024, 06:55 AM   #53
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 970
Karma: 1807784
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Libra Color, Nxtpaper 11
Quote:
Originally Posted by DNSB View Post
As for your CSS, the text inside an <a>...</a> tag is automagically rendered as blue unless the defaults are overridden.
Curiously, the Kobo Libra Color does not do that for EPUB formatted books. I have to define explicitly in my CSS file:
Code:
a {
color: blue;
}
More curiously, the KLC *does* render it blue per default for XX.KEPUB.EPUB books. Go figure.
DrChiper is offline   Reply With Quote
Old 08-27-2024, 07:17 PM   #54
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Another oddity. The following renders centered as epub in Calibre's viewer, but as left aligned as kepub on my Kobo:

css:
Code:
p.center {
  text-align: center;
  text-indent: 0%;
  margin-top: 5%;
}
text:
Code:
<p class="center"><b>LOREM</b><br/>
<b>IPSUM</b><br/>
<b>DOLOR?</b></p>
Oddly, headings are properly centered:

Code:
h1 {
  font-size: medium;
  text-align: center;
  text-indent: 0%;
  margin-top: 10%;
  font-weight: bold;
}
How to fix?

FWIW, I've had similar issues in other books. To be clear, these are commercial books from large publishers that I'm trying to clean up.

Last edited by foosion; 08-27-2024 at 07:21 PM.
foosion is offline   Reply With Quote
Old 08-27-2024, 07:25 PM   #55
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,565
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Do you have justification set to left in the device settings? It must be off, to display any centered images/headings/text correctly.
Sirtel is offline   Reply With Quote
Old 08-27-2024, 07:38 PM   #56
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Sirtel View Post
Do you have justification set to left in the device settings? It must be off, to display any centered images/headings/text correctly.
I do have left justification. Headings and images are displayed centered, but text is not.
foosion is offline   Reply With Quote
Old 08-27-2024, 07:47 PM   #57
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Aha! I copied the p.center CSS to one labeled center, then did <center> in text rather than <p.center>. That worked to center the text.
foosion is offline   Reply With Quote
Old 08-27-2024, 07:50 PM   #58
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,565
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by foosion View Post
I do have left justification. Headings and images are displayed centered, but text is not.
Hmm. Not so long ago, everything was shoved to the left when the justification was set to left. Maybe something has changed with the recent firmware updates. Anyway, it's still best to have justification OFF and set it in the book css instead.
Sirtel is offline   Reply With Quote
Old 08-27-2024, 08:18 PM   #59
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: 451
Karma: 41524
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
Quote:
Originally Posted by Sirtel View Post
Hmm. Not so long ago, everything was shoved to the left when the justification was set to left. Maybe something has changed with the recent firmware updates. Anyway, it's still best to have justification OFF and set it in the book css instead.
I have a major dislike for fully justified text, so would rather leave my Kobo on left justification, now that I've figured out how to fix the center problem. Posting, seeing a response and thinking about it definitely helped. Thanks!
foosion is offline   Reply With Quote
Old 08-27-2024, 09:01 PM   #60
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,565
Karma: 230505502
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by foosion View Post
I have a major dislike for fully justified text, so would rather leave my Kobo on left justification, now that I've figured out how to fix the center problem. Posting, seeing a response and thinking about it definitely helped. Thanks!
You could just as easily put the left-align in the body text of the individual books and leave justifcation off on your Kobo. But whatever floats your boat, I guess.
Sirtel 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 02:34 PM.


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