This tool automatically downloads dictionary files for Rime input method and updates their version to the current date.
name and version fields of dictionaries
name changed to the dictionary filename (without extension)version updated to current date (format: YYYY-MM-DD)git clone https://cnb.cool/Mintimate/rime/rime-dict-sync.git
cd rime-dict-sync
config.yaml (refer to Configuration section below)go mod tidy go run .
Create config.yaml file with following format:
# Dictionaries to download: save_name-download_url
DOWNLOAD_DIR: "dl_dicts"
TARGET_DICT:
- name: "rime_mint.base.dict.yaml"
url: "https://raw.githubusercontent.com/amzxyz/rime_wanxiang/refs/heads/wanxiang/zh_dicts/base.dict.yaml"
- name: "rime_mint.chars.dict.yaml"
url: "https://raw.githubusercontent.com/amzxyz/rime_wanxiang/refs/heads/wanxiang/zh_dicts/chars.dict.yaml"
- name: "rime_mint.correlation.dict.yaml"
url: "https://raw.githubusercontent.com/amzxyz/rime_wanxiang/refs/heads/wanxiang/zh_dicts/correlation.dict.yaml"
- name: "rime_mint.ext.dict.yaml"
url: "https://raw.githubusercontent.com/amzxyz/rime_wanxiang/refs/heads/wanxiang/zh_dicts/suggestion.dict.yaml"
After running the program:
正在下载: rime_mint.base.dict.yaml ... 已下载并修改: dl_dicts/rime_mint.base.dict.yaml 正在下载: rime_mint.chars.dict.yaml ... 已下载并修改: dl_dicts/rime_mint.chars.dict.yaml 正在下载: rime_mint.correlation.dict.yaml ... 已下载并修改: dl_dicts/rime_mint.correlation.dict.yaml 正在下载: rime_mint.ext.dict.yaml ... 已下载并修改: dl_dicts/rime_mint.ext.dict.yaml
Downloaded dictionary files are saved in dl_dicts directory and ready for use with Rime input method.
This project is licensed under the MIT License. For details, please see the LICENSE file.