Skip to main content

No project description provided

Project description

Kashida

Insert Kashidas typographically correct into Arabic text via a nifty Python package: Only once per word, and following the rules as layed out in Khtt.net’s Kashida Secret, which defines rules for typesetting Kashidas in Naskh script.

The implementation is in its infancy because letters are currently hard-coded into the code and should be replaced by a more dynamic Unicode-based recognition. Nonetheless, it should work for most Arabic-script-based languages.

If you find that a word isn’t getting the right amount of Kashida love (according to the Kashida Secret rules), consider to raise an issue at https://github.com/yanone/kashida/issues

Installation

Obtain it from PyPI:

pip install kashida

Usage

import kashida

# Obtain kashida for single word
>>> kashida.word("كشيدة")
>>> كشـيدة

# Obtain kashidas for a whole text, once per word
>>> kashida.text("انا بحب الكشيدة")
>>> انـا بحـب الكشـيدة

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

kashida-1.0.1.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file kashida-1.0.1.tar.gz.

File metadata

  • Download URL: kashida-1.0.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for kashida-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b4cf97f3d348f10b5a01aa216ff0cd1b00b0b85604c6344da2d6b5658a85a177
MD5 cd7000fce94352189fe8124cc372c67d
BLAKE2b-256 3c47579446e7a0187bcce995f33935e313959612aec7bb209fd16387a3dea8d5

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