Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2016, 03:13 AM   #46
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,495
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Doitsu View Post
BTW, the first file of the epub3 test suite, EPUBTEST 0100, contains an SVG example of text on a curve.
Yes, of course, I spaced that. I should have mentioned that to eggheadbooks.

My point is, if a client has a specific retail target, e.g., iBooks, sure. Or a fxl-mobi, ditto. But for a wide-distribution book? Oh, nooooooooooo, I don't think so, not unless they are adventurous of spirit. :-)

Hitch
Hitch is offline   Reply With Quote
Old 10-29-2016, 04:26 AM   #47
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Tex2002ans View Post
U+202F NARROW NO-BREAK SPACE

Side Note: Besides those two, the only other space that is commonly used would be the Thin Space, and that is used in languages like French (around punctuation marks like guillemets « » + colons, etc. etc.). To be more compatible, you can swap Thin Spaces <-> Non-Breaking Spaces (not as typographically pleasing though)... although I don't believe I have seen any problems with thin spaces on Kindles.
Those thin spaces should actually be "U+202F NARROW NO-BREAK SPACE". The problems will be the same, some fonts won't support them, but in ePub readers and with modern reasonable fonts it works fine in my experience, I guess it will be the same in Kindle format/readers.
Jellby is offline   Reply With Quote
Old 10-31-2016, 12:48 AM   #48
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Jellby View Post
Those thin spaces should actually be "U+202F NARROW NO-BREAK SPACE". The problems will be the same, some fonts won't support them, but in ePub readers and with modern reasonable fonts it works fine in my experience, I guess it will be the same in Kindle format/readers.
Indeed, it does look like the Narrow No-Break Space is technically correct for French (France). And from a quick test in Kindle Previewer, it does look like it handles that space (on the surface, no idea how it handles with Dictionary/Text-to-Speech/Highlights/[...]).

Although as you mentioned, I suspect the Narrow No-Break Space is even less widely available than just the normal Thin Space.

I just used BabelMap to see which fonts have it on my computer:

318 Non-Breaking Space
46 Thin Space
34 Narrow No-Break Space

I would be interested in someone with a thousands of fonts (like Hitch) to give a more comprehensive look at ~ how many of these fonts support the rarer spacing characters. Or to do more extensive testing on actual devices.

Side Note: For French (France), there are also other Typographical rules with Thin/Non-Breaking/Normal spaces around either side of certain punctuations. This question/answer also goes into some details:

https://french.stackexchange.com/que...-the-technolog

(Although while doing research, I ran into odd edge cases of: "(?)" + "[?]" still having zero spacing between the three punctuation marks.)

Side Note #2: I actually went looking into this and ran across the "Unicode Line-Breaking Algorithm" specs:

http://www.unicode.org/reports/tr14/

very interesting stuff. I had assumed (wrongly) that the Unicode Thin Space was already Non-Breaking (like Thin Spaces in LaTeX).

I can't seem to think of any cases in English typography where you would use the Thin Space and WANT it to break there (besides Maths)... although maybe I have just been hanging around in the wrong circles.

Side Note #2: According to the above link, it seems like there is a large class of characters that could also have specific overrides in Line-Breaking rules dependent on Language/Locale.

OR there can also be Program-specific overrides. For example:

I plopped this into LibreOffice/Word/InDesign/HTML:

Code:
This is a sample sentence with Unicode « Thin Spaces. »

This is a sample with Mr. Jones in a sentence. (Thin Space between Mr. + Jones).
I kept on adding characters before the sentence until the end broke and moved to the next line.

Test #1: « + THIN SPACE + Thin
Test #2: Spaces. + THIN SPACE + »
Test #3: Mr. + THIN SPACE + Jones

InDesign CC 2015 + Notepad++:

Test #1: stayed attached.
Test #2: stayed attached.
Test #3: stayed attached.

Microsoft Word 2010:

Test #1: stayed attached.
Test #2: stayed attached.
Test #3: DID NOT stay attached.

LibreOffice + Firefox + Chrome + Sigil Previewer:

Test #1: DID NOT stay attached.
Test #2: stayed attached.
Test #3: DID NOT stay attached.

Internet Explorer 11 + Sigil Code View:

Test #1: DID NOT stay attached.
Test #2: DID NOT stay attached.
Test #3: DID NOT stay attached.

I suspect ereaders should implement more intelligent types of Line-Breaking override rules as well... although again, I haven't done any extensive testing. (And maybe they tweak the algorithm when you add lang="fr" or "lang="fr-CA"... although I doubt it). :P

Side Note #3: I flipped LibreOffice to French, and as you type it Auto-Corrects and inserts a Non-Breaking Space between « ». Nothing besides an ordinary space around the outside edges.

Side Note #4: This type of niggling with spacing could also be taken care of at the Font/Kerning/Program/Justification level.

Side Note #5: Have fun explaining that stuff to your mom, eggheadbooks1.

"You thought there was just one space? There are MILLIONS! One is normal, one is tiny, and one is even tinier. And then there is big, big, and bigger! Oh, and these are only different when you reach the end of line! Oh, and these only stretch when you turn on Justification, but the others MUST STAY THE SAME SIZE!"

Normal Human: "All I see is a BLANK spot."

You:


Last edited by Tex2002ans; 10-31-2016 at 01:22 AM.
Tex2002ans is offline   Reply With Quote
Old 10-31-2016, 01:33 AM   #49
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by Tex2002ans View Post

Side Note #5: Have fun explaining that stuff to your mom, eggheadbooks1.
Never mind my mother, you lost me at BabelMap.

Actually, once I read it twice (pun intended) I got the idea, though I think I'd be the normal human at the end saying, "I just see a blank space."

Where I could see using the thin non-breaking space would be when you have italics followed by regular punctuation, for example:

He asked, "Do you really want to go there?"

Too often the italicized word leans too far into the question mark and looks squished. In a print publication one would just increase the distance between the two characters (in this case the e and the ?). How ereaders display similar text would depend on the font and how the device/app handles word spacing in a justified paragraph.
eggheadbooks1 is offline   Reply With Quote
Old 10-31-2016, 02:39 AM   #50
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by eggheadbooks1 View Post
Too often the italicized word leans too far into the question mark and looks squished. In a print publication one would just increase the distance between the two characters (in this case the e and the ?).
That is best handled at the Program or Font Kerning level. You shouldn't be cluttering your source with that "hackish" fix.

The Font itself should have Kerning info for the: ! + ”, ? + ”... but not many (?) do.

Or intelligent layout systems like LaTeX apply an "italic correction" to handle that problem.

Side Note: I could swear Jellby discussed the Keming problem in detail a few years back in the "Where do I Put the font EULA" topic:

https://www.mobileread.com/forums/sho...d.php?t=225310

(We all went off on a big tangent discussing Fonts + other fun stuff... or maybe I am just imagining things ).

Quote:
Originally Posted by eggheadbooks1 View Post
How ereaders display similar text would depend on the font and how the device/app handles word spacing in a justified paragraph.
Definitely a sore point are these hard edge cases. A lot of the time in Print that is just where you go in and muck it up with manual fixing... but those types of solutions don't work when the Font + Font Size + tons of other variables can be changed.
Tex2002ans is offline   Reply With Quote
Reply

Tags
em value, image scaling, inline image


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC problem - AZW3 and MOBI do not show inline H2 hrvojej Conversion 2 06-06-2016 04:29 PM
Glo Image problem Andrew Ashling Kobo Reader 18 12-12-2012 03:24 PM
Adding a scaleable inline image within a paragraph ryntau ePub 4 02-03-2012 12:20 PM
Creating epub with inline block problem Gerlyn ePub 5 12-22-2011 02:59 PM
HTML to EPUB Inline Text/Image Issue HoushaSen Conversion 2 07-02-2011 09:03 PM


All times are GMT -4. The time now is 04:12 PM.


MobileRead.com is a privately owned, operated and funded community.