Repository navigation
Bundle in-process Tesseract with English, keep external installs working - #711
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Empty until decided, then Bundled or External. Automation profiles are seeded as Bundled so UI tests stay isolated from the real user. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
TesseractHelper becomes a facade over BundledTesseractBackend (Tesseract.CrossPlatform, with bundled English) and the frozen ExternalTesseractBackend. The engine mode is decided once from the saved TesseractPath without running the install probe. Callers gate on the mode-aware IsAvailable(). Includes the tessdata locator and tests. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The downloader now reports a result, supports progress and cancellation, and validates a .tmp file before moving it into place. The Tesseract page gets Bundled and External forms with a language list, download picker, engine status and engine switching. The language page links to it in Bundled mode. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tesseract.CrossPlatform(in-process, win-x64 and win-arm64), with thetessdata_fastEnglish model bundled.TesseractEngineModesetting, decided once: a savedTesseractPaththat still exists keeps the legacytesseract.exepath (External); everyone else gets Bundled. The decision never runs the install probe.UseTesseractstays off by default.TesseractHelperis now a facade overBundledTesseractBackendand the frozenExternalTesseractBackend; callers gate on a mode-awareIsAvailable().tessdatafolder (MSIX local folder, next to the exe, or the automation profile dir); downloaded models override bundled ones. No UAC prompt for downloads..tmpwrite, size validation.docs/Spike-Bundling-Tesseract.md.Testing
font_sample.pngwith the bundled engine and tests for the mode migration, tessdata locator and downloader.Not verified yet
Text-Grab.exe(native loader workaround, bundled model reachability).tesseract.exeon the OCR fixtures.OcrCapability.Tests.ps1,coverage.json) still probe for an external install and were not updated.🤖 Generated with Claude Code