FAILURE MAP
← Case archive

FA-80475 / Bidirectional text layout / Member archive

Visual reordering by levels: highest level start · case 05

Numbers embedded at an even level inside RTL text read backwards.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input resolved levels of one line. From the highest level down to the lowest odd level on the line, reverse every maximal visual run of characters at that level or higher. Return logical indices in visual order (identity when no odd level).

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: highest level start[11, 10, 9, 5, 6, 7, 8, 4, 1, 0, 2, 3][11, 10, 9, 5, 6, 7, 8, 4, 0, 1, 2, 3]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 ↗