new-words

view en.sh @ 57:04b0280aa883

new-words.py install by default; new-words.sh is now legacy script
author Igor Chubin <igor@chub.in>
date Thu Nov 03 16:03:49 2011 +0100 (2011-11-03)
parents 07d89c2505e7
children 0799785cf194
line source
1 #!/bin/sh
3 DICTD_SERVER="dictd.xdsl.by"
4 DICTD_SERVER_ARGS="-h $DICTD_SERVER"
5 DICT_NAME=mueller24
8 _dict()
9 {
10 case $myname in
11 "de") DICT_NAME=deu-eng ;
12 DICTD_SERVER_ARGS=''
13 #dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
14 sdcv -n "$@"
15 ;;
16 "pl") DICT_NAME=slovnyk_pl-ru
17 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
18 ;;
19 "ru") DICT_NAME=ozhshv
20 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
21 ;;
22 "uk")
23 slovnyk "$1"
24 ;;
25 "io")
26 vortaro "$1"
27 ;;
28 esac
29 }
31 (
32 myname="`echo $0 | sed s@.*/@@`"
33 _dict "$@"
34 if [ -e "$ORIGINAL_TEXT" ]
35 then
36 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
37 grep-sentences "$*" "$ORIGINAL_TEXT"
38 fi
39 )
40 # | less -p "$*"