Metadata-Version: 2.4
Name: bijoy_to_unicode_file_converter
Version: 1.2
Summary: Convert your Bijoy (ASCII/ANSI) Bengali text file to Unicode text file easily.
Author-email: Al Mehady <almehady@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/almehady/Bijoy-to-Unicode-File-Converter
Project-URL: Source, https://github.com/almehady/Bijoy-to-Unicode-File-Converter
Keywords: bijoy,unicode,bangla,bengali,converter,ansi,ascii,sutonnymj
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: langdetect~=1.0.9
Dynamic: license-file

# 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

```bash
pip install bijoy-to-unicode-file-converter
```

## Usage

```python
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:

```python
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`](https://pypi.org/project/langdetect/)

## License

Released under the [MIT License](LICENSE).

## Author

**Al Mehady** — [GitHub](https://github.com/almehady/Bijoy-to-Unicode-File-Converter)

---

**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,
বিজয় থেকে ইউনিকোড।
