I'm trying to spell check a LaTeX document. I think I can ignore certain predefined Latex words using
((SpellingCheckRule)activeRule).addIgnoreTokens(ignoreWords), but I'm not sure how to:
1) Ignore spelling of equations, i.e. ignore all words between $, or between $$
2) Ignore spelling lines that start with the comment line "%". For example, lines with "%%%%" will still be checked by the LanguageTool.
So, the question is, can I also ignore words which have some special characters, or some pattern?