Conversation
|
Will this appear in an rc2 of the current rc cycle, or will it need a new
version?
Brian
…--
***@***.***
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
***@***.***, putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "Michael Curran" ***@***.***>
To: "nvaccess/nvda" ***@***.***>
Cc: "Subscribed" ***@***.***>
Sent: Friday, March 10, 2023 6:03 AM
Subject: [nvaccess/nvda] sayAll: no longer prematurely stop sayAll after
turning a page. (PR #14711)
### Link to issue number:
Fixes #14390
### Summary of the issue:
With the merging of pr #14070 which added sayall in tables, SayAll in
Kindle for PC would fail to continue reading after turning the page.
Technical:
Some of the code in the nextLine method in sayAll was refacted into a
nextLineImpl method.
However, if nextLineImpl returned false, finish would be called and
nextLIne would return. This would be correct for handling the case where
there was no more text, or table cells, but not the case where the page
has just been turned. In fact, text sayAll already called finish when
there was no more text, so calling finish again was useless in the base
case, but for page turns caused sayAll to abort prematurely after the page
was turned.
### Description of user facing changes
NVDA no longer fails to keep reading with sayAll after crossing a page
boundary.
### Description of development approach
In sayAll's nextLine method, removed the call to self.finish when
nextLineImpl returns False, but ensured that table sayAll's
nextLineImpl does call finish itself if there is no more table cells.
In other words, the self.finish call has been moved into the specific
nextLineImpl method where it is needed, rather than running more broadly.
### Testing strategy:
Opened a book in Kindle for PC. Started a sayAll and ensured that NVDA
continued reading after the page was turned.
Using the table on the NvDA snapshots page, ensured that NvDA read all
the way across the first row using NVDA+control+alt+rightArrow, and that
sayAll profile was handled correctly I.e. the synth was reset to the
normal voice after sayAll completed.
### Known issues with pull request:
None.
### Change log entries:
New features
Changes
Bug fixes
- NVDA no longer fails to continue reading in Kindle for PC after turning
the page. (#14390)
For Developers
### Code Review Checklist:
<!--
This checklist is a reminder of things commonly forgotten in a new PR.
Authors, please do a self-review of this pull-request.
Check items to confirm you have thought about the relevance of the item.
Where items are missing (eg unit / system tests), please explain in the
PR.
To check an item `- [ ]` becomes `- [x]`, note spacing.
You can also check the checkboxes after the PR is created.
A detailed explanation of this checklist is available here:
https://github.com/nvaccess/nvda/blob/master/devDocs/githubPullRequestTemplateExplanationAndExamples.md#code-review-checklist
-->
- [x] Pull Request description:
- description is up to date
- change log entries
- [x] Testing:
- Unit tests
- System (end to end) tests
- Manual testing
- [x] API is compatible with existing add-ons.
- [x] Documentation:
- User Documentation
- Developer / Technical Documentation
- Context sensitive help for GUI changes
- [x] UX of all users considered:
- Speech
- Braille
- Low Vision
- Different web browsers
- Localization in other languages / culture than English
- [x] Security precautions taken.
You can view, comment on, or merge this pull request online at:
#14711
-- Commit Summary --
* sayAll: no longer prematurely stop sayAll after turning a page.
-- File Changes --
M source/speech/sayAll.py (2)
-- Patch Links --
https://github.com/nvaccess/nvda/pull/14711.patch
https://github.com/nvaccess/nvda/pull/14711.diff
--
Reply to this email directly or view it on GitHub:
#14711
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
Member
Author
|
I'm hoping an rc2.
|
|
Good, I had no idea there were so many Avid Kindle users until now. I find I
don't have time to read audio books these days.
Brian
…--
***@***.***
Sent via blueyonder.(Virgin media)
Please address personal E-mail to:-
***@***.***, putting 'Brian Gaff'
in the display name field.
----- Original Message -----
From: "Michael Curran" ***@***.***>
To: "nvaccess/nvda" ***@***.***>
Cc: "Brian Gaff" ***@***.***>; "Comment"
***@***.***>
Sent: Saturday, March 11, 2023 5:00 AM
Subject: Re: [nvaccess/nvda] sayAll: no longer prematurely stop sayAll after
turning a page. (PR #14711)
I'm hoping an rc2.
--
Reply to this email directly or view it on GitHub:
#14711 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
seanbudd
approved these changes
Mar 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #14390
Summary of the issue:
With the merging of pr #14070 which added sayall in tables, SayAll in Kindle for PC would fail to continue reading after turning the page.
Technical:
Some of the code in the nextLine method in sayAll was refacted into a nextLineImpl method.
However, if nextLineImpl returned false, finish would be called and nextLIne would return. This would be correct for handling the case where there was no more text, or table cells, but not the case where the page has just been turned. In fact, text sayAll already called finish when there was no more text, so calling finish again was useless in the base case, but for page turns caused sayAll to abort prematurely after the page was turned.
Description of user facing changes
NVDA no longer fails to keep reading with sayAll after crossing a page boundary.
Description of development approach
In sayAll's nextLine method, removed the call to self.finish when nextLineImpl returns False, but ensured that table sayAll's nextLineImpl does call finish itself if there is no more table cells.
In other words, the self.finish call has been moved into the specific nextLineImpl method where it is needed, rather than running more broadly.
Testing strategy:
Opened a book in Kindle for PC. Started a sayAll and ensured that NVDA continued reading after the page was turned.
Using the table on the NvDA snapshots page, ensured that NvDA read all the way across the first row using NVDA+control+alt+rightArrow, and that sayAll profile was handled correctly I.e. the synth was reset to the normal voice after sayAll completed.
Known issues with pull request:
None.
Change log entries:
New features
Changes
Bug fixes
For Developers
Code Review Checklist: