new-words
view en.sh @ 33:720a701b2ba9
-S and -N keys
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sun Dec 12 10:04:06 2010 +0100 (2010-12-12) |
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 "$*"