View Single Post
Old 09-23-2017, 05:25 AM   #37
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,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by nabsltd View Post
It shouldn't be. It's punctuation just like any other, and should always "glue" to the previous characters.

I've never seen a typeset book (where things like line breaks are manually controlled) where an em-dash immediately preceded by a letter starts a line, with the letter on the previous line.
If you've never seen em dashes at the beginning of lines, then you need to have looked at more books. It is perfectly valid to have a linebreak occur before an em dash. See Unicode's Line Break rules:

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

or more specifically, this section:

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

Last year, we also discussed a similar situation with linebreaking around thin spaces:

https://www.mobileread.com/forums/sh...=278187&page=4

Quote:
Originally Posted by nabsltd View Post
Assuming no automatic hyphenation using a dictionary, white space is the only place a line should break in HTML.
Read the Unicode links above. Really interesting stuff.

In reality, you would want language- and locale-specific linebreaking rules + low-level access to tweaking which characters allow linebreaks before/after. Nothing I know currently does this (LaTeX is probably the closest).

For now, you are mostly at the mercy of the people who coded the renderers (and you do get some abominations like GrannyGrump's examples).

Last edited by Tex2002ans; 09-23-2017 at 06:23 AM.
Tex2002ans is offline   Reply With Quote