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

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.2.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

spellsync-0.2.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spellsync-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0

File hashes

Hashes for spellsync-0.2.0.tar.gz
Algorithm Hash digest
SHA256 60bbf7bba3f4dd0887b12f14661b7b7e9476231c19318b0951cc7c5aa462f700
MD5 c3660926f18f1ffe63e4f81bae092e3d
BLAKE2b-256 ee3f47d47afb1b4a609db56052ec8e8884f16a12ac73cd664a93af7e65c5ff1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spellsync-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0

File hashes

Hashes for spellsync-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b85d4013269370d13271e2d73fa82ef44d8e41a35264be1e3c5cdedd442f81e2
MD5 0fb684f97cf4eef3886e21f0fa16f32b
BLAKE2b-256 325ea763038b36fb65c775500399a73ac919b49a935f49285c9c37f6e33bbcb3

See more details on using hashes here.

Supported by

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