FA-80717 / Bidirectional text layout / Member archive
Per-line visual reordering: trailing whitespace per line · case 02
Spaces at the end of wrapped lines jump to the far side.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: trailing whitespace per line | [[0, 1, 2, 3], [8, 4, 5, 6, 7], [9], [10]] | [[3, 2, 1, 0], [8, 4, 5, 6, 7], [9], [10]] | 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 ↗