Python implementation to convert bengali to phonetic
Project description
============== pybengengphonetic
Python implementation to convert unicode bengali text to speable english text for pyttsx and to english phonetic
License
Copyright (C) 2016 Subrata Sarkar subrtosarkar32@gmail.com.
::
This file is part of pybengengphonetic.
pybengengphonetic 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.
pybengengphonetic 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 pybengengphonetic. If not, see <http://www.gnu.org/licenses/>.
The full license text can be found in LICENSE
.
Usage
::
from pybengengphonetic import conparse
conparse.convert_to_pyttsx_speakable(u'\u0995\u09c7\u09ae\u09a8 \u0986\u099b')
conparse.speak(u'\u0995\u09c7\u09ae\u09a8 \u0986\u099b')
.. _Avro Phonetic: http://omicronlab.com .. _Mehdi Hasan Khan: https://github.com/omicronlab .. _Rifat Nabi: https://github.com/torifat .. _jsAvroPhonetic: https://github.com/torifat/jsAvroPhonetic .. _PEP 8: http://www.python.org/dev/peps/pep-0008/ .. _PEP 257: http://www.python.org/dev/peps/pep-0257/ .. |Master| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=master :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. |Develop| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=develop :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. _Md Enzam Hossain: https://github.com/ienzam .. _Sarim Khan: https://github.com/sarim
Installation
Using Git:
::
$ git clone https://github.com/SubrataSarkar32/pybengengphonetic.git
$ cd pybengengphonetic
$ sudo python setup.py install
Using Pip:
::
$ sudo pip install pybengengphonetic
Contributing
Fork -> Do your changes -> Send a Pull Request. It's that easy!
Coding style follows PEP 8
_ along with PEP 257
_ for Docstring
conventions.
Also, if you find any bugs, please report them in the Issues queue. As always, before you report any new issue, please check that it has not been already posted by someone else.
Below is license of pyAvroPhonetic
from which it has been derived:
============== pyAvroPhonetic
A Python implementation of the popular Bengali phonetic-typing software
Avro Phonetic
_.
Branch: Master: |Master| | Develop: |Develop|
Overview
pyAvroPhonetic provides a Python package that can be imported and used
by other Python programs or scripts. It implements the Avro Phonetic
Dictionary Search Library by Mehdi Hasan Khan
_.
N.B. This package is still experimental and is not (yet) fit for production use.
Inspirations
This package is inspired from Rifat Nabi
's jsAvroPhonetic
. So
far, the code is a direct (and shameless) translation of
jsAvroPhonetic into Python.
Installation
Using Git:
::
$ git clone https://github.com/kaustavdm/pyAvroPhonetic
$ cd pyAvroPhonetic
$ sudo python setup.py install
Using Pip:
::
$ sudo pip install PyAvroPhonetic
Usage
At present only a subset of features have been implemented. When implemented, the parser can be accessed as:
::
>>> from pyavrophonetic import avro
>>> avro.parse('aami banglay gaan gai')
Contributing
Fork -> Do your changes -> Send a Pull Request. It's that easy!
Coding style follows PEP 8
_ along with PEP 257
_ for Docstring
conventions.
Also, if you find any bugs, please report them in the Issues queue. As always, before you report any new issue, please check that it has not been already posted by someone else.
Acknowledgements
- Mehdi Hasan Khan for originally developing and maintaining Avro Phonetic
- Rifat Nabi for porting it to Javascript
Md Enzam Hossain
_ for helping me understand the ins and outs of the Avro dictionary and the way it worksSarim Khan
_ for writing ibus-avro which helped to clarify my concepts further
License
Copyright (C) 2013 Kaustav Das Modak kaustav.dasmodak@yahoo.co.in.
::
This file is part of pyAvroPhonetic.
pyAvroPhonetic 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.
pyAvroPhonetic 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 pyAvroPhonetic. If not, see <http://www.gnu.org/licenses/>.
The full license text can be found in LICENSE
.
.. _Avro Phonetic: http://omicronlab.com .. _Mehdi Hasan Khan: https://github.com/omicronlab .. _Rifat Nabi: https://github.com/torifat .. _jsAvroPhonetic: https://github.com/torifat/jsAvroPhonetic .. _PEP 8: http://www.python.org/dev/peps/pep-0008/ .. _PEP 257: http://www.python.org/dev/peps/pep-0257/ .. |Master| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=master :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. |Develop| image:: https://travis-ci.org/kaustavdm/pyAvroPhonetic.png?branch=develop :target: https://travis-ci.org/kaustavdm/pyAvroPhonetic .. _Md Enzam Hossain: https://github.com/ienzam .. _Sarim Khan: https://github.com/sarim
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pybengengphonetic-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c3ba4fc85fb4b94d2f7e6eeba3c9d4dcf23f1a6016957ce76bb11113a34bf0 |
|
MD5 | de636c321c9c468751c9dddcbd6965bb |
|
BLAKE2b-256 | 8b13ade44ca20ab5713916edfe3b0d718d1fb8e7e91eb7335190cb7ec0c4a8d7 |