aboutsummaryrefslogtreecommitdiff
path: root/doc/dico.texi
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-03-04 13:57:53 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2012-03-04 14:32:54 +0200
commit37147d7c6229cfb997a4a4bdac2d9e441f79b2c7 (patch)
tree8d990de594c58f70ca0d5493d97bad7c67e109b1 /doc/dico.texi
parent2aa9df8a67de14d1167ac96823b97461a9c28c96 (diff)
downloaddico-release-2.2.tar.gz
dico-release-2.2.tar.bz2
Implement info/descr for gcide.release-2.2
* NEWS: Update. * doc/dico.texi: Update. * include/dico/util.h (dico_string_trim): Add missing proto. * modules/gcide/gcide.c (gcide_info, gcide_descr): Implement info and description methods. * modules/gcide/tests/dict/INFO: New file. * modules/gcide/tests/Makefile.am (TESTSUITE_AT): Add descr.at and info.at. * modules/gcide/tests/testsuite.at: Include descr.at and info.at * modules/gcide/tests/dicod.cfin: Remove description. * modules/gcide/tests/descr.at: New test case. * modules/gcide/tests/info.at: New test case. * modules/gcide/tests/def00.at: Update. * modules/gcide/tests/def01.at: Update. * modules/gcide/tests/def02.at: Update. * modules/gcide/tests/def03.at: Update. * modules/gcide/tests/def04.at: Update. * modules/gcide/tests/def05.at: Update. * scripts/Makefile.am: Exempt gcider from standard options check.
Diffstat (limited to 'doc/dico.texi')
-rw-r--r--doc/dico.texi26
1 files changed, 9 insertions, 17 deletions
diff --git a/doc/dico.texi b/doc/dico.texi
index 59639a2..8c55707 100644
--- a/doc/dico.texi
+++ b/doc/dico.texi
@@ -2990,7 +2990,8 @@ for the user @command{dicod} is started as.
Other options are:
@deffn {gcide parameter} idxdir directory
-Specifies alternate directory for the @file{CIDE.IDX} index file.
+Specifies the directory where the @file{CIDE.IDX} index file resides
+or should reside.
@end deffn
@deffn {gcide parameter} index-cache-size size
@@ -3014,6 +3015,12 @@ fields have been filled in}, so it might be reasonable to avoid
displaying them at all.
@end deffn
+ Starting from version 0.51, GCIDE contains the file @file{INFO},
+which provides basic information about the dictionary. The
+@command{gcide} module returns contents of this file at the
+@samp{SHOW INFO} request. The first line of this file (with the
+trailing newline and final point removed) is returned as the short
+database description.
Here's a full example of a @samp{gcide} as used in
@indicateurl{dico.gnu.org.ua}:
@@ -3024,28 +3031,13 @@ load-module gcide;
database @{
name "gcide";
- handler "gcide dbdir=/var/dictdb/gcide suppress-pr";
+ handler "gcide dbdir=/var/dictdb/gcide-0.51 suppress-pr";
languages-from "en";
languages-to "en";
- description "Collaborative International Dictionary"
- " of English";
- info <<EOT
-The dictionary was derived from the
- Webster's Revised Unabridged Dictionary
- Version published 1913
- by the C. & G. Merriam Co.
- Springfield, Mass.
- Under the direction of
- Noah Porter, D.D., LL.D.
-@dots{}
-EOT;
@}
@end group
@end example
- The dots represent further content of the description which is too
-big and irrelevant to copy it here.
-
@menu
* idxgcide::
@end menu

Return to:

Send suggestions and report system problems to the System administrator.