-
Notifications
You must be signed in to change notification settings - Fork 0
/
alphabet.py
26 lines (20 loc) · 883 Bytes
/
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
# 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 queen red sun trap urge vest whale plex yank zip".split(
# " "
# )
default_alphabet = "air bat cap dip each far gust harp sit jane kick look made near ox pit quench red spun trap urge vest whale plex yank zip".split(
" "
)
letters_string = "abcdefghijklmnopqrstuvwxyz"
alphabet = dict(zip(default_alphabet, letters_string))
ctx.lists["self.letter"] = alphabet