Quote:
Originally Posted by nabsltd
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
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).