new-words

view en.sh @ 25:d1eb7dc37feb

minifix: -p pages
author Igor Chubin <igor@chub.in>
date Mon May 17 14:48:34 2010 +0300 (2010-05-17)
parents 9345cc05fdd1
children c631833fa2be
line source
1 #!/bin/sh
3 DICTD_SERVER="dictd.xdsl.by"
4 DICTD_SERVER_ARGS="-h $DICTD_SERVER"
5 DICT_NAME=mueller24
8 myname="`echo $0 | sed s@.*/@@`"
9 case $myname in
10 "de") DICT_NAME=deu-eng ; DICTD_SERVER_ARGS='' ;;
11 "pl") DICT_NAME=slovnyk_pl-ru ;;
12 "ru") DICT_NAME=ozhshv ;;
13 esac
15 (
16 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
17 if [ -e "$ORIGINAL_TEXT" ]
18 then
19 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
20 grep-sentences "$*" "$ORIGINAL_TEXT"
21 fi
22 ) | less -p "$*"