Last active
October 10, 2021 01:34
-
-
Save benoit-pierre/0ae7f388aa367ecbd0c8aa5e1de2b9f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
from plover.dictionary.base import create_dictionary, load_dictionary | |
input = sys.argv[1] | |
output = sys.argv[2] | |
id = load_dictionary(input) | |
od = create_dictionary(output) | |
od.update(id) | |
od.save() |
Also, in a sufficiently new Plover version, you can right click at a dictionary and choose "Save dictionaries as..." to convert between supported types.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I needed to add the following:
Otherwise it could crash with the following error: