all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Nathaniel Nicandro <nathanielnicandro@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Outdated dicod-service example in manual
Date: Wed, 03 May 2023 22:57:15 +0200	[thread overview]
Message-ID: <874jotxhec.fsf@gnu.org> (raw)
In-Reply-To: <87ile3hl2m.fsf@gmail.com> (Nathaniel Nicandro's message of "Mon,  10 Apr 2023 08:53:53 -0500")

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	other threads:[~2023-05-03 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-10 13:53 Outdated dicod-service example in manual Nathaniel Nicandro
2023-05-03 20:57 ` Ludovic Courtès [this message]
2023-05-04 13:30   ` Nathaniel Nicandro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jotxhec.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=nathanielnicandro@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.