Skip to main content

Synchronise personal spelling dictionaries across applications

Project description

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)
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spellsync-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

spellsync-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file spellsync-0.1.0.tar.gz.

File metadata

  • Download URL: spellsync-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.3.0

File hashes

Hashes for spellsync-0.1.0.tar.gz
Algorithm Hash digest
SHA256 712d593fb4cd7bc6c49d2163cd3c7786153c48e915f516ea9ab58bfeca7ceaaa
MD5 37c64abb5c1db89fdb241780221f0aef
BLAKE2b-256 577fd77b0ab5f24615ec826d276212125ef59466edd562051ef73a88a49766df

See more details on using hashes here.

File details

Details for the file spellsync-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: spellsync-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.3.0

File hashes

Hashes for spellsync-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8747529cf90d22ccbd1e39823b33da2e259ae16e38427976deda1b38296428bf
MD5 898c064bb4f5fd78aeedfb5c3f82265d
BLAKE2b-256 451cbd93e9fd3f9ae49694cd696259b4a5c07f708a8c7e88dbac8d605b224705

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page