Fallback hyphenation locale
When the `lang` attribute does not match the hyphenation dictionary exactly, this patch computes fallback languages, by incrementally removing the last component separated by U+002D HYPHEN-MINUS character. This allows, for instance, `lang="fr-fr"` or `lang=`fr-ca`" to find the `fr` dictionary. Bug: 815059 Change-Id: Ia4b76621dfb18b5aef604e8c7351ed9322f056dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505353 Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Kent Tamura <tkent@chromium.org> Reviewed-by:
Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#822059}
Showing
Please register or sign in to comment