Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supplementary plane optimazation #25

Closed
Clayblockunova opened this issue May 22, 2021 · 2 comments
Closed

supplementary plane optimazation #25

Clayblockunova opened this issue May 22, 2021 · 2 comments

Comments

@Clayblockunova
Copy link
Contributor

Clayblockunova commented May 22, 2021

currently, supplementary plane characters like emojis are escaped into 2 surrogate characters. But current JS have alternate methods to treat supplementary plane characters as single character, i.e. String.fromCodePoint(), decodeURI() (like unescape() but treat standard UTF8 better) and \u{XXXXXX}(alternate Escape sequence). when will those be supported?

@fasttime
Copy link
Owner

That's a good point. I was planning to work on number encoding (#9) first, since that alone would improve the length of many character encodings even in the BMP character range, but I haven't been very active here lately. The optimization you describe is probably simpler and can be done first.

@fasttime
Copy link
Owner

This is now implemented in JScrewIt 2.28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants