From 9266ad9d2c28baff2e693e1668839a048dc0394f Mon Sep 17 00:00:00 2001 From: bwaegeneire Date: Thu, 7 Dec 2023 13:56:04 +0100 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20page=20HowtoLanguageTool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoLanguageTool.md | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 HowtoLanguageTool.md diff --git a/HowtoLanguageTool.md b/HowtoLanguageTool.md new file mode 100644 index 00000000..9ae5dc0e --- /dev/null +++ b/HowtoLanguageTool.md @@ -0,0 +1,48 @@ +- Documentation : [https://dev.languagetool.org/]() +- Code source : [https://github.com/languagetool-org/languagetool]() +- Status de cette page : unstable / bullseye + +[LanguageTool](https://languagetool.org/) est un correcteur multilingue de grammaire et de style. + +# Serveur + +## Installation + +~~~(sh) +# curl -Lo /tmp/languagetool.zip https://languagetool.org/download/LanguageTool-stable.zip +# mkdir /opt/languagetool +# bsdtar -xvf /tmp/languagetool.zip -C /opt/languagetool -'s|LanguageTool-[0-9\.]*|languagetool|' +# cat < /etc/systemd/system/languagetool.service +[Unit] +Description=Languagetool HTTP server + +[Service] +Type=simple +PIDFile=/run/language-tool.pid +Restart=always +# XXX "--config /dev/null" is a workaronud from https://forum.languagetool.org/t/self-hosted-languagetool-server-and-chrome-add-on/9519/4 +ExecStart=/usr/bin/java -cp /opt/languagetool/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin --config /dev/null +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/bin/kill -QUIT $MAINPID +DynamicUser=yes + +[Install] +WantedBy=multi-user.target +EOF +# systemctl daemon-reload +# systemctl enable --now languagetool.service +~~~ + +# Extension Firefox + +## Installation + +L'extension Firefox LanguageTool s'installe à partir de cette page https://addons.mozilla.org/en-US/firefox/addon/languagetool/. + +## Configuration + +### Utilisation d'un serveur LanguageTool local + +Afin que les données de votre correcteur d'orthographe ne passent par le Cloud de LanguageTool, il faut que vous installiez le serveur LanguageTool en local. Et ensuite configurer l'extension depuis Firefox : accédez aux préférences de l'extension, tout en bas de cette page, cliquez sur `Advanced settings (only for professional users)` puis configurez `LanguageTool server:` à `Local server (localhost)` + +# TODO Extension LibreOffice