W3C home > Mailing lists > Public > public-css-archive@w3.org > June 2020

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

From: buttercookie42 via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 Jun 2020 08:35:24 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-629804790-1591173322-sysbot+gh@w3.org>
buttercookie42 has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text] Ability to control hyphenation of proper nouns/capitalised words ==
As of #3927, the css-text spec has gained [the guidance](https://drafts.csswg.org/css-text-3/#valdef-hyphens-auto) that
> In some languages (such as English but not German), it may [be] appropriate to avoid having hyphenation opportunities in mixed case words, as those may indicate proper nouns

and Gecko has since implemented something like that.
That's all very nice, but now I've run precisely into [the concerns voiced here](https://github.com/w3c/csswg-drafts/issues/3927#issuecomment-492121209) [and here](https://github.com/w3c/csswg-drafts/issues/3927#issuecomment-492208808), namely that the default behaviour of the browser doesn't fit my own requirements [1], but I have currently no way of overriding it.

So as per
> Note that systems such as TeX (the `\uchyph` parameter) and InDesign (the "Hyphenate Capitalized Words" option in paragraph formatting) do expose this question to authors, recognizing that there is not a simple "correct" behavior that the application can universally use.

I'd like to have the same ability in CSS as well.


[1] I have a very narrow column of text, so

1. I am prepared to accept hyphenation even of proper nouns as preferable to the behaviour of `overflow-wrap: break-word`
2. For my content, automatic hyphenation seems to work well enough, so enabling automatic hyphenation and fixing up some possible instances of over-eager hyphenation with a Word Joiner is less work than having to sprinkle around soft hyphens everywhere.
3. That column is mostly written in Title Case, so any implementation basing its decisions on capitalisation will misdetect all those words as proper nouns and disable hyphenation without me actually wanting to.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5157 using your GitHub account
Received on Wednesday, 3 June 2020 08:35:27 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:09 UTC