Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to work with dev12 and add Gemini PR key map #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion plover_japanese_sokutaipu/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
'-O', '-I', '-A', '-S', '-K', '-H', '-T', '-Y',
)

IMPLICIT_HYPHEN_KEYS = ('t', 'k', '5-', '0-', 'i', 'n', '*')
IMPLICIT_HYPHEN_KEYS = ('t', 'k', 'i', 'n', '*')

SUFFIX_KEYS = ()

Expand Down Expand Up @@ -39,6 +39,30 @@
ORTHOGRAPHY_WORDLIST = None

KEYMAPS = {
'Gemini PR': {
'#' : ('#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9', '#0', '#A', '#B', '#C'),
'Y-' : ('S1-', 'S2-'),
'T-' : 'K-',
'H-' : 'T-',
'K-' : 'W-',
'S-' : 'P-',
'A-' : 'R-',
'I-' : 'H-',
'O-' : ('*1', '*2',),
't' : 'A-',
'k' : 'O-',
'*' : ('#A', '#B'),
'i' : '-E',
'n' : '-U',
'-O' : ('*3', '*4'),
'-I' : '-F',
'-A' : '-R',
'-S' : '-P',
'-K' : '-B',
'-H' : '-L',
'-T' : '-G',
'-Y' : ('-T', '-S'),
},
'Keyboard': {
'#' : ('1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '='),
'Y-' : ('a', 'q'),
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ zip_safe = True
setup_requires =
setuptools>=30.3.0
install_requires =
plover>=4.0.0.dev1
plover>=4.0.0.dev12
packages =
plover_japanese_sokutaipu

Expand Down