Skip to content

CJK line breaking should not result in leading commas. #105

Closed

Description

@rowland
No description provided.

Activity

  1. rowland commented on Aug 14, 2026

    @rowland
    OwnerAuthor

    Resolved by #106 (cc271e2, merged as da80a3a).

    Line-break opportunities now come from the Unicode 17 UAX #14 segmenter instead of the previous ad hoc CJK rule. Regression coverage explicitly verifies that no soft break is allowed before CJK closing/nonstarter punctuation—including ,、。!?)】」』》〉々—and an end-to-end rich-text wrapping test verifies that wrapped lines never begin with those characters. Opening punctuation is similarly prevented from ending a line.

    Verified with go test ./wordbreaking ./rich_text ./ltml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions