dpelle / vim-LanguageTool

A vim plugin for the LanguageTool grammar checker
280 stars 28 forks source link

Use detex to parse Tex files #4

Open tiagofalcao opened 7 years ago

tiagofalcao commented 7 years ago

LanguageTool is a great tool. And the latex writing is one of it major uses.

This simple code removes the latex code before call LanguageTool.

I do not know if you accept PRs, but here is. :)

ghost commented 7 years ago

Thanks, this is verry usefull.

real-or-random commented 6 years ago

This looks very useful, can we get this merged?

dilawar commented 4 years ago

I would love to use this. Is there anything holding it back from merging?

zuxfoucault commented 4 years ago

Thanks for the work! I inserted the changed snippet, but the location of the detected words is not correct with the current master branch. Hence the highlight didn't work.

jonhiggs commented 8 months ago

It would be a lot more versatile if we could define the command that the document is piped through before arriving at LanguageTool.

The ftplugins/* files could set it to detex for TeX file types, or deroff for Roff file types. It would also allow me to write my own filter to strip formatting from markdown files if I wanted to.

This is pretty much how it was done in the old days, so there will often be pre-existing filters.