Using SYNTEXT with costwish

Getting the programs

costwish is a Tcl/Tk program that functions as a SGML viewer with strong capacity to manipulate ("post process") a parsed SGML file. It can be obtained from its maker, Peter Murray-Rust, by clicking on the costwish Homepage. You will need the most recent version or patch. It is hoped that Tcl/Tk will be successfully ported to Windows and Macintosh, so that this program will run on those platforms. For now, however, it is an XWindow program and runs on most flavors of Unix, including Linux. Joe English is responsible for COST. costwish is not a browser, though in principle it can be a helper viewer for one, such as Netscape.

costwish consists of a binary (for your platform), a set of scripts, and some help documentation. It also requires the Tcl, Tk, and Tix libraries installed in findable places. A Linux binary can be downloaded here.

SYNTEXT requires a few customizing files for costwish (local.tcl, title.tcl, postproc.tcl). All of what you need is contained in the tar file syntext.tar.gz which should be untarred in the same directory that has the costwish subdirectory in it. costwish has several environment variables it wants set, and SYNTEXT has one additional one: export (aka setenv for csh) SYNTEXTDIR=/yourpath/syntext.

If you want to install sound, you will need to install a copy of rsynth and you may get fancy and want to install a lexicon for it. If so follow Nick Ing-Simmons' instructions in rsynth. If you want a sample to try out, here is an example of rsynth saying the example sentence from Pinker using the American lexicon and pronouncing the "t" trace: .

Starting it

Explicit and step-by-step:
  1. Make sure your costwishexe is on your path (or else in the costwish home directory); make sure also your SYNTEXTDIR variable has been set to the correct address.
  2. cd to the costwish home directory (e.g. /usr/local/lib/sgml/costwish)
  3. start costwishexe
  4. when the plain tclsh prompt appears, type in: source cw/cw.tcl; ignore the warning about the SGML declaration as costwish comes up.
  5. pull down the File menu, select "Load SGML+DTD"
  6. when file selector comes up, change to your syntext directory and select one of the sample SGML files located there.
  7. at this point the TOC view of the top nodes of your file should appear and the SYNTEXT button be added to the menu bar. Choose your mode of display and start clicking.

George L. Dillon
dillon@u.washington.edu
12 May 1996