OCR: choose the recognizer language per call (find_text, index_recording, wait_for_change)
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 56/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- backend
Piste de recherche
Start with src/utils/ocr.ts and trace how OCR is created and how language handling is reported; then follow the callers in src/tools/findText.ts, src/tools/doctor.ts, and src/utils/recordingIndex.ts. Check how index_recording builds its cache key and how caller options are documented. Done means the selected language is used, unsupported languages report installed options, doctor lists them, and changing language invalidates the index cache.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Summary
OCR always uses the Windows user-profile languages. A recording of a Japanese or German app on an English-profile machine is read with the English recognizer, even when that language pack is installed. There is no way to choose the language per call.
Where
src/utils/ocr.ts:309(OcrEngine::TryCreateFromUserProfileLanguages())src/utils/ocr.ts:72-75(the only language handling is an error hint)- Callers:
find_text,index_recording,wait_for_change(modetext),bug_report, pipelineredact.secrets
Suggested fix
- Add an optional
language(BCP-47, such asja,de-DE) to the OCR helper. UseOcrEngine::TryCreateFromLanguage([Windows.Globalization.Language]::new($lang))and fail clearly whenIsLanguageSupportedis false, listingOcrEngine.AvailableRecognizerLanguages. - Expose it on the callers above (or as one
SCREENCAST_OCR_LANGUAGEdefault plus a per-call override). doctorlists the installed OCR languages.- Include the language in the
index_recordingcache key, so switching languages re-indexes.
Acceptance criteria
-
find_text { language: "de-DE" }uses the German recognizer when installed - An uninstalled language returns an error naming the installed ones
-
doctorreports available OCR languages - Index cache is invalidated on language change
Getting started
- Relevant files:
src/utils/ocr.ts,src/tools/findText.ts,src/tools/doctor.ts,src/utils/recordingIndex.ts - Run
npm run docsafter adding the parameter
Filed by repo-audit/feature-ideas at 1ac339f. Severity: medium. Effort: M. audit-key: enhancement|src/utils/ocr.ts|language
- Langage dominant
- TypeScript
- Étoiles
- 1
- Forks
- 4
- Merge moyen
- 8 h 17 min
- PR mergées (30 j)
- 46
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
TMHSDigital/screencast-mcp#351 · 2 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
effort: small enhancement good first issue priority: low
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
TMHSDigital/screencast-mcp#380 ·
Les mainteneurs répondent en général sous 1 jour
-
effort: medium enhancement help wanted priority: medium
Difficulté 4/5 3-5 jours Accessibilité débutants 57/100
TMHSDigital/screencast-mcp#378 ·
Les mainteneurs répondent en général sous 1 jour
-
Review player: limit a redaction box to a time windowPeut-être pris @lucky0559 l’a pris il y a 2 jours. Ouverteeffort: small enhancement good first issue priority: medium
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
TMHSDigital/screencast-mcp#377 ·
Les mainteneurs répondent en général sous 1 jour
-
effort: medium enhancement help wanted priority: high
Difficulté 4/5 1-2 jours Accessibilité débutants 58/100
TMHSDigital/screencast-mcp#376 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de TMHSDigital/screencast-mcp
Issues similaires
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
openclaw/openclaw#203385 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
nwverse/persona#12800 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
[MCP]: page snapshots in .playwright-mcp/ are not git-ignored (.playwright-cli/ is, since #42318)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
microsoft/playwright#44289 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 2/5 Une demi-journée Accessibilité débutants 65/100
Les mainteneurs répondent en général sous 1 jour