![]() |
#16 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
http://www.heracliteanriver.com/?p=324 I will quote myself from a thread from last year: Quote:
https://www.mobileread.com/forums/sho...=206482&page=2 Quote:
I would just stick with nbsp; in many of these cases in ebooks for maximum compatibility. (Again, see that topic linked above, we had a huge discussion about it). For example, in French, the thin space is used all over the place before/after punctuation, but it is perfectly valid to substitute a non-breaking space when writing French in HTML. Also, is the thin space actually in the Georgia font? Everything I am looking at says that it doesn't contain it: http://www.fileformat.info/info/unic...al_punctuation http://www.htmlescape.net/20/charact...pace_2009.html Times New Roman is also missing a ton of Unicode, but it does look to have support for some of these rarer spaces: http://www.fileformat.info/info/unic...al_punctuation Last edited by Tex2002ans; 05-08-2015 at 04:50 PM. |
|||
![]() |
![]() |
![]() |
#18 | |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,519
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Fortunately html makes it very difficult for the uninitiated to make this (to me egregious) error. |
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
It may be that the entity reference name is not supported by the reader. Perhaps coding it by number would work.
A work around is to use regular spaces but change the font size. Dale |
![]() |
![]() |
![]() |
#20 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
If I open the HTML in Firefox, it displays the correct spacing with text in Georgia. If text is being justified, for instance as it usually is, then spaces are already being scaled to arbitrary widths. |
|
![]() |
![]() |
![]() |
#21 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
E.g, browse some books at the Hathi Trust, which has lots of old public domain books online. This one from 1913: Adnam's orchard. |
|
![]() |
![]() |
![]() |
#22 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Yes. |
|
![]() |
![]() |
![]() |
#23 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
So these look the same to me when they both work: Code:
<p>“ ‘Honeymoon Bridge’ </p> <p><span style="letter-spacing:0.166em">“</span>‘Honeymoon Bridge’ </p> (Typographic definition of "thin space" is 1/5 or 1/6em.) This hack is actually more like the kerning that I do in printing fonts, except the latter I can just do in the font and forget it. Also found this table of all 20 Unicode spaces: https://www.cs.tut.fi/~jkorpela/chars/spaces.html Sorry for the run of replies. I'm obviously out of sync with most here, Timezone GMT + 8 Last edited by AlanHK; 05-08-2015 at 11:26 PM. |
![]() |
![]() |
![]() |
#24 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Code:
<p><span style="letter-spacing:0.166em">“‘</span>Honeymoon Bridge’</p> |
|
![]() |
![]() |
![]() |
#25 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Tried that, it put the extra space after both quotes.
Looks like: “ ‘ Honeymoon Bridge’ Same result in Firefox. Your ref says "Letter-spacing must not be applied at the beginning or at the end of a line. Line, not "element". Seems that whatever the standard says, in practice it's "space after each character", not "between affected characters". Last edited by AlanHK; 05-09-2015 at 04:03 AM. |
![]() |
![]() |
![]() |
#26 | ||
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#27 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74,001
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Try this:
HTML: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <link rel="stylesheet" type="text/css" href="../Styles/Style0001.css" /> </head> <body> <p><span class="spaceafter">“</span>‘some test text’<span class="spacebefore">”</span></p> </body> </html> CSS: span.spaceafter { margin-right: 0.1em; } span.spacebefore { margin-left: 0.1em; } |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
The complex workarounds discussed in this thread have me totally baffled
![]() I created a simple test epub containing the various special space characters - no fancy formatting - and have no problem at all viewing them in the calibre Viewer nor on my Kobo. I tried various fonts (including Georgia and Times New Roman) in both apps and did not see the reported 'black boxes' with any of them. I did use the calibre Editor, not Sigil, to create the epub so all named entities have been translated to the relevant unicode characters. Perhaps this is why I have no problems. Here's a screenshot of the calibre Viewer using both Georgia and Times New Roman. I could post the test epub if anyone's interested. N.B. All paragraphs are left-aligned so there's no space-adjusting involved. |
![]() |
![]() |
![]() |
#29 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
However, there is a build of the latest Sigil for XP, which I do most of my work on, and they all work on that. So, support for these characters is not guaranteed. |
|
![]() |
![]() |
![]() |
#30 | ||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Quote:
I haven't found any that space between. But sadly, FBreader on Android doesn't do letter-spacing at all. Anyway, next up , I'll try margins and see if that's more compatible. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub CSS @fontface Unicode chars render in <td>, not in <div>, other elements | Abelinkin | ePub | 2 | 06-05-2012 04:24 AM |
Junk chars in splitted file names converting lit to epub | ozofmoz | Conversion | 2 | 07-15-2011 02:53 AM |
PDF->epub: double l chars changed | bobkoure | Conversion | 1 | 05-02-2011 10:05 PM |
0.7.44 Problem with national chars while converting to epub | AdamV | Conversion | 5 | 02-08-2011 08:01 PM |
Replacing Chars in URL | DAiki | Calibre | 5 | 10-13-2008 09:25 AM |