Skip to main content

Python implementation to convert phonetic to hindi

Project description

================= pyhinavrophonetic

Python implementation of the Hindi phonetic-typing software

License

Copyright (C) 2016 Subrata Sarkar subrtosarkar32@gmail.com.

::

This file is part of pyhinavrophonetic.

pyhinavrophonetic 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.

pyhinavrophonetic 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 pyhinavrophonetic. If not, see <http://www.gnu.org/licenses/>.

The full license text can be found in LICENSE.

Usage

from pyhinavrophonetic import hinavro hinavro.parse("kaise ho")

.. _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

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 works
  • Sarim 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 Distribution

pyhinavrophonetic-2.0.0.tar.gz (23.2 kB view hashes)

Uploaded Source

Built Distribution

pyhinavrophonetic-2.0.0-py3-none-any.whl (26.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page