Line breaking for Chinese, Japanese, Korean and Thai, in the browser and in WeasyPrint #1052
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#1052
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Spun out of #269 (its "From #71" point 4).
Chinese (
zh-Hans,zh-Hant) is selected for 0.5, and Japanese, Korean and Thai are in the ordering for later releases. None of these scripts puts spaces between words, so line breaking cannot rely on spaces.,。)」at the start of a line, and no opening punctuation such as(「at its end.word-break: normaltreats Hangul like CJK). Korean text usually wantsword-break: keep-all.What to check
overflow-wrap: anywhere,wrap-anywhere) are fine for CJK but wrong for Korean.hyphens: autoandtext-align: justifyin the themes do nothing harmful to CJK.Done when
zh-Hansandthat 320 px wide, with no horizontal scroll and no line starting with closing punctuation.zh-Hansandththrough WeasyPrint and checks that no line of the text layer starts with closing punctuation, and that Thai breaks only between words.kousesword-break: keep-all(:lang(ko)).