gnome-shell-extension-clipboard-indicator icon indicating copy to clipboard operation
gnome-shell-extension-clipboard-indicator copied to clipboard

Incorrect character length limit align in CJK

Open sky96111 opened this issue 3 years ago • 3 comments

CJK characters account for double space in display. This extension treats a CJK character as one character. If words in clipboard reach the set limitation, display will break align and widen a 100% blank on the right of non-CJK words.

This is an example in 35 character limitation: 2021-08-14 17-11-17 的屏幕截图.png

sky96111 avatar Aug 14 '21 09:08 sky96111

Hmm, interesting issue. Thank you for reporting :)

Tudmotu avatar Nov 14 '21 13:11 Tudmotu

I guess we can change the ellipsis to be based on pixel width of preview, instead of characters. Marking as "up for grabs" in case anyone would like to tackle this issue.

Tudmotu avatar Nov 14 '21 13:11 Tudmotu

Fixed in https://github.com/SUPERCILEX/gnome-clipboard-history/commit/95009895d3452f9232b97d6a7f0f3f75a0749895

SUPERCILEX avatar Mar 12 '22 20:03 SUPERCILEX