Skip to content

Use detex to parse Tex files#4

Open
tiagofalcao wants to merge 1 commit into
dpelle:masterfrom
tiagofalcao:tex
Open

Use detex to parse Tex files#4
tiagofalcao wants to merge 1 commit into
dpelle:masterfrom
tiagofalcao:tex

Conversation

@tiagofalcao

Copy link
Copy Markdown

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

ghost commented Aug 24, 2017

Copy link
Copy Markdown

Thanks, this is verry usefull.

@real-or-random

Copy link
Copy Markdown

This looks very useful, can we get this merged?

@dilawar

dilawar commented Oct 8, 2019

Copy link
Copy Markdown

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

@zuxfoucault

zuxfoucault commented May 30, 2020

Copy link
Copy Markdown

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

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