Some OCR tools guess the document language; others default to English and fail silently on other languages. Tesseract’s manual is explicit: if no language is given, English is assumed, so an auto-detect step matters before any OCR run.
Use the practice file
A practice document, practice-auto-detect.pdf. The file is fictional.
| Page | Content |
|---|---|
| 1 | English paragraph, 4 lines |
| 2 | French paragraph, 4 lines, including the word “récolte” |
| 3 | German paragraph, 4 lines, including the word “Ernte” |
Page 2 is the check page: the French paragraph includes the word “récolte”.
Check automatic language detection
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 auto-detect if your tool offers it
Ask the tool to detect the language of page 2.
Expected result: The tool reports French, or reports that it cannot detect the language.
2. Test the English default
Run OCR on page 2 with the default English setting and copy the result.
Expected result: The French words come out garbled, showing the default is not safe.
3. Run OCR with French set
Set the language to French (fra) and run OCR on page 2.
Expected result: The word “récolte” is recognised with its accent intact.
4. Check the German page
Repeat the test on page 3 with German (deu).
Expected result: “Ernte” is recognised correctly only when German is set.
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Run auto-detect if your tool offers it | The tool reports French, or reports that it cannot detect the language. | — |
| Test the English default | The French words come out garbled, showing the default is not safe. | — |
| Run OCR with French set | The word “récolte” is recognised with its accent intact. | — |
| Check the German page | “Ernte” is recognised correctly only when German is set. | — |
Related guides: How to Pick the OCR Language for a Multilingual Scanned PDF — How to Check That Your OCR Language Pack Is Installed.
Limits
- Auto-detect that is wrong is worse than no auto-detect, because it looks like a decision; verify the detected language against a word you can read on the page.
- 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.
