Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use detex to parse Tex files #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tiagofalcao
Copy link

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
Copy link

ghost commented Aug 24, 2017

Thanks, this is verry usefull.

@real-or-random
Copy link

This looks very useful, can we get this merged?

@dilawar
Copy link

dilawar commented Oct 8, 2019

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

@zuxfoucault
Copy link

zuxfoucault commented May 30, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants