Re: [css3-text] feedback on 'word-break: keep-all;'

On May 3, 2012, at 7:55 AM, Jonathan Kew <jfkthame@googlemail.com> wrote:

>> Personally opinions here only, but breaking at hyphens
>> indiscriminately cannot be right. Even in English there are many
>> scenarios where indiscriminate breaking at hyphens is intuitively
>> wrong (short prefixes like e- or co-, phone numbers, unit or street
>> numbers in addresses, and so on), so I don¡¯t know why IE does that.
> 
> I think it's reasonable regard hyphen as an "explicit break opportunity" for the purposes of keep-all. It's widely expected that a line-break is permitted after hyphen; if this is not wanted, the user needs to take explicit action to prevent it (just as with inter-word spaces).
> 
> Use U+2011 NON-BREAKING HYPHEN for hyphens that are not supposed to offer a break opportunity.

That's not the world we live in. In the real world, normal hyphens are used everywhere, and most people creating content don't even know that a non-breaking hyphen exists, or how to type it. And we still have to style that content. 

Received on Thursday, 3 May 2012 15:18:05 UTC