Bug 431059 - Chinese input method does not work properly in the annotation tool
Summary: Chinese input method does not work properly in the annotation tool
Status: RESOLVED UPSTREAM
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 20.12.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-02 12:11 UTC by Zk Wang
Modified: 2021-01-03 01:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screen Record (2.48 MB, audio/ogg)
2021-01-02 12:11 UTC, Zk Wang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zk Wang 2021-01-02 12:11:06 UTC
Created attachment 134465 [details]
Screen Record

SUMMARY

When I used the textbox in the annotation tool, I cannot input chinese characters properly. During typing, the cursor in the text box always automatically went back. It was annoying. However, when I copied a piece of text from another location, there was no such problem.

STEPS TO REPRODUCE
1. Take a screen shot.
2. Open the annotation tool.
3. Add a text box.
4. Type "你好" with a Chinese input method in the text box.

OBSERVED RESULT

When I typed "你好[space]",the cursor went back between "你" and "好" like "你|好".


EXPECTED RESULT

The cursor should appear after the character "好" (i.e., "你好|").


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2
Xcb Window System

ADDITIONAL INFORMATION
I submit a screen shot video in the attachment.
Comment 1 Nicolas Fella 2021-01-02 13:08:26 UTC
Annotations use the kImageAnnotator library (https://github.com/ksnip/kImageAnnotator/) from ksnip (https://github.com/ksnip/ksnip). Does it work properly in ksnip? If not it's likely an issue with the library and should be reported there
Comment 2 Zk Wang 2021-01-02 13:10:46 UTC
(In reply to Nicolas Fella from comment #1)
> Annotations use the kImageAnnotator library
> (https://github.com/ksnip/kImageAnnotator/) from ksnip
> (https://github.com/ksnip/ksnip). Does it work properly in ksnip? If not
> it's likely an issue with the library and should be reported there

I met the same issue with ksnip too. I will report the bug there.
Comment 3 Nicolas Fella 2021-01-02 13:12:45 UTC
Thank you :)
Comment 4 Dale Wang 2021-01-03 01:26:46 UTC
(In reply to Nicolas Fella from comment #3)
> Thank you :)

The bug will be fixed in kImageAnnotator v0.4.1. 

https://github.com/ksnip/kImageAnnotator/issues/186