Kurdish and Pashto OCR, tested with free Tesseract
97.1%
of Pashto letters right: pus, best, --psm 6
| Language | Use |
|---|---|
| Pashto | pus, best, --psm 6 |
| Sorani Kurdish | ckbLayer, a community model, --psm 6 |
| Kurmanji Kurdish | kmr, fast or best |
Sorani has no official model. Sindhi: snd, best, --psm 6. Uyghur: uig.
Pashto: pus against the Arabic models
Ten Pashto Wikipedia passages, drawn in two fonts, clean and with a scan look:
| Model | Letters | Own letters | Words |
|---|---|---|---|
| pus, best | 96.1% | 97.5% | 92.1% |
| pus, best, --psm 6 | 97.1% | 98.3% | 93.0% |
| script/Arabic, best | 95.8% | 96.3% | 90.9% |
| ara, best | 75.7% | 0% | 44.4% |
Own letters: the ones ara cannot write. Counting ك as ک and ي or ى as ی, ara read 82.7% of letters.
Sorani has no official Tesseract model
A community model exists: ckbLayer (2020, Apache-2.0), not from the Tesseract project. On our 40 Sorani pages:
| Model | Letters | Own letters | Words |
|---|---|---|---|
| ckbLayer, --psm 6 | 98.2% | 97.5% | 94.0% |
| script/Arabic, best, --psm 6 | 84.9% | 70.2% | 45.3% |
| ara, best | 54.1% | 0% | 8.5% |
script/Arabic with --psm 6 wrote ە as ه 586 times, and cannot write ڤ. ckbLayer wrote all 92 ھ as ه.
The letters ara cannot write
ara cannot write 22.8% of the letters on the Pashto pages, and 43.1% on the Sorani ones. What it wrote instead, on the 40 pages:
| Letter | Language | ara wrote, how often |
|---|---|---|
| ښ | Pashto | ش, 36 of 60 |
| ټ | Pashto | ت, 95 of 100 |
| ګ | Pashto | ك, 90 of 96 |
| ړ | Pashto | ر, 207 of 212 |
| ڕ | Sorani | ر, 129 of 140 |
| ڵ | Sorani | ل, 131 of 144 |
| ێ | Sorani | ي, 310 of 436 |
| ە | Sorani | ه, 1,182 of 1,772 |
- Pashto Wikipedia
- ښایسته ګلان کرل شوې وي
- pus, best, --psm 6
- ښایسته ګلان کرل شوې وي
- ara, best
- شايسته كلان كرل شوي وي
Kurmanji: kmr against tur and eng
Kurmanji uses Latin letters, plus five with marks that English lacks: ç ê î ş û. Own letters counts those and their capitals. tur has ç and ş.
| Model | Letters | Own letters | Words |
|---|---|---|---|
| kmr, best | 99.9% | 100% | 99.8% |
| tur | 89.2% | 10.5% | 56.4% |
| eng | 87.8% | 0% | 54.2% |
tur wrote î as i 359 times and û as ü 243. eng wrote ê as é 686 times.
Clean pages lost whole lines
| Language | Clean | Scan look |
|---|---|---|
| Pashto | 96.0% | 98.3% |
| Sorani | 97.4% | 99.1% |
| Kurmanji | 99.9% | 100% |
On clean Arabic script pages, the default page mode left out whole lines. I do not know why; it may come from how these pages were drawn. --psm 6 lifted clean Sorani from 93.2% to 97.4% with ckbLayer.
Sindhi and Uyghur, in short
| Model | Letters | Own letters | Words |
|---|---|---|---|
| Sindhi: snd, best | 90.7% | 89.5% | 89.4% |
| Sindhi: ara, best | 83.2% | 0% | 56.4% |
| Uyghur: uig, best | 93.6% | 87.3% | 83.8% |
| Uyghur: ara, best | 60.0% | 0% | 5.3% |
With --psm 6, snd read 93.4% of Sindhi letters.
Install the models and run them
apt (tesseract-ocr-pus, -kmr, -snd, -uig and -script-arab) and Homebrew (tesseract-lang) install the fast files. To get best, and ckbLayer, put them in a folder:
mkdir -p ~/tessdata/script
for l in pus kmr snd uig script/Arabic; do
curl -fL -o ~/tessdata/$l.traineddata \
https://raw.githubusercontent.com/tesseract-ocr/tessdata_best/4.1.0/$l.traineddata
done
curl -fL -o ~/tessdata/ckbLayer.traineddata \
https://raw.githubusercontent.com/Shreeshrii/tesstrain-ckb/1.0/data/ckbLayer.traineddata
Then read a page. --psm 6 reads it as one block of text:
tesseract pashto.png pashto --tessdata-dir ~/tessdata --psm 6 -l pus
tesseract kurmanji.png kurmanji --tessdata-dir ~/tessdata -l kmr
tesseract sorani.png sorani --tessdata-dir ~/tessdata --psm 6 -l ckbLayer
Official Sorani fallback: -l script/Arabic. apt installs that file as Arabic: use -l Arabic and no --tessdata-dir.
Our Actor lacks these languages
PDF OCR to Markdown, our Apify Actor, lists 23 languages. Kurdish, Pashto, Sindhi and Uyghur are not among them.
- Set to Arabic, its code, run on our Mac and not on Apify, read 75.5% of Pashto letters and 52.8% of Sorani, and none of the letters ara lacks.
- Set to Turkish: 89.2% of Kurmanji letters.
- Scanned pages: $0.006 each. Digital pages: free. Plus a $0.00005 start fee a run at the default 1 GB.
- On Apify's free plan, it stops at 20 pages a run and 50 a month.
Use it for scanned Arabic or Turkish PDFs. Typed Arabic PDFs still come out backwards on the current build.
What I did not test
- Real scans, handwriting, tables and two columns: every page here was drawn from Wikipedia text.
- Nastaliq type, and fonts other than the four Noto fonts.
- Paid OCR, other community models, and the old kur file in the 3.04.00 tag of tessdata.
- Windows and Linux. Everything ran on one Mac.
How I tested it
- Text: 10 passages a language, from random articles (4,000 bytes or more) of the Central Kurdish, Kurmanji, Pashto, Sindhi and Uyghur Wikipedias, with length and script filters. 16,585 letters in all.
- Fonts: Noto Naskh Arabic and Noto Sans Arabic; for Kurmanji, Noto Serif and Noto Sans. Each page clean, and with a scan look: blur, noise and JPEG at quality 30.
- Letters: the share of the page's letters found in order. Words: whole words found, in any order. Own letters: counted per page, by count, not position. Scores are strict: ك is not ک, ي is not ی.
- Also scored: the character error rate (CER), and a noise floor: each output scored against the other passages of its language, 33.6% to 36.5% of letters for the right models. Lines turned around fall to about that floor, so the output is in reading order.
- Page modes: on 16 clean pages first, --psm 4 scored like the default and --psm 6 helped Sorani and Sindhi, so --psm 6 ran on each language's best model.
- Tesseract 5.5.4, models from the 4.1.0 tag of tessdata_best and tessdata_fast. tur and eng: tessdata_fast, the files our Actor ships. macOS 26.6. fast and best were within 0.2 points of letters on every language.
- ckbLayer: tag 1.0 of Shreeshrii/tesstrain-ckb. Its training text names no source, and no 5-word run of our Sorani passages is in it.
- The Actor rows: its code at build 0.1.125 (latest on November 22), run on our Mac, not on Apify, on 10 clean pages a language.
- Scripts and results stay in our private repo, in research/bench/kurdish-pashto-ocr-2026-11-22/.
Sources
- tessdata_best and tessdata_fast on GitHub, and Tesseract (Apache-2.0)
- ckbLayer by Shreeshrii on GitHub (Apache-2.0)
- Text from the Central Kurdish, Kurmanji, Pashto, Sindhi and Uyghur Wikipedias, under CC BY-SA 4.0, drawn as images by me
- Noto Arabic and Noto Sans and Serif (OFL 1.1)
- We make the Apify Actor, and none of the other tools here.
Questions people ask
Does Tesseract support Kurdish?
Kurmanji, yes: kmr, in Latin letters. Sorani (ckb) has no official Tesseract model. On our pages with --psm 6, the community model ckbLayer read 98.2% of Sorani letters, and script/Arabic best 84.9%.
Which Tesseract model is best for Pashto?
pus, best, with --psm 6: 97.1% of the letters and 93.0% of whole words on our drawn pages. ara best got 75.7% of the letters: it cannot write ټ, ښ, ګ and other Pashto letters.
Can I use the Arabic model for Kurdish or Pashto?
It loses letters. ara cannot write 22.8% of the letters on our Pashto pages, or 43.1% on the Sorani ones. Where the page had ښ, it most often wrote ش.
What is the Tesseract language code for Pashto?
pus. Kurmanji is kmr, Sindhi snd, Uyghur uig. Sorani is ckb, but no official model has that code: use the community ckbLayer, or -l script/Arabic from tessdata_best.
Related guides
- Tesseract Arabic OCR: ara, best and script/Arabic tested
- Persian OCR (Farsi), tested: free Tesseract models on 29 scans
- Urdu OCR, tested: free Tesseract models on 30 scans
- tessdata_best vs tessdata_fast, tested on real scans
- Tesseract multiple languages: why the order matters
- OCRmyPDF language: -l codes, install, tested