Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaoffie/plover_autobrief
Autobrief plugin for Plover
https://github.com/kaoffie/plover_autobrief
plover plover-plugins stenography
Last synced: about 10 hours ago
JSON representation
Autobrief plugin for Plover
- Host: GitHub
- URL: https://github.com/kaoffie/plover_autobrief
- Owner: Kaoffie
- License: mit
- Created: 2022-04-24T20:09:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-24T20:10:38.000Z (over 2 years ago)
- Last Synced: 2024-09-23T18:05:23.483Z (4 days ago)
- Topics: plover, plover-plugins, stenography
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Autobrief for Plover
[![PyPI](https://img.shields.io/pypi/v/plover-autobrief)](https://pypi.org/project/plover-autobrief/)
![GitHub](https://img.shields.io/github/license/Kaoffie/plover_autobrief)Autobrief for Plover is a plugin that automatically detects words that aren't in your dictionaries, and provides you the opportunity to assign briefs to them on the fly, either automatically or manually.
This plugin is still under development and has many missing features. Please stay tuned for more updates in the future!
# Plugin Setup
You will need to set up the plugin before using it! These can be done in the settings menu. You will need to set up:
- A dictionary to save all the temporary briefs to
- An automatic briefing python script (this plugin does not come with one yet!)The automatic briefing python script should contain a single function, `get_brief`, which takens in a string, and outputs a list of possible briefs. Each brief is represented as a tuple of strokes, and each stroke is represented as a string:
```py
from typing import List, Tupledef get_briefs(text: str) -> List[Tuple[str, ...]]:
return ...
```Without a briefing script, autobrief will add every single word it thinks can be briefed, but will not automatically provide briefs.
Briefing scripts will come in the future when I get the time to make them.
# Macros
These macros will be useful to you while using the plugin:
- `=ab_prev_page` Previous page
- `=ab_next_page` Next page
- `=ab_commit:n` Add the nth suggested brief to your dictionary (if `autoadd` is not turned on)
- `=ab_define:n` Manually define the nth word on the autobrief list