servo / unicode-bidi

Implementation of the Unicode Bidirection Algorithm in Rust
Other
77 stars 33 forks source link

Implement L1: Adjust levels of whitespace characters #2

Closed mbrubeck closed 7 years ago

mbrubeck commented 9 years ago

The visual_runs function does not yet implement step L1, which defines steps for adjusting the levels of certain whitespace and formatting characters.

In Gecko this is performed in nsBidi::AdjustWSLevels and nsBidi::SetTrailingWSStart.

This may also be a good place to adjust levels for removed_by_x9 characters, as in nsBidi::AdjustWSLevels.