|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Em dashes display with space before them
It's not every ebook, but it happens often enough that I thought I'd try asking for help.
I'm reading on a Paperwhite (10th gen) running 5.15.1.1. I do not want to update at this time. Example book is Recipes For an Unexpected Afterlife by Deston J. Munden. EPUB converted to AZW3. In the Calibre viewer, both the EPUB and AZW3 file display perfectly. If I open the files up in the editor, there are no spaces around the em dashes. So I'm confident it's not an issue with the file/s. But on my Paperwhite, there is a space before each em dash. Photo at the link below. https://everybookadoorway.com/wp-con...5640491405.jpg I've tried changing fonts and text size and layouts and margins on the Paperwhite. I've tried altering the AZW3 file from justified text to left-align. None of it worked, and I'm pretty clueless about what else to try. I've spent hours looking for a solution online, but I suspect I don't know the right search terms because nothing's coming up. If I convert the EPUB to MOBI, the em dashes display perfectly in the MOBI. Does anyone know what causes this, and how to fix it in AZW3? Last edited by Siavahda; 12-14-2025 at 04:48 AM. Reason: clarifying |
|
|
|
|
|
#2 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 386
Karma: 4500000
Join Date: Nov 2015
Device: none
|
There is definitely space before —, or possibly there's a missing space behind —. Fooling with font setting won't fix your problem. Calibre viewer is not good for previews, try the file in "Kindle for PC" or in Kindle Create. Preview windows there usually work the same as on the reader later.
You could try to convert the file to kfx if that fixes the problem, or you could try figuring what goes wrong during the conversion. I guess that Calibre part of the forums would be a way to go for that. |
|
|
|
|
|
#3 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,223
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
I covert every ebook to epub then edit the epub when I have it the way I like then convert the epub to AZW3.
Here is how I fix Em dashes : First in the calibre editor create a function name it Em dashes Code:
def replace(match, number, file_name, metadata, dictionaries, data, functions, *args, **kwargs):
return match.group().replace(' – ', '—').replace(' –', '—').replace('– ', '—').replace('--', '—').replace(' - ', '—').replace(' —', '—').replace(' — ', '—').replace('— ', '—')
This is the search that I use: Code:
<body.*?>.*?</body> https://manual.calibre-ebook.com/function_mode.html be sure to save it. https://manual.calibre-ebook.com/edi...saved-searches This change a - a to a—a and will remove all spaces before and after em dashes. bernie Quote:
Last edited by gbm; 12-13-2025 at 06:56 PM. |
|
|
|
|
|
|
#4 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,217
Karma: 150263711
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
So my solution is to use the editor to fix the problem because if it is in the eBook, converting to KFX won't help. And KFX is meh! |
|
|
|
|
|
|
#5 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,217
Karma: 150263711
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The replace after the --, is that an en dash or a regular dash? The next thing for you to do is do a search for . . . or ... or whatever it is to a real ellipse character with no spaces. |
|
|
|
|
|
|
#6 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,223
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
?
![]() bernie Quote:
|
|
|
|
|
|
|
#7 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Quote:
|
|
|
|
|
|
|
#8 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Quote:
|
|
|
|
|
|
|
#9 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Quote:
|
|
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 386
Karma: 4500000
Join Date: Nov 2015
Device: none
|
|
|
|
|
|
|
#11 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
I have not. Not sure how to convert to KFX, Calibre doesn't seem to have that as an output option, and that's the only conversion tool I have. Would it tell you anything if they displayed properly in KFX, or didn't? If not, I'm not sure it's relevant.
|
|
|
|
|
|
#12 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 386
Karma: 4500000
Join Date: Nov 2015
Device: none
|
Using a different format for comparison, should eliminate conversion as source of your problem.
You need to manually install a plugin in Calibre, then you can export as KFX. Preferences -> Plugins -> Get new Plugins -> Filter by name (enter kfx) — install both, then you should have an option to select KFX as output format while converting your books. Kindle Previewer 3 must also be installed. Detailed instructions: https://www.mobileread.com/forums/sh...ght=kfx+output |
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,217
Karma: 150263711
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have never seen spaces added to em dashes in KF8.
Can you do us a favor? Find an ePub eBook from the library here on MR thathas em dashes and try that. That way we can try the same eBook. |
|
|
|
|
|
#14 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Quote:
|
|
|
|
|
|
|
#15 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 132
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Quote:
So I don't think a random book for the MR library is likely to have this problem. If you still want me to try, I will, I just don't see how it'll help. |
|
|
|
|
![]() |
| Tags |
| display problems, paperwhite |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Display of narrow no-break space (Linux build) | roger64 | Sigil | 16 | 02-17-2018 11:35 AM |
| Free (Kindle) Space Trap by Juanita Coulson [Vintage SF Alien Contact Space Opera] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 13 | 09-21-2017 01:44 PM |
| BUG: Calibre 2.0 E-Book Viewer ePub extra space display problem | trying | Calibre | 3 | 08-28-2014 08:56 AM |
| Narrow No-Break Space display | roger64 | Sigil | 6 | 12-20-2012 03:43 PM |
| Dashed Dashes -- Befuddled by EN and EM Dashes (Apple Pages to EPUB) | planewryter | Conversion | 1 | 07-22-2012 10:52 PM |