forked from morinted/plover_russian_trillo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
plover_japanese_stenoword.py
72 lines (61 loc) · 1.35 KB
/
plover_japanese_stenoword.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# LM NR PTHKS UAOIE *
KEYS = (
'L-', 'M-',
'-N', '-R',
'P-', 'T-', 'H-', 'K-', 'S-',
'-U', '-A', '-O', '-I', '-E',
'#'
)
IMPLICIT_HYPHEN_KEYS = KEYS
SUFFIX_KEYS = ()
NUMBER_KEY = None
NUMBERS = {}
UNDO_STROKE_STENO = '#'
ORTHOGRAPHY_RULES = []
ORTHOGRAPHY_RULES_ALIASES = {}
ORTHOGRAPHY_WORDLIST = None
KEYMAPS = {
'TX Bolt': {
'#': '#',
'P-': 'S-',
'T-': ('T-', 'K-'),
'H-': ('P-', 'W-'),
'K-': ('H-','R-'),
'S-': '*',
'L-': 'A-',
'M-': 'O-',
'-N': '-E',
'-R': '-U',
'-U': ('-F','-R'),
'-A': ('-P','-B'),
'-O': ('-L','-G'),
'-I': ('-T','-S'),
'-E': ('-D','-Z'),
},
'Keyboard': {
'#': ('q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'),
'P-': 'a',
'T-': 's',
'H-': 'd',
'K-': 'f',
'S-': 'g',
'L-': 'c',
'M-': 'v',
'-N': 'n',
'-R': 'm',
'-U': 'h',
'-A': 'j',
'-O': 'k',
'-I': 'l',
'-E': ';',
'arpeggiate': 'space',
# Suppress adjacent keys to prevent miss-strokes.
'no-op' : ('z', 'x', 'b', ',', '.', '/'),
},
}
DICTIONARIES_ROOT = 'asset:plover_japanese_stenoword:dictionaries'
DEFAULT_DICTIONARIES = (
'user.json',
'commands.json',
'StenoWord.json',
)