W3C home > Mailing lists > Public > www-international@w3.org > October to December 2016

[csswg-drafts] Issue: [css-text-3] Hyphenation usages in CJK marked as i18n-comment

From: r12a via GitHub <sysbot+gh@w3.org>
Date: Thu, 08 Dec 2016 16:54:57 +0000
To: www-international@w3.org
Message-ID: <issues.labeled-192884913-None-sysbot+gh@w3.org>
r12a has just labeled an issue for https://github.com/w3c/csswg-drafts
 as "i18n-comment":

== [css-text-3] Hyphenation usages in CJK ==
Got a feedback from Japanese web developers that there's no good way 
to minimize expansions of justified text.

If the text is purely CJK, there won't be much expansions; mostly only
 at break exceptions, but when long English words appear in the CJK 
text, lines may expand too much. He then:

* Tried [`hyphens: 
auto`](https://drafts.csswg.org/css-text-3/#valdef-hyphens-auto), but 
since pages have `lang=ja`, hyphenations don't work.
* Tried [`word-break: 
but Gecko and WebKit ignore CJK line breaking rules, and hit [a 
bug](http://crbug.com/668399) in Blink.
* Using full-width alphabet (breaks like `break-all`) is technically 
possible but don't want to take that route.

So I'm thinking a few possible ideas:

* `hyphens-lang` to override the languages only for hyphenations.
* For languages that do not hyphenate, but often mix English, 
automatically fallback to English.


/cc @upsuper @fantasai @frivoal @r12a

See https://github.com/w3c/csswg-drafts/issues/785
Received on Thursday, 8 December 2016 16:55:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:11 UTC