new-words
view en.sh @ 26:4a10c0f4510c
apostrophe support, some improvements in speed, two and three words combination support
author | Igor Chubin <igor@chub.in> |
---|---|
date | Fri May 21 01:02:21 2010 +0300 (2010-05-21) |
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 "$*"