new-words
view en.sh @ 64:c3adf6452eda
lingvo-en-ru.pl script moved to misc/
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sat Nov 12 14:03:54 2011 +0100 (2011-11-12) |
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 "$*"