Open Bug 672996 Opened 14 years ago Updated 2 years ago

The word uncoöperative should have a break opportunity between o and ö with hyphens:auto

Categories

(Core :: Layout: Text and Fonts, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: Waldo, Unassigned)

References

()

Details

A few of us were discussing crazy hyphenation insanity in various languages, and I mused about how words with diaereses in them should auto-hyphenate. Would hyphenation remove the diaeresis, or would it preserve it? There's no reason why it should stick around -- with the hyphen, there's no ambiguity to elucidate. I have no idea whatsoever what "should" happen here as far as special modifications to the existing text might go, for words with diaereses. But even if nothing overly special should be done, it looks to me like the hyphenation dictionary *might* not know of ö as presenting the same hyphenation opportunities as o would. So that appears to need fixing regardless.

'hyphens: auto' requires the language to be defined, known and be valid in the first place. The lang attribute value should be valid and - in my opinion - the text for which hyphenation can occur must be found in some dictionary or in the hyphenation resource fetched by the browser.

"
Correct automatic hyphenation requires a hyphenation resource appropriate to the language of the text being broken. The UA must therefore only automatically hyphenate text for which the content language is known and for which it has an appropriate hyphenation resource.
"
CSS3 Text, section 5.4 Hyphenation: the hyphens property, 'hyphens: auto' description
https://www.w3.org/TR/css-text-3/#valdef-hyphens-auto

Jeff, in your code example, there is no lang attribute specification given.

WithOUT lang="en":
data:text/html;charset=UTF-8,<style>div { width: 6em; hyphens: auto; border: black solid medium; }</style><div>uncooperative uncooperative uncooperative uncooperative</div>
and there is no hyphenation occuring in Firefox Firefox 68.2.0esr.

With lang="en":
data:text/html;charset=UTF-8,<style>div { width: 6em; hyphens: auto; border: black solid medium; }</style><div lang="en">uncooperative uncooperative uncooperative uncooperative</div>
and here, hyphenation occurs.
This works as expected and according to spec in Firefox 68.2.0esr.

In my opinion, this bug report is INVALID.

"hyphenation is not applied when language is not specified"
has been tested too
https://dxr.mozilla.org/mozilla-central/source/layout/reftests/text/auto-hyphenation-8.html

The lang restriction probably didn't exist at the time this bug report was filed and wasn't the point of the report. I've fixed the URL.

I think it is invalid for other and different reasons. "uncoöperative" is not an English word. So why should it be hyphenated?
I have filed another bug report - bug 1599649 - , btw, which is why I commented in here because I was searching for a duplicate.

"uncoöperative" is a valid English spelling, although not commonly seen in modern usage. https://www.dictionary.com/browse/dieresis

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.