Skip to content

Commit

Permalink
:note: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzzcn committed May 11, 2021
1 parent 297d529 commit 4ed57fc
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 4ed57fc

Please sign in to comment.