Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (40 sloc) 1.23 KB
from talon.voice import Context, Key
ctx = Context("symbol")
keymap = {
# simple
"(question [mark] | questo)": "?",
"plus": "+",
"tilde": "~",
"(bang | exclamation point | clamor)": "!",
"(dollar [sign] | dolly)": "$",
"(downscore | crunder)": "_",
"colon": ":",
"(lparen | [left] paren | precorp )": "(",
"(rparen | are paren | right paren | precose)": ")",
"(brace | left brace | kirksorp)": "{",
"(rbrace | are brace | right brace | kirkos)": "}",
"(angle | left angle | less than)": "<",
"(rangle | are angle | right angle | greater than)": ">",
"(star | asterisk)": "*",
"(pound | hash [sign] | octo | number sign)": "#",
"percent [sign]": "%",
"caret": "^",
"at sign": "@",
"(and sign | ampersand | amper)": "&",
"(pipe | spike)": "|",
"(dubquote | double quote | quatches)": '"',
# compound
"mintwice": "--",
"plustwice": "++",
"minquall": "-=",
"pluqual": "+=",
"starqual": "*=",
"triple quote": "'''",
"triple tick": "```",
"[forward] dubslash": "//",
"coal twice": "::",
"(dot dot | dotdot)": "..",
"(ellipsis | dot dot dot | dotdotdot)": "...",
# unnecessary: use repetition commands?
}
ctx.keymap(keymap)
You can’t perform that action at this time.