pytermgui icon indicating copy to clipboard operation
pytermgui copied to clipboard

[BUG] Chinese text length is miscalculated

Open Yooootsuba opened this issue 3 years ago • 2 comments
trafficstars

In my case, I want to use Chinese texts to display some infomations, and that broke the box's side.

Does there any solutions for this?

Screenshot from 2022-09-22 16-35-59

Yooootsuba avatar Sep 22 '22 08:09 Yooootsuba

Chinese characters are a bit hard to handle, since their Unicode representation doesn't clearly show their lengths. I will look into fixing this in the future, thanks for the report!

bczsalba avatar Sep 23 '22 12:09 bczsalba

Chinese characters are a bit hard to handle, since their Unicode representation doesn't clearly show their lengths. I will look into fixing this in the future, thanks for the report!

Thanks for your reply. Looking forward to your patches ! :smile:

Yooootsuba avatar Sep 24 '22 04:09 Yooootsuba