Skip to content

Add a script to toggle language detection #10253

@CyrilleB79

Description

@CyrilleB79

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

In some cases, I need to deactivate auto-language switching:

  • Sometimes webpages are tagged with wrong language, e.g. written in French but tagged as English content. Probably due to a webmaster using a template or a default setting in English.
  • Sometimes I prefer reading English-tagged content with my default voice native language (French), e.g. math content.

On the opposite, sometimes I prefer have auto-language switching on to get used to real language pronunciation.
Pressing NVDA+Ctrl+V to go to voice settings panel, then tabbing in the dialog box to go to auto language switching option, activate it and press Enter is a bit long.

Describe the solution you'd like

Add a script to toggle automatic language switching. Such scripts exist for many other setting panels options, so this would be coherent. The script may be unassigned and could be assigned by the user as already done for many other such setting toggle scripts.
The script could also include auto dialect switching option and toggle between 3 states:

  • Language and dialect detection off
  • Language detection on, dialect off
  • Language and dialect detection on

Note that the 4th possible state (language detection off and dialect on) does not make sense to me.

Describe alternatives you've considered

  • Alternative 1: Add an accelerator on automatic language switching option in the speech setting panel. Even if it allows accelerating a bit the process, it is not as fast as a dedicated script.
  • Alternative 2: Toggle only auto language switching option, not auto dialect switching.

Additional context

I have a personal script that does the job here:
https://raw.githubusercontent.com/CyrilleB79/NVDAScripts/master/globalPlugins/autoLangSwitch.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions