new-words
view en.sh @ 38:adbc809d3924
Transition to Python started
new-words-py.sh is a wrapper around
new-words.py version which is not finished yet.
new-words-py.sh is a wrapper around
new-words.py version which is not finished yet.
author | Igor Chubin <igor@chub.in> |
---|---|
date | Sat Jan 22 23:42:31 2011 +0100 (2011-01-22) |
parents | 07d89c2505e7 |
children | 0799785cf194 |
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 "de") DICT_NAME=deu-eng ;
12 DICTD_SERVER_ARGS=''
13 #dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
14 sdcv -n "$@"
15 ;;
16 "pl") DICT_NAME=slovnyk_pl-ru
17 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
18 ;;
19 "ru") DICT_NAME=ozhshv
20 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
21 ;;
22 "uk")
23 slovnyk "$1"
24 ;;
25 "io")
26 vortaro "$1"
27 ;;
28 esac
29 }
31 (
32 myname="`echo $0 | sed s@.*/@@`"
33 _dict "$@"
34 if [ -e "$ORIGINAL_TEXT" ]
35 then
36 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
37 grep-sentences "$*" "$ORIGINAL_TEXT"
38 fi
39 )
40 # | less -p "$*"