Skip to main content

PyPI

MeiteiToBangla

This Python module was created to facilitate the conversion of the Manipuri Language (mni) from the Meitei Mayek script to the Bengali script. The module is based on the Unicode standard for the Meitei Mayek script and the Unicode standard for the Bengali script. The module is designed to be used with Python 3.6 or later. I kindly thank the following people for their help in creating this module:

  1. Haoreima for the Meitei Mayek to Bangla rules and the Meitei Mayek Unicode standard.

Background

Meitei Mayek is the script used to write the Meitei language, which is spoken in the Indian state of Manipur. The script is based on the Bengali script, and the two scripts share many characters. However, there are some differences between the two scripts, and the Meitei Mayek script has some characters that are not present in the Bengali script.

Installation

You can install this module via pip as:

pip install -U meiteitobangla

Usage

The module is accessible as mtei2bangla.

from mtei2bangla import MeiteitoBangla
input_text = input('Please enter an example text')
output = MeiteitoBangla.transliterate(input_text)

Since version, 1.1.0, the MeiteitoBangla has two methods setpreprocess and setpostprocess to set the pre and post process functions. The setpreprocess method takes a function as an argument and the setpostprocess method takes a function as an argument. The function should take a string as an argument and return a string. The transliterate method will call the pre-process function before transliterating the text and the post-process function after transliterating the text.

from mtei2bangla import MeiteitoBangla
def custom_preprocess(text):
    return text
def custom_postprocess(text):
    return text
MeiteitoBangla.setpreprocess(custom_preprocess)
MeiteitoBangla.setpostprocess(custom_postprocess)
input_text = input('Please enter an example text')
output = MeiteitoBangla.transliterate(input_text)

Known Limitations

  1. It adds an া at the end of consonants if no diacritics are added. In most cases these are correct but in some foreign loan words, it is not correct. But as this module does not have any capability to distinguish between these words, it would add া at the end. Please use custom_end_func (not implemented yet) to handle these correctly.

License

Copyright (C) 2024 by Nokib Sarkar. This module is licensed under the terms of the AGPLv3 license. However, there is no restriction to use this module for the initial developer. A copy of the license is included in the file LICENCE.md. If not, see https://www.gnu.org/licenses/agpl-3.0.html.

Known Usage

This project is currently used on the following projects

  1. Mayek Bot: A bot in Manipuri Wikipedia to transliterate from Meitei script articles into Bangla script article.

Metadata

Release files for meiteitobangla 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meiteitobangla 1.1.1
File Size Uploaded
meiteitobangla-1.1.1.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meiteitobangla 1.1.1
File Interpreter ABI Platform
meiteitobangla-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.1 kB

Release files / meiteitobangla-1.1.1.tar.gz

Download URL meiteitobangla-1.1.1.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a17c62735a51b9d4a641757989e733e9ce53a56202da8679171ef7dc9d5c11a4
BLAKE2b-256 checksum
How to use checksums
9ac8dbd41080988b24afb9549751a701e47fe7cbcfc55f98cd9a8f7b7ff4b5c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / meiteitobangla-1.1.1-py3-none-any.whl

Download URL meiteitobangla-1.1.1-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc4023562a402a0ac39a82cee4ad6a469f2d349edd7aaf19ceb3dcff5637a835
BLAKE2b-256 checksum
How to use checksums
0be47c656d125c18f06a72169a48848bb8a373038f300d8fcad604d353540e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page