GNU bug report logs -
#58436
[PATCH] gnu: Add hunspell-dict-hu.
Previous Next
Reported by: Attila Lendvai <attila <at> lendvai.name>
Date: Tue, 11 Oct 2022 12:05:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58436 in the body.
You can then email your comments to 58436 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#58436
; Package
guix-patches
.
(Tue, 11 Oct 2022 12:05:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Attila Lendvai <attila <at> lendvai.name>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 11 Oct 2022 12:05:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
---
builds it from source.
testing method: after including this in the profile, LibreOffice Writer started to underline typos in hungarian paragraphs.
gnu/packages/libreoffice.scm | 50 ++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 46eba12431..1991be9193 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -46,6 +46,7 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages aspell)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
@@ -60,6 +61,7 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages game-development)
+ #:use-module (gnu packages gawk)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
@@ -73,6 +75,7 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages java)
#:use-module (gnu packages linux)
#:use-module (gnu packages logging)
+ #:use-module (gnu packages m4)
#:use-module (gnu packages maths)
#:use-module (gnu packages nss)
#:use-module (gnu packages openldap)
@@ -83,6 +86,7 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages python)
#:use-module (gnu packages rdf)
#:use-module (gnu packages scanner)
+ #:use-module (gnu packages textutils)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
#:use-module (gnu packages xml)
@@ -996,6 +1000,52 @@ (define-public hyphen
(license
(list license:mpl1.1 license:mpl2.0 license:gpl2+ license:lgpl2.1+))))
+(define-public hunspell-dict-hu
+ (let ((revision "2")
+ (major+minor "1.7"))
+ (package
+ (name "hunspell-dict-hu")
+ (version (string-append major+minor "-" revision))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://sourceforge/magyarispell/Magyar Ispell/"
+ major+minor
+ "/magyarispell-" version ".tar.gz"))
+ (sha256
+ (base32 "0r22rvqrp5bzgr9sqyap82kibi5z9n6xy5b06si28idqijw7c772"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:make-flags
+ #~(list
+ "myspell"
+ "--jobs=1" ; the Makefile is not ready for parallelism
+ (string-append "SH=" (search-input-file %build-inputs "/bin/bash"))
+ (string-append "AWK=" (search-input-file %build-inputs "/bin/awk")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "config"
+ (("/usr/bin/awk")
+ (search-input-file %build-inputs "/bin/awk")))))
+ (replace 'install ;no install target
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share/hunspell/")))
+ (install-file "hu_HU.aff" share)
+ (install-file "hu_HU.dic" share)
+ #t))))
+ #:tests? #f)) ; no tests
+ (native-inputs
+ (list bash-minimal gawk hunspell m4 recode))
+ (synopsis "Hunspell dictionary for Hungarian (hu_HU)")
+ (description "This package provides a dictionary for the Hunspell
+spell-checking library.")
+ (home-page "http://magyarispell.sourceforge.net/")
+ (license (list license:gpl2 license:gpl3)))))
+
(define-public mythes
(package
(name "mythes")
--
2.35.1
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Mon, 17 Oct 2022 08:46:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Attila Lendvai <attila <at> lendvai.name>
:
bug acknowledged by developer.
(Mon, 17 Oct 2022 08:46:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 58436-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
Attila Lendvai <attila <at> lendvai.name> skribis:
> ---
>
> builds it from source.
Applied with the simplifications below and a commit log.
> testing method: after including this in the profile, LibreOffice Writer started to underline typos in hungarian paragraphs.
Last time I tried, Hunspell dictionaries were not found in LibreOffice:
<https://issues.guix.gnu.org/53147>.
Is this problem gone for you?
Thanks,
Ludo’.
[Message part 2 (text/x-patch, inline)]
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index fdb987af59..8343f8ffc6 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -46,7 +46,6 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages aspell)
#:use-module (gnu packages autotools)
#:use-module (gnu packages base)
- #:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
#:use-module (gnu packages check)
@@ -61,7 +60,6 @@ (define-module (gnu packages libreoffice)
#:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages game-development)
- #:use-module (gnu packages gawk)
#:use-module (gnu packages ghostscript)
#:use-module (gnu packages gl)
#:use-module (gnu packages glib)
@@ -1016,30 +1014,31 @@ (define-public hunspell-dict-hu
(base32 "0r22rvqrp5bzgr9sqyap82kibi5z9n6xy5b06si28idqijw7c772"))))
(build-system gnu-build-system)
(arguments
- (list
- #:make-flags
- #~(list
- "myspell"
- "--jobs=1" ; the Makefile is not ready for parallelism
- (string-append "SH=" (search-input-file %build-inputs "/bin/bash"))
- (string-append "AWK=" (search-input-file %build-inputs "/bin/awk")))
- #:phases
- #~(modify-phases %standard-phases
- (replace 'configure
- (lambda* (#:key outputs #:allow-other-keys)
- (substitute* "config"
- (("/usr/bin/awk")
- (search-input-file %build-inputs "/bin/awk")))))
- (replace 'install ;no install target
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (share (string-append out "/share/hunspell/")))
- (install-file "hu_HU.aff" share)
- (install-file "hu_HU.dic" share)
- #t))))
- #:tests? #f)) ; no tests
+ (list #:make-flags
+ #~(list "myspell"
+ "--jobs=1" ;the Makefile is not ready for parallelism
+ (string-append "SH="
+ (search-input-file %build-inputs
+ "/bin/bash"))
+ (string-append "AWK="
+ (search-input-file %build-inputs
+ "/bin/awk")))
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "config"
+ (("/usr/bin/awk")
+ (which "awk")))))
+ (replace 'install ;no install target
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (share (string-append out "/share/hunspell/")))
+ (install-file "hu_HU.aff" share)
+ (install-file "hu_HU.dic" share)))))
+ #:tests? #f)) ; no tests
(native-inputs
- (list bash-minimal gawk hunspell m4 recode))
+ (list hunspell m4 recode))
(synopsis "Hunspell dictionary for Hungarian (hu_HU)")
(description "This package provides a dictionary for the Hunspell
spell-checking library.")
Information forwarded
to
guix-patches <at> gnu.org
:
bug#58436
; Package
guix-patches
.
(Mon, 17 Oct 2022 14:41:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 58436-done <at> debbugs.gnu.org (full text, mbox):
> Last time I tried, Hunspell dictionaries were not found in LibreOffice:
> https://issues.guix.gnu.org/53147.
>
> Is this problem gone for you?
i don't see any issues with LibreOffice Writer. it's a bit tricky to set the paragraph's language to anything else than english for the first time in a document, but i think it all works as expected.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Civilization is in a race between education and catastrophe. Let us learn the truth and spread it as far and wide as our circumstances allow. For the truth is the greatest weapon we have.”
— H.G. Wells (1866–1946)
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 15 Nov 2022 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 247 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.