10BC0 [css-text-3] Hyphenation usages in CJK · Issue #785 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-text-3] Hyphenation usages in CJK #785

@kojiishi

Description

@kojiishi

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, but since pages have lang=ja, hyphenations don't work.
  • Tried word-break: break-all, but Gecko and WebKit ignore CJK line breaking rules, and hit a bug 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.

Thoughts?

/cc @upsuper @fantasai @frivoal @r12a

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0