PDF guide

How to OCR a Lisan ud-Dawat book or scan into editable Word text

By Taha Tahir Ali · Updated

Short answer

Open PDF to Word in Raaj PDF, add the scanned PDF, keep the output on "Same layout, editable" or "Flowing text", choose Kanz al-Marjaan or Al-Kanz under "Fonts in the output", and convert. Pages without text are read line by line with OCR, including a model trained on Lisan ud-Dawat, and rebuilt as editable Word text in that font. Proofread the result, especially harakat.

Most Lisan ud-Dawat material lives on paper or in scanned PDFs: books, risalas, letters, majlis notes and old typed documents. A scan is only a picture of the page, so you can't copy a sentence, search for a word or correct a line. General-purpose OCR treats the script as Arabic or Urdu and stumbles on Lisan ud-Dawat spellings. Raaj PDF reads it with its own model, trained on Lisan ud-Dawat text set in Kanz al-Marjaan and Al-Kanz, and gives you an editable Word file in the same fonts.

Step by step

  1. Make one PDF of the scan. If you have photos, combine them with JPG to PDF. If each scan holds two book pages, cut them with split scanned pages in half and tick right-to-left order.
  2. Open PDF to Word in Raaj PDF and add the PDF.
  3. Under Output, keep Same layout, editable (text, tables and lines where they were) or choose Flowing text (headings and paragraphs). Don't choose Exact: it keeps pages as pictures and skips OCR.
  4. Under Fonts in the output, choose Kanz al-Marjaan or Al-Kanz for all text. Kanz al-Marjaan is used if you choose nothing.
  5. Convert and wait. Each scanned page is read line by line, so a long book takes a while; keep the tab open.
  6. Download the Word file. The note on the result says how many pages were read with OCR.

Everything runs in your browser: the OCR models are downloaded to your device and the scan is not uploaded.

How it reads Lisan ud-Dawat

  • Pages with almost no text inside are treated as scans and rendered at 300 dpi.
  • Every line is read twice: by standard Arabic and Urdu models, and by Raaj PDF's Lisan ud-Dawat model.
  • The more confident reading wins, with a small preference for the Lisan ud-Dawat model. It also keeps numbers inside right-to-left lines in the right order, which the standard models often reverse.
  • The text is written into the Word file in the font you chose, and the font is embedded, so the file looks right on other computers.

Proofread before you use it

OCR is a fast first draft, not a final copy. Expect to correct:

  • harakat (zabar, zer, pesh, shadd), which are small and easily missed or misplaced;
  • letters that look alike in a faint or blurred scan;
  • words at the edge of a page or near a fold;
  • lines in decorative or very large headings.

Read the result against the scan, line by line, for anything that will be printed or shared.

Getting better results

Do this Why
Scan at 300 dpi, black and white or grey Clear letter shapes
Lay the page flat, no shadow in the fold Curved lines read badly
Crop away the opposite page and dark edges Stray marks become stray letters
One book page per PDF page Lines are found more reliably
Typed or printed text Handwriting is not supported well

Searchable PDF instead of Word?

If you only need to search the scan, OCR PDF adds an invisible text layer and keeps the page image. It uses the standard languages (choose Urdu or Arabic), not the Lisan ud-Dawat model, so for editable Lisan ud-Dawat text use PDF to Word as above.

After OCR

Frequently asked questions

Is the Lisan ud-Dawat OCR free?

Yes. Raaj PDF is free with no sign-up.

Does it work on handwritten notes?

The model is trained on printed and typed Lisan ud-Dawat. Handwriting gives poor results; type such notes instead.

Can I choose Al-Kanz instead of Kanz al-Marjaan?

Yes. Pick Al-Kanz under "Fonts in the output" before converting.

Is my book uploaded anywhere?

No. The OCR runs in your browser on your own device.

Raaj Software

May you never need us again.

We build solutions that make themselves indispensable, not problems that make us indispensable.

A philosophy of customer independence, not customer dependency.