summaryrefslogtreecommitdiff
path: root/doc/guix.texi
diff options
context:
space:
mode:
authorRunciter <[email protected]>2025-01-09 14:14:31 +0000
committerLudovic Courtès <[email protected]>2025-01-26 22:09:28 +0100
commita47bbf6965283562e086393f357e5519379bccef (patch)
tree7a7917d454ce91bcac0369092834afc50cf8cf1f /doc/guix.texi
parent4fa122bc4d3ccdca5b4613c3d700558c4af593fe (diff)
services: dico: Add symbols to help users configure FreeDict with dicod.
* gnu/services/dict.scm: (dicod-freedict-database): New procedure; (%dicod-databases:freedict): new variable. * doc/guix.texi (Dictionary Service): Document them. Signed-off-by: Runciter <[email protected]> Signed-off-by: Ludovic Courtès <[email protected]> Change-Id: Id5b20e235b988953a66e0344872d1fa165c4c773
Diffstat (limited to 'doc/guix.texi')
-rw-r--r--doc/guix.texi27
1 files changed, 24 insertions, 3 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index 11e3f7bc13..b1b6d98e74 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -41514,7 +41514,25 @@ A @code{<dicod-database>} object serving the GNU Collaborative International
Dictionary of English using the @code{gcide} package.
@end defvar
-The following is an example @code{dicod-service-type} configuration.
+@deffn {Procedure} dicod-freedict-database dictionary-name
+Returns a record of type @code{dicod-database} for purpose of
+configuring a database for the FreeDict multilingual dictionary named by
+@var{dictionary-name}, a string such as @code{"kur-eng"} for the
+Kurdish-to-English dictionary, into a service of type
+@code{dicod-service-type}.
+@end deffn
+
+@defvar %dicod-databases:freedict
+A relatively large list of records of type @code{dicod-database}, made
+available for users who wish to configure all the FreeDict multilingual
+dictionaries provided by the @code{freedict-dictionaries} package into a
+service of type @code{dicod-service-type}.
+@end defvar
+
+The following is an example @code{dicod-service-type} configuration,
+extending a @command{dicod} daemon serving databases for the wordnet and
+gcide dictionaries, as well as a selection of FreeDict multilingual
+dictionaries.
@lisp
(service dicod-service-type
@@ -41525,12 +41543,15 @@ The following is an example @code{dicod-service-type} configuration.
(module "wordnet")
(options
(list #~(string-append "wnhome=" #$wordnet))))))
- (databases (list
+ (databases (cons*
(dicod-database
(name "wordnet")
(complex? #t)
(handler "wordnet"))
- %dicod-database:gcide))))
+ %dicod-database:gcide
+ (map
+ dicod-freedict-database
+ '("fra-eng" "eng-fra" "eng-spa" "spa-eng"))))))
@end lisp
@cindex Docker