From 9ff1d3c1133c83edc184de5eb0c8dc571deefe3b Mon Sep 17 00:00:00 2001 From: apc Date: Mon, 24 Jun 2024 20:46:36 -0700 Subject: [PATCH 1/3] fix implicit hyphen key bug compatible with dev12 and above --- plover_japanese_sokutaipu/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plover_japanese_sokutaipu/system.py b/plover_japanese_sokutaipu/system.py index beef1ef..1f21bea 100644 --- a/plover_japanese_sokutaipu/system.py +++ b/plover_japanese_sokutaipu/system.py @@ -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 = () From 549baefe2c91be5de6507ea35c324112830bbb0a Mon Sep 17 00:00:00 2001 From: apc Date: Mon, 24 Jun 2024 20:54:06 -0700 Subject: [PATCH 2/3] add Gemini PR key map --- plover_japanese_sokutaipu/system.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/plover_japanese_sokutaipu/system.py b/plover_japanese_sokutaipu/system.py index 1f21bea..17ae1d2 100644 --- a/plover_japanese_sokutaipu/system.py +++ b/plover_japanese_sokutaipu/system.py @@ -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'), From 2605169bdcd0354259fda78b2a64464a6870fe9a Mon Sep 17 00:00:00 2001 From: apc Date: Mon, 24 Jun 2024 20:55:11 -0700 Subject: [PATCH 3/3] change minimum version to dev12 --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index aa9f90d..408d295 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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