New issue
Advanced search Search tips

Issue 677263 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Hyphenation (CSS hyphens: auto) not optimal

Reported by m...@thomasbachem.com, Dec 28 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.28 Safari/537.36

Steps to reproduce the problem:
The attached test case shows that words are not hyphenated in an optimal way in Chrome and Safari compared to Firefox and IE/Edge.

What is the expected behavior?
The word "infrastructure" should be hyphenated as "infrastruc-ture", not "in-frastructure".

What went wrong?
From my testing, this doesn't seem to be a dictionary issue, but rather a non-optimal hyphenation strategy.

Did this work before? No 

Does this work in other browsers? N/A

Chrome version: 56.0.2924.28  Channel: beta
OS Version: OS X 10.11.2
Flash Version:
 
hyphenation.html
427 bytes View Download
chrome56-mac.png
24.5 KB View Download
safari9-mac.png
21.4 KB View Download
firefox50-mac.png
24.2 KB View Download
ie11-win7.png
16.7 KB View Download
firefox27-win7.png
73.0 KB View Download

Comment 1 by e...@chromium.org, Jan 2 2017

Owner: kojii@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 2 by kojii@chromium.org, Jan 5 2017

Status: WontFix (was: Assigned)
It looks like the Mac hyphenation dictionary has:
  in-frastructure

I checked the OS X API return values in the debugger, but Safari breaking the same way confirms that this is an OS issue. Note, Firefox uses its own dictionaries, not the one in OS X, so it's possible they do it differently.

If you think this is wrong for English hyphenations, can you please report this to Apple?

> From my testing, this doesn't seem to be a dictionary issue, but rather a non-optimal hyphenation strategy.

If you have reasons to believe so, please let me know.
Sorry, I should have added another test case to show why I came to that conclusion. Find it attached now. If only the word "infrastructure" gets hyphenated alone, there are many more breakpoints.
hyphenation-oneword.html
265 bytes View Download
oneword-chrome56-mac.png
5.4 KB View Download
I also observed that with many other words btw, which would mean that Apple's dictionaries are really bad.

Comment 5 by kojii@chromium.org, Jan 6 2017

Status: Assigned (was: WontFix)
#3: thank you, yeah, that looks weird. Let me re-open.

Comment 6 by kojii@chromium.org, Jan 6 2017

Status: WontFix (was: Assigned)
So here's what's happening.

OS X hyphenation API returns:
"infrastructure" -> "in-frastructure"
"frastructure" -> "fras-tructure"
"tructure" -> "truc-ture"

So you can get all these points hyphenated, but you can't get "infrastruc-ture".

Could you please report this to http://bugs.webkit.org, or to Apple developer program if you're member of? Chrome will automatically get the fix when OS X fixes.
Thanks, I created a WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=166757

Comment 8 by kojii@chromium.org, Jan 9 2017

Thank you!
Also reported at bugreport.apple.com, ID 29944454.

Sign in to add a comment