FAILURE MAP
← Case archive

FA-80282 / Typography line breaking / Member archive

Single-letter and unit bindings: decimal number detection · case 02

Decimal quantities like 2.5 or 1,5 are split from their units.

Member previewVariant 2 · 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: decimal number detection["z dom\u011b", "s V s s s k 2.5", "cm 10 k"]["z dom\u011b", "s V s s s k 2.5 cm", "10 k"]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 ↗