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

NVDA now has the ability to report indents as tones, speech, or both. #5906 #6057

Merged
merged 17 commits into from
Aug 29, 2016

Conversation

derekriemer
Copy link
Collaborator

@derekriemer derekriemer commented Jun 9, 2016

This is controlled by a combo box in document formatting.
Fixes #5906.

This is controlled by a combo box in document formatting.
@@ -19,6 +19,10 @@
import easeOfAccess
import winKernel

#Constants for indent tones and speech.
INDENT_SPEECH = 1
INDENT_TONES = 2
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I totally get why you'd put these constants here, but I think I'd prefer to see them in the speech module. While we have to define the config spec here, I'd prefer to keep subsystem specific stuff with the subsystem as much as possible.

- Tones
- Speech
- Both Speech and Tones

Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Change this list ending to a dash on a line by itself rather than a blank line:

-

In changes.t2t, we use a double blank line because it's more natural when there are only lists, but in the User Guide, we use the dash method because lists are interspersed with other text, so it's clearer.

@derekriemer
Copy link
Collaborator Author

Done.

jcsteh added a commit that referenced this pull request Jun 10, 2016
@jcsteh
Copy link
Contributor

jcsteh commented Jun 10, 2016

#5906 is now incubated. Thanks for your work... and good job. :)

One final request for the future: please reference the issue in the comment when creating a PR. Note that if you reference it in the commit, it will be included in the default PR comment.

derekriemer added 4 commits June 10, 2016 09:33
This no longer beeps with speech mode off. re nvaccess#5906 @jcsteh I haven't had time to update the user guide yet, I'll let you know when that's complete.
@jcsteh considder this ready for further scrupulation.
@@ -178,6 +178,7 @@ def validateConfig(configObj,validator,validationResult=None,keyList=None):
reportPage = boolean(default=true)
reportLineNumber = boolean(default=False)
reportLineIndentation = boolean(default=False)
reportToneIndentation = boolean(default=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should rename this to reportLineIndentationWithTones or lineIndentationTones, since it isn't clear that this is related to line indentation (as opposed to paragraph indentation).

@derekriemer
Copy link
Collaborator Author

Fixed

@@ -1112,23 +1112,22 @@ def makeSettings(self, settingsSizer):
self.lineNumberCheckBox.SetValue(config.conf["documentFormatting"]["reportLineNumber"])
settingsSizer.Add(self.lineNumberCheckBox,border=10,flag=wx.BOTTOM)
sizer=wx.BoxSizer(wx.HORIZONTAL)
# Translators: This is the label for a combobox in the
# Translators: This is the label for a combobox controlling the line indentation in the
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "controlling the line indentation" -> "controlling the reporting of line indentation"

This option allows you to configure how indentation at the beginning of lines is reported. The Report line indents with combo box has four options.
==== Report line indentation with ====
This option allows you to configure how indentation at the beginning of lines is reported.
The Report line indents with combo box has four options.
Copy link
Contributor

Choose a reason for hiding this comment

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

You missed another instance of "Report line indents with" -> "Report line indentation with". :)

jcsteh added a commit that referenced this pull request Jul 5, 2016
@jcsteh
Copy link
Contributor

jcsteh commented Jul 5, 2016

What's New entry: in New Features:

- NVDA can now indicate line indentation using tones. This can be configured using the "Report line indentation with" combo box in NVDA's Document Formatting preferences dialog. (#5906)

@josephsl
Copy link
Collaborator

josephsl commented Jul 7, 2016

Hi,

Found a major inconsistency/bug: if report indentation is off, pressing NVDA+F from an indented text does not announce indentation level.

STR:

  1. Open Notepad++ or similar editor.
  2. Using latest next build, set report indentation to off.
  3. Type something into the editor and indent it.
  4. Press NVDA+F.

Expected: NVDA announces indent level and type.
Actual: No announcement of indents.
Workaround: Need to set report indentation to speech, tone or both.

Note that this affects NVDA+F (report formatting). Thanks.

@derekriemer
Copy link
Collaborator Author

Wow, that happens because this didn't use to touch the config. Anyway,
I'll fix this.

On 7/6/2016 6:17 PM, Joseph Lee wrote:

Hi,

Found a major inconsistency/bug: if report indentation is off,
pressing NVDA+F from an indented text does not announce indentation level.

STR:

  1. Open Notepad++ or similar editor.
  2. Using latest next build, set report indentation to off.
  3. Type something into the editor and indent it.
  4. Press NVDA+F.

Expected: NVDA announces indent level and type.
Actual: No announcement of indents.
Workaround: Need to set report indentation to speech, tone or both.

Note that this affects NVDA+F (report formatting). Thanks.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6057 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFGivX3HeFS7nUlUTrHFj9N5cEL7wwljks5qTEWXgaJpZM4IxqMD.


Derek Riemer
  • Department of computer science, third year undergraduate student.
  • Proud user of the NVDA screen reader.
  • Open source enthusiast.
  • Member of Bridge Cu
  • Avid skiier.

Websites:
Honors portfolio http://derekriemer.com
Awesome little hand built weather app!
http://django.derekriemer.com/weather/

email me at [email protected] mailto:[email protected]
Phone: (303) 906-2194

derekriemer added 3 commits July 6, 2016 21:02
* The code for playing a tone was actually surprisingly indented two tabs, rahter than one tab. It worked in all cases except a few, I.E. 18 tabs, and then 3 spaces.
This is now fixed, and indents work as expected.
@derekriemer derekriemer changed the title NVDA now has the ability to report indents as tones, speech, or both. NVDA now has the ability to report indents as tones, speech, or both. #5906 Jul 7, 2016
@derekriemer
Copy link
Collaborator Author

@michaelDCurran Is this going to incubate into next in time for 16.3?

On 7/6/2016 6:17 PM, Joseph Lee wrote:

Hi,

Found a major inconsistency/bug: if report indentation is off,
pressing NVDA+F from an indented text does not announce indentation level.

STR:

  1. Open Notepad++ or similar editor.
  2. Using latest next build, set report indentation to off.
  3. Type something into the editor and indent it.
  4. Press NVDA+F.

Expected: NVDA announces indent level and type.
Actual: No announcement of indents.
Workaround: Need to set report indentation to speech, tone or both.

Note that this affects NVDA+F (report formatting). Thanks.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6057 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AFGivX3HeFS7nUlUTrHFj9N5cEL7wwljks5qTEWXgaJpZM4IxqMD.


Derek Riemer
  • Department of computer science, third year undergraduate student.
  • Proud user of the NVDA screen reader.
  • Open source enthusiast.
  • Member of Bridge Cu
  • Avid skiier.

Websites:
Honors portfolio http://derekriemer.com
Awesome little hand built weather app!
http://django.derekriemer.com/weather/

email me at [email protected] mailto:[email protected]
Phone: (303) 906-2194

@michaelDCurran
Copy link
Member

Sorry: but now NVDA+f does not work. reportLineSpacing is missing from the reportFormatting dict.

@derekriemer
Copy link
Collaborator Author

Fixed, I'm sorry I missed that.

On 7/17/2016 6:51 PM, Michael Curran wrote:

Sorry: but now NVDA+f does not work. reportLineSpacing is missing from
the reportFormatting dict.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6057 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFGivWGUvts7Bjj7tNcwjAEWbjpnaONkks5qWs4QgaJpZM4IxqMD.


Derek Riemer
  • Department of computer science, third year undergraduate student.
  • Proud user of the NVDA screen reader.
  • Open source enthusiast.
  • Member of Bridge Cu
  • Avid skiier.

Websites:
Honors portfolio http://derekriemer.com
Awesome little hand built weather app!
http://django.derekriemer.com/weather/

email me at [email protected] mailto:[email protected]
Phone: (303) 906-2194

michaelDCurran added a commit that referenced this pull request Aug 1, 2016
@nvaccessAuto nvaccessAuto assigned michaelDCurran and unassigned jcsteh Aug 1, 2016
@jcsteh jcsteh merged commit 3aa65e1 into nvaccess:master Aug 29, 2016
@jcsteh jcsteh added this to the 2016.4 milestone Aug 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants