Source: dico
Severity: wishlist
Tags: patch
The upstream for dico is also maintaining the GCIDE database. Thus dico
has support for GCIDE that I'd like to leverage.
This bug report is a request to introduce a new dico module,
dico-module-gcide, which will then allow me to add it as a Recommends in
dict-gcide.
Please see attached patch.
That said, I still need your advise on how to enable the dictionary
during install.
dicodconfig picks dictionaries in the /usr/share/dictd/ folder, which
are in a certain file format.
The new dico implementation allows me to use the GCIDE database as is,
i.e. without conversion, provided I add the following snippet into the
config file. This is where I need coordination with you on how to
proceed.
I think dico-module-wordnet suffers the same problem. Most people have
installed dict-wn package, so they don't realize that wordnet is not
used.
So, to enable GCIDE, I need to add something like the following to
dictorg-db.list. I think this list was/is for backward compatibility
with the old dictd server.
How would you advise on adding something like the following, which is
dico specific ???
load-module gcide;
database {
name "gcidenew";
handler "gcide dbdir=/usr/share/dictd/gcide-0.51";
}
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.1.6+ (SMP w/4 CPU cores)
Locale: LANG=en_IN.utf8, LC_CTYPE=en_IN.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -Nru dico-2.2/debian/changelog dico-2.2/debian/changelog
--- dico-2.2/debian/changelog 2015-05-09 12:28:15.000000000 +0530
+++ dico-2.2/debian/changelog 2015-09-02 23:28:38.000000000 +0530
@@ -1,3 +1,10 @@
+dico (2.2-10) UNRELEASED; urgency=medium
+
+ * Enable new module: dico-module-gcide
+ This allows us to use the new GCIDE database without any conversion
+
+ -- Ritesh Raj Sarraf <rrs@learner> Wed, 02 Sep 2015 23:27:09 +0530
+
dico (2.2-9) unstable; urgency=medium
* Add -E to LDFLAGS for mips64el arch. to fix FTBFS.
diff -Nru dico-2.2/debian/control dico-2.2/debian/control
--- dico-2.2/debian/control 2015-05-09 12:28:15.000000000 +0530
+++ dico-2.2/debian/control 2015-09-02 23:10:08.000000000 +0530
@@ -158,6 +158,20 @@
This package provides an abstract layer for reading WordNet lexical database
files.
+Package: dico-module-gcide
+Architecture: any
+Depends: dicod, ${misc:Depends}, ${shlibs:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Description: RFC 2229 compliant modular dictionary server (GCIDE module)
+ GNU Dico is an implementation of the DICT protocol as defined in RFC 2229.
+ It is fully modular: the daemon itself (dicod) provides only the server
+ functionality, and knows nothing about database formats. Actual searches
+ are performed by functions supplied in loadable modules. A single module
+ can serve one or more databases.
+ .
+ This package provides an abstract layer for reading GCIDE lexical database
+ files.
+
Package: python-wit
Section: python
Architecture: all
diff -Nru dico-2.2/debian/dicod.install dico-2.2/debian/dicod.install
--- dico-2.2/debian/dicod.install 2015-05-09 12:28:15.000000000 +0530
+++ dico-2.2/debian/dicod.install 2015-09-02 23:10:57.000000000 +0530
@@ -9,7 +9,6 @@
usr/lib/*/dico/dictorg.so
usr/lib/*/dico/outline.so
usr/lib/*/dico/ldap.so
-usr/lib/*/dico/gcide.so
usr/lib/*/dico/word.so
usr/lib/*/dico/nprefix.so
usr/lib/*/dico/pcre.so
diff -Nru dico-2.2/debian/dico-module-gcide.install dico-2.2/debian/dico-module-gcide.install
--- dico-2.2/debian/dico-module-gcide.install 1970-01-01 05:30:00.000000000 +0530
+++ dico-2.2/debian/dico-module-gcide.install 2015-09-02 23:10:54.000000000 +0530
@@ -0,0 +1,2 @@
+usr/lib/*/dico/gcide.so
+usr/lib/*/idxgcide