BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / groff-1.08 / NEWS
CommitLineData
fe0b4a4e
C
1This file describes recent user-visible changes in groff. Bug fixes
2are not described. There are more details in the man pages.
3
4VERSION 1.08
5============
6
7Troff
8-----
9
10The escape sequence \V[xxx] will interpolate the value of the
11environment variable xxx.
12
13Tbl
14---
15
16The decimalpoint option can be used to specify the character to be
17recognized as the decimal point character in place of the default
18period.
19
20VERSION 1.07
21============
22
23Groff
24-----
25
26The environment variable GROFF_COMMAND_PREFIX can be used to control
27whether groff looks for `gtroff' or `troff' (similarily for the
28preprocessors.)
29
30Troff
31-----
32
33Multilingual hyphenation is supported by new `hpf' and `hla' requests,
34and by a `\n[.hla]' number register. The -H option has been removed.
35Files of hyphenation patterns can have comments.
36
37When a font cannot be found, troff gives a warning (of type `font',
38enabled by default) instead of an error.
39
40There's a new request `trnt' that's like `tr' except that it doesn't
41apply to text transparently throughput into a diversion with \!.
42
43Tbl
44---
45
46There is a `nokeep' option which tells tbl not to use diversions to
47try to keep the table on one page.
48
49Eqn
50---
51
52Setting the parameter `nroff' to a non-zero value causes `ndefine' to
53behave like `define' and `tdefine' to be ignored. This is done by
54eqnrc when the current device is ascii or latin1. There's a `neqn'
55script that just does `eqn -Tascii'.
56
57Grotty
58------
59
60grotty uses whatever page length was specified using the `pl' request
61rather than using the paperlength command in the DESC file. The
62paperwidth command in the DESC file is also ignored.
63
64VERSION 1.06
65============
66
67The programs in groff that have Unix counterparts can now be installed
68without a leading `g' prefix. See the `g' variable in the Makefile.
69
70The g?nroff script simulates the nroff command using groff.
71
72New special characters \(+h, \(+f, \(+p, \(Fn, \(Bq, \(bq, \(aq, \(lz,
73\(an. See groff_char(7).
74
75^L is now a legal input character.
76
77Groff
78-----
79
80The Xps pseudo-device has disappeared. Instead there is a new -X
81option that tells groff to use gxditview instead of the usual
82postprocessor. (So instead of -TXps, use -XTps or just -X if your
83default device is ps.)
84
85The postprocessor to be used for a particular device is now specified
86by a `postpro' command in the DESC file rather than being compiled
87into groff. Similarily the command to be used for printing (with the
88-l option) is now specified by a `print' command in the DESC file.
89
90The groff command no longer specifies eqnchar as an input file for
91eqn. Instead eqn automatically loads a file `eqnrc'. The groff
92command no longer passes the -D option to eqn. Instead eqnrc sets the
93draw_lines parameter.
94
95The groff command no longer tells troff to load a device-specific
96macro file. This is handled instead by the `troffrc' file, which is
97always loaded by troff.
98
99The shell script version of groff has been removed.
100
101Troff
102-----
103
104The `rchar' request removes a character definition established with `char'.
105
106Compatibility mode is disabled and the escape character is set to `\'
107while a character definition is being processed.
108
109The `\#' escape sequence is like `\%' except that the terminating
110newline is ignored.
111
112The `shc' request tells troff which character to insert (instead of
113the default \(hy) when a word is hyphenated at a line break.
114
115A font name of 0 (zero) in the DESC file will cause no font to be
116mounted on the corresponding font position. This is useful for
117arranging that special fonts are mounted on positions on which users
118are not likely explicitly to mount fonts. All groff devices now avoid
119initially mounting fonts on positions 5-9.
120
121The `do' request allows a single request or macro to be interpreted
122with compatibility mode disabled.
123
124troff automatically loads a file `troffrc' before any other input file.
125This can be prevented with the -R option. This file is responsible
126for loading the device-specific macros.
127
128Pic
129---
130
131The -x option has been removed and a -n option has been added. By
132default, pic now assumes that the postprocessor supports groff
133extensions. The -n option tells pic to generate output that works
134with ditroff drivers. The -z option now applies only to TeX mode.
135
136The -p option has been removed. Instead if the -n option is not
137specified, pic generates output that uses \X'ps: ...' if the \n(0p
138register is non-zero and tmac.ps sets this register to 1.
139
140In places where you could 1st or 5th you can now say `i'th or `i+1'th
141(the quotes are required).
142
143Eqn
144---
145
146Eqn now automatically reads a file `eqnrc' from the macro directory.
147This performs the same role that the eqnchar files used to. This can
148be prevented by the -R option.
149
150Setting the draw_lines parameter to a non-zero value causes lines to
151be drawn using \D rather than \l. The -D option is now obsolete.
152
153`uparrow', `downarrow' and `updownarrow' can be used with `left' and
154`right'.
155
156The amount of extra space added before and after lines containing
157equations can be controlled using the `body_height' and `body_depth'
158parameters.
159
160Grops
161-----
162
163Font description files have been regenerated from newer AFM files.
164You can get access to the additional characters present in the text
165fonts in newer PostScript printers by using -mpsnew.
166
167The default value of the -b option is specified by a `broken' command
168in the DESC file.
169
170With the -g option, grops will generate PostScript code that guesses
171the page height. This allows documents to be printed on both letter
172(8.5x11) and A4 paper without change.
173
174Grodvi
175------
176
177ISO Latin-1 characters are available with -Tdvi. Format groff_char(7)
178with groff -Tdvi for more information.
179
180Grotty
181------
182
183The -mtty-char macros contain additional character definitions for
184use with grotty.
185
186Macros
187------
188
189In previous releases the groff -me macros treated the $r and $R number
190registers in a way that was incompatible with the BSD -me macros. The
191reason for this was that the approach used by the BSD -me macros does
192not work with low resolution devices such as -TX75 and -TX100.
193However, this caused problems with existing -me documents. In this
194release, the vertical spacing is controlled by the $v and $V registers
195which have the same meaning as $r and $R in earlier groff releases.
196In addition, if the $r or $R register is set to a value that would be
197correct for for the BSD -me macros and a low resolution device is not
198being used, then an appropriate value for the $v or $V register will
199be derived from the $r or $R register.
200
201The groff -me macros work with -C and (I think) with Unix troff.
202
203For backward compatibility with BSD -me, the \*{ and \*} strings are
204also available as \*[ and \*]. Of course, \*[ will only be useable
205with -C.
206
207The \*T string has been deleted. Use \*(Tm instead.
208
209Xditview
210--------
211
212The `n', Space and Return keys are bound to the Next Page action. The
213`p', BackSpace and Delete keys are bound to the Previous Page action.
214The `q' key is bound to the Quit action.
215
216The `r' key is bound to a rerasterize action that reruns groff, and
217redisplays the current page.
218
219VERSION 1.05
220============
221
222Pic
223---
224
225There is a alternative assignment operator `:=' which interacts
226differently with blocks.
227
228There is a new command `command', which allows the values of variables
229to be passed through to troff or TeX.
230
231The `print' command now accepts multiple arguments.
232
233String comparison expressions (using `==' or `!=') are allowed in more
234contexts.
235
236Grotty
237------
238
239Horizontal and vertical lines drawn with \D'l ...' will be rendered
240using -, | and + characters. This is intended to give reasonable
241results with boxed tables. It won't work well with pic.
242
243Macros
244------
245
246The -mdoc macros have been upgraded to the version in the second
247Berkeley networking release. This version is not completely
248compatible with earlier versions; the old version is still available
249as -mdoc.old. The grog script has been enhanced so that it can
250usually determine whether a document requires the old or new versions.
251
252With -TX75, -TX100 and -TXps, the PSPIC macro will produce a box
253around where the picture would appear with -Tps.
254
255VERSION 1.04
256============
257
258An implementation of the -mm macros is included.
259
260The directory in which temporary files are created can be controlled
261by setting the GROFF_TMPDIR or TMPDIR environment variables.
262
263Pic
264---
265
266Some MS-DOS support (see pic/make-dos-dist).
267
268Grops
269-----
270
271There are two new \X commands (\X'ps: invis' and \X'ps: endinvis')
272which make it possible to have substitute characters that are
273displayed when previewing with -TXps but ignored when printing with
274grops.
275
276Xditview
277--------
278
279Support for scalable fonts.
280
281VERSION 1.03
282============
283
284No changes other than bug fixes.
285
286VERSION 1.02
287============
288
289There is an implementation of refer and associated programs. groff -R
290preprocesses with grefer; no mechanism is provided for passing
291arguments to grefer because most grefer options have equivalent
292commands which can be included in the file. grog also supports refer.
293
294There is an alternative perl implementation of the grog script.
295
296The code field in lines in the charset section of font description
297files is now allowed to contain an arbitrary integer (previously it
298was required to lie between 0 and 255). Currently grops and grodvi
299use only the low order 8 bits of the value. Grodvi will use the
300complete value; however, this is unlikely to be useful with
301traditional TeX tools (.tfm files only allow 8 bit character codes.)
302
303Left and right double quotes can be obtained with \(lq and \(rq
304respectively.
305
306There is a new program called pfbtops which translates PostScript
307fonts in pfb format to ASCII.
308
309A slightly modified version of the Berkeley tmac.doc is included.
310
311Troff
312-----
313
314In long escape names the closing ] is now required to be at the same
315input level as the opening [.
316
317The \A'S' escape sequence returns 1 or 0 according as S is or is not
318suitable for use as a name.
319
320\~ produces an unbreakable space that can be stretched when the line
321is adjusted.
322
323The `mso' request is like the `so' request except that it searches for
324the file in the same directories in which tmac.X is searched for when
325the -mX option is given.
326
327The escape sequence `\R' is similar to the `nr' request.
328
329Eqn
330---
331
332A new `special' primitive allows you to add new types of unary
333constructs by writing a troff macro.
334
335Pic
336---
337
338The implementation no longer uses gperf.
339
340Grops
341-----
342
343The compile-time -DBROKEN_SPOOLER option has been replaced by a
344BROKEN_SPOOLER_FLAGS option. This allows more precise control over
345how grops should workaround broken spoolers and previewers. There is
346a new -b option that can change this at run-time.
347
348Grops now generates PostScript that complies with version 3.0 of the
349Document Structuring Convention.
350
351The resource management component of grops (the part that deals with
352imported documents and downloadable fonts) has been rewritten and now
353supports version 3.0 of the Document Structuring Conventions. The
354%%DocumentFonts comment is no longer supported; you must use the
355%%Document{Needed,Supplied}{Fonts,Resources} comments instead
356(or as well.)
357
358tmac.psatk contains some macros that support the mechanism used by the
359Andrew Toolkit for including PostScript graphics in troff documents.
360
361Xditview
362--------
363
364Parts of xditview have been rewritten so that it can be used with the
365output of gtroff -Tps. groff -TXps will run gtroff -Tps with
366gxditview.
367
368There is a new menu entry `Print' which brings up a dialog box for
369specifying a command with which the file being previewed should be
370printed.
371
372Xditview now uses imake.
373
374VERSION 1.01
375============
376
377The groff command now understands the gtroff `-a' and `-i' options.
378
379With the `m' and `n' scale indicators, the scale factor is rounded
380horizontally before being applied. This makes (almost) no difference
381for devices with `hor' equal to 1, but it makes groff with -Tascii or
382-Tlatin1 behave more like nroff in its treatment of these scale
383indicators. Accordingly tmac.tty now calls the `nroff' request so
384that the `n' condition will be true.
385
386The device-specific macros (tmac.ps, tmac.dvi, tmac.tty and tmac.X)
387have been made to work at least somewhat with -C. In particular the
388special characters defined by these macros now work with -C.
389
390groff -Tdvi -p will now pass pic the -x flag; this will enable filling
391of arrowheads and boxes, provided that your dvi driver supports the
392latest version of the tpic specials.
393
394Eqn
395---
396
397There is a new `-N' option that tells eqn not to allow newlines in
398delimiters. This allows eqn to recover better from missing closing
399delimiters. The groff command will pass on a `-N' option to eqn.
400
401Grops
402-----
403
404You can now use psfig with grops. See the file ps/psfig.diff. I do
405not recommend using psfig for new documents.
406
407The command \X'ps: file F' is similar to \X'ps: exec ...' except that
408the PostScript code is read from the file F instead of being contained
409within the \X command. This was added to support psfig.
410
411Grodvi
412------
413
414There are font files HB and HI corresponding to cmsssbx10 and cmssi10.
415
416Macros
417------
418
419The groff -me macros now work with the -C option. As a result, they
420may also work with Unix nroff/troff.
421
422In -me, the $r and $R number registers now contain the line spacing as
423a percentage of the pointsize expressed in units (normally about 120).
424The previous definition was useless with low resolution devices such
425as X75 and X100.
426
427VERSION 1.00
428============
429
430A -ms-like macro-package is now included.
431
432The name for the Icelandic lowercase eth character has been changed
433from \(-d to \(Sd.
434
435Troff
436-----
437
438There is a new request `nroff', which makes the `n' built-in condition
439true and the `t' built-in condition false; also a new request `troff'
440which undoes the effect of the `nroff' request. This is intended only
441for backward compatibility: it is usually better to test \n(.H or
442\n(.V or to use the `c' built-in condition.
443
444The \R escape sequence has been deleted. Use \E instead.
445
446There are `break' and `continue' requests for use with the `while'
447request.
448
449There is a request `hym' that can ensure that when the current
450adjustment mode is not `b' a line will not be hyphenated if it is no
451more than a given amount short, and a request `hys' that can ensure
452that when the current adjustment mode is `b' a line will not be
453hyphenated if it can be justified by adding no more than a given
454amount of extra space to each word space.
455
456There is a request `rj' similar to `ce' that right justifies lines.
457
458A warning of type `space' will be given when a call is made to an
459undefined request or macro with a name longer than two characters, and
460the first two characters of the name make a name that is defined.
461This is intended to find places where a space has been omitted been a
462request or macro and its argument. This type of warning is enabled by
463default.
464
465Pic
466---
467
468A comma is permitted between the arguments to the `reset' command.
469
470For use with TeX, there is a new `-c' option that makes gpic treat
471lines beginning with `.' in a way that is more compatible with tpic
472(but ugly).
473
474Eqn
475---
476
477It is no longer necessary to add `space 0' at the beginning of
478complicated equations inside pictures.
479
480`prime' is now treated as an ordinary character, as in Unix eqn. The
481previous behaviour of `prime' as an operator can now be obtained using
482`opprime'.
483
484Xditview
485--------
486
487There are two new devices X75-12 and X100-12 which are the same as X75
488and X100 except that they are optimized for documents that use mostly
48912 point text.
490
491VERSION 0.6
492===========
493
494The installation process has been refined to make it easy for you to
495share groff with someone who has the same type of machine as you but
496does not have a C++ compiler. See the end of the INSTALL file for
497details.
498
499There is a man page for the tfmtodit program which explains how to use
500your own fonts with groff -Tdvi.
501
502There is a man page for afmtodit which explains how to use your own
503PostScript fonts with groff -Tps.
504
505The \N escape sequence is now fully supported. It can now be used to
506access any character in a font by its output code, even if it doesn't
507have a groff name. This is made possible by a convention in the font
508files that a character name of `---' refers to an unnamed character.
509The drivers now all support the `N' command required for this. The font
510description files have been updated to include unnamed characters.
511
512The `x' command in font description files has been removed: instead
513any unknown commands are automatically made available to the drivers.
514If you constructed your own font files with an earlier version of
515tfmtodit or afmtodit, you must construct them again using the current
516version.
517
518Characters between 0200 and 0237 octal are no longer legal input
519characters. Note that these are not used in ISO 8859.
520
521A command called `grog' has been added, similar to the `doctype'
522command described in Kernighan and Pike.
523
524Groff
525-----
526
527The groff command has some new options: -V prints the pipeline
528instead of executing it; -P passes an argument to the postprocessor,
529-L passes an argument to the spooler.
530
531There is a C++ implementation of the groff command. This handles some
532things slightly better than the shell script. In particular, it can
533correctly handle arguments containing characters that have a special
534meaning to the shell; it can give an error message when child
535processes other than the last in the pipeline terminate abnormally;
536its exit status can take account of the exit statuses of all its child
537processes; it is a little more efficient; when geqn is used, it
538searches for the eqnchar file in the same way that font metric files
539are searched for, rather than expecting to find it in one particular
540directory.
541
542Gtroff
543------
544
545There is font translation feature: For example, you can tell gtroff to
546use font `HR' whenever font `H' is requested with the line
547 .ftr H HR
548This would be useful for a document that uses `H' to refer to
549Helvetica.
550
551There are some new number registers: `.kern' contains the current kern
552mode, `.lg' the current ligature mode, `.x' the major version number,
553`.y' the minor version number, `.ce' the number of lines to be
554centered in the current environment, `.trunc' the amount of vertical
555space truncated by the most recently sprung vertical position trap,
556`.ne' the amount of vertical space needed in the last `ne' request
557that caused a vertical position trap to be sprung.
558
559The `cf' request now behaves sensibly in a diversion. If used in a
560diversion, it will now arrange for the file to be copied to the output
561when the diversion is reread.
562
563There is a new request `trf' (transparent file) similar to `cf', but
564more like `\!'.
565
566There is a new escape sequence `\Y[xxx]', roughly equivalent to
567`\X'\*[xxx]'', except that the contents of string or macro xxx are not
568interpreted, and xxx may contain newlines. This requires an output
569format extension; the drivers have been modified to understand this.
570Grops has also been modified to cope with newlines in the arguments to
571\X commands; grops has a new \X command mdef, which is like def except
572that it has a first argument giving the number of definitions.
573
574There is a new warning category `escape' which warns about unknown
575escape sequences.
576
577The `fp' request now takes an optional third argument giving the external
578name of the font.
579
580The `\_' character is now automatically translated to `\(ul' as in troff.
581
582The environment variable `GROFF_HYPHEN' gives the name of the file
583containing the hyphenation patterns.
584
585There is a `\C'xxx'' escape sequence equivalent to `\[xxx]'.
586
587Characters ", ', ), ], *, \(dg are now initially transparent for the purposes
588of end of sentence recognition.
589
590There is an anti-recusion feature in the `char' request, so you can
591say `.char \(bu \s+2\(bu\s-2'.
592
593The limit on the number of font positions has been removed.
594Accordingly `\n[.fp]' never returns 0.
595
596The restriction on the number of numbered environments has been removed.
597
598There is a new escape sequence `\E' that makes it possible to
599guarantee that an escape sequence won't get interpreted in copy-mode.
600The `\R' escape sequence is accordingly now deprecated.
601
602Gpic
603----
604
605Arguments of the form `X anything X' (in the `copy thru', `sh', `for',
606`if' and `define' constructs) can now be of the form `{ anything }'.
607
608If the `linethick' variable is negative (as it now is initially),
609lines will be drawn with a thickness proportional to the current point
610size.
611
612The `rand' function now takes no arguments and returns a number between
6130 and 1. The old syntax is still supported.
614
615`^' can be used in expressions to indicate exponentiation.
616
617In the `for' construct the argument to the by clause can be prefixed
618by `*' to indicate that the increment is multiplicative.
619
620A bare expression may be used as an attribute. If the current
621direction is `dir', then an attribute `expr' is equivalent to
622`dir expr'
623
624There is a `sprintf' construct that allows numbers to be formatted and used
625wherever a quoted string can be used.
626
627The height of a text object without an explicit height attribute is
628the number of text strings associated with the object times the value
629of the `textht' variable.
630
631The maximum height and width of a picture is controlled by the
632`maxpswid' and `maxpsht' variables.
633
634Gtbl
635----
636
637Gtbl can now handle gracefully the situation where the `ce' request
638has been applied to a table.
639
640Geqn
641----
642
643The `ifdef' primitive has been generalized.
644
645A tilde accent can be put underneath a box using `utilde'. This
646defined using a general `uaccent' primitive.
647
648Grops
649-----
650
651There is a new PostScript font downloading scheme which handles font
652downloading for imported illustrations. Previously, the name of the
653file containing the font was given in the `x download' line in the
654groff font metric file. Now, there is a `download' file which says
655for each PostScript font name which file contains that font. Grops
656can also now handle inter-font dependencies, where one downloadable
657font depends on some other (possibly downloadable) font.
658
659The `T' font has been removed. The characters it used to provide are
660now provided by `char' definitions in tmac.ps. TSymbol.ps has also
661been removed, and the tweaks it provided are now provided by `char'
662definitions.