Along with writing programs, creating documents was one of the key
activities of the Stanford AI Lab: a
study
from 1970 reported that in
1969 the 64 staff produced 23 external documents, 28 AI memos and 15
SAILON operational notes during that year. (It then goes on to
facetiously extrapolate from the rate of the growth in the 1960s to
the year 2001 where it expected 158 million staff producing 29 billion
documents).
To support this need, and to use the XGP, several document production
tools were created at SAIL. These would all take a marked-up text file
as input and produce a .XGP file as output, which could be sent to
the printer via the XSPOOL command,
POX - Prototype Overlay
Xewrographics - was written by Robert Maas and was a simple language
specifically designed for the XGP. It has around 10 single letter
commands introduced by a backslash: for example the below will define
two fonts, set "Preface" in font 0 and use font 1 for the body, then
starts a paragraph with justified text.
\M0BAXL30;\M1NGR25
\F0Preface\F1
\JThis document will introduce the POX language...
It also had a simple register based programming facility similar to
TECO's called Q-registers, but no high level commands for producing
structured text. It was generally used for smaller documents like
letters. This can be run on WAITS via R POX which will prompt for an
input file.
Cover of the PUB manual. Source: saildart.org
PUB was a scriptable markup language, implemented in 1971 by Larry
Tesler from an idea by Les Earnest. This spread to other PDP-10 sites
where it was extended (support for the XGP printer was added by CMU,
for example). It had around 100 commands with an English like syntax
together with a built in programming language similar to SAIL. An
example from the manual to set up headers and footers with date and
page number, and to indent paragraphs by six spaces:
.EVERY HEADING(DAN MATION,PARACYBERNETIC PHENOMENA,{DATE})
.EVERY FOOTING(,{PAGE},)
.INDENT 6
Although it was powerful, it was quite slow, processing around 15
pages per minute. Many of the SAIL manuals, such as those for FAIL,
were produced using PUB. PUB is integrated into the RPG system so you
can type PUB filename.pub to start the program.
A section from the TeX manual about running it at SAIL. Source: saildart.org
The most famous text processing language to come out of Stanford was
TeX, by Donald Knuth. The first full version was written in the SAIL
language and made available in 1978. This produced output to an XGP
file rather than the DVI files used today. This was pre-METAFONT, so
Knuth created XGP font files to integrate with the SAIL printing
system.
As the disk images we have running today are from 1974, that means
that TeX is not available to run under simh at present. However, the
XGP emulator can render to PDF existing XGP files produced by TeX.