Skip to content

Various packages by languages to fix typos automatically for you

License

Notifications You must be signed in to change notification settings

Mte90/espanso-typofixer

Repository files navigation

Espanso-Typofixer License

Status (per last release)

  • https://hub.espanso.org/typofixer-en: 17616 words with 67204 typos
  • https://hub.espanso.org/typofixer-fr: 69 words with 70 typos
  • https://hub.espanso.org/typofixer-it: 1651 words with 2145 typos
  • https://hub.espanso.org/typofixer-es: 103 words with 118 typos

I want the development version!

Upload a new espanso package is very unconfortable right now, if it was possible I will release a new one every week automatically but every step is manual. If you want the latest update word list, you need to follow that steps:

  • Download this repository
  • Execute the generator.py script
  • Pick from the folders for every language the package.yml file
  • Go on Linux to /home/your-user/.config/espanso/match/packages/ and put that file in the corresponding package you installed
  • Espanso (if running) will refresh automatically to the new terms

How contribute

The word database is not inside the various typofixer-* folder by language but inside the words folder in a JSON format.

With manageterms-gui.py you have a nice UI to add a single term manually to a word file. Next you can do a PR with your json with all the new words to this repository. This script requires PyQT installed.

Otherwise if you have a CSV file with csvtoterms.py you can add automatically to the JSON file.

The tools folder includes also a script to remove duplicates.

How generate a Espanso package

The generator.py script generate the .yml files for the various languages (for dependencies check the requirements.txt file).

Story

Those packages were a porting SyntaxAutoFix in Python that is now 7 years old (in 2022). Just used by me and no one else, in the years got tons of words with various hacktoberfest and by daily gathering of typos in English and Italian.

I preferred to migrate to Espanso for various reasons:

  • I don't have to maintain a project by code, just still gather typos
  • Python project require sudo
  • Python project use like 50mb of ram, espanso instead less
  • Opening to a wide more usage to gather more typos
  • Espanso has unit tests and better support
  • Espanso is multiplatform so also Windows and OSX
  • Espanso support any uppercase/lowercase letters or mixed

TODO

  • Looking for an automated way to publish new packages on espanso hub

About

Various packages by languages to fix typos automatically for you

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages