new-words
view en.sh @ 43:d532e7b52ab2
-s key support in new-words.py
Now new-words-py.sh -s works in the same way as new-words.sh.
(WPS and UWPS fields are not calculated correctly yet).
Now new-words-py.sh -s works in the same way as new-words.sh.
(WPS and UWPS fields are not calculated correctly yet).
author | Igor Chubin <igor@chub.in> |
---|---|
date | Fri Jan 28 12:40:58 2011 +0200 (2011-01-28) |
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 "$*"