Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 08-12-2022, 01:56 PM   #16
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,119
Karma: 73448614
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
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
PeterT is offline   Reply With Quote
Old 08-12-2022, 02:05 PM   #17
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: 73,668
Karma: 127838212
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.
JSWolf is offline   Reply With Quote
Advert
Old 08-12-2022, 02:14 PM   #18
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by JSWolf View Post
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.
OK. Thanks. At least I know it's not me.

I reported that here:

https://github.com/kobolabs/epub-spec/issues/60

I'm hoping that approximates a proper reporting location.
enuddleyarbl is offline   Reply With Quote
Old 08-12-2022, 02:21 PM   #19
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: 73,668
Karma: 127838212
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.
JSWolf is offline   Reply With Quote
Old 08-12-2022, 02:44 PM   #20
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: 73,668
Karma: 127838212
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.
JSWolf is offline   Reply With Quote
Advert
Old 08-12-2022, 06:22 PM   #21
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,119
Karma: 73448614
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
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
PeterT is offline   Reply With Quote
Old 08-12-2022, 06:40 PM   #22
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,406
Karma: 47613872
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
Quote:
Originally Posted by PeterT View Post
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
Seconded. I wonder if the mods could sort this?
Uncle Robin is offline   Reply With Quote
Old 08-12-2022, 08:15 PM   #23
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
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.
enuddleyarbl is offline   Reply With Quote
Old 08-12-2022, 08:29 PM   #24
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,406
Karma: 47613872
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
Quote:
Originally Posted by DaveLessnau View Post
So, getting rid of the one in the Kobo Reader forum is probably for the best.
Following the clearly stated and oft-repeated direction not to create multiple threads for the same issue is probably for the best.
Uncle Robin is offline   Reply With Quote
Old 08-13-2022, 07:52 AM   #25
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,799
Karma: 83992605
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by JSWolf View Post
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.
Not the only issue with the Kobo proprietary version of epub.

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.
Quoth is offline   Reply With Quote
Old 08-13-2022, 08:48 AM   #26
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,071
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by Quoth View Post
Not the only issue with the Kobo proprietary version of epub.

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.
What about authors that are describing a hand-written letter from someone who can’t make up their mind in what to say???

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&nbsp;&nbsp;&nbsp;</p>

    <p class="strike">You made the choice here, okay? You can’t have it both ways when&nbsp;&nbsp;&nbsp;</p>

    <p class="strike">What part of ‘mortal enemies’ is too complicated for you to&nbsp;&nbsp;&nbsp;</p>

    <p class="strike">Look, I know I’m being a jerk, but there’s just no way around&nbsp;&nbsp;&nbsp;</p>

    <p class="strike">We can’t be friends when you’re spending all your time with a bunch of&nbsp;&nbsp;&nbsp;</p>

    <p class="strike">It just makes it worse when I think about you too much, so don’t write anymore&nbsp;&nbsp;&nbsp;</p>

    <p>Yeah, I miss you, too. A lot. Doesn’t change anything. Sorry.</p>

    <p class="sig">Jacob</p>
  </div>
Attached Thumbnails
Click image for larger version

Name:	857C711E-70BA-4603-AF90-D5C8A23FAF1C.jpeg
Views:	70
Size:	448.6 KB
ID:	195841   Click image for larger version

Name:	Screenshot 2022-08-13 093725.png
Views:	70
Size:	172.6 KB
ID:	195843  

Last edited by Turtle91; 08-13-2022 at 09:41 AM.
Turtle91 is offline   Reply With Quote
Old 08-13-2022, 09:03 AM   #27
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,071
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 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’!
Turtle91 is offline   Reply With Quote
Old 08-13-2022, 09:45 AM   #28
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 734
Karma: 1077122
Join Date: Sep 2013
Device: Kobo Forma
Quote:
Originally Posted by Quoth View Post
Not the only issue with the Kobo proprietary version of epub.

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.
As Turtle91 noted, the problem is that sometimes strikethrough is exactly what's needed. In reality, this book is one of the very few I've seen that use it. But, in this case, it has to be used. Cosmic rays are striking the character's head and causing inspiration to pour through his brain. He's desperately trying to write scripts from those spurts of random inspiration. So, he furiously writes things down and scratches them out when he doesn't get it right.

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.
enuddleyarbl is offline   Reply With Quote
Old 08-13-2022, 10:55 AM   #29
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 10,799
Karma: 83992605
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by Turtle91 View Post
What about authors that are describing a hand-written letter from someone who can’t make up their mind in what to say???
Certainly that's valid.
Quoth is offline   Reply With Quote
Old 08-13-2022, 11:04 AM   #30
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,529
Karma: 6613969
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>
2) In your .css stylesheet:

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 */
}
Of course, by using the above code, you'll need a different style for any word to be strikethrough. So, you could use a variant:

1) In your .xhtml code:

Code:
<p>This is a test<span class="lineThrought recoll1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> to simulate line-throught style</p>
2) In your .css stylesheet:

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 */
}
With this last variant you'll need only to use several .recollX styles.

And the workaround looks fine.

Click image for larger version

Name:	Screenshot1.png
Views:	72
Size:	18.6 KB
ID:	195844
RbnJrg is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:49 AM.


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