Description: I can right click and add a word to custom dictionary. But tags are not allowed. Steps to Reproduce: 1) Type Anna and spell check using English USA dictionary. There is no mistake. 2) Type Anna's and there is no mistake either. 3) Type Annas and it is considered incorrect. I can right click and add it custom dictionary. ""But tags are not allowed."" Actual Results: Word Annas is considered incorrect. Expected Results: Word Annas should be considered correct if I add Anna/MS in custom dict. Reproducible: Always User Profile Reset: No Additional Info: Let's assume this word is already there in the dict file. Anna/M I will like to change the entry to this: Anna/MS I should be able to add this new entry in custom dictionary "with tags" that will overwrite the current word (if already present).
In other words, you would like to edit the "raw" dictionary info related to the word?
Yes. I am looking for a way to edit raw dictionary. This will be useful for non-english languages where not all words are added or their tags are wrong. In case of Asian Languages a single tag can replace hundreds of words in my custom dictionary.
The request to manipulate user dictionaries makes sense. I'd expect edit, delete, import, export functions. However, experienced users can access the dictionary at <.config>/libreoffice/4/user/wordbook. And ultimately kind of duplicate to bug 151625. Regarding "tags" I don't know what this exactly means (guess some markup language) and whether we support this (the dictionary is plain text). => needsDevEval
The dictionary is not just a list of words saved in a text file. Most of the words are followed by slash / and then a tag. For e.g. party/S would produce: parties, boy/S would produce: boys etc. You can read more about it here... https://tinyurl.com/mr298phy You can add words like "party" or "boy" in custom dictionary. But not with tags like "party/S". You can however add "party" AND "parties". But in case of non-english languages there are hundreds of words those are generated using tags. It is very difficult to add all of them in custom dictionary (that has a limit of 30000 words).
I guess this is why the directory is called wordbook and not dictionary, it's only a collection of word with no suffix or prefix. This would be an interesting addition :)
*** Bug 157449 has been marked as a duplicate of this bug. ***
Since LibreOffice 6.0, it's possible to specify a dictionary word for every custom word to allow affixation and compound word support: https://wiki.documentfoundation.org/ReleaseNotes/6.0/id#%E2%80%9CGrammar_By%E2%80%9D_spell_checking Screencast: https://www.youtube.com/watch?v=EsS3gaBTfOo
>> "crowdfund" is the new word (missing from the American English dictionary), and "fund" is the model word in the new "Grammar By" field. This enhancement request suggest that please allow crowdfund/xy (assuming the original dict file has an entry like fund/xy) Using hunspell tags directly in custom dict is very useful option for power-users. They do not need to guess the matching entry. If no tags are used then the user is free to use "Grammar By" option.
Hunspell dictionary files are simple text files, so it's possible to extend it with the requested words and affixes, according to its format, i.e. affix-compressed or not: After affix compression, it's not possible to add a simple /MS to the .dic file, but it needs to use an existing affix class defined in the .aff file, or defining a new affix class there, and use its index in the .dic file. With the suggested LibreOffice enhancement, it wouldn't be possible to change the dictionary with its affix-compressed version without breaking the (Hunspell format-dependent) user dictionary. The existing "Grammar By" feature is similar to the affix-compressed Hunspell dictionary format: it's based on an affix class, i.e. a flag sequence. The only difference, that its index is not a number, but a dictionary word with the requested affix class. "Grammar By" works both with plain and affix compressed Hunspell dictionaries, too, as intended.