https://github.com/user202729/plover-sqlite-dictionary
SQLite-based dictionary format for Plover. Consumes less memory for large dictionaries.
https://github.com/user202729/plover-sqlite-dictionary
plover plover-plugins
Last synced: about 1 month ago
JSON representation
SQLite-based dictionary format for Plover. Consumes less memory for large dictionaries.
- Host: GitHub
- URL: https://github.com/user202729/plover-sqlite-dictionary
- Owner: user202729
- License: gpl-3.0
- Created: 2021-07-12T07:10:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-03T15:08:34.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T11:00:27.592Z (3 months ago)
- Topics: plover, plover-plugins
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# plover-sqlite-dictionary
SQLite-based dictionary format for Plover. Consumes less memory for large dictionaries.### Why?
* Reduce memory (RAM) consumption. (however, the word list for orthography
suffix rules and Qt modules still take a considerable amount of RAM)
* Faster loading/startup speed.### Note
The SQL dictionary format is not completely compatible with Plover's API specification,
the plugin may fail to work properly in future Plover versions.### Usage
There are two possible file formats:
* SQLite-based: `.sql` extension.
Use the "New dictionary" feature in Plover to create one, or "Save dictionary as..." feature
to convert from other dictionary formats.**Note**:
* If there's a table named `readonly` (the content doesn't matter), the dictionary will be
considered read-only.Because of [a Plover bug](https://github.com/openstenoproject/plover/issues/1399), modifying the
dictionary file and reloading the dictionary in Plover might not update the read-only status.* The file size is larger than the size of a JSON dictionary.
* When an entry in the file on the disk is changed, it's automatically updated into Plover.
* When the dictionary is deleted on disk, attempt to modify the dictionary in Plover
will cause "attempt to write a readonly database" error; otherwise, the dictionary remains usable.
* It's possible to have additional columns for auxiliary entries if:
* There's no attempt to modify the dictionary, or
* All the additional columns have default values set (or default to null).* JSON: stored as plain JSON file on disk. `.jssql` extension.
Note: This format takes longer to load than normal JSON dictionary.
Can be used like a normal Plover dictionary.