Library to simplify Python dictionary creation #1335
user202729
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/user202729/plover-python-dictionary-lib
Relies on the plover_stroke library, which contains most useful features (stroke parsing).
I think the most common is a Cartesian product of multiple dictionaries with multiple strokes, so that is included built-in in the library.
I guess the best thing you can get with this library is the ability to generate a JSON dictionary containing all entries (for example for using in Dotterel). Other than that, I'm not sure about whether the new dictionary is more understandable/easier to modify/shorter than the old dictionary (it is shorter, but I also tend to include more things on the same line)
I rewrote some popular Python dictionaries in the example folder. See for yourself.
Beta Was this translation helpful? Give feedback.
All reactions