On 29 May 2018 at 21:55, mn <mno...@gmx.net> wrote:

> What is the status of the optional (external?) feature "grammar
> checking" and is their a plan to add proper support for this?
>
> The parts in question are here:
> https://github.com/gmatht/lyx-gc
> https://wiki.lyx.org/Tools/LyX-GrammarChecker
>
> Trying to get lyx-gc working on macOS:
>

I wrote lyx-gc. It "should" work on MacOS but I don't  use MacOS myself, so
it may be more buggy than running it on Ubuntu.

>
> The wiki page seems a bit out of date.
> The last entries on the user list are from 2010 on devel from 2009?
>

Yes, the wiki is rather old. Perhaps it should be replaced with a short
summary and link to github.

>
> Does this work? Still or has it ever worked?
>

I use Ubuntu. I have fixed some bugs that prevented it working on MacOS, it
was my hope that this would mean it would work.

<snip>

> - chktex is installed as a binary of 1.7.6 from TeXLive
> - JlanguageTool is installed as version 4.1 from languagetool.org
> - the paths for languagetool and LyX were adapted to their names and
> locations
>

LyX-GC does not require languagetool or chktex for basic functionality. It
works by pretending to be chktex, and it seems that LyX is finding the real
chktex instead for some reason. You could try uninstalling chktex and see
if that helps.

>
> Starting lyx-gc does start LyX, check TeX in LyX seems to work but I do
> not see any advantage appearing. Just the plain old, mostly wrong chktex
> warnings?
>

Sounds like lyx-gc isn't setting the PATH properly on your Mac. Are you
running it from the Terminal as "./lyx-gc"? If not you could see if that
helps.


> The goal for me would be to use all capabilities advertised for lyx-gc
> with languagetool for English, French and German texts.
>

lyx-gc doesn't support German, but in principle copying path/chktex_fr.pl
to path/chktex_de.pl should give you some German support. (Translating
chktex_de.pl into German from French would help)

>
> On the setup side I may have made mistakes, but that would make
> development towards better integration all the more sweet for this.
>

IIRC, the main reason this hasn't been integrated is that LyX binaries do
not depend on Perl, but LyX-GC does, so we would either need to add Perl to
LyX or translate LyX-GC to C++ or python. Translating LyX-GC seemed like
the way forward, but nobody found the time to do it. I thought it would be
amusing to write a script to translate Perl into python, but that would be
even more time consuming, apart from anything else.


-- 
John C. McCabe-Dansted

Reply via email to