FAILURE MAP
← Case archive

FA-80278 / Typography line breaking / Member archive

Single-letter and unit bindings: unit binding direction · case 03

Units are separated from their numbers.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input [words, width]. A single-letter preposition/conjunction (a i o u v z k s w, any case) is bound to the following word, chaining; a number (digits with optional . or , decimal) is bound to a following unit (kg km cm mm % pt px). Bound groups are unbreakable; greedy fill of groups with unit spaces; an overwide group is set alone. 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: unit binding direction["o i k V text", "kg 2.5", "kg cm"]["o i k V text", "kg", "2.5 kg", "cm"]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 ↗