| Crates.io | myanmar_util |
| lib.rs | myanmar_util |
| version | 0.1.0 |
| created_at | 2025-04-21 09:36:48.818747+00 |
| updated_at | 2025-04-21 09:36:48.818747+00 |
| description | A collection of tools for processing Myanmar text including syllable breaking and other utilities |
| homepage | |
| repository | https://github.com/awesomegeek/myanmar_util |
| max_upload_size | |
| id | 1642475 |
| size | 19,767 |
A collection of Rust utilities for processing Myanmar (Burmese) text.
Add this to your Cargo.toml:
[dependencies]
myanmar_util = "0.1.0"
Or install the CLI tool:
cargo install myanmar_util
use myanmar_util::{syllable_break, syllable_break_phoneme};
fn main() {
// Break text into syllables
let text = "မင်္ဂလာပါ";
let syllable_text = syllable_break(&text, Some("|"))
println!("{}", syllable_text); // မင်္ဂ|လာ|ပါ
let syllable_text = syllable_break_phoneme(&text, Some("|"))
println!("{}", syllable_text); // မင်|ဂ|လာ|ပါ
}
# Break text into syllables with default separator (|)
myanmar_util syllablebreak -s "|" -i input.txt -o output.txt -t "M"
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.