Ali-K to Unicode: Converting Old Kurdish Documents
Ali-K to Unicode: why old Kurdish documents break on phones, web and search, and a step-by-step way to convert, normalise and spell-check them safely.
Kurdish OCR for archives, schools and offices: how to capture good scans, test Sorani engines, check accuracy and store searchable results.

Many archives, schools and offices in the Kurdistan Region hold shelves of Kurdish books, exam papers, letters and forms that exist only on paper or as flat scans. Nobody can search them, quote them or reuse them without retyping. Kurdish OCR, which turns images of Sorani text into real Unicode text, has improved this year. It is still not a button you can press and trust.
This guide is for people who want to start properly. It covers how to capture good images, how to choose and test an engine, where accuracy runs out, and how to store the results so someone can find them in ten years.
Research on Sorani OCR has moved quickly. In September 2026, a peer-reviewed paper in Algorithms described a Sorani OCR system with four parts: synthetic training data, script-aware normalisation (cleaning up characters that look alike in Arabic and Kurdish), synthetic text-line images and a TrOCR-style transformer model. The same paper notes that recent Kurdish datasets focus on handwriting or text in street and sign photos, and that printed Sorani document-line OCR still has no public benchmark.
Several other projects point the same way:
The message for practitioners is simple. Tools are improving, there is no agreed benchmark, and you must test on your own pages.
No engine can fix a bad image. In my experience, capture problems explain most poor OCR results.
There are two broad routes: local open-source tools and cloud services.
Local tools. Tesseract is the usual local choice. Its official "kur" data file was not updated after version 3.04. Community-trained Central Kurdish (ckb) models are available, such as Shreeshrii's tesstrain-ckb for Sorani in Arabic script. The models in tessdata_best and tessdata_fast only work with the LSTM engine (--oem 1).
Cloud services. Azure Vision Read lists printed Kurdish as ku-arab (Arabic script) and ku-latn (Latin script). Microsoft advises against forcing a language code unless you are sure of the language, because doing so may return incomplete and incorrect text. Users on Microsoft Q&A have reported that Azure extracted Sorani text with clear differences from the original, although those threads are around two years old. Mistral's supported-languages page does not list Kurdish. Always check a vendor's current documentation before you commit.
Before choosing any cloud tool, classify your documents. ID cards, student records and HR files should not leave your network, and they should never be pasted into consumer chatbots.
| Situation | Sensible option |
|---|---|
| Sensitive files (IDs, student records, HR) | Run OCR locally with Tesseract, a ckb model and OCRmyPDF, so nothing leaves your network |
| Large mixed archive, not sensitive | Run a cloud service (such as Azure Read) and a local Tesseract ckb model on the same sample and compare |
| Old print (1930s–1970s), unusual fonts | Plan to fine-tune or to review by hand; research shows fine-tuning helps |
| Handwriting | Treat it as a pilot only; research is still at the dataset stage |
| Mixed Kurdish/Arabic/English pages | Leave cloud auto-detection on; with Tesseract, combine models (e.g. -l ckb+ara+eng) and test |
Sometimes you just need to read a single non-sensitive page, such as a textbook paragraph, a notice or a handout. For that, Kurd.AI, which I founded, has a photo-to-text tool for Kurdish, along with a spelling checker. It is handy for students and teachers. For bulk or confidential work, though, build a proper pipeline.
You do not need a research team to know whether an engine is good enough.
The right standard depends on the use. If the text is only for search, a document can still be found despite some errors. Anything that will be quoted, published or used officially needs a person to review it.
Even fine-tuned models make mistakes, and the KurdishMCQ team still needed native speakers to check their output. AI vision models add a particular risk. They can produce fluent text that reads well but does not match the page. Treat their output as a draft, not a record.
After OCR, watch for characters that look the same in Arabic and Kurdish, such as ي/ی, ك/ک and ه/ە, and normalise them so search works consistently. The September paper treats script-aware normalisation as a core step. If your collection also contains old digital files typed in Ali-K fonts, my earlier post on converting Ali-K to Unicode covers that next step.
OCR is only useful if people can find the output later. For each document, keep three files:
OCRmyPDF produces the searchable PDF and the text sidecar. It adds a text layer under the original image without reducing its resolution, outputs PDF/A by default, can deskew pages, and runs on Linux, macOS, Windows and FreeBSD. Here is an example, which assumes the ckb traineddata file is already installed in your tessdata folder:
# Example only: requires ckb.traineddata in your tessdata folder
ocrmypdf -l ckb+eng --deskew --output-type pdfa --sidecar page.txt input.pdf output.pdf
If some pages already contain text, --skip-text leaves them alone.
Use one naming pattern across the whole collection, for example org_collection_yyyy-mm-dd_docID_p001. Keep a simple metadata sheet with these fields:
Then load everything into a document management system with search and access controls. paperless-ngx, which builds on OCRmyPDF, is one open-source option. Restrict access to people who need it and keep an off-site backup.
If you would rather not build this yourself, my company, Standing, provides hosting, security and application services and can help set up and host a local OCR and document pipeline.
Kurdish OCR is now good enough to make many collections searchable, but not good enough to trust without checking. Start small, measure on your own pages, and keep your master images. Then every improvement in Sorani models becomes a free upgrade to your archive.
🤖 Researched and drafted with AI assistance, guided by my editorial standards. Spotted something wrong? Tell me.