Repository navigation
Conversation
Fixes typst#5543 and typst#7646 where justified text for languages like Thai break before spaces and punctuation.
This was referenced Nov 10, 2026
|
Following the #9057 discussion and unicode-org/icu4x#8381, could we add a layout regression test for a Thai word joined by U+2060 and followed by more Thai text? The classic segmenter keeps the boundary after the joined word, while the neo segmenter does not: --- thai-word-joiner paged ---
#set page(width: 50pt)
#set text(lang: "th")
ประกัน\u{2060}ภัยดีExpected: a break after
This test would lock the classic behavior now and give #9057 a reference once the neo run splitting is fixed upstream (unicode-org/icu4x#8381). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5543, fixes #7646.
Upgrades
icu_segmenterto 2.4.0. In previous versions, there was a bug in which languages like Thai, Khmer, Lao, and Burmese can have breakpoints before spaces and punctuations, causing justified text to sometimes throw lone spaces or punctuations at the start of a new line. This was fixed in unicode-org/icu4x#8574.Also adds regression tests in
issue-5543-linebreak-thai-justified-spaceandissue-7646-linebreak-thai-justified-punctuations.