Skip to content

Automatically detect installed tesseract languages#5787

Open
samanshirdel wants to merge 1 commit into
basecamp:devfrom
samanshirdel:improve-ocr-language-detection
Open

Automatically detect installed tesseract languages#5787
samanshirdel wants to merge 1 commit into
basecamp:devfrom
samanshirdel:improve-ocr-language-detection

Conversation

@samanshirdel
Copy link
Copy Markdown

Automatically detect installed Tesseract languages when OMARCHY_OCR_LANGS is not set.

Currently the script defaults to eng, which prevents OCR from working for users who have other language packs installed (e.g. fra, ara, jpn).

This change keeps the existing behavior when OMARCHY_OCR_LANGS is defined, but otherwise automatically detects installed languages via tesseract --list-langs.

This allows OCR to work out-of-the-box for users who installed additional language packs through their package manager, without requiring manual configuration.

Copilot AI review requested due to automatic review settings May 12, 2026 21:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants