Module bidi
Expand description
Optional bounded single-line Unicode bidirectional ordering, before shaping.
Structs§
- Bidi
Line - Borrowed complete single-line text with resolved base/byte levels and visual runs, using unicode-bidi’s pinned Unicode 16.0 data. No wrapping, script/font segmentation, glyph mirroring/combining reordering, caret or native UI is added. The downstream shaper owns mirroring/marks within each original logical run.
- Visual
Text Run - Logical UTF8 byte range in visual run order. Feed each original slice to a shaper with this direction; do not reverse its characters before shaping. Levels are line-adjusted Unicode embedding levels, not font/script boundaries.
Constants§
- MAXIMUM_
BIDI_ RUNS - Visual directional runs returned after line ordering; backend work may allocate before this bound is checked. Processing belongs on UI/worker threads.