new-words

annotate en.sh @ 44:7eb1a8c3eade

-2 and -3 are now supported by new-words.py
author Igor Chubin <igor@chub.in>
date Fri Jan 28 21:45:58 2011 +0100 (2011-01-28)
parents 07d89c2505e7
children 0799785cf194
rev   line source
igor@5 1 #!/bin/sh
igor@5 2
igor@22 3 DICTD_SERVER="dictd.xdsl.by"
igor@22 4 DICTD_SERVER_ARGS="-h $DICTD_SERVER"
igor@22 5 DICT_NAME=mueller24
igor@22 6
igor@22 7
igor@29 8 _dict()
igor@29 9 {
igor@22 10 case $myname in
igor@29 11 "de") DICT_NAME=deu-eng ;
igor@29 12 DICTD_SERVER_ARGS=''
igor@30 13 #dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
igor@30 14 sdcv -n "$@"
igor@29 15 ;;
igor@29 16 "pl") DICT_NAME=slovnyk_pl-ru
igor@29 17 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
igor@29 18 ;;
igor@29 19 "ru") DICT_NAME=ozhshv
igor@29 20 dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
igor@29 21 ;;
igor@29 22 "uk")
igor@29 23 slovnyk "$1"
igor@29 24 ;;
igor@31 25 "io")
igor@31 26 vortaro "$1"
igor@31 27 ;;
igor@22 28 esac
igor@29 29 }
igor@22 30
igor@5 31 (
igor@29 32 myname="`echo $0 | sed s@.*/@@`"
igor@29 33 _dict "$@"
igor@5 34 if [ -e "$ORIGINAL_TEXT" ]
igor@5 35 then
igor@5 36 echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo
igor@5 37 grep-sentences "$*" "$ORIGINAL_TEXT"
igor@5 38 fi
igor@29 39 )
igor@29 40 # | less -p "$*"