Skip to main content

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

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

legacy_font_converter-0.1.3.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

legacy_font_converter-0.1.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

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

Hashes for legacy_font_converter-0.1.3.tar.gz
Algorithm Hash digest
SHA256 485b4ec49d406eeb1fbb522b1af84732a796a2eded8bf9663ad7f2ed6c337192
MD5 e721e222ed9429e99792308b8294d21e
BLAKE2b-256 8ec46f80d96e4ba72369bc88567334174c6504aa552db8c5c17f781f32fbe599

See more details on using hashes here.

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

Hashes for legacy_font_converter-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef8f39e7c0f1c742d7c5005254d935f8a5cb1691b22ee311a5c8dbdedc0cf8f2
MD5 d70cb9b54323f1306c6d8db41bd29599
BLAKE2b-256 f99a5d81be8dc91f575e31939ccacab850e3e7d3371f052cd06af0c34d39433e

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