Skip to main content

Python implementation to convert Indic languages to phonetic

Project description

pybharphonetic

Python implementation of the any Indian language to phonetic software.

New:

Reverse conversion from language to phonetic support at present added for below languages only:

  • hindi
  • bengali

License

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

::

This file is part of pybharphonetic.

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

pybharphonetic 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 pybharphonetic import bharphonetic
  bharphonetic.parse("kese hO?", language="hn")

Supported Languages

::

"hn": "hindi",
"bn": "bengali",
"as": "assamese",
"bd": "bodo",
"dg": "dogri",
"gj": "gujrati",
"kn": "kannada",
"ks": "kashmiri",
"kon": "konkani",
"mai": "maithili",
"mal": "malayalam",
"man": "manipuri",
"mar": "marathi",
"nep": "nepali",
"odi": "odia",
"pun": "punjabi",
"sak": "sanskrit",
"san": "santhali",
"sin": "sindhi",
"tam": "tamil",
"tel": "telugu",
"urd": "urdu",
"bn-rev": "bengali_reverse",
"hn-rev": "hindi_reverse"

Overview

Python implementation of the english phonetic to any Indian language software

Installation

Using Git:

::

$ git clone https://github.com/SubrataSarkar32/pybharphonetic
$ cd pybharphonetic
$ sudo python3 setup.py install

Using Pip:

::

$ sudo pip install pybharphonetic

Usage

At present only a subset of features have been implemented. When implemented, the parser can be accessed as:

::

>>> from pybharphonetic import bharphonetic
>>> bharphonetic.parse("kese hO?", language="hn")

:: >>> from pybharphonetic import bharphonetic >>> bharphonetic.parse("केसे हो?", language="hn-rev")

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.

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

pybharphonetic-1.1.tar.gz (79.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybharphonetic-1.1-py3-none-any.whl (93.4 kB view details)

Uploaded Python 3

File details

Details for the file pybharphonetic-1.1.tar.gz.

File metadata

  • Download URL: pybharphonetic-1.1.tar.gz
  • Upload date:
  • Size: 79.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pybharphonetic-1.1.tar.gz
Algorithm Hash digest
SHA256 2d33073e1040bdc806b18f4deb03516a0e6f259e482c5f30767598573a64525f
MD5 56b70a45e627d2b5e4c1240b4889d25a
BLAKE2b-256 f6470a9ea60643ec6b7aa61aed37e9ea718470ba4779a6ef673433f11daf5439

See more details on using hashes here.

File details

Details for the file pybharphonetic-1.1-py3-none-any.whl.

File metadata

  • Download URL: pybharphonetic-1.1-py3-none-any.whl
  • Upload date:
  • Size: 93.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for pybharphonetic-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44069c059f0dc1c770fb9c9682981832bc9ab8297c569723b2c8bb22e4d16db1
MD5 9733bc783bb2b85f9bdc5347a139ea39
BLAKE2b-256 c56bc2e18884616d5c77af1fdab3ced78233274c0b3eaf0fd7ea0be9588a1fbd

See more details on using hashes here.

Supported by

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