Re: [csswg-drafts] [css-text] For most languages, hyphens:auto should not hyphenate Capitalized words (#3927)

@arknu 

While it is perfectly ok to disagree with something and make your opinion known, I would like to encourage you to tone down the virulence of your messages. The kind of language you have been using is not appropriate.

Further more, it seems that you're reacting to the title of this issue, some early comments, or maybe to what certain browsers have been doing on their own, rather than to what has actually been added in the spec, as it doesn't state what you seem to be railing against.

> whoever made this change knew English and a little German and left it at that, not bothering to research the issue more broadly. If that had been done, it would have been discovered immediately that this would not work in most languages.

The spec *does not* give specific rules for English and Germans. It states that this varies per language, and gives English and German as example of languages with different expectations.

The spec contains an exhortation to implementers to be mindful of differences between languages, and explicitly does not define the rules to apply in each language.

> But not hyphenating the first word in a sentence is the really critical bit here. Whoever thought that was a good idea?

Nobody thought it was a good idea, and the spec does not say anything about not hyphenating the first word of a sentence, nor does it tell browser not to hyphenate all capitalized words (which would indeed include the first word of a sentence).

As a reminder, this is what was added to the spec.

> Authors should correctly tag their content’s <a lt="content language">language</a>
> (e.g. using the HTML <code>lang</code> attribute
> or XML <code>xml:lang</code> attribute)
> in order to obtain correct automatic hyphenation.
> 
> The UA may use language-tailored heuristics
> to exclude certain words
> from automatic hyphenation.
> For example, a UA might try to avoid hyphenation in proper nouns
> by excluding words matching certain capitalization and punctuation patterns.
> Such heuristics are not defined by this specification.
> (Note that such heuristics will need to vary by language:
> English and German, for example, have very different capitalization conventions.)

This text does not state that all words with capital letters must be prevented from hyphenating. Nor does it say that that must happen in all languages except German. Please calm down. If you find what the spec does say problematic, please be specific about which part is the source of you issue, and what you think should be stated instead.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 23 April 2022 09:00:10 UTC