Skip to main content

arabic-fixtures

Eight right-to-left test strings for checking that your PDFs, OG images and charts render Arabic, Persian and Hebrew correctly. They are the fixtures behind Does It Arabic?, a screenshot-backed test matrix of PDF, image and chart libraries.

id what it catches
connected letters drawn isolated instead of joined
lam-alef missing mandatory لا ligature
harakat vowel marks dropped, floating or misplaced
invoice-line Order #1234 للعميل محمد – 250 TND: mixed Arabic, Latin and numbers in bidi order
digits Arabic-Indic (١٢٣) and Persian (۶۷۸) digits
persian Persian ی ک پ گ and the zero-width non-joiner
hebrew Hebrew with numbers
wrapping line wrapping of an RTL paragraph

Each fixture has id, title, text, dir, lang, an English meaning and checks, a plain-language description of what correct output looks like.

JavaScript

npm install arabic-fixtures
const fx = require('arabic-fixtures');
fx.get('invoice-line').text;   // 'Order #1234 للعميل محمد – 250 TND'
fx.ids();                       // ['connected', 'lam-alef', ...]

Python

pip install arabic-fixtures
import arabic_fixtures as fx
fx.get("invoice-line")["text"]
fx.ids()

Judging the output

Render a fixture with your code. The image or PDF page should contain only that text. Then judge it with the check command from the Does It Arabic? repository:

python -m doesitarabic check invoice.pdf --fixture invoice-line --font YourFont.ttf

Licence

The fixtures are released under CC0 1.0 (public domain). Made by Alaa Taieb.

Metadata

Release files for arabic-fixtures 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arabic-fixtures 0.1.0
File Size Uploaded Provenance Actions
arabic_fixtures-0.1.0.tar.gz 6.6 kB Without provenance Details for arabic_fixtures-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for arabic-fixtures 0.1.0
File Interpreter ABI Platform Actions
arabic_fixtures-0.1.0-py3-none-any.whl Python 3 none any Details for arabic_fixtures-0.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / arabic_fixtures-0.1.0.tar.gz

Download URL arabic_fixtures-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7b797874f9981ddda009a422a2a377ae9487588e1c1091527bfea148ead81b40
BLAKE2b-256 checksum
How to use checksums
a24d67e08f1c6cee08eba85af3b5c8942479fff8b002d42cdcc46bf1a7aced43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / arabic_fixtures-0.1.0-py3-none-any.whl

Download URL arabic_fixtures-0.1.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21c0fc41fbe162cffc3af8594a7de14f6b0b0dfc9511f951f0fd319d3e138351
BLAKE2b-256 checksum
How to use checksums
950779cba4e41a3b66c257449701350f83a5ec7dbfbb1d454464f0d4a2cba722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Security for arabic-fixtures 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page