Skip to content

Dushistov/sdcv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

203 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/Dushistov/sdcv/workflows/CI/badge.svg https://img.shields.io/badge/license-GPL%202-brightgreen.svg

sdcv

sdcv is a simple, cross-platform, text-based utility for working with dictionaries in StarDict format.

How to compile and install

mkdir /tmp/build-sdcv cd /tmp/build-sdcv cmake path/to/source/code/of/sdcv make

if you enable nls then you should also type

make lang

to install type

make install

you can use “DESTDIR” variable to change installation path

Documentation

See sdcv man page for usage description.

Bugs

To report bugs use https://github.com/Dushistov/sdcv/issues , if it is not possible you can report it via email to dushistov at mail dot ru. Be sure to include the word “sdcv” somewhere in the “Subject:” field.

Integration with fzf

Useful when you have multiple dictionaries

fzf --prompt="Dict: " \ --phony \ --bind "enter:reload(sdcv {q} -n --json | jq '.[].dict' -r)" \ --preview "sdcv {q} -en --use-dict={}" \ --preview-window=right:70%:wrap \ < <(echo)

Integration with readline

This lines can be added to inputrc file (~/.inputrc, /etc/inputrc), to abort multiply usage with ESC:

$if sdcv "\e\e": "-1\n" $endif 

Notes to developer

make source code release

make package_source

update translation

cd po xgettext -k_ ../src/*.cpp -o new.pot msgmerge -U sdcv.pot new.pot rm new.pot for i in `ls *.po`; do msgmerge -U $i sdcv.pot; done

Packages

 
 
 

Contributors