* src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
[s-roff.git] / NEWS
blob65d2f286f8e12b503dbb46476528fae2915b2994
1 This file describes recent user-visible changes in groff.  Bug fixes are not
2 described.  There are more details in the man and info pages.
4 VERSION 1.18.1
5 ==============
7 Miscellaneous
8 -------------
10 The `papersize' keyword in the DESC file now accepts multiple arguments.
11 It is scanned from left to the right, and the first valid argument is used.
12 This makes it possible to provide a fallback paper size.
14 Example:
16    papersize /etc/papersize a4
19 VERSION 1.18
20 ============
22 ***************************************************************************
23 *                                                                         *
24 *  PLEASE READ THE CHANGES BELOW REGARDING GROTTY, GROFF'S TTY FRONTEND.  *
25 *                                                                         *
26 ***************************************************************************
28 Troff
29 -----
31 o Color support has been added to troff and pic (and to the device drivers
32   grops, grodvi, grotty, and grohtml -- other preprocessors and drivers will
33   follow).  A new function `defcolor' defines colors; the escape sequence
34   `\m' sets the drawing color, the escape sequence `\M' specifies the
35   background color for closed objects created with \D'...' commands. 
36   `\m[]' and `\M[]' switch back to the previous color.  `\m' and `\M'
37   correspond to the new troff output command sets starting with `m' and
38   `DF'.  The device-specific default color is called `default' and can't be
39   redefined.
41   Use the `color' request to toggle the usage of colors (default is on); the
42   read-only register `.color' is 0 if colors are not active, and non-zero
43   otherwise.
45   The old `Df' output command is mapped onto `DFg'; all color output
46   commands don't change the current font position (consequently, `Df'
47   doesn't either).
49   Outputting color can be disabled in troff and groff with the option -c
50   (it is always disabled in compatibility mode).  See the section on grotty
51   for the GROFF_NO_SGR environment variable also.
53   For defining color components as fractions between 0 and 1, a new scaling
54   indicator `f' has been introduced: 1f = 65536u.  For testing whether a
55   color is defined (with .if and .ie), a new conditional operator `m' is
56   available.
58   More details can be found in the groff_diff.7 manual page and in
59   groff.texinfo.
61 o Similar to \m and \M, \f[] switches back to the previous font.  \fP
62   (and \f[P]) is still valid for backwards compatibility.
64 o The new escape \F is the same as `.fam'; \F[] switches back to previous
65   family -- \F[P] selects family `P'.
67 o Two new glyph symbols are available: `eu' is the official Euro symbol;
68   `Eu' is a font-specific glyph variant.
70 o The new glyph symbols `t+-', `tdi', and `tmu' are textual variants of
71   `+-', `di', and `mu', respectively.
73 o Latin-1 character 181 (PS name `mu', Unicode name U+00B5 MICRO SIGN) has
74   got the troff glyph name `mc'.
76 o -Tutf8 is now available on EBCDIC hosts.
78 o Strings can take arguments, using this syntax: \*[foo arg1 arg2 ...].
79   Example:
81     .ds xxx This is a \\$1 test.
82     \*[xxx nice]
84 o It is now possible to have whitespace between the first and second dot (or
85   the name of the ending macro) to end a macro definition.  Example:
87     .de !
88     ..
89     .
90     .de foo
91     .  nop Hello, I'm `foo'.
92     .  nop I will now define `bar'.
93     .  de bar !
94     .    nop Hello, I'm `bar'.
95     .  !
96     ..
98 o `.fn' is a new string-valued register which returns the (internal) real
99   font name; styles and families are properly concatenated.
101 o Three new read/write registers `seconds', `minutes', and `hours' contain
102   the current time, set at start-up of troff.  Use the `af' request to
103   control their output format.
105 o The new request `fchar' can be used to provide fallback characters.  It
106   has the same syntax as the `char' request; the only difference is that a
107   character defined with `.char' hides the glyph with the same name in the
108   current font, whereas a character defined with `.fchar' is checked only if
109   the particular glyph isn't found in the current font.  This test happens
110   before checking special fonts.
112 o In analogy to the `tmc' request, `.writec' is the same as `.write' but
113   doesn't emit a final newline.
115 o The new request `itc' is a variant of `.it' for which a line interrupted
116   with \c counts as one input line.
118 o Two new requests `ds1' and `as1' which are similar to `ds' and `as' but
119   with compatibility mode disabled during expansion of strings defined by
120   them.
122 o The syntax of the `substring' request has been changed: The first
123   character in a string now has index 0, the last character has index -1.
124   Note that this is an incompatible change.
126 o To emit strings directly to the intermediate output, a new `output'
127   request has been added; it is similar to `\!' used at the top level.
129 o `.hpf' has been extended.  It can now handle most TeX hyphenation
130   pattern files without modification.  To do that, the commands \patterns,
131   \hyphenation, and \endinput are recognized.  Please refer to groff_diff.7
132   for more information.
134 o `hpfcode' is a new request to provide an input encoding mapping for the
135   `hpf' request.
137 o The new request `hpfa' appends hyphenation patterns (`hpf' replaces
138   already existing patterns).
140 o A new request `ami' (append macro indirect) has been added.  The first and
141   second parameter of `ami' are taken from string registers rather than
142   directly; this very special request is needed to make `trace.tmac'
143   independent from the escape character (which might even be disabled).
145 o The new request `sizes' is similar to the `sizes' command in DESC files.
146   It expects the same syntax; the data must be on a single line, and the
147   final `0' can be omitted.
149 o `trin' (translate input) is a new request which is similar to `tr' with
150   the exception that the `asciify' request will use the character code (if
151   any) before the character translation.  Example:
153     .trin ax
154     .di xxx
155     a
156     .br
157     .di
158     .xxx
159     .trin aa
160     .asciify xxx
161     .xxx
163   The result is `x a'.  Using `tr', the result would be `x x'.
165 o The request `pvs' isn't new, but hasn't been documented before.  It
166   adds vertical space after a line has been output.  This makes it an
167   alternative to the `ls' request to produce double-spaced documents.
168   The read-only register `.pvs' holds the current amount of the
169   post-vertical line space.
171 o For compatibility with plan 9's troff, multiple `pi' requests are
172   supported:
174     .pi foo
175     .pi bar
177   is now equivalent to
179     .pi foo | bar
181 o A new escape sequence `\O' is available to disable and enable glyph
182   output.  Please see groff_diff.7 and groff.texinfo for more details.
184 o The escapes `\%', `\&', `\)', and `\:' no longer cause an error in \X;
185   they are ignored now.  Additionally `\ ' and `\~' are converted to
186   single space characters.
188 o The default tab distance in nroff mode is now 0.8i to be compatible
189   with UNIX troff.
191 o Using the latin-1 input character 0xAD (soft hyphen) for the `shc'
192   request was a bad idea.  Instead, it is now translated to `\%', and
193   the default hyphenation character is again \[hy].  Note that the glyph
194   \[shc] is not useful for typographic purposes; it only exists to have
195   glyph names for all latin-1 characters.
197 Macro Packages
198 --------------
200 o Peter Schaffter <df191@ncf.ca> has contributed a new major macro package
201   called `mom', mainly for non-scientific writers, which takes care of
202   many typographic issues.  It comes with a complete reference (in HTML
203   format) and some examples.  `mom' has been designed to format documents
204   for PostScript output only.
206 o Two macros `AT' (AT&T) and `UC' (Univ. of California) have been added to
207   the man macros for compatibility with older BSD releases.
209 o Both the man and mdoc macro packages now use the LL and LT registers for
210   setting the line and title length, respectively (similar to those
211   registers in the ms macro package).  If not set on the command line or
212   in a macro file loaded before the macro package itself, they default to
213   78n in nroff mode and 6.5i in troff mode.
215 o The `-xwidth' specifier in the mdoc macro package has been removed.  Its
216   functionality is now integrated directly into `-width'.  Similarly,
217   `-column' has been extended to provide this functionality also.
219 o A new macro `Ex' has been added to the mdoc macro package to document an
220   exit status.
222 o The PSPIC macro has been extended to work with DVI output (`pspic.tmac' is
223   now automatically loaded for -Tdvi), using a dvips special to load the EPS
224   file.
226 o The trace.tmac package now traces calls to `am' also.  Additionally, it
227   works in compatibility mode.
229 o `troff.1' has been split.  Differences to UNIX troff are now documented
230   in the new man page `groff_diff.7'.
232 o `groff_mwww.7' has been renamed to `groff_www.7'.  The file mwww.tmac
233   has been removed.
235 o `groff_ms.7' has been completely rewritten.  It now contains a complete
236   reference to the ms macros.
238 o `groff_trace.7' documents the trace macro package.
240 o Changes in www.tmac:
242     Note that HTML support is still in alpha change, so it is rather likely
243     that both macro names and macro syntax will change.  Some of the macros
244     mentioned below aren't really new but haven't been documented properly
245     before.
247     The following macros have been renamed:
249         MAILTO     -> MTO
250         IMAGE      -> IMG
251         LINE       -> HR
253     For consistency, the macros `URL', `FTL', and `MTO' now all have the
254     address as the first parameter followed by the description.
256     By default, grohtml generates links to all section headings at the top
257     of the document.  Use the new `LK' macro to specify a different place.
259     For specifying the background color and a background image, use the
260     new macros `BCL' and `BGIMG', respectively.
262     The macro `NHR' has been added; it suppresses the generation of top and
263     bottom rules which grohtml emits by default.
265     The new macro `HX' determines the cut-off point for automatic link
266     generation to headings.
268     The image position parameter names in `IMG' have been changed to `-L',
269     `-R', and `-C'.
271     New macro `PIMG' for inclusion of a PNG image (it will automatically
272     convert it into an EPS file if not -Thtml is used).
274     New macro `MPIMG' for putting a PNG image into the left or right margin
275     (it will automatically convert it into an EPS file if not
276     -Thtml is used).
278     New macros `HnS', `HnE' to start and end a header line block.
280     New macro `DC' to produce dropcap characters.
282     New macro `HTL' to generate an HTML title line only but no H1 heading.
284     New macros `ULS' and `ULE' to start and end an unordered list.  The new
285     macro `LI' inserts a list item.
287 Groff
288 -----
290 o The new command line option `-c' disables color output (which is always
291   disabled in compatibility mode).
293 Nroff
294 -----
296 o Two new command line options `-c' and `-C'; the former passes `-c' to
297   grotty (switching to the old output scheme); the latter passes `-C' to
298   groff (enabling compatibility mode).
303 o New keywords `color' (or `colour', `colored', `coloured'), `outline' (or
304   `outlined'), and `shaded' are available.  `outline' sets the color of the
305   outline, `shaded' the fill color, and `color' sets both.  Example:
307     circle shaded "green" outline "black" ;
309   Filled arrows always use the outline color for filling.
311   Color support for TeX output is not implemented yet.
313 Pic2graph
314 ---------
316 o A new script contributed by Eric S. Raymond <esr@thyrsus.com>.  It
317   converts a PIC diagram into a cropped image.  Since it uses gs and the PNM
318   library, virtually all graphics formats are available for output.
320 Eqn2graph
321 ---------
323 o A new script contributed by Eric S. Raymond <esr@thyrsus.com>.  It
324   converts an EQN diagram into a cropped image.  Since it uses gs and the PNM
325   library, virtually all graphics formats are available for output.
327 Groffer
328 -------
330 o A new script contributed by Bernd Warken <bwarken@mayn.de>.  It displays
331   groff files and man pages on X and tty, taking care of most parameters
332   automatically.
334 Grog
335 ----
337 o Documents using the mom macro package are recognized.
339 Grops
340 -----
342 o Color support has been added.
344 o A new option `-p' is available to select the output paper size.  It has
345   the same syntax as the new `papersize' keyword in the DESC file.
347 Grodvi
348 ------
350 o By default, font sizes are now available in the range 5-10000pt, similar
351   to PS fonts. If you want the old behaviour (i.e., font sizes at discrete
352   values only), insert the following at the start of your document:
354     .if '\*[.T]'dvi' \
355     .  sizes 500 600 700 800 900 1000 1095 1200 1400 1440 1600 \
356              1728 1800 2000 2074 2200 2400 2488 2800 3600
358 o A new font file HBI (using cmssbxo10; this is slanted sans serif bold
359   extended) has been added.
361 o Two font families are now available: `T' and `H'.
363 o EC and TC fonts have been integrated.  Use `-mec' (calling the file
364   ec.tmac) to switch to them.  Those fonts give a much better coverage of
365   the symbols defined by groff than the CM fonts.
367   Note that ec.tmac must be called before any language-specific files; it
368   doesn't take care of hcode values.
370 o Color support has been added.  For drawing commands, colors are translated
371   to gray values currently.
373 Grotty
374 ------
376 o Color support has been added, using the SGR (ISO 6429, sometimes called
377   ANSI color) escape sequences.
379 o SGR escape sequences are now used by default for underlining and bold
380   printing also, no longer using the backspace character trick.  To revert
381   to the old behaviour, use the `-c' switch.
383   Note that you have to use the `-R' option of `less' to make SGR escapes
384   display correctly.  On the other hand, terminal programs and consoles like
385   `xterm' which support SGR sequences natively can directly display the
386   output of grotty.  Consequently, the options `-b', `-B', `-u', and `-U'
387   work only in combination with `-c' and are ignored silently otherwise.
389   For the `man' program, it may be necessary to add the `-R' option of
390   `less' to the $PAGER environment variable; alternatively, you can use
391   `man's `-P' option (or adapt its configuration file accordingly).  See
392   man(1) for more details.
394 o If the environment variable GROFF_NO_SGR is set, SGR output is disabled,
395   reverting to the old behaviour.
397 o A new special \X'tty: sgr n' has been added; if n is non-zero or missing,
398   enable SGR output (the default).
400 o If the new option `-i' is used (only in SGR mode), grotty sends escape
401   sequences to set the italic font attribute instead of the underline
402   attribute for italic fonts.  Note that many terminals don't have support
403   for this (including xterm).
405 Grohtml
406 -------
408 o Color support for glyphs has been added.
410 o New option `-h' to select the style of headings in HTML output.
412 o New option `-b' to set the background colour to white.
414 o New options `-a' and `-g' to control the number of bits for anti-aliasing
415   used for text and graphics, respectively.  Default value is 4; 0 means
416   no anti-aliasing.
418 o groff character/glyph entities now map onto HTML 4 character entities.
420 Grolbp
421 ------
423 o Valid paper sizes are now specified as with the new `papersize' keyword
424   in the DESC file.  Specifically, the old custom paper type format
425   `custAAAxBBB' is no longer supported.
427 Miscellaneous
428 -------------
430 o A new manual page `ditroff.7' is available.
432 o The groff texinfo manual will now be installed, together with a bunch
433   of examples.
435 o A new keyword `papersize' has been added to the DESC file format.  Its
436   argument is either
438   . a predefined paper format (e.g. `A4' or `letter')
440   . a file name pointing to a file which must contain a paper size
441     specification in its first line (e.g. `/etc/papersize')
443   . a custom paper size definition like `35c,4i'
445   See groff_font(5) for more details.  This keyword only affects the
446   physical dimensions of the output medium; grops, grolj4, and grolbp use it
447   currently.  troff completely ignores it.
449 VERSION 1.17.2
450 ==============
452 This is major bug-fixing release which should replace 1.17.1.
454 Troff
455 -----
457 o The `IMAGE' macro in www.tmac has changed: Now the optional 2nd parameter
458   gives the horizontal image location (left, centered, or right), and the
459   optional 3rd and 4th parameter the image dimensions.
461 VERSION 1.17.1
462 ==============
464 This is mainly a bug-fixing release.
466 Troff
467 -----
469 o Two new requests `de1' and `am1' which are similar to `de' and `am' but
470   with compatibility mode disabled during expansion of macros defined by
471   them.
473 o Added request `brp'.  This is the same as `\p'.
475 o Similar to other versions of troff, the `ns' request now works in all
476   diversions, not only in the top-level one.
478 o New read-only number register `.ns'.  Returns 1 if in no-space mode,
479   0 otherwise.
481 Nroff
482 -----
484 o Options -p (pic) and -t (tbl) added.
486 o The environment variable GROFF_BIN_PATH is now checked before PATH for
487   finding groff.
489 Grohtml
490 -------
492 o New option `-D dir' to specify a directory in which all images are placed.
494 o New option `-I stem' to specify an image name stame.  If not given,
495   `grohtml-XXX' is used (`XXX' is the process ID).
497 VERSION 1.17
498 ============
500 Groff
501 -----
503 o `-mFOO' now searches first for `FOO.tmac' and then for `tmac.FOO'.  The
504   old behaviour has been changed to overcome problems with platforms which
505   have an 8+3 file name limit, and platforms which have other versions of
506   troff installed also.  Additionally, all macro files have been renamed
507   using the latter scheme to avoid 8+3 name clashes.
509 o The new environment variable GROFF_BIN_PATH is checked for programs groff
510   is calling (preprocessors, troff, and output devices) before PATH.  If not
511   set, it defaults to the directory where the groff binary is located.
512   Previously, it was PATH only.  The nroff script only uses GROFF_BIN_PATH
513   to find the groff binary but passes both the GROFF_BIN_PATH and PATH
514   environment variables to groff.
516 Troff
517 -----
519 o The mdoc package has been completely rewritten, using the full power of
520   GNU troff to remove limitations of Unix troff (which is no longer
521   supported).  Most important changes are:
523   . No argument limit
524   . Almost all macros are parsed and callable (if it makes sense)
525   . `.Lb': prints library names
526   . `.Nm <punctuation>' now works as expected; `.Nm "" <punctuation>' has
527     been withdrawn
528   . Updated `.St' command
529   . `.Fx': prints FreeBSD
530   . `.Ox': prints OpenBSD
531   . `.Bsx': prints BSD/OS
532   . `.Brq', `.Bro', `.Brc': brace enclosure macros
533   . `.Bd -centered': center lines
534   . `.Bl -xwidth <string>': interpret <string> and use the resulting width
535   . Support for double-sided printing (-rD1 command line switch)
536   . Support for 11pt and 12pt document sizes (-rS11, -rS12 command line
537     switches)
539   `groff_mdoc.7' replaces `groff_mdoc.samples.7'; it now completely
540   documents the mdoc package.
542   Great care has been taken to assure backwards compatibility.  If you
543   encounter any abnormal results, please report them to bug-groff@gnu.org.
545 o A new command line option for the `man' macros (similar to the `mdoc'
546   package) has been implemented: `-rcR=1' (now the default in nroff mode)
547   produces one single, very long page instead of multiple pages.  `-rcR=0'
548   deactivates it.
550 o The `return' request has been added to return immediately from a macro.
552 o A new request `nop' (no operation) has been added which is similar to
553   `if 1'.  For example,
555     .if t \{\
556     Hallo!
557     .\}
559   can now be written as
561     .if t \{\
562     .  nop Hallo!
563     .\}
565 o `box' and `boxa' are two new requests which behave similarly to `di' and
566   `da' but don't include a partially filled line (which is restored after
567   ending the diversion).
569 o The `asciify' request has been extended to `unformat' space characters
570   and some other escape sequences also.
572   `\ ' is no longer unformatted as a space but remains an unpaddable,
573   unbreakable space character.
575 o The new `unformat' request is similar to `asciify' but only handles space
576   characters and tabs specially if the diversion is reread, retaining font
577   information.  This makes it possible to reformat diversions; for example
578   the following
580     .ll 3i
581     .
582     a01 a02 a03 a04 a05 a06 a07 a08 a09 a10.
583     .
584     .box box1
585     .ev 1
586     .nf
587     \f[B]b01 b02 b03 b04 b05 b06 b07 b08 b09 b10.\f[P]
588     .br
589     .ev
590     .box
591     .
592     c01 c02 c03 c04 c05 c06 c07 c08 c09 c10.
593     .
594     .unformat box1
595     .box1
597   gives
599     a01  a02  a03  a04 a05 a06 a07
600     a08 a09 a10.  c01 c02 c03  c04
601     c05  c06 c07 c08 c09 c10.  b01
602     b02 b03 b04 b05  b06  b07  b08
603     b09 b10.
605   Without the `unformat' request, space characters are converted to word
606   space nodes which are no longer stretchable, and the result would be
608     a01  a02  a03  a04 a05 a06 a07
609     a08 a09 a10.  c01 c02 c03  c04
610     c05  c06 c07 c08 c09 c10.  b01
611     b02 b03 b04 b05 b06 b07 b08
612     b09 b10.
614 o The new request `linetabs' controls the `line-tabs' mode.  In line-tabs
615   mode, tab distances are computed relative to the (current) output line.
616   Otherwise they are taken relative to the input line.  For example, the
617   following
619     .ds x a\t\c
620     .ds y b\t\c
621     .ds z c
622     .ta 1i 3i
623     \*x
624     \*y
625     \*z
627   yields
629     a         b         c
631   In line-tabs mode, the same code gives
633     a         b                   c
635   The new read-only number register `.linetabs' returns 1 if in line-tabs
636   mode, and 0 otherwise.
638 o Two new requests `tm1' and `tmc' have been added to improve writing
639   messages to the terminal.  `tm1' is similar to `tm' but allows leading
640   whitespace.  `tmc' is similar to `tm1' but doesn't emit a final newline.
642 o For compatibility with sqtroff, the request `output' has been added.
643   The behaviour is similar to `\!' at the top-level, that is, it directly
644   inserts its argument into the intermediate output format.  The syntax
645   is similar to .tm1, allowing leading whitespace.
647 o The new `spreadwarn' request will make troff warn if spaces in an output
648   line are widened by a given limit or more.
650 o Use `warnscale' to change the scaling indicator troff will use for
651   warning messages.
653 o A new request `dei' (define indirect) has been added.  The first and
654   second parameter of `dei' are taken from string registers rather than
655   directly; this very special request is needed to make `trace.tmac'
656   independent from the escape character (which might even be disabled).
658 o It is now possible to save and restore the escape character with two new
659   requests `ecs' and `ecr'.
661 o The new escape sequence \B'...' is an analogon to `\A': If the string
662   within the delimiters is a valid numeric expression, return character `1',
663   and `0' otherwise.
665 o The new escape sequence `\:' inserts a zero-width break point.  This is
666   similar to `\%' but without a soft hyphen character.
668 o The `tr' request can now map characters onto `\~'.
670 o Calling the `fam' request without an argument switches back to the
671   previous font family.
673 o The new read-only register `.int' is set to a positive value if the last
674   output line is interrupted (i.e., if the input line contains `\c').
676 o The `writem' request is not new, but hasn't been documented before.  This
677   is similar to `write' but instead of a string the contents of a given
678   macro or string is written to a stream.
680 o The read/write number register `hp' to get/set the current horizontal
681   position relative to the input line isn't new but hasn't been documented
682   properly before.
684 o `\X' and `\Y' are now transparent for end-of-sentence recognition.
686 o The `cu' request in nroff mode now works as documented (i.e., it
687   underlines spaces also).
689 Grog
690 ----
692 o The grog script now works in non-compatibility mode also (which is the
693   default).  As usual, use the `-C' option to activate compatibility mode.
695 Grops
696 -----
698 o A new option `-P' resp. a new environment variable `GROPS_PROLOGUE' has
699   been added to select a different prologue file.
701 o The effect of the former `-mpsnew' option to access more Type 1 characters
702   is now the default and no longer available.  To get the old behaviour
703   (i.e., emulation of some glyphs by composition) use `-mpsold'.
705 Miscellaneous
706 -------------
708 o For security reasons the following changes have been done:
710   . The tmac.safer file has been replaced with a built-in solution; .open,
711     .opena, .pso, .sy, and .pi are completely disabled in safer mode (which
712     is the default); to enable these requests the `-U' command line flag
713     must be used.
715   . Files specified with the .mso request or given with the `-m' command
716     line option, and hyphenation patterns loaded with `.hpf' are no longer
717     searched in the current directory by default (besides the usual tmac
718     path).  Instead, the home directory is used.  To add the current
719     directory, either use the `-U' or `-M' command line option or set the
720     GROFF_TMAC_PATH environment variable to an appropriate value.
722   . troffrc, troffrc-end, and eqnrc are neither searched in the current nor
723     in the home directory (even if -U is given).  Use -M or GROFF_TMAC_PATH
724     to change that.
726   . Similarly, the current directory is no longer part of the font path.
727     Use the `-F' command line option or the GROFF_FONT_PATH environment
728     variable if you really need the current directory.
730 o groff now installs its data files into /usr/local/share/groff/<version> by
731   default, following the GNU standard.  Additionally, a local tmac directory
732   (by default /usr/local/share/groff/site-tmac) is scanned before the
733   standard tmac directory.  Wrapper files for system-specific macro packages
734   (if necessary) are put into /usr/local/lib/groff/site-tmac; this directory
735   is searched before the local tmac directory.
737 o All programs now have option `-v' to show the version number; they exit
738   immediately afterwards, following the GNU standards.  Additionally,
739   `--version' and `--help' have been added, doing the obvious actions.
741 VERSION 1.16.1
742 ==============
744 Bug fixes only; no user-visible changes.
746 VERSION 1.16
747 ============
749 Groff
750 -----
752 The anachronism of calling the man macro package with `-man' has been fixed;
753 now you can say `-m man' also. The same is true for `ms', `me', `markup',
754 `mandoc', and `mdoc'.
756 A new switch `-g' for calling `grn' is available.
758 A new switch `-G' for calling `grap' is available.
760 EBCDIC support for tty devices has been added.  On such hosts, IBM code page
761 1047 is available with -Tcp1047 instead of -Tascii and -Tlatin1 (and, for
762 the moment, -Tutf8).  Note that non-tty devices are not yet supported (but
763 installed).
765 Troff
766 -----
768 A new command line option to the `man' macros is available: `-rSxx' (with
769 `xx' either 10, 11, or 12) to set the base document font size to `xx'
770 points.  Additionally, `.SH' now produces larger headings than `.SS'.
772 To solve a problem with the .PSPIC macro which needs the `-U' switch of
773 troff to access an external program (psbb), a new request .psbb is now
774 available to get the bounding box of a PostScript image file.  The values
775 (in PostScript units) are returned in the new read-only number registers
776 `llx', `lly', `urx', and `ury'.  Consequently, .PSPIC has been adapted to
777 use the new request, and the psbb program has been removed.
779 A new predefined writable number register, `year', has been added.  It
780 contains the current year.
782 A new read-only register, `.Y', has been added.  It contains the revision
783 number of the groff package.
785 `\fP' now behaves as expected in situations like the following where the
786 font `foo' is undefined:
788   .B bold text
789   normal text \f[foo]bar\fP normal text
791 Previously, the text after \fP appeared as bold.
793 The `substring' request is not new, but hasn't been documented before.
795 The predefined `.T' string register (which holds the current output device)
796 is not new, but hasn't been documented before.
798 A new request `length' computes the length of a string and returns it in
799 a number register.
801 The macro files `tmac.a4' (for specifying A4 paper format) and `tmac.trace'
802 (a debugging aid) are now installed also.
804 A new resource file, `troffrc-end', is now available.  It is invoked after
805 all user-specified macros.  Currently used by the html device to include
806 tmac.html; thus no need for users to specify -mhtml anymore.
808 The soft hyphen character now has a glyph name: `shc'.
810 The latin-1 character 173 (PS name `periodcentered') has got the troff glyph
811 name `pc' and is no longer intermixed with the symbol character `md' (PS
812 name `mathdot').
814 ASCII character 34 (PS name `quotedbl') has got the troff glyph name `dq'
815 (which is an alias to character `"').
817 ASCII character 39 (PS name `quoteright') has got the troff glyph name `cq'
818 (which is an alias to character "'").
820 Some additions to the font description files have been implemented for
821 better support of HTML output:
823   The new format of lines in the `charset' subsection of font description
824   files is
826      name metrics type code [entity_name] [-- comment]
828   Currently, only the font description files in devhtml use the optional
829   entity_name string to define glyph entities in HTML.  Everything after the
830   entity_name field is ignored; in case this field isn't used, two hyphen
831   characters are now necessary to start a comment.
833   Two new requests are available in DESC files (currently used only with
834   grohtml):
836     use_charnames_in_special
837       This command indicates that troff should encode named characters
838       inside special commands.
840     pass_filenames
841       requests that troff tells the driver the source file name being
842       processed.  This is achieved by another tcommand: `F filename'.
844 Grotty
845 ------
847 Bruno Haible <haible@clisp.cons.org> contributed support for UTF8 output.
849 Grohtml
850 -------
852 Added .LINE macro to tmac.arkup.
854 The obsolete `.LINK' macro has been removed.
856 .URL, .FTP, and .MAILTO macros now accept an optional third argument which
857 will be immediately appended to the second argument (to be used with
858 punctuation, for example).
860 Grodvi
861 ------
863 The font size 11pt has been changed to 10.95pt (as used in LaTeX 2e).
865 A new font file CWI (using cmitt10; this is typewriter italic) has been
866 added.
868 Grolbp
869 ------
871 A new driver for Canon CAPSL printers (LBP-4 and LBP-8 series laser
872 printers).  This code has been contributed by Francisco Andres Verdu
873 <pandres@dragonet.es>.
878 A new preprocessor to process gremlin pictures.  It is based on the
879 original Berkeley implementation of grn, written by David Slattengren
880 and Barry Roitblat, and has been adapted to groff by Daniel Senderowicz
881 <daniel@synchrods.com> and Werner Lemberg <wl@gnu.org>.
886 Added the `srand' command to set the seed for a new sequence of
887 pseudo-random numbers to be returned by `rand'.
889 Gxditview
890 ---------
892 Simplified installation: The Imakefile will now be configured (by groff's
893 configure script).
895 Documentation
896 -------------
898 Three new man pages are available: groff_tmac.5 (documenting how troff macros
899 are accessed and where they are found), groff.7 (a short reference of the GNU
900 roff language), and roff.7 (a general survey on GNU troff).
902 Miscellaneous
903 -------------
905 A partial port to win32 (for use with Microsoft Visual C++ 6.0) is now part
906 of the distribution.  It has been contributed by Blake McBride
907 <blake@florida-software.com>.
909 More information about programs, macros, documentation, etc., which is
910 related to groff has been collected in the file `MORE.STUFF'.
912 VERSION 1.13, 1.14, 1.15
913 ========================
915 Bug fixes only; no user-visible changes.
917 VERSION 1.12
918 ============
920 Finally, there are new maintainers for groff.  Mailing lists and a CVS
921 repository are available also. See the file README for details.  Not all
922 reported bugs could be fixed, so please send mails again if something is
923 still not working.
925 Most of the installation problems should have vanished now (most
926 notably the $(tmac_wrap) bug).
928 There is now a man page called groff_man.7 which documents the basics of the
929 -man macros.  It has been originally written by Susan G. Kleinmann
930 <sgk@debian.org>.
932 A (still incomplete) groff reference manual in texinfo format originally
933 contributed by Trent A. Fisher <trent@gnurd.portland.or.us>.
935 me.man and msafer.man have been renamed to groff_me.man
936 resp. groff_msafer.man for consistency.
938 Default strings for macros in doc-common resp. tmac.an no longer contain the
939 word `UNIX'.
941 groff should now be Y2k safe (fixes contributed by Paul Eggert
942 <eggert@twinsun.com>).
944 Following the GNU standards, groff will now use the prefix `/usr/local/' as
945 the default instead of replacing an existent groff binary.
947 groff, troff, nroff, and pic now support the -U flag to activate unsafe
948 behaviour (without -msafer); the -S flag for using the -msafer macros is now
949 the default.
951 Grohtml
952 -------
954 This is a new output device for producing HTML output contributed by Gaius
955 Mulley <gaius@glam.ac.uk>.  It is still very alpha but has been included
956 into the distribution so that a lot of people have a chance to test it.  Bug
957 reports are highly welcome.
959 Grolj4
960 ------
962 Duplex printing support has been contributed by Jeffrey Copeland
963 <jeff@opennt.com>.
965 Soelim
966 ------
968 Added -I option for defining include paths (patch contributed by Peter
969 Miller <peterm@jna.com.au>).
971 Gxditview
972 ---------
974 Fallback resources added (patch contributed by Larry Jones
975 <larry.jones@sdrc.com>).
977 Will now support 8 gray levels.
982 New version 1.32 (contributed by Joergen Haegg <jh@axis.com>).
984 VERSION 1.11
985 ============
987 Complete documentation for pic is now in the file doc/pic.ms.  It was
988 contributed by Eric S. Raymond, <esr@thyrsus.com>, who is emphatically
989 *not* volunteering to take over groff as he is way overworked with
990 half a dozen other projects.
992 VERSION 1.10
993 ============
995 The directory where data files are installed has been changed from
996 /usr/local/lib/groff to /usr/local/share/groff to comply with the
997 latest GNU coding standards.
999 By default groff programs with Unix equivalents are installed with a
1000 "g" prefix unless there is an existing (non-groff) troff installation.
1002 A new approach is used to make system macro packages available to
1003 groff.  Instead of simply including /usr/lib/tmac in the list of
1004 directories searched by groff, the installation process creates for
1005 each system macro package a wrapper macro package in the groff macro
1006 directory that references the system macro package.  The groff macro
1007 packages are now installed with a leading "g" prefix if there is a
1008 system version of the same macro package, and otherwise without the
1009 "g" prefix, with the exception that the groff version of -me which is
1010 always installed as -me.
1012 There is a new device, lj4, for the HP LaserJet 4 (and PCL5
1013 compatibles).
1015 Groff
1016 -----
1018 groff has a -S option that prevents the use of unsafe features in pic
1019 and troff.  This uses a new -S option of pic and the -msafer macros
1020 for troff.
1022 Troff
1023 -----
1025 The `blm' request specifies a macro to be invoked when a blank line is
1026 encountered.
1031 A -S (safer) option disables the sh command.
1033 Grops
1034 -----
1036 The -m option enables manual feed.
1038 VERSION 1.09
1039 ============
1041 \(rn will now produce a character that has the traditional metrics,
1042 and will form corners with \(ul and \(br.  This means that it will not
1043 align properly with \(sr.  Instead there's a new character
1044 \[radicalex] which aligns with \(sr; this is used by eqn for doing
1045 square roots.
1047 Troff
1048 -----
1050 The `pso' request allows you to read from the standard output of a
1051 command.
1053 Grops
1054 -----
1056 The PSPIC macro has options to allow the horizontal alignment of the
1057 graphic to be specified.
1059 VERSION 1.08
1060 ============
1062 Troff
1063 -----
1065 The escape sequence \V[xxx] will interpolate the value of the
1066 environment variable xxx.
1071 The decimalpoint option can be used to specify the character to be
1072 recognized as the decimal point character in place of the default
1073 period.
1075 VERSION 1.07
1076 ============
1078 Groff
1079 -----
1081 The environment variable GROFF_COMMAND_PREFIX can be used to control
1082 whether groff looks for `gtroff' or `troff' (similarily for the
1083 preprocessors.)
1085 Troff
1086 -----
1088 Multilingual hyphenation is supported by new `hpf' and `hla' requests,
1089 and by a `\n[.hla]' number register.  The -H option has been removed.
1090 Files of hyphenation patterns can have comments.
1092 When a font cannot be found, troff gives a warning (of type `font',
1093 enabled by default) instead of an error.
1095 There's a new request `trnt' that's like `tr' except that it doesn't
1096 apply to text transparently throughput into a diversion with \!.
1101 There is a `nokeep' option which tells tbl not to use diversions to
1102 try to keep the table on one page.
1107 Setting the parameter `nroff' to a non-zero value causes `ndefine' to
1108 behave like `define' and `tdefine' to be ignored.  This is done by
1109 eqnrc when the current device is ascii or latin1.  There's a `neqn'
1110 script that just does `eqn -Tascii'.
1112 Grotty
1113 ------
1115 grotty uses whatever page length was specified using the `pl' request
1116 rather than using the paperlength command in the DESC file.  The
1117 paperwidth command in the DESC file is also ignored.
1119 VERSION 1.06
1120 ============
1122 The programs in groff that have Unix counterparts can now be installed
1123 without a leading `g' prefix.  See the `g' variable in the Makefile.
1125 The g?nroff script simulates the nroff command using groff.
1127 New special characters \(+h, \(+f, \(+p, \(Fn, \(Bq, \(bq, \(aq, \(lz,
1128 \(an.  See groff_char(7).
1130 ^L is now a legal input character.
1132 Groff
1133 -----
1135 The Xps pseudo-device has disappeared.  Instead there is a new -X
1136 option that tells groff to use gxditview instead of the usual
1137 postprocessor. (So instead of -TXps, use -XTps or just -X if your
1138 default device is ps.)
1140 The postprocessor to be used for a particular device is now specified
1141 by a `postpro' command in the DESC file rather than being compiled
1142 into groff.  Similarly the command to be used for printing (with the
1143 -l option) is now specified by a `print' command in the DESC file.
1145 The groff command no longer specifies eqnchar as an input file for
1146 eqn.  Instead eqn automatically loads a file `eqnrc'.  The groff
1147 command no longer passes the -D option to eqn.  Instead eqnrc sets the
1148 draw_lines parameter.
1150 The groff command no longer tells troff to load a device-specific
1151 macro file.  This is handled instead by the `troffrc' file, which is
1152 always loaded by troff.
1154 The shell script version of groff has been removed.
1156 Troff
1157 -----
1159 The `rchar' request removes a character definition established with `char'.
1161 Compatibility mode is disabled and the escape character is set to `\'
1162 while a character definition is being processed.
1164 The `\#' escape sequence is like `\"' except that the terminating
1165 newline is ignored.
1167 The `shc' request tells troff which character to insert (instead of
1168 the default \(hy) when a word is hyphenated at a line break.
1170 A font name of 0 (zero) in the DESC file will cause no font to be
1171 mounted on the corresponding font position.  This is useful for
1172 arranging that special fonts are mounted on positions on which users
1173 are not likely explicitly to mount fonts.  All groff devices now avoid
1174 initially mounting fonts on positions 5-9.
1176 The `do' request allows a single request or macro to be interpreted
1177 with compatibility mode disabled.
1179 troff automatically loads a file `troffrc' before any other input file.
1180 This can be prevented with the -R option.  This file is responsible
1181 for loading the device-specific macros.
1186 The -x option has been removed and a -n option has been added.  By
1187 default, pic now assumes that the postprocessor supports groff
1188 extensions.  The -n option tells pic to generate output that works
1189 with ditroff drivers.  The -z option now applies only to TeX mode.
1191 The -p option has been removed. Instead if the -n option is not
1192 specified, pic generates output that uses \X'ps: ...' if the \n(0p
1193 register is non-zero and tmac.ps sets this register to 1.
1195 In places where you could 1st or 5th you can now say `i'th or `i+1'th
1196 (the quotes are required).
1201 Eqn now automatically reads a file `eqnrc' from the macro directory.
1202 This performs the same role that the eqnchar files used to.  This can
1203 be prevented by the -R option.
1205 Setting the draw_lines parameter to a non-zero value causes lines to
1206 be drawn using \D rather than \l.  The -D option is now obsolete.
1208 `uparrow', `downarrow' and `updownarrow' can be used with `left' and
1209 `right'.
1211 The amount of extra space added before and after lines containing
1212 equations can be controlled using the `body_height' and `body_depth'
1213 parameters.
1215 Grops
1216 -----
1218 Font description files have been regenerated from newer AFM files.
1219 You can get access to the additional characters present in the text
1220 fonts in newer PostScript printers by using -mpsnew.
1222 The default value of the -b option is specified by a `broken' command
1223 in the DESC file.
1225 With the -g option, grops will generate PostScript code that guesses
1226 the page height.  This allows documents to be printed on both letter
1227 (8.5x11) and A4 paper without change.
1229 Grodvi
1230 ------
1232 ISO Latin-1 characters are available with -Tdvi.  Format groff_char(7)
1233 with groff -Tdvi for more information.
1235 Grotty
1236 ------
1238 The -mtty-char macros contain additional character definitions for
1239 use with grotty.
1241 Macros
1242 ------
1244 In previous releases the groff -me macros treated the $r and $R number
1245 registers in a way that was incompatible with the BSD -me macros.  The
1246 reason for this was that the approach used by the BSD -me macros does
1247 not work with low resolution devices such as -TX75 and -TX100.
1248 However, this caused problems with existing -me documents.  In this
1249 release, the vertical spacing is controlled by the $v and $V registers
1250 which have the same meaning as $r and $R in earlier groff releases.
1251 In addition, if the $r or $R register is set to a value that would be
1252 correct for for the BSD -me macros and a low resolution device is not
1253 being used, then an appropriate value for the $v or $V register will
1254 be derived from the $r or $R register.
1256 The groff -me macros work with -C and (I think) with Unix troff.
1258 For backward compatibility with BSD -me, the \*{ and \*} strings are
1259 also available as \*[ and \*].  Of course, \*[ will only be usable
1260 with -C.
1262 The \*T string has been deleted.  Use \*(Tm instead.
1264 Xditview
1265 --------
1267 The `n', Space and Return keys are bound to the Next Page action.  The
1268 `p', BackSpace and Delete keys are bound to the Previous Page action.
1269 The `q' key is bound to the Quit action.
1271 The `r' key is bound to a rerasterize action that reruns groff, and
1272 redisplays the current page.
1274 VERSION 1.05
1275 ============
1280 There is a alternative assignment operator `:=' which interacts
1281 differently with blocks.
1283 There is a new command `command', which allows the values of variables
1284 to be passed through to troff or TeX.
1286 The `print' command now accepts multiple arguments.
1288 String comparison expressions (using `==' or `!=') are allowed in more
1289 contexts.
1291 Grotty
1292 ------
1294 Horizontal and vertical lines drawn with \D'l ...' will be rendered
1295 using -, | and + characters.  This is intended to give reasonable
1296 results with boxed tables.  It won't work well with pic.
1298 Macros
1299 ------
1301 The -mdoc macros have been upgraded to the version in the second
1302 Berkeley networking release.  This version is not completely
1303 compatible with earlier versions; the old version is still available
1304 as -mdoc.old.  The grog script has been enhanced so that it can
1305 usually determine whether a document requires the old or new versions.
1307 With -TX75, -TX100 and -TXps, the PSPIC macro will produce a box
1308 around where the picture would appear with -Tps.
1310 VERSION 1.04
1311 ============
1313 An implementation of the -mm macros is included.
1315 The directory in which temporary files are created can be controlled
1316 by setting the GROFF_TMPDIR or TMPDIR environment variables.
1321 Some MS-DOS support (see pic/make-dos-dist).
1323 Grops
1324 -----
1326 There are two new \X commands (\X'ps: invis' and \X'ps: endinvis')
1327 which make it possible to have substitute characters that are
1328 displayed when previewing with -TXps but ignored when printing with
1329 grops.
1331 Xditview
1332 --------
1334 Support for scalable fonts.
1336 VERSION 1.03
1337 ============
1339 No changes other than bug fixes.
1341 VERSION 1.02
1342 ============
1344 There is an implementation of refer and associated programs.  groff -R
1345 preprocesses with grefer; no mechanism is provided for passing
1346 arguments to grefer because most grefer options have equivalent
1347 commands which can be included in the file.  grog also supports refer.
1349 There is an alternative perl implementation of the grog script.
1351 The code field in lines in the charset section of font description
1352 files is now allowed to contain an arbitrary integer (previously it
1353 was required to lie between 0 and 255).  Currently grops and grodvi
1354 use only the low order 8 bits of the value.  Grodvi will use the
1355 complete value; however, this is unlikely to be useful with
1356 traditional TeX tools (.tfm files only allow 8 bit character codes.)
1358 Left and right double quotes can be obtained with \(lq and \(rq
1359 respectively.
1361 There is a new program called pfbtops which translates PostScript
1362 fonts in pfb format to ASCII.
1364 A slightly modified version of the Berkeley tmac.doc is included.
1366 Troff
1367 -----
1369 In long escape names the closing ] is now required to be at the same
1370 input level as the opening [.
1372 The \A'S' escape sequence returns 1 or 0 according as S is or is not
1373 suitable for use as a name.
1375 \~ produces an unbreakable space that can be stretched when the line
1376 is adjusted.
1378 The `mso' request is like the `so' request except that it searches for
1379 the file in the same directories in which tmac.X is searched for when
1380 the -mX option is given.
1382 The escape sequence `\R' is similar to the `nr' request.
1387 A new `special' primitive allows you to add new types of unary
1388 constructs by writing a troff macro.
1393 The implementation no longer uses gperf.
1395 Grops
1396 -----
1398 The compile-time -DBROKEN_SPOOLER option has been replaced by a
1399 BROKEN_SPOOLER_FLAGS option.  This allows more precise control over
1400 how grops should workaround broken spoolers and previewers.  There is
1401 a new -b option that can change this at run-time.
1403 Grops now generates PostScript that complies with version 3.0 of the
1404 Document Structuring Convention.
1406 The resource management component of grops (the part that deals with
1407 imported documents and downloadable fonts) has been rewritten and now
1408 supports version 3.0 of the Document Structuring Conventions.  The
1409 %%DocumentFonts comment is no longer supported; you must use the
1410 %%Document{Needed,Supplied}{Fonts,Resources} comments instead
1411 (or as well.)
1413 tmac.psatk contains some macros that support the mechanism used by the
1414 Andrew Toolkit for including PostScript graphics in troff documents.
1416 Xditview
1417 --------
1419 Parts of xditview have been rewritten so that it can be used with the
1420 output of gtroff -Tps.  groff -TXps will run gtroff -Tps with
1421 gxditview.
1423 There is a new menu entry `Print' which brings up a dialog box for
1424 specifying a command with which the file being previewed should be
1425 printed.
1427 Xditview now uses imake.
1429 VERSION 1.01
1430 ============
1432 The groff command now understands the gtroff `-a' and `-i' options.
1434 With the `m' and `n' scale indicators, the scale factor is rounded
1435 horizontally before being applied.  This makes (almost) no difference
1436 for devices with `hor' equal to 1, but it makes groff with -Tascii or
1437 -Tlatin1 behave more like nroff in its treatment of these scale
1438 indicators.  Accordingly tmac.tty now calls the `nroff' request so
1439 that the `n' condition will be true.
1441 The device-specific macros (tmac.ps, tmac.dvi, tmac.tty and tmac.X)
1442 have been made to work at least somewhat with -C.  In particular the
1443 special characters defined by these macros now work with -C.
1445 groff -Tdvi -p will now pass pic the -x flag; this will enable filling
1446 of arrowheads and boxes, provided that your dvi driver supports the
1447 latest version of the tpic specials.
1452 There is a new `-N' option that tells eqn not to allow newlines in
1453 delimiters.  This allows eqn to recover better from missing closing
1454 delimiters.  The groff command will pass on a `-N' option to eqn.
1456 Grops
1457 -----
1459 You can now use psfig with grops.  See the file ps/psfig.diff.  I do
1460 not recommend using psfig for new documents.
1462 The command \X'ps: file F' is similar to \X'ps: exec ...' except that
1463 the PostScript code is read from the file F instead of being contained
1464 within the \X command.  This was added to support psfig.
1466 Grodvi
1467 ------
1469 There are font files HB and HI corresponding to cmsssbx10 and cmssi10.
1471 Macros
1472 ------
1474 The groff -me macros now work with the -C option.  As a result, they
1475 may also work with Unix nroff/troff.
1477 In -me, the $r and $R number registers now contain the line spacing as
1478 a percentage of the pointsize expressed in units (normally about 120).
1479 The previous definition was useless with low resolution devices such
1480 as X75 and X100.
1482 VERSION 1.00
1483 ============
1485 A -ms-like macro-package is now included.
1487 The name for the Icelandic lowercase eth character has been changed
1488 from \(-d to \(Sd.
1490 Troff
1491 -----
1493 There is a new request `nroff', which makes the `n' built-in condition
1494 true and the `t' built-in condition false; also a new request `troff'
1495 which undoes the effect of the `nroff' request.  This is intended only
1496 for backward compatibility: it is usually better to test \n(.H or
1497 \n(.V or to use the `c' built-in condition.
1499 The \R escape sequence has been deleted.  Use \E instead.
1501 There are `break' and `continue' requests for use with the `while'
1502 request.
1504 There is a request `hym' that can ensure that when the current
1505 adjustment mode is not `b' a line will not be hyphenated if it is no
1506 more than a given amount short, and a request `hys' that can ensure
1507 that when the current adjustment mode is `b' a line will not be
1508 hyphenated if it can be justified by adding no more than a given
1509 amount of extra space to each word space.
1511 There is a request `rj' similar to `ce' that right justifies lines.
1513 A warning of type `space' will be given when a call is made to an
1514 undefined request or macro with a name longer than two characters, and
1515 the first two characters of the name make a name that is defined.
1516 This is intended to find places where a space has been omitted been a
1517 request or macro and its argument.  This type of warning is enabled by
1518 default.
1523 A comma is permitted between the arguments to the `reset' command.
1525 For use with TeX, there is a new `-c' option that makes gpic treat
1526 lines beginning with `.' in a way that is more compatible with tpic
1527 (but ugly).
1532 It is no longer necessary to add `space 0' at the beginning of
1533 complicated equations inside pictures.
1535 `prime' is now treated as an ordinary character, as in Unix eqn.  The
1536 previous behaviour of `prime' as an operator can now be obtained using
1537 `opprime'.
1539 Xditview
1540 --------
1542 There are two new devices X75-12 and X100-12 which are the same as X75
1543 and X100 except that they are optimized for documents that use mostly
1544 12 point text.
1546 VERSION 0.6
1547 ===========
1549 The installation process has been refined to make it easy for you to
1550 share groff with someone who has the same type of machine as you but
1551 does not have a C++ compiler.  See the end of the INSTALL file for
1552 details.
1554 There is a man page for the tfmtodit program which explains how to use
1555 your own fonts with groff -Tdvi.
1557 There is a man page for afmtodit which explains how to use your own
1558 PostScript fonts with groff -Tps.
1560 The \N escape sequence is now fully supported.  It can now be used to
1561 access any character in a font by its output code, even if it doesn't
1562 have a groff name.  This is made possible by a convention in the font
1563 files that a character name of `---' refers to an unnamed character.
1564 The drivers now all support the `N' command required for this.  The font
1565 description files have been updated to include unnamed characters.
1567 The `x' command in font description files has been removed: instead
1568 any unknown commands are automatically made available to the drivers.
1569 If you constructed your own font files with an earlier version of
1570 tfmtodit or afmtodit, you must construct them again using the current
1571 version.
1573 Characters between 0200 and 0237 octal are no longer legal input
1574 characters.  Note that these are not used in ISO 8859.
1576 A command called `grog' has been added, similar to the `doctype'
1577 command described in Kernighan and Pike.
1579 Groff
1580 -----
1582 The groff command has some new options: -V prints the pipeline
1583 instead of executing it; -P passes an argument to the postprocessor,
1584 -L passes an argument to the spooler.
1586 There is a C++ implementation of the groff command.  This handles some
1587 things slightly better than the shell script.  In particular, it can
1588 correctly handle arguments containing characters that have a special
1589 meaning to the shell; it can give an error message when child
1590 processes other than the last in the pipeline terminate abnormally;
1591 its exit status can take account of the exit statuses of all its child
1592 processes; it is a little more efficient; when geqn is used, it
1593 searches for the eqnchar file in the same way that font metric files
1594 are searched for, rather than expecting to find it in one particular
1595 directory.
1597 Gtroff
1598 ------
1600 There is font translation feature: For example, you can tell gtroff to
1601 use font `HR' whenever font `H' is requested with the line
1602   .ftr H HR
1603 This would be useful for a document that uses `H' to refer to
1604 Helvetica.
1606 There are some new number registers: `.kern' contains the current kern
1607 mode, `.lg' the current ligature mode, `.x' the major version number,
1608 `.y' the minor version number, `.ce' the number of lines to be
1609 centered in the current environment, `.trunc' the amount of vertical
1610 space truncated by the most recently sprung vertical position trap,
1611 `.ne' the amount of vertical space needed in the last `ne' request
1612 that caused a vertical position trap to be sprung.
1614 The `cf' request now behaves sensibly in a diversion.  If used in a
1615 diversion, it will now arrange for the file to be copied to the output
1616 when the diversion is reread.
1618 There is a new request `trf' (transparent file) similar to `cf', but
1619 more like `\!'.
1621 There is a new escape sequence `\Y[xxx]', roughly equivalent to
1622 `\X'\*[xxx]'', except that the contents of string or macro xxx are not
1623 interpreted, and xxx may contain newlines.  This requires an output
1624 format extension; the drivers have been modified to understand this.
1625 Grops has also been modified to cope with newlines in the arguments to
1626 \X commands; grops has a new \X command mdef, which is like def except
1627 that it has a first argument giving the number of definitions.
1629 There is a new warning category `escape' which warns about unknown
1630 escape sequences.
1632 The `fp' request now takes an optional third argument giving the external
1633 name of the font.
1635 The `\_' character is now automatically translated to `\(ul' as in troff.
1637 The environment variable `GROFF_HYPHEN' gives the name of the file
1638 containing the hyphenation patterns.
1640 There is a `\C'xxx'' escape sequence equivalent to `\[xxx]'.
1642 Characters ", ', ), ], *, \(dg are now initially transparent for the purposes
1643 of end of sentence recognition.
1645 There is an anti-recursion feature in the `char' request, so you can
1646 say `.char \(bu \s+2\(bu\s-2'.
1648 The limit on the number of font positions has been removed.
1649 Accordingly `\n[.fp]' never returns 0.
1651 The restriction on the number of numbered environments has been removed.
1653 There is a new escape sequence `\E' that makes it possible to
1654 guarantee that an escape sequence won't get interpreted in copy-mode.
1655 The `\R' escape sequence is accordingly now deprecated.
1657 Gpic
1658 ----
1660 Arguments of the form `X anything X' (in the `copy thru', `sh', `for',
1661 `if' and `define' constructs) can now be of the form `{ anything }'.
1663 If the `linethick' variable is negative (as it now is initially),
1664 lines will be drawn with a thickness proportional to the current point
1665 size.
1667 The `rand' function now takes no arguments and returns a number between
1668 0 and 1.  The old syntax is still supported.
1670 `^' can be used in expressions to indicate exponentiation.
1672 In the `for' construct the argument to the by clause can be prefixed
1673 by `*' to indicate that the increment is multiplicative.
1675 A bare expression may be used as an attribute.  If the current
1676 direction is `dir', then an attribute `expr' is equivalent to
1677 `dir expr'
1679 There is a `sprintf' construct that allows numbers to be formatted and used
1680 wherever a quoted string can be used.
1682 The height of a text object without an explicit height attribute is
1683 the number of text strings associated with the object times the value
1684 of the `textht' variable.
1686 The maximum height and width of a picture is controlled by the
1687 `maxpswid' and `maxpsht' variables.
1689 Gtbl
1690 ----
1692 Gtbl can now handle gracefully the situation where the `ce' request
1693 has been applied to a table.
1695 Geqn
1696 ----
1698 The `ifdef' primitive has been generalized.
1700 A tilde accent can be put underneath a box using `utilde'.  This
1701 defined using a general `uaccent' primitive.
1703 Grops
1704 -----
1706 There is a new PostScript font downloading scheme which handles font
1707 downloading for imported illustrations.  Previously, the name of the
1708 file containing the font was given in the `x download' line in the
1709 groff font metric file.  Now, there is a `download' file which says
1710 for each PostScript font name which file contains that font.  Grops
1711 can also now handle inter-font dependencies, where one downloadable
1712 font depends on some other (possibly downloadable) font.
1714 The `T' font has been removed.  The characters it used to provide are
1715 now provided by `char' definitions in tmac.ps. TSymbol.ps has also
1716 been removed, and the tweaks it provided are now provided by `char'
1717 definitions.