I'm struggling with the different ways browsers handle hyphenation for justified text from line to line. I have the following css settings for my text:
text-align: justify;
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
My language setting is en
. One word that is being handled inconsistently is "expressing":
Chrome: no hyphenation
Firefox: express-ing [correct!]
IE11: express-ing [correct!]
Safari: express-ing [correct!]
Bafflingly, Safari is able to hyphenate the German word "Gesamtkunstwerk":
Chrome: no hyphenation
Firefox: no hyphenation
IE11: no hyphenation
Safari: Gesamtkunst-werk [correct!]
I have no idea how Safari is sensing that the word is German and is hyphenating it. Any ideas?
The CSS3 specification indicates a hyphenate-resource
option, but I've found no example files to include and/or edit. Ideally, if that option is supported among the major browsers, I'd include it and want to edit it for non-English words as well as editing its defaults.
What is the best approach?