servo / unicode-bidi

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

The reordering methods are a bit of a mess #106

Open Manishearth opened 1 year ago

Manishearth commented 1 year ago

I've improved the docs in https://github.com/servo/unicode-bidi/pull/105 but I think our API surface for reordering is kinda bad.

We have the following APIs (I recommend going through the docs in #105 as well if it's not been landed and published):

Concrete issues:

I think it might be worth doing a holistic overhaul of these after figuring out use cases, and deprecating the old APIs. I'm not particularly fond of the API surface of ICU4C either, I've always found it confusing.

cc @mbrubeck @sffc and maybe @markusicu