Skip to content

Get all variants (yitizi, 異體字) of a Chinese character (Sinograph)!

Notifications You must be signed in to change notification settings

edward-martyr/yitizi-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

異體字 yitizi-rs

Based on the Python/JS version of nk2028/yitizi; check it to learn the design choices. This is a Rust version of the yitizi tool, building the json file with the cargo build script.

Get all variants (yitizi, 異體字) of a Chinese character (Sinograph)!

Installation

cargo add yitizi      # for the library
cargo install yitizi  # for the CLI

Usage

Library

println!("{:?}", yitizi::get('你'));

CLI

異體字 yitizi-rs v0.1.0
查詢異體字!輸入 q 退出。(Query for variant Chinese characters! Input q to quit.)
>>> 你我他
'': {'', '', '', ''}, '': {}, '': {'', '', '', ''},

About

Get all variants (yitizi, 異體字) of a Chinese character (Sinograph)!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages