1 unstable release
0.1.0 | Jul 10, 2021 |
---|
#7 in #kana
21KB
509 lines
kanabake
Transform wapuro input into either Katakana or Hiragana.
Usage
Add kanabake
to your Cargo.toml
[dependencies]
kanabake = "0.1.0"
Features
Currently the following functionality is available.
to_hiragana(&str) -> Result<String, Error> // Ascii to hiragana
to_katakana(&str) -> Result<String, Error> // Ascii to katakana
is_valid(&str) -> Result<String, Error> // Can input be transformed?
Examples
use kanabake;
let example = "konnichiha";
let hiragana = kanabake::to_hiragana(example)?;
assert_eq!(hiragana, "こんにちは");
lib.rs
:
Funtionality for converting between roman character and japanese kana.
Uses kana spelling, Wapuro romaji as input, and produces either Katakana or Hiragana as output.
Dependencies
~10KB