new-words
view en.sh @ 68:846240941452
added -C key: compress to lines; fixed bug with #90-line
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sun Sep 23 16:07:29 2012 +0300 (2012-09-23) |
parents | 48ca8248e9cc |
children |
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 "en") dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
12 ;;
13 "de") DICT_NAME=deu-eng ;
14 DICTD_SERVER_ARGS=''
15 #dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
16 sdcv -n "$@"
17 ;;
18 "pl") DICT_NAME=slovnyk_pl-ru
19 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
20 ;;
21 "ru") DICT_NAME=ozhshv
22 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
23 ;;
24 "uk")
25 slovnyk "$1"
26 ;;
27 "io")
28 vortaro "$1"
29 ;;
30 esac
31 }
33 (
34 myname="`echo $0 | sed s@.*/@@`"
35 _dict "$@"
36 if [ -e "$ORIGINAL_TEXT" ]
37 then
38 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
39 grep-sentences "$*" "$ORIGINAL_TEXT"
40 fi
41 )
42 #| less -p "$*"