[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#26308: [PATCH -v2] services: dict.scm: Support more dicod config
From: |
Huang\, Ying |
Subject: |
Re: bug#26308: [PATCH -v2] services: dict.scm: Support more dicod configuration |
Date: |
Sat, 01 Apr 2017 19:29:05 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hello,
>
> Huang Ying <address@hidden> skribis:
>
>> * gnu/services/dict.scm (<dicod-configuration>): Add handlers to configure
>> handlers (module instances).
>> (<dicod-handler>): Add new record type to describe handler (module
>> instance).
>> (<dicod-database>): Add more fields.
>> (dicod-configuration-file): Support convert handlers and enhanced databases
>> configuration to config file.
>>
>> * doc/guix.text: Add description of newly added dicod configuration.
>
> I’ve committed with a few adjustments to the commit log and cosmetic
> changes:
>
>
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=9af7ecd9591b4eff41389291bbc586dcf09e2665
>
>> address@hidden
>> +(dicod-service #:config
>> + (dicod-configuration
>> + (handlers
>> + (list
>> + (dicod-handler
>> + (name "wordnet")
>> + (module "dictorg")
>> + (options
>> + '("dbdir=/gnu/store/xxxx-wordnet")))))
>
> I’ve changed this to use a real example instead of “xxx”.
>
>> (define-record-type* <dicod-database>
>> dicod-database make-dicod-database
>> dicod-database?
>> (name dicod-database-name)
>> - (module dicod-database-module)
>> + (handler dicod-database-handler)
>> + (complex dicod-database-complex (default #f))
>
> I changed that to ‘complex?’, to make it clear that it’s a Boolean.
>
> While I was at it, I wrote a simple test for the dicod service:
>
>
> https://git.savannah.gnu.org/cgit/guix.git/commit/?id=985a8599ed742053b52ac85f753c4feb54af93cb
>
> It uses the example handler that you gave in the doc, but I think this
> handler actually does nothing because WordNet does not provide data in
> the dict.org format AIUI (and its data is under “/dict” anyway.) Is
> that correct?
>
> Do you have another example in mind that could use a dict.org-formatted
> database?
There are dict.org dict for wordnet and foldoc in Debian. Some
conversion tool is needed to convert the dict database file.
Best Regards,
Huang, Ying
> Thank you!
>
> Ludo’.
- Re: bug#26308: [PATCH -v2] services: dict.scm: Support more dicod configuration,
Huang\, Ying <=