diff --git a/README.md b/README.md index 4417a2c..1bc923b 100644 --- a/README.md +++ b/README.md @@ -57,19 +57,49 @@ ## 使用说明 -备份后删除配置目录下原有的配置文件,再将仓库所有文件复制粘贴进去就好了。 +建议备份原先配置,清空配置目录。 -更新词库:词库每个月都会更新几次,更新时只需要将下面 3 个文件夹覆盖过去并重新部署即可。 +### 手动安装 -- `cn_dicts` 拼音相关词库 - - 里面的文件在 `rime_ice.dict.yaml` 中引用 +将仓库所有文件复制粘贴进去就好了。 -- `en_dicts` 英文相关词库 - - 里面的文件在 `melt_eng.dict.yaml` 中引用 +### 东风破 [plum](https://github.com/rime/plum) -- `opencc` Emoji +所有配方(`others/recipes/*.recipe.yaml`)只是简单地更新覆盖文件,适合更新词库时使用。 -*更新词库后报错,可能是增删改了词库文件,需要检查 `*.dict.yaml` 与词库文件是否对应上。 +后四个配方只是更新词库文件,并不更新 `rime_ice.dict.yaml` 和 `melt_eng.dict.yaml`,因为用户可能会挂载其他词库。 + +如果更新后部署时报错,可能是增、删、改了文件名,需要检查上面两个文件和词库的对应关系。 + +安装或更新:全部文件 + +``` +bash rime-install iDvel/rime-ice:others/recipes/full +``` + +安装或更新:所有词库文件(包含下面三个) + +``` +bash rime-install iDvel/rime-ice:others/recipes/all_dicts +``` + +安装或更新:拼音词库文件 + +``` +bash rime-install iDvel/rime-ice:others/recipes/cn_dicts +``` + +安装或更新:英文词库文件 + +``` +bash rime-install iDvel/rime-ice:others/recipes/en_dicts +``` + +安装或更新:opencc(emoji) + +``` +bash rime-install iDvel/rime-ice:others/recipes/opencc +```
diff --git a/others/recipes/all_dicts.recipe.yaml b/others/recipes/all_dicts.recipe.yaml new file mode 100644 index 0000000..7aa1263 --- /dev/null +++ b/others/recipes/all_dicts.recipe.yaml @@ -0,0 +1,21 @@ +# encoding: utf-8 +--- +recipe: + Rx: others/recipes/all_dicts + args: + description: >- + 所有词库安装、更新 +install_files: >- + cn_dicts/8105.dict.yaml + cn_dicts/base.dict.yaml + cn_dicts/ext.dict.yaml + cn_dicts/others.dict.yaml + cn_dicts/sogou.dict.yaml + cn_dicts/tencent.dict.yaml + en_dicts/cn_en.dict.yaml + en_dicts/en.dict.yaml + en_dicts/en_ext.dict.yaml + opencc/emoji-map.txt + opencc/emoji.json + opencc/emoji.txt + opencc/others.txt diff --git a/others/recipes/cn_dicts.recipe.yaml b/others/recipes/cn_dicts.recipe.yaml new file mode 100644 index 0000000..b8ac9fa --- /dev/null +++ b/others/recipes/cn_dicts.recipe.yaml @@ -0,0 +1,14 @@ +# encoding: utf-8 +--- +recipe: + Rx: others/recipes/cn_dicts + args: + description: >- + 拼音词库安装、更新 +install_files: >- + cn_dicts/8105.dict.yaml + cn_dicts/base.dict.yaml + cn_dicts/ext.dict.yaml + cn_dicts/others.dict.yaml + cn_dicts/sogou.dict.yaml + cn_dicts/tencent.dict.yaml diff --git a/others/recipes/en_dicts.recipe.yaml b/others/recipes/en_dicts.recipe.yaml new file mode 100644 index 0000000..8aced74 --- /dev/null +++ b/others/recipes/en_dicts.recipe.yaml @@ -0,0 +1,11 @@ +# encoding: utf-8 +--- +recipe: + Rx: others/recipes/en_dicts + args: + description: >- + 英文词库安装、更新 +install_files: >- + en_dicts/cn_en.dict.yaml + en_dicts/en.dict.yaml + en_dicts/en_ext.dict.yaml diff --git a/others/recipes/full.recipe.yaml b/others/recipes/full.recipe.yaml new file mode 100644 index 0000000..4f3a0be --- /dev/null +++ b/others/recipes/full.recipe.yaml @@ -0,0 +1,36 @@ +# encoding: utf-8 +--- +recipe: + Rx: others/recipes/full + args: + description: >- + 完整安装、更新 +install_files: >- + cn_dicts/8105.dict.yaml + cn_dicts/base.dict.yaml + cn_dicts/ext.dict.yaml + cn_dicts/others.dict.yaml + cn_dicts/sogou.dict.yaml + cn_dicts/tencent.dict.yaml + custom_phrase.txt + default.custom.yaml + double_pinyin.schema.yaml + double_pinyin_flypy.schema.yaml + en_dicts/cn_en.dict.yaml + en_dicts/en.dict.yaml + en_dicts/en_ext.dict.yaml + liangfen.dict.yaml + liangfen.schema.yaml + melt_eng.dict.yaml + melt_eng.schema.yaml + opencc/emoji-map.txt + opencc/emoji.json + opencc/emoji.txt + opencc/others.txt + rime.lua + rime_ice.dict.yaml + rime_ice.schema.yaml + squirrel.custom.yaml + symbols_custom.yaml + weasel.custom.yaml + zh-hans-t-essay-bgw.gram diff --git a/others/recipes/opencc.recipe.yaml b/others/recipes/opencc.recipe.yaml new file mode 100644 index 0000000..da0175d --- /dev/null +++ b/others/recipes/opencc.recipe.yaml @@ -0,0 +1,12 @@ +# encoding: utf-8 +--- +recipe: + Rx: others/recipes/opencc + args: + description: >- + opencc(Emoji)安装、更新 +install_files: >- + opencc/emoji-map.txt + opencc/emoji.json + opencc/emoji.txt + opencc/others.txt