|
From: Aleksey C. <vl...@gm...> - 2005-07-12 11:59:26
|
JW> -----BEGIN PGP SIGNED MESSAGE----- JW> Hash: SHA1 JW> Am 11.07.2005 um 10:48 schrieb Aleksey Cheusov: >> .ibdex and .dict files MUST be created using dictfmt utility. >> Your files may easily be converted to the correct format like this: JW> MUST? Not allowed to be done by another program? It is always better to use dictfmt utility, just because it is the only program doing its job in a right way ;) If you program Perl, it may be easier for you to prepare dictionary in -c5 format (plain text format) and then run dictfmt. >> cat you_dict.dict | dictunformat you_dict.index | dictfmt -t --utf8 >> new_dict JW> cat debian.de-en.dict | dictunformat debian.de-en.index | dictfmt -t JW> - --locale de_DE.UTF-8 debian.de-en_new JW> Seems to work. Seems it is the alphabet, it is missing. I am not JW> sure. But shouldn't that be documented? JW> Grabbing the locale from the users settings is not very nice, BTW. dictfmt-1.10.1 doesn't require --locale option for creating utf-8 dictionaries, --utf-8 option is used instead. Alder versions required utf-8 locale for initializing libc's functions iswXXXX and towYYYY. The only charset part of locale was really needed. JW> Aleksey's mail helped me so far, that I can convert my results until JW> I know, how to produce a format, that both dictd servers understand. Probably serpento uses old dictd format (1.5.5). Last few years a few changes were made in dictd's databases format, especially for supporting utf-8 dictionaries. See NEWS files and I hope you'll find description for all these changes. -- Best regards, Aleksey Cheusov. |