Crates.io | japanese |
lib.rs | japanese |
version | 0.1.2 |
source | src |
created_at | 2022-03-11 15:44:17.200023 |
updated_at | 2023-04-17 16:20:18.326156 |
description | Recognize the different Japanese scripts and convert between hiragana/katakana. |
homepage | https://github.com/mrahhal/rust-japanese |
repository | https://github.com/mrahhal/rust-japanese |
max_upload_size | |
id | 548262 |
size | 20,452 |
Recognize the different Japanese scripts and convert between hiragana/katakana.
Add this to your Cargo.toml
:
[dependencies]
japanese = "{version}"
Visit the crate page to copy the latest version.
There are two primary modules you'll be using from this crate:
use japanese::charset;
charset::is_japanese('あ') // -> true
charset::is_japanese_punctuation('。') // -> true
charset::is_hiragana_string("あまり") // -> true
// ...
use japanese::converter;
converter::convert_hiragana_to_katakana_string("もん") // -> モン
converter::convert_katakana_to_hiragana_string("キョービ") // -> きょうび
// ...