![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,532
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
It's a shame. I'd been thinking of pushing a link to a thread that included a font tester Epub that displays a range of characters, languages, and markups but... it doesn't include any strike through or underline examples
![]() Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#17 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've found out the problem. The problem is with KePub. I get the same sort of weak barely noticeable line. But with ePub, it's good to go.
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
I reported that here: https://github.com/kobolabs/epub-spec/issues/60 I'm hoping that approximates a proper reporting location. |
|
![]() |
![]() |
![]() |
#19 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I tried some CSS to make the line thicker and it did not work. Maybe there's a patch that can be made to fix this.
|
![]() |
![]() |
![]() |
#20 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've requested a patch for this problem if such a patch can be created and someone is willing to do so.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,532
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
A minor request... Could we maybe keep discussion of this to a single thread? I'm loosing track of how many distinct threads you've created on different aspects of this.
Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#22 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
|
![]() |
![]() |
![]() |
#23 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Sorry about that. I figured that since this turned out to be a kepub issue and not an epub issue, this forum would no longer be the best place for the discussion. I'm not sure if I can delete a thread I've started if it already has responses. But, I have no issue with a moderator doing so. This thread's probably got the most information in it and JSWolf has said he's requested a patch from somewhere. So, getting rid of the one in the Kobo Reader forum is probably for the best.
|
![]() |
![]() |
![]() |
#24 |
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,661
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
|
![]() |
![]() |
![]() |
#25 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,069
Karma: 105206895
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
But I'd avoid "text decoration" CSS in books and see no use at all for strike through except in a book or essay about typewriters. |
|
![]() |
![]() |
![]() |
#26 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Strike-through is exactly what you want. Whether you use a <span>, <s>, or <del> tag (<strike> is not supported in HTML5) it is highly recommended to use the ‘text-decoration: line-through’ css to explicitly define the behavior of the tag rather than rely on some “default behavior”. Same argument applies to underline words: ‘text-decoration: underline’ edit: added images and example code Code:
.strike { text-decoration: line-through; } div.write p { margin-bottom: 0.5em; font-size: 1.2em; font-family: "Monotype Corsiva", "cursive"; font-style: italic; text-indent: 0; } div.write p.sig { text-align: right; margin: 0.25em 0 2em; } <div class="write"> <p>Bella,</p> <p class="strike">I don’t know why you’re making Charlie carry notes to Billy like we’re in second grade—if I wanted to talk to you I would answer the </p> <p class="strike">You made the choice here, okay? You can’t have it both ways when </p> <p class="strike">What part of ‘mortal enemies’ is too complicated for you to </p> <p class="strike">Look, I know I’m being a jerk, but there’s just no way around </p> <p class="strike">We can’t be friends when you’re spending all your time with a bunch of </p> <p class="strike">It just makes it worse when I think about you too much, so don’t write anymore </p> <p>Yeah, I miss you, too. A lot. Doesn’t change anything. Sorry.</p> <p class="sig">Jacob</p> </div> Last edited by Turtle91; 08-13-2022 at 09:41 AM. |
|
![]() |
![]() |
![]() |
#27 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,355
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
… and if anyone has a problem with my sparkly vampire example ‘we gonna fight’!
![]() |
![]() |
![]() |
![]() |
#28 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
Strikethrough. If I could come up with some replacement for what the author's using, I'd use it. But, I can't come up with anything. |
|
![]() |
![]() |
![]() |
#29 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,069
Karma: 105206895
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,776
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
A workaround
You could try something like the following:
1) In your .xhtml code: Code:
<p>This is a test<span class="lineThrought"></span> to simulate line-throught style</p> Code:
.lineThrought { display: inline-block; /* This is key */ width: 1.4em; /* You must adapt the value according to the text to be strikethrough */ margin-left: -1.4em; /* This is linked with the above value */ margin-bottom: 0.15em; /* This is linked with the font-size */ border-bottom: 3px solid black; /* Use here the width of you wish */ } 1) In your .xhtml code: Code:
<p>This is a test<span class="lineThrought recoll1"> </span> to simulate line-throught style</p>
Code:
.lineThrought { display: inline-block; /* This is key */ line-height: 0; /* This is key; now you don't use margin-bottom */ border-bottom: 3px solid black; /* Use here the width of you wish */ } .recoll1 { margin-left: -1.4em; /* This is linked with the width of the strikethrough word */ } And the workaround looks fine. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |