Bijoy to Unicode File Converter
Convert Bijoy (ASCII/ANSI) Bengali text files to Unicode Bangla — a simple, fast Python package.
bijoy-to-unicode-file-converter is a Python library that converts legacy
Bijoy / SutonnyMJ / ANSI-encoded Bengali (Bangla) text files into modern
Unicode text. If you have old documents typed in Bijoy that show up as
garbled characters on the web or in modern apps, this package converts them to
clean, portable Unicode Bangla in one function call.
Features
- ✅ Convert an entire Bijoy
.txtfile to Unicode with a single function call - ✅ Handles Bengali conjuncts (যুক্তাক্ষর), kars, and reordering rules
- ✅ Skips English lines automatically (language detection) and passes them through unchanged
- ✅ Preserves blank lines and writes clean UTF-8 output
- ✅ Pure Python, lightweight, no heavy dependencies
Installation
pip install bijoy-to-unicode-file-converter
Usage
from bijoy_to_unicode_file_converter import convert_bijoy_to_unicode
# convert_bijoy_to_unicode(input_file, output_file)
convert_bijoy_to_unicode('bijoy.txt', 'unicode.txt')
# bijoy.txt -> your input file (Bijoy / ANSI encoded Bangla)
# unicode.txt -> the converted Unicode output file (UTF-8)
# Happy Coding!
By default the input file is read as UTF-8. If your Bijoy file uses a different encoding, pass it explicitly:
convert_bijoy_to_unicode('bijoy.txt', 'unicode.txt', encoding='latin-1')
How it works
The converter maps Bijoy ASCII code points to their Unicode Bengali equivalents, then reorders characters (pre-kars, ra-halants, nuktas, and conjuncts) to produce valid Unicode text. Each line is language-checked so English content is left untouched while Bengali content is converted.
Requirements
- Python 3.8+
langdetect
License
Released under the MIT License.
Author
Al Mehady — GitHub
Keywords: bijoy to unicode, bijoy to unicode converter, bangla converter, bengali unicode converter, ANSI to unicode bangla, ASCII to unicode bengali, SutonnyMJ to unicode, bijoy bangla, python bangla converter, unicode bangla, বিজয় থেকে ইউনিকোড।
Metadata
Release files for bijoy-to-unicode-file-converter 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bijoy_to_unicode_file_converter-1.2.tar.gz | 10.2 kB | Without provenance | Details for bijoy_to_unicode_file_converter-1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bijoy_to_unicode_file_converter-1.2-py3-none-any.whl | Python 3 | none | any | Details for bijoy_to_unicode_file_converter-1.2-py3-none-any.whl |
Total release size: 20.1 kB
Release files / bijoy_to_unicode_file_converter-1.2.tar.gz
| Download URL | bijoy_to_unicode_file_converter-1.2.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb1fb8829cfc1b0eb1fb8bd5bd1bb18f6aee21f08fc56f076a6abcdfc38801e8
|
|
BLAKE2b-256 checksum How to use checksums |
6a65ccef9f5dee4def2ab4c7ce9191b29d74ed2de595592b89329a8b1d66331b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / bijoy_to_unicode_file_converter-1.2-py3-none-any.whl
| Download URL | bijoy_to_unicode_file_converter-1.2-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55d837e015520df96f71a2ab4719976e72881be76c81b6cc5ac6c90c89f1f45c
|
|
BLAKE2b-256 checksum How to use checksums |
b65b0e06010a34cf2ea2ca075fa3f32caa140affbefb9ed0f621cdfc9ecb1b83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for bijoy-to-unicode-file-converter 1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.