反编译 RIME 的 xxx.table.bin
二进制词典文件,生成 xxx.dict.yaml
纯文本词典文件。
Fork 自 whjiang/rime_table_bin_decompiler,相较于原项目,有以下变动。
- 修复在 Linux 系统上的编译错误
- 更易读的 README
git clone --depth=1 git@github.com:kitty-panics/rime-table-bin-decompiler.git
cd rime-table-bin-decompiler && mkdir build && cd build
cmake ..
make
注意,由于 xxx.table.bin
二进制词库文件没有元数据信息,反编译生成的 xxx.dict.yaml
纯文本词典文件的文件头中的元数据信息,是根据常见的元数据信息填补进去的,可能是错误的,
需自行修正。
# 反编译二进制词库并标准输出:
rime-table-bin-decompiler xxx.table.bin
# 反编译二进制词库并输出到纯文本词库文件中:
rime-table-bin-decompiler xxx.table.bin > xxx.dict.yaml