Start a new topic

Is there a character that Hunspell ignores?

Is there a character that I can use as a mnemonic in strings and that Hunspell ignores?


Now:


E&xporteren


Hunspell sees the ampersand as a word boundary:


Is there any character (either visible or invisible) that I can use to define the location of the mnemonic, but that isn't considered as a word boundary by Hunspell?



I've found a solution for this. Not via a character that is ignored by Hunspell, but via non-translatables.


With the attached file mnemonics with an underscore character are treated as non-translatables and thus ignored during spell-checking:




txt
(149 Bytes)

Oops, big mistake. This work-around only works for menu names that don't change (real invariants):


_Exit

O_pen


And not for menu names that have to be translated. So, the question is still open :(.

Question: Is it possible to add regular expressions to the Hunspell custom dictionary?


Why not check it yourself, Hans?

Okay, I found that I deserved a 2nd chance. Studied this:


http://manpages.ubuntu.com/manpages/trusty/man4/hunspell.4.html


And came up with this:


WORDCHARS '’0123456789ij.-\/_

# Added underscore character for use in mnemonics


# Allow use of underscore for mnemonics

IGNORE _


2 additions of the underscore to  nl_NL.aff


BTW: I also added: 


# Set max. number of n-gram suggestions

MAXNGRAMSUGS 3


Because Hunspell often gave too much suggestion.




And:



Not flagged as typos anymore

Looks like this part doesn't work:


# Set max. number of n-gram suggestions

MAXNGRAMSUGS 3

Login to post a comment