Merge dictionaries
Project description
Merge dictionaries
Root problem
You uses everal IDEs and each maintain its own spelling dictionary.
You want to merge them so words from PyCharm are available in PhpStorm too.
Usage
Merge all dictionaries
To discover dictionaries in your computer, extract words and merge them:
$ merge-dictionaries --merge
This is a potentially destructive operation: your dictionary files will be overwritten.
Extract dictionaries words
To print all the words:
$ merge-dictionaries --extract
This is a safe operation.
Build an Hunspell-compatible dictionary
To create a personal dictionary file for your Hunspell dictionary:
$ merge-dictionaries --extract > perso.dic
This is a safe read-only operation, as long as perso.dic doesn't already exist in your current folder.
Build a dictionary in a IDE specific format
You can specify --format=<format>
as argument to the extract task:
$ merge-dictionaries --extract --format=JetBrains
It will output a dictionary file you can use in any IDE compatible with that format.
This is a safe read-only operation.
IDE support
Currently, the following IDEs are supported
- All JetBrains IDEs: application-level dictionary
Extend the code
How to add an IDE?
To add an IDE, you need to provide the following methods:
- sources
- a list of paths candidates for the IDE dictionary
- a method extracting words from the dictionary
- output
- a method to dump the extracted words in the IDE format
- write
- a method to save the files, normally you can call the ones created
How can I contribute?
You can commit your changes to the upstream by following instructions at https://agora.nasqueron.org/How_to_contribute_code
The canonical repository is https://devcentral.nasqueron.org/source/merge-dictionaries.git
License
BSD-2-Clause, see LICENSE file.
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
Built Distribution
Hashes for merge_dictionaries-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bb52edc731e12c6979096b2649ef6a8e47068c790717b960242482cb17561d6 |
|
MD5 | 6eb3b596007c9ec404fb18ffa820f369 |
|
BLAKE2b-256 | df2cbf92bec3cb9d3c5a2032e7030eed6878ad86fb1c5e8bd5ee0f9403055221 |