-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom_alphabet.py
28 lines (21 loc) · 914 Bytes
/
custom_alphabet.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
# customized by: Andrew
# author: splondike
# Description:
# Needed to use my own alphabet, instead of knauss
# What it does:
# Overrides a different list in a more specific context
# You can apply this same kind of process to overriding any other lists, captures, or actions. Just make the context matcher 'more specific' than the thing you're overriding.
from talon import Context
ctx = Context()
ctx.matches = r"""
os: windows
"""
# default_alphabet = "arch bat cap drum each fine gust harp sit jury crunch look made near odd pit quench red sun trap urge vest whale plex yank zip".split(
# " "
# )
default_alphabet = "air boy cap drum each fine gust harp sit john crunch look made near odd pit quiet red soap trap urge vest whack plex yank zip".split(
" "
)
letters_string = "abcdefghijklmnopqrstuvwxyz"
alphabet = dict(zip(default_alphabet, letters_string))
ctx.lists["self.letter"] = alphabet