scel2rime converts Sogou .scel cell dictionaries into RIME .dict.yaml files.
cargo run -- popular_now.scelOr after installing/building:
scel2rime popular_now.scelThis produces:
luna_pinyin.sogou.popular_now.dict.yaml
Config is ID-focused. Each non-comment line is either an ID or an ID plus name:
<id>
<id> <name>
Examples:
4
77212 高中常考古诗词【官方推荐】
When name is omitted, the app fetches Sogou's detail page for that ID and resolves the official download name.
Run:
cargo run -- --config scel2rime.confor:
scel2rime --config scel2rime.confThe app downloads SCEL bytes with native Rust HTTP, converts them in memory, and writes one RIME dictionary per ID under dist/, such as:
dist/luna_pinyin.sogou.4.dict.yaml
Generated rows follow RIME dictionary shape used by projects like rime-frost:
词条 pin yin weight
GitHub Actions builds downloadable binaries when a version tag is pushed.
git tag v0.1.0
git push origin v0.1.0The release workflow creates a GitHub Release and uploads archives for:
- Linux x86_64:
x86_64-unknown-linux-gnu - macOS Intel:
x86_64-apple-darwin - macOS Apple Silicon:
aarch64-apple-darwin - Windows x86_64:
x86_64-pc-windows-msvc
Each archive includes the scel2rime binary, README, and sample scel2rime.conf.