08-24-2019, 07:56 AM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2018
Device: Kobo Glo
|
Letter-spacing issue
Hi,
Posted this on the Kobo forum yesterday. When I give extra letter-spacing the space between letters gets larger, but the space between two words disapears, creating: C H A P T E R O N E Code:
<h1><span class="spacing">CHAPTER ONE</span></h1> span.spacing {letter-spacing:5px} Only my Kobo Glo does this, by the way. iBook and Calibre no problems... |
08-24-2019, 09:07 AM | #2 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
A quick test here and the letter spacing works with kepubs, but not epubs. Different renderers are used for the two formats. The Adobe RMSDK is used for epubs. It probably means all other ereaders or apps that use it won't use it. ADE v2.0.1 doesn't use it, which is consistent with the RMSDK.
|
08-24-2019, 09:47 AM | #3 |
A Hairy Wizard
Posts: 3,094
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
|
Could you use a fall-back with greater word-spacing?
|
08-24-2019, 10:03 AM | #4 |
Member
Posts: 13
Karma: 10
Join Date: Feb 2018
Device: Kobo Glo
|
Thanx for replying.
The document was made in OO writer, and converted to epub with writer2xhtml. In Sigil I make last minute replacement when needed. I check my epubs with iBooks and ADE. You’re right: ADE doesn’t recognize letter-spacing. But Ibooks does and so does the Calibre ebook viewer. I use Calibre to upload te pub to my Kobo Glo. I do not use ADE. I know letter-spacing works on kepub. I can see the spacing between letters. The spacebars are discarded some how. |
08-24-2019, 10:31 AM | #5 |
A Hairy Wizard
Posts: 3,094
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
|
Multiple normal spaces are condensed into 1 space on all renderers that I'm aware of - and any whitespace between paragraph tags is ignored.
You would need to use letter-spacing and/or word-spacing in your CSS to adjust the distance. If your renderer does not support that CSS you can use some work-arounds like adding non-breaking-spaces ( or & #160; ). for example: Hello (no spaces) H e l l o (single space) H& #160; e& #160; l& #160; l& #160;* o (non-breaking space PLUS single space) H e l   ; l o (multiple non-breaking-spaces) edit: don't put a space between the &#...I couldn't keep the forum from converting it to an actual space even when I tried using noparse. Of course, you could also get a different font that has larger space between the letters... but that's going a bit too far, don't you think? Last edited by Turtle91; 08-24-2019 at 11:56 AM. |
08-24-2019, 04:43 PM | #6 | |
Wizard
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
span.spacing { letter-spacing: 5px; word-spacing: 10px; } |
|
08-24-2019, 04:50 PM | #7 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Put the noparse only around the & and # with the number right after the /noparse,  . Now if I could only remember the word noparse on the rare cases when I need to use it.
|
08-24-2019, 07:12 PM | #8 |
A Hairy Wizard
Posts: 3,094
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
|
|
08-24-2019, 09:34 PM | #9 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
|
08-26-2019, 09:40 AM | #10 | |
Member
Posts: 13
Karma: 10
Join Date: Feb 2018
Device: Kobo Glo
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
About Word, letter-spacing and EPUB | roger64 | ePub | 58 | 04-27-2017 11:28 AM |
EPUB to PDF odd letter spacing | Books987 | Conversion | 5 | 01-27-2015 05:21 AM |
letter spacing errors | JeremyBenson | Kindle Formats | 24 | 02-20-2013 07:04 PM |
'letter-spacing' in Mobi | hkdorama | Kindle Formats | 4 | 07-26-2010 06:35 AM |