Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(209)  |  Call(188)  |  Derive(0)  |  Import(21)

src/d/r/dragonfly-0.6.5/dragonfly/examples/notepad_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Dictation,
                       Key, Text)
 
             "save [file]":            Key("c-s"),
             "save [file] as":         Key("a-f, a"),
             "save [file] as <text>":  Key("a-f, a/20") + Text("%(text)s"),
             "find <text>":            Key("c-f/20") + Text("%(text)s\n"),
            },

src/d/r/dragonfly-0.6.5/dragonfly/examples/outlook_example.py   dragonfly(Download)
"""
 
from dragonfly import (Grammar, AppContext, MappingRule, Choice,
                       Key, Text, Pause)
 
    mapping={
             "folder <folder>":   Key("c-1, home")
                                   + Text("%(folder)s\n")
                                   + Key("space, tab"),
             "move to <folder>":  Key("cs-v, home/10")
                                   + Text("%(folder)s")

src/c/o/code-by-voice-HEAD/macros/_javascript.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
javascript = AppContext(title="javascript")
grammar = Grammar("javascript", context=(javascript))
 
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "javascript",
    mapping = {
    "smear"                : Text("err"),
    mapping = {
    "smear"                : Text("err"),
    "function"             : Text("fn") + Key("tab") + noSpaceNoCaps,
    "very equal"           : Text("var_equal") + Key("tab") + noSpaceNoCaps,
    "very"                 : Text("var") + Key("tab") + noSpaceNoCaps,

src/c/o/code-by-voice-HEAD/macros/_bash.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
putty_context = AppContext(executable="putty")
bash_context = AppContext(title="bash")
grammar = Grammar("bash", context=(putty_context | bash_context))
    name = "bash",
    mapping = {
      "term <n>": Key('c-b') + Text("%(n)d"),
      "term create": Key('c-b, c'),
      "term north": Key('c-b, k'),
      "term split": Key('c-b, s'),
      "term detach": Key('c-b, d'),
      "term down [<n>]": Key('c-b, colon') + Text("resize-pane -D %(n)d") + Key('enter'),
      "term up [<n>]": Key('c-b, colon') + Text("resize-pane -U %(n)d") + Key('enter'),
      "term left [<n>]": Key('c-b, colon') + Text("resize-pane -L %(n)d") + Key('enter'),

src/c/o/code-by-voice-HEAD/macros/_vim.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic, Playback)
vi = AppContext(title="vi")
gvim = AppContext(title="GVIM")
grammar = Grammar("vim", context=(vi | gvim))
 
      "west [by] [<n>]"             : Key("escape, c-h:%(n)d"),
 
      "split view": Key("escape, colon") + Text("split") + Key("enter"),
      "vertical view": Key("escape, colon") + Text("vsplit") + Key("enter"),
      "new split": Key("escape, colon") + Text("new") + Key("enter"),
      "new vertical": Key("escape, colon") + Text("vnew") + Key("enter"),

src/a/e/aenea-HEAD/grammars_available/multiedit.py   aenea(Download)
  pass
 
from dragonfly import (
    Alternative,
    AppContext,
def Nested(command):
  return Text(command) + Key("left:%i" % (len(command) / 2))
 
command_table = {
  # Spoken-form        normal command              VIM (None if same)
 
  #### Cursor manipulation
  "up [<n>]":(         Key("up:%(n)d"),            Key("escape") + Text("%(n)dki") ),
  "down [<n>]":(       Key("down:%(n)d"),          Key("escape") + Text("%(n)dji") ),
  "drop [<n>]":(       Key("pgdown:%(n)d"),        None),
 
  "lope [<n>]":(       Key("c-left:%(n)d"),        Key("escape") + Text("%(n)dbi") ),
  "yope [<n>]":(       Key("c-right:%(n)d"),       Key("escape") + Text("%(n)dwwi") ),
 

src/c/o/code-by-voice-HEAD/macros/_jade.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
context = AppContext(title = "jade")
grammar = Grammar("jade", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "jade",
    mapping = {
      "heading [<n>]": Text("h%(n)d "),
    mapping = {
      "heading [<n>]": Text("h%(n)d "),
      "span [<n>]": Text(".span%(n)d"),
      "paragraph": Text("p ") + noSpaceNoCaps,
      "link": Text("link") + Key("tab") + noSpaceNoCaps,

src/d/r/dragonfly-scripts-HEAD/lib/dynamic_aenea.py   dragonfly-scripts(Download)
    def __init__(self, spec=None, static=False, pause=0.02, autofmt=False):
        DynamicAction.__init__(self, dragonfly.Text(spec, static, pause, autofmt), proxy_actions.ProxyText(spec, static))
 
 
# This is a gigantic hack.  dragonfly.ActionBase performs an `isinstance` check on the supplied action to make

src/c/o/code-by-voice-HEAD/macros/_less.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
 
context = AppContext(title = "less")
grammar = Grammar("less", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
 
rules = MappingRule(
    name = "less",
    mapping = {
      "heading [<n>]": Text("h%(n)d "),
    mapping = {
      "heading [<n>]": Text("h%(n)d "),
      "paragraph": Text("p "),
      "unordered list": Text("ul "),
      "list item": Text("li "),

src/c/o/code-by-voice-HEAD/macros/_nerdtree.py   code-by-voice(Download)
from dragonfly import (Grammar, AppContext, MappingRule, Dictation, Key, Text, Integer, Mimic)
context = AppContext(title="nerdtree")
grammar = Grammar("nerdtree", context=context)
noSpaceNoCaps = Mimic("\\no-caps-on") + Mimic("\\no-space-on")
rules = MappingRule(
      "copy": noSpaceNoCaps + Key("m, c") + noSpaceNoCaps,
      "kill": Key("m, d"),
      "open <n>": Text(":%(n)d") + Key("enter") + Key("enter"),
      "open vertical <n>": Text(":%(n)d") + Key("enter, s"),
      "change root": Key("C"),

  1 | 2 | 3  Next