A tool to convert between legacy font and unicode
Project description
Abdur-Rahim Sheikh Legacy Font Converter
A Python package for converting legacy fonts.
Introduction
In today's context we use or will use LLM (Large Language Models) in our daily life. But the problem is that the LLMs are trained on the Unicode text. But in many cases, we have to deal with the legacy fonts. So, this package will help you to convert the legacy fonts to Unicode text.
Specially for Bangla language, there are many legacy fonts like SutonnyMJ, SolaimanLipi, etc. Which are used in docx files, pdf files, etc.But we have no help to work with them programatically. So, this package will help you to convert those legacy fonts to Unicode text. To easily encorporate with issues like feeding the LLMs and revert back the llm response to the legacy fonts.
Available fonts
- SutonnyMJ
- Salma
- SolaimanLipi
- Nikosh
Features
convert(text:str, font_name:str, to_legacy:bool)->str
available_fonts()->list[str]
Installation
You can install the package using pip:
pip install legacy-font-converter
Or you can install the package from source:
pip install git+https://github.com/Abdur-Rahim-sheikh/legacy-font-converter.git
Example usage
from legacy_font_converter import LegacyFontConverter
Reference
- A big applaus to True finder studio
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 legacy_font_converter-0.1.3.tar.gz.
File metadata
- Download URL: legacy_font_converter-0.1.3.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-126-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
485b4ec49d406eeb1fbb522b1af84732a796a2eded8bf9663ad7f2ed6c337192
|
|
| MD5 |
e721e222ed9429e99792308b8294d21e
|
|
| BLAKE2b-256 |
8ec46f80d96e4ba72369bc88567334174c6504aa552db8c5c17f781f32fbe599
|
File details
Details for the file legacy_font_converter-0.1.3-py3-none-any.whl.
File metadata
- Download URL: legacy_font_converter-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/5.15.0-126-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef8f39e7c0f1c742d7c5005254d935f8a5cb1691b22ee311a5c8dbdedc0cf8f2
|
|
| MD5 |
d70cb9b54323f1306c6d8db41bd29599
|
|
| BLAKE2b-256 |
f99a5d81be8dc91f575e31939ccacab850e3e7d3371f052cd06af0c34d39433e
|