Bug 1211619 - rime-schemas not detected by fcitx5-rime on KDE Wayland
Summary: rime-schemas not detected by fcitx5-rime on KDE Wayland
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-22 16:58 UTC by Gordon Leung
Modified: 2023-06-03 17:03 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
rime WARNING file (1.45 MB, text/plain)
2023-05-30 17:38 UTC, Gordon Leung
Details
rime INFO file (1.55 MB, text/plain)
2023-05-30 17:38 UTC, Gordon Leung
Details
I can not see any extra installed rime schemas here (103.35 KB, image/png)
2023-06-02 14:47 UTC, Gordon Leung
Details
rime schema settings (158.14 KB, image/png)
2023-06-03 04:30 UTC, Marguerite Su
Details
jyptping selection (151.57 KB, image/png)
2023-06-03 10:02 UTC, Marguerite Su
Details
jyutping typing (151.57 KB, image/png)
2023-06-03 10:03 UTC, Marguerite Su
Details
jyut6ping3 typing (11.29 KB, image/png)
2023-06-03 10:10 UTC, Marguerite Su
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gordon Leung 2023-05-22 16:58:12 UTC
Steps to Reproduce:
1. Be on KDE Wayland (idk if this bug is only on KDE or if it is also on other desktops)
2. zypper in fcitx5-rime
(It will also install all of the rime-schemas which should be detected by rime)
3. Add rime as an input method
4. None of the additional rime schemas will be detected

It seems only the schemas in ~/.local/share/fcitx5/rime/build
are recognized, the other rime-schemas which are installed at
/usr/share/rime-data are not.

Additionally, I wonder if some of this may be caused by openSUSE
having out of date schemas (last updated 2021) and what can be done
to remedy this.
Comment 1 Takashi Iwai 2023-05-24 09:58:13 UTC
Marguerite, can you check this?

The fcitx5 packages have been updated very recently on OBS M17N project.
Gordon, could you verify whether the problem persists?
Comment 2 Marguerite Su 2023-05-29 13:50:56 UTC
1. you can provide /tmp/rime.fcitx-rime.ERROR to verify if /usr/share/rime-data is recognized.

2. you can try the version 20230528+git.cece251
Comment 3 Gordon Leung 2023-05-30 17:38:35 UTC
Created attachment 867303 [details]
rime WARNING file
Comment 4 Gordon Leung 2023-05-30 17:38:52 UTC
Created attachment 867304 [details]
rime INFO file
Comment 5 Gordon Leung 2023-05-30 17:39:59 UTC
(In reply to Marguerite Su from comment #2)
> 1. you can provide /tmp/rime.fcitx-rime.ERROR to verify if
> /usr/share/rime-data is recognized.
> 
> 2. you can try the version 20230528+git.cece251

I have tried the latest version by running
zypper in fcitx5-rime
again and it still does not detect the extra schemas. I did not encounter any ERROR file in my /tmp directory but I did find a INFO and WARNING file.
Comment 6 Marguerite Su 2023-06-02 14:11:17 UTC
1. please define "extra schemas", do you mean rime-schema-extra package? it has 15 different input method schemas.

2. if you don't have any ERROR file, then rime is working fine and /usr/share/rime-data is recognized.

In my test case, I delete  ~/.local/share/fcitx5/rime and try to input with /usr/share/rime-data only. and it works.
Comment 7 Gordon Leung 2023-06-02 14:47:08 UTC
Created attachment 867377 [details]
I can not see any extra installed rime schemas here
Comment 8 Gordon Leung 2023-06-02 14:50:32 UTC
See the screenshot I just posted. Here, I can not see for example the Jyutping rime schema that is already installed on my computer. I am looking at the "select layouts" menu for Rime and there is no "Cantonese" language option. So I click "Chinese" and then I can not find any Jyutping keyboard layout. Most of the other rime layouts are missing too. I also have a bopomofo rime schema installed but that too does not appear on this list. How do I get Rime to use the Jyutping schema?
Comment 9 Marguerite Su 2023-06-03 04:30:48 UTC
Created attachment 867388 [details]
rime schema settings

because it is a wrong place to find rime schema, it is the setting for keyboard layout.  keyboard layout is a diffferent stuff compared to "input method".
Comment 10 Marguerite Su 2023-06-03 04:44:06 UTC
1. “ps -A | grep fcitx” to verify you have fcitx5 started, or “fcitx5 -D” to start fcitx5, or simply “systemctl —-user start fcitx5”.
2. Add a “input method panel” widget to kde
3. Open a plain text editor like kwrite or find a place where you can input
4. Ctrl+Space to trigger fcitx5
5. Click the keyboard icon on the right bottom of your desktop, set the input method to “rime”
6. Click the planet icon in my screenshot
7. Click the schema you like
8. Input.
Comment 11 Gordon Leung 2023-06-03 04:47:38 UTC
The screenshot you posted does not show Jyutping (粵拼) or (粵語拼音) in the menu. I have tried your steps with the rime-schema-Jyutping package installed on my system and I do not see Jyutping as an option either. I do see other options, but no Jyutping.
Comment 12 Marguerite Su 2023-06-03 10:02:55 UTC
Created attachment 867389 [details]
jyptping selection

I didn't have it because I didn't use jyutping at all, and you seems to be new to rime, so:

1. sudo zypper in rime-schema-prelude rime-schema-jyutping
2. mkdir -p ~/.local/share/fcitx5/rime
3. vi ~/.local/share/fcitx5/rime/default.custom.yaml with content:

patch:
    schema_list/+:
        - schema: jyutping

and click the "redeploy" button.
Comment 13 Marguerite Su 2023-06-03 10:03:12 UTC
Created attachment 867390 [details]
jyutping typing
Comment 14 Marguerite Su 2023-06-03 10:08:10 UTC
btw:

rime-jyutping was deprecated back in 2019 because it doesn't have tones

rime-cantonese is the new jyut6ping3 with tone support.

sudo zypper in rime-plum rime-cantonese

rime-plum CanCLID/rime-loengfan

change ~/.local/share/fcitx5/rime/default.custom.yaml to:

patch:
     schema_list/+:
         - schema: jyut6ping3
         - schema: jyut6ping3_ipa
         - schema: jyutping

to enjoy all three type of jyutping
Comment 15 Marguerite Su 2023-06-03 10:10:32 UTC
Created attachment 867391 [details]
jyut6ping3 typing
Comment 16 Gordon Leung 2023-06-03 17:03:25 UTC
Thanks for the help Marguerite, now it works on my side. I do still find it strange that this extra configuration even needs to be done to enable the schemas but that is not a "bug" on openSUSE's side so I will close this issue.