Repository navigation
Treat emoji presentation sequences as fullwidth - #35
Jules-Bertholet wants to merge 13 commits into
Conversation
|
In terms of UTS 51 conformance, with this PR, this crate will give the correct widths for:
However, it may overestimate (though never underestimate) the rendered widths of: |
|
I've replaced the binary search with a better datastructure, and also added a section in the rustdoc documenting the full width rules. |
|
The not-yet-released Unicode 16 adds 8 new non-emoji standardized variation sequences that affect width: https://unicode.org/alloc/Pipeline.html#variation_sequences, https://www.unicode.org/L2/L2023/23212r-quotes-svs-proposal.pdf. In time, we'll need to support those as well. |
Faster and smaller!
Ensure rows don't cross cache lines, makes a small difference in the benchmarks
|
This PR is bloated, I'm splitting it up. |
UAX11 says:
Lookup is done with a 2-level trie.