From d3bfa6cb9be3f1d6ce727b3bd2eec78063c03958 Mon Sep 17 00:00:00 2001 From: equa Date: Sun, 15 Jan 2023 12:34:49 -0600 Subject: Add keyboard support --- TODO | 2 -- plover_toki_pona/system.py | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 6d44083..cfc37ba 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,3 @@ make fingerspelling syllable-based, maybe add punctuation and commands to dictionary documentation!!! -add qwerty keyboard layout -make the gemini PR layout more "forgiving" (making both rows of keys do the same thing?) diff --git a/plover_toki_pona/system.py b/plover_toki_pona/system.py index 128c7cb..1f5c1fc 100644 --- a/plover_toki_pona/system.py +++ b/plover_toki_pona/system.py @@ -37,6 +37,24 @@ KEYMAPS = { 'U': '-D', 'no-op': ('#1', '#2', '#3', '#4', '#5', '#6', '#7', '#8', '#9', '#A', '#B', '#C', 'Fn', 'S2-', 'K-', 'W-', 'R-', '*2', '*3', '*4', '-R', '-B', '-G', '-S', '-Z', 'pwr', 'res1', 'res2'), }, + 'Keyboard': { + 'S': 'a', + 'P': 's', + 'K': 'd', + 'L': 'f', + 'M': 'g', + 'H': 'c', + 'W': 'v', + 'N': 'n', + 'R': 'm', + 'A': 'h', + 'I': 'j', + 'E': 'k', + 'O': 'l', + 'U': ';', + 'no-op': ('z', 'x', 'b', ',', '.', '/'), + 'arpeggiate': 'space', + }, } DICTIONARIES_ROOT = 'asset:plover_toki_pona:dictionaries' -- cgit 1.3.0-6-gf8a5