Re: [csswg-drafts] [css-text] Ability to control hyphenation of proper nouns/capitalised words (#5157)

> > this is only about whether hyphens: auto gets to attempt hyphenation. Explicit hyphens or ­ should not be affected. If the author put them there, presumably they're intended to be used.
> 
> I beg to differ.
> a) There are JavaScript tools that use soft hyphens everywhere, so they are not necessarily put there with intention.

JavaScript tools that insert soft-hyphens have access to the text, and can make their own decisions whether to insert them in capitalized words or not. That (IMO) is out of scope for what the CSS hyphenation properties are seeking to control.

> b) The other hyphenation control properties seem to apply to both types of hyphenation (automatic or with soft hyphens, see #5090).

For the (proposed/draft) properties that provide control over where hyphenation is used within the overall layout, yes. For properties that fine-tune where the hyphenation algorithm may insert potential breaks, that's less clear; I think such properties should not affect manual soft hyphens. (See https://github.com/w3c/csswg-drafts/issues/5090#issuecomment-639407007.)

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

Received on Friday, 5 June 2020 11:12:33 UTC