#!/bin/sh # script to make comments on web page as annotations # argument is a filename (usually .ann) containing annotations # ... if argument is omitted "top" is assumed # # LAP means lifelong annotation prototype # version in bin links to this # # settings below help To-browser THISDIR=/home/pjbrown/annotation_experiments/guide_layers/web_experiment; export THISDIR GUIDEHELPROFF="YES" export GUIDEHELPROFF LAP_TFILE=t_all_lap; export LAP_TFILE # if test $# = 0; then FILE=$THISDIR/top.ann echo "$0: using default annotated HTML file (based on the google page)" else FILE="$1" shift if test $# -ne 0; then echo "$0: must have at most one argument" exit 1 fi fi $THISDIR/get_lower "$FILE" # retrieve annotated file from web if not already saved RESULT=$? if test $RESULT -ne 0; then if test $RESULT -ne 2; then exit 1 # get_lower has failed and given an error message fi echo It will be assumed that $FILE is a single-layer file, i.e. with the annotations embedded in the content fi # if there is no contexts library then create one in the current directory if test ! -r contexts.guide; then ln -s $THISDIR/contexts.guide . echo "a file called 'contexts.guide' has been created in this directory to define the contexts to be used" fi WEB_URL=`$THISDIR/extract_url $FILE`; export WEB_URL $THISDIR/../start -m $THISDIR/creation.menu -t $FILE