/rime-table-decompiler

反编译 rime *.table.bin 文件

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

rime-table-decompiler

参考 https://github.com/whjiang/rime_table_bin_decompiler

这个项目可以简单的用于反编译 Rime 的xxx.table.bin以生成xxx.dict.yaml文本文件。

这个项目中的大部分代码是从 librime 源代码中 copy 过来的。

Usage

拖动文件到 rime-table-decompiler 或者命令行运行:

#Usage: rime_table_decompiler <rime-table-file> [save-path]
Example: rime_table_decompiler pinyin.table.bin pinyin.dict.yaml

不指定save-path则自动输出到文件 xxx.yaml

注意:因为xxx.table.bin没有元数据信息,所以生成的xxx.dict.yaml的文件头中的元数据是根据常见的元数据填进去的,可能是错误的。用户需要自己进行修改。

若输出 "table format version 3 is no longer supported. please upgrade to version Rime::Table/4.0",可尝试使用 rime_table_v3_decompiler

Build

编译方法:(需要安装 xmake, unzip 等工具)

git clone https://github.com/nopdan/rime-table-decompiler
cd rime-table-decompiler
xmake