Convert your Bijoy (ASCII/ANSI) Bengali text file to Unicode text file easily.
Project description
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, বিজয় থেকে ইউনিকোড।
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bijoy_to_unicode_file_converter-1.2.tar.gz.
File metadata
- Download URL: bijoy_to_unicode_file_converter-1.2.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb1fb8829cfc1b0eb1fb8bd5bd1bb18f6aee21f08fc56f076a6abcdfc38801e8
|
|
| MD5 |
74a32c35c9d6dc4f9dbf9b53cbe41a28
|
|
| BLAKE2b-256 |
6a65ccef9f5dee4def2ab4c7ce9191b29d74ed2de595592b89329a8b1d66331b
|
File details
Details for the file bijoy_to_unicode_file_converter-1.2-py3-none-any.whl.
File metadata
- Download URL: bijoy_to_unicode_file_converter-1.2-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55d837e015520df96f71a2ab4719976e72881be76c81b6cc5ac6c90c89f1f45c
|
|
| MD5 |
f620c2afd324f95d94dffe0c895d6ad4
|
|
| BLAKE2b-256 |
b65b0e06010a34cf2ea2ca075fa3f32caa140affbefb9ed0f621cdfc9ecb1b83
|