kanabake 0.1.0

Turn Romaji strings into Hiragana or Katakana
Documentation
  • Coverage
  • 100%
    7 out of 7 items documented3 out of 5 items with examples
  • Size
  • Source code size: 21.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.75 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • vkstrm/kanabake
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • vkstrm

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, "こんにちは");