1 2000-03-03 Werner LEMBERG <wl@gnu.org>
3 * Makefile.in: Fixing $(subdir).
5 * README, NEWS: Small fixes.
7 * test-groff: Adding path to grolbp.
9 * configure.in: The (new) file src/xditview/Imakefile.in will be
10 also configured -- it is now possible to build gxditview in a
11 directory different from $srcdir.
13 2000-03-02 Blake McBride <blake@florida-software.com>
15 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
17 * MORE.STUFF: Added website of bell labs and info about plot2dev.
19 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
21 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
24 2000-02-29 Werner LEMBERG <wl@gnu.org>
26 Adding GNU getopt to the groff distribution.
28 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
30 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
31 * aclocal.a4: Remove GROFF_GETOPT function.
32 * configure.in, Makefile.in, PROBLEMS: Update.
33 * src/include/lib.h: Replace getopt tests with getopt.h.
34 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
36 * doc/groff.texinfo: Further checking/updating. Adding more index
39 * man/groff_out.man: Fix nroff mode activation (for emacs).
40 * man/groff_font.man: Add missing ligature.
42 2000-02-28 Werner LEMBERG <wl@gnu.org>
44 * doc/groff.texinfo: Further checking/updating. Adding more index
47 * src/devices/grolbp/grolbp.man: Added a comment line at the
48 beginning of the file (similar to shell scripts) which indicates
49 that `tbl' should be used as a preprocessor.
51 2000-02-27 Blake McBride <blake@florida-software.com>
53 Adapting groff to MS Visual C++ 6.0 compiler (tested with
54 Windows NT 4.0). Uses _MSC_VER define where necessary.
56 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
57 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
58 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
59 src/include/lib.h, src/libs/libgroff/errarg.cc,
60 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
61 src/preproc/refer/label.y, src/preproc/refer/label.cc,
62 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
63 src/roff/troff/div.cc, src/roff/troff/env.cc,
64 src/roff/troff/input.cc, src/roff/troff/node.cc,
65 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
66 if_to_a() to avoid name clashes.
67 * src/include/posix.h: Don't use unistd.h.
68 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
69 clause for integrating non-Unix xtmpfile() code.
70 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
71 structure; use "rt" for popen() in pipe_source(); add getpid()
73 * src/roff/troff/node.cc: Use special versions of popen() in
74 real_output_file() and pclose() in ~real_output_file().
76 2000-02-27 Werner LEMBERG <wl@gnu.org>
78 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
79 LBP-8 series laser printers). This code has been contributed by
80 Francisco Andres Verdu <pandres@dragonet.es>.
82 * src/devices/grolbp/*: The grolbp output device.
83 * font/devlpb/*: The font description files.
84 * Makefile.in: Add grolpb and devlbp subdirectories.
86 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
87 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
90 * doc/groff.texinfo: Further checking/updating. Adding more index
95 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
97 * man/groff_font.man: Adding info about obsolete DESC keywords.
98 * src/devices/grolj4/grolj4.man: Documenting additional DESC
101 2000-02-26 Werner LEMBERG <wl@gnu.org>
103 * src/preproc/grn/grn.man: Added info about the gremlin file format
104 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
106 2000-02-25 Werner LEMBERG <wl@gnu.org>
108 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
109 friends to be non-integer.
111 * src/preproc/grn/grn.man: Document it.
113 * doc/groff.texinfo: Further checking/updating. Adding more index
116 2000-02-24 Werner LEMBERG <wl@gnu.org>
118 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
119 line thicknesses to be integer multiples of this value.
121 * src/preproc/grn/grn.man: Commenting out the -s option -- the
122 corresponding code doesn't work (yet).
124 * doc/groff.texinfo: Further checking/updating. Adding more index
127 2000-02-23 Werner LEMBERG <wl@gnu.org>
129 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
130 specify line thickness instead of base units. The new default
131 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
132 thick lines respectively.
134 Removed unused variable `prevval'.
136 * src/preproc/grn/grn.man: Updated.
138 2000-02-22 Werner LEMBERG <wl@gnu.org>
140 * src/preproc/grn/main.cc: Slight formatting.
142 * src/roff/groff/groff.man: Formatting fix.
143 * src/preproc/grn/grn.man: Ditto.
145 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
147 * doc/groff.texinfo: Further checking/updating.
149 2000-02-21 Werner LEMBERG <wl@gnu.org>
151 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
153 * test-groff: Added grn subdir to path.
155 * doc/groff.texinfo: Some restructing and other small improvements.
157 * src/roff/groff/groff.cc (help): Fixed info string.
159 2000-02-20 Werner LEMBERG <wl@gnu.org>
161 * doc/meref.me: Fix description of .GS request.
163 * src/roff/troff/troff.man: Fixing typo.
165 Adding the `grn' preprocessor for gremlin graphic files.
167 * src/preproc/grn/*: This is the Berkeley distribution written by
168 David Slattengren and Barry Roitblat, adapted to groff by Daniel
169 Senderowicz and Werner Lemberg.
171 * doc/grnexampl.{me,g}: A sample for grn.
173 * Makefile.in: Added subdirectory entry for grn.
175 * src/roff/groff/groff.cc: Added support for grn. It can be now
176 called with the switch `-g'.
178 * src/roff/groff/groff.man: Updated.
180 * src/roff/grog/grog.{man,pl,sh}: Updated.
184 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
186 * src/include/lib.h: Added xtmptemplate and made xtmpfile
187 parametrically polymorphic.
189 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
190 and the alterations to xtmpfile.
191 xtmpfile can be requested to return the filename created
192 and asked not to unlink the temp file. The default behaviour
193 if parameters are absent is exactly the same as before.
195 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
197 A new request `length' is available which returns the length of a
198 string in a number register:
200 * src/roff/troff/input.cc (length_macro): Implement it.
201 * src/roff/troff/input.cc (init_input_requests): Register it.
203 2000-02-11 Werner LEMBERG <wl@gnu.org>
205 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
206 of the `substring' request.
208 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
211 * src/roff/troff/TODO, NEWS: Updated.
213 2000-02-09 Werner LEMBERG <wl@gnu.org>
215 * src/roff/groff/groff.man: Added an example.
217 2000-02-06 Werner LEMBERG <wl@gnu.org>
219 I've considerably modified the directory structure of the
220 distribution to get a more vertical layout. For example, the number
221 of top level directories has been reduced from 42 to 6.
223 As a consequence, many changes, especially to the makefiles, were
226 * The makefile variables `top_builddir' and `top_srcdir' have been
227 introduced. Virtually all relative paths have been replaced with
228 absolute ones using these two variables.
230 * Dependencies (in the files `Makefile.dep') are no longer part of
231 the distribution. Instead, they are created during a `make install'
232 in the build directory.
234 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
235 make `top_srcdir' and `top_builddir' absolute.
239 * Man pages no depend on the files `VERSION' and `REVISION'.
241 * The added shell script `mkinstalldirs' will replace `mkdir' in
244 * VERSION: Version number increased to 1.16.
246 2000-02-04 Werner LEMBERG <wl@gnu.org>
248 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
250 * Makefile.in: Removed $(tmac_m) since it is no longer needed
251 (after an update of the mm stuff).
253 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
255 2000-02-03 Werner LEMBERG <wl@gnu.org>
257 The .psbb request will now also accept Mac PS images (i.e. using LF
258 as the EOL character).
260 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
261 (with slight modifications).
262 * troff/input.cc (do_ps_file): Use it.
264 * test-groff: Add grohtml and grolj4 output devices to PATH.
266 2000-01-30 Werner LEMBERG <wl@gnu.org>
268 * NEWS, MORE.STUFF: Updated.
270 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
272 Add the `srand' command to pic.
274 * pic/lex.cc, pic/pic.y: Implement it.
275 * pic/pic.man: Document it.
276 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
278 2000-01-30 Werner LEMBERG <wl@gnu.org>
280 Add a new request `.psbb'. This does exactly what the external
281 program psbb did. It scans a PostScript image file for a
282 %%BoundingBox comment and extracts the bounding box values (in
283 PostScript units) which are then stored in the four new (read-only)
284 number registers `llx', `lly', `urx', and `ury'.
286 This will allow the usage of the .PSPIC macro without worrying
287 about unsafe behaviour of groff, i.e., it will work without the
288 `-U' switch of groff.
290 * troff/input.cc: Implement it.
291 * tmac/tmac.pspic: Use it.
292 * troff/troff.man, grops/grops.man, NEWS: Document it.
293 * psbb/*, Makefile.in: Remove it since it is no longer needed.
295 This is bloody C code simply adapted from psbb.c! Any improvements
298 2000-01-29 Werner LEMBERG <wl@gnu.org>
300 * man/groff_font.man: Minor clarifications.
304 2000-01-28 Werner LEMBERG <wl@gnu.org>
306 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
308 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
310 * man/groff_font.man: Brought up to date regarding tcommand
312 * libgroff/font.cc: Handle everything after `--' as a comment
314 * devps/*: Added comment delimiter inside devps font files.
316 2000-01-28 Werner LEMBERG <wl@gnu.org>
318 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
319 \fC...\fP (which now works as expected).
321 * troff/troff.man: Fix typo.
323 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
325 Completed the pass_filenames implementation in troff.
327 * libdriver/input.cc: Will read the new `F' tcommand.
328 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
329 * troff/input.cc: Use it.
331 2000-01-26 Werner LEMBERG <wl@gnu.org>
333 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
334 font will now be updated even if an invalid font is selected.
336 2000-01-24 Werner LEMBERG <wl@gnu.org>
338 * doc/homepage.ms: Updated for new tmac.arkup.
340 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
342 * tmac/tmac.arkup: Cleanup.
344 Added `\&' to .HTML macro to `leave vertical mode', so to say.
346 Removed obsolete .LINK macro completely.
348 The macros .URL, .FTP, and .MAILTO now accept a third argument which
349 will be immediately appended to the second argument (to be used with
350 punctuation, for example).
352 Disabled .CDFTP macro temporarily for security reasons.
354 * tmac/groff_markup.man: Complete revision for latest changes in
355 tmac.arkup -- note that it does not yet format correctly with
358 2000-01-23 Bruno Haible <haible@clisp.cons.org>
360 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
361 * devutf8/R.proto: Add mappings for wp, lh, rh.
362 * devutf8/NOTES: Updated.
364 2000-01-23 Werner LEMBERG <wl@gnu.org>
366 * doc/groff.texinfo: Updated version/copyright info.
368 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
370 Added support for two new directives in device descriptions:
371 `pass_filenames' (to pass the input file name to the output device)
372 and `use_charnames_in_special' (to support e.g. accented characters
375 * include/font.h, troff/charinfo.h: Declare it.
377 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
379 * devhtml/DESC: Use it.
381 * troff/input.cc: New function encoded_char.
383 * troff/token.h: Add test for `specialness'.
385 2000-01-21 Werner LEMBERG <wl@gnu.org>
387 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
388 mistake from the list of files to be installed.
390 2000-01-18 Werner LEMBERG <wl@gnu.org>
392 * README: Added info how to apply patches.
394 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
396 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
398 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
400 * troff/input.cc: Add support for troffrc-end.
402 * tbl/main.cc: Altered to issue table-start and table-end special
403 characters if using the html device.
405 * devhtml/*: Modified font files to incorporate html encoding of
408 * tmac/groff_markup.man: New file documenting tmac.arkup.
410 * tmac/troffrc-end: New file. This is invoked after all user
411 specified macros. Currently used by the html device to include
412 tmac.html. Thus no need for users to specify -mhtml anymore.
414 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
415 (MAN7): Add groff_markup.man.
417 * tmac/tmac.an, tmac/tmac.html: Small html updates.
419 * tmac/troffrc: tmac.arkup will now be called for the html device.
421 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
422 extra device specific information about fonts.
424 * doc/homepage.ms: New file. It is an example how an HTML home page
425 could look like with grohtml.
427 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
429 2000-01-12 Bruno Haible <haible@clisp.cons.org>
431 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
434 * devutf8/NOTES: Updated.
436 2000-01-08 Bruno Haible <haible@clisp.cons.org>
438 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
439 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
440 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
441 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
442 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
443 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
444 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
445 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
448 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
450 2000-01-12 Fabrizio Polacco <fab@prosa.it>
452 grolj4: Paper size will be searched case-insensitively.
454 * grolj4/lib.h: Add check for strcasecmp().
455 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
456 * configure.in: Check for strcasecmp().
458 2000-01-11 Werner LEMBERG <wl@gnu.org>
460 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
463 2000-01-10 Werner LEMBERG <wl@gnu.org>
465 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
468 Add a new read-only register, `.Y', which contains the groff
471 * troff/input.cc (init_input_requests): Define it.
472 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
473 * doc/groff.texinfo, troff/troff.man: Document it.
475 * libgroff/Makefile.sub (version.cc): Add definition of
476 `Version_string[]', consisting of `<major>.<minor>.<revision>'
477 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
478 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
479 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
480 troff/input.cc, pfbtops/pfbtops.c: Use it.
482 2000-01-10 Fabrizio Polacco <fab@prosa.it>
484 Add a revision scheme to the groff package.
486 * REVISION: New file.
487 * libgroff/Makefile.sub (version.cc): Use it to define
489 * grops/psrm.cc: Use revision_string (converted to an unsigned
490 integer) in constructor of resource_manager.
492 2000-01-10 Bruno Haible <haible@clisp.cons.org>
494 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
496 * Makefile.in (DEVDIRS): Add devutf8.
497 * grotty/tty.cc: Include device.h.
498 (glyph): Change type of `code' to `unsigned int'.
499 (tty_printer): New field is_utf8. Constructor takes device argument.
500 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
501 (tty_printer::add_char): Change type of first arg to `unsigned int'.
502 (tty_printer::put_char): New function.
503 (tty_printer::end_page): Use put_char() instead of ::putchar().
504 (make_printer): Pass device to tty_printer constructor.
505 * nroff.sh: Determine default device by calling 'locale'. As a
506 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
507 Recognize UTF-8 locales.
508 * tmac/eqnrc: Recognize utf8 like latin1.
509 * tmac/troffrc: Device utf8 needs tmac.tty.
511 2000-01-07 Werner LEMBERG <wl@gnu.org>
513 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
515 2000-01-07 Paul Eggert <eggert@twinsun.com>
517 Add a new predefined writeable number register, `year',
518 which contains the current year.
520 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
521 * tmac/tmac.s: Use it.
522 * troff/input.cc (init_registers): Initialize it.
524 2000-01-06 Werner LEMBERG <wl@gnu.org>
526 * PROBLEMS: Fixed typo.
528 2000-01-04 Paul Eggert <eggert@twinsun.com>
530 * PROBLEMS: Add Y2k advice for the yr number register.
532 2000-01-03 Paul Eggert <eggert@twinsun.com>
534 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
536 2000-01-02 Werner LEMBERG <wl@gnu.org>
538 * tmac/tmac.arkup: Slight modification of macros to provide better
539 appearance for non-HTML formats.
541 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
543 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
544 does not automatically translate to malloc(n) on all OSes
545 (e.g., SunOS) so do it explicitly. Also, check the returned
548 2000-01-01 Werner LEMBERG <wl@gnu.org>
550 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
552 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
553 expects this variable
555 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
557 * doc/Makefile: Added instructions to create HTML and text
558 versions of some files.
560 1999-12-31 Werner LEMBERG <wl@gnu.org>
562 * Updated INSTALL.gen.
564 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
565 better resp. correctly with non-HTML devices.
567 Version 1.15 released
568 =====================
570 1999-12-28 Werner LEMBERG <wl@gnu.org>
572 * NEWS, VERSION: Changed to 1.15
574 1999-12-27 Paul Eggert <eggert@twinsun.com>
576 * nroff/nroff.man: -S is safer, not safe.
578 * groff/groff.cc (main): Use `safer', not `safe', in variable
579 names. This does not change the behavior.
581 * troff/input.cc (main): Likewise.
583 * nroff/nroff.sh: Likewise.
585 * troff/input.cc (prepend_string): New function.
586 (main): Prepend -msafer, so that we check macro libraries for
589 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
591 Version 1.14 released
592 =====================
594 1999-12-26 Werner LEMBERG <wl@gnu.org>
596 * NEWS, VERSION: Changed to 1.14.
598 1999-12-24 Werner LEMBERG <wl@gnu.org>
600 * refer/refer.cc: Fixing the last fix.
602 Version 1.13 released
603 =====================
605 1999-12-23 Werner LEMBERG <wl@gnu.org>
607 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
612 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
614 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
615 document conventions, the version number must be a real.
617 Version 1.12.1 released
618 =======================
620 1999-12-22 Werner LEMBERG <wl@gnu.org>
622 * VERSION: Changed to 1.12.1.
624 1999-12-22 Alan Rooks <arooks@istar.ca>
626 * refer/refer.cc (do_file): Slight modification to satisfy the
627 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
630 1999-12-20 Werner LEMBERG <wl@gnu.org>
632 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
635 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
636 list of unsafe requests.
638 * pic/pic.man: Fixed a typo.
640 * man/groff_out.man: Fixed a typo.
642 1999-12-18 Werner LEMBERG <wl@gnu.org>
644 * Makefile.in: Doc fixes.
646 1999-12-17 Fabrizio Polacco <fab@prosa.it>
648 * groff/groff.cc: Missing `U' option added to getopt().
650 * troff/troff.man: Missing `U' option added to synopsis.
652 Version 1.12 released
653 =====================
655 1999-12-14 Werner LEMBERG <wl@gnu.org>
657 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
660 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
661 with the more appropriate terms `safer' and `unsafe'.
663 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
664 sys_nerr and sys_errlist[].
666 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
668 * pic/pic.y, pic/pic.cc: Added check for fmod().
670 1999-12-13 Werner LEMBERG <wl@gnu.org>
672 * VERSION: Changed to 1.12.
674 Here some patches from various sources; most of them taken from
675 the Debian distribution.
677 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
678 tmac/Makefile.sub: New files copied directly from the NetBSD
679 distribution. Probably, some additional adaptation later on is
682 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
685 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
686 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
687 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
688 (`-S') is now the default.
690 * README, NEWS: Updated.
692 1999-12-09 Werner LEMBERG <wl@gnu.org>
694 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
696 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
698 1999-12-06 Werner LEMBERG <wl@gnu.org>
700 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
701 grief than relief today. Additionally, it is against the GNU
704 * configure: Recreated.
706 1999-12-05 Werner LEMBERG <wl@gnu.org>
708 * configure.in: Added GROFF_LIBM.
710 * configure: Recreated.
712 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
715 * Makefile.in: Added definition of $(LIBM).
717 * Makefile.comm (LIBM): Removed.
719 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
721 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
723 * doc/Makefile: Added rule for generation pic.html.
725 (clean): Files produced by grohtml will be removed also.
727 * doc/pic.ms: Small fix.
729 * tmac/tmac.html: Fixed suppression of headers.
731 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
733 * tmac/tmac.html: Fixing horizontal arrows.
735 Turning off hyphenation.
737 * tmac/tmac.an: Improved support for grohtml; better indentation,
740 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
742 * tmac/tmac.arkup: Added CDFTP macro
744 * tmac/tmac.html: All headers are turned off for ms, me, and mm
747 * tmac/troffrc: Some additions for HTML stuff.
749 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
751 * tmac/tmac.html: Small changes.
753 1999-09-26 Werner LEMBERG <wl@gnu.org>
755 * doc/groff.texinfo: Minor fixes.
757 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
759 * devhtml/TR: Changed spacewidth to 3.
761 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
763 * tmac/tmac.html: Moved markup macros to tmap.arkup.
765 * tmac/tmac.arkup: New file.
767 * grohtml/ChangeLog: New file.
769 1999-09-16 Werner LEMBERG <wl@gnu.org>
771 * doc/groff.texinfo (Common Features): Added Copying chapter.
772 Changed format to @smallbook.
774 1999-09-15 Werner LEMBERG <wl@gnu.org>
776 * NEWS: Added info about groff.texinfo.
778 * doc/groff.texinfo: Will now compile (using texi2dvi) without
781 1999-09-14 Werner LEMBERG <wl@gnu.org>
783 * groff/groff.man: More updates.
785 1999-09-13 Werner LEMBERG <wl@gnu.org>
787 * doc/groff.texinfo: New file. This manual is still very
788 rudimentary. It has been originally contributed by Trent
789 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
792 * INSTALL: Added information about the `doc' subdir
794 * troff/troff.man: Minor fixes.
796 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
799 * troff/input.cc (usage): Added missing `-ffam' to usage message.
801 * Makefile.in (dist): groff-$(version).tar.gz must be removed
802 also, otherwise it is included itself in another call of `make
805 * groff/groff.cc (synopsis): Removed superfluous space.
807 * PROJECTS, PROBLEMS, NEWS: Updated.
809 * xditview/Makefile: Removed.
811 * VERSION: Updated to 1.12beta.
813 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
815 * README: Updated: Included documentation about CVS repository,
816 mailing lists, and daily snapshots.
818 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
820 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
822 * tmac/tmac.an: If the tag didn't fit into the space that the
823 macro `TP' specifies, the rest of the tag went into the space for
826 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
828 * grolj4/lj4.cc: Added duplex printing (option `-d').
830 * grolj4/grolj4.man: Document duplex printing.
832 1999-09-12 Werner LEMBERG <wl@gnu.org>
834 * doc/Makefile (pic.ps): Fixed rule which caused problems with
835 non-GNUish sed programs.
837 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
840 * configure.in (LIBS): Added `-lc'
842 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
844 * pic/tex.cc (solid_arc): Casting M_PI to double.
846 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
848 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
849 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
850 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
852 * groff/groff_man.man: New file. This manual page was originally
853 written for the Debian GNU/Linux system by Susan G. Kleinmann
856 * eqn/list.cc (list_box::compute_metrics,
857 list_box::compute_sublist_width): Removed variable declaration to
858 avoid shadowing warnings.
860 * grops/psrm.cc (resource_manager::process_file): Ditto.
862 * tfmtodit/tfmtodit.cc (main): Ditto.
864 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
865 to avoid shadowing warnings.
867 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
868 shadowing loop variable.
870 * groff/groff.man, troff/troff.man: Added doc about grohtml.
872 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
874 New grohtml frontend to convert groff input to html.
876 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
878 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
880 * tmac/eqnrc: Added html device.
882 * tmac/tmac.html: New file.
884 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
885 (troff_output::start_picture, troff_output::finish_picture),
886 tbl/main.cc (process_input_file):
887 Surrounded output with `graphics_start' and `graphics_end' so that
888 the html driver can identify non-text portions.
890 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
891 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
892 grotty/tty.ps (tty_printer::set_char): Additional parameter
895 * include/printer.h: Class printer: New function
896 set_char_and_width; new variables (is_char_named, is_named_set,
897 named_command, named_char_s, named_char_n) to hold information
898 about named characters -- needed by the html driver.
900 * libdriver/printer.cc (printer::set_ascii_char,
901 printer::set_special_char): Use set_char_and_width.
903 * devhtml/*: New device files for html driver.
905 * grohtml/*: New driver grohtml.
907 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
909 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
912 1999-09-11 Luke Mewburn <lukem@netbsd.org>
914 * libgroff/string.cc (search): Small fix to test against NULL
917 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
919 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
920 \b'abc') were stacked in reverse order when processed in a
923 * troff/node.h: Added `*last' to struct `node' to make the above
926 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
927 The default scale for the 'f' and 't' graphics functions were 'm'
928 rather than 'u' (i.e., no scaling).
930 1999-09-11 Peter Miller <peterm@jna.com.au>
932 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
933 do_file), soelim/soelim.man: Added `-I file' option to soelim,
934 defining include paths.
936 * soelim/soelim.cc (include_path_append): New function.
938 1999-09-11 Larry Jones <larry.jones@sdrc.com>
940 * tbl/main.cc (process_options): Unix (at least Documenter's
941 Workbench) tbl allows arbitrary non-alpha characters between
944 1999-09-11 Paul Eggert <eggert@twinsun.com>
946 Y2k fixes. Don't assume that the current year precedes 2000.
948 * doc/meref.me: Add \n(y2, \n(y4.
950 * tmac/doc-common (Yr): New number register.
951 (Dd): Don't assume current year precedes 2000.
953 * tmac/tmac.e (td): Likewise.
954 (y2, y4): New number registers.
956 * pic/pic.man: Update reference for pic paper to May, 1991
959 1999-09-11 Werner LEMBERG <wl@gnu.org>
961 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
962 Removed quotation marks which prevented correct expansion of
965 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
967 1999-09-10 Werner LEMBERG <wl@gnu.org>
969 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
972 * Removed configure.old.
974 1999-08-31 Werner LEMBERG <wl@gnu.org>
976 * VERSION: Updated to 1.11.1
978 1999-05-27 Werner LEMBERG <wl@gnu.org>
980 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
982 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
983 added quotations around $(tmac_wrap) to avoid syntax error if
986 * configure: Newly generated using autoconf 2.13.
988 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
990 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
992 * README, PROJECTS, NEWS, INSTALL, VERSION,
993 doc/Makefile. doc/pic.ms, groff/groff.man:
994 Prepare for 1.11 release. No code changes.
995 Documentation for pic added (doc/pic.ms).
997 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
999 * Version 1.10 released.
1001 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
1003 * afmtodit/afmtodit.pl: Avoid comment on first line.
1005 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
1007 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1008 * configure.in: Call it.
1010 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1011 (distfiles): Doesn't depend on config.log or config.cache.
1013 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
1015 * grog/grog.sh: Use print "" rather than print in END rule.
1017 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
1019 * tbl/main.cc (process_data): Don't give error for excess data
1020 entries that are comments.
1022 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
1024 * tbl/main.cc (process_data): Fix case where new for-scope rules
1025 silently change meaning of code.
1027 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
1029 * troff/env.cc (hyphenate): Loop over all consecutive sequences
1030 of non-zero hyphenation codes.
1032 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
1034 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1036 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
1038 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1040 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
1042 * tmac/tmac.andoc: Make it work in compatibility mode.
1044 * refer/token.h (token_info::is_range_sep): New function.
1045 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1046 * refer/ref.cc (reference::output): More sophisticated check for
1049 * devps/prologue.ps (MANUAL): New procedure.
1050 * grops/ps.cc (main): New -m option.
1051 (usage): Include -m.
1052 (ps_printer::~ps_printer): Implement -m.
1054 * aclocal.m4 (GROFF_G): New macro.
1055 * configure.in: Call it.
1056 * Makefile.in (g): Provided by configure.
1058 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1060 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1063 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1064 (tmac_m, tmac_s): Deleted.
1065 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1066 tmac_s_prefix): New variables.
1067 (MDEFINES): Change accordingly.
1068 * Makefile.comm (.man.n): Use new TMAC_* variables.
1069 * configure.in (GROFF_TMAC): Call.
1070 * aclocal.m4 (GROFF_TMAC): Define.
1071 * tmac/Makefile.sub (stamp_wrap): New target.
1072 (install_data, uninstall_sub): Handle macro wrapping.
1074 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1076 * tbl/main.cc (main): Ignore -T option.
1078 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1080 * devlj4/generate/special.map: Add definition of \(nb.
1082 * tmac/tmac.dvi: Add definition of \(nb.
1084 * troff/dictionary.c (dictionary::dictionary): association::v gets
1085 initialized by association::association.
1087 * tmac/Makefile.sub: Avoid using temporary files when installing.
1089 * troff/env.cc (environment::set_font): Make bad font number a
1092 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1094 * Makefile.in (datadir): Use share rather than lib.
1096 * groff/groff.cc (basename): Rename to xbasename.
1098 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1100 * Makefile (CCLIBS): Don't use.
1101 * Makefile.ccpg: Likewise.
1103 * acgroff.m4: Rename to...
1104 * aclocal.m4: Modify extensively for autoconf 2.
1105 * configure.in: Likewise.
1106 * Makefile.in: Likewise.
1108 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1110 (xstrsignal): Check for definition of NSIG. Conditionalize
1111 on SYS_SIGLIST_DECLARED. Make return type const.
1113 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1115 * troff/input.cc (interpolate_macro): Rephrase missing space
1118 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1120 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1121 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1122 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1123 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1124 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1125 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1126 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1127 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1128 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1129 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1130 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1133 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1135 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1137 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1139 (macro_iterator::macro_iterator): Add additional argument.
1141 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1143 * troff/div.cc (vertical_size::vertical_size): In place of integer
1144 specifying line spacing use cunits specifying post vertical
1146 (macro_diversion::output, top_level_diversion::output): Likewise.
1147 * troff/div.h: Change declarations accordingly.
1148 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1150 (pending_output_line::pending_output_line,
1151 pending_output_line::output, environment::output,
1152 environment::output_line, environment::output_title,
1153 environment::hyphenate_line): In place of
1154 integer specifying line spacing use cunits specifying post vertical
1156 (environment::environment): Add post_vertical_spacing and
1157 prev_post_vertical_spacing arguments.
1158 (environment::get_post_vertical_spacing): New function.
1159 (environment::total_post_vertical_spacing): New function.
1160 (environment::post_vertical_spacing): New function.
1161 (init_env_requests): Initialize pvs request and .pvs register.
1162 * troff/env.h: Change declarations.
1164 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1166 * tmac/tmac.pspic: Immediately remove the temporary file.
1168 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1170 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1171 height is specified.
1173 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1175 * tbl/table.c (struct vertical rule, class table_entry): Use int
1176 not short for start_row and end_row.
1178 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1180 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1182 (diverted_space_node::reread, process_input_stack): Call
1183 trapping_blank_line() rather than blank_line().
1184 (init_input_requests): Bind "blm" to blank_line_macro().
1186 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1188 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1190 * troff/env.cc (environment::possibly_break_line): Require that
1191 width total excluding width of final space node be greater than
1192 the target text length.
1194 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1196 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1198 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1200 * troff/node.cc (charinfo_node): New class.
1201 (glyph_node, composite_node): Derive from charinfo_node. Change
1202 member functions accordingly.
1204 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1206 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1208 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1210 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1212 * devps/generate/textmap (notsubset): Add.
1214 * tmac/tmac.a4: New file.
1216 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1218 * pic/main.cc (had_parse_error): New variable.
1219 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1221 (main): Return 1 if had_parse_error is true.
1223 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1225 * grolj4/lj4.cc (main): Avoid use of strtoul.
1227 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1229 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1230 iso_8859_1 or $LESSCHARSET is latin1.
1232 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1234 * hpftodit: New directory.
1235 * Makefile.in (CCPROGDIRS): Add hpftodit.
1236 * devlj4/generate: New directory.
1238 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1240 * configure.in: Don't use AC_VFORK.
1241 * groff/pipeline.c (run_pipeline): Use fork() always.
1243 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1245 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1247 * Makefile.in (CCPROGDIRS): Add grolj4.
1248 (DEVDIRS): Add devlj4.
1249 * grolj4, devlj4: New directories.
1250 * tmac/troffrc: Handle lj4.
1251 * tmac/tmac.lj4: New file.
1253 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1255 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1257 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1259 * troff/input.cc (do_if_request): At end of second string, switch
1260 environments before getting next token.
1262 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1264 * devps/psstrip.sed: Split rule that strips whitespace on either
1267 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1269 * troff/node.h (font_family::make_definition): Add return value to
1270 declaration. * troff/symbol.h (symbol::operator==,
1271 symbol::operator!=): Likewise.
1273 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1275 * groff/groff.cc (main, help, synopsis): Handle -S.
1276 (possible_command::insert_arg): New function.
1278 * tmac/tmac.safer: New file.
1279 * tmac/msafer.man: New file.
1280 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1282 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1284 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1285 * pic/pic.y (placeless_element): Avoid unsafe operations if
1286 `safer_flag' is set.
1287 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1289 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1291 * eqn/lex.cc (get_token): Put call to add_context() in block to
1292 work around Sun C++ 4.0 bug.
1294 * include/stringclass.h (operator +): Use ?: instead of `if' to
1295 work around Sun C++ 4.0 bug.
1297 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1299 * tbl/main.cc (process_format): Accept - as a synonym for the _
1302 * libbib/index.cc (minus_one): Don't declare as const.
1304 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1306 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1308 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1310 * troff/input.cc (write_macro_request): New function.
1311 (init_input_requests): Bind write_macro_request to writem.
1313 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1315 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1318 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1320 * tmac/tmac.s (@TS): Renamed from TS.
1321 (TS): Call LP then TS again.
1322 (cov*ab-init): Alias @TS to TS.
1324 * tmac/tmac.s: Allow QP or RS to initialize.
1326 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1327 Move initializations of PS and LL here.
1328 (par@init): Don't initialize HY. Avoid changing environment 0.
1329 (par*env-init): Don't all par@reset.
1331 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1333 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1335 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1337 * Makefile.in (MDEFINES): Add LDFLAGS.
1338 (LDFLAGS): Add definition line.
1340 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1342 * troff/input.cc (get_optional_char): Split off error check into...
1343 (check_missing_character): New function.
1344 * troff/token.h: Declare it.
1345 * troff/env.cc (margin_character): Don't call get_optional_char.
1346 Only call tok.next() after making the node.
1348 * include/lib.h (getopt): Make 2nd argument char *const *.
1350 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1352 * nroff/conftest.sh: Deleted.
1354 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1356 * pic/make-dos-dist: Deleted.
1358 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1360 * devps/psstrip.sed: Strip comments before stripping trailing
1363 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1365 * Version 1.09 released.
1367 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1369 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1371 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1373 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1375 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1377 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1378 about returning without a value.
1380 * troff/charinfo.h (charinfo::get_special_translation): Cast
1381 TRANSLATE_NONE to int.
1383 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1384 test. Fix test so that it works with n unsigned.
1386 * pic/pic.y (defaults_table): Fully bracket initializer.
1387 * pic/lex.cc (lookup_keyword): Likewise.
1388 * eqn/lex.cc (token_table, def_table): Likewise.
1389 * eqn/box.cc (param_table): Likewise.
1390 * troff/input.cc (warning_table): Likewise.
1391 * libgroff/font.cc (table): Likewise.
1392 * grops/ps.cc (ps_printer::special): Likewise.
1393 * grops/psrm.cc (resource_manager::process_file): Likewise.
1394 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1395 * refer/command.cc (command_table): Likewise.
1396 * addftinfo/addftinfo.cc (param_table): Likewise.
1398 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1399 about temp's being unused.
1400 (unused): New function.
1402 * groff/pipeline.cc: Declare c_fatal.
1404 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1407 * libbib/index.cc (index_search_item::load): Prevent compiler
1408 warnings about fd_closer's being unused.
1409 (unused): New function.
1411 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1413 * troff/input.cc (copy_mode_error): Make `prefix' static.
1416 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1418 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1419 HAVE_CC_OSFCN_H and modify accordingly.
1421 * troff/input.cc (init_charset_table): radicalex overlaps
1424 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1425 udodo!hans@relay.NL.net).
1426 * groff/configure.in: Call it.
1428 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1429 * groff/configure.in: Call it.
1430 * include/lib.h: Conditionalize declaration of pclose.
1432 * troff/div.cc (last_page_number): New global variable.
1433 (top_level_diversion::begin_page): Exit if we just printed the
1435 * troff/div.h (last_page_number): Declare it.
1436 * troff/input.cc (parse_output_page_list): Set last_page_number.
1438 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1439 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1440 tmac/tmac.X: Likewise.
1441 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1442 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1444 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1446 * tmac/doc-ditroff (hK): Remove groff specific code which
1447 prevented page-breaks between separate manual entries. If this is
1448 the first page, don't set the page number to 1.
1450 * acgroff.m4 (GROFF_POSIX): New macro.
1451 * configure.in: Use it.
1453 * troff/node.cc (class real_output_file,
1454 real_output_file::real_output_file,
1455 real_output_file::~real_output_file): Conditionalize use of
1456 popen/pclose on POPEN_MISSING.
1457 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1458 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1459 (pipe_source): Similarily.
1461 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1463 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1464 presence of declarations by trying to compile example with
1465 conflicting declarations. (gcc only gives a warning for missing
1468 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1470 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1471 (from Ulrich Lauther).
1473 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1475 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1477 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1479 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1480 pointers and ints have different sizes.
1482 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1484 * tmac/tmac.s (par*env-init): Call par@reset.
1486 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1488 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1490 (par*push-tag-env, par*pop-tag-env): New macros.
1492 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1494 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1495 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1497 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1498 comment. Include <time.h>.
1500 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1502 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1503 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1506 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1508 * troff/input.cc (read_request): Only print a prompt if reading
1509 from the terminal. Also clearerr on EOF if reading from the
1510 terminal. Declare isatty.
1512 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1514 * refer/label.y: Rename map_t to map_func and extractor_t to
1517 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1519 * include/assert.h: Don't use volatile.
1520 * libgroff/assert.cc: Likewise.
1522 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1524 * troff/input.cc (abort_request): Look at character in tok before
1527 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1529 * troff/troff.h (NO_RETURN): Deleted.
1530 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1531 * troff/input.cc (exit_troff): Likewise
1533 * Makefile.in: Remove `Making ...' messages since GNU make now
1536 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1538 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1540 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1543 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1545 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1547 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1549 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1550 MARK_REG if there was no left delimiter.
1552 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1554 * pic/troff.cc (troff_output::text): Set line thickness to
1555 relative before outputting text.
1557 * tmac/tmac.e (@k): Don't zero ?T.
1560 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1562 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1564 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1566 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1569 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1571 * troff/input.cc (ignoring): New variable.
1572 (ignore): Set ignoring during call to do_define_macro.
1573 (do_define_macro): Clear ignoring before interpolating terminating
1575 (copy_mode_error): New function.
1576 (get_char_for_escape_name, read_long_escape_name,
1577 interpolate_arg): Use copy_mode_error.
1578 (warning_table): Add WARN_IG.
1579 * troff/troff.h (WARN_IG): Declare.
1580 (WARN_TOTAL): Change accordingly.
1582 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1583 * groff/groff.cc (strsignal): Delete declaration.
1585 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1587 * troff/div.cc (page_offset): Use 'm' as default scaling.
1589 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1591 * nroff/nroff.sh: Ignore -u.
1593 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1595 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1597 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1599 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1601 (B2): With -Tascii, leave additional vertical space before
1602 and after. Ensure that the left and right indent is restored to
1603 what it was even if the point size changes. Don't call
1604 par@finish. Change the indent, line length and title length
1605 directly. With -Tascii, make the width of the box 1n less.
1606 (B1): Remember 1n at the current point size. Don't call
1607 par@reset. Change the indent, line length and title length
1608 directly. Ensure that the temporary indent is preserved.
1609 (par*box-mark-top): Turn off no spacing mode.
1611 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1613 * Makefile.in (dist): Use .gz suffix.
1615 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1617 * troff/input.cc (main): Add return 0.
1618 * pic/main.cc (main): Use return instead of exit.
1619 * tbl/main.cc (main): Likewise.
1620 * eqn/main.cc (main): Likewise.
1621 * grops/ps.cc (main): Likewise.
1622 * grotty/tty.cc (main): Likewise.
1623 * groff/groff.cc (main): Likewise.
1624 * grodvi/dvi.cc (main): Likewise.
1625 * refer/refer.cc (main): Likewise.
1626 * indxbib/indxbib.cc (main): Likewise.
1627 * lkbib/lkbib.cc (main): Likewise.
1628 * soelim/soelim.cc (main): Likewise.
1629 * addftinfo/addftinfo.cc (main): Likewise.
1630 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1631 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1633 * troff/token.h (process_input_stack): Don't declare as static.
1634 * troff/input.cc: Likewise.
1636 * troff/node.c (invalidate_fontno): Make it a static member of
1637 class font_family. Change callers.
1638 * troff/node.c: Change declaration.
1640 * tbl/main.cc (struct input_entry_format): Add explicit public
1642 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1643 struct double_hline_stuff): Likewise.
1644 * tbl/table.h (struct entry_format): Likewise.
1645 * pic/object.h (struct saved_state): Likewise.
1647 * include/stringclass.h: Add forward declarations of friend
1648 functions that are later declared as inline. Don't include inline
1649 specifier in friend declaration.
1651 * libgroff/lib.h: Declare popen and pclose.
1652 * acgroff.m4 (GROFF_POPEN): New macro.
1653 * configure.in: Call it.
1655 * include/lib.h (PI): New constant. Undef first if necessary.
1656 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1657 * grops/ps.cc (degrees, radians): Likewise.
1658 * libgroff/font.cc (font::get_skew): Likewise.
1660 * grops/ps.cc (is_ascii): New function.
1661 (ps_output::put_string): Use is_ascii. Use csprint rather than
1663 (ps_printer::define_encoding): Use csspace.
1664 * libgroff/strtol.c (ISASCII): New macro.
1665 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1666 Use ISASCII rather than isascii.
1667 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1668 * libgroff/cset.cc: Likewise.
1669 * libdriver/input.cc: Include cset.h.
1670 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1673 * refer/refer.cc (main): Use %ld rather than %d for longs.
1675 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1678 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1680 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1682 * troff/input.cc (hyphenation_code): Skip white space between
1685 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1687 * tbl/table.h (table::entry_list_tailp): New member.
1688 (table::table): Initialize it.
1689 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1692 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1694 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1695 with negative horizontal positions. Remove casts of glyph::hpos to
1697 (USHRT_MAX): Delete definition.
1698 (SHRT_MAX, SHRT_MIN): New definitions.
1699 (glyph::hpos): Change type to short.
1700 (tty_printer::end_page): Output multiple backspaces if necessary.
1701 Remove casts of glyph::hpos to int.
1703 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1705 * tmac/tmac.s (@RT): New definition.
1707 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1709 * refer/refer.cc (do_file): Make sure current_filename is set when
1712 * pic/common.cc (common_output::dot_line): Handle zero length
1715 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1717 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1718 (par@init): Initialize \n[HY].
1720 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1722 * troff/dictionary.cc (dictionary::remove): Continue when
1725 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1727 * Makefile.com (.y.cc): Avoid ending up with two versions of
1730 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1732 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1733 (\(,C): Likewise. Also fix typo.
1735 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1737 * lib.h: Delete extraneous semi-colon.
1739 * Add pso request: `so' from a pipe.
1740 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1741 (file_iterator::close): New function.
1742 (file_iterator::~file_iterator, file_iterator::next_file): Use
1743 file_iterator::close.
1744 (file_iterator::backtrace): Say `process' rather than `file' when
1745 the stream is popened.
1746 (pipe_source): New function.
1747 (init_input_requests): Bind ".pso" to pipe_source.
1749 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1751 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1753 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1754 digits in lower case.
1756 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1758 * Version 1.08 released.
1760 * Makefile.in (dist): Insert || true after ln -s commands that
1763 * mm: Update to mm 1.16.
1765 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1766 * configure.in: Call GROFF_CSH_HACK. Substitute for
1768 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1770 * nroff/Makefile.sub (nroff): New target.
1771 (install_data): Install nroff.
1772 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1773 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1775 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1777 * eqn/Makefile.sub (neqn): Add chmod +x.
1779 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1781 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1783 * troff/input.cc (string_iterator::string_iterator()): Initialize
1786 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1788 * troff/div.cc (macro_diversion::space,
1789 top_level_diversion::space): Don't set high_water_mark.
1790 (macro_diversion::output, top_level_diversion::output): Don't
1791 include post line space in high water mark.
1793 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1795 * eqn/eqn.y: Don't define YYDEBUG.
1796 * pic/pic.y: Likewise.
1798 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1800 * tmac/tmac.e ([3): Add space after comma following editors.
1801 Change double spaces to single spaces.
1802 ([4): Change double spaces to single spaces.
1804 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1805 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1806 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1807 after %!PS-Adobe- (for Newsprint).
1809 * troff/div.cc (top_level_diversion::begin_page): When
1810 before_first_page is 1, set page_number to 1.
1812 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1814 * eqn/box.cc (box::top_level): Protect equation with \&.
1816 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1818 * groff/groff.cc (possible_command::set_name): Delete old name.
1820 * groff/groff.cc (possible_command::~possible_command): Use
1823 * troff/node.cc (troff_output_file::begun_page): New member.
1824 (troff_output_file::troff_output_file): Initialize it.
1825 (troff_output_file::really_begin_page): Only output V command if a
1826 page has been begun.
1828 * pic/pic.y (placeless_element): Delete argument to PRINT after
1831 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1833 * Make wrapman work.
1834 * troff/div.h (class top_level_diversion): Replace
1835 first_page_begun by before_first_page (with opposite sense).
1836 * Change first_page_begun to before_first_page inverting sense.
1837 * troff/div.cc (class nl_reg): New class.
1838 (init_div_requests): Use class nl_reg for \n(nl.
1839 (top_level_diversion::begin_page): Don't call
1840 output_file::begin_page if before_first_page is 2;
1841 reset before_first_page afterwards. If have_next_page_number is
1842 false, then always increment page_number.
1843 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1844 Restore compatibility mode after loading, and then disable
1845 compatibility mode in TH.
1847 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1849 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1851 * troff/node.h (output_file::trailer): Declare.
1852 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1853 * troff/node.cc (output_file::trailer): New function.
1854 (troff_output_file::~troff_output_file): Move most code into...
1855 (troff_output_file::trailer): New function.
1856 (class troff_output_file): Delete page_length member. Declare
1858 (troff_output_file::really_begin_page): Use current page length
1859 for final V command.
1861 * tbl/main.cc (struct options): New decimal_point_char member.
1862 (options::options): Initialize this.
1863 (process_options): Implement decimalpoint option.
1864 (process_data): Pass decimal_point_char option to table::table.
1865 * tbl/table.h (class table): New decimal_point_char member.
1866 (table::table): Add additional argument.
1867 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1868 second argument specifying decimal point character. Use this
1870 (table::table): Initialize decimal_point_char.
1871 (table::add_entry): Change call to find_dot.
1873 * troff/input.cc (get_copy, token::next): Implement \V.
1874 (interpolate_environment_variable): New function.
1876 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1878 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1879 * pic/pic.y: Likewise.
1881 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1883 * refer/ref.cc (reference::insert_field, reference::delete_field):
1885 * troff/number.cc (parse_term): Likewise.
1887 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1888 * configure.in: Use GROFF_PROG_YACC.
1890 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1892 * Makefile.in (OPTIMIZE): New define.
1893 (DEBUG): Empty by default.
1894 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1896 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1897 (GROFF_ARRAY_DELETE): Likewise.
1898 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1900 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1902 * devps/psstrip.sed: Use different delimiter on last line (so that
1903 it works with BSD 4.4 sed.)
1905 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1907 * devps/psstrip.sed: Delete comments.
1909 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1910 optind, opterr, optarg.
1911 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1914 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1916 * Makefile.in (check): Dummy target.
1918 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1920 * Version 1.07 released.
1922 * Integrate mm 1.11.
1924 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1925 where start_col was meant.
1927 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1929 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1931 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1933 * troff/input.cc (token::next): Make \z\o'...' and similar things
1936 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1938 (environment): Add margin_character_flags member.
1939 * env.cc (environment::environment(symbol),
1940 environment::environment(const environment *): Initialize
1941 margin_character_flags.
1942 (margin_character): Rewrite.
1943 (environment::output_line): Add a margin character if
1944 margin_character_flags is non-zero. Turn off the
1945 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1946 zero, use margin_character_node without copying and then set
1947 margin_character_node to 0.
1949 * devps/DESC.in: Change minimum size to 1000.
1951 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
1953 * troff/symbol.h (symbol::hash): Change return type to unsigned
1955 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1958 * test-groff: Use -r rather than -x.
1960 * grops/psfig.diff: Include in distribution again.
1962 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
1964 * Makefile.in (dist): Use gzip.
1966 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
1968 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1969 unistd.h as well as in stdlib.h.
1970 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1971 defined; otherwise include <sys/types.h> and <unistd.h> if
1972 UNISTD_H_DECLARES_GETOPT is defined.
1974 * configure.in: use builtin(include, ... rather than include(...
1975 * configure: Regenerate with autoconf 1.3.
1977 * libdriver/print.cc (printer::adjust_arc_center): Use new
1978 algorithm suggested by Andy Fyfe.
1980 * libdriver/printer.cc (printer::adjust_arc_center): New function.
1981 * include/printer.h: Declare this.
1982 * grops/ps.cc (ps_printer::draw): Use it.
1983 * grodvi/dvi.cc (dvi_printer::draw): Use it.
1985 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
1987 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1989 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1991 * eqn/main.cc (main): Handle "eqn -".
1993 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1995 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1997 * mm: Integrate version 1.08.
1999 * pic/troff.cc (troff_output::finish_picture): Set
2000 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2001 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2002 if it's not defined. Check whether the register is non-zero rather
2003 than whether it's not defined.
2004 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2006 * indxbib/indxbib.cc: Move all signal handling into...
2007 * indxbib/signal.c: New file.
2008 * configure.in: Call AC_RETSIGTYPE.
2010 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2011 * configure.in: Call GROFF_STRUCT_EXCEPTION.
2012 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2014 * troff/input.cc (token::token, token::operator=): Work round SGI
2016 * pic/object.cc (position::position): Likewise.
2018 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
2020 * pic/pic.h: Move declaration of hypot().
2022 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
2024 * pic/pic.h: Declare hypot().
2026 * pic/pic.h: Define M_PI if necessary.
2028 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
2030 * tmac/tmac.e (re): Add alternative version that doesn't use groff
2033 * devps/prologue.ps (RE): Handle the possibility that the old font
2034 doesn't have a FontName entry.
2036 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
2038 * tmac/tmac.e (fam): Redefine to set family in environment 2.
2039 (@C): Use @fam not fam.
2041 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
2043 * lookbib/lookbib.cc (main): Change type of start to const char *.
2044 * lkbib/lkbib.cc (main): Likewise.
2046 * eqn/lex.cc (definition::definition): Don't use member
2047 initializer syntax for members of anonymous unions.
2049 * troff/input.cc (input_stack::backtrace): Change type of to const
2052 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2054 * include/stringclass.h (class string): Declare inline friend
2055 functions as inline in class declaration.
2056 * troff/hvunits.h (class hunits, class vunits): Likewise.
2057 * include/refid.h (class reference_id): Likewise
2058 * troff/troff.h (points_to_units(units), scale(units, double)):
2059 Delete declarations.
2060 * libdriver/input.cc (get_char): Delete declaration.
2061 * include/lib.h: Change 2nd argument of getopt from const char **
2063 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2064 char **' before assigning to a `const char **'.
2065 * tbl/table.cc: Delete extra declarations of prints().
2067 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2069 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2070 char **' before assigning to a `const char **'.
2072 * libgroff/errarg.cc (errarg::errarg): Don't use member
2073 initializer syntax for members of anonymous unions.
2075 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2077 * mm: Integrate version 1.07.
2079 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2081 * troff/input.c (translate2): Rename to
2082 (translate_no_transparent).
2083 (init_input_requests): Rename tr2 to trnt.
2085 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2087 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2088 (charinfo::set_translation, charinfo::set_special_translation):
2089 Add second argument that specifies value for
2090 transparent_translate.
2091 (charinfo::get_translation, charinfo::get_special_translation):
2092 Add optional second argument that specifies whether translation is
2093 being used for transparent throughput.
2094 * troff/input.cc (charinfo::set_translation,
2095 charinfo::set_special_translation): Handle second argument.
2096 (charinfo::charinfo): Initialize transparent_translate.
2097 (translate): Split main part off into
2098 (do_translate): New function. Pass argument saying whether
2099 translation applies to transparent throughput.
2100 (translate2): New request.
2101 (init_input_requests): Bind translate2 to `tr2'.
2103 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2105 * tbl/table.h (class table): Add `nokeep' flag.
2106 * tbl/main.cc (process_options): Handle `nokeep' option.
2107 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2108 table::do_bottom): Don't output keep/release macro definitions or
2109 calls when `nokeep' option has been specified.
2111 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2113 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2115 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2117 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2118 block_entry::divert, alphabetic_block_entry::divert): Add extra
2119 argument giving column separation.
2120 (table::compute_widths): Pass column separation to
2121 table_entry::divert().
2122 (block_entry::do_divert): If an entry spans multiple columns and a
2123 minimumum width has been specified for each column, then set the
2124 line length to the sum of the widths (plus possibly the column
2127 * troff/input.cc (set_escape_char): Don't set the escape_char
2128 until after calling has_arg().
2130 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2132 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2135 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2136 in case where r > nrows - 1.
2138 * tbl/table.cc (BODY_HEIGHT): Deleted.
2139 (LINE_SEP): New definition.
2140 (table::print_single_hline, table::print_double_hline,
2141 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2142 table::do_row, table::do_top): Use LINE_SEP space before a line
2143 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2145 * tbl/table.cc (text_entry::print_contents): New function.
2146 (text_string_name, right_text_string_name): Deleted.
2147 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2148 (simple_text_entry::do_width, numeric_text_entry::do_width,
2149 alphabetic_text_entry::do_width): Don't store the contents of the
2151 (left_text_entry::simple_print, right_text_entry::simple_print,
2152 center_text_entry::simple_print,
2153 alphabetic_text_entry::simple_print,
2154 numeric_text_entry::simple_print): Print the entry directly
2155 instead of using the stored string.
2157 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2159 * devps/Makefile: Strip PostScript files.
2160 * devps/prologue: Rename to...
2161 * devps/prologue.ps.
2162 * devps/psstrip.sed: New file.
2163 * devps/download: Use .pfa rather than .ps for installed versions
2166 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2168 * troff/env.cc (input_trap): Give a warning if the argument is out
2171 * troff/env.cc (adjust): Treat negative argument as missing. Round
2172 argument > 5 down to 5.
2174 * troff/env.cc (center, right_justify): Make negative argument zero.
2176 * troff/div.cc (page_offset, vertical_position_traps): Treat
2177 invalid argument as missing.
2178 * troff/env.cc (line_spacing, line_length, title_length, indent,
2179 underline, hyphen_line_max_request, control_char,
2180 no_break_control_char, widow_control_request, adjust, input_trap,
2181 point_size): Likewise.
2182 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2183 constant_space): Likewise.
2184 * troff/input.cc (compatible, shift, warn_request,
2185 set_escape_char): Likewise.
2187 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2188 * tbl/table.cc (table::table): Likewise.
2190 * Makefile.dev (install_dev): depends on $(DEVFILES).
2192 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2194 * devX75, devX75-12, devX100, devX100-12: New directories.
2195 * Makefile.in: Add these to DEVDIRS.
2197 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2198 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2199 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2200 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2202 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2203 (uninstall): New target.
2204 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2205 uninstall_prog, uninstall_dev): New targets.
2207 * troff/div.cc (return_request): Treat an invalid argument as
2210 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2212 * tmac/tmac.e ((f): Set up the environment even when there's a
2213 current diversion. Transperently throughput a call to @N.
2216 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2218 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2219 up to vertical resolution.
2221 * tbl/table.cc (table::do_row): Change row number after printing
2224 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2226 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2228 * Rename CHANGES to NEWS.
2230 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2232 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2234 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2236 * man.ultrix: Removed.
2238 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2240 * Makefile.comm (extraclean): Delete files whose names begin with
2243 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2246 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2248 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2249 * troff/div.cc (page_length, need_space, space_request): Treat
2250 invalid optional argument as missing.
2251 * troff/env.cc (number_lines): If the first argument is present
2252 but not a number, turn on line numbering, don't change the next
2253 line number and parse the remaining arguments.
2255 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2257 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2259 * eqn/box.h: Change declaration accordingly.
2260 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2261 the specified size was bad but don't give an error. Check for
2263 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2264 * eqn/lex (do_size): Likewise.
2266 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2268 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2271 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2273 * tbl/table.cc (table::init_output): Improve error message when
2274 table won't fit on one page.
2276 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2278 * pic/troff.cc (troff_output::start_picture): Generate line
2279 containing a horizontal motion equal to the width of the picture.
2281 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2282 using GROFF_COMMAND_PREFIX environment variable.
2284 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2286 * mdate.sh: Use $NF rather than $(NF).
2288 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2290 * pic/main.cc (main): Use %1 not %c in argument to warning.
2292 * eqn/main.cc (main): Output code to check that geqn was given the
2295 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2297 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2298 `ln -s ../Makefile .; make; rm -f Makefile'.
2300 * troff/hyphen: Rename to...
2302 * troff/input.cc (main): Delete -H option. Don't call
2304 * troff/env.cc: Include searchpath.h and macropath.h.
2305 (exception_dictionary): Deleted.
2307 (read_hyphen_file): Deleted.
2308 (hyphenation_language): New struct.
2309 (class trie, class hyphen_trie): Move declarations up.
2310 (trie_node::~trie_node): Deleted.
2311 (trie::delete_trie_node): New function.
2312 (trie::do_delete): New pure virtual function.
2313 (hyphen_trie::do_delete): New function.
2314 (trie::~trie): New function.
2315 (hyphen_trie::~hyphen_trie): New function.
2316 (trie::clear): No need to chcek that tp is not 0.
2317 (current_language, language_dictionary): New variables.
2318 (hyphen_word): Give an error if no current language. Use
2319 exceptions dictionary in current language.
2320 (hyphen_trie::read_patterns_file): Find file using macro_path.
2321 Allow comments (starting with %) in patterns file. Don't make it
2322 a fatal error if the file can't be found.
2323 (hyphenate): Return if no current language. Get the exceptions
2324 dictionary and the hyphenation patterns from the current language.
2325 (set_hyphenation_language): New variable.
2326 (hyphenation_patterns_file): New function.
2327 (hyphenation_language_reg): New class.
2328 (hyphenation_language_reg::get_string): New function.
2329 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2330 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2332 * groff/groff.cc (main, help, synopsis): Delete -H option.
2333 * include/Makefile.sub: Don't define HYPHENFILE.
2334 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2335 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2336 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2337 hyphenation patterns.
2339 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2341 * eqn/neqn.sh: New file.
2342 * eqn/Makefile.sub: Handle neqn.sh.
2344 * eqn/eqn.h: Declare `nroff' variable.
2345 * eqn/box.cc (param_table): Add `nroff' param.
2347 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2349 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2351 * troff/troff.h (WARN_FONT): New warning.
2352 (WARN_TOTAL): Change accordingly.
2353 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2354 (warning_table): Add WARN_FONT.
2355 * troff/node.cc (mount_font_no_translate): Pass argument to
2356 font::load_font. If this is non-zero, give a warning.
2357 Don't give an error message when accessing a font that has already
2358 been found to be invalid.
2359 * include/font.h (font::load, font::load_font): Add additional
2360 optional argument which suppresses error message if the font is
2362 * libgroff/font.cc (font::load_font): Handle additional argument.
2363 (font::load): Add additional argument. If this is non-null, set it
2364 to 1 and don't give error message.
2366 * include/printer.h (printer::end_page): Add argument giving
2368 * libdriver/input.cc (do_file): Pass this.
2369 * grops/ps.cc (ps_printer::end_page): Add argument.
2370 * grodvi/dvi.cc (dvi_printer::end_page,
2371 draw_dvi_printer::end_page): Add argument.
2372 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2373 columns_per_page members. New member nlines.
2374 (DEFAULT_LINES_PER_PAGE): Deleted.
2375 (tty_printer::tty_printer): Don't compute lines_per_page from
2376 font::paperlength. Don't compute columns_per_page from
2378 (tty_printer::add_char): Don't check horizontal position against
2379 columns_per_page. Grow glyphs vector if neccessary.
2380 (tty_printer::end_page): Add argument giving page_length in units.
2381 Discard lines past end of page.
2383 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2385 * tmac/tmac.tty-char: Fix definition of \(/l.
2387 * tmac/tmac.X: Define \(en.
2389 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2391 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2392 lpq, then use lp rather than lpr.
2394 * tmac/tmac.s (par@reset): Don't call `ad'.
2395 (par*env-init): Call `ad'.
2397 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2399 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2402 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2403 * indxbib/indxbib.cc: Likewise.
2405 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2407 * libgroff/putenv.c: New file.
2408 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2409 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2410 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2411 stdlib.h with AC_HAVE_HEADERS.
2413 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2415 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2418 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2420 * eqn/box.cc (gsize): Make it an int.
2421 (set_gsize): Parse argument handling increment or decrement.
2422 (box::top_level): Convert gsize to a string.
2424 * troff/input.cc (exit_troff): Make buf unsigned char [].
2425 Call to make_temp_iterator casts buf to char*.
2427 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2429 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2430 * Makefile.cpg (depend.temp): Likewise.
2432 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2434 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2436 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2438 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2440 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2442 * Version 1.06 released.
2444 * Integrate mm 1.04.
2446 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2448 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2450 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2452 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2454 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2455 afmtodit. Regenerate.
2457 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2458 @f back past the current position.
2460 * tmac/tmac.e: Change calls to @R so that comments are not part of
2463 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2465 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2467 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2468 check that we can link a call to a function declared in <stdio.h>.
2469 (GROFF_UNISTD_H): New macro.
2470 * configure.in: Call it.
2471 * Makefile.in: Document it.
2472 * include/posix.h: New file.
2473 * troff/troff.h: Don't include <osfcn.h>
2474 * troff/input.cc: Include posix.h.
2475 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2477 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2478 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2480 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2481 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2482 * libbib/search.cc (O_RDONLY): Delete definition.
2483 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2484 Don't include <osfcn.h>.
2486 * acgroff.m4 (GROFF_TIME_T): New macro.
2487 * configure.in: Call it.
2488 * Makefile.in: Document it.
2490 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2491 * configure.in: Call it.
2492 * Makefile.in: Document -DTRADITIONAL_CPP.
2493 * include/ptable.h: Don't include generic.h.
2496 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2497 Afterwards remove [T1 and [T2.
2498 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2499 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2500 (ref*add-T2): Renamed from ref*add-T.
2501 (ref*add-T1): New macro.
2503 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2505 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2507 * libbib/index.cc: Include <fcntl.h>.
2508 (O_RDONLY): Define if necessary.
2509 (make_index_search_item, index_search_item_iterator::get_tag,
2510 index_search_item::check_files): Use O_RDONLY.
2511 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2512 (O_RDONLY): Define if necessary.
2513 (search_list::add_file): Use O_RDONLY.
2514 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2516 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2519 * libbib/index.cc (S_ISREG): Define it if necessary.
2520 (index_search_item::load): Use S_ISREG.
2522 * include/driver.h: Include <errno.h>.
2524 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2526 * eqn/box.cc (body_height): Increase default value to 85.
2527 (body_depth): Increase default value to 35.
2529 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2531 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2532 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2533 protected from expansion with \E.
2535 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2537 * Makefile (Makefile): New target.
2539 * Makefile.sub (configure, distfiles): New targets.
2541 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2544 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2546 * eqn/box.cc (param_table): Add body_height and body_depth.
2548 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2550 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2552 * psbb/Makefile.sub: Don't link with libgroff.a.
2554 * acgroff.m4 (GROFF_PUTENV): New macro.
2555 * configure.in: Call GROFF_PUTENV.
2556 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2557 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2560 * troff/env.cc (distribute_space): Rename force_forward argument
2561 to force_reverse. Reverse the list if force_reverse is true.
2563 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2565 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2567 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2568 height or depth to be negative. Guard against SUP_RAISE quantity
2571 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2573 * devps/generate/textmap: Add `an' (arrowhorizex).
2574 * tmac/tmac.ps: \(an overlaps horizontally.
2575 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2577 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2578 * devps/textmap: Add arrowvertex.
2579 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2580 updownarrow delimiters.
2581 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2583 * tbl/table.cc (simple_entry::position_vertically,
2584 block_entry::position_vertically): For a centered entry, perform
2585 the motion in two stages.
2587 * refer/refer.cc (split_punct): Don't call lookup_token if there
2590 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2592 * troff/input.cc (token::next): Delete token_node after copying
2595 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2598 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2600 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2602 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2604 * grops/ps.cc (usage): -b option takes an argument.
2606 * devps/prologue (PLG): New procedure.
2607 * grops/ps.cc (main, usage): New -g option.
2608 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2611 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2613 * include/cset.h: Include <limits.h> if we have it.
2615 * libgroff/illegal.cc: New file.
2616 * include/lib.h (illegal_input_char): Use table.
2617 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2618 * pic/lex.cc (ARG1): Renumber to 14.
2619 * eqn/lex.cc (ARG1: Likewise.
2621 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2622 (eg 1.05.90) correctly.
2624 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2626 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2627 Rename $r and $R registers to $v and $V.
2628 ($r, $R): Initialize to 0.
2629 (@v, @V): New macros.
2633 * troff/input.cc (main, usage): Add -R option that says not to
2635 * eqn/main.cc (main, usage): Rename -n to -R.
2637 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2639 * devps/DESC.in: Leave font positions 5-9 blank.
2640 * devdvi/DESC.in: Likewise.
2642 * grog/grog.pl: Handle `.PS <file' correctly.
2644 * troff/input.cc (input_stack::push): Improve error message when
2645 input stack limit exceeded.
2647 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2649 * refer/refer.cc (main): Fix typo in handling of `a' option.
2651 * refer/refer.cc (do_bib): In state START after a newline remain
2654 * groff/groff.sh: Deleted.
2655 * groff/Makefile.sub: Delete handling of groff.sh.
2657 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2658 to determine whether to use \X'ps:...'.
2659 * tmac/troffrc: Set 0p register to 0.
2660 * tmac/tmac.ps: Set 0p register to 1.
2662 * groff/groff.cc: Support -X option. Give warning for -TXps and
2663 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2664 * tmac/troffrc: Support -r.X=1.
2666 * pic/troff.cc (troff_output::dot): Don't test
2667 zero_length_line_flag.
2669 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2671 * include/lib.h: Declare getopt() and friends unless
2672 STDLIB_H_DECLARES_GETOPT is defined.
2674 * doc/chars.tr: Delete.
2675 * man/groff_char.man: New file.
2677 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2679 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2680 user has changed register format.
2682 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2684 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2685 `postpro' command in DESC file. Get spooler command from `print'
2686 command in DESC file. Execute spooler command with /bin/sh.
2688 * groff/groff.cc: Split Unix-specific parts into...
2689 * groff/pipeline.c: New file.
2692 * COPYING: New file.
2693 * all files: Update copyright notices.
2695 * Rearrange files. Redo Makefiles. Use autoconf.
2697 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2699 * troff/input.c (charinfo_to_node_list): Interpret character
2700 definition with escape_char of `\'.
2702 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2704 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2705 Define INT_DIGITS as big enough for 64-bit integer.
2706 * lib/strtol.c: Don't include lib.h.
2707 * lib/lib.h: Delete ifdef __cplusplus stuff.
2709 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2711 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2712 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2713 get DESC from current directory.
2715 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2717 * tbl/main.c (main): Always reset the line number when reading
2720 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2721 table::define_bottom_macro, table::do_row, table::do_top): Round
2722 vertical spacing up to vertical resolution.
2724 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2726 * ps/ps.h (enum resource_type): Avoid comma at end of
2728 * dvi/dvi.c (class dvi_printer): Likewise.
2729 * dvi/tfmtodit.c (gf::load): Likewise.
2730 * refer/label.y (struct expression): Likewise.
2731 * refer/refer.c (class label_processing_state): Likewise.
2732 * refer/indxbib.c (do_file): Likewise.
2733 * troff/troff.c (enum warning_type): Likewise.
2734 * tbl/main.c (process_data): Likewise.
2735 * troff/charinfo.h (class charinfo):
2737 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2739 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2741 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2743 * groff.c: Move to new groff subdirectory.
2744 * groff/Makefile: New file.
2745 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2747 * man/mdate.sh: Use ls -L if supported.
2749 * Consolidate all header files produced by gendef into lib/defs.h.
2750 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2751 Don't include path.h.
2752 * lib/Makefile (path.h): Don't generate.
2753 * troff/input.c: Include defs.h. Don't include config.h.
2754 * troff/Makefile (config.h): Don't generate.
2755 * refer/index.h: Don't include suffix.h.
2756 * refer/index.c: Include defs.h.
2757 * refer/indxbib.c: Include defs.h.
2758 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2760 * refer/Makefile (suffix.h, path.h): Don't generate.
2761 * groff.c: Don't include config.h. Include defs.h.
2762 * Makefile (config.h): Don't generate.
2763 (lib/defs.h): Generate.
2764 (topclean): Remove lib/defs.h.
2766 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2768 * lib/malloc.c, lib/getpagesize.h: Deleted.
2769 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2771 * lib/Makefile: Delete malloc-related stuff.
2772 * lib/new.c: Workaround COOKIE_BUG if necessary.
2774 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2775 needed header files directly.
2776 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2777 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2779 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2781 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2783 * lib/font (font::load_desc, font::load): Don't split argument of
2785 (font::handle_unknown_font_command): Change type.
2786 * ps/ps.c (ps_font::handle_unknown_font_command,
2787 handle_unknown_desc_command): Change type.
2788 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2790 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2792 * lib/font.h (font::handle_unknown_font_command): Add file and
2794 * lib/font.c (font::handle_unknown_font_command):
2795 * ps/ps.c (ps_font::handle_unknown_font_command):
2796 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2797 lineno arguments. Use _with_file_and_line functions for error
2800 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2802 * lib/font.c (font::set_unknown_desc_command_handler): New
2804 (font::load_desc): For unknown commands, call
2805 unknown_desc_command_handler if not null.
2806 * lib/font.h (class font): Declare them.
2807 (FONT_COMMAND_HANDLER): New typedef.
2808 * ps/ps.c (handle_unknown_desc_command): New function.
2809 (main): Set bflag if we had a -b option. Call
2810 font::set_unknown_desc_command_handler.
2811 (broken.h): Don't include.
2812 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2814 * ps/devps/Makefile: Add `broken' command to DESC file using
2815 BROKEN_SPOOLER_FLAGS.
2817 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2819 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2821 * macros/tmac.e (@R, @S): New macros.
2822 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2823 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2824 Declare $H, $[0-9], .. macros with @S.
2825 Declare |0, |1, |2, |3 strings with @S.
2827 * macros/tmac.e (@S): Rename to @U.
2829 * macros/tmac.e (@z): Define @b and bp as empty instead of
2832 * macros/tmac.e (@m): Deleted.
2833 (@h): Don't call @m.
2834 (@z): Don't set @m trap.
2836 * macros/tmac.e ($h, $f): Define |z as empty string.
2838 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2841 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2843 ()f): Likewise for * register.
2845 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2846 argument is missing, don't change $R. Call sr with three
2847 arguments when initializing.
2849 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2851 * macros/tmac.e (sr): New macro.
2852 Initialize $r and $R using sr.
2854 * macros/tmac.e (,): Delete \*(#[.
2856 * troff/env.c (set_tabs): Read the tab type even if the position
2857 is bad. Allow the position of the first tab stop to be negative.
2859 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2861 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2863 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2864 rather than -DPATHCONF_MISSING.
2865 * Makefile: Get rid of PATHCONF_MISSING.
2867 * refer/map.c: New file.
2868 * refer/index.c: Interface to mmap through map.c. Rename map_size
2870 * refer/Makefile: Handle map.c.
2871 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2873 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2875 * Makefile: RANLIB should be `true' if there is no ranlib.
2876 * lib/Makefile (libgroff.a): Simplify.
2877 * driver/Makefile (libdriver.a): Simplify.
2879 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2880 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2883 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2885 * troff/env.c (compare_ranges): Declare as extern "C".
2887 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2889 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2891 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2893 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2894 but conditionalize use of \X based on \*(.T.
2895 (grops_output::*): Deleted.
2896 * pic/output.h: Delete declaration of make_grops_output.
2897 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2898 by default. -n sets it to 0.
2899 (usage): Corresponding changes.
2900 * groff.c (main): Don't pass -x or -p to pic.
2901 * groff.sh: Likewise.
2903 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2906 * ps/devps/afmtodit: Change calculation of asc_boundary and
2907 desc_boundary. Make these bounds inclusive.
2908 * ps/devps: Regenerate font files.
2910 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2912 * macros/tmac.latin1: New file.
2913 * macros/tmac.tty-char: Use tmac.latin1.
2914 (tmac.tty-tr): Deleted.
2915 * macros/Makefile: Install tmac.latin1.
2916 * macros/tmac.dvi: Use tmac.latin1.
2917 * macros/troffrc: Translate \[char160] onto no-break space here.
2918 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2920 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2922 * macros/tmac.Xps: Use `do' request.
2924 * macros/tmac.ps: Use `do' request.
2926 * macros/tmac.e (@C): Use `do' request.
2928 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2929 * macros/Makefile: Install tmac.X*.
2931 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2932 * tty/Makefile: Don't install tmac.tty*.
2933 * macros/Makefile: Install tmac.tty*.
2935 * dvi/tmac.dvi: Move to macros.
2936 * dvi/Makefile: Don't install tmac.dvi.
2937 * macros/Makefile: Install tmac.dvi.
2939 * ps/tmac.ps*: Move to macros.
2940 * ps/Makefile: Don't install tmac.ps*.
2941 * macros/Makefile: Install tmac.ps*.
2943 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2945 * macros/eqnrc: Set draw_lines parameter based on device.
2946 * groff.c: Don't pass -D flag to eqn.
2947 * groff.sh: Likewise.
2948 * eqn/main.c: Warn about use of -D.
2950 * troff/input.c (process_startup_file): New function.
2951 (main): Call process_startup_file().
2952 * macros/troffrc: New file.
2953 * macros/Makefile: Install troffrc.
2954 * groff.c (main): Don't pass extra -m option to troff. For a
2955 pseudo device pass the name of the pseudo device to troff using
2957 * groff.sh: Likewise.
2958 * groff.c (possible_command::prepend_arg): Deleted.
2960 * troff/input.c (do_request): New function.
2961 (init_input_requests): Bind "do" to do_request.
2963 * eqn/main.c (main): Instead of loading eqnchar from device directory,
2964 load eqnrc from macro directory.
2965 * macros/eqnrc: New file.
2966 * macros/Makefile: Install eqnrc.
2967 * ps/devps/eqnchar: Deleted.
2968 * ps/devps/Makefile: Don't install eqnchar.
2969 * dvi/devdvi/eqnchar: Deleted.
2970 * dvi/devdvi/Makefile: Don't install eqnchar.
2971 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2974 * lib/device.[ch]: New files.
2975 * lib/font.h (font::set_device_name, font::get_device_name):
2977 * lib/fontfile.c: Use device.h.
2978 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2979 * troff/input.c: Delete definition of `device'.
2980 (main): Don't initialize device.
2981 * troff/troff.h: Include device.h rather than declaring device.
2982 * troff/Makefile: No need to handle DEVICE.
2983 * driver/input.c: Include device.h. Don't use
2984 font::{set,get}_device_name.
2985 * groff.c, Makefile: Rename device.h to config.h.
2986 * groff.c: Use library device variable.
2987 * eqn/main.c: Use library device variable.
2988 * eqn/Makefile: No need to handle DEVICE.
2990 * lib/searchpath.[ch]: New files.
2991 * lib/Makefile: Handle searchpath.[ch].
2992 * troff/input.c (open_file, init_dirs): Deleted.
2993 (macro_dirs): Deleted.
2994 (open_mac_file, macro_source): Use class search_path.
2995 (add_string, struct string_list): Move definition.
2996 (main): Change -M option to use macro_path. Delete call to
2998 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2999 Rewrite to use class search_path.
3000 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3001 * lib/Makefile: fontfile.c depends on searchpath.h.
3002 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3004 * lib/macropath.[ch]: New files.
3005 * troff/Makefile: No need to handle MACROPATH.
3007 * troff/input.c: Delete DUMP code.
3008 * lib/fontfile.c, lib/font.h: Delete
3009 font::forget_command_line_font_dirs.
3011 * troff/input.c (push_token): New function.
3012 (handle_first_page_transition): Use push_token().
3013 (process_input_stack): Change handling of a space at the beginning
3016 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
3018 * troff/input.c (font_dirs): Delete unused variable.
3020 * eqn/lex.c (do_set): Correct error messages.
3022 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
3024 * troff/input.c (do_define_string): Allow the string name to be
3025 followed immediately by a tab.
3026 (define_character): Likewise.
3028 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
3030 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3033 * troff/input.c (input_iterator::is_file): New virtual function.
3034 (file_iterator::is_file): New function.
3035 (input_stack::end_file): New function.
3036 (input_stack::next_file): Handle the situation where there is no
3037 file on the input stack correctly. Avoid making two passes over
3039 (next_file): Make the filename optional; in this case call
3040 input_stack::end_file().
3042 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
3044 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3045 produce a real _ charater when the current font is CW and _
3048 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3049 expression to work around gcc 2.2 bug.
3051 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3053 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3055 * troff/env.c (environment::add_padding): New function.
3056 (environment::add_char): Use add_padding().
3057 (environment::space): Likewise.
3058 (environment::wrap_up_field): Add some padding if there is none
3059 and there's no current tab.
3060 * troff/env.h: Declare environment::add_padding.
3062 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3064 * pic/pic.y: undef fmod and rand before declaring them.
3066 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3068 * troff/input.c (main): If the DESC file specifies a font name of
3069 0, then leave the corresponding font position empty.
3071 * nroff.sh: New file.
3072 * Makefile (install.nobin): Install nroff.sh.
3074 * tty/devlatin1/R.proto: Add ao as synonym for de.
3075 * tty/tmac.tty-char: Define ao as o.
3077 * tty/dev{ascii,latin1}/R.proto: Add aq.
3078 * tty/tmac.tty-char: Delete definition of aq.
3080 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3082 * troff/input.c (init_charset_table): Don't translate 0240.
3083 * ps/tmac.ps: Translate char160 to space.
3084 * dvi/tmac.dvi: Likewise.
3085 * tty/tmac.tty: Likewise.
3087 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3089 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3091 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3092 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3095 * tty/tmac.tty-char: Add \(ah.
3097 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3098 No need to define \(FM and \(!/. Conditionalize all character
3101 * ps/devps/lgreekmap: Add +h, +f, +p.
3103 * ps/tmac.psnew: New file.
3104 * ps/Makefile: Install tmac.psnew.
3106 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3107 character definitions in compatible mode.
3109 * troff/input.c (remove_character): New function.
3110 (init_input_requests): Bind remove_character to "rchar".
3112 * ps/tmac.psold: New file.
3113 * ps/Makefile: Install tmac.psold.
3114 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3115 characters into tmac.psold. Make these definitions unconditional.
3117 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3119 * ps/tmac.ps: Don't define \('c and \('C.
3121 * ps/devps/textmap: Move Greek characters to...
3122 * ps/devps/symbolchars:
3124 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3126 * ps/devps/text.enc: Add quotesingle.
3127 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3128 * tty/tmac.tty-char: Likewise.
3129 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3130 * dvi/devdvi/texi.map: Add Fn.
3131 * dvi/devdvi/msam.map: Add lz.
3132 * dvi/tmac.dvi: Handle Bq, bq, aq.
3134 * pic/lex.c (get_token): Recognize 'th.
3135 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3137 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3139 * ps/devps/textmap: Move di, mu, +- to...
3140 * ps/devps/symbolchars:
3142 * macros/tmac.s (@XS): Don't call par@reset or fi.
3143 (XA): Call LP. Turn off adjustment. Reduce line length.
3145 * macros/tmac.s: Initially alias XS to LP.
3146 (XS): Rename to @XS.
3147 (cov*ab-init): Alias XS to @XS.
3149 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3151 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3152 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3153 (token::is_size, token::changes_env): Deleted.
3154 * troff/number.c (parse_term): No need to process \s explicitly.
3155 Call tok.next() only after scale indicator has been processed.
3156 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3158 (token::next): Handle \s, \f, \S, \H immediately rather than
3159 returning them as tokens.
3160 (token::operator==, token::description, token::add_to_node_list,
3161 token::process): Remove handling of deleted tokens.
3163 * troff/env.c (environment::add_char): When adding padding
3164 indicator character, call start_line() if necessary.
3166 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3168 * ps/devps/afmtodit: Don't output 0 kerns.
3170 * ps/devps/afmtodit: Remove directory from name of encoding in
3171 font description file.
3173 * ps/devps/afmtodit: Improve error messages.
3175 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3177 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3178 * ps/devps/FontMakefile: Deleted.
3179 * ps/devps/afmname: New file.
3181 * ps/devps/symbol.sed: New file.
3182 * ps/devps/symbol.diff: Deleted.
3183 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3184 Generate zapfdr.afm from zapfd.afm.
3186 * tty/tmac.tty (tty-char): Prefix definition with ".
3188 * macros/tmac.an (TP): Don't start a diversion if one has already
3191 * tty/tmac.tty-char: Add Latin-1 characters.
3193 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3195 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3197 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3198 Move declaration of struct horizontal_span.
3200 * tbl/table.c (table::table): Initialize span_list.
3201 (table::~table): Delete span_list.
3203 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3205 * ps/devps/Makefile: Avoid dependency on GNU make.
3207 * ps/tmac.ps: Check that character does not already exist before
3210 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3211 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3212 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3215 * tty/tmac.tty-char: New file.
3216 * tty/Makefile: Install tmac.tty-char.
3217 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3220 * tty/tmac.tty: Fix definition of \(34.
3222 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3223 bracket-drawing characters onto |. Add *o.
3225 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3226 only if current_field.
3228 * troff/dictionary.c (dictionary::lookup): Free old_table after
3231 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3233 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3234 whose glyphs are identical to glyphs of some Roman character.
3236 * tty/devlatin1/R.proto (bu): Deleted.
3237 * tty/devascii/R.proto (bu): Deleted.
3238 * tty/tmac.tty: Add definition of \(bu.
3240 * eqn/main.c (do_file): Pass FILE as argument.
3241 (main): Automatically load eqnchar. New options -F and -n.
3242 Pass do_file an opened FILE.
3243 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3244 No need to include font.h.
3245 * groff.sh: Likewise. Don't need to use - for standard input.
3246 Prefix files with -- if first file starts with -.
3248 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3250 * troff/env.c (environment::possibly_break_line): Don't set line
3251 to 0 across call to output_line(). Don't call output_line() until
3252 after discarding nodes after break.
3254 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3256 * request.h (macro::empty): Declare it.
3257 * input.c (macro::empty): New method.
3258 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3261 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3263 * troff/env.c (environment::start_field): Decrement space_total
3264 when a space is frozen.
3266 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3268 * macros/tmac.an (R): Delete macro.
3270 * troff/input.c (get_copy, token::next): Support \# (like \" but
3271 newline is ignored).
3273 * troff/input.c (token::next): Fix error message in 'Y' case.
3275 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3277 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3280 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3282 * c++test.c: Include <osfcn.h>.
3284 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3287 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3289 * tbl/table.c (table::divide_span): Don't count column separation
3290 if expand was specified.
3292 * tbl/main.c (process_format): Don't ignore width specs in
3293 continued format. Give warning for changing equal widths or
3294 column separation in continued format.
3295 (process_data): Set column separation, minimum width, equal
3296 columns at end of table.
3298 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3300 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3301 node::add_discretionary_hyphen): Use soft_hyphen_char.
3302 (set_soft_hyphen_char): New function.
3303 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3305 * Makefile (c++tested): Give more helpful message if test fails.
3307 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3309 * troff/input.c (init_charset_table): Translate 0240 to
3310 an unbreakable space.
3312 * troff/token.h (token::hyphen_indicator): New function.
3313 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3315 * troff/input.c (translate): Allow translation to \%.
3316 * troff/node.c (node::add_char): Handle
3317 TRANSLATE_HYPHEN_INDICATOR.
3318 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3320 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3323 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3325 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3327 * groff.c (run_commands): If the last command gets a SIGPIPE send
3328 a SIGPIPE to all children than haven't yet terminated. When
3329 command terminates, set pid field to -1.
3331 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3333 * groff.c (main): Pass an appropriate -filename option to gxditview.
3335 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3337 * Makefile.bd (install): Remove existing program before copying.
3339 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3340 programs which have Unix counterparts to be installed with
3341 user-specified prefix.
3343 * troff/input.c (exit_troff): Don't check if exit_started.
3344 (exit_request): Don't call exit_troff if exit_started.
3346 * Makefile.bd (install.mm): Rename to install.dwbmm.
3348 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3350 * driver/input.c (do_file): Add missing break for '#' case.
3352 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3354 * troff/input.c (input_stack::clear): Clear past any boundaries and
3355 then add the boundaries back.
3357 * troff/input.c (exit_troff): Return immediately if already
3360 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3362 (pg*end-page): If the text has ended and there are no more
3363 footnotes or keeps, exit.
3365 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3367 * troff/input.c (init_charset_table): Make \(rq transparent by
3370 * macros/tmac.an: Define lq and rq strings.
3372 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3374 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3376 * troff/env.c (environment::final_break): New function.
3377 (environment::newline): Set prev_line_interrupted to 2 if
3379 * troff/env.h: Declare environment::final_break.
3380 * troff/input.c (exit_troff): Call environment::final_break()
3381 instead of environment::do_break().
3383 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3384 doesn't already exist.
3385 * macros/man.local: New file.
3386 * macros/tmac.an: Load man.local.
3387 * macros/man.ultrix: New file.
3389 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3391 * troff/input.c (exit_groff): Rename to...
3392 (exit_troff): New function.
3394 * troff/div.c (exit_started, done_end_macro,
3395 seen_last_page_ejector): New global variables.
3396 (began_page_in_end_macro): New static variable.
3397 (exit_flag): Deleted.
3398 (top_level_diversion::top_level_diversion): Initialize
3400 (top_level_diversion): More elaborate test for whether
3401 cleanup_and_exit() should be called.
3402 Set began_page_in_end_macro if the end macro isn't yet finished.
3403 * troff/div.h (top_level_diversion::last_page_count): New data
3405 (top_level_diversion::set_last_page): New function.
3406 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3407 * troff/env.c (do_break): Zero prev_line_interrupted.
3408 * troff/input.c (exit_flag): Delete declaration.
3409 (LAST_PAGE_EJECTOR): New magic cookie.
3410 (token::next): Handle LAST_PAGE_EJECTOR.
3411 (exit_groff): Set exit_started and done_end_macro instead of
3412 exit_flag. Call top_level_diversion::set_last_page. Push a
3413 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3414 another ejection after setting seen_last_page_ejector.
3416 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3418 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3420 * macros/tmac.e (TH): Make sure there's room for the initial
3423 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3424 Set FVS in points rather than units.
3426 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3428 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3429 position of empty slots.
3431 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3433 * ps/devps/S: Fix height and depth of parenrightex.
3434 * ps/devps/symbol.diff: Regenerate.
3436 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3438 * tmac.e (u): Do underlining as in -mgs.
3440 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3442 * tty/tty.c (tty_printer::end_page): If overstriking is
3443 suppressed, still turn overstruck horizontal and vertical lines
3446 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3449 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3451 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3453 * Version 1.05 released.
3455 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3457 * tty/tty.c: Instead of keeping an array of glyphs and then
3458 sorting it, keep a ordered linked list of glyphs for each line.
3460 * driver/driver.h: Include stddef.h.
3462 * tty/tty.c (compare_glyph):
3463 * refer/refer.c (rcompare):
3464 * troff/env.c (compare_ranges): Arguments of qsort comparison
3465 function should be const void *.
3467 * troff/number.c (parse_term):
3468 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3471 * refer/label.y (consider_authors): Don't access variables
3472 constructed under a condition outside that condition: put braces
3473 round for statement containing declaration; redeclare use of same
3476 * pic/pic.y (text_expr): Delete production that allows
3477 parenthesised text_expr.
3478 (expr): Allow a conditional_expr to appear in parentheses.
3479 (conditional_expr): Rename to any_expr.
3481 * mm: Install new version 1.01 from jh.
3483 * lib/font.c (font::get_width): Cache scaled widths.
3484 (font::font): Initialize widths_cache.
3485 (font::~font): Destroy widths_cache.
3486 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3488 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3490 * c++test.c, c++test.ref: New files.
3491 * Makefile: Check that the C++ compiler works.
3493 * ps/tmac.pspic (PSPIC): Do a break.
3495 * ps/tmac.ps: Move definition of PSPIC into...
3496 * ps/tmac.pspic: New file.
3497 (PSPIC): Draw box around picture, but make it invisible to grops.
3498 * ps/tmac.ps: Load tmac.pspic.
3499 * ps/Makefile: Install tmac.pspic.
3501 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3503 * lib/font.c (scale_round): If n is negative,
3504 subtract .5 before truncating floating point result.
3506 * lib/fontfile.c: Include <errno.h>.
3508 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3510 * driver/input.c (get_char): Inline. Don't update current_lineno.
3511 Change callers to up date current_lineno if necessary.
3512 Use get_char() instead of getc(current_file).
3514 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3516 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3518 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3520 * tty/tty.c (tmac.tty): Define \(rg as (R).
3522 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3524 * lib/lib.h: New define a_delete.
3525 * Use a_delete instead of delete when deleting an array of objects
3526 without destructors.
3528 * lib/lib.h: Rename adelete to ad_delete.
3529 * Change uses of adelete.
3531 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3533 * eqn/eqn.y: Include lib.h.
3535 * troff/node.c (grow_font_table): Delete old_font_table.
3537 * mm: Install new version from jh.
3539 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3541 * tbl/table.h (format_type): Make global instead of local to class
3542 entry_format. Prefix enumerators with FORMAT_.
3543 * tbl/table.c, tbl/main.c: Corresponding changes.
3544 * refer/token.h (token_type): Make global. Prefix enumerators
3546 * refer/token.[ch]: Corresponding changes.
3547 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3549 * troff/div.c (node::set_vertical_size): Don't name argument.
3551 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3553 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3554 * lib/lib.h: Define adelete accordingly.
3555 * pic/object.c (graphic_object::graphic_object):
3556 * tbl/main.c (format::~format):
3557 * tbl/table.c (table::~table):
3558 * refer/ref.c (reference::~reference, reference::merge,
3559 reference::insert_field, reference::delete_field): Use adelete.
3561 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3563 * tbl/table.h: Corresponding changes.
3565 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3566 Ensure total_angle is positive.
3568 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3570 * refer/ref.c (reference::merge, reference::insert_field,
3571 reference::delete_field): Avoid delete[0].
3573 * refer/token.c (init_special_chars): Move calls to cmupper
3574 outside calls to init_two_char_letter to work around bug in gcc
3577 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3579 * lib/new.c (operator new): Use __builtin_new for g++.
3581 * pic/object.c (graphic_object::~graphic_object): Don't use
3584 * pic/object.c (output::compute_scale): Initialize max_width and
3587 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3589 * troff/input.c (write_request): Call fflush.
3591 * troff/node.h (class composite_node): Move declaration to node.c
3592 * troff/input.c (charinfo_to_node): Rename to ...
3593 (charinfo_to_node_list): Return node list rather than composite
3595 * troff/node.c (make_composite_node): New function.
3596 (make_node, add_char): Call make_composite_node instead of
3598 (class composite_node): Add a tfont * member. Delete font_size
3600 (composite_node::composite_node, composite_node::copy,
3601 composite_node::size): Corresponding changes.
3602 (composite_node::tprint): Provide constant spacing, emboldening
3603 and track kerning as specified in tfont.
3604 (composite_node::width): Change width calculation accordingly.
3605 * troff/env.h (environment::composite): New member.
3606 (environment::is_composite, environment::set_composite): New
3608 * troff/env.c (environment::environment): Initialize composite.
3609 * troff/input.c (charinfo_to_node): Call
3610 environment::set_composite.
3611 * troff/node.c (make_composite_node, make_glyph_node): Use the
3612 plain version of the tfont if the environment is composite.
3614 * troff/node.c (font_info::get_space_width): Additional argument
3615 giving space_size. Handle constant space correctly. Scale by
3616 space_size unless constant spaced.
3617 (env_sentence_space_width): New function.
3618 * troff/node.h: Declare it.
3619 * troff/env.h (environment::get_space_size,
3620 environment::get_sentence_space_size,
3621 environment::get_narrow_space_width,
3622 environment::get_half_narrow_space_width): Make inline.
3623 (environment::get_space_width): Make inline. Just call
3625 * troff/env.c: Delete definitions for funtions made inline.
3626 (environment::space_newline, environment::space): Use
3627 env_sentence_space_width(). Don't scale by space_size.
3628 * troff/node.h: Move declarations of env*space_width() functions
3631 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3633 * macros/tmac.s (PS): Don't try to set negative indent.
3635 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3637 * pic/pic.y: Fix min function.
3639 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3641 * man/mdate.sh: Clear LANGUAGE.
3643 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3645 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3646 * pic/lex.c: New COMMAND keyword.
3647 * pic/pic.y (print_args, print_arg): New rules.
3648 (placeless_element): Use print_args for PRINT.
3649 New COMMAND element.
3651 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3653 * troff/input.c (terminal): Handle missing argument correctly.
3655 * pic/pic.y (text_expr): New rule.
3657 * pic/pic.y: Implement := operator.
3659 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3661 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3664 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3666 * ps/devps/dingbatsrmap: Include this in the distribution.
3668 * macros/tmac.doc: Replace with new version from 2nd Networking
3669 Release. Fix loading of doc-* files.
3670 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3671 * macros/tmac.doc.old: New file. Apply fixes that had been
3672 applied to old tmac.doc.
3673 * macros/tmac.andoc: Check that we're running under groff.
3674 * macros/Makefile: Rework.
3676 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3678 * tbl/table.h (format_type):
3679 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3680 typedef to make these types visible at file scope.
3681 * Makefile: Add NESTED_TYPES configuration option.
3683 * troff/div.c (mark): At the top level use the value of
3684 nl_reg_contents rather than the current vertical position.
3686 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3688 * tty/tty.c: Implement \D for horizontal or vertical lines.
3689 (tty_printer::set_char): Use vec_used+2 as serial number.
3690 Don't allow size of vector to exceed USHRT_MAX-2.
3691 Split off part into...
3692 (tty_printer::add_char): New function.
3693 (tty_printer::draw): New function.
3694 (compare_glyph): Handle equal serial numbers.
3695 (tty_printer::end_page): Handle overstruck characters from \D.
3696 (main, usage): Implement -d option.
3698 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3700 * tbl/main.c (process_format):
3701 * eqn/text.c (split_text):
3702 * troff/input.c (token::next): Use inner block for declarations
3703 with initializers in switch statement.
3705 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3707 * pic/common.c (common_output::dash_line): Cope with zero-length
3710 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3712 * Version 1.04 released.
3714 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3716 * macros/tmac.an (TH): Define a macro an-init to define variables
3717 based on command line arguments.
3718 (an-header): Call it.
3720 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3722 * Makefile (install.mm): Rename to install.dwbmm.
3724 * Makefile: Integrate mm.
3725 * mm: New directory.
3727 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3729 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3732 * pic/troff.c (troff_output::simple_spline,
3733 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3734 shadowing parameter.
3736 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3738 * lib/ptable.h: Add explicit casts when converting from unsigned
3741 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3742 * dvi/devdvi/Makefile: Install SA, SB.
3744 * refer/indxbib.c: Add declaration of mktemp.
3746 * refer/lookbib.c: Add declaration of isatty.
3748 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3750 * pic/lex.c (interpolate_macro_with_args): While collecting
3751 arguments, keep track of whether we're in a string.
3753 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3755 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3756 down with \v, so as to avoid problems with top of page trap
3757 setting no space mode.
3759 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3761 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3763 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3765 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3766 Improve error message.
3768 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3770 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3773 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3775 * groff.c (possible_command::execp): Always use _exit() after a
3778 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3779 NO_SYS_WAIT_H configuration options.
3780 * groff.c: Use these options. Use POSIX-style macros to extract
3781 fields from the status returned by wait().
3783 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3785 * tbl/table.c (table::compute_separation_factor): Allow the
3786 separation factor to drop to 0.
3788 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3790 * refer/search.c: Include <errno.h>.
3792 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3794 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3796 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3799 * pic/lex.c (input_stack::bol): Move definition out of class body.
3801 * pic/main.c: On MSDOS munge argv[0].
3803 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3805 * lib/ptable.c (hash_string): Use unsigned long rather than
3807 (next_ptable_size): Use unsigned rather than int. Give an error
3808 message if we've hit the largest table size.
3809 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3812 * pic/object.h (object_spec): Make flags unsigned long. Declare
3813 flags as const unisgned long rather than as enums.
3815 * pic/output.c: Deleted.
3817 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3819 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3820 Add additional argument.
3821 (line_entry::note_double_vrule_on_{left,right}): Set value of
3822 douvle_vrule_on_{right,left} flag according to argument.
3823 (simple_line_entry::simple_print,
3824 simple_line_entry::double_line_print): If adjacent to double vrule
3825 on a corner extend rather than shorten the rule by half the double
3828 * troff/number.c (parse_term): In checking for overflow, handle the
3829 case where the current horizontal position is negative.
3831 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3833 * pic/object.c (draw_arrow): Check for object having zero length.
3835 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3837 * eqn/main.c (do_file): Split off inline equation handling into...
3838 (inline_equation): New function. Search for starting delimiter
3840 (delim_search): New function. Don't recognize a delimiter that
3841 occurs in the name of an escape sequence, number register, string
3844 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3846 * eqn/delim.c (delim_box::compute_metrics): Don't call
3847 define_extensible_string if left is 0.
3848 (delim_box::output): Don't print the left delimiter if left is 0.
3849 (delim_box::debug_print): Check for left == 0 before calling printf.
3851 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3853 * troff/Makefile (majorminor.c): Include only digits in
3856 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3858 * refer/dirnamemax.c: new file.
3859 * refer/genlimits.c: Deleted.
3860 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3861 Don't check path length.
3862 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3863 * Makefile: Add PATHCONF_MISSING option.
3865 * refer/indxbib.c (get_cwd): New function.
3866 (main): Use get_cwd().
3867 * lib/getcwd.c: New file.
3868 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3870 * lib/Makefile: Compile getcwd.o.
3872 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3875 * refer/indxbib.c (main): Check success of mktemp.
3877 * lib/tmpfile.c: New file.
3878 * lib/Makefile: Add tmpfile.c.
3879 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3880 * ps/ps.h: Delete declaration of mktemp().
3881 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3882 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3883 * driver/driver.h: No need now to include errno.h.
3885 * everywhere: Set errno to 0 before calling fopen().
3887 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3888 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3889 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3891 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3893 * troff/env.h (translate_space_to_dummy): Declare it.
3894 * troff/env.c (environment::space_newline, environment::space):
3895 If translate_space_to_dummy is set then make the width of spaces 0.
3896 * troff/input.c (translate): If the second character of a
3897 translation is a space, translate to unbreakable space. If the
3898 first character is a space, set or clear translate_space_to_dummy
3899 according to whether the second character is \&. Weird!
3901 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3903 * groff.c (run_commands): Don't use non-zero exit code because a
3904 command gets SIGPIPE.
3906 * groff.c, groff.sh: Use -mXps with -TXps.
3908 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3909 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3910 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3911 (ps_printer::special): New specials invis and endinvis.
3912 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3913 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3914 (ps_printer::end_page): Check that invis_count == 0.
3915 (ps_printer::invis_count): New member.
3916 (ps_printer::ps_printer): Initialize invis_count to 0.
3918 * troff/env.c (environment::hyphenate_line): Hyphenation
3919 indicator at beginning of word inhibits splitting after -, \(em
3922 * pic/pic.y (element): Allow another element to follow } without
3923 any intervening separator.
3925 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3927 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3929 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3931 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3932 declaration of wait() in header files.
3933 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3935 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3937 * lib/lib.h: Declare return type of strerror as char *.
3939 * man/Makefile: Add g flag to sed substitutions.
3940 * Makefile (shgroff, bindist): Likewise.
3942 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3944 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3945 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3948 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
3950 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3953 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
3955 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3958 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
3960 * troff/input.c (define_number_reg): If currently undefined,
3961 don't define it if the argument is an invalid expression.
3963 * Makefile: Ignore return value of `if' commands without `else'
3966 * Makefile: Split up CPPDEFINES into a series of separate
3967 configuration options.
3969 * troff/input.c (init_registers): Use time_t instead of long
3970 unless LONG_FOR_TIME_T is defined. Use returned result rather
3971 than passing pointer.
3972 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3974 * lib/Makefile (fontpath.h): Use gendef.
3976 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
3978 * troff/input.c (input_iterator::shift): Delete argument name.
3979 * troff/node.c (suppress_output_file::really_begin_page,
3980 suppress_output_file::really_transparent_char, node::ascii_print,
3981 node::tprint): Delete names of unused arguments.
3983 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
3985 * refer/label.y (string): Pass $4 to command_error.
3987 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3989 * Version 1.03 released.
3991 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3993 * Makefile: Pass definition of SHELL in SUBFLAGS.
3996 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3997 ps/Makefile: Use gendef to construct header files that are
3998 constructed from the Makefile.
4000 * macros/Makefile: make all should build stripped version of tmac.e.
4002 * refer/Makefile (clean): Remove y.output.
4004 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
4006 * ps/pfbtops.c (main): Add -v option which prints out a version
4008 * ps/Makefile (pfbtops): Link with libgroff.a.
4010 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
4012 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4013 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4015 * refer/lkbib.c (main): Always terminate reference with blank
4017 * refer/lookbib.c (main): Likewise.
4019 * refer/linear.c (file_buffer::load): Check that the file is not a
4022 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4023 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4024 Delete second inclusion of <sys/param.h>.
4026 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
4028 * troff/token.h (token::special): Deleted.
4030 * tbl/main.c (process_format): Rework so that opt->tab_char is
4031 recognized only when appropriate.
4033 * ps/Makefile (clean): Remove pfbtops.
4035 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
4037 * lib/font.c (text_file::next): Don't return if we have got a
4040 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
4042 * refer/refer.c (store_reference): Get hash code from old_table[i]
4043 when rehashing the table.
4045 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4047 * eqn/box.c (box::top_level): Save size and prev size using \R and
4048 restore it afterwards. Set the size to the size at the beginning
4050 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4051 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4053 * refer/Makefile (limits.h): Use ./genlimits.
4055 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4057 * refer/index.c: Delete declarations of stat() and fstat().
4059 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4061 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4063 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4065 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4067 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4069 * troff/input.c (token::get_char): Handle \e.
4071 * refer/linear.c: Delete declarations of fstat() and stat().
4073 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4075 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4076 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4078 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4080 * troff/input.c (do_define_macro): Improve error handling for end
4081 of file while defining macro.
4083 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4085 * eqn/box.h: Fix declaration of set_gsize.
4086 * eqn/box.c (set_gsize): Make argument const char *.
4087 (gsize): Declare as char *.
4088 * eqn/main.c (main): Don't convert gsize to int.
4089 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4091 * Version 1.02 released.
4093 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4095 * macros/tmac.andoc: New file.
4096 * macros/Makefile: Install tmac.andoc.
4098 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4099 operator new and delete on OP_DELETE_BROKEN not being defined.
4100 * Makefile: Mention OP_DELETE_BROKEN.
4102 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4104 * Makefile (bindist): Pass SUBFLAGS.
4106 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4108 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4110 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4113 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4115 * ps/ps.h, ps/psrm.c: Make comment_table and
4116 header_comment_table local to resource_manager::process_file.
4118 * groff.sh: With -TXps pass -printCommand option to gxditview.
4120 * groff.c (possible_command::print): Implement using
4121 append_arg_to_string.
4123 * xditview: Merge in new implementation with own ChangeLog.
4125 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4127 * groff.c (main): Implement PRINT_OPTION.
4128 (append_arg_to_string): New command.
4129 (device_table): Set PRINT_OPTION flag for Xps.
4131 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4133 * troff/groff.h: Rename to troff.h.
4135 * pic/lex.c (lookup_keyword, docmp): New functions.
4136 (get_token): Use new lookup_keyword.
4137 Don't include key.h.
4138 * pic/key.[ch], pic/pic.gperf: Deleted.
4139 * pic/Makefile: Remove gperf stuff.
4141 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4143 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4145 * troff/Makefile, troff/node.c: Move definition of
4146 STORE_WIDTH into node.c.
4148 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4150 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4152 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4153 dvi/devdvi/texb.map: Add lq and rq.
4154 dvi/devdvi: Regenerate fonts.
4155 * ps/devps/textmap: Add lq and rq.
4156 * ps/devps: Regenerate fonts.
4157 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4158 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4160 * pic/object.c (position_rectangle): When checking radius
4161 cope with possiblity that width or height is negative.
4162 (box_object::box_object): Have separate xrad and yrad with
4163 signs matching signs of dim components.
4164 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4165 (box_object::print): With rounded boxes use absolute values
4166 for dim and rad arguments.
4168 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4171 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4173 * various files: Add explicit destructors to keep Saber CC +d
4176 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4178 * eqn/box.c (box::top_level): Restore fonts correctly after
4179 font changes in line containing inline equation. Also
4180 restore previous font as well as current font.
4181 * eqn/pbox.h: Define necessary string and register names.
4183 * troff/input.c (token::next): Case 'R' calls do_register.
4184 (do_register): New function.
4186 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4188 * groff.c, groff.sh: Support Xps device. Allow each device
4189 to have a pseudo_name and a real_name.
4191 * groff.c (run_commands): Don't print `Broken pipe' messages.
4193 * ps/pfbtops.c: New file.
4194 * ps/Makefile: Add pfbtops.
4196 * troff/number.c (parse_term): Improved error message.
4198 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4200 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4202 * Makefile: Integrate refer.
4203 * refer: New directory.
4204 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4205 man/lkbib.man: New files.
4206 * man/Makefile: Support refer man pages.
4208 * lib/lib.h: Declare is_prime.
4209 * lib/prime.c: New file.
4211 * troff/input.c (macro_source): New function.
4212 (init_input_requests): Bind "mso" to macro_source.
4214 * troff/env.c (environment::possibly_break_line): Maintain
4215 pointer to pointer to node to be split in ndp so as to avoid
4216 using address of freed node.
4218 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4219 pointer to first node to be hyphenated in startp so as to
4220 avoid using address of freed node.
4222 * troff/env.c (class trie, class hyphen_trie): Make the
4223 elements of the trie be of type char not unsigned char.
4224 Declare arguments to be const char* instead of unsigned char *.
4226 * troff/env.c (hyphenate): Initialize hbuf[0].
4228 * troff/input.c (set_string): Declare p to be char * and cast
4229 *p to unsigned char when necessary.
4231 * troff/input.c (do_define_macro): Declare s to be const
4232 char*. Cast element to unisgned char when necessary, Declare
4233 d to be an int. Handle EOF better.
4235 * troff/Makefile, troff/input.c: Different scheme for passing
4236 definitions of MACROPATH, HYPHENFILE and DEVICE.
4238 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4240 * tty/devascii/R.proto: Delete entry for em.
4241 * tty/devlatin1/R.proto: Likewise.
4243 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4245 * troff/input.c (translate): Stop when we get a space. Treat eof
4248 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4250 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4252 * tbl/main.c (process_format): A font name following a `f'
4253 modifier that starts with a digit can be only one character long.
4254 Also deal with EOF on the second character of the font name.
4256 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4258 * troff/input.c (token::next): Turn \~ into an
4259 unbreakable_space_node.
4260 * troff/node.c (unbreakable_space_node): New class.
4261 * troff/node.h: Declare it.
4263 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4265 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4266 it's >= 0, before outputting it as a single byte.
4268 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4270 * lib/font.c: Make font_char_metric::code an int.
4271 (font::get_code): Change return type to int.
4272 (font::load): Allow code to be arbitrary integer.
4273 * lib/font.h (font::get_code): Change return type to int.
4274 (font::number_to_index): Change argument type to int.
4275 * troff/input.c (token::next): In case 'N', allow any value.
4276 Store value in token::val.
4277 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4278 (token::get_char, token::add_to_node_list, token::process): Get
4280 (charinfo::set_number): Change argument to int.
4281 (charinfo::get_number): Require that NUMBERED flag be set.
4282 (get_charinfo_by_number): Store numbered characters not between 0
4283 and 255 in a dictionary.
4284 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4286 (charinfo::number): Change type to int.
4287 (charinfo::set_number): Change type of set_number to int.
4288 * troff/node.c (troff_output_file::put_char_width,
4289 troff_output_file::put_char): Test whether character is numbered
4290 using charinfo::numbered().
4291 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4293 * lib/nametoindex.c: New implementation to cope with arbitrary
4296 * troff/input.c (token::operator==): Test val for
4297 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4300 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4301 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4303 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4305 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4308 * all Makefiles: rm targets of cp and >.
4310 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4313 * eqn/lex.c (def_table): Add dollar.
4315 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4317 * troff/input.c (do_width): Push back newline before closing delim
4320 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4322 * groff.c (possible_command::prepend_arg): New function.
4323 (main): Prepend device -m option.
4324 * groff.sh: Put device -m options before command-line options.
4326 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4328 * macros/tmac.an (IP): Quote argument to TP.
4330 * ps/ps.c (main): New option -b, which sets...
4331 (broken_flags): New variable.
4332 (ps_printer::~ps_printer): Incorporate the setup section in the
4333 prolog if (broken_flags & NO_SETUP_SECTION).
4334 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4335 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4336 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4337 ps_printer::print_needed_font_comment,
4338 ps_printer::print_supplied_font_comment,
4339 ps_printer::print_include_font_comments,
4340 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4341 ps_printer::read_download_file, read_document_fonts, add_font,
4342 skip_line, parse_fonts_arg, document_font::document_font,
4343 document_font::~document_font, document_font::download,
4344 ps_output::include_file): Deleted.
4345 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4346 rather than %!PS-Adobe-2.0. Make calls to
4347 resource_manager::need_font for each font that we used. Replace
4348 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4349 print_supplied_font_comment, print_needed_font_comment by call to
4350 resource_manager::print_header_comments. Output %%Orientation
4351 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4352 Don't output the prolog directly. Instead call
4353 resource_manager::output_prolog. Only define #copies when ncopies
4354 > 1. Delete calls to print_include_font_comments and
4355 download_fonts. Add call to resource_manager::document_setup.
4356 (ps_printer::do_file): Call resource_manager::import_file instead
4357 of including it ourselves.
4358 (ps_printer::do_import): Likewise. Also don't call
4359 merge_import_fonts. Push userdict on the dictionary stack before
4360 and pop it afterwards.
4361 Move declaration of ps_output into ps.h.
4362 * ps/psrm.c: New file implementing resource_manager class.
4363 * ps/ps.h: New file declaring ps_output and resource_manager
4365 * ps/devps/zapfdr.ps:
4366 * ps/devps/symbolsl.ps:
4367 * ps/devps/prologue: Use 3.0 conventions.
4368 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4369 Add default definition of BROKEN_SPOOLER_FLAGS.
4370 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4371 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4373 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4375 * etc/grog.pl: New file.
4376 * Makefile (GROG): New variable.
4377 Add GROG to SUBFLAGS.
4378 * etc/Makefile (GROG): New variable.
4379 (install.nobin): Install $(GROG) rather than grog.sh.
4381 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4383 * eqn/special.c (special_box::compute_metrics): Make the input and
4384 output strings the same. Get the new height and depth from the
4385 predefined height and depth registers. Also make subscript kern
4387 (special_box::compute_subscript_kern, special_box::compute_skew):
4390 * eqn/box.c (pointer_box::compute_skew,
4391 simple_box::compute_metrics, box::top_level)
4392 * eqn/text.c (prime_box::compute_metrics,
4393 prime_box::comput_subscript_kern)
4394 * eqn/limit.c (limit_box::compute_metrics):
4395 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4396 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4397 negative numbers in `nr' requests with a leading 0.
4399 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4401 * eqn/special.c: New file.
4402 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4403 Add new rule for simple.
4404 * eqn/lex.c (token_table): Add SPECIAL.
4405 * eqn/box.h: Declare make_special_box.
4406 * eqn/Makefile: Add special.[co].
4408 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4410 * ps/devps/prologue: Possibly set packing to true while defining.
4411 Create grops dictionary here. Initialize local variables before
4412 defining procedures.
4413 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4414 the dictionary stack. Set strokeadjust and overprint to false if
4415 the relevant operators are defined.
4416 (PEND): New procedure.
4417 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4418 prologue. Do everything else in the setup section.
4419 (ps_printer::do_import): Just call PBEGIN and PEND around the
4420 picture. Also push userdict before, and pop it afterwards.
4422 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4424 * troff/node.c (bracket_node::tprint): Brackets were being printed
4427 * macros/tmac.an (SH, SS): Set fill mode.
4429 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4431 * troff/div.c (top_level_diversion::begin_page): Set
4432 high_water_mark to 0.
4434 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4436 * man/mdate.sh: New file.
4437 * man/mdate.c: Deleted.
4438 * man/Makefile: Use mdate.sh instead of mdate.
4441 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4443 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4445 * man/mdate.c: New file.
4446 * man/*.man: Replace modification date by @MDATE@.
4447 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4448 (mdate): New target.
4450 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4451 Remove illegal input characters.
4453 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4455 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4457 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4459 * troff/div.c (begin_page): Change behaviour when
4460 !first_page_begun and !break_flag.
4462 * troff/input.c (do_name_test): Return 0 if argument is empty.
4464 * troff/input.c (read_long_escape_name): Require closing ] to be
4465 at same input level as opening [.
4467 * troff/input.c (read_increment_and_escape_name): New function.
4468 (get_copy, process_input_stack): Use this for \n.
4470 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4472 * troff/div.c (top_level_diversion::begin_page): Ignore the
4473 current value of page_number if !first_page_begun.
4475 * groff.c (main): Fix declaration of buf.
4477 * troff/input.c (do_name_test): New function.
4478 (token::next): Implement \A.
4479 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4480 (token::description, token::add_to_node_list, token::process):
4481 Handle TOKEN_ESCAPE.
4482 * troff/token.h: New token TOKEN_ESCAPE.
4484 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4486 * pic/main.c (do_picture): Allow space before and after filename
4487 following `<'. Check that the filename is not empty.
4489 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4491 * Version 1.01 released.
4493 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4495 * dvi/tmac.dvi: ftr HR to H.
4497 * macros/tmac.e: Round up computation of $r.
4499 * xditview/tmac.X: Don't give up completely in compatibility mode.
4500 Use \n(.s instead of \n[.s].
4502 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4503 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4504 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4505 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4506 short names in the char definitions.
4508 * ps/tmac.ps: Don't give up completely in compatibility mode.
4509 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4510 quote in front of \n(.s. Add u to factors inside \s[...].
4512 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4514 * tty/tmac.tty: Call the nroff request.
4516 * macros/tmac.e ((x, )x): Better definitions that work properly
4518 (@0, @1): Helper macros for (x.
4520 * macros/tmac.e ($s, hl): Use \l rather than \D.
4522 * tty/tmac.tty: Make it work better in compatibility mode.
4523 (pchar): Rename to tty-char.
4525 * macros/tmac.e (@E): New macro.
4526 (r, i, b, rb, bi): Use @E.
4528 * macros/tmac.e (@F): Don't use (;...) syntax.
4530 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4531 it was modified for groff.
4533 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4535 * macros/tmac.e (<., .>): Removed.
4536 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4538 * macros/tmac.e: Remove check that groff is being used.
4540 * macros/tmac.e (@C): Change families only if using groff; turn
4541 compatibility mode off while changing familes. Save compatibility
4542 mode before changing families and restore it afterwards.
4544 * macros/tmac.e (@h): Remove test for offset + line length.
4546 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4547 (lo, th, ac): Define to call @S instead of using als.
4549 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4550 the ratio of the vertical spacing to the point size in units
4551 expressed as a percentage. Use these instead of $10r and $10R,
4552 Delete $10r and $10R.
4554 * lib/font.c (font::load): In default computation of space_width,
4555 divide by sizescale. Use scale_round.
4557 * macros/tmac.an (TP): Don't call `nf'.
4558 (an-do-tag): Don't call `fi'.
4560 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4562 * troff/input.c (process_input_stack): Handle the case where
4563 spaces at the beginning of an input line are followed by a
4566 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4568 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4569 * groff.sh: Use pic -x with the dvi device.
4571 * dvi/devdvi/FontMakefile (H): Don't use -s.
4573 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4574 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4575 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4578 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4580 * ps/psfig.diff: New file.
4581 * ps/tmac.psfig: New file.
4583 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4585 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4586 (]-): Don't call ref*do-tl.
4588 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4590 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4591 (fn@do-FS): Rename to fn*do-FS.
4593 * troff/input.c (transparent_translate): New function.
4594 (process_input_stack): Apply transparent_translate before calling
4595 diversion::transparent_output(unsigned char).
4597 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4599 * troff/input.c (do_define_macro): Define the macro before calling
4602 * xditview/Makefile: Add DEVICES variable. Change install target
4605 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4607 * groff.c (run_commands): Handle the possibility that there are
4608 child processes other than those forked by us.
4610 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4612 * lib/string.c (string::append): New function.
4613 * lib/stringclass.h: Declare it.
4615 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4617 * eqn/main.c (main): New option -N which sets
4618 no_newline_in_delim_flag.
4619 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4621 * groff.c (main): Pass -N on to eqn.
4622 (help, synopsis): Mention -N.
4623 * groff.sh: Implement -N.
4625 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4627 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4628 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4629 (XP): Allow as initializer.
4631 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4633 * troff/env.c (environment::wrap_up_field): If field_spaces are
4634 non-zero and we have a current_tab, subtract padding from
4635 tab_distance. If this makes tab_distance <= 0, use the next tab
4636 stop instead. If there isn't any next tab or it's a left tab,
4637 wrap up the current tab.
4638 (environment::start_field): Initialize tab_precedes_field.
4639 (environment::wrap_up_tab): If there's a current field, update
4640 pre_field_width, field_distance and tab_precedes_field.
4641 * troff/env.h (environment::tab_precedes_field): New member.
4643 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4645 * ps/ps.c (ps_printer::do_file): New function.
4646 (ps_printer::special): Bind to `file' special.
4647 (ps_printer::do_exec): Set ndefined_styles to 0.
4649 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4651 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4652 Avoid stripping first character from the start of unrecognized
4653 escapes. Use lex_error instead of error to report errors.
4654 * eqn/lex.c (get_token): Rework handling of escapes.
4655 (lex_error): Move declaration into...
4658 * xditview/xditview.c (main): Make -page option work.
4660 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4662 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4664 * macros/tmac.s (B2): Correct size of box.
4666 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4668 * macros/tmac.s (B2): Postpone drawing the box until in the
4669 top-level diversion.
4671 * tty/tmac.tty: Add font translations for C, CR, CW.
4673 * groff.c (synopsis, help): Document -i.
4674 * groff.sh: Implement -i.
4676 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4677 Simplify the construction of SN.
4679 * troff/number.c (parse_term): Give `|' a higher precedence.
4680 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4683 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4685 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4687 * lib/string.c (string::move): New function.
4688 * lib/stringclass.h: Declare it.
4690 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4692 * troff/env.c (distribute_space): Add optional argument
4694 (environment::wrap_up_field): Call distribute_space with
4695 `force_forward' argument of 1.
4697 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4699 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4700 Inline it. Move reallocation into...
4701 (string::grow1): New function.
4702 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4703 dependencies to include library header files.
4704 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4706 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4708 * macros/tmac.s (@NH): Use the same number registers than -ms does
4709 for the heading level counters. Use the same string that -ms does
4710 for the number for this heading.
4712 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4714 * lib/new.c (operator new): Cast result of malloc to char *.
4716 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4719 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4721 * groff.c (main): Support -i.
4723 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4725 * pic/pic.h: Include <osfcn.h>.
4727 * ps/ps.c: Add declaration of mktemp.
4729 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4730 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4731 argument as union wait *.
4732 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4733 argument to union wait *.
4735 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4737 * tty/tmac.tty: Add definition of \(co.
4739 * pic/object.c (make_arc): Only increase radius when radius
4740 strictly less than d.
4741 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4744 * troff/env.c (environment::environment(symbol),
4745 environment::environment(const environment *)): Initialize
4748 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4750 * tbl/main.c (main): Add exit(0).
4752 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4754 * pic/main.c (main):
4755 * eqn/main.c (main):
4756 * tbl/main.c (main):
4757 * etc/soelim.c (main):
4758 * driver/printer.c (printer::~printer):
4759 * troff/node.c (real_output_file::~real_output_file,
4760 real_output_file::flush): Check for errors on stdout.
4762 * most files: Add 1991 to copyright notice.
4764 * macros/tmac.s: Don't test \n(.x and \n(.y.
4766 * troff/input.c (token::next): Rename `escape_char' label to
4767 `handle_escape_char' and `normal_char' label to
4768 `handle_normal_char'.
4770 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4772 * groff.c (main, synopsis, help): Support -a option.
4773 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4774 to trflags while parsing options.
4776 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4778 * troff/number.c (parse_term): With `m', `M' and `n' scale
4779 indicators, convert scale factor to hunits before scaling.
4781 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4783 * lib/font.c (scale_round): Better test for overflow when n is
4786 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4788 * tbl/main.c (process_format): Add second argument of type
4789 options*. Change callers. Allow opt->tab_char as well as '\t'
4790 between format items.
4792 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4794 * macros/tmac.an (PD): With no arguments, make sure register PD is
4796 (TH): Call PD with no argument, instead of setting register PD
4799 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4801 * Version 1.00 released.
4803 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4805 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4807 * dvi/devdvi/DESC: Mount CW instead of CR.
4809 * dvi/tmac.dvi: Add definition of \(tm.
4811 * dvi/devdvi/texsy.map: Add lh, and rh.
4812 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4813 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4815 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4816 * dvi/devdvi/Makefile: Install H.
4817 * dvi/devdvi/H: New file.
4819 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4821 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4824 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4826 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4828 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4830 * macros/tmac.s (@EN): Handle the case where the equation is empty
4831 but the label is not.
4833 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4835 * troff/groff.h: New warning category WARN_SPACE.
4836 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4837 WARN_SPACE to warning_table.
4838 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4839 is longer than two characters and is not defined, but the first
4840 two characters do make a defined name.
4842 * PROBLEMS: New file.
4844 * CHANGES: New file.
4845 * README-0.6, README-1.00: Deleted.
4847 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4848 * xditview/devX75/Makefile: Make devX75-12.
4849 * xditview/devX100/Makefile: Make devX100-12.
4851 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4852 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4854 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4856 * README-0.7: Rename to README-1.00.
4858 * macros/tmac.pic: New file.
4859 * macros/Makefile (install.nobin): Install tmac.pic.
4861 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4863 * troff/env.c (hyphen_word): Correct the test for whether the
4864 token is a hyphen. Reset npos to 0.
4866 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4868 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4870 * macros/tmac.s (ds*common-end): Call par*reset.
4872 (par@reset-indent): Deleted.
4874 * macros/tmac.s (@IP): Divert the label.
4876 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4878 * xditview/draw.c (setGC): Use a line width of .1m rather than
4879 .04m by default; round rather than truncate value.
4881 * tbl/table.c (class empty_entry): New class.
4882 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4883 (table::add_entry): Represent empty entries by objects of type
4885 (table_entry::line_type): Return -1.
4886 (table::determine_row_type): Ignore entries with line_type 0.
4887 Treat type -1 as non-lines.
4889 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4891 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4892 macros/tmac.s: Rename \(-d to \(Sd.
4894 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4896 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4897 * xditview/libXdvi/DviChar.c: Likewise.
4898 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4900 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4902 * troff/div.c (top_level_diversion::begin_page): Call
4903 init_output() if the_output is 0.
4905 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4907 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4909 (get_copy): Turn \E into ESCAPE_E.
4910 (token::process, asciify): Handle ESCAPE_E.
4912 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4914 (DS): Implement `.DS R'.
4916 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4918 * macros/tmac.s (FS): New macro.
4920 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4922 * macros/tmac.s (cov*tl-init): Remove after first execution
4923 instead of aliasing to @nop. Call top of page macro explicitly
4924 instead of setting trap; call @init first. Set pg@top as top of
4926 (cov*auto-init): Deleted. Set cov*tl-init instead of
4927 cov*auto-init as top of page trap.
4928 (TL, LP): Do a break instead of calling cov*tl-init.
4929 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4930 @FE; in this case also give a warning and always start another
4931 page. No need to set pg@top here.
4932 (cov*tl-init): Rename to cov*first-page-init.
4934 * macros/tmac.s (RP): Do `.pn 0'.
4935 (cov*tl-init): With RP format don't do `.pn 0'.
4937 * macros/tmac.s (pg@cs-top): Set no space mode.
4939 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4940 (cov*ab-init): Alias TL, AU and AI to these.
4942 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4944 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4945 (@EN): Do nothing unless \n[dl] is > 0.
4947 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4949 * pic/object.c (ellipse_object::radius): New function.
4951 * VERSION: Change version to 0.7.
4953 * tbl/table.c (block_entry::do_divert): Declare return type as
4955 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4957 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
4959 * troff/column.c: New file.
4960 * troff/Makefile: Corresponding changes.
4962 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
4965 * troff/div.c (top_level_diversion::space): If the space causes
4966 the first-page transition and springs a trap, truncate the space
4969 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
4971 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4974 * pic/troff.c (troff_output::line_thickness,
4975 troff_output::set_fill): Do a horizontal motion to compensate for
4976 the width of the \D escape sequence.
4978 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
4980 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4983 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
4986 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4987 Supply empty definition.
4988 (text_entry::simple_print, simple_text_entry::simple_print):
4989 Delete declarations.
4990 (table::add_entry): Represent empty entries by objects of type
4993 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4995 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4997 * tbl/table.c (left_text_entry::add_tab): New function.
4999 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
5002 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
5004 * troff/env.c (environment::start_field): Give an error message if
5005 there is no next tab.
5007 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
5009 * troff/env.c (hyphenate): Skip initial elements with zero
5012 * macros/tmac.s (par@init): Keep VS in points rather than units.
5014 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
5016 * pic/main.c (main): Implement `-c' option.
5017 * pic/output.h: Declare make_tpic_output().
5018 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5020 (tpic_output): New class.
5021 (tpic_output::tpic_output, tpic_output::set_pen_size,
5022 tpic_output::command, make_tpic_output): New functions.
5024 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
5026 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
5027 if they're not already defined.
5028 * tbl/table.c (init_output): Don't test \n(.g.
5030 * troff/input.c (do_if_request): Delete `g' condition. Recognize
5031 `d', `r' and `c' conditions even in compatibility mode.
5033 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
5035 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5038 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
5040 * troff/env.h (environment::prev_line_interrupted): New member.
5041 (environment::get_prev_line_interrupted): New function.
5042 * troff/env.c (environment::newline): Set prev_line_interrupted.
5043 (environment::environment(const environment *),
5044 environment::environment(symbol)): Initialize
5045 prev_line_interrupted.
5046 * troff/input.c (process_input_stack): Don't give special
5047 treatment to space and newline at the beginning of the line if the
5048 previous line was interrupted.
5050 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5052 * eqn/eqn.y: Disallow PRIME by itself.
5053 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5055 (def_table): Remove definition of '. Define prime to be `.
5057 * eqn/eqn.y: Split off part of rule `script' into a new rule
5060 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5062 * macros/tmac.s ({, }): New string aliases.
5064 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5066 * README-0.7: New file.
5068 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5070 * macros/tmac.s: New file.
5071 * man/groff_ms.man: New file.
5072 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5073 * Makefile.bd: Similarily.
5074 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5075 definition of TMAC_S.
5076 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5077 * macros/TODO: New file.
5079 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5081 * troff/env.c (right_justify): New function.
5082 (init_env_requests): Bind this to request "rj".
5083 (center_lines): Set right_justify_lines to 0. If we get a bad
5084 integer, center 1 line.
5085 (environment::environment(symbol), environment::environment(const
5086 environment *)): Initialize right_justify_lines.
5087 (environment::get_right_justify_lines): New function.
5088 (init_env_requests): Bind this to number_register ".rj".
5090 * troff/env.c (environment::choose_breakpoint): Implement
5091 hyphenation_margin and hyphenation_space.
5092 (environment::get_hyphenation_space,
5093 environment::get_hyphenation_margin): New functions.
5094 (init_env_requests): Bind these to .hys and .hym.
5095 (hyphenation_space_request, hyphenation_margin_request): New
5097 (init_env_requests): Bind these to hys and hym.
5098 (environment::environment(symbol), environment::environment(const
5099 environment *)): Initialize hyphenation_margin and
5101 * troff/env.h: Corresponding changes to class environment.
5103 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5105 * troff/div.c (blank_line): Always do a break.
5107 * eqn/box.c (do_text): Turn off escapes while appending text to
5110 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5112 * troff/input.c (while_break_request, while_continue_request): New
5114 (init_input_requests): Bind these to "break" and "continue".
5115 (while_depth, while_break_flag): New variables.
5116 (while_request): Update while_depth. Break out of loop if
5117 while_break_flag is set.
5119 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5121 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5124 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5126 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5128 * stringify: New file.
5129 * Makefile (groff.o): Use stringify.
5131 * xditview/tmac.X: Remove definition of \(rn.
5132 * xditview/libXdvi/DviChar.c: Remove radicalex from
5135 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5137 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5138 (alphabetic_block_entry::alphabetic_block_entry,
5139 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5141 (block_entry::divert): Split off body into ...
5142 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5143 from the line length; also update the span width to dl+2n, and the
5144 alphabetic span width to dl.
5146 * driver/input.c (do_file): While reading argument to D command,
5147 when expanding buffer, multiply szp by sizeof(int) rather than 2
5148 in the argument to memcpy.
5150 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5151 width of alphabetic columns.
5153 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5155 * troff/node.c (lookup_family): Supply second argument to lookup.
5157 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5158 search, return immediately if v is 0.
5160 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5161 (troff_output::start_picture): Set this reg.
5162 (troff_output::end_picture): Remove this reg
5163 * eqn/box.c (box::extra_space): Don't produce `\x's if
5164 EQN_NO_EXTRA_SPACE_REG is defined.
5166 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5167 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5170 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5172 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5175 * troff/div.c (top_level_diversion::top_level_diversion):
5176 Initialize page_number to 0.
5178 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5180 * groff/troff (environment::environment(const environment *)):
5181 Initialize name to e->name, rather than "anonymous".
5183 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5185 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5186 requested_page. Split middle part into ...
5187 (FindPage): New function.
5188 (SetValues): If we don't yet know the last page, and the requested
5189 page is greater than the current page, call FindPage.
5190 Update the font_map_string before doing this.
5192 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5193 Translate \(lh and \(rh into left and right double arrows.
5195 * troff/node.c (class hyphen_inhibitor_node): New class.
5196 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5197 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5198 hyphen_inhibitor_node::type,
5199 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5200 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5201 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5204 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5206 * troff/node.h (dummy_node::get_hyphenation_type,
5207 transparent_dummy_node::get_hyphenation_type): Declare them.
5208 * troff/node.c: (dummy_node::get_hyphenation_type,
5209 transparent_dummy_node::get_hyphenation_type): New functions.
5211 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5213 * xditview/libXdvi/draw.c: If M_PI not defined after including
5214 math.h, then define it.
5216 * xditview/Makefile: Add definition of AR. Pass it to the submake
5218 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5220 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5222 * troff/dictionary.h (object_dictionary::alias): Declare return
5224 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5225 if the old name was defined.
5226 * troff/input.c (alias_macro): Give a warning if the old name was
5228 * troff/reg.c (alias_reg): Likewise.
5230 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5232 * troff/input.c (token::next): Delete implementation of \R.
5234 * macros/Makefile: Strip comments from tmac.e while installing it.
5236 * troff/input.c: New variable `nroff_mode'.
5237 (troff_request, nroff_request): New functions.
5238 (init_input_requests): Bind `troff' and `nroff' to troff_request
5240 (do_if_request): Compute results of t and n conditions from
5243 * text/text.c (split_text): Fix typo in >=.
5245 * eqn/lex.c: Add definition of `==' to def_table.
5247 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5249 * pic/tex.c (tex_output::start_picture): Change the definitions of
5250 \graph and \graphtemp so that they work properly with Plain TeX.
5252 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5253 argument to `ar' is not less than the first.
5255 * pic/pic.y: Allow a comma between elements of the variable list
5256 in the argument to `reset'.
5258 * pic/object.c (arc_object::arc_object): Fix computation of
5261 * eqn/main.c (main): Add exit(0).
5263 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5265 * troff/div.c (begin_page): Test no_space_mode after doing the
5266 break, but still push the page ejector cookie before doing the
5267 break. Also set the next page number after doing the break.
5269 * xditview/xditview.c (NewFile): Don't set the title and icon name
5270 if this is the first file and its name is `-'.
5271 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5272 the X75 and X100 devices.
5273 (main): If a device has the XT_OPTION flag set and there's exactly
5274 one file argument, pass the driver -xrm and -title options to set
5275 the icon name and window title to the name of the file.
5277 * troff/env.c (environment_switch): If there was an argument but
5278 it wasn't a valid number or name, then pop an environment but
5279 don't give an error message on underflow.
5281 * troff/number.c (start_number): Correct spelling in error message.
5283 * troff/input.c (token::delimiter): Don't print an error message
5286 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5287 ParseDrawFunction if dw->display_enable is true.
5289 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5291 * pic/pic.y: Parse text positioning like normal attributes, so as
5292 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5293 positioning attribute.
5295 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5297 * tbl/main.c (process_data): When in state START while reading a
5298 text block, don't change to state MIDDLE if c is a newline.
5300 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5302 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5303 so as to avoid shadowing parameter.
5305 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5307 * tbl/table.c (trim_space): Deleted.
5308 (table::add_entry): Don't call trim_space.
5310 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5312 * VERSION: Change version to 0.6.
5314 * troff/number.c (parse_expr): Make == work.
5316 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5318 * man/grog.man: New file.
5319 * man/Makefile: Add grog.n to MAN1PAGES.
5320 * etc/grog.sh: New file.
5321 * etc/Makefile: Install grog.sh as grog.
5323 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5325 * troff/input.c (token::next): Implement \E.
5327 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5329 * xditview/tmac.X: Change font translations to match tmac.ps.
5331 * troff/input.c (non_empty_name_warning): Don't give a warning if
5332 `\{' terminates the name.
5334 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5336 * ps/devps/symbol.diff: New file.
5337 * ps/devps/FontMakefile: Mention symbol.diff.
5339 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5341 * troff/node.c (font_position): Use get_long_name to read the
5344 * troff/env.c (environment_switch): If we get a number that's < 0
5345 or >= NENVIRONMENTS, treat it like a name.
5346 Change NENVIRONMENTS to 10.
5348 * troff/groff.h: Remove definition of FONTS_MAX.
5349 * troff/node.h (class font_family): Make map a pointer instead of
5350 an array. Add a map_size member. Make it a class. Make nm const
5351 and public. Make invalidate_fontno a friend.
5352 * troff/node.c: Define font_table_size. Make font_info a pointer
5353 rather than an array.
5354 (class troff_output_file): Allocate font_position dynamically. Add
5355 nfont_positions member.
5356 (troff_output_file::set_font): Grow font_position if necessary.
5357 (troff_output_file::~troff_output_file): Delete font_position.
5358 (troff_output_file::troff_output_file): Allocate font_position.
5359 (grow_font_table): New function.
5360 (troff_output_file::really_begin_page,
5361 troff_output_file:really_copy_page): Use nfont_positions rather
5363 (mount_font_no_translate, mount_style): Call grow_font_table if
5365 (font_family::font_family): Allocate map.
5366 (font_family::make_definite): Grow map if necessary. Use
5367 font_table_size instead of FONTS_MAX.
5368 (font_family::~font_family): New function.
5369 (invalidate_fontno): Use font_family::map_size.
5370 (get_fontno, env_space_width, env_half_narrow_space_width,
5371 env_narrow_space_width, symbol_fotno, is_good_fontno,
5372 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5374 (next_available_font_position): Never return 0.
5376 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5378 * ps/tmac.ps: Add font translations for compatibility with dpost.
5380 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5382 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5383 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5384 Move definitions baseline_sep, shift_down, column_sep,
5385 matrix_side_sep into...
5386 * eqn/box.c: Add them to param_table.
5387 * eqn/pbox.h: Add declarations to pbox.h.
5389 * troff/input.c (set_string): Cast value to unsigned char *.
5391 * troff/token.h (process_input_stack): Declare it static before
5392 declaring it a friend.
5394 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5396 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5398 * dvi/devdvi/EX: Regenerate.
5400 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5403 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5405 * eqn/lex.c: In defaults_table, make definition of `dot' call
5406 `dot_def'. Don't explicitly make it roman. Similarily for other
5409 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5411 (for_input::get, for_input::peek): Use this.
5412 (do_for): Add by_is_multiplicative argument.
5413 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5414 Change semantic value of optional_by to be a double plus a flag
5415 saying whethet the by clause is multiplicative.
5417 * eqn/lex.c (get_delimited_text): Remember location of start of
5418 definition. Improve error handling when EOF is encountered.
5420 * lib/font.h: Rename handle_x_command to
5421 handle_unknown_font_command.
5422 * lib/font.c (font::load): Call handle_unknown_font_command for
5423 any unknown command in the font description file. Don't call
5424 handle_x_command. Include the name of the command in the argv.
5425 Improve message for unknown command after kernpairs or charset
5427 * ps/ps.c (ps_font::handle_x_command): Rename to
5428 handle_unknown_font_command. Remove message about `x download'
5429 command. Give error message for wrong number of arguments.
5430 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5431 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5432 handle_unknown_font_command. Give an error message for wrong
5433 number of arguments. Rename design_size to designsize.
5434 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5435 checksum', `designsize' instead of `design_size'.
5437 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5439 * eqn/*.[chy]: Change underaccent to uaccent.
5441 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5442 give it the same precedence as ACCENT.
5443 * eqn/other.c (make_underaccent_box): New function.
5444 * eqn/box.h: Declare it.
5445 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5448 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5450 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5451 (parse_init): Call reset_all.
5452 (define_variable): When defining scale reset only those
5453 pre-defined variables that are scaled.
5454 (defaults_table): Add `scale' as non-scaled value.
5456 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5457 together with the text; allow any number of positioning words;
5458 allow center as a positioning word.
5460 * pic/object.c (output::compute_scale): Get picture maximum height
5461 and width from variables called maxpswid and maxpsht.
5462 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5464 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5466 * pic/object.c (object_spec::make_text): Multiply textht by number
5469 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5471 (do_sprintf): New function.
5472 (pic.gperf): Add sprintf token.
5473 (text, sprintf): New rules.
5475 * pic/pic.y: `rand()' with no arguments returns a random number
5478 * pic/pic.y: Allow a bare expression to be an attribute: change
5479 precedences to support this. Change optional_ordinal rule to
5480 optional_ordinal_last to avoid reduce/reduce conflict.
5481 * pic/object.c (object_spec::object_spec): Initialize direction.
5483 * pic/pic.y: Implement ^ operator meaning exponentiation.
5485 * troff/node.h: Add default argument to mount_font.
5486 * troff/node.c (font_position): Read an optional third argument
5487 giving the external_name.
5488 (mount_font): Add optional argument giving the external_name.
5489 (mount_font_not_translate): Have additional argument giving
5490 external name. Use this name to load the font. Pass both names
5491 to font_info::font_info.
5492 (font_info::font_info): Have additional argument giving
5494 (class tfont): New member external_name.
5495 (font_info::get_tfont): Use external name to construct tfont_spec.
5497 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5499 * eqn/lex.c (init_table): Add argument giving device. Define
5500 name of device to be "1".
5501 (do_ifdef): Counts as true if the argument has been defined with
5503 * eqn/main.c (main): Call init_table with device argument. Make
5504 device local to main.
5505 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5508 * pic/lex.c (get_delimited): Allow text to be delimited by
5509 matching {}s. Don't recognize ending delimiter within a string.
5511 * troff/input.c (get_delim_name): New function.
5512 (token::next): Implement \C.
5514 * lib/font.c (font::load): Grok ---. Add an alias for each
5515 character based on its code.
5516 (font::get_code_width): Deleted.
5517 * lib/font.h (class font): Declare font::number_to_index().
5518 Remove declaration of font::get_code_width.
5519 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5520 to indices of named characters.
5521 (font::number_to_index): New function.
5522 * troff/input.c (font::number_to_index): New function.
5523 (get_charinfo_by_number, charinfo::get_number,
5524 charinfo::set_number): New functions.
5525 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5526 (token::process, token::description, token::get_char,
5527 token::add_to_node_list, token::operator==): Handle
5528 TOKEN_NUMBERED_CHAR.
5529 * troff/charinfo.h: Declare get_charinfo_by_number,
5530 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5532 (charinfo::numbered): New function.
5533 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5534 * troff/env.h (class environment): Remove declaration of ...
5535 * troff/env.c (environment::make_numbered_char_node): Deleted.
5536 * troff/node.c (make_numbered_node): Deleted.
5537 (class numbered_glyph_node): Remove.
5538 (troff_output_file::put_char_width, troff_output_file::put_char):
5539 Handle numbered chars.
5540 (troff_output_file::numbered_char): Removed.
5541 (tfont::get_code_width): Removed.
5542 (make_glyph_node): Don't search special fonts for numbered
5544 * troff/node.h: Remove declaration of make_numbered_node.
5545 * driver/input.c (do_file): Handle N command.
5546 * driver/printer.h: Add declaration of ...
5547 * driver/printer.c (printer::set_numbered_char): New function.
5548 * dvi/tfmtodit.c (main): Generate unnamed entries.
5549 * ps/devps/afmtodit: Likewise.
5550 * xditview/xtotroff.c (MapFont): Likewise.
5551 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5553 * tbl/main.c (process_format): If multiple widths are specified
5554 for a column but all the widths are the same, don't give an error
5557 * tbl/table.c (table::do_row): If the current row is all lines and
5558 the stuff doesn't contains a line, mark the top of the row after
5559 printing stuff before the row. If the current row is not all
5560 lines and the stuff doesn't contain a line, don't unnecessarily
5561 mark the top of the row before printing the stuff.
5563 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5565 * troff/groff.h: Remove MAX_PATH.
5566 * troff/input.c (open_file): Dynamically allocate space for the
5568 (open_mac_file, process_macro_file): Corresponding changes.
5570 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5572 * troff/node.h (class output_file): Make copy_file pure. Add
5573 vspace method ifdef COLUMN. Add is_printing method.
5574 * troff/node.c: Add class printing_reg. Add class
5575 real_output_file. Derive other output_file classes from
5576 real_output_file; in these classes rename begin_page to
5577 really_begin_page, print_line to really_print_line, copy_file to
5578 really_copy_file, transparent_char to really_transparent_char.
5579 Move output_file::flush to real_output_file. Add printing member
5580 to class output_file.
5581 * troff/div.h: Remove printing member from top_level_diversion.
5582 Add vspace member function to class diversion ifdef COLUMN. Add
5583 some declarations ifdef COLUMN.
5584 * troff/div.c (top_level_diversion::copy_file,
5585 top_level_diversion::transparent_output,
5586 top_level_diversion::output): Don't test printing member before
5588 * troff/input.c: Handle initial variable_space_request ifdef
5590 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5593 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5595 * troff/div.c (diversion::need): Make any space forced. If we
5596 sprung a trap, set truncated_space to minus the distance to the
5597 trap and set needed_space to the amount that was needed.
5598 (top_level_diversion::space): A forced space turns no_space_mode
5600 (class constant_vunits_reg): New class.
5601 (init_div_requests): Implement number registers .trunc and .ne
5602 using constant_vunits_reg.
5603 (class truncated_space_reg): Deleted.
5605 * troff/div.h: Don't have a no_space_mode member in diversion.
5606 Instead have it in top_level_diversion.
5607 * troff/div.c (diversion::diversion): Don't initialize
5609 (top_level_diversion::top_level_diversion): Initialize
5611 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5612 (macro_diversion::output): Don't clear no_space_mode.
5614 * troff/input.c (diverted_space_node::reread): Don't call
5615 environment::do_break. In fill mode, act like a blank line.
5616 (diverted_copy_file_node::reread): Don't call
5617 environment::do_break.
5619 * troff/div.c (blank_line): New function.
5620 * troff/div.h: Declare it.
5621 * troff/input.c (process_input_stack): Call it.
5623 * troff/div.c (truncated_space_reg::get_string): New function.
5624 (init_div_requests): Bind to .trunc.
5625 (space_request, top_level_diversion::space,
5626 top_level_diversion::output, macro_diversion::space,
5627 macro_diversion::output): Update truncated_space.
5628 (macro_diversion::output): Redo calculations when trap sprung.
5629 (macro_diversion::output, macro_diversion::space): No need for
5632 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5633 after truncating post line spacing.
5635 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5637 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5638 defined as a procedure rather than as an operator.
5640 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5642 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5644 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5646 * troff/div.c (top_level_diversion::output): Merge
5647 output_file::print_line and output_file::end_of_line member
5649 * troff/div.h (class output_file):
5650 * troff/node.c (troff_output_file::print_line,
5651 troff_output_file::end_of_line, output_file::end_of_line,
5652 ascii_output_file::print_line, suppress_output_file::print_line):
5653 Corresponding changes.
5655 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5657 * troff/input.c (token::next): Don't give a warning for `\.'.
5659 * troff/env.c (environment::get_center_lines): New function.
5660 (init_env_requests): Bind number register .ce to it.
5661 * troff/env.h: Declare it.
5662 * tbl/table.c (table::init_output): Define reset macro to restore
5663 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5665 (table::print): If center option not given, then imply center
5666 option if SAVED_CENTER_REG > 0.
5668 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5670 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5671 Troff.ps from DOWNLOAD.
5673 * troff/Makefile: Change comment in DEFINES to avoid confusing
5676 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5677 code. Don't try to catch errors with stopped.
5678 (check_line_lengths): New function.
5679 * ps/devps/prologue (EXEC): Deleted.
5680 (EBEGIN, EEND): New procedures.
5682 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5684 * troff/input.c: Include request.h before node.h.
5685 * troff/node.c: Likewise.
5686 * troff/env.c: Likewise.
5687 * troff/div.c: Likewise.
5688 * troff/node.h (class special_node): Store argument as a macro
5689 rather than a char *.
5690 * troff/node.c (special_node::special_node, special_node::copy):
5692 (special_node::~special_node): Deleted.
5693 (special_node::tprint): Deleted.
5694 (special_node::tprint_start, special_node::tprint_end,
5695 special_node::tprint_char): New functions.
5696 (troff_output_file::special): Deleted.
5697 (troff_output_file::start_special, troff_output_file::end_special,
5698 troff_output_file::special_char): New functions.
5699 * troff/input.c (special_node::tprint): New function.
5700 (do_special): Use macro not char *.
5701 (do_transparent_macro): Deleted.
5702 (token::next): Don't call do_transparent_macro.
5704 * troff/input.c (token::next): Add 'Y' case.
5705 (do_transparent_macro): New function.
5706 * troff/node.c (troff_output_file::special): Handle newlines with
5707 argument using new continuation convention.
5708 * driver/input.c (get_string): Cope with continuation convention.
5709 (do_file): Don't call skip_line after calling get_string(1).
5710 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5711 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5713 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5716 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5718 * troff/input.c (asciify): By default, illegal input characters
5719 should return empty string.
5721 * troff/input.c (copy_file): Handle first page transition like title.
5722 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5724 * troff/input.c (token::next): Improve error message for EOF after
5726 (input_char_description): New function.
5727 (get_char_for_escape_name): Use input_char_description.
5728 (token::next): Warn about unrecognized escape sequences.
5729 (warning_table): Add WARN_ESCAPE.
5730 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5733 * troff/token.h: Remove declaration of process_input_stack.
5735 * troff/input.c: Remove declaration of init_hyphen_requests.
5736 * troff/request.h: Correct spelling in declaration of same.
5738 * troff/input.c (token::next): Check whether escape_char is 0.
5740 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5742 * groff.c (main, usage, help): Implement -P and -L options.
5743 * groff.sh: Likewise.
5745 * troff/input.c (token::next): Use some gotos to avoid code
5748 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5749 Avoid calling symbol::symbol if name empty.
5751 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5753 * troff/input.c (init_input_requests): Make \n(.x return the major
5754 version number and \n(.y return the minor version number.
5755 * troff/Makefile: Construct file majorminor.c defining
5756 major_version and minor_version automatically from ../VERSION.
5758 * troff/node.c (class glyph_node): Make operator new and operator
5760 (class ligature_node): Similarily.
5762 * troff/input.c (operator==(const macro &, const macro &)): New
5764 (non_interpreted_node::same): Use this.
5765 (string_iterator::string_iterator): Make macro& argument const.
5767 * troff/input.c (input_iterator::get): New function. Don't make
5768 asciify_macro or class non_interpreted_node friends of class
5770 (non_interpreted_node::interpret): Use input_iterator::get.
5771 (asciify_macro): Likewise.
5773 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5774 ~non_interpreted_node): Deleted.
5775 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5778 * troff/symbol.h: Make all symbol member functions const.
5780 * lib/strtol.c: New file.
5781 * lib/Makefile: Add strtol.c.
5782 * Makefile: Define STRTOL as strtol.o to include strtol in
5785 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5787 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5789 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5791 * troff/input.c (do_special): Use input_level.
5793 * troff/token.h (TOKEN_BACKSPACE): New token.
5794 (token::backspace): New function.
5795 * troff/input.c (token::description, token::next, token::process):
5796 Grok TOKEN_BACKSPACE.
5797 (do_special): Turn TOKEN_BACKSPACE back into \b.
5799 * troff/token.h (token::leader): New function.
5800 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5802 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5804 * troff/input.c (do_special): Use token::description in error
5807 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5809 * troff/input.c (decode_args): Combine quoted and
5810 quote_input_level variables. Make it a for (;;) loop.
5812 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5814 * troff/input.c (read_long_escape_name): The test for whether to
5815 expand buffer was off by 1.
5816 (read_string): Similarily.
5818 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5820 * troff/input.c: Use `const int' rather than `static const int'.
5822 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5823 (macro_diversion::copy_file): New function.
5824 * troff/node.h: New class diverted_copy_file_node.
5825 * troff/node.c: Implement it.
5826 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5827 first page transition by pushing a diverted_copy_file_node.
5828 * troff/input.c (token::next, process_input_stack): Don't handle
5831 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5833 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5834 whether space widths need adjusting.
5836 * troff/charinfo.h: Generalize translated_to_space to
5837 special_translation so as to allow translation to \&.
5838 * troff/input.c (translate): Allow translation to \&.
5839 (charinfo::*): Corresponding changes.
5840 * troff/node.c (make_node, node::add_char): Corresponding changes.
5841 * troff/node.h (dummy_node::dummy_node): Allow optional first
5844 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5845 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5847 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5848 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5849 (token::process): Grok that.
5850 * troff/input.c (copy_file): Handle first page transition like
5851 title by pushing a COPY_FILE_REQUEST cookie.
5852 (token::next, process_input_stack): Grok that.
5853 * troff/node.h (output_file::copy_file): Add x and y arguments.
5855 * troff/div.c (top_level_diversion::copy_file): Supply them.
5856 * troff/node.c (troff_output_file::copy_file): Add x and y
5857 arguments; moveto specified position. Invalidate font_position
5858 array after copying file.
5859 (output_file::copy_file): New function.
5860 (suppressed_output_file::copy_file, ascii_output::copy_file):
5862 * troff/input.c (transparent_file): New function.
5863 (init_input_requests): Bind to "trf".
5864 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5865 (process_input_stack): Likewise.
5867 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5869 * troff/node.c (init_node_requests): New number registers .kern
5870 pointing to global_kern_mode, and .lg pointing to
5871 global_ligature_mode.
5873 * troff/node.c (ligature): Don't change it if we get a bad
5876 * troff/input.c (do_define_string): Don't strip tabs.
5878 * troff/input.c (asciify_macro): Make the string_iterator auto.
5880 * troff/node.c (init_font_requests): Rename to...
5881 (init_node_requests):
5882 * troff/node.h: Change declaration.
5883 * troff/input.c (main): Change call.
5885 * troff/input.c (node::reread, diverted_space_node::reread): New
5887 (process_input_stack): Call reread rather than
5888 get_diverted_space_node.
5889 * troff/node.c (node::get_diverted_space_node,
5890 diverted_space_node::get_diverted_space_node): Removed.
5891 * troff/node.h: Declare reread methods instead of
5892 get_diverted_space_node methods. Make `n' member private.
5893 * troff/input.c: (token::diverted_space): Removed.
5894 * troff/token.h: Removed declaration.
5897 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5899 * eqn/script.c (script_box::compute_metrics): Don't let
5900 SUP_RAISE_FORMAT become negative.
5902 * tbl/table.c (table::do_row): Entries that don't end in the
5903 this row shouldn't make the row non-blank.
5905 * tbl/table.c (table::make_columns_equal): Only set the width of
5906 columns which are marked as equal.
5908 * tbl/main.c (process_data): Before issuing excess data error,
5909 if last character was a newline unget it; then get it again after
5910 the error. Also include the contents of the entry in the message.
5912 * groff.c: New file.
5913 * Makefile: Build groff from groff.c. Make it possible to use
5914 either groff.sh or groff.c as groff.
5915 * Makefile.bd: Similarily.
5917 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5919 * groff.sh: Don't delay expansion of $@ in assignment to files.
5920 Remove occurrences of \".
5922 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5924 * all Makefiles: Simplify and rearrange.
5926 * Makefile: Handle fmod like malloc.
5927 * lib/Makefile: Similarily.
5928 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5930 * Makefile: Rename OPTIMISE to OPTIMIZE.
5932 * groff.sh: Remove assignment to PATH.
5933 * Makefile: Remove SHPATH variable.
5934 * Makefile.bd: Similarily.
5936 * groff.sh: Add -V option to print the pipeline instead of
5939 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5941 * lib/font.c: Split off file searching into ...
5942 * lib/fontfile.c: New file.
5944 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5946 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5948 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5949 Also change misleading comment.
5950 (table::do_vspan): Change similarily misleading comment.
5951 * tbl/main.c (process_data): A format row with an explicit `s'
5952 uses up a data line, even if all the other columns are `_' or `='.
5954 * troff/input.c (token::description): Fix description of
5955 TOKEN_DUMMY and TOKEN_EMPTY.
5957 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
5959 * groff.sh: Fix description of -Z in help message.
5961 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
5963 * pic/object.c (object_spec::make_object): Allow negative and zero
5965 * pic/pic.y: Give linethick default value of -1.0.
5966 * pic/troff.c (troff_output::troff_output): Initialize
5967 last_line_thickness to BAD_THICKNESS.
5968 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5969 (troff_output::line_thickness): Canonicalize negative thicknesses
5970 to RELATIVE_THICKNESS.
5971 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5972 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5974 (tex_output::start_picture): Set pen_size to -2.0.
5976 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5977 0, then use 0 linewidth.
5978 (ps_printer::ps_printer): Initialize line_thickness to -1.
5980 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5982 * ps/devps/symbolchars: Remove `or'.
5983 * ps/tmac.ps: Implement \(or with .char.
5985 * ps/devps/symbolchars: Move most characters into textmap.
5986 * ps/devps/textmap: Add names for troff bracket characters. Remove
5989 * ps/devps/TSymbol.ps: Removed.
5990 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5991 * ps/tmac.ps: Do with .char what TSymbol did.
5992 * ps/devps/download: Remove TSymbol.
5994 * ps/devps/T: Removed.
5995 * ps/devps/Troff.ps: Removed.
5996 * ps/devps/Troff.afm: Removed.
5997 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5998 * ps/devps/download: Remove Troff.
5999 * ps/devps/FontMakefile: Remove T target.
6000 * ps/devps/DESC-A4: Remove T from font list.
6001 * ps/devps/DESC-letter: Likewise.
6003 * troff/input.c (macro_to_node): Rename to ...
6004 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
6005 character's definition while processing it.
6006 * troff/node.c (node::add_char, make_node): Change calls to
6007 macro_to_node accordingly.
6009 * troff/input.c (token::next): Translate \_ to \(ul.
6011 * tty/devascii/R.proto: Add `|'.
6012 * tty/devlatin1/R.proto: Likewise.
6014 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
6016 * man: Put the version number in all the man pages.
6018 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
6020 * Makefile.bd: New file.
6021 * README.bd: New file.
6023 * VERSION: New file.
6024 * lib/version.c: Removed.
6025 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6028 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6029 environment variable.
6031 * all Makefiles: Split install target into install.bin for
6032 binaries, and install.nobin for everything else.
6033 * Makefile: Add bindist target.
6035 * man/afmtodit.man: New file.
6036 * man/Makefile: Add afmtodit.n to MAN1PAGES.
6037 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6039 * ps/Makefile: Pass BINDIR to make install in devps.
6041 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6042 the space character.
6044 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6046 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6048 * ps/ps.c: Redo font downloading.
6049 * ps/devps/download: New file.
6050 * ps/devps/Makefile: Add download to DEVICEFILES.
6051 * ps/devps/afmtodit: Remove -d option.
6052 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6053 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6054 * ps/devps/zapfdr.ps: Likewise.
6055 * ps/devps/TSymbol.ps: Likewise.
6057 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6059 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6061 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6063 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6064 then strip the first line if it starts with %.
6065 * Makefile: Add a comment about this.
6067 * man/tfmtodit.man: New file.
6068 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6069 * dvi/Makefile: Install tfmtodit in BINDIR.
6071 * dvi/tfmtodit.c (usage): Mention -v option.
6073 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6075 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6076 * troff/node.c (troff_output_file::transparent_char): Don't call
6079 * eqn: Add check_tabs method to most box classes.
6080 * eqn/box.c (box::top_level): Call check_tabs.
6082 * eqn/script.c (script_box::output): Use \Z.
6083 * eqn/limit.c (limit_box::output): Use \Z.
6085 * eqn/box.c (box::top_level): Use itoa.
6087 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6089 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6090 * dvi/devdvi/Makefile: Don't make links to CW.
6092 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6094 * xditview/tmac.X: Likewise.
6096 * troff/node.c: Add font translation feature.
6097 (get_font_translation): New function.
6098 (symbol_fontno): Translate the font name.
6099 (mount_font_no_translate): Rename to mount_font to this.
6100 (mount_font): New function.
6101 (font_family::make_definite): Call mount_font_no_translate instead
6103 (mount_style): Translate the font name.
6104 (font_translate): New function.
6105 (init_font_requests): Bind "ftr" to font_translate.
6107 * ps/devps/prologue (SN): New procedure that rounds a position to
6108 the nearest (pixel + (.25,.25)).
6109 (DL): Use SN to round endpoints.
6111 * lib/version.c: Changed version to 0.5.
6113 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6115 * Makefile: Move definition of PAGE to the very beginning, so that
6116 people are less likely to miss it.
6118 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6120 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6122 * troff/env.c (environment::choose_breakpoint): Make `can't find
6123 breakpoint' error a warning of type WARN_BREAK. Change message to
6125 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6127 * troff/input.c: Add WARN_BREAK to warning_table. Include
6128 WARN_BREAK in DEFAULT_WARNING_MASK.
6130 * tty/tmac.tty: Add definition of \(+-.
6132 * groff.sh: Remove `--' option to set command.
6134 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6136 * ps/devps/eqnchar: Better definition of cdot using md.
6137 * dvi/devdvi/eqnchar: Likewise.
6138 * xditview/devX100/eqnchar: Likewise.
6139 * xditview/devX75/eqnchar: Likewise.
6140 * eqn/lex.c: Add definition of cdot.
6142 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6144 * troff/input.c (get_optional_char): New function.
6145 * troff/input.c (set_page_character): Use get_optional_char(),
6146 rather than has_arg() and tok.get_char(1).
6147 * troff/env.c (tab_character, leader_character, hyphen_char,
6148 field_characters): Likewise.
6149 (margin_character): Likewise. Also always delete the
6150 margin_character_node.
6152 * troff/input.c (token::get_char): Use token::description.
6154 * troff/input.c (has_arg): Don't skip over tab and \}.
6155 * troff/number.c (start_number): Give a warning if the number
6156 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6158 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6160 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6162 (get_name, get_long_name): Use these. Rename `warn' argument to
6165 * troff/node.c (get_fontno): Test that the symbol is not null.
6167 * troff/input.c (token::description): New function.
6168 * troff/number.c (parse_term): Use token::description in `numeric
6169 expression expected' message.
6170 * troff/groff.h: Add WARN_MISSING.
6171 * troff/number.c (start_number): New function.
6172 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6173 get_incr_number): Use start_number().
6174 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6176 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6177 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6179 * troff/input.c (token::get_char): Use WARN_MISSING.
6180 * troff/input.c (token::delimiter): Use token::description.
6181 * troff/env.c (environment_switch): Back out Aug 3 change.
6182 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6184 * troff/token.h (token::tab): New function.
6185 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6186 * troff/reg.c (alter_format): Likewise.
6187 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6189 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6191 * troff (most files): Redo warnings. Divide warnings into various
6192 categories; warning() has an additional first argument indicating
6193 the category it falls into.
6194 * troff/input.c (main): -w now takes an argument. New option -W.
6195 (enable_warning, disable_warning): New functions.
6197 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6198 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6200 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6202 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6203 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6204 * xditview/devX75/eqnchar: Likewise.
6205 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6207 * eqn/other.c: When bar or over applies to a single character
6208 don't produce an overline_box or an underline_box. Instead produce
6209 an accent_box or an underaccent_box, with the accent a line
6210 whose width is accent_width. New classes underaccent_box,
6211 overline_char_box and underline_char_box.
6212 * eqn/box.h: Move overline_box, underline_box, accent_box class
6213 declarations into eqn/other.c. Add declarations of
6214 make_underline_box, make_overline_box, make_accent_box.
6215 * eqn/eqn.y: Call make_overline_box, make_underline_box
6216 make_accent_box instead of constructors.
6217 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6219 * eqn/other.c: Add accent_box::~accent_box.
6220 * eqn/box.h: Declare it.
6222 * groff.sh: With -Tps, use eqn -D.
6224 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6226 (underline_box::output): Similarily.
6227 (accent_box::output): Use \Z.
6229 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6232 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6234 * troff/div.c (top_level_diversion::transparent_output(unsigned
6235 char)): Use asciify.
6236 * troff/input.c (asciify): Don't make it static.
6237 * troff/token.h (asciify): Declare it.
6239 * troff/input.c (get_name, get_long_name, token::get_char,
6240 token::delimiter): Add an extra default argument which says
6241 whether a warning should be printed.
6242 * troff: Pass a non-zero argument to one of these rather than
6243 printing a warning directly.
6245 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6247 * troff: Consistently use symbol::is_null.
6249 * troff/dictionary.h: Move some inline functions into
6252 * troff/request.h: Move inline functions into input.c.
6253 (request_or_macro::invoke): Make it pure.
6255 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6256 * troff/input.c (init_input_requests): Use class constant_int_reg.
6257 (class compatible_reg): Deleted.
6258 * troff/div.c (init_div_requests): Use class constant_int_reg.
6259 (class last_post_line_extra_space_reg): Deleted.
6261 * troff/env.c (tab_character): Don't change the tab character if
6262 we get an invalid argument.
6263 (hyphen_char): Similarily.
6265 * troff/reg.c (alter_format): Check that nm is not null.
6267 * Makefile, groff.sh: Make it possible to customize the commands
6268 used for printing PostScript and dvi files. Also make it possible
6269 to customize the path used by groff.sh.
6271 * eqn/eqn.y: Make `left' right associative.
6273 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6275 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6278 * pic/pic.h: Removed definition of INT_MAX.
6280 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6283 * troff/input.c (token::next): Handle \R like \n.
6285 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6287 * ps/tmac.pc (PSPIC): Simplify.
6289 * troff/env.c (tab_stops::to_string):
6290 * pic/pic.y (object_type_name):
6291 * pic/troff.c (simple_output::line):
6292 * pic/tex.c (tex_output::spline):
6293 * pic/object.c (object_spec::make_object):
6294 * tbl/main.c (process_data): Add cases to switch statements to
6295 avoid cfront warnings. (Some of these are spurious, since the
6296 switch already has a default case.)
6298 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6299 `ps-'. Don't test systat; instead check number of arguments to
6302 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6304 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6306 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6307 Unlink the file as soon as we have opened it, so that we don't
6308 have to bother with signal handlers.
6310 (fatal_error_exit): Deleted.
6311 (main): Don't call signal.
6313 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6315 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6317 * pic/pic.y: If there is a label, or an nth construction before
6318 the first `.' in the argument to `with', ignore it and generate a
6320 * pic/lex.c (lex_warning): New function.
6322 * tbl/table.c (table::init_output): In section keep and release
6323 macro, use 0 indent when diverting and the correct indent when
6326 * troff/input.c (interpolate_number_format): Do not interpolate
6327 anything if the number register is not defined.
6329 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6331 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6333 * ps/devps/prologue (PICTURE): Set components of graphics state to
6334 their default values.
6336 * ps/devps/text.enc: Add trademark
6337 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6338 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6339 * ps/devps/symbolchars: Add names for summation and product.
6341 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6342 suchthat. Add pp. Add upper-case letters.
6344 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6345 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6348 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6349 rA (right angle bracket) to ra. Introduce names for double-headed
6350 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6351 * ps/devps/textmap: Likewise for ps device.
6352 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6353 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6354 * tty/devascii/R.proto: Likewise.
6355 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6357 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6359 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6361 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6364 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6366 * troff/div.c (when_request): Use symbol::is_null rather than
6367 has_arg to determine whether we have an argument.
6368 (change_trap): Remove the trap if we get an invalid number. Give
6369 an error if we don't get at least the macro name.
6370 (diversion_trap): Remove trap if we get an invalid name or number.
6372 * troff/env.c (environment_switch): Pop if we get an invalid
6373 symbol or numeric expression.
6375 * troff/input.c (do_define_macro): If EOF is encoutered while
6376 defining the macro, do tok.next() before returning.
6378 * troff/token.h (has_arg): Move definition from here, to ...
6379 * troff/input.c (has_arg): ... here
6381 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6382 * troff/input.c (shift): Likewise.
6384 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6387 * pic/troff.c (troff_output::start_picture): Comment out calls to
6390 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6391 interpret_lf_args succeeds.
6393 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6394 \\. This avoids problems with \$N.
6396 * groff.sh: Pass -C to preprocessors.
6398 * lib/lf.c (interpret_lf_args): Be more flexible.
6400 * tbl/main.c (main): Add -C option.
6401 (table_input::get): Do not recognize TE if followed by character
6402 other than a space or newline unless -C option given.
6403 (process_input_file): Likewise for lf, TS.
6404 (process_data): Likewise for lf in text blocks.
6406 * eqn/main.c (main): Add -C option.
6407 (do_file): Don't recognize EQ, EN or lf if followed by character
6408 other than space or newline unless -C option given.
6409 * eqn/lex.c (file_input::read_line): Similarily.
6410 * eqn/eqn.h: Declare compatible_flag.
6412 * etc/soelim.c (main): Add -C option.
6413 (interpret_lf_args): Use version in libgroff.
6416 * pic/main.c (main): Add -C option, which sets compatible_flag.
6417 (top_input::get), (top_input::peek): If -C option not given,
6418 do not recognize .PS/.PE/.PF/.lf if followed by a character
6419 other than space or newline.
6420 * pic/lex.c (file_input::read_line): Similarily.
6421 * pic/pic.h: Add declaration of compatible_flag.
6423 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6425 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6427 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6428 derived from node. New class space_char_hmotion_node.
6429 * troff/input.c (asciify_macro): New function.
6430 * troff/input.c (init_input_requests): New request `asciify' bound
6432 * macros/mm.diff: New file.
6433 * Makefile: In install.mm target use `patch' to apply
6436 * troff/input.c (macro::print_size): Just print the size in bytes.
6438 * troff/div.c (return_request): Correct the argument
6441 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6443 * troff/node.h (class composite_node): Add sz member.
6444 * troff/node.c (composite_node::size): Return sz.
6445 * troff/input.c (macro_to_node): Use the initial size in the
6446 environment as the size of the composite_node.
6448 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6451 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6453 * troff/div.c (change_trap): If we get a bad number expression,
6456 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6458 * lib/matherr.c (matherr): Define this only if math.h defines
6461 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6463 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6464 no diversion trap return vunits(INT_MAX - vresolution).
6466 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6468 * troff/input.c (do_zero_width): New implementation that doesn't
6469 use a temporary environment. Use instead:
6470 (token::add_to_node_list): New function.
6471 * troff/env.c (environment::get_prev_char_height),
6472 (environment::get_prev_char_height),
6473 (environment::get_prev_char_skew): New functions.
6474 (environment::get_prev_char): New function.
6475 (environment::get_prev_char_width): Change to use get_prev_char.
6476 (init_env_request): Implement new registers .cht, .cdp, .csk.
6477 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6478 \Z being processed in a separate environment.
6480 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6482 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6484 * tbl/table.c (table::init_output): In the section release macro,
6485 give a warning message if the section won't fit on one page.
6487 * tbl/table.c (table::do_top): Emit table keep only if table is
6489 (table::do_bottom): Likewise for table release.
6490 (table::table), (table::add_vertical_rule): Remove reference to
6492 * tbl/table.h: Remove keep member.
6494 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6495 SECTION_RELEASE_MACRO, if there's not enough space before the next
6496 trap to output the diversion, call T# ourselves, set
6497 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6498 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6499 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6500 vertical position and return to it before turning traps on again.
6502 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6504 * troff/node.c, troff/node.h: In classes derived from node,
6505 replace prev_char_width method by last_char_node method.
6506 * troff/env.c (environment::get_prev_char_width): Use
6507 node::last_char_node rather than node::get_prev_char_width.
6509 * Makefile: Added comment about -fno-inline on 68030-based
6512 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6513 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6514 expressions using sizeof to int.
6515 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6517 * macros/tmac.e (TS): Don't move @f back past the current
6520 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6522 * ps/ps.c (main): Buffer stderr.
6523 * dvi/dvi.c (main): Likewise.
6524 * tty/tty.c (main): Likewise.
6526 * ps/ps.c (ps_printer::do_import): Improve error handling.
6528 * troff/input.c (abort_request): Use asciify.
6530 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6531 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6532 type of first argument int rather than char. This works around a
6533 bug on the 68030 based Apollo using g++ 1.37.1.
6535 * tbl/table.h (class table): Add `keep' member.
6536 * tbl/table.c (table::table): Initialize `keep'.
6537 (table::add_vertical_rule): Set `keep' to 1.
6538 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6539 (table::do_bottom): Likewise for table release macro.
6540 (table::do_row): Emit section keep macro even if the row is 0.
6542 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6544 * macros/tmac.e (@C): Preserve the font family across the change
6547 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6549 * lib/font.c: Initialize font::hor and font::vert to 1.
6550 (font::load_desc): Check the values of font::hor and font::vert.
6552 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6553 be included in a C compilation.
6554 (iftoa): Use INT_DIGITS. Include lib.h.
6556 (as_string): Likewise.
6557 * tbl/table.c: Removed definition of INT_DIGITS.
6558 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6559 * troff/input.c (input_input_requests): Likewise.
6560 * ps/ps.c (make_encoding_name): Likewise.
6561 (ps_printer::set_style): Likewise.
6562 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6564 * tty/devascii/R.proto: Map fm onto '.
6565 * tty/devlatin1/R.proto: Likewise.
6567 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6569 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6570 argument to \w is at a different input level.
6572 * tbl/table.c (table::init_output): Define a new macro
6573 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6574 transparently outputs itself.
6575 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6577 (table::do_row): Likewise.
6579 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6580 TRANSPARENT_STRING_NAME.
6582 * tbl/table.c (table::init_output): In the table release macro
6583 print an error message and don't produce any output if after
6584 issuing the need request the table still will not fit. Also
6585 remove the diversion after bringing it back.
6587 * tbl/table.c (table::init_output): Define a new macro
6588 REPEATED_MARK_MACRO, like mk but if in a diversion also
6589 transparently outputs itself.
6590 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6591 is necessary because .TH might not call .T#.
6592 (table::do_top): Likewise TOP_REG.
6593 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6594 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6595 table header might contain just the two top rules.
6597 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6599 * troff/div.c: Implement new request `ptr' to print all traps.
6601 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6602 init_string_env_reg.
6603 * troff/env.c (class tab_reg): Deleted.
6605 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6607 * troff/div.c: New number register .pn returns the number of the
6608 next page as set by the pn request.
6610 * macros/tmac.an: Redid headers and footers. Number each manual
6611 entry starting from 1 unless \nC is > 0, like Sun. Added an
6612 optional 5th argument to .TH which specifies the manual name and
6613 appears in the center of the header. Understand the X, P and D
6616 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6618 * troff/env.c (init_env_requests): New number register `.lt' to
6619 return the title length.
6621 * troff/node.h (class transparent_dummy_node): New class.
6622 * troff/node.c (class transparent_dummy_node): Provide member
6624 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6627 * troff/input.c (token::next): New escape sequence \).
6628 * troff/input.c (get_copy): Recognize \) in copy mode.
6630 * troff/input.c (input_stack::clear): New function.
6631 * troff/input.c (exit_request): Use input_stack::clear.
6633 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6634 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6636 * troff/env.c: Move set_page_character to input.c. Move
6637 page_character to input.c also.
6638 * troff/env.c (title): Split off the reading of the parts of the
6639 title into read_title_parts.
6640 * troff/input.c (read_title_parts): New function. Check the
6641 input_level when testing whether a token matches the delimiter.
6643 * troff/input.c (exit_request): New function.
6644 * troff/input.c (init_input_requests): Bind ex request to
6645 exit_request rather than exit_groff.
6647 * troff/input.c (exit_groff): Call tok.next() before
6648 process_input_stack().
6650 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6652 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6653 * troff/env.h: ditto.
6654 * troff/input.c: ditto.
6656 * troff/env.c (environment::is_empty): Test pending_lines.
6658 * troff/env.c (environment::have_pending_lines): Removed.
6660 * troff/input.c: Add request to flush pending lines from the
6663 * troff/env.c, troff/env.h: Add automatic widow control feature.
6665 * troff/input.c (exit_groff): Do process_input_stack() after
6666 do_break() but before setting exit_flag to 2.
6668 * troff/input.c: Remove FLUSH_PENDING_LINES and
6669 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6670 environment after END_TRAP token seen, but only if there aren't
6671 any more traps still unfinished.
6672 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6674 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6676 * troff/env.c: Rename the `retain_size' member of class
6677 pending_output_line to `no_fill'.
6679 * troff/env.c (title): When the line is output, make the
6680 retain_size argument !fill.
6682 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6683 * troff/node.c (space_node::get_breakpoints),
6684 (dbreak_node::get_breakpoints): Fill this in.
6685 * troff/env.c: Allow specification of maximum number of
6686 consecutive hyphenated lines.
6688 * troff/env.c (environment::is_empty): Add test for !current_tab.
6690 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6692 * troff/env.c (environment::hyphenate_line): Don't completely give
6693 up if the word is not to be hyphenated; continue so that breaks
6694 can be made at break_char_node's.
6696 * lib/lib.h: Only define INT_MAX if it's not already defined;
6697 undef INT_MIN if it's already defined.
6699 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6701 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6702 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6705 * macros/tmac.an (an-header): Set no-space mode.
6707 * macros/tmac.an (TH): Start a new page if necessary.
6709 * Started using ChangeLog at version 0.4.
6712 version-control: never