guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outdated dicod-service example in manual


From: Ludovic Courtès
Subject: Re: Outdated dicod-service example in manual
Date: Wed, 03 May 2023 22:57:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hi Nathaniel,

Apologies for the delay!

Nathaniel Nicandro <nathanielnicandro@gmail.com> skribis:

> First off, I want to say thanks to all the Guix contributors.  I've
> really enjoyed my time tinkering with my system!  This is my first post
> to the mailing list after using Guix as my main operating system for the
> past few years.

Nice, welcome!  :-)

> I've found that when I tried to use the example configuration for the
> dicod-service in the manual
> (https://guix.gnu.org/manual/en/html_node/Miscellaneous-Services.html#Dictionary-Service)
> I wasn't able to get the wordnet dictionary working at all.

Oh.  (BTW, note that this is the manual for the latest release; when in
doubt you can also add “/devel” to the URL to see the manual of the
current development head:
<https://guix.gnu.org/manual/devel/en/html_node/Miscellaneous-Services.html#Dictionary-Service>.)

> I was able to get it working for my use case with the following configuration:
>
>     (dicod-configuration
>        (handlers
>         (list (dicod-handler
>                (name "wordnet")
>                (module "wordnet")
>                (options (list #~(string-append "wnhome=" #$wordnet))))))
>        (databases
>         (list (dicod-database
>                (name "wordnet")
>                (handler "wordnet")
>                (complex? #t)
>                (options (list "merge-defs")))
>               %dicod-database:gcide)))
>
> Should I go ahead and make a documentation change patch or would there
> be another example that would be preferred?

Fixing the current documentation would be most welcome!  And if you have
other examples in mind, we can add them too.

We could also add the ‘dicod-database’ definition for WordNet right into
(gnu services dict), so it’s readily usable, like that of GCIDE.

Thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]