Files
wordcraft/crates/layout
Gabriel Matozo 37809cf380 List labels: a right-to-left label mirrors its brackets (#2916)
A list label is shaped with `Dir::Guess`, so a label of digits and brackets has
no run the shaper sees as right to left; the clusters were then reordered for
the right-to-left paragraph and the brackets drawn unmirrored, so "(%1)" came
out ")1(", as #2916 reports.

The label is shaped with the bidi levels of its own text now, as the paragraph
body and the atomic objects already are, so UAX #9 L4 mirrors the brackets of
the runs the levels report as right to left; the visual reorder the paragraph
direction asks for stays. A "1." label is unchanged.
2026-10-21 09:33:05 -03:00
..