Crates.io | simplet2s |
lib.rs | simplet2s |
version | 0.2.0 |
source | src |
created_at | 2017-12-18 05:28:58.399945 |
updated_at | 2020-04-06 07:39:14.681092 |
description | A simple traditional Chinese to simplified Chinese converter |
homepage | https://github.com/bosondata/simplet2s-rs |
repository | https://github.com/bosondata/simplet2s-rs |
max_upload_size | |
id | 43493 |
size | 44,919 |
A simple traditional Chinese to simplified Chinese converter
Add it to your Cargo.toml
:
[dependencies]
simplet2s = "0.2"
Add extern crate simplet2s
to your crate root and your're good to go!
extern crate simplet2s;
fn main() {
let simplified = simplet2s::convert("憂鬱的台灣烏龜");
println!("{}", simplified);
}
There is also a Python package named simplet2s
, you can install it via pip
:
pip install -U simplet2s
Usage example:
import simplet2s
if __name__ == '__main__':
print(simplet2s.convert("憂鬱的台灣烏龜"))
This work is released under the MIT license. A copy of the license is provided in the LICENSE file.