sdcv: Local lookup, some assembly required

I’m a big fan of dict, the online dictionary and thesaurus tool that runs almost completely at the command prompt.

Of course, if I’m stuck offline, I’m stuck completely. Words fail me. Literally. 😯

sdcv is a console interface to the somewhat-dated StarDict tool. And in contrast to dict, sdcv works with locally downloaded (or created, I suppose) dictionaries.


There’s not a whole lot to see with sdcv, although that will depend entirely on how many dictionaries you have, and what you ask of them.

Output is a little odd. I think that might be because the dictionaries are intended for a graphical tool, not strict text.

I don’t see any options within sdcv to strip out that coding, so I’m going to enlist the services of dehtml … and that’s what you see above. It’s not perfect, but it’s more readable than as it appears raw.

Of course, the alternative to that is to pipe sdcv’s output into a file, and use a browser to open it.


Either way, there may be some added steps to viewing a definition.

On the other hand, you do have the pick of several dictionaries, cross-language or otherwise, and they’re stored locally. And being the clever young hacker that you are, I’m sure you’ll find a way to build your own dictionaries too.

So to recap … dict for online dictionary access in clean plain text, or sdcv for custom dictionaries stored locally and subject to your scrutiny. You can choose which you like. Or … why not both? :mrgreen: