08-12-2022, 08:49 AM | #1 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
"text-decoration: line-through;" Barely Visible on Kobo Forma
I've got an epub that uses:
.strike { text-decoration: line-through; } to strike through some lines of text. In Calibre, it looks fine. On my Kobo Forma, I can barely see the strikeout line going through the text. Searching the web, I find many instances claiming the underlying code for <strike> (deprecated), <del> and <s> is that same text-decoration line. On the w3c site for <strike>, I've tested all three of those methods and they all work well and look the same on my browser. According to the mozilla.org site: https://developer.mozilla.org/en-US/...tion-thickness I can use text-decoration-thickness to change the thickness of that line and make it more visible. When I try, the Calibre editor "check book" function doesn't recognize it ("Unknown property"). Does anyone have another method of making that strikethrough line more visible? EDIT: I ignored Calibre's warning and tried text-decoration-thickness: 10em; and it made no difference on my Forma (or in Calibre). Last edited by enuddleyarbl; 08-12-2022 at 09:06 AM. |
08-12-2022, 09:06 AM | #2 | |
Resident Curmudgeon
Posts: 75,671
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 08-12-2022 at 09:15 AM. |
|
Advert | |
|
08-12-2022, 10:08 AM | #3 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
The <del> tag didn't make any difference. Neither did the <s> tag. The strikethrough line is so thin that if I didn't know it was supposed to be there, I'd never know it WAS there.
I doubt it makes a difference, but the book is Pratchett's "Wyrd Sisters" and the passage is where Tomjon is reading some of Hwel's crumpled up attempts at a script: "There was a lot of crossing out, and a large blot. Tomjon threw it aside and selected another ball at random. KING: Is this a duck knife dagger I see behind beside in front of before me, its beak handle pointing at me my hand?..." I'm looking at an article on text-decoration-thickness at: https://css-tricks.com/almanac/prope...ion-thickness/ From that, I'm trying specifically setting all the associated traits for line-through: Code:
.strike { text-decoration-line: line-through; text-decoration-style: solid; text-decoration-color: black; text-decoration-thickness: 5px; } Last edited by enuddleyarbl; 08-12-2022 at 10:11 AM. |
08-12-2022, 10:32 AM | #4 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Unless I'm doing something wrong, it looks like the Forma just doesn't want to change that strikethrough line. First, if I use "text-decoration-line: line-through;", the line disappears on the Kobo (not in Calibre). If I put it back to "text-decoration: line-through;", the line comes back on the Kobo, but I can't seem to find any way to change its look. All three versions (<del>, <s> and <strike> (<-- with different characteristics)) are almost invisibly thin on the Kobo.
|
08-12-2022, 11:04 AM | #5 |
Grand Sorcerer
Posts: 6,658
Karma: 85000001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Have you tried a different font?
Perhaps try using kepub? |
Advert | |
|
08-12-2022, 11:37 AM | #6 |
Resident Curmudgeon
Posts: 75,671
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here is <del> on my Libra 2 reading ePub with ChareInk.
As for ChareInk, I'm using the unweighted hinted version. https://www.mobileread.com/forums/sh...d.php?t=184056 |
08-12-2022, 11:46 AM | #7 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
This is a kepub generated by KoboTouchExtended from a epub3 in Calibre read with the default kepub reader (Nickel?) on the Kobo Forma. Changing fonts on the reader makes no difference. I've removed all fonts from the epub, itself. So, it's all handled by the ereader.
AFAICS, nothing odd should be affecting the text where the line-throughs should be happening. I've even applied a .normal css class to the surrounding text before the line-throughs (via: Code:
.normal { font-style: normal; font-weight: normal; } I haven't been able to find any kind of alternative way of depicting crossed out text. |
08-12-2022, 11:48 AM | #8 |
Resident Curmudgeon
Posts: 75,671
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Post a screenshot so we can see how this looks on your device.
|
08-12-2022, 11:58 AM | #9 | |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
Last edited by enuddleyarbl; 08-12-2022 at 12:07 PM. |
|
08-12-2022, 11:58 AM | #10 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Drat. Forgot about resizing. I'll have to look up the maximum and redo that. Sorry.
EDIT: Fixed. Last edited by enuddleyarbl; 08-12-2022 at 12:08 PM. |
08-12-2022, 12:12 PM | #11 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
I checked the same book on my wife's Forma and it looks the same as on mine. So, it doesn't seem to be a problem with my specific unit.
BTW: the strikethroughs look much more visible in that screenshot than they do on the actual device. |
08-12-2022, 01:01 PM | #12 |
Resident Curmudgeon
Posts: 75,671
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Try ChareInk. Bookerly is a terrible font in a number of ways.
|
08-12-2022, 01:34 PM | #13 |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
I've got the your links to the font (from above). I just need to research how to add fonts to a Forma.
I'm not sure that's Bookerly. Normally, I use Georgia. But, that screenshot might be with any of the other fonts I was trying. Also, I whipped up a single page "epub" in LibreOffice to test various strikethrough methods. The same thing is happening with that. I'll attach a link to that epub and show a screenshot of the results (and as with the earlier screenshot, the strikethroughs on the device are nearly invisible and are much easier to see in the screenshot. https://drive.google.com/file/d/1C19...ew?usp=sharing EDIT: That screenshot is with the Georgia font. But, the result is the same with the other fonts on the device. Last edited by enuddleyarbl; 08-12-2022 at 01:36 PM. |
08-12-2022, 01:51 PM | #14 | ||
Resident Curmudgeon
Posts: 75,671
Karma: 134319570
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
|
||
08-12-2022, 01:56 PM | #15 | |
Guru
Posts: 737
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I more reliably show bks "on device"? (Kobo Forma) | LivresInOz | Library Management | 18 | 04-16-2022 12:51 AM |
How to remove "line breaks" from text between tags? | paperback | Editor | 5 | 02-27-2022 06:46 AM |
Closest output profile to Kobo Forma in "Convert Book" dialog is "Kobo Reader" but.. | droopy | Devices | 6 | 10-13-2019 10:52 PM |
PDF - relation between "line un-wrapping factor" and "unwrap line" (heuristic proc.) | dr_Fell | Conversion | 1 | 10-16-2017 10:56 PM |
iLiad "joe" command line text editor | bobj | iRex Developer's Corner | 3 | 06-02-2008 03:03 PM |