05-24-2020, 04:03 PM | #1 |
Zealot
Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
Letter-spacing
Is there a way to make letter-spacing work in epub?
|
05-24-2020, 04:25 PM | #2 |
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Yes, just use the letter-spacing CSS.
But why do you want to use it? I would strongly recommend against using it though, since readers of ebooks can use many different fonts/font-sizes, and it will most likely cause letters to clash into each other. |
Advert | |
|
05-24-2020, 05:03 PM | #3 |
Zealot
Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
I only want to sometimes use it for headings. It works in Sigil and in Calibre viewer, but does not in ADE.
Apparently, I'll just have to insert spaces manually. Last edited by kamanza; 05-24-2020 at 05:06 PM. |
05-24-2020, 05:08 PM | #4 |
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I don't believe letter-spacing works in RMSDK (EPUB2), but it might work in EPUB3... but again, I strongly recommend against using it.
Why not just leave the text as it is? Code:
<h2>CHAPTER 1</h2> Code:
<h2>C H A P T E R 1</h2> |
05-24-2020, 05:20 PM | #5 |
Zealot
Posts: 115
Karma: 10
Join Date: Jan 2011
Device: none
|
Thanks for replying.
I'm not formatting books for publication, I'm only prettifying them for myself & for a couple of friends, so I don't have to worry about Text-to-Speech, etc. And i like the way C H A P T E R 1 looks. |
Advert | |
|
05-25-2020, 10:54 AM | #6 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
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
|
If it's just for you/friends and your devices support letter-spacing css, then it's easiest to just use that.
|
01-13-2022, 03:10 PM | #7 |
Fanatic
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
A solution would be to customise the font (change the tracking eg in FontForge / Metrics / Set both side bearings), but this implies the reading software/hardware would read and apply the correct tracking from the font (might be needed to be exported as old style for some software to work), and of course to be able to sideload them.
|
01-15-2022, 08:14 AM | #8 |
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
My advice: If you really have to use letter-spacing (I know some old German texts that would require it),
This should at least help to avoid odd justification, searching, TTS and accessibility problems. The letter-spacing property has been there since CSS1 (and SVG 1.1) and received a rather good reception, although it’s officially still a "recommendation", see caniuse.com. Thus, some e-readers might not have implemented it. And of course never use it on scripts like Arabic, where some letters must stay connected. Last edited by Moonbase59; 01-15-2022 at 08:21 AM. |
01-15-2022, 11:20 AM | #9 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Without tatweel: تطويل With tatweel: تـطـويـل |
||
01-15-2022, 11:46 AM | #10 | ||
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
I see there is lots of knowledge here in this forum. Fantastic, I like that.
Quote:
Quote:
|
||
01-15-2022, 12:26 PM | #11 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Check http://unifraktur.sourceforge.net/letterspacing.html too, if you don't know it.
|
01-15-2022, 02:29 PM | #12 | |
Zealot
Posts: 111
Karma: 196896
Join Date: Oct 2021
Location: Germany
Device: Tolino Vision 5, Tolino Tab 8"
|
Quote:
Tested this using Calibre Reader 5.34, Thorium 1.8.0, Foliate 2.6.4. Test EPUB included, just in case someone wants to try. (Needs "publisher’s settings" or at least "publisher font" to render correctly.) See also my post in the E-Reader Forum (German). Last edited by Moonbase59; 01-15-2022 at 04:33 PM. |
|
02-03-2022, 06:45 AM | #13 |
Fanatic
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
So, what is the solution to use in an ePub2.01 if one needs to replicate an old fraktur text?
These use spacing as emphasis and (rarely) bold. There are extremely few (fraktur, blackletters) that have more than one weight. EDIT: I mean, letter spacing is not mandatory for epub, and all examples I have found so far are actually for html/internet. |
02-03-2022, 01:17 PM | #14 | |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
For an example, see this book. |
|
02-03-2022, 02:33 PM | #15 | |
Resident Curmudgeon
Posts: 76,465
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Letter-spacing issue | HHJT | ePub | 9 | 08-26-2019 10:40 AM |
About Word, letter-spacing and EPUB | roger64 | ePub | 58 | 04-27-2017 12:28 PM |
letter spacing errors | JeremyBenson | Kindle Formats | 24 | 02-20-2013 08:04 PM |
'letter-spacing' in Mobi | hkdorama | Kindle Formats | 4 | 07-26-2010 07:35 AM |