rime / plum

東風破 /plum/: Rime configuration manager and input schema repository
GNU Lesser General Public License v3.0
1.32k stars 122 forks source link

Let `bash rime-install pinyin-simp' support fcitx-rime frontend. #41

Closed hongyi-zhao closed 3 years ago

hongyi-zhao commented 3 years ago

On Ubuntu 20.04, I try to install rime-pinyin-simp schema for the fcitx backend with the following steps:

$ git clone https://github.com/rime/plum.git plum.git
$ cd plum.git
$ make
$ bash rime-install pinyin-simp
Installing for Rime frontend: rime/ibus-rime
Downloading package: pinyin-simp 
Cloning into './package/rime/pinyin-simp'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 7 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), 532.21 KiB | 366.00 KiB/s, done.
Installing: pinyin_simp.dict.yaml
Installing: pinyin_simp.schema.yaml
Updated ~ 2 files from 1 packages in '/home/werner/.config/ibus/rime'

But for my case, the fcitx-rime frontend is used, so I want to let the rime-install give an option for frontend selection. Any hints will be highly appreciated.

OTOH, I manually copied the pinyin-simp relevant files to ~/.config/fcitx/rime, but still can't active this schema with the steps shown below:

werner@X10DAi:~/.config/fcitx/rime$ ls *pinyin_simp*
pinyin_simp.dict.yaml  pinyin_simp.schema.yaml
werner@X10DAi:~/.config/fcitx/rime$ cat default.custom.yaml
patch:
  schema_list:
    - schema: pinyin-simp
werner@X10DAi:~/.config/fcitx/rime$ fcitx-remote -r

Regards, HY

lotem commented 3 years ago

Please go to https://github.com/rime/plum and search for fcitx-rime.

The schema IDs use undercores, not hyphens.

hongyi-zhao commented 3 years ago

Thanks a lot for your valuable note and suggestion.