Skip to content

Fix for the left and right double angle bracket readout, when the symbol level is set to none#14940

Merged
seanbudd merged 1 commit into
nvaccess:masterfrom
zstanecic:symbollevelfix
May 31, 2023
Merged

Fix for the left and right double angle bracket readout, when the symbol level is set to none#14940
seanbudd merged 1 commit into
nvaccess:masterfrom
zstanecic:symbollevelfix

Conversation

@zstanecic

@zstanecic zstanecic commented May 21, 2023

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #14939

Summary of the issue:

When the symbol level is set to none, left double angle bracket and right double angle bracket are read, which should not be the case.

Description of user facing changes

The left double angle bracket and right double angle bracket symbols are no longer read, when the symbol level is set to none and speech synthesizers will properly react on these symbols.

Description of development approach

This needed just the change of the english symbols.dic file. It should propagate all locales and languages. It overwrites erroneous definition in dldr.dic for all locales.

Testing strategy:

Tested on the latest alpha with my local modified symbol files.
tried the following sentence with the ukrainian tts:
Процвітання. Слово «процвітати» дуже позитивне, оскільки уособлює собою зростання, розвиток та рух на краще.

Known issues with pull request:

None known.

Change log entries:

New features
Changes
Bug fixes
For Developers
Bug fixes

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • Security precautions taken.

…tive typographic quotes

This fixes the symbol level for these signs, and allows synthesizers to properly react on these.
@zstanecic zstanecic requested a review from a team as a code owner May 21, 2023 09:40
@zstanecic zstanecic requested a review from michaelDCurran May 21, 2023 09:40
@CyrilleB79

Copy link
Copy Markdown
Contributor

This PR changes two things: the symbol level and the preserve parameter (from never to always).

I understand the change of level; actually in French where these quoting marks are used, we have already raised the level to "most".

Regarding the "preserve" field changed from "never" to "always", why did you do it? If you have seen a change of behaviour due to this, please explain it in the test section indicating an example of sentence read and the synthesizer(s) and language(s) used to note this change of behaviour.

At last, you write:
"It overwrites erroneous definition in dldr.dic for all locales."
I do not know what this erroneous definition is. Anyway, this PR does not overrite CLDR since the symbols were already present in the English symbols.dic file and thus CLDR symbols were already overwritten before this PR.

@zstanecic

zstanecic commented May 21, 2023 via email

Copy link
Copy Markdown
Contributor Author

@zstanecic

Copy link
Copy Markdown
Contributor Author

Note, i have also updated the description with the synths used: the RHVoice is in question, and to add, maybe synthesizers that i don't know of.

@CyrilleB79 CyrilleB79 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zstanecic for this PR.

I have tested in French; these characters are actually interpreted by the synth "Microsoft Speech API version 5" and "Windows OneCore" (tested with Hortense). So I guess that these characters are interpreted in many languages by MS synths. So setting the "preserve" field to "always" definitely seems the good choice.
The choice of level "most" corresponds to English quotation marks (") so it is coherent.

@seanbudd seanbudd merged commit 66ae616 into nvaccess:master May 31, 2023
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone May 31, 2023
josephsl pushed a commit to josephsl/nvda that referenced this pull request May 31, 2023
…tive typographic quotes (nvaccess#14940)

Fixes nvaccess#14939

Summary of the issue:
When the symbol level is set to none, left double angle bracket and right double angle bracket are read, which should not be the case.

Description of user facing changes
The left double angle bracket and right double angle bracket symbols are no longer read, when the symbol level is set to none and speech synthesizers will properly react on these symbols.

Description of development approach
This needed just the change of the english symbols.dic file. It should propagate all locales and languages. It overwrites erroneous definition in dldr.dic for all locales.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants