Skip to content

Add option to report when switching languages (and possibly to report when a language is not supported) #17664

Closed

Description

@Qchristensen

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

I've got two use cases here:

  1. Where the user is using Windows OneCore with both language packs installed or eSpeak-NG with two supported languages.
    In this case, with automatic language switching enabled, when text declared in the second language is encountered, NVDA simply changes and starts reading in that language. This may be either unexpected, or jarring.

  2. Where the user is using Windows OneCore or SAPI 5 with only one language pack installed.
    In this case, where the second language uses a different alphabet (for instance, the user has only English installed, and the text is in Arabic or Hebrew which uses a completely different alphabet), Windows OneCore simply ignores the characters it does not know in the current language pack and there is no feedback to the user. Announcing the language would at least introduce what is happening.

Describe the solution you'd like

For 1) Where both languages are supported, announcing "French text" or something, indicates the change so it shouldn't be jarring.
For 2) Where the new language is not supported or language pack is not installed, it would at least indicate that there was a language change.

Two additional things we may be able to do in this case:

2b) Ideally, if we could detect that the appropriate language isn't supported or language pack isn't installed, we could report that.

2c) In the same situation, when navigating by character, if we could report any available character descriptions (even in the wrong language), it may be better than nothing.

Describe alternatives you've considered

I'd like to get feedback from existing bilingual users as to what would work best by default for any new options around language reporting.

Additional context

This was initially reported by an organisation concerned that NVDA was not working with the language switching widget on their website as nothing was reported when Arabic was selected. The issue can also be replicated in Microsoft Word by either pasting or translating text into a language for which a OneCore language pack is not installed, such as Arabic or Hebrew on a machine with only English installed.

Testing with Narrator, it DOES report the language change, for instance "Enter Arabic" or "Enter Hebrew".

Activity

  1. added
    p3https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#priority
    triagedHas been triaged, issue is waiting for implementation.
    feature/i18nInternationalization features
    on Feb 3, 2025
  2. nvdaes commented on Feb 6, 2025

    @nvdaes
    SponsorCollaborator

    I'm spanish and I have started to work on this locally. I'm not sure if I will reach all the goals or not, but we can discuss it when a prototype is submit as a Pull request.

  3. nvdaes commented on Feb 7, 2025

    @nvdaes
    SponsorCollaborator

    2c) In the same situation, when navigating by character, if we could report any available character descriptions (even in the wrong language), it may be better than nothing.

    I think that we may try to report "No description" or the decimal or hexadecimal number, since if a character in the current language doesn't provide a description, this may be a solution. If a description is provided and cannot be pronnounced, the numerical value for the character may be useful.

    About defaults, for me the reporting of changes to a non default language, for example if my language is Spanish but I read in English, should be reported by default. When the language is switched to the default language again, imo this doesn't need to be reported, just when switching to default languages. Otherwise this would be anoying. For example, we can hear, in Spanish, : "Inglés test español encabezado de nivel 1". I think we want heart just "Inglés test". In my local changes I am making NVDA to report the language description, but pronnouncing it in the default language so it can be understood.

  4. nvdaes commented on Feb 7, 2025

    @nvdaes
    SponsorCollaborator

    After more testing, I think that this option may be disabled by default since, even when the default language is not reported, since links, headings (like heading level 1, in Spanish encabezado de nivel 1), etc, are reported in the default language, after each reporting of these element types, NVDA will speak the other language, if for example a spanish speaker visits NV Access website.
    Anyway this option maybe very convenient, so I think we should add an unassigned keystroke to toggle it.
    Also, another unassigned command may be added, if possible, to report the language of the text under the caret.
    About reporting when a language is not supported, this may be anoying, since if the language description is reported, and NVDA doesn't speak or speaks in the default language, we can notice this and saying not supported may be redundant. Language not available may be registered in log.warning.
    These are my comments for now and I'll continue working.

  5. nvdaes commented on Feb 8, 2025

    @nvdaes
    SponsorCollaborator

    I'll create a PR, for now, just managing the reading of text, not the part related to characted descriptions. I think that in this way it would be better for testing. I've tested Narrator, without knowledge about that screen reader, and seems that the experience is similar, though I prefer, for now, the experience with my local changes in NVDA since seem less anoying.
    I'll create the PR in a few hours.
    cc: @CyrilleB79

  6. added this to the 2025.2 milestone on Jun 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component/speechenhancementfeature/i18nInternationalization featuresp3https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions