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.3.tar.gz
.
File metadata
- Download URL: plover-dictionary-patch-0.0.3.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 | e53c7c21f9c9a116d2d06ac9fa7a5945f5626ed1f487ee33b13a11fbaa5e80a7 |
|
MD5 | 943d7b3d41df997445777ed2aea25276 |
|
BLAKE2b-256 | 332d5d50c1ad1214981b0d517c94fee8be6444f184d02e9b6ffcd3203bd2f6b5 |
File details
Details for the file plover_dictionary_patch-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: plover_dictionary_patch-0.0.3-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 | 30c59b6006d815fe47d387e616dec6450c4ae8728de66a638962d0a64acc43ea |
|
MD5 | 98530f111c5c30e661afeb6813d59898 |
|
BLAKE2b-256 | 6dc3a47b4c683b0e5e3b7d8f2882f53576c8aa73eefb7dfcb561998ac78ff898 |