From: John G. <jgo...@co...> - 2002-04-23 08:43:35
|
On Tuesday, April 23, 2002, at 12:39 AM, Eyermann Horst ICM Bocholt wrote: >> 2) I've applied Aleksey Cheusov's patches for locale. If you run >> dictfmt and dictd with LC_CTYPE and LC_COLLATE the same, you >> should get sorts that work. Note that using dictd >> with anything OK, this really concerns me. In the course of developing dictdlib (a Python API for generating dict and index files), I had a heck of a time getting the sort order "just so" so that dictd would not skip words. It's very picky about the sort order. Sort a hyphen different than it wants and dozens of words could be totally ignored. In the first place, I think this is bad design; I think it would be better to load the entire index file into an in-memory hash table or use something like a Berkeley db. But anyway... My concern about the below (and indeed, about dictd itself) is that we now lose the ability to move dict indices from one machine to the other. Not only that, but we lose the ability to run a single dict server containing indices from machines with different LC_CTYPE or LC_COLLATE settings. In fact, we might have already lost that ability, but I think this only makes matters worse. I feel that distribution of .index and .dict files pre-made is a worthwhile goal (see freedict.de). -- John |