vim-LanguageTool icon indicating copy to clipboard operation
vim-LanguageTool copied to clipboard

Use detex to parse Tex files

Open tiagofalcao opened this issue 8 years ago • 5 comments

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. :)

tiagofalcao avatar Nov 27 '16 03:11 tiagofalcao

Thanks, this is verry usefull.

ghost avatar Aug 24 '17 21:08 ghost

This looks very useful, can we get this merged?

real-or-random avatar Apr 07 '18 20:04 real-or-random

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

dilawar avatar Oct 08 '19 11:10 dilawar

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.

zuxfoucault avatar May 30 '20 08:05 zuxfoucault

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.

jonhiggs avatar Jan 16 '24 00:01 jonhiggs