JSON Dictionary Patches for Plover
Project description
Dictionary Patches for Plover
Dictionary Patches are patch files that allow you to patch JSON dictionaries without editing the original files. This is useful if the base dictionary file is from an external source, such as the default main.json
dictionary from Plover.
Format
{
"source": "main.json",
"add": {
"SKWR": "just",
"TKEURBGS": "dictionary"
},
"delete": [
"SHRAOEP/HRES",
"TOED/AS"
]
}
Dictionary patches have the extension dicp
. They are written in the JSON format, with three sections:
source
: Base JSON file; must be in the same directoryadd
: Additions or overwritesdelete
: Deleted entries. Note that only outlines are recorded, and they are surrounded in square brackets[]
Usage
When using dictionary patches, you are recommended to disable the base dictionary, since the patch itself will act as a normal dictionary. You can delete and edit entries in Plover's dictionary editor on the patch itself, and the patch file will update accordingly based on the difference between the edited dictionary and the base file.
To update the base file, simply replace the original base file with the updated version with the same file name, and the patch will work as usual.
Using existing edits
If you already have a regular JSON dictionary that contains edits from an original dictionary file, you can create a patch file like this, with a target
parameter containing the name of the edited dictionary file.
{
"source": "main.json",
"target": "self_main.json"
}
The next time you edit the patch, the file will be expanded into its regular additions/deletions format in the example above. You are recommended to keep a backup of the original edited dictionary.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file plover-dictionary-patch-0.0.2.tar.gz
.
File metadata
- Download URL: plover-dictionary-patch-0.0.2.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac14fc74596f1980528a0767b7d6108166e55699ff4a65d656ce30848e206392 |
|
MD5 | 343e83f07778a1e2c3d34313ed089adc |
|
BLAKE2b-256 | 7e3038dfe36b2cb4e46cb69268a781291ea343348fb5e97185ae4d58bf6790c6 |
File details
Details for the file plover_dictionary_patch-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: plover_dictionary_patch-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa77fec12da427704df8d74c4c5aae09540a1d61215598a07e1c907f195bdd90 |
|
MD5 | 65ceec413bbe6c8ecd6cd175b69a71ec |
|
BLAKE2b-256 | a35e18551c67abf6224007126ecd59ee62ed9d87ac91f78d45f1ef37b2814d2f |