[Webkit-unassigned] [Bug 147310] New: [GTK] [EFL] Hyphenation can never work in practice due to requirements on lang tags
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 26 13:14:27 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=147310
Bug ID: 147310
Summary: [GTK] [EFL] Hyphenation can never work in practice due
to requirements on lang tags
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at igalia.com
There is another reason besides the vendor prefix that our hyphenation support does not work on any site. WebKit requires an appropriate language declaration in order to hyphenate text. For example, this works in WebKit:
<html lang="en_US">
But that doesn't work in Firefox. Firefox requires either of:
<html lang="en-US">
<html lang="en">
Neither of which work in WebKit!
Note that en_US matches the dictionary name hyph_en_US.dic, but it is not a valid lang tag according to any reference I could find (e.g. [1] [2]), so I don't see why it should work. en and en-US are both valid lang tags. en-US should definitely work; it would be nice to make en work as well, picking some default country code for each language if possible, since that is what Firefox does [3].
But all of our layout tests explicitly test to make sure en_US works and that en does not work (but does not check en-US), e.g. fast/text/hyphenate-locale.html... (what does fast stand for?). They are using the -webkit-locale tag rather than the lang tag, though; presumably those are not equivalent.
I will pile on to this bug: the lang tag should be case-insensitive according to [1], but I believe we treat it as case-sensitive.
[1] http://tools.ietf.org/html/bcp47
[2] http://www.w3.org/International/articles/language-tags/
[3] https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150726/16114820/attachment.html>
More information about the webkit-unassigned
mailing list