Library for writing Python dictionary for Plover, and generating JSON dictionary file from Python dictionary.
Project description
plover-python-dictionary-lib
Library for writing Python dictionary for Plover, and generating JSON dictionary file from Python dictionary.
Installation
This package is available on PyPI. To install it, run the command
pip install plover-python-dictionary-lib
This is required to use/run the Python dictionaries that use this library.
Example & usage
- The most common use case would be a Cartesian product of various dictionaries.
- Read the documentation in the source code, and the
example/
folder (on GitHub). - Useful resources: Frequently used dictionary components (feel free to edit the wiki)
Generate JSON
The Python dictionary must be written with this plugin.
Call .print_items()
on the main Dictionary
object. (see also the example dictionaries above)
Note: because of an incompatibility between Plover and the plover_stroke
library,
sometimes the JSON dictionary may not work in Plover.
For example: if this code
is included at the end of the Python dictionary file named dictionary.py
if __name__=="__main__":
dictionary.print_items()
(assuming that the main dictionary object is named dictionary
) then running python dictionary.py
will print the dictionary as JSON to the standard output.
Project details
Release history Release notifications | RSS feed
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
Hashes for plover_python_dictionary_lib-0.3.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 760cc6049970bbef68d040488331a3f4e900c5caa5cd100e02a86272b695ba62 |
|
MD5 | 98b483728594720a2a5f121c8b8896af |
|
BLAKE2b-256 | 64307a2aceb3c776af92aad0024378a7c280da93c770725e31afac76ed6a0487 |
Hashes for plover_python_dictionary_lib-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2916e7a167b7135405b0f378866504e00f6d117b102c8694b0a4e1a9df6575be |
|
MD5 | a3bb23737c1906ba6ca52dc28a216685 |
|
BLAKE2b-256 | e5aef53232b955cb9a069156504440884754017753cf20976341dff4af5fd4cb |