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

emoji encoding exception #46

Open
sunwanxin213 opened this issue Feb 6, 2023 · 5 comments
Open

emoji encoding exception #46

sunwanxin213 opened this issue Feb 6, 2023 · 5 comments

Comments

@sunwanxin213
Copy link

截屏2023-02-06 23 33 26

截屏2023-02-06 23 34 07

截屏2023-02-06 23 34 50

I changed the code format, but the content is consistent with the warehouse.
In the first picture, the left side is the Typr.js effect, and the right side is the correct effect.
At present, it seems that this is due to the lack of support for emoji special coding.

@sunwanxin213
Copy link
Author

At the same time, I'm also trying to support gradients. At present, there are still some bugs. When the preparation is completed, I will submit the code for review.

@photopea
Copy link
Owner

photopea commented Feb 6, 2023

When I do this in JS

"🧜‍♂".length

It prints "4".

@sunwanxin213
Copy link
Author

截屏2023-02-06 23 50 57

I read the relevant literature. Is he supposed to be like this?

UInt32 (first emoji)+hyphen (UInt16)+UInt32 (second emoji)=combined emoji

https://unicode.org/reports/tr51/#Proposals

@sunwanxin213
Copy link
Author

and in js hyphen length = 0

@sunwanxin213
Copy link
Author

I'm not sure. Although I mentioned issue, I will try to fix it.

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

No branches or pull requests

2 participants