rime / home

Rime::Home is home to Rime users and developers
https://rime.im
4.26k stars 230 forks source link

分享win10下使用五笔拼音的经验和遇到的问题,请大家多多指教! #83

Open ghost opened 8 years ago

ghost commented 8 years ago

首先非常感谢「佛振」大大给大家带来这么好用的输入法! 为了「征服」小狼毫,作为非coder小白的我百度谷歌一顿搜,∞多次试验后,终于了达到了2个目标:

一、输入特殊符号「按网上教程搞定」 二、导入词典「挖出新坑」

网上多是luna_pinyin的教程,关键我是用wubi_pinyin,在导入词典的时候遇到3个很蹊跷的问题:

1.要轮流在「wubi_pinyin.custom.yaml」和「default.custom.yaml」中开启开启扩展词库,「pinyin_simp.extended.dict」使用时要先注释其中一个,然后重新部署,否则不会编译出3个bin文件

 patch:
   translator/dictionary: pinyin_simp.extended

2.在「wubi_pinyin.custom.yaml」中patch扩展词库无效果,只能在「wubi_pinyin.schema.yaml 」中强制修改dictionary才能成功启用

pinyin_simp.schema.yaml 修改后测试无效
pinyin_simp.custom.yaml 修改后测试无效
wubi_pinyin.custom.yaml 修改后测试无效
wubi_pinyin.schema.yaml 强制修改

reverse_lookup:
  dictionary: pinyin_simp.extended
  preedit_format:
    - "xform/([nl])v/$1ü/"
    - "xform/([nl])ue/$1üe/"
    - "xform/([jqxy])v/$1u/"
  prefix: "`"
  suffix: "'"
  tips: "〔拼音〕"

3.成功启用扩展词典后,五笔·拼音出现繁体输出的后遗症,如输出词库里的「阿尔萨斯 」变成 「阿爾薩斯」;还有使用拼音会輸出一对简繁词,如wo men,会有「我們」和「我们」,下面是「pinyin_simp.extended.dict.yaml」的内容

name: pinyin_simp.extended
version: "2013.04.23"
sort: by_weight
use_preset_vocabulary: true
import_tables:
  - pinyin_simp
  - c_chemistry #化学化工
  - c_botany #植物学
  - c_geology #地理地质
  - c_medicine #中西医
  - c_stock #股票基金
  - c_finance #金融
  - c_nalanxingde_all #纳兰性德全集
  - c_war3_dota #魔兽争霸3与dota
  - c_shijing_all #诗经全集
...
transtone commented 8 years ago

很好奇win10怎么装上小狼毫的。

ghost commented 8 years ago

@transtone 一直都能安装啊,只不过win8以上不要用TSF,不然bug太多。

twz915 commented 7 years ago

https://github.com/twz915/RIME-wubi 五笔 98 和 新世纪分享