all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nathaniel Nicandro <nathanielnicandro@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Outdated dicod-service example in manual
Date: Thu, 04 May 2023 08:30:00 -0500	[thread overview]
Message-ID: <87h6ssgoh2.fsf@gmail.com> (raw)
In-Reply-To: <874jotxhec.fsf@gnu.org>


Ludovic Courtès <ludo@gnu.org> writes:

> 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>.)
>

Thanks for the tip.

>> 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.

I'll sumbit a patch to fix the example.  I'll look out for other
examples while I browse the documentation and update my system.  All
that I've looked at so far has worked out for me, except for this.

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

Doing this would mean that we also have to do something about the
`dicod-handler` definition since the database definition depends on it.
Maybe allow a `dicod-handler` in the `handler` field of a `dicod-database` so that the WordNet database definition can be self-contained without having to provide a handler definition in the `handlers` field of a `dicod-configuration`?  This way we can do as you say.

>
> Thanks!
>
> Ludo’.


-- 
Nathaniel


      reply	other threads:[~2023-05-04 14:31 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
2023-05-04 13:30   ` Nathaniel Nicandro [this message]

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=87h6ssgoh2.fsf@gmail.com \
    --to=nathanielnicandro@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /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.