Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed ups to ms word object model (#9217)
* winword support in nvdaHelper: speed things up a bit by optimizing for only one layout column, remove some debugging code, and turn off screenUpdating while collecting text formatting. * Winword support in nvdaHelper: fetch editor revision information much more efficiently, similarly to how we fetch comments and spelling errors. * MS Word object model support: rather than disabling screen updating specifically from within each in-process call, disable it from Python the first time it is required in a core cycle, re-enabling it at the end of the core cycle. * speech.speakTextInfo: if the unit is paragraph, cell or story, don't fetch costly formatting info such as spelling errors and editor revisions, even if the user has these turned on. * NVDAHelper MS Word support: add more debug warning log statements. * Revert "speech.speakTextInfo: if the unit is paragraph, cell or story, don't fetch costly formatting info such as spelling errors and editor revisions, even if the user has these turned on." This reverts commit 6ea9d0f. * When navigating by table cell in MS Word, only speak the first line of the next cell, otherwise it may take a very long time to collect all content for the cell. * When navigating by paragraph, spelling errors and editor revisions will not be announced. It is important that navigating by paragraph is performant as it is used for quick skimming. * MS Word: Optimize collapse so that end is only fetched if needed. * Navigating by table cell in MS Word again speaks the entire cell, but editor revisions and spelling errors (like when navigating by paragraph) are no longer spoken for navigating by table cell. * Only disable spelling errors when speaking paragraphs and table cells. Editor revisions are okay. * MS Word nvdaHelper support: remove unneeded fetching of application object. * MS Word support: remove old comment. * MS Word support: go back to disabling screen updating in-process for now, but do it from a RAAI class so that it can be re-enabled automatically at the end of scope. * Address review comments. * Update what's new.
- Loading branch information
1 parent
1a45aeb
commit 960983e
Showing
6 changed files
with
133 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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