Skip to content

Windows OCR, add an input gesture to quickly switch between OCR languages. #13036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mzanm opened this issue Nov 4, 2021 · 0 comments · Fixed by #14805
Closed

Windows OCR, add an input gesture to quickly switch between OCR languages. #13036

mzanm opened this issue Nov 4, 2021 · 0 comments · Fixed by #14805
Labels
feature/ocr Related to Optical Character Recognition feature in NVDA
Milestone

Comments

@mzanm
Copy link
Contributor

mzanm commented Nov 4, 2021

When using Windows OCR, it does not support automatic language detection, so when switching between some programs or documents that are in another language, OCR language has to be changed manually via NVDA settings which takes some time.

Is your feature request related to a problem? Please describe.

No.

Describe the solution you'd like

Simply adding a gesture that switches between the available OCR language will work.

Describe alternatives you've considered

I'm not sure if Windows OCR can automatically detect the language in the image, but if it can that would be a lot better.

Additional context

@feerrenrut feerrenrut added the feature/ocr Related to Optical Character Recognition feature in NVDA label Nov 5, 2021
seanbudd pushed a commit that referenced this issue Apr 11, 2023
Closes #13036

Summary of the issue:
In #13036, the reporter needs an input gesture to quickly change the language of Windows OCR.

More generally, if a user has to modify frequently a setting for their activity, a specific command to modify this setting is more handy than always opening the settings dialog.

Description of user facing changes
A new unbound command has been added to cycle through available languages for Windows OCR. It is in the Misc category, the same as the one of the already existing command to recognize the navigator object with Windows OCR.

Description of development approach
Made the script based on what was in the settings OCR panel
Made the assumption that at least one language (probably English) is installed on all systems supporting UwpOCR; this assumption is already done if you read the code of the OCR settings panel and we have not had people complaining of issues.
While at it, moved 3 isolated class variables related to screen curtain next to the related script.
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/ocr Related to Optical Character Recognition feature in NVDA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants