Hi Thomas,

> I've fixed the dict-revo Debian package, so that:
>  1) it doesn't generate useless symlinks, since dictdconfig now allows
> multiple indexes for the same database
>  2) add some 00-database-short-$LANGUAGE at the beginning of the
> database. Here's the beginning of the database file revo.dict.dz:

Presumably you are adding these before the index is built.

> However, dictd fails to start, with the following error in the syslog
> (when started with option -s):
> parse error

> So, either it's a bug in dictd, ...

It is in dictd, but I'm not sure if it is a bug or a feature.  The
parser is expecting a TOKEN_STRING, which the scanner can provide as
from either a word (can't contain a @) or a string (which must be
quoted).  I will try to decide if the scanner needs to be liberalized,
but in the mean time, try this:

------------------------------ 8< ------------------------------
diff -u dictdconfig.old dictdconfig
--- dictdconfig.old     2005-09-07 20:41:11.000000000 -0400
+++ dictdconfig 2005-09-07 20:41:38.000000000 -0400
@@ -198,7 +198,7 @@
     $datafile = "$base_name.dict.dz";
     $datafile =~ s/\.dz$// unless -f $datafile;
     if (! -f $datafile && $name =~ /^.+\.(\w+)$/) {
-        $short = '@00-database-short-' . $1;
+        $short = '"@00-database-short-' . $1 . '"';
         $datafile =~ s/\.\w+\.dict$/.dict.dz/;
         $datafile =~ s/\.dz$// unless -f $datafile;
     }
------------------------------ >8 ------------------------------

so your entries will now look like:

------------------------------ 8< ------------------------------
database revo.cs {
  data  /usr/share/dictd/revo.dict.dz
  index /usr/share/dictd/revo.cs.index
  name "@00-database-short-cs"
}
------------------------------ >8 ------------------------------


We can also override the "00-database-info" line.  This is what is
returned from a "dict -i <database-name>" query.  Do you think that is
desirable?  Unfortunately, I don't see a way of making it optional.

Kirk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to