mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-11 08:10:21 +00:00
Was 50%:50% and by UX we do not need the half of the screen for the dictionary name.
- sdcv
- How to compile and install
- Documentation
- Bugs
- Integration with fzf
- Integration with readline
- Notes to developer
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
Description
Languages
C++
78.1%
CMake
16.8%
Shell
5.1%