Skip to content

Add ability to speak next and previous lines/paragraphs when navigating with braille#17256

Merged
seanbudd merged 19 commits into
nvaccess:masterfrom
nvdaes:brailleNextLine
Nov 4, 2024
Merged

Add ability to speak next and previous lines/paragraphs when navigating with braille#17256
seanbudd merged 19 commits into
nvaccess:masterfrom
nvdaes:brailleNextLine

Conversation

@nvdaes

@nvdaes nvdaes commented Oct 7, 2024

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #17053

Summary of the issue:

Sometimes, it may be desirable tohear lines when navigating with braille.

Description of user facing changes

  • A new command, not assigned to gestures, is available in the braille category to toggle speaking of lines/paragraphs when navigating with braille, to enable or disable this feature. A new checkbox for this has been added in the braille settings panel as well.

Description of development approach

  • A new key for this feature has been added to configSpec.py. The value is a boolean (False by default).
  • A new script has been added to globalCommands.py.
  • A new function has been added to braille.py, to be used by next and previousLine functions, also modified so that info is expanded to the corresponding read unit, i.e., line or paragraph.
  • The braille settings panel has a new checkbox to toggle this feature.

Testing strategy:

Tested manually in Notepad and Window console, with braille following caret, review cursor and automatic modes.
Also, checked that indentation is reported when reading by lines, not by paragraphs, as expected when unit is specified for speakTextInfo function.

Known issues with pull request:

None.

Code Review Checklist:

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

@coderabbitai summary

@nvdaes nvdaes requested a review from a team as a code owner October 7, 2024 05:19
@nvdaes nvdaes requested a review from SaschaCowley October 7, 2024 05:19
@nvdaes nvdaes marked this pull request as draft October 7, 2024 05:19
@burmancomp

Copy link
Copy Markdown
Contributor

Fine.

What do you think about setting in braille category?

@nvdaes

nvdaes commented Oct 7, 2024

Copy link
Copy Markdown
Collaborator Author

@burmancomp , feel free to test this again. I've added cancelSpeech() before speaking line or paragraph, and a checkbox in the braille settings panel.

@burmancomp

Copy link
Copy Markdown
Contributor

It should work, thanks! Changelog and user guide entries, and then ready for review I think.

@nvdaes

nvdaes commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator Author

I updated the changelog and user guide.
I'll test once more and then I'll request a review from NV Access.

@nvdaes nvdaes marked this pull request as ready for review October 9, 2024 05:36
@burmancomp

Copy link
Copy Markdown
Contributor

I feel that changelog.md and userGuide.md are missing.

@nvdaes nvdaes requested a review from a team as a code owner October 10, 2024 16:19
@nvdaes nvdaes requested a review from Qchristensen October 10, 2024 16:19
@nvdaes

nvdaes commented Oct 10, 2024

Copy link
Copy Markdown
Collaborator Author

I feel that changelog.md and userGuide.md are missing.

Thanks @burmancomp . I've pushed changes correctly now and this should be fixed and ready for review.

@burmancomp

Copy link
Copy Markdown
Contributor

I feel I keep this enabled most of time.

@nvdaes

nvdaes commented Oct 10, 2024

Copy link
Copy Markdown
Collaborator Author

@burmancomp , happy to see that this is useful for you.

@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.

Some rewording suggestions; this may be discussed.

Comment thread user_docs/en/userGuide.md Outdated
Comment thread source/gui/settingsDialogs.py Outdated
@nvdaes nvdaes marked this pull request as draft October 11, 2024 04:23
nvdaes and others added 2 commits October 11, 2024 06:24
Co-authored-by: Cyrille Bougot <cyrille.bougot2@laposte.net>
Co-authored-by: Cyrille Bougot <cyrille.bougot2@laposte.net>
@nvdaes

nvdaes commented Oct 11, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks @CyrilleB79 . I've applied your suggestions.

@nvdaes nvdaes marked this pull request as ready for review October 11, 2024 04:26
Comment thread user_docs/en/userGuide.md Outdated
Co-authored-by: Luke Davis <8139760+XLTechie@users.noreply.github.com>
@nvdaes

nvdaes commented Oct 11, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks @XLTechie . I've applied your suggestion.

@LeonarddeR LeonarddeR left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great to see this being implemented!

Comment thread source/braille.py Outdated
Comment thread source/braille.py Outdated
Comment thread source/braille.py
Comment thread source/braille.py Outdated
Comment thread source/braille.py Outdated
Comment thread source/braille.py Outdated
Co-authored-by: Leonard de Ruijter <3049216+LeonarddeR@users.noreply.github.com>
@nvdaes

nvdaes commented Oct 16, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks @LeonarddeR for your review. I'll mark this as a draft and I'll work on this later.

@nvdaes nvdaes marked this pull request as draft October 16, 2024 11:17
@burmancomp

Copy link
Copy Markdown
Contributor

Appropriate suggestions from @LeonarddeR.

@nvdaes

nvdaes commented Oct 16, 2024

Copy link
Copy Markdown
Collaborator Author

@LeonarddeR , I think that I've addressed all your comments. I don't have if you can review this again, so I'll mark this as ready for review in case NV Access wants to do it.

Comment thread source/braille.py Outdated
@nvdaes nvdaes marked this pull request as ready for review October 16, 2024 18:55
@nvdaes nvdaes marked this pull request as draft October 16, 2024 18:56
@nvdaes

nvdaes commented Oct 16, 2024

Copy link
Copy Markdown
Collaborator Author

@burmancomp , I'll look at this tomorrow.

@seanbudd seanbudd changed the title Add ability to speak next and previous lines/paragraphs when navigati… Add ability to speak next and previous lines/paragraphs when navigating with braille Oct 17, 2024
@nvdaes nvdaes marked this pull request as ready for review October 17, 2024 04:33

@SaschaCowley SaschaCowley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @nvdaes, this is looking really good.

Comment thread user_docs/en/changes.md Outdated
Comment thread source/gui/settingsDialogs.py Outdated
Comment thread source/globalCommands.py Outdated
Comment thread source/braille.py
Comment thread source/braille.py Outdated
nvdaes and others added 2 commits October 18, 2024 06:31
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>

@SaschaCowley SaschaCowley left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this good work, @nvdaes

@nvdaes

nvdaes commented Oct 18, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks for your work and your review, @SaschaCowley .

@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Oct 21, 2024

@Qchristensen Qchristensen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good - one suggestion proposed as a way to improve the user guide moving forward

Comment thread user_docs/en/userGuide.md Outdated
Co-authored-by: Quentin Christensen <quentin@nvaccess.org>
@nvdaes

nvdaes commented Oct 23, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks @Qchristensen . I've applied your suggestion.

@seanbudd seanbudd merged commit 70c41a2 into nvaccess:master Nov 4, 2024
@github-actions github-actions Bot added this to the 2025.1 milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

braille: optionally speak line when moving from line to line

8 participants