A C++ implementation of Avro Phonetic
cppAvroPhonetic implements the popular Bengali writing solution Avro Phonetic. cppAvroPhonetic has a header only class named avrophonetic.hpp. It is actually extracted from the parser written for scim-avro by Rifat Nabi.
- 100% compatible with Avro Phonetic implementation of Avro Keyboard.
- 100% compatible with Unicode specification version 8.0
- Written in C++11 and compatible with newer versions.
- It is a header only implementation. So it can be integrated easily.
cppAvroPhonetic or avrophonetic.hpp depends on STL and C++11 specification. So you will need a C++11 compliant compiler to compile. C++11 is supported by these compilers:
- GCC
- Clang
- Microsoft Visual C++
Do not forget to set the necessary switches to enable C++11 (e.g., -std=c++11
for GCC and Clang).
Working with cppAvroPhonetic is very easy. Here is an example:
#include <iostream>
#include <string>
#include "avrophonetic.hpp"
int main()
{
// 'AvroPhonetic' is the converter class.
AvroPhonetic avro;
std::string bangla;
bangla = avro.Convert("ami banglay gan gai"); // Outputs "আমি বাংলায় গান গাই"
std::cout << bangla << std::endl;
return 0;
}
- Mehdi Hasan Khan for originally developing and maintaining Avro Phonetic.
- Rifat Nabi for his scim-avro
Copyright (C) 2014-2015 Muhammad Mominul Huque <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
The full license text can be found in LICENSE
.