new-words

diff en.sh @ 26:4a10c0f4510c

apostrophe support, some improvements in speed, two and three words combination support
author Igor Chubin <igor@chub.in>
date Fri May 21 01:02:21 2010 +0300 (2010-05-21)
parents 9345cc05fdd1
children c631833fa2be
line diff
     1.1 --- a/en.sh	Tue Mar 09 11:57:55 2010 +0200
     1.2 +++ b/en.sh	Fri May 21 01:02:21 2010 +0300
     1.3 @@ -1,7 +1,19 @@
     1.4  #!/bin/sh
     1.5  
     1.6 +DICTD_SERVER="dictd.xdsl.by"
     1.7 +DICTD_SERVER_ARGS="-h $DICTD_SERVER"
     1.8 +DICT_NAME=mueller24
     1.9 +
    1.10 +
    1.11 +myname="`echo $0 | sed s@.*/@@`"
    1.12 +case $myname in
    1.13 +  "de") DICT_NAME=deu-eng ; DICTD_SERVER_ARGS='' ;;
    1.14 +  "pl") DICT_NAME=slovnyk_pl-ru ;;
    1.15 +  "ru") DICT_NAME=ozhshv ;;
    1.16 +esac
    1.17 +
    1.18  (
    1.19 -    dict -h dictd.xdsl.by -d mueller24 "$@"
    1.20 +    dict $DICTD_SERVER_ARGS -d "$DICT_NAME" "$@"
    1.21      if [ -e "$ORIGINAL_TEXT" ]
    1.22      then
    1.23          echo . . . . . . . . . . . . . . . . . . . . . . . . . ; echo