Expand description
§korean-romanize
korean-romanize is a Rust Library to romanize hangul (korean script) into
the latin alphabet.
This crate is very early in development, and I do not know how to speak korean, so any help would be much appreciated! (I wrote this crate to help romanize foreign lyrics my lyrics program.)
Currently able to do up to the palatalization section of this document.
§Usage
To romanize:
assert_eq!(&korean_romanize::convert("안녕히 가세요"), "annyeonghi gaseyo");To check if a string has korean characters:
assert!(korean_romanize::has_korean("안녕"));
assert!(korean_romanize::has_korean("안녕 Hello"));
assert!(!korean_romanize::has_korean("Hello"));§Acknoledgements
This project could not have been started without:
Functions§
- convert
- Converts Korean characters into romanized text.
- has_
korean - Checks if the input string is in Korean. Returns true if any character in the string is Korean.