Next Stroke Suggestions for Plover
This is a plugin that displays the possible options for the next few strokes.
Installation
You can install this plugin using the built-in Plover Plugin Manager, under the name plover-next-stroke.
Usage Notes
Macro Strokes & Shortcuts
To make full use of the plugin, you'll have to define a few additional entries in your dictionary to navigate the menu (They won't be added automatically!). The recommended strokes are just what I use personally, so it's okay if you'd like to use something else.
| Action | Dictionary Definition | Recommended Stroke |
|---|---|---|
| Next Page | =ns_next_page |
#WR |
| Previous Page | =ns_prev_page |
1K |
| Reload Suggestions | =ns_reload |
1KWR |
Since the plugin keeps an internal copy of your dictionaries to load suggestions quicker, you'll have to manually reload this internal copy with a reload stroke whenever you add or delete entries to/from any of your dictionaries. You don't need to trigger a manual update if you're switching languages or activating/deactivating dictionaries.
Display Order Types
| Display Order | Explanation |
|---|---|
| Frequency | Order by lowest stroke count first, then when stroke counts are equal, order by most frequent first based on system orthography list (if available) |
| Frequency (Prioritize Numbers) | Same as Frequency, but strokes containing numbers are prioritized and ordered by numeric value. |
| Frequency (Prioritize Non-numberic) | Same as Frequency, but strokes containing numbers are pushed to the back. |
| Stroke Count | Order by lowest stroke count first, preserving original dictionary order. |
| Alphabetical | Order by translation alphabetically. |
| System Defined | Order defined by the system. The default English stenotype system doesn't have a defined display order. Defaults to Frequency. |
System-defined functions
If you're designing a language system for Plover and you'd like to customize the display order and format (for instance, converting certain strokes to numbers), you may do so by including these functions in your system file:
def NS_STROKE_FORMATTER(stroke: str) -> str:
"""Formats single strokes, such as STROEBG"""
return ...
def NS_TRANSLATION_FORMATTER(translation: str) -> str:
"""Formats the translated string, such as 'stroke'"""
return ...
def NS_SORTER(entry: Tuple[Tuple[str], str]) -> int:
"""
Scores outline-translation pairs, such as (("TRAPBS", "HRAEUT"), "translate")
Pairs are ordered from smallest to biggest;
it need not be an int - anything that can be compared
works, including strings or tuples of ints.
"""
outline, translation = entry
return ...
All next stroke suggestions will be run through the two formatters (if available) before being sorted. The sorter will only be used if the user changes their display order to "System Defined".
License & Credits
This plugin is licensed under the MIT license.
The icons used in this plugin are taken from Icons8 Flat Color Icons.
Metadata
Release files for plover-next-stroke 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plover-next-stroke-0.2.2.tar.gz | 12.1 kB | Without provenance | Details for plover-next-stroke-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plover_next_stroke-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for plover_next_stroke-0.2.2-py3-none-any.whl |
Total release size: 25.7 kB
Release files / plover-next-stroke-0.2.2.tar.gz
| Download URL | plover-next-stroke-0.2.2.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38b25c20297206a06ac91029be50c03f84c2c37cee898dd909ce2a139f6d510d
|
|
BLAKE2b-256 checksum How to use checksums |
b9591c43463c69d5e45ba1b8b33ee0643490bfcad4734448854529c2fcfd6724
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.7
|
Release files / plover_next_stroke-0.2.2-py3-none-any.whl
| Download URL | plover_next_stroke-0.2.2-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
079dd5eaa9a0e7ac4dbdb8ff870b95b0176360833c9424f2c1cfde66cf5cd76d
|
|
BLAKE2b-256 checksum How to use checksums |
ddcea2f78ab4fff2650a55d501ff938595bc8d094da1be8e372e0098746c28f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.7
|
Security for plover-next-stroke 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.