* [bug#29753] [PATCH] Add grammalecte.
@ 2017-12-17 10:49 Nicolas Goaziou
2017-12-17 16:58 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 10:49 UTC (permalink / raw)
To: 29753
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
Hello,
The following patch adds a french grammar checker.
Regards,
--
Nicolas Goaziou 0x80A93738
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add grammalecte --]
[-- Type: text/x-diff, Size: 2682 bytes --]
From 6b687b4b89e8174fb2e55a9353a4b43d2019dffd Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#29753] [PATCH] Add grammalecte.
2017-12-17 10:49 [bug#29753] [PATCH] Add grammalecte Nicolas Goaziou
@ 2017-12-17 16:58 ` Ludovic Courtès
2017-12-17 18:03 ` bug#29753: " Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-12-17 16:58 UTC (permalink / raw)
To: Nicolas Goaziou; +Cc: 29753
Heya,
Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:
> From 6b687b4b89e8174fb2e55a9353a4b43d2019dffd Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Sun, 17 Dec 2017 11:45:47 +0100
> Subject: [PATCH] gnu: Add grammalecte.
>
> * gnu/packages/dictionaries.scm (grammalecte): New variable.
[...]
> + (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
s/can not/cannot/ :-)
Otherwise LGTM!
Do you know if there’s Emacs integration (Flyspell maybe?)?
Thank you,
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#29753: [PATCH] Add grammalecte.
2017-12-17 16:58 ` Ludovic Courtès
@ 2017-12-17 18:03 ` Nicolas Goaziou
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2017-12-17 18:03 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 29753-done
Hello,
ludo@gnu.org (Ludovic Courtès) writes:
>> +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
>
> s/can not/cannot/ :-)
Fixed.
> Otherwise LGTM!
Pushed. Thank you.
> Do you know if there’s Emacs integration (Flyspell maybe?)?
There is one at <https://gitlab.com/geeklhem/flycheck-grammalecte>.
However, quoting its author: "This package is currently a quick
hack-around".
Regards,
--
Nicolas Goaziou 0x80A93738
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-17 18:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-17 10:49 [bug#29753] [PATCH] Add grammalecte Nicolas Goaziou
2017-12-17 16:58 ` Ludovic Courtès
2017-12-17 18:03 ` bug#29753: " Nicolas Goaziou
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).