@device (lptln)
@make (article)
@begin(titlepage)
@begin(titlebox)
@majorheading(Foundation Writing System)
@heading(A User's Eye View)
@end(titlebox)
@copyrightnotice(William D. Cattey)
@begin(ResearchCredit)
This document is a working draft for work done for the Athena Writing
Project. This draft was created on @value(date).
@end(ResearchCredit)
@end(titlepage)

@prefacesection(ABSTRACT)

@b(Foundation) is an integrated Composition System, consisting of a
set of applications for the teaching of writing, and the tools to
support their development and efficient operation.  The applications
will use the interactive screen management facilities of the Athena
workstations.  Applications will be able to work together by sharing
blocks of data in well coordinated, but unrestricted ways.
@b(Foundation) will be used by students and other writers in
conjunction with the Writing Center, and for independent study.
Additionally, the @b(Foundation) system will provide the basis for
tutorial aids for writing and non-writing courses.  Applications will
be usable as mere tools, as parts of step-by-step tutorials on
composition, or as parts of writing curricula developed by writing
teachers.  @b(Foundation) is intended to be the basis upon which many
cooperating writing tools may be built.

@newpage
@section(APPLICATIONS)

The intent of @b(Foundation) is to facilitate the development and use
of writing tools.  The writing tools will be developed by programmers
in collaboration with writing instructors.  New tools should easily
interface with existing ones through the use of low-level libraries
within @b(Foundation).  To provide a useful composition system and
examples of integrated tools, the following example applications are
being developed as part of the first version of the complete
@b(Foundation) system:

@begin(itemize)

A tutorial package to assist students in the initial
stages of composition.

A "doodler" for the entry and organization of preliminary ideas and
notes.

An outliner that keys an outline to associated text and permits
rapid reorganization of documents.

A WYSIWYG (What You See Is What You Get) text editor and simple
document formatter.

Routines to permit annotation of documents, and creation of alternate
versions of a document.

Special memory management, and data propagation routines to support
multiple applications accessing shared data blocks.

@end(itemize)

Readers of this document familiar with the software package @b(HBJ
Writer) (or other existing packages of writing tools) may see a
similarity between the initially named functions of @b(Foundation) and
the functions provided by @b(HBJ Writer).  The similarity in
specification is because these functions have been established by many
writers, and teachers as being useful.  @b(Foundation) goes further by
providing an @i(open system).  It is expected that there will be a
whole class of @b(Foundation) users who will themselves be developers.
An open system provides the ability to add new applications to the
system through further development.

The @b(Foundation) system is designed to permit a close cooperation
between all applications regardless of when they were developed, or
what developer installed them.  Not only should it be possible to add
an application and call it from inside the @b(Foundation) command set,
it should be possible to connect new applications to shared data
structures of other applications and permit functional cooperation.
For example, a developer could add a fancy new spelling checker, which
would have access to the text internal to the editor or the outliner.
The spelling checker could run and correct errors on the contents of
the text editor's buffer.  The library support routines would
guarantee that the editor would be able to make use of those changes.

@subsection(Application Software Design Objectives)

The primary objectives of the software under development are as
follows:

@begin (itemize)

To provide application software of immediate use in the teaching of
writing and for assisting students using the facilities of the Writing
Center.  The development of applications is viewed as an iterative
process in which feedback from the faculty and the staff of the
Writing Center and the Writing Program is used to revise existing
applications and to develop new ones.  A goal of application
development is to produce software that can easily be tailored to meet
the requirements of a particular curriculum.

To provide a library of routines and programs which will be useable by
application developers, for the purpose of speeding implementation.
This library will utilize available UNIX libraries in C for file,
window, display, and text manipulation.  It is expected that new low
level libraries will become available over time from a variety of
sources.  A goal of the @b(Foundation) library is to make it easy to
integrate these new libraries and make their new functionality
available to the higer level libraries and applications.

To develop useful text manipulation functions that are not available
anywhere else, such as propagation of changes in shared data among
cooperating applications.  

To adopt or specify general data structures which will provide a
framework for the evolution of the applications and library.  These
data structures will specify the interfaces between the various
functional routines, and will provide some continuity in a system that
is expected to constantly evolve.  As new applications suggest
themselves, and as the library is used, routines will be improved or
replaced.  As new functions are called for, library routines are
expected to change to become more general.

To provide a forum in which to explore the process of bringing
together the power of the computer and the activity of writing and
teaching writing.  The newest software innovations in user interfaces,
and in text, graphic, and other types of data manipulation will be
experimented with and may be integrated into new and useful tools.

@end (itemize)

@subsection(Tutorial Package)

The Tutorial Package will provide a variety of functions for the step
by step guidance of students using process-oriented techniques.  Two
major areas will be addressed initially, brainstorming and writer's
block.  The brainstorming routines will include exercises in invisible
writing, organizing and looping. Invisible writing asks the student to
write rapidly, sometimes without visual feedback ("invisible
writing"), to encourage him or her to get ideas down without premature
editing.  Organizing asks the student to select topics from material
the student has written and then assists in organizing the document
based on those topics.  Looping directs the student in invisible
writing followed by organizing followed by more invisible writing
based on topics found in organizing.  Repeated loops should move the
student well towards an initial draft of a paper.

The Writer's Block software asks the student to do directed writing
exercises to identify underlying confusion about the task and find
areas that need working on to increase confidence. For instance, one
branch helps a student to determine his or her objectives and
expectations in the writing of a paper using as feedback the student's
own critique of a typically well-written or poorly written paper.

All of the tutorial software will be written in a modular fashion to
permit various combinations of modules to be put together to match the
requirements of a particular writing course or program.  A Tutorial
Controller within @b(Foundation) is planned in the future to evaluate
a student's requirements and call up the appropriate tutorial
programs.  Other applications, such as the Outliner, will be
accessible when running the tutorial software, and the Tutoring module
will be able to examine the input and direct the use of these
applications.

@subsection("Doodler")

The Doodler makes a portion of the screen a window onto a virtual
piece of paper of infinite size.  On this piece of paper, the user
puts down boxes and fills the boxes with text.  The user can connect
the boxes together with lines in an arbitrary configuration.  The
boxes can be moved, resized, and gathered into groups for manipulation
as one unit.  Various ways of organizing the relationships between the
boxes will be available.  In the Doodler, the user jots down ideas and
then moves them around until they fit together in what seems a
sensible organization.  Then the contents of the paper will be
converted into a hierarchical outline for the Outliner.  This tool is
most useful for putting down a lot of ideas and playing with them,
much like  the doodles engineers do on scrap paper while at work and
on napkins while in restaurants.

A doodle as composed under the Doodler might look something like
figure @ref(doodler).  The diagram shows some doodles of someone
working on a paper on @i(The Popular Narrative).

@begin(fullpagefigure)
@caption(Doodle for a paper on @i[The Popular Narrative])
@tag(doodler)
@end(fullpagefigure)

@subsection(Outliner)

The Outliner will permit a user to create an outline and an associated
document.  Each section of the document will be associated with a
particular topic in the outline.  If outline topics are rearranged,
the associated text in the document will be rearranged as well.  This
is a novel approach to "the cut and paste problem" reported by writing
teachers.  The tool is most helpful in situations where the document
is poorly organized and needs to be "cut up" and "pasted back
together" with a different internal order.

Two formats for the outline presentation are planned: a standard
linear outline with numbered lines of text and subtopics indented and
marked with numbered sublevels (e.g., 1, 1.1, 1.1.1 etc.), and a
graphic tree display, sometimes called a @i(broken glass outline) as
shown in figure @ref(broken_glass).  The figure shows how a broken
glass outline on @i(The Popular Narrative) might have been constructed
from a subset of the doodles made on the same topic.

@begin(figure)
@blankspace(4 inches)
@caption(Broken Glass outline for @i[The Popular Narrative])
@tag(broken_glass)
@end(figure) 

@subsection(Editor / Formatter)

The functionality of the "What you see is what you get" (WYSIWYG)
combined editor/formatter systems is becoming progressively easier to
provide.  It would be nice to have quality page composition for
authors untrained in typesetting.  Xerox PARC introduced these ideas
with @b(Bravo).  The MIT @b(Etude) project demonstrated many good
ideas.  The @b(Interleaf Office Publishing System) provides a great
deal of functionality.  Macintosh MacWrite from Apple provides an
interesting approach.  The CMU @b(Andrew) system contains a low level
base editor and some high level production tools.  Interleaf suffers
from being a closed system.  It does well at the task of publishing a
document in the office environment, but a new developer cannot add
tutorial or other composition tools.  Although Andrew is an open
system, it is not designed primarily to have intimate cooperation
between writing tool applications.  It currently provides no
propagation mechanism for reporting changes in a shared data block
common to a group of applications.  The propagator is the cornerstone
of @b(Foundation).

Following the examples of @b(MacWrite) and @b(Etude), the user
interface will provide a simple, pragmatic set of editing and
formatting commands that can be easily learned and applied.  The
research put into the @b(Andrew Baseline Editor) will be applied in
making the system modular, and efficient.  The @b(Foundation) data
structures, data propagation and scheduling mechanisms, and
input/output interfaces will enable powerful functions, rich
interconnection with other tools, and a variety of possible approaches
to user interfaces.

One promising approach is that taken by @b(Etude) where a command is
given by keyword verb followed by modifiers and ultimately a noun
naming a particular type of region in the document.  A different one
would be to specify the region and then the operation.  The issues of
when to ask "Are you sure you want to do this?" and how to permit
partial commands to be aborted figure prominently in the command set
user interface.  Redisplay and popping up of messages or new
application displays will have to carefully minimize distractions.

Some important design ideas have surfaced:

@begin(itemize)

Reformatting on screen can be distracting to some people, so the
immediate reformatting feature should be able to be turned off.

If special care is taken to limit the scope of changes, the time spent
waiting for formatting or other operations is minimized.

The binding of page numbers and sectioning tags may not occur on
screen because these operations are expensive, but the Region data
abstraction (described later) may make these operations cheap enough.

The screen output can be made arbitrarily close to the printed output,
but there will always be a point of diminishing returns in such work.
The real goal is to come up with an approximation that runs fast
enough and is accurate enough to keep the users happy.

Postscript @foot(Registered Trademark of Adobe Systems Inc.) may make
output formatting to the printer easier by providing a standard,
printer independent output format.  

Using the X window system makes multi-font capability inexpensive
enough to do.

The Region data abstraction (see section @ref(region_section))
supports the notion of cutting up a document into cooperating pieces.
This permits display of complicated conglomerations of text, graphics,
and program output as a pasteup of windows into Regions of a
complicated multi-media document.

@end(itemize)

@subsection(Parallel Versions)

The Parallel Versions Handler will permit alternate versions of the
same document (or subsets of the document) to be present and
selectable.  The same utilities that support Parallel Versions will
support the Annotator which will let a student or teacher create one
or more sets of notes or commentary pointing to various items in an
existing document.

The problem of creating and accessing sections of a document that can
just drop into place, substituting for other sections becomes much
easier through the Region data abstraction.  Each section to be
substituted becomes accessible as its own Region accessed by the
Parallel Versions Handler.  At any moment in time, the main document
will share text with one of the substitutable regions.  To replace one
section with another, the Parallel Versions Handler simply tells the
editor to cut all the sections that were in the old Region, and paste
in the sections that are in the new Region.  Naturally, both sections
would remain accessible to the Parallel Versions Handler.

@subsection(New Tools)

An application development guide will document the whole system and
the goal of getting others involved in the development of tools and
curricula.  Possibilities include: a note card facility which would
provide a simple data base system in which note cards can be filed,
searched and retrieved.  A note card could point to text in an
existing document using @b(Foundation) data structures.  Another might
be a sophisticated style-checker that would be more intelligent than
existing versions (through its use of parsing developed in the Athena
Language Learning Project).  Such a tool would be based upon our
accumulating experience with writing requirement needs, and, ideally,
would be capable of individualization, so that students could have
their own "watchdogs" to spot their characteristic difficulties.

@subsection(Interaction Between Applications)

Applications will be designed to operate in conjunction with each
other wherever such interaction is meaningful.  Thus a student using
a tutorial program may create a body of text that is converted into
an outline and associated document.  The student will then be able
to use the Outline Package to modify the outline and document and
then produce a printed document using the formatter.

Consider a user starting to write a document from scratch.  In the
"doodler", the user would make notes in boxes on the screen,
connecting those boxes with appropriate lines to represent the
relationships between ideas.  The outliner could then be used to
organize this information into a more sequential form so a complete
outline results.  During and subsequent to this organization, blocks
of text corresponding to the outline topics are entered.  The text
editor would be available for modifying any of this material.  The
outliner would permit reorganization of the outline with automatic
reorganization of the associated text.  The text being revised could
be viewed in a form identical to final formatted paper output.  Then
marginal notes which would not appear in the document could be
associated with particular parts of the paper through the use of the
annotator.  If the user is frustrated or confused at any part of the
task, he or she could call on the tutor to provide free-writing
exercises, writer's block exercises, information on skills such as how
to construct an argument, or examples of successful or unsuccessful
papers.  Work done under the direction of the tutor would be
integrated as appropriate into the draft or outline-in-progress.

