Crates.io | rupantor |
lib.rs | rupantor |
version | 0.3.0 |
source | src |
created_at | 2018-06-06 17:23:28.333208 |
updated_at | 2020-09-22 15:30:51.270438 |
description | A Bengali Phonetic Parser which is very flexible and supports Avro Phonetic |
homepage | |
repository | https://github.com/OpenBangla/rupantor-rs |
max_upload_size | |
id | 68936 |
size | 104,368 |
A Bengali Phonetic Parser which is very flexible and converts text into Bengali according to a json formatted 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
:
[dependencies]
rupantor = "0.3"
This example shows how to use Avro Phonetic:
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.