2 releases
Uses old Rust 2015
0.1.1 | Aug 16, 2017 |
---|---|
0.1.0 | Aug 16, 2017 |
#10 in #hiragana
Used in idfy_common
32KB
1K
SLoC
romaji
inspired by romaji in Ruby
my romaji follows Kunrei-shiki(訓令式) that we can type by keyboard.
Usage
[dependencies]
romaji = "0.1"
extern crate romaji;
use romaji::RomajiExt;
fn main() {
"kyoumoshinaitone".to_katakana(); // => "キョウモシナイトネ".to_string()
"kyoumoshinaitone".to_hiragana(); // => "きょうもしないとね".to_string()
"キョウモシナイトネ".to_romaji(); // => "kyoumoshinaitone".to_string()
}