Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wooningeire/plover-control-seqs-dict
MOVED || Python dictionary for Plover which allows control sequences to be stroked procedurally
https://github.com/wooningeire/plover-control-seqs-dict
plover plover-dictionary
Last synced: 3 months ago
JSON representation
MOVED || Python dictionary for Plover which allows control sequences to be stroked procedurally
- Host: GitHub
- URL: https://github.com/wooningeire/plover-control-seqs-dict
- Owner: wooningeire
- Archived: true
- Created: 2023-05-14T04:55:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-08T21:05:18.000Z (over 1 year ago)
- Last Synced: 2024-09-18T17:45:49.117Z (3 months ago)
- Topics: plover, plover-dictionary
- Language: Python
- Homepage: https://github.com/wooningeire/plover-dicts/tree/main/dicts/py
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Procedural control sequences
Python dictionary for Plover which allows control sequences like `{#control_l(shift_l(a))}` to be stroked using rules similar to fingerspelling.`fingerspelling_control_seqs.py` is the dictionary file. It is a Python dictionary and thus requires the [`plover-python-dictionary`](https://pypi.org/project/plover-python-dictionary/) plugin, which can be installed from the Plugin Manager.
## Objectives
* Plover's default dictionaries only provide a small number of control sequences, which use a separate right-bank fingerspelling convention
* Make letters strokeable using typical fingerspelling chords so they are easier to guess## Mechanics
The chord used to identify a stroke is `-TSDZ`.The keys `-P`, `-B`, `-L`, and `-G` determine which modifiers are added to the translation:
* `-P`: `shift_l`
* `-B`: `control_l`
* `-L`: `alt_l`
* `-G`: `super_l` (meta/Windows/command key)If none of these keys are included in a stroke, then the dictionary will default to `control_l` only.
For instance, `S-PLTSDZ` maps to `{#shift_l(alt_l(s))}`, and `KP-TSDZ` maps to `{#control_l(x)}`. (This does mean, however, that `-TSDZ` and `-BTSDZ` result in the same translations).
The key `-F` is experimentally used to include an attach operator in the transaltion. `PWH-FTSDZ` will map to `{#control_l(delete)}{^}`.
All other keys are used to identify which keys to emulate while holding down the modifier keys. Available chords include all English letters, which are accessible using usual fingerspelling chords, as well as some punctuation, numbers, and non-character keys like tab and backspace. These chords and all their keys can all be seen in the dictionary file under the variable `_CHORD_KEYMAP`.