TexMaker (or its forked equivalent: TexStudio) has a dictionary option that provides spelling feature in the editor. However, as mentioned in question Add word to TexMaker dictionary?, there is no direct way to add extra and custom words to its dictionary. This is an important feature especially for those who work in a specific field of science or technology with uncommon words. It seems the only way to add extra words to the dictionary files is to edit them (the dictionary files can be found in the installation folder of TexMaker). Also, it seems that TexMaker uses standard OpenOffice (Hunspell, as mentioned by Tim Hoffmann) dictionaries.

The problem is that there are some codes following words in these dictionaries that apparently help to skip adding variants of a root word. For example, for the word book, we have book/SBJGMD. These codes are apparently defined in the affix (.aff) files that acompany the main dictionary (.dic) files. However, I could not find any description of their meanings in the affix files. I need this information because I want to add some extra words to the dictionaries for my own use without adding all their variants.

Is there any reference about the codes or the syntax used in the affix files?


I found a description on this webpage. A copy of the syntax described there is provided below for the purpose of completeness:

Here is an example of how to define one specific suffix borrowed 
from the en_US.aff file used by the OpenOffice org spellchecker

SFX D   y     ied        [^aeiou]y

The first line has 4 fields:

1     SFX - indicates this is a suffix
2     D   - is the name of the character which represents this suffix
3     Y   - indicates it can be combined with prefixes (cross product)
4     4   - indicates that sequence of 4 affix entries are needed to
               properly store the affix information

The remaining lines describe the unique information for the 4 affix
entries that make up this affix.  Each line can be interpreted
as follows: (note fields 1 and 2 are used as a check against line 1 info)

1     SFX         - indicates this is a suffix
2     D           - is the name of the character which represents this affix
3     y           - the string of chars to strip off before adding affix
                         (a 0 here indicates the NULL string)
4     ied         - the string of affix characters to add
                         (a 0 here indicates the NULL string)
5     [^aeiou]y   - the conditions which must be met before the affix
                    can be applied
|improve this answer|||||

Not the answer you're looking for?Browse other questions tagged or ask your own question.