Bug 1547337 - ibus-kkc won't let me add words to dictionary under Wayland
Summary: ibus-kkc won't let me add words to dictionary under Wayland
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus-kkc
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Daiki Ueno
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1627014
TreeView+ depends on / blocked
 
Reported: 2018-02-21 01:35 UTC by tetsuji-rai
Modified: 2018-12-12 03:45 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 1627014 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

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?


Note You need to log in before you can comment on or make changes to this bug.