Skip to main content

JSON Dictionary Patches for Plover

Project description

Dictionary Patches for Plover

PyPI GitHub

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.

Usage

{
  "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 directory
  • add: Additions or overwrites
  • delete: Deleted entries. Note that only outlines are recorded, and they are surrounded in square brackets []

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.

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

plover-dictionary-patch-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

plover_dictionary_patch-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file plover-dictionary-patch-0.0.1.tar.gz.

File metadata

  • Download URL: plover-dictionary-patch-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 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

Hashes for plover-dictionary-patch-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b56e1cbb79e22842bbfcc0302e3d85ae44e3b77143cd0d1243dc0a39741a94c4
MD5 d7b7b5d9261af5594cc34cd2c1814c8e
BLAKE2b-256 500a70cd8e4916febf201915a3025dfaffb7c5c3ab73c6ecab3713ea547a9d8d

See more details on using hashes here.

File details

Details for the file plover_dictionary_patch-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: plover_dictionary_patch-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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

Hashes for plover_dictionary_patch-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd15ab4e9646c0f335e7a479c65b0a3132f48127c6b0352ebad7e27eaac4873e
MD5 90b4a58d896c0fa3e50df3b6c97ba338
BLAKE2b-256 671589a537d22a1b5a6ca492fdb49123d351c41c7476d449f24f52527b8174d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page