Plover YAML Dictionary
YAML dictionary support for Plover.
Installation
Download the latest version of Plover for your operating system from the releases page. Only versions 4.0.0.dev1 and higher are supported.
Open Plover
Navigate to the Plugin Manager tool
Select the “plover-yaml-dictionary” plugin entry in the list
Click install
Restart Plover
The same method can be used for updating and uninstalling the plugin.
Dictionary Format
The YAML dictionary format used by this plugin maps translations to strokes rather than strokes to translations which differs from the default JSON dictionary format used by Plover. For a basic comparison,
JSON:
{
"PHRO*EFR": "Plover",
"PHRO*FR": "plover",
"PHROFR": "Plover",
}
YAML:
Plover:
- PHRO*EFR
- PHROFR
plover:
- PHRO*FR
Comments manually added within the YAML dictionary file are currently not preserved due to performance limitations of the YAML package being used.
Converting JSON dictionaries to YAML
You can use the following script to take an input JSON dictionary file path and output YAML dictionary file path to convert existing Plover JSON dictionaries to the YAML format used by this plugin.
import json
import ruamel.yaml
JSON_FILENAME = r''
YAML_FILENAME = r''
# Load JSON dictionary
with open(JSON_FILENAME, 'r', encoding='utf-8') as in_file:
in_data = json.load(in_file)
# Group dictionary by value, sorted alphabetically
out_data = {}
for key, value in sorted(in_data.items(), key=lambda x: x[1].casefold()):
out_data.setdefault(value, []).append(key)
out_data[value] = sorted(out_data[value])
# Write dictionary to YAML
with open(YAML_FILENAME, 'w', encoding='utf-8') as out_file:
yaml = ruamel.yaml.YAML(typ='safe')
yaml.allow_unicode = True
yaml.default_flow_style = False
yaml.indent(sequence=4, offset=2)
yaml.dump(out_data, out_file)
Metadata
Release files for plover-yaml-dictionary 0.0.1
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_yaml_dictionary-0.0.1.tar.gz | 17.1 kB | Without provenance | Details for plover_yaml_dictionary-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plover_yaml_dictionary-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for plover_yaml_dictionary-0.0.1-py3-none-any.whl |
Total release size: 23.1 kB
Release files / plover_yaml_dictionary-0.0.1.tar.gz
| Download URL | plover_yaml_dictionary-0.0.1.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12d9aad7ef5e93559ae5b0236a83b0bfb17697acd722f791cff58206e33023d6
|
|
BLAKE2b-256 checksum How to use checksums |
072d8b23162c1eee648afde6030f64b67a1e9a923ae88ed68dbe9a9c3aef7d14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / plover_yaml_dictionary-0.0.1-py3-none-any.whl
| Download URL | plover_yaml_dictionary-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8f9cd748d0e6430fff95b4360d048b74ef09a5e2d04251abedae343bd142fc0
|
|
BLAKE2b-256 checksum How to use checksums |
db1c5c1617c3f58cb45713aecaa4efcfaa7694189be5f29b439b6f4b715738f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for plover-yaml-dictionary 0.0.1
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.