FAILURE MAP
← Case archive

FA-80729 / Bidirectional text layout / Member archive

Per-line visual reordering: line-local indices · case 04

Visual orders for later lines refer to the first line.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input [paragraph levels, classes, paragraph level, line lengths]. For each logical line: reset trailing WS to the paragraph level, then reorder that line alone by level reversal (lowest odd level of the line). Return per line the paragraph indices in visual order.

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: line-local indices[[1, 0], [2, 1, 0], [1, 0], [0, 1]][[1, 0], [4, 3, 2], [6, 5], [7, 8]]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 ↗