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("انا بحب الكشيدة")
>>> انـا بحـب الكشـيدة
Metadata
Release files for kashida 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kashida-1.0.1.tar.gz | 7.7 kB | Without provenance | Details for kashida-1.0.1.tar.gz |
Release files / kashida-1.0.1.tar.gz
| Download URL | kashida-1.0.1.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4cf97f3d348f10b5a01aa216ff0cd1b00b0b85604c6344da2d6b5658a85a177
|
|
BLAKE2b-256 checksum How to use checksums |
3c47579446e7a0187bcce995f33935e313959612aec7bb209fd16387a3dea8d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.1
|
Security for kashida 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.