From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQWXD-0006UP-00 for guix-patches@gnu.org; Sun, 17 Dec 2017 05:51:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQWX8-0006Vr-Vq for guix-patches@gnu.org; Sun, 17 Dec 2017 05:51:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57639) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eQWX8-0006VJ-Rq for guix-patches@gnu.org; Sun, 17 Dec 2017 05:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eQWX8-0005Dv-IK for guix-patches@gnu.org; Sun, 17 Dec 2017 05:51:02 -0500 Subject: [bug#29753] [PATCH] Add grammalecte. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQWVw-0006Dj-D9 for guix-patches@gnu.org; Sun, 17 Dec 2017 05:49:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQWVs-0005FF-Hh for guix-patches@gnu.org; Sun, 17 Dec 2017 05:49:48 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQWVs-0005Dk-AY for guix-patches@gnu.org; Sun, 17 Dec 2017 05:49:44 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id BB104172095 for ; Sun, 17 Dec 2017 11:49:41 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eQWVp-00082z-26 for guix-patches@gnu.org; Sun, 17 Dec 2017 11:49:41 +0100 From: Nicolas Goaziou Date: Sun, 17 Dec 2017 11:49:41 +0100 Message-ID: <87a7yhochm.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29753@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello, The following patch adds a french grammar checker. Regards, -- Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-grammalecte.patch Content-Description: Add grammalecte >From 6b687b4b89e8174fb2e55a9353a4b43d2019dffd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 17 Dec 2017 11:45:47 +0100 Subject: [PATCH] gnu: Add grammalecte. * gnu/packages/dictionaries.scm (grammalecte): New variable. --- gnu/packages/dictionaries.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/dictionaries.scm b/gnu/packages/dictionaries.scm index 062c29b66..593967705 100644 --- a/gnu/packages/dictionaries.scm +++ b/gnu/packages/dictionaries.scm @@ -23,6 +23,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages curl) @@ -206,6 +207,45 @@ It comes with a German-English dictionary with approximately 270,000 entries.") (home-page "http://www-user.tu-chemnitz.de/~fri/ding/") (license gpl2+))) +(define-public grammalecte + (package + (name "grammalecte") + (version "0.6.1") + (source + (origin + (method url-fetch/zipbomb) + (uri (string-append "https://www.dicollecte.org/grammalecte/zip/" + "Grammalecte-fr-v" version ".zip")) + (sha256 + (base32 + "0bl342i7nqbg8swk3fxashg9liyp3jdnix59pndhy41cpm1xln4i")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-setup.py + ;; FIXME: "setup.py" contains a typo in 0.6.1 release. The + ;; issue was reported and fixed upstream + ;; (https://dicollecte.org/thread.php?prj=fr&t=674). This + ;; phase can be removed in next release. + (lambda _ + (substitute* "setup.py" + (("server_options\\.") "grammalecte-server-options.")) + #t))))) + (home-page "https://www.dicollecte.org") + (synopsis "French spelling and grammar checker") + (description "Grammalecte is a grammar checker dedicated to the French +language, derived from Lightproof. + +Grammalecte aims at helping to write a proper French without distracting users +with false positives. This grammar checker follows the principle: the less +false positives, the better; if it can not know with a good chance if +a dubious expression is wrong, it will keep silent. + +The package provides the command line interface, along with a server +and a Python library.") + (license license:gpl3+))) + (define-public translate-shell (package (name "translate-shell") -- 2.15.1 --=-=-=--