TJ-2
{{Infobox software
| name = TJ-2
| logo =
| screenshot = TJ-2 memo from p2.jpg
| screenshot alt = Part of Samson's typewritten memo describing TJ-2
| caption = Memo: TJ-2: Type Justifying Program
| author = Peter Samson
| developer =
| released = {{Start date and age|1963|05}}
| latest release version =
| latest release date =
| latest preview version =
| latest preview date =
| operating system =
| platform = PDP-1
| language =
| genre = Page layout
| license =
| website = [http://www.computerhistory.org/pdp-1/ PDP-1 Restoration Project]
}}
TJ-2 (Type Justifying Program) was published by Peter Samson in May 1963 and is thought to be the first page layout program. Although it lacks page numbering, page headers and footers, TJ-2 is the first word processor to provide a number of essential typographic alignment and automatic typesetting features:
- Columnation, indentation, margins, justification, and centering
- Word wrap, page breaks and automatic hyphenation
- Tab stop simulation
Developed from two earlier Samson programs, Justify{{cite web | title=Phil's PDP10 Miscellany Page | author=Budne, Phil | date=n.d. | url=http://www.ultimate.com/phil/pdp10/ | accessdate=2006-07-01}} and TJ-1,{{cite journal | author=Furuta, Richard | title=Important papers in the history of document preparation systems: basic sources | journal=Electronic Publishing |volume=5 | date=March 1992 | pages=29}} TJ-2 was written for the PDP-1 that was donated to the Massachusetts Institute of Technology in 1961 by Digital Equipment Corporation.
Taking English text as input, TJ-2 aligns left and right margins, justifying the output using white space and word hyphenation. Text is marked-up with single lowercase characters combined with the PDP-1's overline character, carriage returns, and internal concise codes. The computer's six toggle switches control the input and output devices, enable and disable hyphenation and stop the session. Words can be hyphenated with a light pen on the computer's CRT display and from the session's dictionary in memory. On-screen hyphenation has SAVE and FORGET commands and OOPS, the undo.
Comments in the code were quoted thirty years later: "The ways of God are just and can be justified to man"An allusion to or quotation of the lines from the opening invocation of Milton's Paradise Lost, "What in me is dark
Illumine/what is low raise and support;/That to the highth of this great Argument/I may assert th' Eternal Providence, And justifie the wayes of God to men."[http://www.gutenberg.org/dirs/etext91/plboss10.txt] and "Girls who wear pants should be sure that the end justifies the jeans."{{cite newsgroup | title=Re: world's worst comment | author=Smith, Daniel P. B. | newsgroup=alt.folklore.computers |message-id=C226CC.BEL@world.std.com | date=February 7, 1993 | url=https://groups.google.com/forum/#!msg/alt.folklore.computers/_dptxnHP_-s/vbf88JMJFxkJ | accessdate=December 5, 2014}}
TJ-2 was succeeded by TYPSET and RUNOFF, a pair of complementary programs written in 1964 for the CTSS operating system.{{cite web | author=Saltzer, J. | title=CTSS Programmer's Guide | date=15 December 1966 | url=http://web.mit.edu/Saltzer/www/publications/AH.9.01.html | accessdate=2006-07-02 | author-link=Jerome H. Saltzer}} TYPSET and RUNOFF soon evolved into runoff for Multics, which was in turn ported to Unix in the 1970s as roff.{{cite newsgroup | title=WP timeline (Was: Electic [sic] Pencil) | author=Barger, Jorn | author-link=Jorn Barger | newsgroup=alt.folklore.computers |message-id=1da5eho.ygau281evkm05N@jorn.pr.mcs.net | date=5 June 1998 | url=https://groups.google.com/forum/#!msg/alt.folklore.computers/85IaL4BWohI/McjZdwRuZzkJ | accessdate=December 5, 2014}}
{{anchor|TJ6}}A similar program for the ITS PDP-6 and later the PDP-10 was TJ6.R. Greenblatt, B.K.P. Horn, L.J. Krakauer, "The Text-Justifier TJ6", M.I.T. Project MAC Artificial Intelligence Laboratory, [http://people.csail.mit.edu/bkph/AIM/AIM-164A.pdf Memo 164A], June 1970
See also
Notes
{{Reflist}}
References
- {{cite web | author=Smith, Daniel P. B. | title=TJ-2: A Very Early Word Processor | year=1997 | url=http://www.dpbsmith.com/tj2.html | accessdate=2006-07-02}} Transcription of the 1963 memo describing TJ-2, with annotations by Daniel P. B. Smith
- {{cite video | people=Samson, Peter |date=2006 | title=The Mouse That Roared: PDP-1 Celebration Event Lecture 05.15.06 | url=https://www.youtube.com/watch?v=J8zU8WQO-PY | location=Mountain View, CA, USA | publisher=Computer History Museum | accessdate=2023-05-27}}. Samson begins at 1:16:45.
{{Word processors}}
{{DEFAULTSORT:Tj-2}}