[Tex/LaTex] TeXStudio: Add new word to dictionary via button

dictionariesspellingtexstudiotexworks

I installed a new Dutch dictionary from the Open Office website in my 'dictionaries' file. Spelling checks work perfectly in TeXStudio, but now, I'd like to add new words to the dictionary during the spelling check. I've already found this: TeXworks: How to add a word to the spell checker dictionary?.

However, that's not exactly what I want. Instead of editing the .dic and .aff. files manually, I'd like to provide a button, so that the new word is added to the dictionary automatically.


Edit: What about adding a link to the spelling check box that opens the .dic and .aff files? Is that possible? I just want to avoid a long search for the files every time.

How can I do that?

Best Answer

Hunspell dictionaries (.dic and .aff) are more complex than just word lists (i.e. it contains information of possible affixes). Therefore, a proper entry cannot be generated from a single word.

The solution in TexStudio is to store additional words in an ignore word list (.ign) next to the dictionary. This list can be populated via Context Menu -> always ignore or via the Always Ingore button in the spell checking dialog.

Note: On Windows 7 the default dictionaries are in

C:\Program Files (x86)\TeXstudio\dictionaries\

Windows 7 prevents writing to the program files directory.It redirects the writes to User dictionaries, which are in

 C:\Users\<User>\AppData\Local\VirtualStore\Program Files (x86)\TeXstudio\dictionaries

You may find the .ign files there.

Related Question