原始拆分數據來自天碼。
在線使用 Web demo 。Demo 版本可能比較舊,請以本 repo 爲準。
cargo build --releaseThe binary is self-contained with the character database embedded - no external files needed.
cargo run --release -- find 部件1 [部件2 部件3 ...]列出所有匹配這些部件的漢字,一行一个字。例如:
$ ./target/release/hanzi-search find 號 食
饕也可以使用 IDS:
$ ./target/release/hanzi-search find ⿰号虎 食
饕cargo run --release -- match 模式模式是 IDS,但其中的 . 可以用於匹配任何字符。例如:
$ cargo run -r -q -- match ⿲吕.吕
嘂
嚻
𡅽
𡂨
𫬽該命令只能用於全字匹配,不能匹配字中的子部件。
cargo run --release -- pmatch 模式用法同上,但可以用於匹配一個字中的部分組件。例如:
$ cargo run -r -q -- pmatch ⿲木.木
𧢣
𰙈
𣡨
𩕒
欎
𬰸
<...其餘輸出省略...>- 構建 wasm,或直接在 Release 頁面下載構建產物
- 啓動 web 服務器
python3 -m http.server 8000
- 用瀏覽器打開 http://localhost:8000
使用 oi 引導的交互拆字查詢,安裝及測試方式見 Rime 說明。
cargo build --releasewasm-pack build --target web