Open clauseggers opened 2 years ago
Does this happen if you use the -e
(exact / no fuzzy search) option? KoReader has some code that works around the fact that sdcv can output the same entry multiple times if it decides to trigger a fuzzy search after finding an exact search (the exact search finds an entry and outputs it, then fuzzy search finds the same entry and outputs it again).
Yup, same outcome.
I experienced a similar issue awhile ago. It turned out, I had two sets of dictionaries at different locations, both used by sdcv at the same time!
Here’s an odd one. Most output I get from
sdcv
(0.52) is shown two times. The second output consecutively to the first. However something likesdcv -v
is only output once. Here is the output ofsdcv -l
:And here the output of an interactive query:
The doubling of output also happen when I use this shell function:
I’m running it under ZorinOS 16 (which is based on Ubuntu 20.04). I’m at a loss as to why this happens. I’ve manually set the
$STARDICT_DATA_DIR
to$HOME/.stardict/dic/
and placed the dictionaries in sub-directories within.