languagetool-org / languagetool

Style and Grammar Checker for 25+ Languages
https://languagetool.org
GNU Lesser General Public License v2.1
12.34k stars 1.39k forks source link

Hyphen for LaTeX (rus) #3316

Open AcaDemIQ opened 4 years ago

AcaDemIQ commented 4 years ago

To set up hyphen in LaTeX file between two word, I should write a special command \hyp{} (for example, веб\hyp{}сервисов)

But the LanguageTool can analyze only - symbol as a hyphen, else I get a error RU_COMPOUNDS

I use TexStudio to analyze a grammar of my text

danielnaber commented 4 years ago

I'm not sure - LT doesn't know LaTeX, so any filtering before the data is sent to LT should be TexStudio's job.

AcaDemIQ commented 4 years ago

I'm not sure - LT doesn't know LaTeX, so any filtering before the data is sent to LT should be TexStudio's job.

You right, but can LT add synonym to hyphen?)

(I can run pandoc program and convert my LaTeX to plant text, but it is a simpler way to add "synonym" to LT for users, imho)

danielnaber commented 4 years ago

You right, but can LT add synonym to hyphen?)

You mean whether LT could interpret \hyp{} as -? For that, you'd need to send data to LT's http interface and use the data parameter instead of text: https://languagetoolplus.com/http-api/#!/default/post_check