From 792e951e62ed466960611538c33fcf5d292c0df4 Mon Sep 17 00:00:00 2001 From: salvacybersec Date: Tue, 7 Apr 2026 01:58:45 +0300 Subject: [PATCH] Add Russian + Arabic OCR support (tur+eng+rus+ara) Co-Authored-By: Claude Opus 4.6 (1M context) --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6f47ba2..28af3e3 100644 --- a/setup.py +++ b/setup.py @@ -345,7 +345,7 @@ def is_scanned_pdf(file_path): return False -def ocr_pdf(file_path, language="tur+eng", dpi=200): +def ocr_pdf(file_path, language="tur+eng+rus+ara", dpi=200): """OCR a scanned PDF in-place. Returns True on success.""" import tempfile tmp_fd, tmp_path = tempfile.mkstemp(suffix=".pdf", dir=file_path.parent)