myanmar_util

Crates.iomyanmar_util
lib.rsmyanmar_util
version0.1.0
created_at2025-04-21 09:36:48.818747+00
updated_at2025-04-21 09:36:48.818747+00
descriptionA collection of tools for processing Myanmar text including syllable breaking and other utilities
homepage
repositoryhttps://github.com/awesomegeek/myanmar_util
max_upload_size
id1642475
size19,767
Naing Tun Win (awesomegeek)

documentation

README

Myanmar Util

A collection of Rust utilities for processing Myanmar (Burmese) text.

Features

  • Syllable Breaking: Accurately breaks Myanmar text into syllables following linguistic rules
  • Command Line Interface: Easy-to-use CLI for text processing
  • Regular Expression Utilities: Special regex patterns designed for Myanmar text analysis

Installation

Add this to your Cargo.toml:

[dependencies]
myanmar_util = "0.1.0"

Or install the CLI tool:

cargo install myanmar_util

Usage

As a Library

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);  // မင်|ဂ|လာ|ပါ

}

Command Line

# Break text into syllables with default separator (|)
myanmar_util syllablebreak -s "|" -i input.txt -o output.txt -t "M"

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Commit count: 4

cargo fmt