rime / plum

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

Help, I don't know how to install double-pinyin #39

Closed p2635 closed 3 years ago

p2635 commented 3 years ago

OS: Kubuntu 20.04

I already have RIME installed, the default installed schemas work fine but I don't have double-pinyin.

What I've tried:

I can see that the double-pinyin schemas are in /home/user/.config/ibus/rime/

lotem commented 3 years ago

请参考: https://github.com/rime/home/wiki/CustomizationGuide#%E4%B8%80%E4%BE%8B%E5%AE%9A%E8%A3%BD%E6%96%B9%E6%A1%88%E9%81%B8%E5%96%AE

p2635 commented 3 years ago

thanks @lotem, I put the patch: part on the top:

# default.custom.yaml

patch:
  schema_list:
    - schema: double_pinyin_flypy

__patch:
# Rx: custom:set:config=default,key=installed_from,value=rime-cantonese {
  - patch/+:
      installed_from: rime-cantonese
# }
# Rx: custom:add:schema=jyut6ping3 {
  - patch/+:
      schema_list/+/+:
        - schema: jyut6ping3
# }

It works now but all the defaults have disappeared: image

It's pretty much solved but I must be doing something that's not quite right.

p2635 commented 3 years ago

I give up, it's too hard. I will just use ibus-pinyin. Something is messed up with my setup.

p2635 commented 3 years ago

I found the issue, I had to edit default.yaml. I have a question, sorry if it's the wrong place to ask. What is the point of 'sudo apt install librime-data-double-pinyin'? It does nothing. I had to still use plum + edit default.yaml myself.

lotem commented 3 years ago

This is how to append items to the list:

# default.custom.yaml

patch:
  schema_list/+:
    - schema: double_pinyin_flypy

To install schema files, either use plum/rime-install or use the Linux package manager. Either will do; you don't need both.

p2635 commented 3 years ago

Oh! @lotem I will try deleting the files added by plum in that case and see what happens, thanks for the tip

So I got it wrong? I'm not supposed to edit default.yaml but default.custom.yaml? After reinstalling ibus-rime, I didn't have a default.custom.yaml, unless I just create one myself?