-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NVDA can't make system cursor and review cursor follow by using say all in WX's rich text box, Take NVDA log viewer and bookworm as examples #13420
Comments
Hi @seanbudd @LeonarddeR |
cc @michaelDCurran @LeonarddeR @seanbudd I changed the description and title to be clearer, this is a bug in NVDA can you take a look? This will affect all applications that use WX rich text boxes. Thanks |
Hi, |
I looked into this briefly, but all seems right for Wordpad which should be using the same control. Therefore I'm afraid that we can't do much about this. |
Thanks for noticing this, Does WordPad also use WXPython controls? |
Hi!
Does it occurs with the latest alpha version of bookworm, downloadable from the artifacts of the latest commit?
From: Rowen ***@***.***>
Sent: Saturday, April 9, 2022 1:39 PM
To: nvaccess/nvda ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [nvaccess/nvda] NVDA can't make system cursor and review cursor follow by using say all in WX's rich text box, Take NVDA log viewer and bookworm as examples (Issue #13420)
Thanks for noticing this, Does WordPad also use WXPython controls?
The samples I used to reproduce this issue all use the WXPython control. Is it related to WXPython?
—
Reply to this email directly, view it on GitHub <#13420 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACVCDE3KMCMG6Y62CDMCEKDVEFT5ZANCNFSM5PZA6CLA> .
You are receiving this because you are subscribed to this thread. <https://github.com/notifications/beacon/ACVCDE4IPW2KLYOEWKB46XLVEFT5ZA5CNFSM5PZA6CLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIE2ERPI.gif> Message ID: ***@***.*** ***@***.***> >
|
I just enforced UIA in these controls and there, it seems to work. Therefore it could be that NVDA is missing something essential here. |
I think the underlying issue might be that NVDA is using ITextDocument under the hood while UIA does not. When I disable the use of ITextDocumentTextInfo in NVDA, the caret follows nicely. |
Hi, @LeonarddeR Thanks again for the more detailed information! Thanks |
Hi @zstanecic As far as this issue is concerned, bookworm may not be able to do anything. Thanks |
Hi, @michaelDCurran @LeonarddeR |
Hi, @seanbudd |
I believe I now understand why the say all part fails. When in say all NVDA moves by the
For us this means that:
In my opinion a quick fix here would be to set I can submit a PR to that effect if @seanbudd agrees, but I also would like to clarify this comment by @LeonarddeR
For me in WordPad the experience also depends on the kind of text which is being read - for novels everything works fine, but when pasting content of the NVDA log and trying to read it continuously caret also fails to move. Can you confirm this? |
When I paste the log viewer contents to Wordpad, it also fails indeed. Wow, great catch @lukaszgo1. I think your suggestion is definitely the right approach. |
I would suggest a PR stacked against #13956, targeting branch: When the fix is tested and approved, both can get merged to master |
@cary-rowen Please test this build. |
…13971) Fixes #13420 Fixes #9179 Summary of the issue: When in say all NVDA moves caret by the unit specified as a RREADINGCHUNK for a given text info implementation. In most text info implementations it defaults to line, however in ITextDocumentTextInfo it was set to sentence. While it probably results in smoother reading for literary text written in language where TOM can split into sentences properly, in text's such as log or for languages without clear concept of sentence such as Chinese it results in caret not following spoken text since it is moved to the current position only when the sentence ending is reached. Description of user facing changes Say all both for review and system cursor moves by line in Rich Edit controls such as WordPad or NVDA's log viewer. Description of development approach for ITextDocumentTextInfo textInfos.UNIT_READINGCHUNK has been set to line.
Thanks @lukaszgo1 for the effort, just for the Say All #13971 is perfect, according to the description of this issue, if #13968 is fixed, then this issue can be closed completely. |
Steps to reproduce:
This issue comes from this discussion.
Actual behavior:
Perform step 2, the system cursor does not change;
Perform step 3, the review cursor does not change;
Perform step 4, Unable to set the system cursor to the position of the review cursor.
Expected behavior:
Perform step 2 and the system cursor should follow the movement
Perform step 3 and the review cursor should follow the movement
Perform step 4 the system cursor can be set to the position of the review cursor
System configuration
NVDA installed/portable/running from source:
installed
NVDA version:
2021.3.3
Windows version:
Windows 10 21H2 (x64) build 19044.1526
Name and version of other software in use when reproducing the issue:
Bookworm2022.1 A5 and NVDA log viewer
Other information about your system:
None
Other questions
Does the issue still occur after restarting your computer?
yes
Have you tried any other versions of NVDA? If so, please report their behaviors.
The latest alpha version of NVDA can also reproduce
If NVDA add-ons are disabled, is your problem still occurring?
Yes
Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?
Yes
The text was updated successfully, but these errors were encountered: