Re: [csswg-drafts] [css-text-3] Discarding Line Breaks Adjacent to Ambiguous Characters (#5017)

> a more interesting case in English is a semi compound word connected by a hyphen, e.g. "well-known". As they look two separate word one might insert a line break after the hyphen, exactly like hyphenated words. If the Segment Break Translation Rule inserts a space after the hyphen it would be different from the naive user's expectation.

Yes, this is indeed possible. Here's a [test](https://w3c.github.io/i18n-tests/exploratory/vanilla/?text=This%20is%20long%20line%20to%20be%20wrapped%20with%20a%20hyphenated%20word%20to%20illustrate%20the%20word-%0Ahyphenation%20issue.%0A&lang=en&fontSize=33&width=568&height=500) (you may need to change the width of the test box in your browser, because the result may be different depending on your font).

We may be able to add some informative notes/examples (for line break on hyphens, line break on CJK and Western mixed text, etc.) to the css-text spec, and point it to authors and authors of authoring tools.


-- 
GitHub Notification of comment by xfq
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5017#issuecomment-627723036 using your GitHub account

Received on Wednesday, 13 May 2020 03:28:59 UTC