Bug 1547337

Summary: ibus-kkc won't let me add words to dictionary under Wayland
Product: [Fedora] Fedora Reporter: tetsuji-rai
Component: ibus-kkcAssignee: Daiki Ueno <dueno>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: dueno, i18n-bugs
Target Milestone: ---Keywords: FutureFeature, i18n
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1627014 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1627014    

Description tetsuji-rai 2018-02-21 01:35:37 UTC
Description of problem:

In kana mode which I like, KKC won't let me add words to the dictionary, while in Roma-ji mode, it works fine.

Version-Release number of selected component (if applicable):
I use Fedora 27, but other version should be applied to.

How reproducible:
Always.

Steps to Reproduce:
1.Select a word (usually kanji word) with mouse.
2.Hit Alt+r (nothing happens then)
3.Enter its reading

Actual results:
No words are recorded.

Expected results:
Words are added to the dictionary.

Additional info:
It works in Romaji-mode.

Comment 1 tetsuji-rai 2018-02-21 18:36:11 UTC
Correction:

It doesn't work either in Romaji-mode.

Comment 2 Jens Petersen 2018-10-04 05:56:21 UTC
Could you file this upstream too please?

https://github.com/ueno/ibus-kkc/issues

Comment 3 Daiki Ueno 2018-10-04 07:43:00 UTC
That wouldn't work on Wayland, because the engine process doesn't have a window and thus cannot get a clipboard. I have no idea how it could be solved; maybe a protocol modification might be needed at some level, like:
https://bugzilla.gnome.org/show_bug.cgi?id=775099

Comment 4 Jens Petersen 2018-10-18 03:42:44 UTC
BTW is there any manual workaround?
I mean like a way to add words outside pre-edit say.

Comment 5 Daiki Ueno 2018-10-18 07:42:44 UTC
The manual workaround is to just edit ~/.config/ibus-kkc/dictionaries/segment, though it's cumbersome.

Another work around would be to use surrounding-text to mark the committed text (like re-conversion in some other engines) instead of clipboard, though it would require extra key bindings.

Comment 6 Jens Petersen 2018-11-01 03:31:14 UTC
I see, thanks.

Maybe Alt-R could just popup a dialog to allow the user to add to the dictionary?

Comment 7 Jens Petersen 2018-11-01 03:32:06 UTC
Or maybe it is better to handle it inside ibus-setup-kkc?