-
Notifications
You must be signed in to change notification settings - Fork 4
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
BMP外字符判定不一致 #7
Comments
所有的BMP外的字符判定都有问题。比如“𪻐”字,会显示“共2字”。不应该使用UTF-16字符串的长度判定字数。 |
就是打文时有时打了个超集字,还以为打了个二字词,就回删,删多了。 |
这是一个已知问题,js默认判断字符的长度不包含超字集 |
以及文章中凡是有BMP外的字,乱序都出问题。比如来𪻐 -> �来�,那两个方框替代字符就是被拆开来的代理对。解决这个问题只需使用 |
bczhc
added a commit
to bczhc/easy-typer
that referenced
this issue
Apr 11, 2023
bczhc
added a commit
to bczhc/easy-typer
that referenced
this issue
Apr 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下方字符为U+10000,BMP外的字符。
上方字符为
𪻐
(U+2AED0),当跟打区为BMP内字符时,上方出现分开的UTF-16代理对。The text was updated successfully, but these errors were encountered: