Skip to content

viewer: banner wrap can split a base character from its combining mark #438

Closed

Description

@ElbertePlinio

The banner wrap breaks a word that is wider than the line by character (fitting_prefix in crates/pickforge-viewer/src/ui.rs, from #367). A break can fall between a base character and its combining mark, so the next line starts with a detached mark.

Seen in QA for #421 (PR to come) with an attention message of 250 ideographs, each followed by U+1AB0, written without spaces: the second and third banner lines start with a lone mark. The same split can happen with Latin text in decomposed form, such as e followed by U+0301, when a long word wraps.

  • Break long words only at grapheme cluster boundaries
  • Test a wrapped word with combining marks, so no line starts with a mark
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions