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("انا بحب الكشيدة")
>>> انـا بحـب الكشـيدة
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 | |
|---|---|---|---|
| kashida-1.0.1.tar.gz | 7.7 kB | Details |
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
|