-
Notifications
You must be signed in to change notification settings - Fork 407
Integration with proofreading tool #1684
Description
Hi,
direct usage of a proofreading tool (for spell, grammar, and some style checking) in a LaTeX editor can be comfortable. In order to avoid too many false positives from the proofreader, it should be fed only with plain text extracted from the current LaTeX source. On the other hand, locations of problems reported by the tool should be mapped back to the corresponding positions in the LaTeX source.
May I draw your attention to the project YaLafi? This is a LaTeX filter suitable for integration with an editor and a proofreading software like LanguageTool. Initially, filtering has been based on recursive regular expressions (project Tex2txt), but now it uses a more powerful scanner / parser for LaTeX analysis.
As other tools like TeXtidote and vscode-ltex, YaLafi provides mapping of character positions between the LaTeX text and the plain text seen by the proofreading tool. Therefore, messages from the proofreader can be properly related to the corresponding parts of the LaTeX text. Currently, it can be used with Vim plug-in vim-grammarous (see here) and Emacs plug-in Emacs-langtool (see here).
I do my own LaTeX writing with "plain Vim", in a rather simple, Bash-script based environment. The above filter project grew out of the desire to use LanguageTool for the check of already existent LaTeX document trees. Therefore, I wanted to make it flexible and not to produce too many false positives from the proofreading tool. Now it is in a status that one might use it in a larger framework.
Would it be worth to put some effort into integrating vimtex with a LaTeX filter, an interface like vim-grammarous, and LanguageTool? In order to keep things simple for the user, application via Docker seems sensible to me (combined usage of Java, LanguageTool, LaTeX, Python, Vim, ... in alphabetic order). Before starting work, it would be nice to know some opinions on such an undertaking.
Matthias
PS. A similar post has already been placed at the closed Issue #1311. Sorry for any inconvenience.