03-11-2019, 03:28 AM | #1 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
invisible del / "line-through"
I had some text that was supposed to be crossed out, it was formatted <strike>
-- editing the book in epub in Sigil, to export to azw3 using kindlegen. <strike> seemed ok on screen and kindlegen had no problem, but epubcheck says "Error while parsing file 'element "strike" not allowed anywhere". So I made a test page: <h2><del>del</del><br/> <strike>strike</strike><br/> <s>s s s </s><br/> <span style="text-decoration-line: line-through;"> text-decoration-line: line-through; </span><br/> <span style="text-decoration: line-through;"> text-decoration: line-through; </span> </h2> epubcheck also whines about <s> On Sigil preview, all work the same except "text-decoration-line" which has no effect. Made AZW3 and loaded on a PW3 -- see screencap. At first, I can see no lines at all. Peering closely, I see the line-through: it is just one pixel high. On a 300 dpi screen, this is imperceptible. Are there any ways to get a thicker line-through? Last edited by AlanHK; 03-11-2019 at 05:02 AM. |
03-11-2019, 08:27 AM | #2 |
Grand Sorcerer
Posts: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
I pasted your code into an empty EPUB, converted it using kindlegen and sideloaded it onto my Oasis 2 running 5.10.3 firmware. The result was extremely thin lines for strike-through as you reported.
As a second test I converted the same EPUB to KFX and sideloaded that to see how it would look using enhanced typesetting. The result was a strike-though of a more appropriate thickness. (See image.) |
Advert | |
|
03-11-2019, 08:49 AM | #3 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
6 pixels thick in KFX, as opposed to 1 for KF8 So Amazon fixed it for KFX, meaning they know it's a problem. I wonder if they are going to leave things like that broken in KF8 rendering as a way to make KFX seem necessary? Still would like to solve the problem for KF8. I know you can make configurable underlines with borders. Is there a similar hack for strike-through? Last edited by AlanHK; 03-11-2019 at 12:33 PM. |
|
03-14-2019, 11:02 PM | #4 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
03-21-2019, 12:06 AM | #5 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
It's not a thing you need much, but when you do you do want it to be visible. When they upgraded the hardware dpi, you'd think they would have looked at all the code that specced things in pixels. Last edited by AlanHK; 03-21-2019 at 12:10 AM. |
|
Advert | |
|
03-21-2019, 08:21 AM | #6 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
03-22-2019, 05:03 AM | #7 |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
|
03-22-2019, 05:36 AM | #8 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Just noodling around... Could you "hard-code" the text that needs the strike-through by using an embedded font for just that limited text string? I mean by using a font face that actually has a strike-through slash across the glyph.
I saw this font, there must be others around. Or perhaps someone could edit an open-source font for you. https://www.dafont.com/jmh-typewriter-mono.font |
03-22-2019, 10:21 AM | #9 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF - relation between "line un-wrapping factor" and "unwrap line" (heuristic proc.) | dr_Fell | Conversion | 1 | 10-16-2017 10:56 PM |
Reinstalación del firmware 5.1.2 "limpio" en Kindle Touch | Pepin33 | Amazon Kindle | 37 | 07-19-2016 11:35 AM |
Recipe for "Historias del Mundo" | cram1010 | Recipes | 0 | 07-01-2012 10:28 AM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
UNUSEABLE free e-book "Invisible Armies" by Jon Evans on HarperCollin | kacir | Reading Recommendations | 5 | 05-23-2008 06:26 PM |