Skip to content

Choose scan languages and download them once for offline reading - #66

Merged
mberman84 merged 2 commits into
mainfrom
codex/multilingual-ocr
Nov 5, 2026
Merged

mberman84 merged 2 commits into
mainfrom
codex/multilingual-ocr

Conversation

@mberman84

Copy link
Copy Markdown
Collaborator

Problem

Folio can recognize English in a scanned PDF. A reader opening a scan in another language, or a document that mixes languages, has no way to tell the reader which models to use.

Change

Settings → Reading has a searchable Scan languages dropdown with 123 language and script options. English ships with Folio. Readers can select additional languages, see the total download size, and save the packs for offline use. Applying the selection re-reads open scans and remembers the choice for future documents. Each download is limited to the expected size and checked against its pinned SHA-256 digest before Folio saves it.

Issue or approval

Approved scope for #15. This implements language selection in Folio’s built-in OCR. #21 covers document-wide search and searchable copies.

How I checked it

  • On Windows, TypeScript, the production build, and the full Electron smoke suite passed. The regression rejects a damaged Spanish pack, retries successfully, recognizes a mixed Spanish and German scan, and reuses the saved packs.
  • Downloaded French on Windows and verified it remained available after a full app restart with downloads blocked. In the browser edition, downloaded Spanish and Japanese, reopened the scan with external requests blocked, and selected the recognized text.
  • Initialized all 123 model packs locally. The PR workflow runs the build and smoke suite on Windows, macOS, and Linux.

Before

Reading settings before the language picker

After

Reading settings with English and Arabic selected and the download size shown

Silent walkthrough

walkthrough.mp4

Implemented and verified with GPT-6 in Codex Desktop.

@mberman84
mberman84 merged commit 704f0b9 into main Nov 5, 2026
3 checks passed
@mberman84
mberman84 deleted the codex/multilingual-ocr branch November 5, 2026 18:30
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.

1 participant