Dictionary Changes not saving

GrampsAIO64-5.1.3-2, Windows 10

When I add a word to the dictionary it seems to work fine until I close down and restart the program. Has anyone else had this issue and if so how do I fix it?

Many thanks

Les

What Language are you using in please?

Have a read of

This bug has been around for quite a while. I tried a couple of times to see if I could figure out where the problems are, but was not successful.

However, it appears that the problem must have been somewhere in the libraries that Gramps uses, and that sometime in the last few years it has been corrected. When I tested with the ‘new_libs’ version of Gramps that I developed a while ago, the spell check seemed to work correctly, remembering multiple words between sessions.

Yet another reason to make another effort to get up to date libraries working in some future version of Gramps AIO. Note: the reason we don’t use them now is that they have some problems of their own, and I judged the issues bad/annoying enough to stay on the older versions for the time being. I will probably try again when releasing Gramps 5.2.x if and when…

2 Likes

English language.

Les

I have found a sort of work around. Copied the en_GB.dic file from C:\Program Files\GrampsAIO64-5.1.3\share\enchant\myspell and placed in Documents directory (although you could put it just about anywhere) (also suggest keeping a backup in another safe place just in case). Edit the copy in Documents and add the words you want in the dictionary. I added 2 words that I use on a regular basis. Save the file. Copy the file from Documents to C:\Program Files\GrampsAIO64-5.1.3\share\enchant\myspell and override the original file. Restart GRAMPS.

It works for me and I may keep the file in Documents open and just add new words as they come up and copy at the end of day. Certainly usefully for Surnames and town names, etc.

Which English language? In the Gramps Help > About dialogue you should be able to see a line that shows “LANG: en_XX.UTF-8” what is yours?

(post deleted by author)

I highly doubt that will happen as mentioned in the feature request this is a “Wontfix” the work around on Windows is to use : MSYS2!

LANG: en_GB.UTF-8
OS: Windows

The work around suggested above will have to be redone each time you reinstall Gramps.

A more permanent work around is to add you word to the enchant personal word list file.
(this is actually what Gramps is having trouble doing programmatically)

detailed steps:
1 - examine the Gramps Help → About display to get the LANG: value
(example: LANG: en_US.UTF-8)
2 - navigate to "C:\Users\YOUR-USER-NAME\AppData\Local\enchant
3 - use Notepad to create/edit a file “en_US.dic” as a simple text file
4 - add your words 1 per line.
5 - save the file
6 - restart Gramps
The files in this directory should be preserved during a Gramps install and will be shared by all Gramps instances run for this user.

(post deleted by author)

(post deleted by author)

lordemannd, Thanks.
With my solution you would just need to copy the file from Documents to the Program File directory, but having said that you solution is a much better option and also when I tested it I found that you do not need to restart Gramps, so you can have the file open and update and save and it will become “live”. The only requirement is to close the current window ie the Note and reopen.
Interestingly I already had a file in the location you said and it had 1 word (one of my ancestor’s name) so not sure how. The original “Date created” in the properties was about the date I originally installed the software.

Thanks again

yes, the library bug causes Gramps to fail after creating the file and adding the 1st word.

If we’re talking Windows, that sounds like a Permissions problem. You might be allowed to create a file a file in an application subfolder, but you wouldn’t be allowed to modify it. (Unless you’re running Gramps as an Admin.)

Is there a way the Enchant path can be expanded (perhaps with the broker feature) to include a location in the User Directory… where Gramps would be permitted to make unlimited changes?

As a couple asides…

  1. are the Dictionary and Affix files standard files downloaded from some service? Only about 16 (out of 43) languages have these files in the GrampsPortable install. So I’d like to find dictionary & affix files for the rest of the languages.

  2. if these are generated specifically for Gramps, it seems odd that ‘Gramps’ is not a word included in our dictionary.

On Windows, the user’s enchant dictionaries are stored at:

C:\Users\<~username>\AppData\local\enchant.

Note: The AppData folder is hidden by default within Windows.

No permission’s needed.

Ahhh. No wonder I wasn’t finding them outside the Applications folders. I only searched around the Gramps User Directory.

Thx