-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsymbol.py
53 lines (45 loc) · 1.46 KB
/
symbol.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from talon.voice import Context, Key
ctx = Context('symbol')
keymap = {
'(escape | randall)': Key('esc'),
'(question [mark] | questo)': '?',
'(minus | dash)': '-',
'plus': '+',
'tilde': '~',
'(bang | exclamation point | clamor)': '!',
'(dollar [sign] | dolly)': '$',
'(downscore | crunder)': '_',
'(semi | semicolon | sunk)': ';',
'colon': ':',
'(square | left square [bracket] | brackorp)': '[',
'(rsquare | are square | right square [bracket] | brackose)': ']',
'(paren | left paren)': '(',
'(rparen | are paren | right paren)': ')',
'(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 | thorpe | number sign)': '#',
'percent [sign]': '%',
'caret': '^',
'at sign': '@',
'(and sign | ampersand | amper)': '&',
'(pipe | spike)': '|',
'(dubquote | double quote | quatches)': '"',
'(quote | quatchet)': "'",
'triple quote': "'''",
'(dot | period)': '.',
'comma': ',',
'swipe': ', ',
'coalgap': ': ',
'(space | skoosh)': ' ',
'[forward] slash': '/',
'backslash': '\\',
'(dot dot | dotdot | doodle)': '..',
'(enter | shock)': Key('enter'),
'(delete | junk)': Key('backspace'),
'spunk': Key('delete'),
'equals': '=',
}
ctx.keymap(keymap)