local changes by GvN:

* bug in BackEnd.java: 'dir' for %D sometimes not set --> set it to './'
* added new resource: 'thistle.diagramspec' which is the name of the
  diagram spec file.
* conversion to script: quick hack to replace " inside strings by '   
* SaveAndClose menu-item added to file-menu (required to declare certain
  methods as boolean rather than void, since I don't want to close the
  application if saving somehow failed).
* popup menu: depends on type of node (Continuation and Edits are treated
  differently from others)
* Additional popup menu, if 3rd mouse button is pressed on the canvas.
* Ldplayer: no confirmation dialogue (depends on thistlerc resources)
* repaired bug in thistle2script (output not closed)
* repaired bug in thistle2script (set up dummy frame in order to be
  able to produce size information, for use in html page containing applet)
* a resource in thistle2script to determine whether indeed this size info
  is displayed or not
* if you're editing in text field, then changing focus will have same
  effect as hitting <enter>
* in simple intput menus, hitting <enter> is the same as pressing the OK button
* commented out 'start' line in generated scripts, since ldplayer complains
  about it
* set minimum size of editor (perhaps this should be resource..)
* changed default pointsize to 12

===============================================================================
1.0 to 1.1

Fixed drawing of top level elements (so that not just the first
non-repeating element is drawn).

SGML Altered generated DTDs and files so that that diagram types
without variable subparts correspond to tags with empty content and no
end tags.

1.1 to 1.2alpha

User-visible changes
--------------------

SGML altered generated DTDs to correct misanalysis of repeating
types.  The Kleene * operator was associated with the variable tag
rather than with the types of subdiagrams.  Also to make all elements
optional, to harmonize with Java view of SGML

Added options `invert' and `align_leaves' to tree.

Fixed tracking of directory of stored files.  

New classes LDPlayer and Player introduced.  

Arguments or parameters stating the dimensions of displays are now
interpreted as fixing the size of the overall window.  

Scroll bars now have sensible increments.  

New graphic primitive: dendro

Non-user visible changes  
------------------------

Rationalized treatment of configuration on start up. 

New classes ScriptServer, FileEvent and SLoad for concurrent script reading. 

New class PlayerControls.


1.2 beta

Fixed multiple updating problem on scrolling (but this may still be
an issue under Java 1.1.2). 

Added file information to title.

Ill-formed PostScript was being created (\ in strings was not being
escaped).  In any case, this module is replaced in 1.1.2 and later
versions of Java.

Cursors are now sometimes informative, particularly on start up and
loading files.  

The size of array elements is computed correctly. 

Back end programs may now be run. (New internal classes InputBox and
BackEnd). 

We can now distinguish between text elements consisting just of "?"
and uninstantiated text elements.  

Edits to text fields now result in the Save option being activated. 

Any diagram element may be folded away, with new commands "Fold
selection", "Fold all" and "Unfold all".  (New internal class "Folded").

An "Insert" option has been added. 

Existing files are now backed up.  Editing sessions are now
checkpointed. 

Bold added as a text primitive. 

New graphical primitive fraction/3.  

A "close" instruction delivered by the window manager is now handled
in exactly the same way as if delivered from a menu selection. 

A request to instantiate a diagram with its current type is now
(correctly) treated as a no-op.  

A better diagnostic is issued when a class file is not locatable. 


On hiding ..., delimiters surrounding empty hboxes are set
too low. 

The editor no longer gets confused about the state of hiding on start
up. There is a new option (for thistle) "-startHidden".  
  
New graphic primitive cbox/2 (for cooper box). 

The state of hiding ... is now correctly tracked on start up by the
standalone program and on creating an editor from a web page. 

1.2 to 1.4

Minor bug fixes.

1.4 to 1.5

SPECSPATHS is now by default ".:/:${THISTLE_HOME}/Specs".

where THISTLE_HOME is the directory in which Thistle is installed, in
other words, look first in the current directory, then in any absolute
directory (so don't put any spec files  in /!) and then in the system
directory.  (In other words, the behaviour is now as it should always
have been.) 


sh (rather than ksh) is now used as the top level script.  This has
entailed some minor changes to the UNIX installation routine.

The characters & " ' < > are now stored in SGML and script files as
the corresponding SGML entities.  (i.e. amp, dquot, apos, lt, gt,
resp.)  Generated DTDs define these entities as per the XML standard.

Highlighting no longer persists incorrectly in the following
situations: under show/hide ...; on loading a new diagram; on folding
a diagram with a selected element; in PostScript output.

Trees are now drawn better when a node has no daughters, as are
brackets surrounding empty boxes.  The typography of nodes has changed
a little.  In some cases

(e.g. http://www.ltg.ed.ac.uk/software/thistle/demos/example_hpsg1.html) 

sisters which ideally ought to be baseline aligned aren't.  

There is now some tutorial material.

A new demonstration class `btree' for binary trees has been added, as
has an implementation of the PATR-II style system used in Shieber's
"Introduction to Unification-Based Approaches to Grammar".  Some of
Dowty, Wall and Peters has also been implemented together with a
number of other diagram classes that are used in the tutorial.

The mother's flashes in dendrograms don't appear when hiding ...

There is a beta integration of regular expression constraints on text
content.

Scripts are now generated correctly. Attention is paid to whether
continuations are enabled (at least at the topmost level of the
diagram).

Additions and minor corrections to documentation.  

1.5 to 1.6

Ellipse added as an option to box().  The fact that bounding boxes
rather than arbitrary polygons are used shows up quite clearly here.  

Point size can now be specified on the command line and altered
interactively (not ldplayer). 

Treatment of backslash in generated PostScript files is now correct. 

Bounding boxes in generated PostScript files are now much more
accurate.

Script files now contain header information to assist Web
publication. 

thistle2eps and thistle2script programs introduced. 

New shapes introduced, trapezoid and roundrect.  New options for
controlling aspects of tree layout and branch style. 

Some non-visible changes in anticipation of URLs.  (See below.)

pause() now detected (and ignored) by thistle

Searching functionality added. 

Command line arguments are now tested slightly more rigorously and
error messages should be a little more helpful.  The setting of the
SPECSPATH variable is also printed. 

host and resource added as parameters to the applet, which jointly
allow the remote generation of web pages for display via the
Applet-hosting browser.  See the demo pages for examples.

All derived applet windows (editor windows in particular) are closed
when the user leaves a page hosting one or more of them.

gsearch.spec diagram class introduced. 

Additions and minor corrections to documentation.  

1.6 to 1.7beta
----------

- User visible changes

There is now undo/redo.   The implementation of this is *extremely*
naive and may well be unworkable when diagrams are large. 

There is now a `tie' option to tree, which places a curve between the
midpoints of the extreme daughters in a tree.  A further option allows
arcs to appear as branches.  There are incompatibilities between some
of these and existing options.  Consult the reference documentation
for details. 

Calculation of size and locations in ArrayElement corrected.  

In-place menus of types now reduce the need for mouse warping by the
user.

Some persistent parameters can be recorded in a .thistlerc file.  These
includes aspects of user interaction, behaviour of some operations,
configuring external programs. 

There is now a `step mode', which can interact with an external
program to process diagram content and reload.  

A variety of structure and content sensitive operations have been
introduced, i.e. promote, demote in structure, and splitting and
joining of strings. 

Large braces are now drawn (rather than having angle brackets
substituted; yes, we're still waiting for reliable Unicode ...)

Problems with duplicate continuation points arising as the result of
insert operations are mostly fixed.  

The state of hiding ... is preserved across loading of files.

Script files are now autodetected when supplied either via the
command line or via the Open dialogue box.

ldplayer now allows one to mark a diagram and return to it directly.  

A sans serif font can now be requested. 

Dialog boxes are now rather better positioned. 

Font size is no longer a global property. 

Further moves towards full EPSF compliance. 

Misaligned flashes in dendrograms corrected.  

Limit on maximum length of text removed.  

- Less visible changes

Underlying windowing system updated to AWT1.1.  

Many minor problems/errors fixed.

Known problems requiring attention 1.6, 1.7
----------------------------------

- In Applets, scroll bars sometimes allow insufficient scrolling
(Java-version dependent) or fail to appear.


- In Applets, behaviour on stop() is rather too prejudicial.


- Scrolling in main thistle windows is unreliable.  

- Folding and undo/redo interact badly.  Folding information is
associated with a diagram and a particular undo/redo state.   

- Generated PostScript is incorrect if the origin of the diagram is
  not at the top left corner of the display.  

Changes 1.7 to 1.8a2
--------------------

(In fact these are aggregated changes from about 1.6)


The Application.java interface defined.  

New window now implemented. 

Scrolling is correct.  

thistle2eps was exiting with the wrong status. 

Selecting a diagram with a single possible instantiation no longer
brings up the type select menu. 

Many aspects of Thistle's behaviour can now be configured by a
resources file.  

Likely future changes 
---------------------

These are in addition to things listed as problems in the reference
documentation.

`Yoking of diagrams' (so that the `same' diagram appears in more than
one location).

It should be possible to point a browser (either externally, or the
one hosting thistle as an applet) at a URL.  Whether the URL is an
explicit part of a diagram (in which case the option of hiding it away
has to exist) or whether it should be handled by other means (i.e. as
part of a graphic but with no contribution to the diagram) (or both)
needs resolution. 

There should be the option to run the back end program without
performing a save. 

Dialog boxes differ in their behaviour when RETURN is
pressed. Behaviour should be made uniform.  

Some pruning of redundant and duplicate code is required. 

Dendro and Tree should be merged to form a single class, with options
to control the details of layout.   

`host' as an applet parameter is redundant, given the Applet security
model, and should be removed.

daughter should be introduced as a graphical primitive to allow branch
style (dashed or otherwise, but *not* options which would affect the
route of the branch) to be specified per daughter. 

There should probably be a `create graphic' option (or a preview
should be included with the generated PostScript).   This will (most
likely) wait until a port to Java 1.2, as Sun's version of 1.2 should
support JPEG encoding.

The SGML side of things should be redone within XML.  Unicode should
be allowed.

Highlighting should probably be changed to something like a moving
dashed line.  Multiple selections (or perhaps multiple marks) should
be allowed.  

There should be a colour model.

There should be a `disappear' option for almost all graphical
primitives which indicates that the relevant graphic has no effect on
the display if none of its subparts are instantiated.   (This makes
sense overall, and also allows the DTD to be more specific about which
items must be present in a diagram.) 

We need a kill ring

It would be good to have a `library' a la Xfig.  

Diagrams should be `lockable' in that subparts can be made unmodifiable.



Required functionality
----------------------

See also ** above


To complete release 1.7.

PostScript generation Solaris, JDK1.1+
Allow printing via AWT Toolkit.

Review applications.  Documentation of BasicApplication.  
Verify standard Thistle functionality of BasicApplication

Change TFrame so that it subclasses Panel rather than Frame.  

Fix problem with Applets not restarting after LDFrame opened.

Complete move of editor functionality from Control Panel to LDFrame

?Rename LDFrame -> Editor

XML?

Baseline align?

tidy examples and specs (some use caps in symbols), this may be the
reason why makedoctype fails.



