Ticket #228 (closed task: fixed)
Generalise some code which is not specific to speech
| Reported by: | jteh | Owned by: | jteh |
|---|---|---|---|
| Priority: | minor | Milestone: | 2012.1 |
| Component: | Core | Version: | development |
| Keywords: | Cc: | ||
| Operating system: | Blocked by: | ||
| Blocking: |
Description
There is some code which is in the speech module or named for speech, even though it is not specific to speech and is in fact now used by braille.
Tasks:
- Move processPositiveStates, processNegativeStates, REASON_*, silent* from speech to controlTypes, as these are also used by braille.
- Rename speech*Labels to just *Labels in controlTypes, as these labels are full labels and are not associated with speech.
- Provide labels for speech and braille based on controlTypes.*labels:
- speech probably doesn't need its own labels.
- Maybe it can just use controlTypes.*labels directly?
- braille should use controlTypes.*labels as a base, but override to provide abbreviations.
- speech probably doesn't need its own labels.
Attachments
Change History
comment:2 Changed 8 months ago by jteh
I haven't had a chance to look at this yet, but it'd be great if you could split the fix for #1288 into a separate patch depending on this one, which makes it somewhat easier to deal with. If you're not familiar enough with bzr to do this quickly, don't worry about it; it is easy enough for me to do myself.
comment:3 Changed 8 months ago by orcauser
Thanks Jamie,
Updated patch only contains the first 2 commits mensioned above.
Very familiar with the git workflow, but bzr is new to me, so still finding my feat. :)
comment:4 Changed 7 months ago by jteh
- Milestone set to 2011.3
Thanks Mesar. This looks great.
This can't be merged before 2011.2 moves out of main, but needs to be merged ASAP after that happens to prevent major bit rot. Unfortunately, I suspect there is already some bit rot, as I think some changes were made very recently in processPositiveStates/processNegativeStates.
Just a couple of comments:
- controlTypes.labels and braille.labels should be controlTypes.roleLabels and braille.roleLabels, respectively. Perhaps you were confused by a comment in my description, but this is what I actually meant.
- I'm wondering whether we should rename ignoreRolesOnFocus and ignoreValuesForRoles, as "ignore" doesn't seem the right concept to me. We're talking more about whether something should be presented, rather than ignored in a functional sense. That said, I can't come up with a better name that isn't overly obscure. Mick, any ideas or are you happy with ignore?
comment:5 Changed 5 months ago by jteh
- Milestone changed from 2011.3 to 2012.1
As noted in my last comment, there has already been some bit rot in this patch, so it isn't trivial to merge and doesn't provide additional functionality. Therefore, deferring this to the next release.


