wuhgit/CustomPinyinDictionary

如何将词库转换为 txt

Closed this issue · 0 comments

如果需要 txt 格式的词库,比如用于其它输入法,可以通过 Fcitx 的词库进行转换,但需要您使用 Linux 系统 (WSL也可以)

  • 下载 CustomPinyinDictionary_Fcitx_<版本号>.tar.gz 并解压,得到词库文件 CustomPinyinDictionary_Fcitx.dict
  • Linux 下,安装 libime
  • 在词库文件所在目录下使用命令 libime_pinyindict -d CustomPinyinDictionary_Fcitx.dict CustomPinyinDictionary_Fcitx.txt 进行转换

提示:

在使用 libime 进行转换的时候请注意软件版本,如果出现转换失败,多半是因为不是最新版本所导致。

最新的版本号请查阅 https://github.com/fcitx/libime/tags 或者 https://archlinux.org/packages/extra/x86_64/libime/