Skip to main content

Translate fancy text to regular text

Project description

Unfancy text

This program converts "fancy text", that is, text written with an alternative set of Latin characters, such as mathematical alphabet to plain Latin characters.

Usage

Use as commandline interface:

$ python unfancy.py
Press Ctrl+C or Ctrl+D to exit
𝐓𝐡𝐞 𝐪𝐮𝐢𝐜𝐤 𝐛𝐫𝐨𝐰𝐧 𝐟𝐨𝐱 𝐣𝐮𝐦𝐩𝐬 𝐨𝐯𝐞𝐫 𝐭𝐡𝐞 𝐥𝐚𝐳𝐲 𝐝𝐨𝐠
Fancy type: mathematical bold
The quick brown fox jumps over the lazy dog

Use as a library

from unfancy import create_multi_alphabet_map, translate_text

alphabet_map = create_multi_alphabet_map()
# alphabet_map parameter is optional,
# but it is recommended to create it separately to avoid repetition
fancy_text = "𝐓𝐡𝐞 𝐪𝐮𝐢𝐜𝐤 𝐛𝐫𝐨𝐰𝐧 𝐟𝐨𝐱 𝐣𝐮𝐦𝐩𝐬 𝐨𝐯𝐞𝐫 𝐭𝐡𝐞 𝐥𝐚𝐳𝐲 𝐝𝐨𝐠"
unfancy_text, label = translate_text(fancy_text, alphabet_map)

To do

  • Support Greek mathematical alphabets
  • Allow select specific character sets to make translation
  • Package the thing

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

unfancy-1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

unfancy-1.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file unfancy-1.0.tar.gz.

File metadata

  • Download URL: unfancy-1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for unfancy-1.0.tar.gz
Algorithm Hash digest
SHA256 934c1f3396aa97d4d122a134c520df64b0957158d0b1d6a9be74bd550e3778f3
MD5 2c532c1e64be3188d0ff2813fa78cca1
BLAKE2b-256 e10955ca85e7dd01b015e94f82ff6bff2304060cf1d5cc43f5724dc95d604b49

See more details on using hashes here.

File details

Details for the file unfancy-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: unfancy-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.2

File hashes

Hashes for unfancy-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 96621ff34d363d7755089553ae933488df2fb64fba980003985ce3efa39d9e50
MD5 64fda656e37921faaf92aae916b2fbc6
BLAKE2b-256 f689a390544f17467bae5c754c931d9eadf42c90cf117d2201e1bfb6a12e5f86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page