Right-to-left scripts run in the opposite direction from English, and OCR that assumes left-to-right can reverse the word order. The OCRmyPDF manual notes its renderer provides full international language support including RTL scripts, and Tesseract’s manual lists Arabic and Hebrew among its traineddata languages.
Use the practice file
A practice document, practice-rtl-text.pdf. The file is fictional.
| Page | Content |
|---|---|
| 1 | English introduction, 1 paragraph |
| 2 | Arabic passage, 4 lines, first word “al-harvest” in transliteration notes |
| 3 | English conclusion |
Page 2 is the check page: the Arabic passage has 4 lines and its first line is the longest.
Check the right-to-left passage
Expected result. We checked the Tesseract manual and the Adobe Help. We did not run any tool. The checks below are what to expect if the work is done correctly; run them yourself on the practice file.
1. Run OCR with the right language
Set the OCR language to Arabic (ara) for page 2, not English.
Expected result: OCR processes page 2 with the Arabic language model.
2. Select a word in the passage
Drag across the first word of the first line on page 2.
Expected result: The word highlights on its own, at the right-hand end of the line.
3. Copy the passage
Copy the four lines and paste them into a text file.
Expected result: The lines paste in top-to-bottom order, and each line reads right-to-left.
4. Search for a word from the passage
Use Find for a word you can see in the passage.
Expected result: 1 hit, on page 2, at the visible word.
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Run OCR with the right language | OCR processes page 2 with the Arabic language model. | — |
| Select a word in the passage | The word highlights on its own, at the right-hand end of the line. | — |
| Copy the passage | The lines paste in top-to-bottom order, and each line reads right-to-left. | — |
| Search for a word from the passage | 1 hit, on page 2, at the visible word. | — |
Related guides: How to Pick the OCR Language for a Multilingual Scanned PDF — How to Check That Your OCR Language Pack Is Installed.
Limits
- Never OCR right-to-left text with the English setting: the letters may come out while the order is reversed, which looks like success until someone reads it.
- The wrong language setting produces confident-looking gibberish; the language must match the page, not the reader.
- UNTESTED — no OCR tool was run; all results above are expected results. The practice file is fictional.
Sources
- Tesseract manual, “tesseract(1) — command-line OCR engine” — Default language is English; -l takes 3-character ISO 639-2 codes, joined with + for several languages; –list-langs lists installed packs; –psm sets the page segmentation mode. Checked 2026-11-28.
- Adobe Help, “Recognize text in scanned PDFs with Acrobat” — Scanned PDFs hold only image data; Recognize Text creates a searchable text layer. Checked 2026-11-28.
