Plover Hjson Dictionary
Hjson 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-hjson-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 Hjson 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",
}
Hjson:
{
Plover: # A cool open source project
[
PHRO*EFR
PHROFR
]
plover: # A bird
[
PHRO*FR
]
}
Comments added within the Hjson dictionary file are currently not preserved on dictionary modification due to round-trip limitations of the Hjson package for Python.
Converting JSON dictionaries to Hjson
You can use the following script to take an input JSON dictionary file path and output Hjson dictionary file path to convert existing Plover JSON dictionaries to the Hjson format used by this plugin.
import json
import hjson
JSON_FILENAME = r''
HJSON_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 Hjson
with open(HJSON_FILENAME, 'w', encoding='utf-8') as out_file:
hjson.dump(out_data, out_file,
sort_keys=True, ensure_ascii=False, encoding='utf-8')
Metadata
Release files for plover-hjson-dictionary 0.0.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_hjson_dictionary-0.0.2.tar.gz | 16.2 kB | Without provenance | Details for plover_hjson_dictionary-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plover_hjson_dictionary-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for plover_hjson_dictionary-0.0.2-py3-none-any.whl |
Total release size: 22.1 kB
Release files / plover_hjson_dictionary-0.0.2.tar.gz
| Download URL | plover_hjson_dictionary-0.0.2.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
08c23ebf960ed73519471e98d6acd2658ff9cfd4f985a99ac2ee460e62169bd5
|
|
BLAKE2b-256 checksum How to use checksums |
e43e4ebd8a173fc9d48cfdfe06d5b92f4c417456738fadeb6a77c301bfdf3267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3
|
Release files / plover_hjson_dictionary-0.0.2-py3-none-any.whl
| Download URL | plover_hjson_dictionary-0.0.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a19fe5989cda79c402ce42a0c5dc3ab26327c5357f6f88f547a34ba20693419e
|
|
BLAKE2b-256 checksum How to use checksums |
23094b5e91e909e1b8f8b9ef452ac8aa5ccc3109ca763fe5009081f035aaaada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/38.5.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3
|
Security for plover-hjson-dictionary 0.0.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.