Skip to content
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 a command to check formatting for the text under the caret. #10973

Merged
merged 6 commits into from
Jun 23, 2020

Conversation

lukaszgo1
Copy link
Contributor

Link to issue number:

Closes #9505
First step towards #7314

Summary of the issue:

It is not possible to check formatting for the text under the caret without moving review cursor to its position. This is problematic for people working with review cursor not following caret. In addition this can be done with a braille display, so it should also be possible for speech only users.

Description of how this pull request fixes the issue:

I've created a separate script assigned to NVDA+f to check formatting at the caret position. The current command for checking it at the review cursor has been reassigned to NVDA+shift+f because for most users checking formatting happens more often at the caret not at the review cursor. As by default review follows caret there is no functional difference for people who haven't changed this.
While at it I've also split up these scripts into a separate ones as per #7314 - they are obviously not assigned.

Testing performed:

  1. Tested that formatting can still be checked and displayed in browse mode with NVDA+shift+f at the review position,
  2. Tested that with the new script formatting at caret is properly announced/displayed in browse mode.
  3. Assigned a keyboard command to each of the separate scripts and confirmed that they are functioning as expected.
  4. Compiled user guide - made sure that the changes to the keyboard commands are displayed as they should be.

Known issues with pull request:

Change log entry:

New features:
It is now possible to check formatting at the caret with NVDA+f
Changes:
Command used to check formatting at review position has been reassigned to NVDA+shift+f

@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

See test results for failed build of commit fbe51228f9

@michaelDCurran
Copy link
Member

I personally agree with the change here. But:
@Qchristensen what do you think the impact to our Basic Training module is for this pr?
Does it specifically talk about the fact that NVDA+f actually uses the review cursor rather than the caret?

@Qchristensen
Copy link
Member

Thanks for the heads up here - yes I agree with the change and the reasoning. It will necessitate an update to Basic Training, as you mention @michaelDCurran the module does note that the command reports formatting at the review cursor rather than text caret.

I'm happy to update the module before this change makes it to a stable release. I'll also need to check the NVDA Certified Expert Exam questions as it is in there too.

@Adriani90
Copy link
Collaborator

This will probably need to be adjusted accordingly also in the user guide. I can have alook and do it unless @lukaszgo1 has time to do it.

@lukaszgo1
Copy link
Contributor Author

@Adriani90 I've updated User guide as part of this PR. Could you please take a look and tell me if it's sufficient in your opinion?

@Adriani90
Copy link
Collaborator

Adriani90 commented May 19, 2020

@lukaszgo1 it looks good. One question though, the command for reporting text formatting under the braille cell, which formatting is there applied? On review, on carret, or does it deppend on to which cursor the braille display is tethered?
According to user guide there is only one command for reporting formatting under the braille cell. I think it makes sense to implement also an emulated command for the braille displays for formating at system carret.
cc: @LeonarddeR, @bramd

@lukaszgo1
Copy link
Contributor Author

lukaszgo1 commented May 20, 2020

@Adriani90 wrote:

@lukaszgo1 it looks good. One question though, the command for reporting text formatting under the braille cell, which formatting is there applied? On review, on carret, or does it deppend on to which cursor the braille display is tethered?

It depends on the location of braille cursor.

According to user guide there is only one command for reporting formatting under the braille cell. I think it makes sense to implement also an emulated command for the braille displays for formating at system carret.

I don't think so. You can check formatting at the position of the braille cursor with the current gesture from a braille display, and if someone wants to check formatting for the different cursor one of the gestures added in this PR could be assigned to a key combination on a braille display from the input gestures dialog already.

Copy link
Member

@Qchristensen Qchristensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only commenting on the user guide text, which looks fine, well done.

@michaelDCurran michaelDCurran merged commit 1352a33 into nvaccess:master Jun 23, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.2 milestone Jun 23, 2020
michaelDCurran added a commit that referenced this pull request Jun 23, 2020
@feerrenrut feerrenrut modified the milestones: 2020.2, 2020.3 Jun 23, 2020
@lukaszgo1 lukaszgo1 deleted the I9505 branch June 23, 2020 08:40
michaelDCurran added a commit that referenced this pull request Dec 8, 2020
…g info at caret to report in MS Excel (#11914)

* Fallback to POSITION_FIRST when reporting formatting info at caret to report in Excel cells

* Update what's new

Co-authored-by: Michael Curran <[email protected]>
feerrenrut added a commit that referenced this pull request Dec 15, 2020
Several commits were missed when branching for Release 2020.4 (see PR #11910) which selected commit f99644e, however there are 3 commits after that and 325be94 (inclusive) before the version number was updated.

Merge to the 2020.4 beta:
- Fix: NVDA no longer fails to restart when running from sources and cw… 3737e3c
- MS Word: report the number of pts of line spacing when line spacing t… 9c0b649
- Fix-up of #10973: Fallback to POSITION_FIRST when reporting formattin… 325be94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to retrieve formatting for the text under the cared
7 participants