sdadonkey / rime-english

Rime English:在西文模式下實現英文單詞輸入
https://github.com/sdadonkey/rime-english
78 stars 13 forks source link

中文输入法如何更该成使用小鹤双拼? #12

Open ayden19 opened 3 years ago

ayden19 commented 3 years ago

方案的中文输入法未能成功更改成小鹤双拼,请问需要如何修改?谢谢

ISouthRain commented 1 year ago

问题已经解决,修改以下几处即可

#1. 删除和添加
  dependencies:
    # - luna_pinyin # 修改为 小鹤
    - double_pinyin_flypy

#2. 删除和添加
    # - script_translator@luna_pinyin
    - script_translator@double_pinyin_flypy

#3. 删除
luna_pinyin:                                # 以下爲朙月拼音方案配置
  dictionary: luna_pinyin
  preedit_format:
    - xform/([nl])v/$1ü/
    - xform/([nl])ue/$1üe/
    - xform/([jqxy])v/$1u/
#4. 添加
double_pinyin_flypy:
  dictionary: luna_pinyin.extended # 更换为你对应的字典
  prism: double_pinyin_flypy
  preedit_format:
    - xform/([bpmfdtnljqx])n/$1iao/
    - xform/(\w)g/$1eng/
    - xform/(\w)q/$1iu/
    - xform/(\w)w/$1ei/
    - xform/([dtnlgkhjqxyvuirzcs])r/$1uan/
    - xform/(\w)t/$1ve/
    - xform/(\w)y/$1un/
    - xform/([dtnlgkhvuirzcs])o/$1uo/
    - xform/(\w)p/$1ie/
    - xform/([jqx])s/$1iong/
    - xform/(\w)s/$1ong/
    - xform/(\w)d/$1ai/
    - xform/(\w)f/$1en/
    - xform/(\w)h/$1ang/
    - xform/(\w)j/$1an/
    - xform/([gkhvuirzcs])k/$1uai/
    - xform/(\w)k/$1ing/
    - xform/([jqxnl])l/$1iang/
    - xform/(\w)l/$1uang/
    - xform/(\w)z/$1ou/
    - xform/([gkhvuirzcs])x/$1ua/
    - xform/(\w)x/$1ia/
    - xform/(\w)c/$1ao/
    - xform/([dtgkhvuirzcs])v/$1ui/
    - xform/(\w)b/$1in/
    - xform/(\w)m/$1ian/
    - xform/([aoe])\1(\w)/$1$2/
    - "xform/(^|[ '])v/$1zh/"
    - "xform/(^|[ '])i/$1ch/"
    - "xform/(^|[ '])u/$1sh/"
    - xform/([jqxy])v/$1u/
    - xform/([nl])v/$1ü/