https://github.com/OpenBangla/rupantor-rs
A Bengali Phonetic Parser which is very flexible and converts text into Bengali according to a json formated grammar.
https://github.com/OpenBangla/rupantor-rs
avro-phonetic bangla bengali rust
Last synced: 7 months ago
JSON representation
A Bengali Phonetic Parser which is very flexible and converts text into Bengali according to a json formated grammar.
- Host: GitHub
- URL: https://github.com/OpenBangla/rupantor-rs
- Owner: OpenBangla
- License: mpl-2.0
- Created: 2017-07-18T09:51:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T15:29:41.000Z (about 5 years ago)
- Last Synced: 2024-10-29T13:50:11.485Z (11 months ago)
- Topics: avro-phonetic, bangla, bengali, rust
- Language: Rust
- Homepage: https://crates.io/crates/rupantor
- Size: 63.5 KB
- Stars: 21
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bangla - Rupantor - A very flexible Bengali phonetic parser/converter written in Rust. It also supports Avro Phonetic. (OpenBangla) (Typing Tools and Keyboards / Libraries)
README
# rupantor-rs
[](https://travis-ci.org/OpenBangla/rupantor-rs)
[](https://github.com/OpenBangla/rupantor-rs)
[](https://crates.io/crates/rupantor)
[](https://docs.rs/rupantor)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.## Usage
Add this to your `Cargo.toml`:
```toml
[dependencies]
rupantor = "0.3"
```## Example
This example shows how to use Avro Phonetic:
```rust
use rupantor::avro::AvroPhonetic;let avro = AvroPhonetic::new();
let bengali = avro.convert("ami banglay gan gai");
assert_eq!(bengali, "আমি বাংলায় গান গাই");
```## License
`rupantor` is distributed under the terms of MPL License (Version 2.0).See [LICENSE](https://github.com/OpenBangla/rupantor-rs/blob/master/LICENSE) for details.