texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.77k stars 343 forks source link

Spelling errors in non-text environments #1047

Open Babber opened 4 years ago

Babber commented 4 years ago

Environment

Expected behavior

If I set Options > Editor > "Hide spelling errors in non-text environments", then I expect it not only to be hidden, but also the Spell Checker should automatically ignore these.

Actual behavior

In mathematical environment, all the 2 and 3-character "words" are check by the Spell Checker, although they are not underlined.

How to reproduce

My simplest example is an inline math expression, eg. $xyz$.

ElieGouzien commented 4 years ago

In 044c1e49 (and before), a lot of spellcheck errors appear in inline maths environment, especially signs for subscript or upperscript (_ and ^) are marked as errors. Grammar errors also appear (for instance, start a sentence with some inline maths and it will indicate that we should start it with capital letter).

sunderme commented 4 years ago

you have Language tool running ?

ElieGouzien commented 4 years ago

you have Language tool running ?

Yes, and if I don't use it, the false error disappear.

Do you want me to open a separate issue?

sunderme commented 4 years ago

yes please

ElieGouzien commented 4 years ago

Its done with #1154.