Skill Wiki v0.1.0
rule @community/rule-cjk-line-break

Cjk Line Break

Containers that may render CJK text MUST set `lang` correctly on the HTML element (lang='ja', 'zh-Hans', 'zh-Hant', 'ko') and use `line-break: strict` (or `normal` with explicit `word-break: keep-all` where words must no…

Skill
@community
Domain
i18n
Version
1.0.0
Quality
4.0
Edges
5 out · 4 in
Tokens
190/508/1104
$ prime install @community/rule-cjk-line-break

Projection

Always in _index.xml · the agent never has to ask for this.

CjkLineBreak [rule] v1.0.0

CJK (Chinese/Japanese/Korean) text must use language-aware line-breaking rules. CSS line-break and word-break properties have language-specific semantics that change which characters may start or end a line (kinsoku shori in Japanese).

Containers that may render CJK text MUST set lang correctly on the HTML element (lang='ja', 'zh-Hans', 'zh-Hant', 'ko') and use line-break: strict (or normal with explicit word-break: keep-all where words must not split). Never apply Latin-only word-break: break-all to CJK content — it produces grammatically broken lines that violate JIS X 4051 / GB/T 15834 rules. For mixed Latin+CJK, prefer overflow-wrap: anywhere on Latin tokens only or use <bdi> boundaries.

Source

prime-system/examples/frontend-design/primes/compiled/@community/rule-cjk-line-break/atom.yaml

Compiled at 2026-05-07