forked from zer4tul/RIME-Extend-Dict
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,32 +3,12 @@ | |
Extend word dictionaries & dict import tool for RIME input method | ||
扩展 Rime 输入法词库 | ||
|
||
## 0. clone the repo | ||
` git clone [email protected]:mrzzcn/RIME-Extend-Dict.git` | ||
目前包含[百度词库首页](https://shurufa.baidu.com/dict_list?cid=157)全部大类的每个子类的第一页词库 | ||
|
||
## 1. 从百度词库下载词典 | ||
每个月会更新一次(貌似没啥用,就想更新) | ||
## Install | ||
`curl https://raw.githubusercontent.com/mrzzcn/RIME-Extend-Dict/master/install.sh | sh` | ||
|
||
```bash | ||
cd RIME-Extend-Dict | ||
|
||
python ./tools/baiduspider.py | ||
# 可以修改源文件 下载自己想要的分类词库 | ||
``` | ||
|
||
## 2. 转换词典格式 | ||
```bash | ||
python ./tools/rime_dict_tool.py ./download/*.bdict -o=./luna_pinyin.extended/luna_pinyin.baidu_dicts.dict.yaml | ||
``` | ||
|
||
## 3. 完成 部署 | ||
|
||
``` | ||
# 建议在部署之前先备份自己的当前配置 | ||
./tools/install | ||
# 其实就是复制相关配置文件到 Rime 目录里面 | ||
# 完成之后点击 Rime 菜单的重新部署, 完成即可 | ||
``` | ||
|
||
## 4. 完成效果 | ||
## 效果 | ||
![完成效果](https://raw.githubusercontent.com/mrzzcn/RIME-Extend-Dict/master/sample/sample.gif) |