-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add ability to speak character when cursor routing #4
Conversation
Clone of the PR nvaccess/nvda#16947 |
My review is in progress 📖 - I will have feedback for you in a few minutes! |
1 similar comment
My review is in progress 📖 - I will have feedback for you in a few minutes! |
WalkthroughThis set of changes introduces a new feature in NVDA that enables spoken feedback for braille cursor routing. A new function, Changes
Recent review detailsConfiguration used: .coderabbit.yml Files selected for processing (6)
Additional context usedPath-based instructions (6)
Additional comments not posted (6)
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 Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed your code and did not find any issues!
Please note that I can make mistakes, and you should still encourage your team to review your code as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have reviewed your code and found 1 potential issue.
Summary of Code Review
Fix for Code Execution:
- Implement logic in braille cursor routing to check 'speakOnRouting' and speak the character when enabled.
Fix for Code Health:
- Add documentation for the 'speakOnRouting' option in the user guide.
@@ -90,6 +90,7 @@ | |||
unicodeNormalization = featureFlag(optionsEnum="BoolFlag", behaviorOfDefault="disabled") | |||
focusContextPresentation = option("changedContext", "fill", "scroll", default="changedContext") | |||
interruptSpeechWhileScrolling = featureFlag(optionsEnum="BoolFlag", behaviorOfDefault="enabled") | |||
speakOnRouting = boolean(default=false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The addition of the 'speakOnRouting' option is a good start for implementing the new feature. However, to ensure full functionality, make sure to implement the corresponding logic in the braille cursor routing code to check this option and speak the character when it's enabled. Also, consider adding documentation for this new option in the user guide.
Chat with Korbit by mentioning @development-korbit-ai-mentor, and give a 👍 or 👎 to help Korbit improve your reviews.
Mapping from the Github issue to the LangSmith prompt that generated the issue: None: https://smith.langchain.com/o/c92ee716-8a66-4de0-a133-524e36845f3f/projects/p/bb4140d7-b5d4-4198-8f37-41c91ccecea9/r/6f15287e-cbdb-45d9-b74d-1d3067e38dbd?poll=true |
System configuration at time of review:
|
@coderabbitai full review |
/review |
PR Reviewer Guide 🔍
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (2)
user_docs/en/userGuide.md (1)
2253-2258
: Ensure clarity and consistency in documentation.The section on "Speak character when routing cursor in text" is clear and concise. Ensure that it follows the style of one sentence per line for consistency with the rest of the document.
Consider breaking long sentences into shorter ones to improve readability.
user_docs/en/changes.md (1)
18-19
: Correct the spelling error and ensure clarity.The word "ath" should be corrected to "at" for clarity.
* When performing a braille cursor routing action, NVDA can now automatically speak the character at the cursor. (#8072, @LeonarddeR)
/review |
Link to issue number:
Closes #8072
Summary of the issue:
When cursor routing, it can sometimes be handy if speech follows along and tells you what character you moved to, especially when the character in braille is unknown to you.
Description of user facing changes
Description of development approach
Added a new option to the config spec, as well as a function to braille to speak the character at the given position. Also added an item to the settings panel as well as an unbound global command.
Testing strategy:
Known issues with pull request:
None known
Code Review Checklist:
Summary by CodeRabbit
New Features
Documentation
Description by Korbit AI
What change is being made?
Add the ability to speak the character at the cursor position when performing a braille cursor routing action.
Why are these changes being made?
This feature enhances accessibility by providing auditory feedback for braille users, helping them confirm the cursor's position. The option is disabled by default and can be enabled in the braille settings.