xref: /plan9-contrib/sys/src/cmd/troff/README (revision 219b2ee8daee37f4aad58d63f21287faa8e4ffdc)
1To make troff (actually a.out):
2
3	make
4
5You will also need to write a driver for your favorite output device.
6d202.c provides a model, although it is specialized to a machine no
7one has.  There are also a variety of postscript drivers that are the
8best thing to use if you have a postscript device.
9
10You will also have to make a DESC file for your typesetter and some
11font description files; see dev202 for examples.  These describe the
12named characters, widths, kerning information, and output codes.
13
14Nroff is the same program as troff, so you should
15
16	cp a.out /usr/bin/troff
17	ln /usr/bin/troff /usr/bin/nroff
18
19or the equivalent.
20
21You will also need terminal description files for your terminals; see
22tab.37, tab.450 and tab.lp for examples.
23
24Troff uses files that are normally stored in /usr/lib/font;
25macro packages are in /usr/lib/tmac; and nroff tables are in
26/usr/lib/term.  You can edit tdef.h to change these assumptions.
27
28There have been a few features since the last version, and a number of
29significant internal changes.  Not all are improvements, of course.
30Most of the more recent changes, including bug fixes, are in FIXES,
31which you should read also.
32