A Bengali Phonetic Parser which is very flexible and converts text into Bengali according to a json formated grammar.
rupantor
supports Avro Phonetic out of the box, which is a very popular phonetic based transliteration method for writing Bengali.
rupantor
is very flexible as it is possible to control the conversion by specifying the grammar/conversion rules. So it is possible
by the user to create a phonetic method by specifying a custom grammar.
Add this to your Cargo.toml
:
toml
[dependencies]
rupantor = "0.1"
and this to your crate root:
rust
extern crate rupantor;
This example shows how to use Avro Phonetic: ```rust extern crate rupantor; use rupantor::avro::AvroPhonetic;
let avro = AvroPhonetic::new(); let bengali = avro.convert("ami banglay gan gai"); assert_eq!(bengali, "আমি বাংলায় গান গাই"); ```
rupantor
is distributed under the terms of MPL License (Version 2.0).
See LICENSE for details.