FAILURE MAP
← Case archive

FA-80550 / Bidirectional text layout / Member archive

Explicit embedding stack: override scope · case 05

Punctuation inside an override keeps its own class.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [classes, paragraph level, max depth]. RLE/RLO push the next odd level, LRE/LRO the next even level (RLO/LRO set an R/L override, RLE/LRE clear it) if the level <= max depth and no overflow is pending, else count an overflow. PDF first cancels an overflow, else pops if above the base. Codes get level "x" and class BN; other characters take the top level and the override class if any. Return [levels, 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: override scope[[0, "x", 1, 1, "x", "x"], ["R", "BN", "ON", "R", "BN", "BN"]][[0, "x", 1, 1, "x", "x"], ["R", "BN", "R", "R", "BN", "BN"]]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 ↗