nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

Non-ascii character problem in menu name shortening #82

Closed milisarge closed 1 year ago

milisarge commented 1 year ago

nwg-drawer makes shortening for long names, one of the desktop files looks like below

resim

Related desktop file name is Name[tr]=Milis Ekran Görüntüsü

nwg-piotr commented 1 year ago

I'm afraid it's unavoidable in UTF-8 encoding. Your ü is actually ü.

milisarge commented 1 year ago

if the character is utf-8 then can't it be trim minus/plus one?

nwg-piotr commented 1 year ago

It's not as simple as +/- one. Probably doable, but needs to wait for me to have nothing more urgent to do.

nwg-piotr commented 1 year ago

Could you run from the fix82 branch and tell me if it helps? In Polish it seems to look well.

milisarge commented 1 year ago

excellent, Turkish locale don't have a problem either.

nwg-piotr commented 1 year ago

Very well. Thanks for confirmation. I'll merge and release today.