h-m-m icon indicating copy to clipboard operation
h-m-m copied to clipboard

Support wide character display and input method

Open jheroy opened this issue 10 months ago • 2 comments

image

As shown in the figure, the Chinese node is misaligned. Each time an input method is selected in the input box, a new line is generated.

jheroy avatar Mar 30 '24 07:03 jheroy

Thanks for fixing it yourself @jheroy . I didn't know about the difference between mb_strwidth and mb_strlen!

There's something else that can be fixed for wide characters: When the active node doesn't have any children, its highlighted area is bigger than expected, and when it does have children, its children are further away from it than expected. Would you like to fix it yourself as well? :)

nadrad avatar Apr 07 '24 12:04 nadrad

Thanks for fixing it yourself @jheroy . I didn't know about the difference between mb_strwidth and mb_strlen!

There's something else that can be fixed for wide characters: When the active node doesn't have any children, its highlighted area is bigger than expected, and when it does have children, its children are further away from it than expected. Would you like to fix it yourself as well? :)

I submitted a new pull request at #74.

jheroy avatar Apr 09 '24 03:04 jheroy