Skip to main content

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 .txt file 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

License

Released under the MIT License.

Author

Al MehadyGitHub


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bijoy_to_unicode_file_converter-1.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file bijoy_to_unicode_file_converter-1.2.tar.gz.

File metadata

File hashes

Hashes for bijoy_to_unicode_file_converter-1.2.tar.gz
Algorithm Hash digest
SHA256 cb1fb8829cfc1b0eb1fb8bd5bd1bb18f6aee21f08fc56f076a6abcdfc38801e8
MD5 74a32c35c9d6dc4f9dbf9b53cbe41a28
BLAKE2b-256 6a65ccef9f5dee4def2ab4c7ce9191b29d74ed2de595592b89329a8b1d66331b

See more details on using hashes here.

File details

Details for the file bijoy_to_unicode_file_converter-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for bijoy_to_unicode_file_converter-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55d837e015520df96f71a2ab4719976e72881be76c81b6cc5ac6c90c89f1f45c
MD5 f620c2afd324f95d94dffe0c895d6ad4
BLAKE2b-256 b65b0e06010a34cf2ea2ca075fa3f32caa140affbefb9ed0f621cdfc9ecb1b83

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