Korean alphabet manipulation library for Rust.
It is lightweight, without any unicode libraries.
toml
[dependencies]
hangeul = "0.1.1"
```rust extern crate hangeul;
fn main() { let subjective = "피카츄"; let subjosa = match hangeul::endswithjongseong(subjective).unwrap() { true => "이", false => "가" }; let sentence = format!("야생의 {}{} 나타났다!", subjective, subjosa); println!("{}", sentence); // 야생의 피카츄가 나타났다! print_choseong(&sentence); // ㅇㅅㅇ ㅍㅋㅊㄱ ㄴㅌㄴㄷ! }
fn printchoseong(s:&str) { for c in s.chars() { print!("{}", hangeul::getchoseong(c).unwrap_or(c)); } print!("\n"); } ```
'Hangul' is from old romanization system - McCune–Reischauer system.
'Hangeul' is official in South Korea, since 2000
Distributed under MIT License