#!/bin/csh

# General purpose tool to create a basic BPF file with rudiment header
# and ORT tier.

# F. Schiel 04.12.2008

# The script reads the orthography from stdin,  and writes a
# rudiment BPF header and the ORT tier to stdout


if ( $1 == "-h" || $1 == "--help" ) then 
  echo "usage: cat <sentence> | create_ort > <BPF file>"
  exit 1
endif

cat <<END
LHD: Partitur 1.3
LBD:
END

set count = 0
foreach word ( $< ) 
  printf "ORT:\t%d\t%s\n" $count "$word" 
  @ count ++
end  

exit 0
