texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.75k stars 342 forks source link

Feature Request: Full Hunspell integration #462

Open jonasstein opened 5 years ago

jonasstein commented 5 years ago

Usually there are 3 Hunspell dictionaries per language required

  1. system wide dict
  2. user dict
  3. technical terms dict

Also the language may switch in the document. This is not reflected by the current configuration in TeXstudio 2.12.14:

image

sunderme commented 5 years ago

not so sure about the "usually" part, never seen a program to offer that

timhoffm commented 5 years ago
  1. @jonasstein is that documented somewhere? E.g. searching for „hunspell technical terms dict“ doesn‘t yield a specific result on multiple dictionaries.

  2. Dictionaries are currently per file settings. It‘s not impossible to do otherwise, but that‘s how it‘s implemented right now.

jonasstein commented 5 years ago

When I select Add to dictionary I would expect the words to be added to the users Hunspell dictionary. man hunspell describes ~/.hunspell_default as default folder for users dicts. hunspell -D lists the system dictionaries. The folders are typically /usr/share/myspell/ or /usr/share/hunspell/. I think instead of /usr/share/texstudio the dictionary folder should be one of these on Linux. The package manager of your distribution manages also the dicts and keeps them up to date. I am not sure, if it the same for all distributions. So the packager will have to adjust it.

Linux distributions usually prefer that dicts are shared so most files of https://github.com/texstudio-org/texstudio/tree/master/utilities/dictionaries should not be installed by TXS. The stop words are not available, so they should be shipped by TXS.

Regarding the technical terms dict, I think about something like the med_dict.