Metadata-Version: 2.5
Name: bijoy-unicode
Version: 1.0.0
Summary: Convert Bijoy (SutonnyMJ) Bangla text to Unicode and back. Pure Python, no dependencies. The engine behind kovapdf.com/bijoy-to-unicode.
Project-URL: Homepage, https://www.kovapdf.com/bijoy-to-unicode
Project-URL: Source, https://github.com/kovapdf/bijoy-unicode
Project-URL: Issues, https://github.com/kovapdf/bijoy-unicode/issues
Author-email: KovaPDF <support@kovapdf.com>
License-Expression: MIT
License-File: LICENSE
Keywords: bangla,bangladesh,bengali,bijoy,bijoy-to-unicode,converter,nikosh,sutonny,sutonnymj,unicode
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Bengali
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# bijoy-unicode (Python)

Convert Bangla text typed in **Bijoy** (the SutonnyMJ family of fonts) to **Unicode**, and Unicode back to Bijoy. Pure Python, no dependencies, works offline.

This is a port of the conversion engine that runs the Bijoy to Unicode tool on KovaPDF. Its tables are generated from that engine, and it passes the same test vectors as the JavaScript package (`@kovapdf/bijoy-unicode` on npm).

Need it for whole PDF or Word files? Use KovaPDF: https://www.kovapdf.com/bijoy-to-unicode

Built by KovaPDF, https://www.kovapdf.com

```sh
pip install bijoy-unicode
```

```python
from bijoy_unicode import to_unicode, to_bijoy, convert_with_report, detect_encoding, is_bijoy_font

to_unicode("Avgvi †mvbvi evsjv")                           # 'আমার সোনার বাংলা'
to_bijoy("আমার সোনার বাংলা")                               # 'Avgvi †mvbvi evsjv'
to_unicode("GB file wU download Kiæb", keep_english=True)  # 'এই file টি download করুন'
to_bijoy("শিক্ষা", flavour="classic")                      # 'wk¶v'
convert_with_report("Avwg 😀", "bijoy-to-unicode")         # dict: text, keptEnglish, unknown, stats
detect_encoding("evsjv‡`k miKvi")["kind"]                   # 'bijoy'
is_bijoy_font("SutonnyMJ")                                 # True
```

Command line (stdin or a file in, stdout out):

```sh
bijoy-unicode to-unicode < bijoy.txt > unicode.txt
python -m bijoy_unicode to-bijoy unicode.txt
```

**SutonnyMJ** is a Bijoy font: it draws Bangla shapes on ordinary Latin codes, so its text reads as "Avgvi" without the font. **Nikosh** is a Unicode font: set converted text in Nikosh (or any Unicode Bangla font). No fonts are included in this package.

Full documentation: https://github.com/kovapdf/bijoy-unicode

The code is MIT licensed. The KovaPDF name, logo and website content are not covered by that licence.
