gnu: hunspell-dict-en: Install all affix files.

* gnu/packages/aspell.scm (aspell-word-list): Install affix files
corresponding to installed dictionary files.
This commit is contained in:
Julien Lepiller 2020-08-21 01:32:22 +02:00
parent 1cc75fef12
commit 2a29f4767f
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82

View File

@ -404,8 +404,12 @@ dictionaries, including personal ones.")
(find-files "speller"
,(string-append language ".*\\.dic$"))))
(install-file ,(string-append "speller/" language ".aff")
hunspell)
;; Install affix files corresponding to installed dictionaries
(for-each (lambda (dic)
(install-file (string-append
"speller/" (basename dic ".dic") ".aff")
hunspell))
(find-files hunspell ".*\\.dic$"))
(symlink hunspell (string-append myspell "/dicts"))
(for-each (lambda (file)
(install-file file doc))