new-words

view en.sh @ 23:4b9d13c78de2

minifix; chars in vim iskeyword
author Igor Chubin <igor@chub.in>
date Sun May 16 22:16:31 2010 +0300 (2010-05-16)
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 "$*"