11-23-2012, 02:57 PM | #1 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Use of for spacing
In a current book I've scanned to create an epub, I've been using . . . in place of an ellipse. It's a book from the 40s and I wanted to keep the more stretched-out appearance of the ellipse as it was in the book rather than the ... if using the ellipse special character. It also seemed to keep a uniform space between the periods, never stretching that space wider for justified margins, which was what I wanted.
I decided to use the between quotation marks and single quote marks rather than have them together with no space, " ' for instance, but the uniform space doesn't seem to hold here. I'm still tempted to avoid the space between even though I've read it's better to include it because justified margins always widened that space too much, and I thought the use of would avoid that. Is this the best way to do it or is there some other way to force a uniform width for the spaces? On my reader (Sony 350) all ellipses and spaces between the quote marks are a uniform width throughout the book. But I noticed when I open the epub in Calibre's viewer that the spacing between the quote marks often is wider (but ellipses seemed to stay uniform). And once converted to mobi the same situation happens, wider spaces for justifying the margins for both quotes and ellipses. Or is it just not possible to specify a uniform width that all readers will handle? |
11-23-2012, 04:02 PM | #2 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
ellipse is a single character, which is why it can't stretch.
nbsp keeps things togetherso you don't end with: and dot dot dot (work in Sigil) <span class="olddot">. . .</span> .olddot {display: block; letter-spacing: 6pt; } |
11-23-2012, 04:22 PM | #3 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
I use something similar to theducks method;
<span class="hellip">. . .</span> .hellip{letter-spacing:0.1em;white-space:nowrap} or sometimes <span class="hellip1">. . .</span> .hellip{letter-spacing:-0.2em;white-space:nowrap} I use thinspace or non-breaking spaces, whichever is closest to the effect I'm trying to achieve. Relying solely on letter-spacing to adjust the distance between the dots is unreliable since letter-spacing is not part of the epub specification. There is a better chance for the renderer to obey to the white-space-property than the letter-spacing. This provides a method to adjust the "air" between dots with letter-spacing, and provides a fallback to nbsp or thinsp when letter-spacing is not provided. I use the same trick with double and single quotationmarks to get some space, but with a fallback to a thinspace that doesn't wrap Don't you mean "display:inline-block"? |
11-23-2012, 04:29 PM | #4 |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
11-23-2012, 06:32 PM | #5 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Thanks for the tips on how to do it. Is   accepted by all readers? When I try it in Sigil for instance it shows a thin black block. I only have a Sony to test the output on, so don't want to risk using it if it's not handled well by all readers.
|
11-23-2012, 06:58 PM | #6 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
The firmware of all readers should be able to handle thinspace, but not all fonts contain the thinspace glyph. So I guess you can say that it is a matter of fonts rather than the readers. But there are fonts that does not contain the thinspace glyph. Personally I prefer to use thinspace only where I embed a font I know contain this glyph.
|
11-23-2012, 07:11 PM | #7 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
Ok, that clears it up nicely, thanks for the help.
|
11-24-2012, 08:20 AM | #8 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
If you embed a font in your epub file and are not satisfied with the hellip glyph, you can also edit this glyph in a program called fontforge (or other software capable of editing fonts). This method is 100% reliable in all readers that use the embedded font. If the embedded font is not used however, the … character from another font is used
|
11-24-2012, 06:31 PM | #9 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
I never embed fonts into an epub I scan. I'll want a specific layout and size for title pages, dedications, printing history, etc., but for the text of the book I want people to be able to switch to their favorite font and size they're comfortable with. I know it's a main feature of my ereader to me and I always change fonts to my preference and what's easiest on my eyes.
So for that reason I'll just stick to using with the various tricks from the above posts, it works quite well. That way I'm sure it's compatible with all fonts for everyone's preferences. |
11-24-2012, 09:04 PM | #10 | |
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
|
Quote:
|
|
11-24-2012, 09:13 PM | #11 |
350 Hoarder
Posts: 3,574
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
That's how I did it using Iznogood's examples above of a negative size. It was ok as is for the spaces between the periods of an ellipse, but the gap was too wide for the space between " and ', so it worked nicely there for me.
|
11-25-2012, 04:36 AM | #12 | |||
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
Quote:
Quote:
The font is the main problem here. I know it works fine with my Orizon, and probably all later Bookeen readers. But if you want a thin non-breaking space, you have to use &# 8239; (without the space), which is more likely to be missing from the font. |
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't get rid of   "paragraphs" when converting | Y|yukichigai | Conversion | 3 | 01-23-2012 11:20 PM |
iBooks does NOT LIKE | Erin | Apple Devices | 0 | 09-13-2011 11:17 AM |
txt to Epub - nbsp nbsp | cybmole | Calibre | 1 | 09-17-2010 09:05 AM |
Specify indent in css, not with   | James_Wilde | Calibre | 7 | 09-13-2010 09:48 PM |
Mobiperl lost when converting to mobi | Jellby | Kindle Formats | 19 | 08-26-2008 03:10 PM |