-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge recent contributions to 'develop' with a minor version bump.
- Loading branch information
Showing
27 changed files
with
458 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
from dragonfly import (Grammar, AppContext, MappingRule, | ||
Dictation, IntegerRef, | ||
Key, Text, Repeat, Pause) | ||
|
||
from caster.lib import control | ||
from caster.lib import settings | ||
from caster.lib.dfplus.additions import IntegerRefST | ||
from caster.lib.dfplus.merge import gfilter | ||
from caster.lib.dfplus.merge.mergerule import MergeRule | ||
from caster.lib.dfplus.state.short import R | ||
|
||
|
||
class IERule(MergeRule): | ||
pronunciation = "explorer" | ||
|
||
mapping = { | ||
"address bar": R(Key("a-d"), rdescript="Explorer: Address Bar"), | ||
"new folder": R(Key("cs-n"), rdescript="Explorer: New Folder"), | ||
"new file": R(Key("a-f, w, t"), rdescript="Explorer: New File"), | ||
"(show | file | folder) properties": R(Key("a-enter"), rdescript="Explorer: Properties Dialog"), | ||
} | ||
extras = [ | ||
Dictation("text"), | ||
IntegerRefST("n", 1, 1000), | ||
|
||
] | ||
defaults = {"n": 1} | ||
|
||
#--------------------------------------------------------------------------- | ||
|
||
context = AppContext(executable="explorer") | ||
grammar = Grammar("Windows Explorer", context=context) | ||
|
||
if settings.SETTINGS["apps"]["explorer"]: | ||
if settings.SETTINGS["miscellaneous"]["rdp_mode"]: | ||
control.nexus().merger.add_global_rule(IERule()) | ||
else: | ||
rule = IERule(name="explorer") | ||
gfilter.run_on(rule) | ||
grammar.add_rule(rule) | ||
from dragonfly import (Grammar, AppContext, MappingRule, | ||
Dictation, IntegerRef, | ||
Key, Text, Repeat, Pause) | ||
|
||
from caster.lib import control | ||
from caster.lib import settings | ||
from caster.lib.dfplus.additions import IntegerRefST | ||
from caster.lib.dfplus.merge import gfilter | ||
from caster.lib.dfplus.merge.mergerule import MergeRule | ||
from caster.lib.dfplus.state.short import R | ||
|
||
|
||
class IERule(MergeRule): | ||
pronunciation = "explorer" | ||
|
||
mapping = { | ||
"address bar": R(Key("a-d"), rdescript="Explorer: Address Bar"), | ||
"new folder": R(Key("cs-n"), rdescript="Explorer: New Folder"), | ||
"new file": R(Key("a-f, w, t"), rdescript="Explorer: New File"), | ||
"(show | file | folder) properties": R(Key("a-enter"), rdescript="Explorer: Properties Dialog"), | ||
} | ||
extras = [ | ||
Dictation("text"), | ||
IntegerRefST("n", 1, 1000), | ||
|
||
] | ||
defaults = {"n": 1} | ||
|
||
#--------------------------------------------------------------------------- | ||
|
||
context = AppContext(executable="explorer") | ||
grammar = Grammar("Windows Explorer", context=context) | ||
|
||
if settings.SETTINGS["apps"]["explorer"]: | ||
if settings.SETTINGS["miscellaneous"]["rdp_mode"]: | ||
control.nexus().merger.add_global_rule(IERule()) | ||
else: | ||
rule = IERule(name="explorer") | ||
gfilter.run_on(rule) | ||
grammar.add_rule(rule) | ||
grammar.load() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
from dragonfly import (Grammar, AppContext, Dictation, Key, Repeat) | ||
|
||
from caster.lib import control | ||
from caster.lib import settings | ||
from caster.lib.dfplus.additions import IntegerRefST | ||
from caster.lib.dfplus.merge import gfilter | ||
from caster.lib.dfplus.merge.mergerule import MergeRule | ||
from caster.lib.dfplus.state.short import R | ||
|
||
|
||
class FoxitRule(MergeRule): | ||
pronunciation = "fox it reader" | ||
|
||
mapping = { | ||
"next tab [<n>]": R(Key("c-tab"), rdescript="Foxit Reader: Next Tab") * Repeat(extra="n"), | ||
"prior tab [<n>]": R(Key("cs-tab"), rdescript="Foxit Reader: Previous Tab") * Repeat(extra="n"), | ||
"close tab [<n>]": R(Key("c-f4/20"), rdescript="Foxit Reader: Close Tab") * Repeat(extra="n"), | ||
} | ||
extras = [ | ||
Dictation("text"), | ||
Dictation("mim"), | ||
IntegerRefST("n", 1, 1000), | ||
] | ||
defaults = {"n": 1, "mim":""} | ||
|
||
#--------------------------------------------------------------------------- | ||
|
||
context = AppContext(executable="Foxit Reader") | ||
grammar = Grammar("Foxit Reader", context=context) | ||
|
||
if settings.SETTINGS["apps"]["foxitreader"]: | ||
if settings.SETTINGS["miscellaneous"]["rdp_mode"]: | ||
control.nexus().merger.add_global_rule(FoxitRule()) | ||
else: | ||
rule = FoxitRule(name="Foxit Reader") | ||
gfilter.run_on(rule) | ||
grammar.add_rule(rule) | ||
from dragonfly import (Grammar, AppContext, Dictation, Key, Repeat) | ||
|
||
from caster.lib import control | ||
from caster.lib import settings | ||
from caster.lib.dfplus.additions import IntegerRefST | ||
from caster.lib.dfplus.merge import gfilter | ||
from caster.lib.dfplus.merge.mergerule import MergeRule | ||
from caster.lib.dfplus.state.short import R | ||
|
||
|
||
class FoxitRule(MergeRule): | ||
pronunciation = "fox it reader" | ||
|
||
mapping = { | ||
"next tab [<n>]": R(Key("c-tab"), rdescript="Foxit Reader: Next Tab") * Repeat(extra="n"), | ||
"prior tab [<n>]": R(Key("cs-tab"), rdescript="Foxit Reader: Previous Tab") * Repeat(extra="n"), | ||
"close tab [<n>]": R(Key("c-f4/20"), rdescript="Foxit Reader: Close Tab") * Repeat(extra="n"), | ||
} | ||
extras = [ | ||
Dictation("text"), | ||
Dictation("mim"), | ||
IntegerRefST("n", 1, 1000), | ||
] | ||
defaults = {"n": 1, "mim":""} | ||
|
||
#--------------------------------------------------------------------------- | ||
|
||
context = AppContext(executable="Foxit Reader") | ||
grammar = Grammar("Foxit Reader", context=context) | ||
|
||
if settings.SETTINGS["apps"]["foxitreader"]: | ||
if settings.SETTINGS["miscellaneous"]["rdp_mode"]: | ||
control.nexus().merger.add_global_rule(FoxitRule()) | ||
else: | ||
rule = FoxitRule(name="Foxit Reader") | ||
gfilter.run_on(rule) | ||
grammar.add_rule(rule) | ||
grammar.load() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.