-
-
Notifications
You must be signed in to change notification settings - Fork 659
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
Conversation
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 |
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.
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 | ||
|
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.
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.
Done. |
#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. |
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) |
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 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).
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 |
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.
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. |
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.
You missed another instance of "Report line indents with" -> "Report line indentation with". :)
What's New entry: in New Features:
|
Hi, Found a major inconsistency/bug: if report indentation is off, pressing NVDA+F from an indented text does not announce indentation level. STR:
Expected: NVDA announces indent level and type. Note that this affects NVDA+F (report formatting). Thanks. |
Wow, that happens because this didn't use to touch the config. Anyway, On 7/6/2016 6:17 PM, Joseph Lee wrote:
Websites: email me at [email protected] mailto:[email protected] |
* 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.
@michaelDCurran Is this going to incubate into next in time for 16.3? On 7/6/2016 6:17 PM, Joseph Lee wrote:
Websites: email me at [email protected] mailto:[email protected] |
Sorry: but now NVDA+f does not work. reportLineSpacing is missing from the reportFormatting dict. |
Fixed, I'm sorry I missed that. On 7/17/2016 6:51 PM, Michael Curran wrote:
Websites: email me at [email protected] mailto:[email protected] |
This is controlled by a combo box in document formatting.
Fixes #5906.