Introduction
This utility synchronises spelling dictionaries from various tools with each other. This way the words that have been trained on MS Office are also correctly checked in vim or Firefox. And vice versa of course.
Supported tools
The initial supported tools are:
- AppleSpell (Mac OS built-in spelling)
- Microsoft Office (Mac)
- Mozilla Firefox (Mac)
- Mozilla Thunderbird (Mac)
- aspell
- neovim - adjusting for vim would be trivial though
Process
SpellSync accomplishes this work by reading all the stored words from all the dictionaries. It stores that dictionary in a central location. From there the individual app dictionaries are updated with the merged list.
Installation
SpellSync is created in Python and published on Python's PyPI. Installation in most cases is accomplished with the following command:
pip install spellsync
Usage
Once set up, you can do a dry-run of spellsync with the following command:
spellsync -n
This will show how large the common dictionary will become, but no files are written.
To execute the sync in live mode, run without the -n option:
spellsync
Recovering from Errors
By default a backup of all spelling files is created in the spellsync folder inside the XDG state home (default location is ~/.local/state/spellsync). So if anything goes awry, you can use the backup files from there. The path to the dictionary files that are modified is output when the command is run, which should aid in finding out where the files would have to be moved back to.
Note that the backup folder is not cleaned out or rotated. So if you run the script regularly, the folder may grow too large. You can then either manually clear out old backup files (tmpwatch may be helpful here) or you can disable the backup altogether:
spellsync --no-backup
Metadata
Release files for spellsync 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spellsync-0.2.0.tar.gz | 6.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spellsync-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / spellsync-0.2.0.tar.gz
| Download URL | spellsync-0.2.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60bbf7bba3f4dd0887b12f14661b7b7e9476231c19318b0951cc7c5aa462f700
|
|
BLAKE2b-256 checksum How to use checksums |
ee3f47d47afb1b4a609db56052ec8e8884f16a12ac73cd664a93af7e65c5ff1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0
|
Release files / spellsync-0.2.0-py3-none-any.whl
| Download URL | spellsync-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b85d4013269370d13271e2d73fa82ef44d8e41a35264be1e3c5cdedd442f81e2
|
|
BLAKE2b-256 checksum How to use checksums |
325ea763038b36fb65c775500399a73ac919b49a935f49285c9c37f6e33bbcb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0
|
Security for spellsync 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.