new-words
view en.sh @ 67:87bb1c5e6616
added de script to misc/
author | Igor Chubin <igor@chub.in> |
---|---|
date | Wed Mar 28 15:54:30 2012 +0200 (2012-03-28) |
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 "$*"