FAILURE MAP
← Case archive

FA-80212 / Typography line breaking / Member archive

Ragged-right hyphenation zone: zone boundary · case 02

Words are not hyphenated when the slack exactly equals the zone.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input [words as syllables, width, zone, min word length, min chars before, min chars after, hyphenate capitals]. Greedy fill. A word that does not fit may be hyphenated only if the slack left on the line (width minus current text minus the separating space) is at least the zone, the word has at least min-word characters, and (capitals allowed or its first letter is not uppercase). Pick the latest syllable boundary with head >= min before and tail >= min after chars whose head plus "-" fits. Return lines.

Why this case matters

Line breaking decides where paragraphs wrap on screen and in print; a wrong decision point shifts every following line.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: zone boundary["typography hy-", "phenated of", "ragged hyphen-", "ated eBooking", "eBooking impor-", "tant the only"]["typography hy-", "phenated of rag-", "ged hyphenated", "eBooking eBook-", "ing important", "the only"]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗