deckcraft/crates/text
Brandon Thomas 6c4bcedbbc Text: soft hyphens show a hyphen where a line breaks; no break after zero-width space or before em dash
Observed on PowerPoint's export of long joined words:
- a line broken at a soft hyphen (U+00AD) ends with a visible hyphen ("Softhyphenatedwordsina-");
  DeckCraft broke there but drew nothing. The hyphen now takes its room on the line;
- PowerPoint does not break after a zero-width space (it splits the word where it overflows
  instead), where UAX #14 allows a break;
- an em dash ends a line but never starts one ("Em—dash—joined—" / "words—that—are—long—"),
  where UAX #14 allows a break before it too.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-13 06:46:02 -04:00
..
src Text: soft hyphens show a hyphen where a line breaks; no break after zero-width space or before em dash 2026-10-13 06:46:02 -04:00
Cargo.toml Fields: date fields show today's date in their own format (#36) 2026-10-10 06:25:32 -04:00