Remove carriage return and bell character from table header information in IAccessible MS Word - #16874
Conversation
… in word when accessed via IAccessible
WalkthroughThe recent changes to NVDA involve improving the handling of header text in Microsoft Word tables by filtering out unwanted characters, specifically the carriage return and bell characters, from the displayed text. This enhancement ensures that braille output is cleaner and more accurate, addressing specific issues that users have encountered with table navigation and header reading in Word. Changes
Sequence Diagram(s)Silently ignored due to simplicity and specificity of the changes. Assessment against linked issues
The change effectively addresses the issue of unwanted characters in the braille output, improving the NVDA experience for users working with Word tables. Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Co-authored-by: Sean Budd <sean@nvaccess.org>
Link to issue number:
Closes #7212
Summary of the issue:
When accessing Microsoft Word via IAccessible, column and row headers set with the set row/column header scripts in NVDA have '\r\a' at the end of them. While this does not seem to be an issue for speech (presumably synths just ignore control characters), these characters were being output in braille.
Description of user facing changes
Extraneous output is no longer produced.
Description of development approach
Modified
NVDAObjects.IAccessible.winword.WordDocument.fetchAssociatedHeaderCellTextto drop'\r\a'if it was a suffix to any of the row or column headers' text.Testing strategy:
Manual:
Known issues with pull request:
None.
Code Review Checklist:
Summary by CodeRabbit
New Features
Bug Fixes