Skip to content
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

Parts of content are truncated when CJK characters are included #12

Open
ghost opened this issue May 25, 2023 · 2 comments
Open

Parts of content are truncated when CJK characters are included #12

ghost opened this issue May 25, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented May 25, 2023

Tested on Gnome 44.

I found that the contents were cut off when CJK (Chinese, Japanese, Korean) characters were included.

image command explanation
image notify-send -i dialog-warning "[テスト]緊急地震速報(気象庁)" "14時46分宮城県仙台市東70km南西12km海域でマグニチュード7.2地震発生\n発表:14時47分\nダミー データ\nダミーデータ" The 発表:14時47分\nダミー データ\nダミーデータ after \n is gone.
image notify-send -i dialog-warning "[テスト]緊急地震速報(気象庁)" "14時46分宮城県仙台市東70km南西12km海域でM7.2地震発生\n発表:14時47分" The content after the 25th character has been replaced with ....

GNOME's built-in notification extension (hover expands notifications) displays the full content normally.
image

I used google translator. If there are any sentences you don't understand, please let me know!

@ghost
Copy link
Author

ghost commented Jul 17, 2023

I did some tests.
To summarize the cause, it incorrectly calculates the expanded message height when it contains CJK characters(By modifying the code and making the height large enough, the invisible text appeared)
I'm assuming it's miscalculating the height from Gtk or Gnome, not the extension, but I'm not sure about this.

@kaanginam
Copy link
Owner

Sorry for the late response! Is this still an issue?

I believe that it's gnome calculating the lines incorrectly - but I'll try to find a way to get it right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant