DSpellCheck icon indicating copy to clipboard operation
DSpellCheck copied to clipboard

Tell me where the user dictionary is

Open endolith opened this issue 9 years ago • 4 comments

Tried to add a Unicode character to the dictionary in Notepad++ and it gave me an error message:


Word cannot be added

Sadly, this word contains symbols out of current dictionary encoding, thus it cannot be added to user dictionary. You can convert this dictionary to UTF-8 or choose the different one with appropriate encoding.

OK

Ok, but why isn't the user dictionary in UTF-8 in the first place, and where is the file that I need to convert? The error message could be more helpful. The only place this error exists on the internet is the cpp file responsible for producing it.

endolith avatar Feb 18 '16 15:02 endolith

For the record, it's in Username\AppData\Roaming\Notepad++\plugins\config\Hunspell\en_US.usr and converting it to UTF-8 doesn't work.

endolith avatar Feb 18 '16 16:02 endolith

Changing en_US.aff to say SET UTF-8 on the top line seems to work. http://emacs.stackexchange.com/a/14057

endolith avatar Feb 18 '16 16:02 endolith

So I think I will add ability to convert dictionary to UTF-8 in this message box with warning that it may increase size/ load time of the dictionary.

Predelnik avatar Oct 29 '17 14:10 Predelnik

The en_US.aff file that needs the SET UTF-8 line at the top (instead of SET ISO-....) is located at C:\Program Files (x86)\Notepad++\plugins\Config\Hunspell (or possibly C:\Program Files\Notepad++\plugins\Config\Hunspell). Also, it can only be edited by an admin.

coderforlife avatar Jan 04 '18 15:01 coderforlife