FAILURE MAP
← Case archive

FA-80438 / Bidirectional text layout / Member archive

Neutral run resolution: neutral run grouping · case 03

Neutral runs resolve piecemeal with inconsistent directions.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input [resolved weak classes, sos, eos, embedding level]. A maximal run of neutrals (ON, WS, B, S) takes the direction of its surrounding strong types when both sides agree (EN and AN count as R; sos/eos at the edges); otherwise the embedding direction (L for even level, R for odd). Return classes.

Why this case matters

Mixed right-to-left and left-to-right text must resolve levels and visual order exactly, or words, numbers and carets land in the wrong place.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: neutral run grouping["L", "L", "L", "EN", "L", "L", "R", "R", "R"]["L", "L", "L", "EN", "R", "R", "R", "R", "R"]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 ↗