Skip to content

[css-text] For most languages, hyphens:auto should not hyphenate Capitalized words #3927

@jfkthame

Description

@jfkthame

When auto-hyphenation is in use, I believe that in most languages - with German being the major exception - it would be preferable for browsers not to hyphenate capitalized words, which will often be proper nouns. In many cases authors and readers will prefer that names (of people, companies, etc) not be split, and in addition hyphenation rules designed for the "normal" words of a language may fail to hyphenate many names appropriately.

(https://bugzilla.mozilla.org/show_bug.cgi?id=1550532 was recently filed against Gecko about this issue.)

The CSS Text 3 spec explicitly does not specify exactly where hyphenation opportunities occur when hyphens:auto is used. However, I would suggest adding an informative note to the spec, suggesting that browsers may want to suppress auto-hyphenation of capitalized words except when the hyphenation language in use is German.

For CSS Text 4, perhaps a property should be introduced to allow authors to explicitly control this behavior; e.g. hyphenation-capitalized-words: auto | yes | no, where yes and no would have the obvious meaning, and auto would tell the browser to use whatever heuristics it may have, such as considering the current language.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions