1 2000-02-28 Werner LEMBERG <wl@gnu.org>
3 * doc/groff.texinfo: Further checking/updating. Adding more index
6 2000-02-27 Blake McBride <blake@florida-software.com>
8 Adapting groff to MS Visual C++ 6.0 compiler (tested with
11 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
12 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
13 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
14 src/include/lib.h, src/libs/libgroff/errarg.cc,
15 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
16 src/preproc/refer/label.y, src/preproc/refer/label.cc,
17 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
18 src/roff/troff/div.cc, src/roff/troff/env.cc,
19 src/roff/troff/input.cc, src/roff/troff/node.cc,
20 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
21 if_to_a() to avoid name clashes.
22 * src/include/posix.h: Don't use unistd.h.
23 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
24 clause for integrating non-Unix xtmpfile() code.
25 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
26 structure; use "rt" for popen() in pipe_source(); add getpid()
28 * src/roff/troff/node.cc: Use special versions of popen() in
29 real_output_file() and pclose() in ~real_output_file().
31 2000-02-27 Werner LEMBERG <wl@gnu.org>
33 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
34 LBP-8 series laser printers). This code has been contributed by
35 Francisco Andres Verdu <pandres@dragonet.es>.
37 * src/devices/grolbp/*: The grolbp output device.
38 * font/devlpb/*: The font description files.
39 * Makefile.in: Add grolpb and devlbp subdirectories.
41 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
42 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
45 * doc/groff.texinfo: Further checking/updating. Adding more index
50 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
52 * man/groff_font.man: Adding info about obsolete DESC keywords.
53 * src/devices/grolj4/grolj4.man: Documenting additional DESC
56 2000-02-26 Werner LEMBERG <wl@gnu.org>
58 * src/preproc/grn/grn.man: Added info about the gremlin file format
59 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
61 2000-02-25 Werner LEMBERG <wl@gnu.org>
63 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
64 friends to be non-integer.
66 * src/preproc/grn/grn.man: Document it.
68 * doc/groff.texinfo: Further checking/updating. Adding more index
71 2000-02-24 Werner LEMBERG <wl@gnu.org>
73 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
74 line thicknesses to be integer multiples of this value.
76 * src/preproc/grn/grn.man: Commenting out the -s option -- the
77 corresponding code doesn't work (yet).
79 * doc/groff.texinfo: Further checking/updating. Adding more index
82 2000-02-23 Werner LEMBERG <wl@gnu.org>
84 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
85 specify line thickness instead of base units. The new default
86 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
87 thick lines respectively.
89 Removed unused variable `prevval'.
91 * src/preproc/grn/grn.man: Updated.
93 2000-02-22 Werner LEMBERG <wl@gnu.org>
95 * src/preproc/grn/main.cc: Slight formatting.
97 * src/roff/groff/groff.man: Formatting fix.
98 * src/preproc/grn/grn.man: Ditto.
100 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
102 * doc/groff.texinfo: Further checking/updating.
104 2000-02-21 Werner LEMBERG <wl@gnu.org>
106 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
108 * test-groff: Added grn subdir to path.
110 * doc/groff.texinfo: Some restructing and other small improvements.
112 * src/roff/groff/groff.cc (help): Fixed info string.
114 2000-02-20 Werner LEMBERG <wl@gnu.org>
116 * doc/meref.me: Fix description of .GS request.
118 * src/roff/troff/troff.man: Fixing typo.
120 Adding the `grn' preprocessor for gremlin graphic files.
122 * src/preproc/grn/*: This is the Berkeley distribution written by
123 David Slattengren and Barry Roitblat, adapted to groff by Daniel
124 Senderowicz and Werner Lemberg.
126 * doc/grnexampl.{me,g}: A sample for grn.
128 * Makefile.in: Added subdirectory entry for grn.
130 * src/roff/groff/groff.cc: Added support for grn. It can be now
131 called with the switch `-g'.
133 * src/roff/groff/groff.man: Updated.
135 * src/roff/grog/grog.{man,pl,sh}: Updated.
139 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
141 * src/include/lib.h: Added xtmptemplate and made xtmpfile
142 parametrically polymorphic.
144 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
145 and the alterations to xtmpfile.
146 xtmpfile can be requested to return the filename created
147 and asked not to unlink the temp file. The default behaviour
148 if parameters are absent is exactly the same as before.
150 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
152 A new request `length' is available which returns the length of a
153 string in a number register:
155 * src/roff/troff/input.cc (length_macro): Implement it.
156 * src/roff/troff/input.cc (init_input_requests): Register it.
158 2000-02-11 Werner LEMBERG <wl@gnu.org>
160 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
161 of the `substring' request.
163 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
166 * src/roff/troff/TODO, NEWS: Updated.
168 2000-02-09 Werner LEMBERG <wl@gnu.org>
170 * src/roff/groff/groff.man: Added an example.
172 2000-02-06 Werner LEMBERG <wl@gnu.org>
174 I've considerably modified the directory structure of the
175 distribution to get a more vertical layout. For example, the number
176 of top level directories has been reduced from 42 to 6.
178 As a consequence, many changes, especially to the makefiles, were
181 * The makefile variables `top_builddir' and `top_srcdir' have been
182 introduced. Virtually all relative paths have been replaced with
183 absolute ones using these two variables.
185 * Dependencies (in the files `Makefile.dep') are no longer part of
186 the distribution. Instead, they are created during a `make install'
187 in the build directory.
189 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
190 make `top_srcdir' and `top_builddir' absolute.
194 * Man pages no depend on the files `VERSION' and `REVISION'.
196 * The added shell script `mkinstalldirs' will replace `mkdir' in
199 * VERSION: Version number increased to 1.16.
201 2000-02-04 Werner LEMBERG <wl@gnu.org>
203 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
205 * Makefile.in: Removed $(tmac_m) since it is no longer needed
206 (after an update of the mm stuff).
208 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
210 2000-02-03 Werner LEMBERG <wl@gnu.org>
212 The .psbb request will now also accept Mac PS images (i.e. using LF
213 as the EOL character).
215 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
216 (with slight modifications).
217 * troff/input.cc (do_ps_file): Use it.
219 * test-groff: Add grohtml and grolj4 output devices to PATH.
221 2000-01-30 Werner LEMBERG <wl@gnu.org>
223 * NEWS, MORE.STUFF: Updated.
225 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
227 Add the `srand' command to pic.
229 * pic/lex.cc, pic/pic.y: Implement it.
230 * pic/pic.man: Document it.
231 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
233 2000-01-30 Werner LEMBERG <wl@gnu.org>
235 Add a new request `.psbb'. This does exactly what the external
236 program psbb did. It scans a PostScript image file for a
237 %%BoundingBox comment and extracts the bounding box values (in
238 PostScript units) which are then stored in the four new (read-only)
239 number registers `llx', `lly', `urx', and `ury'.
241 This will allow the usage of the .PSPIC macro without worrying
242 about unsafe behaviour of groff, i.e., it will work without the
243 `-U' switch of groff.
245 * troff/input.cc: Implement it.
246 * tmac/tmac.pspic: Use it.
247 * troff/troff.man, grops/grops.man, NEWS: Document it.
248 * psbb/*, Makefile.in: Remove it since it is no longer needed.
250 This is bloody C code simply adapted from psbb.c! Any improvements
253 2000-01-29 Werner LEMBERG <wl@gnu.org>
255 * man/groff_font.man: Minor clarifications.
259 2000-01-28 Werner LEMBERG <wl@gnu.org>
261 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
263 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
265 * man/groff_font.man: Brought up to date regarding tcommand
267 * libgroff/font.cc: Handle everything after `--' as a comment
269 * devps/*: Added comment delimiter inside devps font files.
271 2000-01-28 Werner LEMBERG <wl@gnu.org>
273 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
274 \fC...\fP (which now works as expected).
276 * troff/troff.man: Fix typo.
278 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
280 Completed the pass_filenames implementation in troff.
282 * libdriver/input.cc: Will read the new `F' tcommand.
283 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
284 * troff/input.cc: Use it.
286 2000-01-26 Werner LEMBERG <wl@gnu.org>
288 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
289 font will now be updated even if an invalid font is selected.
291 2000-01-24 Werner LEMBERG <wl@gnu.org>
293 * doc/homepage.ms: Updated for new tmac.arkup.
295 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
297 * tmac/tmac.arkup: Cleanup.
299 Added `\&' to .HTML macro to `leave vertical mode', so to say.
301 Removed obsolete .LINK macro completely.
303 The macros .URL, .FTP, and .MAILTO now accept a third argument which
304 will be immediately appended to the second argument (to be used with
305 punctuation, for example).
307 Disabled .CDFTP macro temporarily for security reasons.
309 * tmac/groff_markup.man: Complete revision for latest changes in
310 tmac.arkup -- note that it does not yet format correctly with
313 2000-01-23 Bruno Haible <haible@clisp.cons.org>
315 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
316 * devutf8/R.proto: Add mappings for wp, lh, rh.
317 * devutf8/NOTES: Updated.
319 2000-01-23 Werner LEMBERG <wl@gnu.org>
321 * doc/groff.texinfo: Updated version/copyright info.
323 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
325 Added support for two new directives in device descriptions:
326 `pass_filenames' (to pass the input file name to the output device)
327 and `use_charnames_in_special' (to support e.g. accented characters
330 * include/font.h, troff/charinfo.h: Declare it.
332 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
334 * devhtml/DESC: Use it.
336 * troff/input.cc: New function encoded_char.
338 * troff/token.h: Add test for `specialness'.
340 2000-01-21 Werner LEMBERG <wl@gnu.org>
342 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
343 mistake from the list of files to be installed.
345 2000-01-18 Werner LEMBERG <wl@gnu.org>
347 * README: Added info how to apply patches.
349 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
351 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
353 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
355 * troff/input.cc: Add support for troffrc-end.
357 * tbl/main.cc: Altered to issue table-start and table-end special
358 characters if using the html device.
360 * devhtml/*: Modified font files to incorporate html encoding of
363 * tmac/groff_markup.man: New file documenting tmac.arkup.
365 * tmac/troffrc-end: New file. This is invoked after all user
366 specified macros. Currently used by the html device to include
367 tmac.html. Thus no need for users to specify -mhtml anymore.
369 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
370 (MAN7): Add groff_markup.man.
372 * tmac/tmac.an, tmac/tmac.html: Small html updates.
374 * tmac/troffrc: tmac.arkup will now be called for the html device.
376 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
377 extra device specific information about fonts.
379 * doc/homepage.ms: New file. It is an example how an HTML home page
380 could look like with grohtml.
382 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
384 2000-01-12 Bruno Haible <haible@clisp.cons.org>
386 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
389 * devutf8/NOTES: Updated.
391 2000-01-08 Bruno Haible <haible@clisp.cons.org>
393 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
394 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
395 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
396 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
397 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
398 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
399 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
400 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
403 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
405 2000-01-12 Fabrizio Polacco <fab@prosa.it>
407 grolj4: Paper size will be searched case-insensitively.
409 * grolj4/lib.h: Add check for strcasecmp().
410 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
411 * configure.in: Check for strcasecmp().
413 2000-01-11 Werner LEMBERG <wl@gnu.org>
415 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
418 2000-01-10 Werner LEMBERG <wl@gnu.org>
420 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
423 Add a new read-only register, `.Y', which contains the groff
426 * troff/input.cc (init_input_requests): Define it.
427 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
428 * doc/groff.texinfo, troff/troff.man: Document it.
430 * libgroff/Makefile.sub (version.cc): Add definition of
431 `Version_string[]', consisting of `<major>.<minor>.<revision>'
432 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
433 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
434 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
435 troff/input.cc, pfbtops/pfbtops.c: Use it.
437 2000-01-10 Fabrizio Polacco <fab@prosa.it>
439 Add a revision scheme to the groff package.
441 * REVISION: New file.
442 * libgroff/Makefile.sub (version.cc): Use it to define
444 * grops/psrm.cc: Use revision_string (converted to an unsigned
445 integer) in constructor of resource_manager.
447 2000-01-10 Bruno Haible <haible@clisp.cons.org>
449 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
451 * Makefile.in (DEVDIRS): Add devutf8.
452 * grotty/tty.cc: Include device.h.
453 (glyph): Change type of `code' to `unsigned int'.
454 (tty_printer): New field is_utf8. Constructor takes device argument.
455 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
456 (tty_printer::add_char): Change type of first arg to `unsigned int'.
457 (tty_printer::put_char): New function.
458 (tty_printer::end_page): Use put_char() instead of ::putchar().
459 (make_printer): Pass device to tty_printer constructor.
460 * nroff.sh: Determine default device by calling 'locale'. As a
461 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
462 Recognize UTF-8 locales.
463 * tmac/eqnrc: Recognize utf8 like latin1.
464 * tmac/troffrc: Device utf8 needs tmac.tty.
466 2000-01-07 Werner LEMBERG <wl@gnu.org>
468 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
470 2000-01-07 Paul Eggert <eggert@twinsun.com>
472 Add a new predefined writeable number register, `year',
473 which contains the current year.
475 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
476 * tmac/tmac.s: Use it.
477 * troff/input.cc (init_registers): Initialize it.
479 2000-01-06 Werner LEMBERG <wl@gnu.org>
481 * PROBLEMS: Fixed typo.
483 2000-01-04 Paul Eggert <eggert@twinsun.com>
485 * PROBLEMS: Add Y2k advice for the yr number register.
487 2000-01-03 Paul Eggert <eggert@twinsun.com>
489 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
491 2000-01-02 Werner LEMBERG <wl@gnu.org>
493 * tmac/tmac.arkup: Slight modification of macros to provide better
494 appearance for non-HTML formats.
496 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
498 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
499 does not automatically translate to malloc(n) on all OSes
500 (e.g., SunOS) so do it explicitly. Also, check the returned
503 2000-01-01 Werner LEMBERG <wl@gnu.org>
505 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
507 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
508 expects this variable
510 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
512 * doc/Makefile: Added instructions to create HTML and text
513 versions of some files.
515 1999-12-31 Werner LEMBERG <wl@gnu.org>
517 * Updated INSTALL.gen.
519 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
520 better resp. correctly with non-HTML devices.
522 Version 1.15 released
523 =====================
525 1999-12-28 Werner LEMBERG <wl@gnu.org>
527 * NEWS, VERSION: Changed to 1.15
529 1999-12-27 Paul Eggert <eggert@twinsun.com>
531 * nroff/nroff.man: -S is safer, not safe.
533 * groff/groff.cc (main): Use `safer', not `safe', in variable
534 names. This does not change the behavior.
536 * troff/input.cc (main): Likewise.
538 * nroff/nroff.sh: Likewise.
540 * troff/input.cc (prepend_string): New function.
541 (main): Prepend -msafer, so that we check macro libraries for
544 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
546 Version 1.14 released
547 =====================
549 1999-12-26 Werner LEMBERG <wl@gnu.org>
551 * NEWS, VERSION: Changed to 1.14.
553 1999-12-24 Werner LEMBERG <wl@gnu.org>
555 * refer/refer.cc: Fixing the last fix.
557 Version 1.13 released
558 =====================
560 1999-12-23 Werner LEMBERG <wl@gnu.org>
562 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
567 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
569 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
570 document conventions, the version number must be a real.
572 Version 1.12.1 released
573 =======================
575 1999-12-22 Werner LEMBERG <wl@gnu.org>
577 * VERSION: Changed to 1.12.1.
579 1999-12-22 Alan Rooks <arooks@istar.ca>
581 * refer/refer.cc (do_file): Slight modification to satisfy the
582 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
585 1999-12-20 Werner LEMBERG <wl@gnu.org>
587 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
590 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
591 list of unsafe requests.
593 * pic/pic.man: Fixed a typo.
595 * man/groff_out.man: Fixed a typo.
597 1999-12-18 Werner LEMBERG <wl@gnu.org>
599 * Makefile.in: Doc fixes.
601 1999-12-17 Fabrizio Polacco <fab@prosa.it>
603 * groff/groff.cc: Missing `U' option added to getopt().
605 * troff/troff.man: Missing `U' option added to synopsis.
607 Version 1.12 released
608 =====================
610 1999-12-14 Werner LEMBERG <wl@gnu.org>
612 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
615 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
616 with the more appropriate terms `safer' and `unsafe'.
618 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
619 sys_nerr and sys_errlist[].
621 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
623 * pic/pic.y, pic/pic.cc: Added check for fmod().
625 1999-12-13 Werner LEMBERG <wl@gnu.org>
627 * VERSION: Changed to 1.12.
629 Here some patches from various sources; most of them taken from
630 the Debian distribution.
632 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
633 tmac/Makefile.sub: New files copied directly from the NetBSD
634 distribution. Probably, some additional adaptation later on is
637 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
640 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
641 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
642 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
643 (`-S') is now the default.
645 * README, NEWS: Updated.
647 1999-12-09 Werner LEMBERG <wl@gnu.org>
649 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
651 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
653 1999-12-06 Werner LEMBERG <wl@gnu.org>
655 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
656 grief than relief today. Additionally, it is against the GNU
659 * configure: Recreated.
661 1999-12-05 Werner LEMBERG <wl@gnu.org>
663 * configure.in: Added GROFF_LIBM.
665 * configure: Recreated.
667 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
670 * Makefile.in: Added definition of $(LIBM).
672 * Makefile.comm (LIBM): Removed.
674 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
676 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
678 * doc/Makefile: Added rule for generation pic.html.
680 (clean): Files produced by grohtml will be removed also.
682 * doc/pic.ms: Small fix.
684 * tmac/tmac.html: Fixed suppression of headers.
686 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
688 * tmac/tmac.html: Fixing horizontal arrows.
690 Turning off hyphenation.
692 * tmac/tmac.an: Improved support for grohtml; better indentation,
695 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
697 * tmac/tmac.arkup: Added CDFTP macro
699 * tmac/tmac.html: All headers are turned off for ms, me, and mm
702 * tmac/troffrc: Some additions for HTML stuff.
704 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
706 * tmac/tmac.html: Small changes.
708 1999-09-26 Werner LEMBERG <wl@gnu.org>
710 * doc/groff.texinfo: Minor fixes.
712 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
714 * devhtml/TR: Changed spacewidth to 3.
716 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
718 * tmac/tmac.html: Moved markup macros to tmap.arkup.
720 * tmac/tmac.arkup: New file.
722 * grohtml/ChangeLog: New file.
724 1999-09-16 Werner LEMBERG <wl@gnu.org>
726 * doc/groff.texinfo (Common Features): Added Copying chapter.
727 Changed format to @smallbook.
729 1999-09-15 Werner LEMBERG <wl@gnu.org>
731 * NEWS: Added info about groff.texinfo.
733 * doc/groff.texinfo: Will now compile (using texi2dvi) without
736 1999-09-14 Werner LEMBERG <wl@gnu.org>
738 * groff/groff.man: More updates.
740 1999-09-13 Werner LEMBERG <wl@gnu.org>
742 * doc/groff.texinfo: New file. This manual is still very
743 rudimentary. It has been originally contributed by Trent
744 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
747 * INSTALL: Added information about the `doc' subdir
749 * troff/troff.man: Minor fixes.
751 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
754 * troff/input.cc (usage): Added missing `-ffam' to usage message.
756 * Makefile.in (dist): groff-$(version).tar.gz must be removed
757 also, otherwise it is included itself in another call of `make
760 * groff/groff.cc (synopsis): Removed superfluous space.
762 * PROJECTS, PROBLEMS, NEWS: Updated.
764 * xditview/Makefile: Removed.
766 * VERSION: Updated to 1.12beta.
768 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
770 * README: Updated: Included documentation about CVS repository,
771 mailing lists, and daily snapshots.
773 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
775 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
777 * tmac/tmac.an: If the tag didn't fit into the space that the
778 macro `TP' specifies, the rest of the tag went into the space for
781 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
783 * grolj4/lj4.cc: Added duplex printing (option `-d').
785 * grolj4/grolj4.man: Document duplex printing.
787 1999-09-12 Werner LEMBERG <wl@gnu.org>
789 * doc/Makefile (pic.ps): Fixed rule which caused problems with
790 non-GNUish sed programs.
792 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
795 * configure.in (LIBS): Added `-lc'
797 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
799 * pic/tex.cc (solid_arc): Casting M_PI to double.
801 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
803 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
804 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
805 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
807 * groff/groff_man.man: New file. This manual page was originally
808 written for the Debian GNU/Linux system by Susan G. Kleinmann
811 * eqn/list.cc (list_box::compute_metrics,
812 list_box::compute_sublist_width): Removed variable declaration to
813 avoid shadowing warnings.
815 * grops/psrm.cc (resource_manager::process_file): Ditto.
817 * tfmtodit/tfmtodit.cc (main): Ditto.
819 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
820 to avoid shadowing warnings.
822 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
823 shadowing loop variable.
825 * groff/groff.man, troff/troff.man: Added doc about grohtml.
827 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
829 New grohtml frontend to convert groff input to html.
831 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
833 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
835 * tmac/eqnrc: Added html device.
837 * tmac/tmac.html: New file.
839 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
840 (troff_output::start_picture, troff_output::finish_picture),
841 tbl/main.cc (process_input_file):
842 Surrounded output with `graphics_start' and `graphics_end' so that
843 the html driver can identify non-text portions.
845 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
846 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
847 grotty/tty.ps (tty_printer::set_char): Additional parameter
850 * include/printer.h: Class printer: New function
851 set_char_and_width; new variables (is_char_named, is_named_set,
852 named_command, named_char_s, named_char_n) to hold information
853 about named characters -- needed by the html driver.
855 * libdriver/printer.cc (printer::set_ascii_char,
856 printer::set_special_char): Use set_char_and_width.
858 * devhtml/*: New device files for html driver.
860 * grohtml/*: New driver grohtml.
862 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
864 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
867 1999-09-11 Luke Mewburn <lukem@netbsd.org>
869 * libgroff/string.cc (search): Small fix to test against NULL
872 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
874 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
875 \b'abc') were stacked in reverse order when processed in a
878 * troff/node.h: Added `*last' to struct `node' to make the above
881 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
882 The default scale for the 'f' and 't' graphics functions were 'm'
883 rather than 'u' (i.e., no scaling).
885 1999-09-11 Peter Miller <peterm@jna.com.au>
887 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
888 do_file), soelim/soelim.man: Added `-I file' option to soelim,
889 defining include paths.
891 * soelim/soelim.cc (include_path_append): New function.
893 1999-09-11 Larry Jones <larry.jones@sdrc.com>
895 * tbl/main.cc (process_options): Unix (at least Documenter's
896 Workbench) tbl allows arbitrary non-alpha characters between
899 1999-09-11 Paul Eggert <eggert@twinsun.com>
901 Y2k fixes. Don't assume that the current year precedes 2000.
903 * doc/meref.me: Add \n(y2, \n(y4.
905 * tmac/doc-common (Yr): New number register.
906 (Dd): Don't assume current year precedes 2000.
908 * tmac/tmac.e (td): Likewise.
909 (y2, y4): New number registers.
911 * pic/pic.man: Update reference for pic paper to May, 1991
914 1999-09-11 Werner LEMBERG <wl@gnu.org>
916 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
917 Removed quotation marks which prevented correct expansion of
920 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
922 1999-09-10 Werner LEMBERG <wl@gnu.org>
924 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
927 * Removed configure.old.
929 1999-08-31 Werner LEMBERG <wl@gnu.org>
931 * VERSION: Updated to 1.11.1
933 1999-05-27 Werner LEMBERG <wl@gnu.org>
935 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
937 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
938 added quotations around $(tmac_wrap) to avoid syntax error if
941 * configure: Newly generated using autoconf 2.13.
943 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
945 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
947 * README, PROJECTS, NEWS, INSTALL, VERSION,
948 doc/Makefile. doc/pic.ms, groff/groff.man:
949 Prepare for 1.11 release. No code changes.
950 Documentation for pic added (doc/pic.ms).
952 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
954 * Version 1.10 released.
956 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
958 * afmtodit/afmtodit.pl: Avoid comment on first line.
960 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
962 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
963 * configure.in: Call it.
965 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
966 (distfiles): Doesn't depend on config.log or config.cache.
968 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
970 * grog/grog.sh: Use print "" rather than print in END rule.
972 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
974 * tbl/main.cc (process_data): Don't give error for excess data
975 entries that are comments.
977 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
979 * tbl/main.cc (process_data): Fix case where new for-scope rules
980 silently change meaning of code.
982 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
984 * troff/env.cc (hyphenate): Loop over all consecutive sequences
985 of non-zero hyphenation codes.
987 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
989 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
991 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
993 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
995 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
997 * tmac/tmac.andoc: Make it work in compatibility mode.
999 * refer/token.h (token_info::is_range_sep): New function.
1000 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1001 * refer/ref.cc (reference::output): More sophisticated check for
1004 * devps/prologue.ps (MANUAL): New procedure.
1005 * grops/ps.cc (main): New -m option.
1006 (usage): Include -m.
1007 (ps_printer::~ps_printer): Implement -m.
1009 * aclocal.m4 (GROFF_G): New macro.
1010 * configure.in: Call it.
1011 * Makefile.in (g): Provided by configure.
1013 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1015 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1018 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1019 (tmac_m, tmac_s): Deleted.
1020 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1021 tmac_s_prefix): New variables.
1022 (MDEFINES): Change accordingly.
1023 * Makefile.comm (.man.n): Use new TMAC_* variables.
1024 * configure.in (GROFF_TMAC): Call.
1025 * aclocal.m4 (GROFF_TMAC): Define.
1026 * tmac/Makefile.sub (stamp_wrap): New target.
1027 (install_data, uninstall_sub): Handle macro wrapping.
1029 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1031 * tbl/main.cc (main): Ignore -T option.
1033 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1035 * devlj4/generate/special.map: Add definition of \(nb.
1037 * tmac/tmac.dvi: Add definition of \(nb.
1039 * troff/dictionary.c (dictionary::dictionary): association::v gets
1040 initialized by association::association.
1042 * tmac/Makefile.sub: Avoid using temporary files when installing.
1044 * troff/env.cc (environment::set_font): Make bad font number a
1047 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1049 * Makefile.in (datadir): Use share rather than lib.
1051 * groff/groff.cc (basename): Rename to xbasename.
1053 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1055 * Makefile (CCLIBS): Don't use.
1056 * Makefile.ccpg: Likewise.
1058 * acgroff.m4: Rename to...
1059 * aclocal.m4: Modify extensively for autoconf 2.
1060 * configure.in: Likewise.
1061 * Makefile.in: Likewise.
1063 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1065 (xstrsignal): Check for definition of NSIG. Conditionalize
1066 on SYS_SIGLIST_DECLARED. Make return type const.
1068 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1070 * troff/input.cc (interpolate_macro): Rephrase missing space
1073 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1075 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1076 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1077 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1078 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1079 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1080 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1081 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1082 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1083 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1084 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1085 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1088 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1090 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1092 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1094 (macro_iterator::macro_iterator): Add additional argument.
1096 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1098 * troff/div.cc (vertical_size::vertical_size): In place of integer
1099 specifying line spacing use cunits specifying post vertical
1101 (macro_diversion::output, top_level_diversion::output): Likewise.
1102 * troff/div.h: Change declarations accordingly.
1103 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1105 (pending_output_line::pending_output_line,
1106 pending_output_line::output, environment::output,
1107 environment::output_line, environment::output_title,
1108 environment::hyphenate_line): In place of
1109 integer specifying line spacing use cunits specifying post vertical
1111 (environment::environment): Add post_vertical_spacing and
1112 prev_post_vertical_spacing arguments.
1113 (environment::get_post_vertical_spacing): New function.
1114 (environment::total_post_vertical_spacing): New function.
1115 (environment::post_vertical_spacing): New function.
1116 (init_env_requests): Initialize pvs request and .pvs register.
1117 * troff/env.h: Change declarations.
1119 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1121 * tmac/tmac.pspic: Immediately remove the temporary file.
1123 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1125 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1126 height is specified.
1128 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1130 * tbl/table.c (struct vertical rule, class table_entry): Use int
1131 not short for start_row and end_row.
1133 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1135 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1137 (diverted_space_node::reread, process_input_stack): Call
1138 trapping_blank_line() rather than blank_line().
1139 (init_input_requests): Bind "blm" to blank_line_macro().
1141 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1143 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1145 * troff/env.cc (environment::possibly_break_line): Require that
1146 width total excluding width of final space node be greater than
1147 the target text length.
1149 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1151 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1153 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1155 * troff/node.cc (charinfo_node): New class.
1156 (glyph_node, composite_node): Derive from charinfo_node. Change
1157 member functions accordingly.
1159 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1161 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1163 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1165 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1167 * devps/generate/textmap (notsubset): Add.
1169 * tmac/tmac.a4: New file.
1171 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1173 * pic/main.cc (had_parse_error): New variable.
1174 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1176 (main): Return 1 if had_parse_error is true.
1178 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1180 * grolj4/lj4.cc (main): Avoid use of strtoul.
1182 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1184 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1185 iso_8859_1 or $LESSCHARSET is latin1.
1187 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1189 * hpftodit: New directory.
1190 * Makefile.in (CCPROGDIRS): Add hpftodit.
1191 * devlj4/generate: New directory.
1193 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1195 * configure.in: Don't use AC_VFORK.
1196 * groff/pipeline.c (run_pipeline): Use fork() always.
1198 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1200 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1202 * Makefile.in (CCPROGDIRS): Add grolj4.
1203 (DEVDIRS): Add devlj4.
1204 * grolj4, devlj4: New directories.
1205 * tmac/troffrc: Handle lj4.
1206 * tmac/tmac.lj4: New file.
1208 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1210 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1212 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1214 * troff/input.cc (do_if_request): At end of second string, switch
1215 environments before getting next token.
1217 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1219 * devps/psstrip.sed: Split rule that strips whitespace on either
1222 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1224 * troff/node.h (font_family::make_definition): Add return value to
1225 declaration. * troff/symbol.h (symbol::operator==,
1226 symbol::operator!=): Likewise.
1228 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1230 * groff/groff.cc (main, help, synopsis): Handle -S.
1231 (possible_command::insert_arg): New function.
1233 * tmac/tmac.safer: New file.
1234 * tmac/msafer.man: New file.
1235 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1237 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1239 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1240 * pic/pic.y (placeless_element): Avoid unsafe operations if
1241 `safer_flag' is set.
1242 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1244 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1246 * eqn/lex.cc (get_token): Put call to add_context() in block to
1247 work around Sun C++ 4.0 bug.
1249 * include/stringclass.h (operator +): Use ?: instead of `if' to
1250 work around Sun C++ 4.0 bug.
1252 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1254 * tbl/main.cc (process_format): Accept - as a synonym for the _
1257 * libbib/index.cc (minus_one): Don't declare as const.
1259 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1261 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1263 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1265 * troff/input.cc (write_macro_request): New function.
1266 (init_input_requests): Bind write_macro_request to writem.
1268 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1270 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1273 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1275 * tmac/tmac.s (@TS): Renamed from TS.
1276 (TS): Call LP then TS again.
1277 (cov*ab-init): Alias @TS to TS.
1279 * tmac/tmac.s: Allow QP or RS to initialize.
1281 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1282 Move initializations of PS and LL here.
1283 (par@init): Don't initialize HY. Avoid changing environment 0.
1284 (par*env-init): Don't all par@reset.
1286 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1288 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1290 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1292 * Makefile.in (MDEFINES): Add LDFLAGS.
1293 (LDFLAGS): Add definition line.
1295 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1297 * troff/input.cc (get_optional_char): Split off error check into...
1298 (check_missing_character): New function.
1299 * troff/token.h: Declare it.
1300 * troff/env.cc (margin_character): Don't call get_optional_char.
1301 Only call tok.next() after making the node.
1303 * include/lib.h (getopt): Make 2nd argument char *const *.
1305 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1307 * nroff/conftest.sh: Deleted.
1309 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1311 * pic/make-dos-dist: Deleted.
1313 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1315 * devps/psstrip.sed: Strip comments before stripping trailing
1318 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1320 * Version 1.09 released.
1322 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1324 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1326 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1328 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1330 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1332 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1333 about returning without a value.
1335 * troff/charinfo.h (charinfo::get_special_translation): Cast
1336 TRANSLATE_NONE to int.
1338 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1339 test. Fix test so that it works with n unsigned.
1341 * pic/pic.y (defaults_table): Fully bracket initializer.
1342 * pic/lex.cc (lookup_keyword): Likewise.
1343 * eqn/lex.cc (token_table, def_table): Likewise.
1344 * eqn/box.cc (param_table): Likewise.
1345 * troff/input.cc (warning_table): Likewise.
1346 * libgroff/font.cc (table): Likewise.
1347 * grops/ps.cc (ps_printer::special): Likewise.
1348 * grops/psrm.cc (resource_manager::process_file): Likewise.
1349 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1350 * refer/command.cc (command_table): Likewise.
1351 * addftinfo/addftinfo.cc (param_table): Likewise.
1353 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1354 about temp's being unused.
1355 (unused): New function.
1357 * groff/pipeline.cc: Declare c_fatal.
1359 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1362 * libbib/index.cc (index_search_item::load): Prevent compiler
1363 warnings about fd_closer's being unused.
1364 (unused): New function.
1366 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1368 * troff/input.cc (copy_mode_error): Make `prefix' static.
1371 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1373 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1374 HAVE_CC_OSFCN_H and modify accordingly.
1376 * troff/input.cc (init_charset_table): radicalex overlaps
1379 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1380 udodo!hans@relay.NL.net).
1381 * groff/configure.in: Call it.
1383 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1384 * groff/configure.in: Call it.
1385 * include/lib.h: Conditionalize declaration of pclose.
1387 * troff/div.cc (last_page_number): New global variable.
1388 (top_level_diversion::begin_page): Exit if we just printed the
1390 * troff/div.h (last_page_number): Declare it.
1391 * troff/input.cc (parse_output_page_list): Set last_page_number.
1393 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1394 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1395 tmac/tmac.X: Likewise.
1396 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1397 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1399 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1401 * tmac/doc-ditroff (hK): Remove groff specific code which
1402 prevented page-breaks between separate manual entries. If this is
1403 the first page, don't set the page number to 1.
1405 * acgroff.m4 (GROFF_POSIX): New macro.
1406 * configure.in: Use it.
1408 * troff/node.cc (class real_output_file,
1409 real_output_file::real_output_file,
1410 real_output_file::~real_output_file): Conditionalize use of
1411 popen/pclose on POPEN_MISSING.
1412 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1413 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1414 (pipe_source): Similarily.
1416 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1418 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1419 presence of declarations by trying to compile example with
1420 conflicting declarations. (gcc only gives a warning for missing
1423 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1425 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1426 (from Ulrich Lauther).
1428 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1430 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1432 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1434 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1435 pointers and ints have different sizes.
1437 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1439 * tmac/tmac.s (par*env-init): Call par@reset.
1441 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1443 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1445 (par*push-tag-env, par*pop-tag-env): New macros.
1447 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1449 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1450 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1452 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1453 comment. Include <time.h>.
1455 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1457 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1458 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1461 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1463 * troff/input.cc (read_request): Only print a prompt if reading
1464 from the terminal. Also clearerr on EOF if reading from the
1465 terminal. Declare isatty.
1467 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1469 * refer/label.y: Rename map_t to map_func and extractor_t to
1472 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1474 * include/assert.h: Don't use volatile.
1475 * libgroff/assert.cc: Likewise.
1477 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1479 * troff/input.cc (abort_request): Look at character in tok before
1482 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1484 * troff/troff.h (NO_RETURN): Deleted.
1485 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1486 * troff/input.cc (exit_troff): Likewise
1488 * Makefile.in: Remove `Making ...' messages since GNU make now
1491 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1493 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1495 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1498 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1500 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1502 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1504 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1505 MARK_REG if there was no left delimiter.
1507 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1509 * pic/troff.cc (troff_output::text): Set line thickness to
1510 relative before outputting text.
1512 * tmac/tmac.e (@k): Don't zero ?T.
1515 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1517 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1519 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1521 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1524 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1526 * troff/input.cc (ignoring): New variable.
1527 (ignore): Set ignoring during call to do_define_macro.
1528 (do_define_macro): Clear ignoring before interpolating terminating
1530 (copy_mode_error): New function.
1531 (get_char_for_escape_name, read_long_escape_name,
1532 interpolate_arg): Use copy_mode_error.
1533 (warning_table): Add WARN_IG.
1534 * troff/troff.h (WARN_IG): Declare.
1535 (WARN_TOTAL): Change accordingly.
1537 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1538 * groff/groff.cc (strsignal): Delete declaration.
1540 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1542 * troff/div.cc (page_offset): Use 'm' as default scaling.
1544 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1546 * nroff/nroff.sh: Ignore -u.
1548 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1550 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1552 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1554 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1556 (B2): With -Tascii, leave additional vertical space before
1557 and after. Ensure that the left and right indent is restored to
1558 what it was even if the point size changes. Don't call
1559 par@finish. Change the indent, line length and title length
1560 directly. With -Tascii, make the width of the box 1n less.
1561 (B1): Remember 1n at the current point size. Don't call
1562 par@reset. Change the indent, line length and title length
1563 directly. Ensure that the temporary indent is preserved.
1564 (par*box-mark-top): Turn off no spacing mode.
1566 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1568 * Makefile.in (dist): Use .gz suffix.
1570 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1572 * troff/input.cc (main): Add return 0.
1573 * pic/main.cc (main): Use return instead of exit.
1574 * tbl/main.cc (main): Likewise.
1575 * eqn/main.cc (main): Likewise.
1576 * grops/ps.cc (main): Likewise.
1577 * grotty/tty.cc (main): Likewise.
1578 * groff/groff.cc (main): Likewise.
1579 * grodvi/dvi.cc (main): Likewise.
1580 * refer/refer.cc (main): Likewise.
1581 * indxbib/indxbib.cc (main): Likewise.
1582 * lkbib/lkbib.cc (main): Likewise.
1583 * soelim/soelim.cc (main): Likewise.
1584 * addftinfo/addftinfo.cc (main): Likewise.
1585 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1586 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1588 * troff/token.h (process_input_stack): Don't declare as static.
1589 * troff/input.cc: Likewise.
1591 * troff/node.c (invalidate_fontno): Make it a static member of
1592 class font_family. Change callers.
1593 * troff/node.c: Change declaration.
1595 * tbl/main.cc (struct input_entry_format): Add explicit public
1597 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1598 struct double_hline_stuff): Likewise.
1599 * tbl/table.h (struct entry_format): Likewise.
1600 * pic/object.h (struct saved_state): Likewise.
1602 * include/stringclass.h: Add forward declarations of friend
1603 functions that are later declared as inline. Don't include inline
1604 specifier in friend declaration.
1606 * libgroff/lib.h: Declare popen and pclose.
1607 * acgroff.m4 (GROFF_POPEN): New macro.
1608 * configure.in: Call it.
1610 * include/lib.h (PI): New constant. Undef first if necessary.
1611 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1612 * grops/ps.cc (degrees, radians): Likewise.
1613 * libgroff/font.cc (font::get_skew): Likewise.
1615 * grops/ps.cc (is_ascii): New function.
1616 (ps_output::put_string): Use is_ascii. Use csprint rather than
1618 (ps_printer::define_encoding): Use csspace.
1619 * libgroff/strtol.c (ISASCII): New macro.
1620 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1621 Use ISASCII rather than isascii.
1622 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1623 * libgroff/cset.cc: Likewise.
1624 * libdriver/input.cc: Include cset.h.
1625 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1628 * refer/refer.cc (main): Use %ld rather than %d for longs.
1630 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1633 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1635 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1637 * troff/input.cc (hyphenation_code): Skip white space between
1640 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1642 * tbl/table.h (table::entry_list_tailp): New member.
1643 (table::table): Initialize it.
1644 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1647 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1649 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1650 with negative horizontal positions. Remove casts of glyph::hpos to
1652 (USHRT_MAX): Delete definition.
1653 (SHRT_MAX, SHRT_MIN): New definitions.
1654 (glyph::hpos): Change type to short.
1655 (tty_printer::end_page): Output multiple backspaces if necessary.
1656 Remove casts of glyph::hpos to int.
1658 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1660 * tmac/tmac.s (@RT): New definition.
1662 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1664 * refer/refer.cc (do_file): Make sure current_filename is set when
1667 * pic/common.cc (common_output::dot_line): Handle zero length
1670 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1672 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1673 (par@init): Initialize \n[HY].
1675 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1677 * troff/dictionary.cc (dictionary::remove): Continue when
1680 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1682 * Makefile.com (.y.cc): Avoid ending up with two versions of
1685 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1687 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1688 (\(,C): Likewise. Also fix typo.
1690 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1692 * lib.h: Delete extraneous semi-colon.
1694 * Add pso request: `so' from a pipe.
1695 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1696 (file_iterator::close): New function.
1697 (file_iterator::~file_iterator, file_iterator::next_file): Use
1698 file_iterator::close.
1699 (file_iterator::backtrace): Say `process' rather than `file' when
1700 the stream is popened.
1701 (pipe_source): New function.
1702 (init_input_requests): Bind ".pso" to pipe_source.
1704 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1706 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1708 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1709 digits in lower case.
1711 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1713 * Version 1.08 released.
1715 * Makefile.in (dist): Insert || true after ln -s commands that
1718 * mm: Update to mm 1.16.
1720 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1721 * configure.in: Call GROFF_CSH_HACK. Substitute for
1723 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1725 * nroff/Makefile.sub (nroff): New target.
1726 (install_data): Install nroff.
1727 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1728 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1730 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1732 * eqn/Makefile.sub (neqn): Add chmod +x.
1734 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1736 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1738 * troff/input.cc (string_iterator::string_iterator()): Initialize
1741 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1743 * troff/div.cc (macro_diversion::space,
1744 top_level_diversion::space): Don't set high_water_mark.
1745 (macro_diversion::output, top_level_diversion::output): Don't
1746 include post line space in high water mark.
1748 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1750 * eqn/eqn.y: Don't define YYDEBUG.
1751 * pic/pic.y: Likewise.
1753 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1755 * tmac/tmac.e ([3): Add space after comma following editors.
1756 Change double spaces to single spaces.
1757 ([4): Change double spaces to single spaces.
1759 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1760 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1761 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1762 after %!PS-Adobe- (for Newsprint).
1764 * troff/div.cc (top_level_diversion::begin_page): When
1765 before_first_page is 1, set page_number to 1.
1767 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1769 * eqn/box.cc (box::top_level): Protect equation with \&.
1771 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1773 * groff/groff.cc (possible_command::set_name): Delete old name.
1775 * groff/groff.cc (possible_command::~possible_command): Use
1778 * troff/node.cc (troff_output_file::begun_page): New member.
1779 (troff_output_file::troff_output_file): Initialize it.
1780 (troff_output_file::really_begin_page): Only output V command if a
1781 page has been begun.
1783 * pic/pic.y (placeless_element): Delete argument to PRINT after
1786 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1788 * Make wrapman work.
1789 * troff/div.h (class top_level_diversion): Replace
1790 first_page_begun by before_first_page (with opposite sense).
1791 * Change first_page_begun to before_first_page inverting sense.
1792 * troff/div.cc (class nl_reg): New class.
1793 (init_div_requests): Use class nl_reg for \n(nl.
1794 (top_level_diversion::begin_page): Don't call
1795 output_file::begin_page if before_first_page is 2;
1796 reset before_first_page afterwards. If have_next_page_number is
1797 false, then always increment page_number.
1798 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1799 Restore compatibility mode after loading, and then disable
1800 compatibility mode in TH.
1802 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1804 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1806 * troff/node.h (output_file::trailer): Declare.
1807 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1808 * troff/node.cc (output_file::trailer): New function.
1809 (troff_output_file::~troff_output_file): Move most code into...
1810 (troff_output_file::trailer): New function.
1811 (class troff_output_file): Delete page_length member. Declare
1813 (troff_output_file::really_begin_page): Use current page length
1814 for final V command.
1816 * tbl/main.cc (struct options): New decimal_point_char member.
1817 (options::options): Initialize this.
1818 (process_options): Implement decimalpoint option.
1819 (process_data): Pass decimal_point_char option to table::table.
1820 * tbl/table.h (class table): New decimal_point_char member.
1821 (table::table): Add additional argument.
1822 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1823 second argument specifying decimal point character. Use this
1825 (table::table): Initialize decimal_point_char.
1826 (table::add_entry): Change call to find_dot.
1828 * troff/input.cc (get_copy, token::next): Implement \V.
1829 (interpolate_environment_variable): New function.
1831 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1833 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1834 * pic/pic.y: Likewise.
1836 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1838 * refer/ref.cc (reference::insert_field, reference::delete_field):
1840 * troff/number.cc (parse_term): Likewise.
1842 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1843 * configure.in: Use GROFF_PROG_YACC.
1845 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1847 * Makefile.in (OPTIMIZE): New define.
1848 (DEBUG): Empty by default.
1849 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1851 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1852 (GROFF_ARRAY_DELETE): Likewise.
1853 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1855 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1857 * devps/psstrip.sed: Use different delimiter on last line (so that
1858 it works with BSD 4.4 sed.)
1860 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1862 * devps/psstrip.sed: Delete comments.
1864 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1865 optind, opterr, optarg.
1866 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1869 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1871 * Makefile.in (check): Dummy target.
1873 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1875 * Version 1.07 released.
1877 * Integrate mm 1.11.
1879 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1880 where start_col was meant.
1882 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1884 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1886 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1888 * troff/input.cc (token::next): Make \z\o'...' and similar things
1891 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1893 (environment): Add margin_character_flags member.
1894 * env.cc (environment::environment(symbol),
1895 environment::environment(const environment *): Initialize
1896 margin_character_flags.
1897 (margin_character): Rewrite.
1898 (environment::output_line): Add a margin character if
1899 margin_character_flags is non-zero. Turn off the
1900 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1901 zero, use margin_character_node without copying and then set
1902 margin_character_node to 0.
1904 * devps/DESC.in: Change minimum size to 1000.
1906 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
1908 * troff/symbol.h (symbol::hash): Change return type to unsigned
1910 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1913 * test-groff: Use -r rather than -x.
1915 * grops/psfig.diff: Include in distribution again.
1917 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
1919 * Makefile.in (dist): Use gzip.
1921 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
1923 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1924 unistd.h as well as in stdlib.h.
1925 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1926 defined; otherwise include <sys/types.h> and <unistd.h> if
1927 UNISTD_H_DECLARES_GETOPT is defined.
1929 * configure.in: use builtin(include, ... rather than include(...
1930 * configure: Regenerate with autoconf 1.3.
1932 * libdriver/print.cc (printer::adjust_arc_center): Use new
1933 algorithm suggested by Andy Fyfe.
1935 * libdriver/printer.cc (printer::adjust_arc_center): New function.
1936 * include/printer.h: Declare this.
1937 * grops/ps.cc (ps_printer::draw): Use it.
1938 * grodvi/dvi.cc (dvi_printer::draw): Use it.
1940 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
1942 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1944 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1946 * eqn/main.cc (main): Handle "eqn -".
1948 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1950 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1952 * mm: Integrate version 1.08.
1954 * pic/troff.cc (troff_output::finish_picture): Set
1955 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1956 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1957 if it's not defined. Check whether the register is non-zero rather
1958 than whether it's not defined.
1959 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1961 * indxbib/indxbib.cc: Move all signal handling into...
1962 * indxbib/signal.c: New file.
1963 * configure.in: Call AC_RETSIGTYPE.
1965 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1966 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1967 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1969 * troff/input.cc (token::token, token::operator=): Work round SGI
1971 * pic/object.cc (position::position): Likewise.
1973 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1975 * pic/pic.h: Move declaration of hypot().
1977 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1979 * pic/pic.h: Declare hypot().
1981 * pic/pic.h: Define M_PI if necessary.
1983 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1985 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1988 * devps/prologue.ps (RE): Handle the possibility that the old font
1989 doesn't have a FontName entry.
1991 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1993 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1994 (@C): Use @fam not fam.
1996 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1998 * lookbib/lookbib.cc (main): Change type of start to const char *.
1999 * lkbib/lkbib.cc (main): Likewise.
2001 * eqn/lex.cc (definition::definition): Don't use member
2002 initializer syntax for members of anonymous unions.
2004 * troff/input.cc (input_stack::backtrace): Change type of to const
2007 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2009 * include/stringclass.h (class string): Declare inline friend
2010 functions as inline in class declaration.
2011 * troff/hvunits.h (class hunits, class vunits): Likewise.
2012 * include/refid.h (class reference_id): Likewise
2013 * troff/troff.h (points_to_units(units), scale(units, double)):
2014 Delete declarations.
2015 * libdriver/input.cc (get_char): Delete declaration.
2016 * include/lib.h: Change 2nd argument of getopt from const char **
2018 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2019 char **' before assigning to a `const char **'.
2020 * tbl/table.cc: Delete extra declarations of prints().
2022 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2024 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2025 char **' before assigning to a `const char **'.
2027 * libgroff/errarg.cc (errarg::errarg): Don't use member
2028 initializer syntax for members of anonymous unions.
2030 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2032 * mm: Integrate version 1.07.
2034 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2036 * troff/input.c (translate2): Rename to
2037 (translate_no_transparent).
2038 (init_input_requests): Rename tr2 to trnt.
2040 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2042 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2043 (charinfo::set_translation, charinfo::set_special_translation):
2044 Add second argument that specifies value for
2045 transparent_translate.
2046 (charinfo::get_translation, charinfo::get_special_translation):
2047 Add optional second argument that specifies whether translation is
2048 being used for transparent throughput.
2049 * troff/input.cc (charinfo::set_translation,
2050 charinfo::set_special_translation): Handle second argument.
2051 (charinfo::charinfo): Initialize transparent_translate.
2052 (translate): Split main part off into
2053 (do_translate): New function. Pass argument saying whether
2054 translation applies to transparent throughput.
2055 (translate2): New request.
2056 (init_input_requests): Bind translate2 to `tr2'.
2058 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2060 * tbl/table.h (class table): Add `nokeep' flag.
2061 * tbl/main.cc (process_options): Handle `nokeep' option.
2062 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2063 table::do_bottom): Don't output keep/release macro definitions or
2064 calls when `nokeep' option has been specified.
2066 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2068 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2070 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2072 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2073 block_entry::divert, alphabetic_block_entry::divert): Add extra
2074 argument giving column separation.
2075 (table::compute_widths): Pass column separation to
2076 table_entry::divert().
2077 (block_entry::do_divert): If an entry spans multiple columns and a
2078 minimumum width has been specified for each column, then set the
2079 line length to the sum of the widths (plus possibly the column
2082 * troff/input.cc (set_escape_char): Don't set the escape_char
2083 until after calling has_arg().
2085 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2087 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2090 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2091 in case where r > nrows - 1.
2093 * tbl/table.cc (BODY_HEIGHT): Deleted.
2094 (LINE_SEP): New definition.
2095 (table::print_single_hline, table::print_double_hline,
2096 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2097 table::do_row, table::do_top): Use LINE_SEP space before a line
2098 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2100 * tbl/table.cc (text_entry::print_contents): New function.
2101 (text_string_name, right_text_string_name): Deleted.
2102 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2103 (simple_text_entry::do_width, numeric_text_entry::do_width,
2104 alphabetic_text_entry::do_width): Don't store the contents of the
2106 (left_text_entry::simple_print, right_text_entry::simple_print,
2107 center_text_entry::simple_print,
2108 alphabetic_text_entry::simple_print,
2109 numeric_text_entry::simple_print): Print the entry directly
2110 instead of using the stored string.
2112 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2114 * devps/Makefile: Strip PostScript files.
2115 * devps/prologue: Rename to...
2116 * devps/prologue.ps.
2117 * devps/psstrip.sed: New file.
2118 * devps/download: Use .pfa rather than .ps for installed versions
2121 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2123 * troff/env.cc (input_trap): Give a warning if the argument is out
2126 * troff/env.cc (adjust): Treat negative argument as missing. Round
2127 argument > 5 down to 5.
2129 * troff/env.cc (center, right_justify): Make negative argument zero.
2131 * troff/div.cc (page_offset, vertical_position_traps): Treat
2132 invalid argument as missing.
2133 * troff/env.cc (line_spacing, line_length, title_length, indent,
2134 underline, hyphen_line_max_request, control_char,
2135 no_break_control_char, widow_control_request, adjust, input_trap,
2136 point_size): Likewise.
2137 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2138 constant_space): Likewise.
2139 * troff/input.cc (compatible, shift, warn_request,
2140 set_escape_char): Likewise.
2142 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2143 * tbl/table.cc (table::table): Likewise.
2145 * Makefile.dev (install_dev): depends on $(DEVFILES).
2147 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2149 * devX75, devX75-12, devX100, devX100-12: New directories.
2150 * Makefile.in: Add these to DEVDIRS.
2152 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2153 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2154 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2155 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2157 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2158 (uninstall): New target.
2159 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2160 uninstall_prog, uninstall_dev): New targets.
2162 * troff/div.cc (return_request): Treat an invalid argument as
2165 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2167 * tmac/tmac.e ((f): Set up the environment even when there's a
2168 current diversion. Transperently throughput a call to @N.
2171 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2173 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2174 up to vertical resolution.
2176 * tbl/table.cc (table::do_row): Change row number after printing
2179 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2181 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2183 * Rename CHANGES to NEWS.
2185 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2187 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2189 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2191 * man.ultrix: Removed.
2193 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2195 * Makefile.comm (extraclean): Delete files whose names begin with
2198 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2201 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2203 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2204 * troff/div.cc (page_length, need_space, space_request): Treat
2205 invalid optional argument as missing.
2206 * troff/env.cc (number_lines): If the first argument is present
2207 but not a number, turn on line numbering, don't change the next
2208 line number and parse the remaining arguments.
2210 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2212 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2214 * eqn/box.h: Change declaration accordingly.
2215 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2216 the specified size was bad but don't give an error. Check for
2218 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2219 * eqn/lex (do_size): Likewise.
2221 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2223 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2226 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2228 * tbl/table.cc (table::init_output): Improve error message when
2229 table won't fit on one page.
2231 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2233 * pic/troff.cc (troff_output::start_picture): Generate line
2234 containing a horizontal motion equal to the width of the picture.
2236 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2237 using GROFF_COMMAND_PREFIX environment variable.
2239 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2241 * mdate.sh: Use $NF rather than $(NF).
2243 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2245 * pic/main.cc (main): Use %1 not %c in argument to warning.
2247 * eqn/main.cc (main): Output code to check that geqn was given the
2250 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2252 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2253 `ln -s ../Makefile .; make; rm -f Makefile'.
2255 * troff/hyphen: Rename to...
2257 * troff/input.cc (main): Delete -H option. Don't call
2259 * troff/env.cc: Include searchpath.h and macropath.h.
2260 (exception_dictionary): Deleted.
2262 (read_hyphen_file): Deleted.
2263 (hyphenation_language): New struct.
2264 (class trie, class hyphen_trie): Move declarations up.
2265 (trie_node::~trie_node): Deleted.
2266 (trie::delete_trie_node): New function.
2267 (trie::do_delete): New pure virtual function.
2268 (hyphen_trie::do_delete): New function.
2269 (trie::~trie): New function.
2270 (hyphen_trie::~hyphen_trie): New function.
2271 (trie::clear): No need to chcek that tp is not 0.
2272 (current_language, language_dictionary): New variables.
2273 (hyphen_word): Give an error if no current language. Use
2274 exceptions dictionary in current language.
2275 (hyphen_trie::read_patterns_file): Find file using macro_path.
2276 Allow comments (starting with %) in patterns file. Don't make it
2277 a fatal error if the file can't be found.
2278 (hyphenate): Return if no current language. Get the exceptions
2279 dictionary and the hyphenation patterns from the current language.
2280 (set_hyphenation_language): New variable.
2281 (hyphenation_patterns_file): New function.
2282 (hyphenation_language_reg): New class.
2283 (hyphenation_language_reg::get_string): New function.
2284 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2285 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2287 * groff/groff.cc (main, help, synopsis): Delete -H option.
2288 * include/Makefile.sub: Don't define HYPHENFILE.
2289 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2290 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2291 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2292 hyphenation patterns.
2294 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2296 * eqn/neqn.sh: New file.
2297 * eqn/Makefile.sub: Handle neqn.sh.
2299 * eqn/eqn.h: Declare `nroff' variable.
2300 * eqn/box.cc (param_table): Add `nroff' param.
2302 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2304 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2306 * troff/troff.h (WARN_FONT): New warning.
2307 (WARN_TOTAL): Change accordingly.
2308 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2309 (warning_table): Add WARN_FONT.
2310 * troff/node.cc (mount_font_no_translate): Pass argument to
2311 font::load_font. If this is non-zero, give a warning.
2312 Don't give an error message when accessing a font that has already
2313 been found to be invalid.
2314 * include/font.h (font::load, font::load_font): Add additional
2315 optional argument which suppresses error message if the font is
2317 * libgroff/font.cc (font::load_font): Handle additional argument.
2318 (font::load): Add additional argument. If this is non-null, set it
2319 to 1 and don't give error message.
2321 * include/printer.h (printer::end_page): Add argument giving
2323 * libdriver/input.cc (do_file): Pass this.
2324 * grops/ps.cc (ps_printer::end_page): Add argument.
2325 * grodvi/dvi.cc (dvi_printer::end_page,
2326 draw_dvi_printer::end_page): Add argument.
2327 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2328 columns_per_page members. New member nlines.
2329 (DEFAULT_LINES_PER_PAGE): Deleted.
2330 (tty_printer::tty_printer): Don't compute lines_per_page from
2331 font::paperlength. Don't compute columns_per_page from
2333 (tty_printer::add_char): Don't check horizontal position against
2334 columns_per_page. Grow glyphs vector if neccessary.
2335 (tty_printer::end_page): Add argument giving page_length in units.
2336 Discard lines past end of page.
2338 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2340 * tmac/tmac.tty-char: Fix definition of \(/l.
2342 * tmac/tmac.X: Define \(en.
2344 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2346 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2347 lpq, then use lp rather than lpr.
2349 * tmac/tmac.s (par@reset): Don't call `ad'.
2350 (par*env-init): Call `ad'.
2352 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2354 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2357 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2358 * indxbib/indxbib.cc: Likewise.
2360 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2362 * libgroff/putenv.c: New file.
2363 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2364 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2365 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2366 stdlib.h with AC_HAVE_HEADERS.
2368 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2370 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2373 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2375 * eqn/box.cc (gsize): Make it an int.
2376 (set_gsize): Parse argument handling increment or decrement.
2377 (box::top_level): Convert gsize to a string.
2379 * troff/input.cc (exit_troff): Make buf unsigned char [].
2380 Call to make_temp_iterator casts buf to char*.
2382 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2384 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2385 * Makefile.cpg (depend.temp): Likewise.
2387 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2389 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2391 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2393 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2395 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2397 * Version 1.06 released.
2399 * Integrate mm 1.04.
2401 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2403 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2405 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2407 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2409 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2410 afmtodit. Regenerate.
2412 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2413 @f back past the current position.
2415 * tmac/tmac.e: Change calls to @R so that comments are not part of
2418 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2420 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2422 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2423 check that we can link a call to a function declared in <stdio.h>.
2424 (GROFF_UNISTD_H): New macro.
2425 * configure.in: Call it.
2426 * Makefile.in: Document it.
2427 * include/posix.h: New file.
2428 * troff/troff.h: Don't include <osfcn.h>
2429 * troff/input.cc: Include posix.h.
2430 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2432 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2433 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2435 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2436 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2437 * libbib/search.cc (O_RDONLY): Delete definition.
2438 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2439 Don't include <osfcn.h>.
2441 * acgroff.m4 (GROFF_TIME_T): New macro.
2442 * configure.in: Call it.
2443 * Makefile.in: Document it.
2445 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2446 * configure.in: Call it.
2447 * Makefile.in: Document -DTRADITIONAL_CPP.
2448 * include/ptable.h: Don't include generic.h.
2451 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2452 Afterwards remove [T1 and [T2.
2453 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2454 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2455 (ref*add-T2): Renamed from ref*add-T.
2456 (ref*add-T1): New macro.
2458 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2460 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2462 * libbib/index.cc: Include <fcntl.h>.
2463 (O_RDONLY): Define if necessary.
2464 (make_index_search_item, index_search_item_iterator::get_tag,
2465 index_search_item::check_files): Use O_RDONLY.
2466 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2467 (O_RDONLY): Define if necessary.
2468 (search_list::add_file): Use O_RDONLY.
2469 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2471 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2474 * libbib/index.cc (S_ISREG): Define it if necessary.
2475 (index_search_item::load): Use S_ISREG.
2477 * include/driver.h: Include <errno.h>.
2479 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2481 * eqn/box.cc (body_height): Increase default value to 85.
2482 (body_depth): Increase default value to 35.
2484 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2486 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2487 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2488 protected from expansion with \E.
2490 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2492 * Makefile (Makefile): New target.
2494 * Makefile.sub (configure, distfiles): New targets.
2496 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2499 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2501 * eqn/box.cc (param_table): Add body_height and body_depth.
2503 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2505 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2507 * psbb/Makefile.sub: Don't link with libgroff.a.
2509 * acgroff.m4 (GROFF_PUTENV): New macro.
2510 * configure.in: Call GROFF_PUTENV.
2511 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2512 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2515 * troff/env.cc (distribute_space): Rename force_forward argument
2516 to force_reverse. Reverse the list if force_reverse is true.
2518 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2520 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2522 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2523 height or depth to be negative. Guard against SUP_RAISE quantity
2526 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2528 * devps/generate/textmap: Add `an' (arrowhorizex).
2529 * tmac/tmac.ps: \(an overlaps horizontally.
2530 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2532 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2533 * devps/textmap: Add arrowvertex.
2534 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2535 updownarrow delimiters.
2536 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2538 * tbl/table.cc (simple_entry::position_vertically,
2539 block_entry::position_vertically): For a centered entry, perform
2540 the motion in two stages.
2542 * refer/refer.cc (split_punct): Don't call lookup_token if there
2545 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2547 * troff/input.cc (token::next): Delete token_node after copying
2550 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2553 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2555 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2557 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2559 * grops/ps.cc (usage): -b option takes an argument.
2561 * devps/prologue (PLG): New procedure.
2562 * grops/ps.cc (main, usage): New -g option.
2563 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2566 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2568 * include/cset.h: Include <limits.h> if we have it.
2570 * libgroff/illegal.cc: New file.
2571 * include/lib.h (illegal_input_char): Use table.
2572 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2573 * pic/lex.cc (ARG1): Renumber to 14.
2574 * eqn/lex.cc (ARG1: Likewise.
2576 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2577 (eg 1.05.90) correctly.
2579 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2581 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2582 Rename $r and $R registers to $v and $V.
2583 ($r, $R): Initialize to 0.
2584 (@v, @V): New macros.
2588 * troff/input.cc (main, usage): Add -R option that says not to
2590 * eqn/main.cc (main, usage): Rename -n to -R.
2592 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2594 * devps/DESC.in: Leave font positions 5-9 blank.
2595 * devdvi/DESC.in: Likewise.
2597 * grog/grog.pl: Handle `.PS <file' correctly.
2599 * troff/input.cc (input_stack::push): Improve error message when
2600 input stack limit exceeded.
2602 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2604 * refer/refer.cc (main): Fix typo in handling of `a' option.
2606 * refer/refer.cc (do_bib): In state START after a newline remain
2609 * groff/groff.sh: Deleted.
2610 * groff/Makefile.sub: Delete handling of groff.sh.
2612 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2613 to determine whether to use \X'ps:...'.
2614 * tmac/troffrc: Set 0p register to 0.
2615 * tmac/tmac.ps: Set 0p register to 1.
2617 * groff/groff.cc: Support -X option. Give warning for -TXps and
2618 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2619 * tmac/troffrc: Support -r.X=1.
2621 * pic/troff.cc (troff_output::dot): Don't test
2622 zero_length_line_flag.
2624 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2626 * include/lib.h: Declare getopt() and friends unless
2627 STDLIB_H_DECLARES_GETOPT is defined.
2629 * doc/chars.tr: Delete.
2630 * man/groff_char.man: New file.
2632 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2634 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2635 user has changed register format.
2637 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2639 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2640 `postpro' command in DESC file. Get spooler command from `print'
2641 command in DESC file. Execute spooler command with /bin/sh.
2643 * groff/groff.cc: Split Unix-specific parts into...
2644 * groff/pipeline.c: New file.
2647 * COPYING: New file.
2648 * all files: Update copyright notices.
2650 * Rearrange files. Redo Makefiles. Use autoconf.
2652 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2654 * troff/input.c (charinfo_to_node_list): Interpret character
2655 definition with escape_char of `\'.
2657 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2659 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2660 Define INT_DIGITS as big enough for 64-bit integer.
2661 * lib/strtol.c: Don't include lib.h.
2662 * lib/lib.h: Delete ifdef __cplusplus stuff.
2664 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2666 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2667 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2668 get DESC from current directory.
2670 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2672 * tbl/main.c (main): Always reset the line number when reading
2675 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2676 table::define_bottom_macro, table::do_row, table::do_top): Round
2677 vertical spacing up to vertical resolution.
2679 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2681 * ps/ps.h (enum resource_type): Avoid comma at end of
2683 * dvi/dvi.c (class dvi_printer): Likewise.
2684 * dvi/tfmtodit.c (gf::load): Likewise.
2685 * refer/label.y (struct expression): Likewise.
2686 * refer/refer.c (class label_processing_state): Likewise.
2687 * refer/indxbib.c (do_file): Likewise.
2688 * troff/troff.c (enum warning_type): Likewise.
2689 * tbl/main.c (process_data): Likewise.
2690 * troff/charinfo.h (class charinfo):
2692 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2694 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2696 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2698 * groff.c: Move to new groff subdirectory.
2699 * groff/Makefile: New file.
2700 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2702 * man/mdate.sh: Use ls -L if supported.
2704 * Consolidate all header files produced by gendef into lib/defs.h.
2705 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2706 Don't include path.h.
2707 * lib/Makefile (path.h): Don't generate.
2708 * troff/input.c: Include defs.h. Don't include config.h.
2709 * troff/Makefile (config.h): Don't generate.
2710 * refer/index.h: Don't include suffix.h.
2711 * refer/index.c: Include defs.h.
2712 * refer/indxbib.c: Include defs.h.
2713 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2715 * refer/Makefile (suffix.h, path.h): Don't generate.
2716 * groff.c: Don't include config.h. Include defs.h.
2717 * Makefile (config.h): Don't generate.
2718 (lib/defs.h): Generate.
2719 (topclean): Remove lib/defs.h.
2721 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2723 * lib/malloc.c, lib/getpagesize.h: Deleted.
2724 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2726 * lib/Makefile: Delete malloc-related stuff.
2727 * lib/new.c: Workaround COOKIE_BUG if necessary.
2729 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2730 needed header files directly.
2731 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2732 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2734 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2736 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2738 * lib/font (font::load_desc, font::load): Don't split argument of
2740 (font::handle_unknown_font_command): Change type.
2741 * ps/ps.c (ps_font::handle_unknown_font_command,
2742 handle_unknown_desc_command): Change type.
2743 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2745 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2747 * lib/font.h (font::handle_unknown_font_command): Add file and
2749 * lib/font.c (font::handle_unknown_font_command):
2750 * ps/ps.c (ps_font::handle_unknown_font_command):
2751 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2752 lineno arguments. Use _with_file_and_line functions for error
2755 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2757 * lib/font.c (font::set_unknown_desc_command_handler): New
2759 (font::load_desc): For unknown commands, call
2760 unknown_desc_command_handler if not null.
2761 * lib/font.h (class font): Declare them.
2762 (FONT_COMMAND_HANDLER): New typedef.
2763 * ps/ps.c (handle_unknown_desc_command): New function.
2764 (main): Set bflag if we had a -b option. Call
2765 font::set_unknown_desc_command_handler.
2766 (broken.h): Don't include.
2767 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2769 * ps/devps/Makefile: Add `broken' command to DESC file using
2770 BROKEN_SPOOLER_FLAGS.
2772 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2774 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2776 * macros/tmac.e (@R, @S): New macros.
2777 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2778 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2779 Declare $H, $[0-9], .. macros with @S.
2780 Declare |0, |1, |2, |3 strings with @S.
2782 * macros/tmac.e (@S): Rename to @U.
2784 * macros/tmac.e (@z): Define @b and bp as empty instead of
2787 * macros/tmac.e (@m): Deleted.
2788 (@h): Don't call @m.
2789 (@z): Don't set @m trap.
2791 * macros/tmac.e ($h, $f): Define |z as empty string.
2793 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2796 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2798 ()f): Likewise for * register.
2800 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2801 argument is missing, don't change $R. Call sr with three
2802 arguments when initializing.
2804 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2806 * macros/tmac.e (sr): New macro.
2807 Initialize $r and $R using sr.
2809 * macros/tmac.e (,): Delete \*(#[.
2811 * troff/env.c (set_tabs): Read the tab type even if the position
2812 is bad. Allow the position of the first tab stop to be negative.
2814 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2816 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2818 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2819 rather than -DPATHCONF_MISSING.
2820 * Makefile: Get rid of PATHCONF_MISSING.
2822 * refer/map.c: New file.
2823 * refer/index.c: Interface to mmap through map.c. Rename map_size
2825 * refer/Makefile: Handle map.c.
2826 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2828 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2830 * Makefile: RANLIB should be `true' if there is no ranlib.
2831 * lib/Makefile (libgroff.a): Simplify.
2832 * driver/Makefile (libdriver.a): Simplify.
2834 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2835 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2838 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2840 * troff/env.c (compare_ranges): Declare as extern "C".
2842 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2844 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2846 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2848 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2849 but conditionalize use of \X based on \*(.T.
2850 (grops_output::*): Deleted.
2851 * pic/output.h: Delete declaration of make_grops_output.
2852 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2853 by default. -n sets it to 0.
2854 (usage): Corresponding changes.
2855 * groff.c (main): Don't pass -x or -p to pic.
2856 * groff.sh: Likewise.
2858 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2861 * ps/devps/afmtodit: Change calculation of asc_boundary and
2862 desc_boundary. Make these bounds inclusive.
2863 * ps/devps: Regenerate font files.
2865 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2867 * macros/tmac.latin1: New file.
2868 * macros/tmac.tty-char: Use tmac.latin1.
2869 (tmac.tty-tr): Deleted.
2870 * macros/Makefile: Install tmac.latin1.
2871 * macros/tmac.dvi: Use tmac.latin1.
2872 * macros/troffrc: Translate \[char160] onto no-break space here.
2873 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2875 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2877 * macros/tmac.Xps: Use `do' request.
2879 * macros/tmac.ps: Use `do' request.
2881 * macros/tmac.e (@C): Use `do' request.
2883 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2884 * macros/Makefile: Install tmac.X*.
2886 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2887 * tty/Makefile: Don't install tmac.tty*.
2888 * macros/Makefile: Install tmac.tty*.
2890 * dvi/tmac.dvi: Move to macros.
2891 * dvi/Makefile: Don't install tmac.dvi.
2892 * macros/Makefile: Install tmac.dvi.
2894 * ps/tmac.ps*: Move to macros.
2895 * ps/Makefile: Don't install tmac.ps*.
2896 * macros/Makefile: Install tmac.ps*.
2898 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2900 * macros/eqnrc: Set draw_lines parameter based on device.
2901 * groff.c: Don't pass -D flag to eqn.
2902 * groff.sh: Likewise.
2903 * eqn/main.c: Warn about use of -D.
2905 * troff/input.c (process_startup_file): New function.
2906 (main): Call process_startup_file().
2907 * macros/troffrc: New file.
2908 * macros/Makefile: Install troffrc.
2909 * groff.c (main): Don't pass extra -m option to troff. For a
2910 pseudo device pass the name of the pseudo device to troff using
2912 * groff.sh: Likewise.
2913 * groff.c (possible_command::prepend_arg): Deleted.
2915 * troff/input.c (do_request): New function.
2916 (init_input_requests): Bind "do" to do_request.
2918 * eqn/main.c (main): Instead of loading eqnchar from device directory,
2919 load eqnrc from macro directory.
2920 * macros/eqnrc: New file.
2921 * macros/Makefile: Install eqnrc.
2922 * ps/devps/eqnchar: Deleted.
2923 * ps/devps/Makefile: Don't install eqnchar.
2924 * dvi/devdvi/eqnchar: Deleted.
2925 * dvi/devdvi/Makefile: Don't install eqnchar.
2926 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2929 * lib/device.[ch]: New files.
2930 * lib/font.h (font::set_device_name, font::get_device_name):
2932 * lib/fontfile.c: Use device.h.
2933 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2934 * troff/input.c: Delete definition of `device'.
2935 (main): Don't initialize device.
2936 * troff/troff.h: Include device.h rather than declaring device.
2937 * troff/Makefile: No need to handle DEVICE.
2938 * driver/input.c: Include device.h. Don't use
2939 font::{set,get}_device_name.
2940 * groff.c, Makefile: Rename device.h to config.h.
2941 * groff.c: Use library device variable.
2942 * eqn/main.c: Use library device variable.
2943 * eqn/Makefile: No need to handle DEVICE.
2945 * lib/searchpath.[ch]: New files.
2946 * lib/Makefile: Handle searchpath.[ch].
2947 * troff/input.c (open_file, init_dirs): Deleted.
2948 (macro_dirs): Deleted.
2949 (open_mac_file, macro_source): Use class search_path.
2950 (add_string, struct string_list): Move definition.
2951 (main): Change -M option to use macro_path. Delete call to
2953 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2954 Rewrite to use class search_path.
2955 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2956 * lib/Makefile: fontfile.c depends on searchpath.h.
2957 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2959 * lib/macropath.[ch]: New files.
2960 * troff/Makefile: No need to handle MACROPATH.
2962 * troff/input.c: Delete DUMP code.
2963 * lib/fontfile.c, lib/font.h: Delete
2964 font::forget_command_line_font_dirs.
2966 * troff/input.c (push_token): New function.
2967 (handle_first_page_transition): Use push_token().
2968 (process_input_stack): Change handling of a space at the beginning
2971 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2973 * troff/input.c (font_dirs): Delete unused variable.
2975 * eqn/lex.c (do_set): Correct error messages.
2977 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2979 * troff/input.c (do_define_string): Allow the string name to be
2980 followed immediately by a tab.
2981 (define_character): Likewise.
2983 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2985 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2988 * troff/input.c (input_iterator::is_file): New virtual function.
2989 (file_iterator::is_file): New function.
2990 (input_stack::end_file): New function.
2991 (input_stack::next_file): Handle the situation where there is no
2992 file on the input stack correctly. Avoid making two passes over
2994 (next_file): Make the filename optional; in this case call
2995 input_stack::end_file().
2997 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2999 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3000 produce a real _ charater when the current font is CW and _
3003 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3004 expression to work around gcc 2.2 bug.
3006 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3008 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3010 * troff/env.c (environment::add_padding): New function.
3011 (environment::add_char): Use add_padding().
3012 (environment::space): Likewise.
3013 (environment::wrap_up_field): Add some padding if there is none
3014 and there's no current tab.
3015 * troff/env.h: Declare environment::add_padding.
3017 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3019 * pic/pic.y: undef fmod and rand before declaring them.
3021 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3023 * troff/input.c (main): If the DESC file specifies a font name of
3024 0, then leave the corresponding font position empty.
3026 * nroff.sh: New file.
3027 * Makefile (install.nobin): Install nroff.sh.
3029 * tty/devlatin1/R.proto: Add ao as synonym for de.
3030 * tty/tmac.tty-char: Define ao as o.
3032 * tty/dev{ascii,latin1}/R.proto: Add aq.
3033 * tty/tmac.tty-char: Delete definition of aq.
3035 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3037 * troff/input.c (init_charset_table): Don't translate 0240.
3038 * ps/tmac.ps: Translate char160 to space.
3039 * dvi/tmac.dvi: Likewise.
3040 * tty/tmac.tty: Likewise.
3042 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3044 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3046 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3047 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3050 * tty/tmac.tty-char: Add \(ah.
3052 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3053 No need to define \(FM and \(!/. Conditionalize all character
3056 * ps/devps/lgreekmap: Add +h, +f, +p.
3058 * ps/tmac.psnew: New file.
3059 * ps/Makefile: Install tmac.psnew.
3061 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3062 character definitions in compatible mode.
3064 * troff/input.c (remove_character): New function.
3065 (init_input_requests): Bind remove_character to "rchar".
3067 * ps/tmac.psold: New file.
3068 * ps/Makefile: Install tmac.psold.
3069 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3070 characters into tmac.psold. Make these definitions unconditional.
3072 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3074 * ps/tmac.ps: Don't define \('c and \('C.
3076 * ps/devps/textmap: Move Greek characters to...
3077 * ps/devps/symbolchars:
3079 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3081 * ps/devps/text.enc: Add quotesingle.
3082 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3083 * tty/tmac.tty-char: Likewise.
3084 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3085 * dvi/devdvi/texi.map: Add Fn.
3086 * dvi/devdvi/msam.map: Add lz.
3087 * dvi/tmac.dvi: Handle Bq, bq, aq.
3089 * pic/lex.c (get_token): Recognize 'th.
3090 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3092 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3094 * ps/devps/textmap: Move di, mu, +- to...
3095 * ps/devps/symbolchars:
3097 * macros/tmac.s (@XS): Don't call par@reset or fi.
3098 (XA): Call LP. Turn off adjustment. Reduce line length.
3100 * macros/tmac.s: Initially alias XS to LP.
3101 (XS): Rename to @XS.
3102 (cov*ab-init): Alias XS to @XS.
3104 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3106 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3107 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3108 (token::is_size, token::changes_env): Deleted.
3109 * troff/number.c (parse_term): No need to process \s explicitly.
3110 Call tok.next() only after scale indicator has been processed.
3111 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3113 (token::next): Handle \s, \f, \S, \H immediately rather than
3114 returning them as tokens.
3115 (token::operator==, token::description, token::add_to_node_list,
3116 token::process): Remove handling of deleted tokens.
3118 * troff/env.c (environment::add_char): When adding padding
3119 indicator character, call start_line() if necessary.
3121 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3123 * ps/devps/afmtodit: Don't output 0 kerns.
3125 * ps/devps/afmtodit: Remove directory from name of encoding in
3126 font description file.
3128 * ps/devps/afmtodit: Improve error messages.
3130 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3132 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3133 * ps/devps/FontMakefile: Deleted.
3134 * ps/devps/afmname: New file.
3136 * ps/devps/symbol.sed: New file.
3137 * ps/devps/symbol.diff: Deleted.
3138 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3139 Generate zapfdr.afm from zapfd.afm.
3141 * tty/tmac.tty (tty-char): Prefix definition with ".
3143 * macros/tmac.an (TP): Don't start a diversion if one has already
3146 * tty/tmac.tty-char: Add Latin-1 characters.
3148 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3150 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3152 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3153 Move declaration of struct horizontal_span.
3155 * tbl/table.c (table::table): Initialize span_list.
3156 (table::~table): Delete span_list.
3158 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3160 * ps/devps/Makefile: Avoid dependency on GNU make.
3162 * ps/tmac.ps: Check that character does not already exist before
3165 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3166 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3167 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3170 * tty/tmac.tty-char: New file.
3171 * tty/Makefile: Install tmac.tty-char.
3172 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3175 * tty/tmac.tty: Fix definition of \(34.
3177 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3178 bracket-drawing characters onto |. Add *o.
3180 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3181 only if current_field.
3183 * troff/dictionary.c (dictionary::lookup): Free old_table after
3186 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3188 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3189 whose glyphs are identical to glyphs of some Roman character.
3191 * tty/devlatin1/R.proto (bu): Deleted.
3192 * tty/devascii/R.proto (bu): Deleted.
3193 * tty/tmac.tty: Add definition of \(bu.
3195 * eqn/main.c (do_file): Pass FILE as argument.
3196 (main): Automatically load eqnchar. New options -F and -n.
3197 Pass do_file an opened FILE.
3198 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3199 No need to include font.h.
3200 * groff.sh: Likewise. Don't need to use - for standard input.
3201 Prefix files with -- if first file starts with -.
3203 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3205 * troff/env.c (environment::possibly_break_line): Don't set line
3206 to 0 across call to output_line(). Don't call output_line() until
3207 after discarding nodes after break.
3209 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3211 * request.h (macro::empty): Declare it.
3212 * input.c (macro::empty): New method.
3213 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3216 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3218 * troff/env.c (environment::start_field): Decrement space_total
3219 when a space is frozen.
3221 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3223 * macros/tmac.an (R): Delete macro.
3225 * troff/input.c (get_copy, token::next): Support \# (like \" but
3226 newline is ignored).
3228 * troff/input.c (token::next): Fix error message in 'Y' case.
3230 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3232 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3235 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3237 * c++test.c: Include <osfcn.h>.
3239 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3242 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3244 * tbl/table.c (table::divide_span): Don't count column separation
3245 if expand was specified.
3247 * tbl/main.c (process_format): Don't ignore width specs in
3248 continued format. Give warning for changing equal widths or
3249 column separation in continued format.
3250 (process_data): Set column separation, minimum width, equal
3251 columns at end of table.
3253 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3255 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3256 node::add_discretionary_hyphen): Use soft_hyphen_char.
3257 (set_soft_hyphen_char): New function.
3258 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3260 * Makefile (c++tested): Give more helpful message if test fails.
3262 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3264 * troff/input.c (init_charset_table): Translate 0240 to
3265 an unbreakable space.
3267 * troff/token.h (token::hyphen_indicator): New function.
3268 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3270 * troff/input.c (translate): Allow translation to \%.
3271 * troff/node.c (node::add_char): Handle
3272 TRANSLATE_HYPHEN_INDICATOR.
3273 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3275 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3278 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3280 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3282 * groff.c (run_commands): If the last command gets a SIGPIPE send
3283 a SIGPIPE to all children than haven't yet terminated. When
3284 command terminates, set pid field to -1.
3286 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3288 * groff.c (main): Pass an appropriate -filename option to gxditview.
3290 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3292 * Makefile.bd (install): Remove existing program before copying.
3294 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3295 programs which have Unix counterparts to be installed with
3296 user-specified prefix.
3298 * troff/input.c (exit_troff): Don't check if exit_started.
3299 (exit_request): Don't call exit_troff if exit_started.
3301 * Makefile.bd (install.mm): Rename to install.dwbmm.
3303 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3305 * driver/input.c (do_file): Add missing break for '#' case.
3307 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3309 * troff/input.c (input_stack::clear): Clear past any boundaries and
3310 then add the boundaries back.
3312 * troff/input.c (exit_troff): Return immediately if already
3315 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3317 (pg*end-page): If the text has ended and there are no more
3318 footnotes or keeps, exit.
3320 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3322 * troff/input.c (init_charset_table): Make \(rq transparent by
3325 * macros/tmac.an: Define lq and rq strings.
3327 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3329 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3331 * troff/env.c (environment::final_break): New function.
3332 (environment::newline): Set prev_line_interrupted to 2 if
3334 * troff/env.h: Declare environment::final_break.
3335 * troff/input.c (exit_troff): Call environment::final_break()
3336 instead of environment::do_break().
3338 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3339 doesn't already exist.
3340 * macros/man.local: New file.
3341 * macros/tmac.an: Load man.local.
3342 * macros/man.ultrix: New file.
3344 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3346 * troff/input.c (exit_groff): Rename to...
3347 (exit_troff): New function.
3349 * troff/div.c (exit_started, done_end_macro,
3350 seen_last_page_ejector): New global variables.
3351 (began_page_in_end_macro): New static variable.
3352 (exit_flag): Deleted.
3353 (top_level_diversion::top_level_diversion): Initialize
3355 (top_level_diversion): More elaborate test for whether
3356 cleanup_and_exit() should be called.
3357 Set began_page_in_end_macro if the end macro isn't yet finished.
3358 * troff/div.h (top_level_diversion::last_page_count): New data
3360 (top_level_diversion::set_last_page): New function.
3361 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3362 * troff/env.c (do_break): Zero prev_line_interrupted.
3363 * troff/input.c (exit_flag): Delete declaration.
3364 (LAST_PAGE_EJECTOR): New magic cookie.
3365 (token::next): Handle LAST_PAGE_EJECTOR.
3366 (exit_groff): Set exit_started and done_end_macro instead of
3367 exit_flag. Call top_level_diversion::set_last_page. Push a
3368 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3369 another ejection after setting seen_last_page_ejector.
3371 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3373 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3375 * macros/tmac.e (TH): Make sure there's room for the initial
3378 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3379 Set FVS in points rather than units.
3381 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3383 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3384 position of empty slots.
3386 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3388 * ps/devps/S: Fix height and depth of parenrightex.
3389 * ps/devps/symbol.diff: Regenerate.
3391 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3393 * tmac.e (u): Do underlining as in -mgs.
3395 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3397 * tty/tty.c (tty_printer::end_page): If overstriking is
3398 suppressed, still turn overstruck horizontal and vertical lines
3401 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3404 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3406 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3408 * Version 1.05 released.
3410 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3412 * tty/tty.c: Instead of keeping an array of glyphs and then
3413 sorting it, keep a ordered linked list of glyphs for each line.
3415 * driver/driver.h: Include stddef.h.
3417 * tty/tty.c (compare_glyph):
3418 * refer/refer.c (rcompare):
3419 * troff/env.c (compare_ranges): Arguments of qsort comparison
3420 function should be const void *.
3422 * troff/number.c (parse_term):
3423 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3426 * refer/label.y (consider_authors): Don't access variables
3427 constructed under a condition outside that condition: put braces
3428 round for statement containing declaration; redeclare use of same
3431 * pic/pic.y (text_expr): Delete production that allows
3432 parenthesised text_expr.
3433 (expr): Allow a conditional_expr to appear in parentheses.
3434 (conditional_expr): Rename to any_expr.
3436 * mm: Install new version 1.01 from jh.
3438 * lib/font.c (font::get_width): Cache scaled widths.
3439 (font::font): Initialize widths_cache.
3440 (font::~font): Destroy widths_cache.
3441 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3443 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3445 * c++test.c, c++test.ref: New files.
3446 * Makefile: Check that the C++ compiler works.
3448 * ps/tmac.pspic (PSPIC): Do a break.
3450 * ps/tmac.ps: Move definition of PSPIC into...
3451 * ps/tmac.pspic: New file.
3452 (PSPIC): Draw box around picture, but make it invisible to grops.
3453 * ps/tmac.ps: Load tmac.pspic.
3454 * ps/Makefile: Install tmac.pspic.
3456 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3458 * lib/font.c (scale_round): If n is negative,
3459 subtract .5 before truncating floating point result.
3461 * lib/fontfile.c: Include <errno.h>.
3463 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3465 * driver/input.c (get_char): Inline. Don't update current_lineno.
3466 Change callers to up date current_lineno if necessary.
3467 Use get_char() instead of getc(current_file).
3469 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3471 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3473 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3475 * tty/tty.c (tmac.tty): Define \(rg as (R).
3477 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3479 * lib/lib.h: New define a_delete.
3480 * Use a_delete instead of delete when deleting an array of objects
3481 without destructors.
3483 * lib/lib.h: Rename adelete to ad_delete.
3484 * Change uses of adelete.
3486 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3488 * eqn/eqn.y: Include lib.h.
3490 * troff/node.c (grow_font_table): Delete old_font_table.
3492 * mm: Install new version from jh.
3494 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3496 * tbl/table.h (format_type): Make global instead of local to class
3497 entry_format. Prefix enumerators with FORMAT_.
3498 * tbl/table.c, tbl/main.c: Corresponding changes.
3499 * refer/token.h (token_type): Make global. Prefix enumerators
3501 * refer/token.[ch]: Corresponding changes.
3502 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3504 * troff/div.c (node::set_vertical_size): Don't name argument.
3506 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3508 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3509 * lib/lib.h: Define adelete accordingly.
3510 * pic/object.c (graphic_object::graphic_object):
3511 * tbl/main.c (format::~format):
3512 * tbl/table.c (table::~table):
3513 * refer/ref.c (reference::~reference, reference::merge,
3514 reference::insert_field, reference::delete_field): Use adelete.
3516 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3518 * tbl/table.h: Corresponding changes.
3520 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3521 Ensure total_angle is positive.
3523 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3525 * refer/ref.c (reference::merge, reference::insert_field,
3526 reference::delete_field): Avoid delete[0].
3528 * refer/token.c (init_special_chars): Move calls to cmupper
3529 outside calls to init_two_char_letter to work around bug in gcc
3532 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3534 * lib/new.c (operator new): Use __builtin_new for g++.
3536 * pic/object.c (graphic_object::~graphic_object): Don't use
3539 * pic/object.c (output::compute_scale): Initialize max_width and
3542 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3544 * troff/input.c (write_request): Call fflush.
3546 * troff/node.h (class composite_node): Move declaration to node.c
3547 * troff/input.c (charinfo_to_node): Rename to ...
3548 (charinfo_to_node_list): Return node list rather than composite
3550 * troff/node.c (make_composite_node): New function.
3551 (make_node, add_char): Call make_composite_node instead of
3553 (class composite_node): Add a tfont * member. Delete font_size
3555 (composite_node::composite_node, composite_node::copy,
3556 composite_node::size): Corresponding changes.
3557 (composite_node::tprint): Provide constant spacing, emboldening
3558 and track kerning as specified in tfont.
3559 (composite_node::width): Change width calculation accordingly.
3560 * troff/env.h (environment::composite): New member.
3561 (environment::is_composite, environment::set_composite): New
3563 * troff/env.c (environment::environment): Initialize composite.
3564 * troff/input.c (charinfo_to_node): Call
3565 environment::set_composite.
3566 * troff/node.c (make_composite_node, make_glyph_node): Use the
3567 plain version of the tfont if the environment is composite.
3569 * troff/node.c (font_info::get_space_width): Additional argument
3570 giving space_size. Handle constant space correctly. Scale by
3571 space_size unless constant spaced.
3572 (env_sentence_space_width): New function.
3573 * troff/node.h: Declare it.
3574 * troff/env.h (environment::get_space_size,
3575 environment::get_sentence_space_size,
3576 environment::get_narrow_space_width,
3577 environment::get_half_narrow_space_width): Make inline.
3578 (environment::get_space_width): Make inline. Just call
3580 * troff/env.c: Delete definitions for funtions made inline.
3581 (environment::space_newline, environment::space): Use
3582 env_sentence_space_width(). Don't scale by space_size.
3583 * troff/node.h: Move declarations of env*space_width() functions
3586 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3588 * macros/tmac.s (PS): Don't try to set negative indent.
3590 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3592 * pic/pic.y: Fix min function.
3594 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3596 * man/mdate.sh: Clear LANGUAGE.
3598 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3600 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3601 * pic/lex.c: New COMMAND keyword.
3602 * pic/pic.y (print_args, print_arg): New rules.
3603 (placeless_element): Use print_args for PRINT.
3604 New COMMAND element.
3606 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3608 * troff/input.c (terminal): Handle missing argument correctly.
3610 * pic/pic.y (text_expr): New rule.
3612 * pic/pic.y: Implement := operator.
3614 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3616 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3619 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3621 * ps/devps/dingbatsrmap: Include this in the distribution.
3623 * macros/tmac.doc: Replace with new version from 2nd Networking
3624 Release. Fix loading of doc-* files.
3625 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3626 * macros/tmac.doc.old: New file. Apply fixes that had been
3627 applied to old tmac.doc.
3628 * macros/tmac.andoc: Check that we're running under groff.
3629 * macros/Makefile: Rework.
3631 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3633 * tbl/table.h (format_type):
3634 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3635 typedef to make these types visible at file scope.
3636 * Makefile: Add NESTED_TYPES configuration option.
3638 * troff/div.c (mark): At the top level use the value of
3639 nl_reg_contents rather than the current vertical position.
3641 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3643 * tty/tty.c: Implement \D for horizontal or vertical lines.
3644 (tty_printer::set_char): Use vec_used+2 as serial number.
3645 Don't allow size of vector to exceed USHRT_MAX-2.
3646 Split off part into...
3647 (tty_printer::add_char): New function.
3648 (tty_printer::draw): New function.
3649 (compare_glyph): Handle equal serial numbers.
3650 (tty_printer::end_page): Handle overstruck characters from \D.
3651 (main, usage): Implement -d option.
3653 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3655 * tbl/main.c (process_format):
3656 * eqn/text.c (split_text):
3657 * troff/input.c (token::next): Use inner block for declarations
3658 with initializers in switch statement.
3660 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3662 * pic/common.c (common_output::dash_line): Cope with zero-length
3665 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3667 * Version 1.04 released.
3669 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3671 * macros/tmac.an (TH): Define a macro an-init to define variables
3672 based on command line arguments.
3673 (an-header): Call it.
3675 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3677 * Makefile (install.mm): Rename to install.dwbmm.
3679 * Makefile: Integrate mm.
3680 * mm: New directory.
3682 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3684 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3687 * pic/troff.c (troff_output::simple_spline,
3688 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3689 shadowing parameter.
3691 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3693 * lib/ptable.h: Add explicit casts when converting from unsigned
3696 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3697 * dvi/devdvi/Makefile: Install SA, SB.
3699 * refer/indxbib.c: Add declaration of mktemp.
3701 * refer/lookbib.c: Add declaration of isatty.
3703 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3705 * pic/lex.c (interpolate_macro_with_args): While collecting
3706 arguments, keep track of whether we're in a string.
3708 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3710 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3711 down with \v, so as to avoid problems with top of page trap
3712 setting no space mode.
3714 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3716 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3718 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3720 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3721 Improve error message.
3723 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3725 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3728 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3730 * groff.c (possible_command::execp): Always use _exit() after a
3733 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3734 NO_SYS_WAIT_H configuration options.
3735 * groff.c: Use these options. Use POSIX-style macros to extract
3736 fields from the status returned by wait().
3738 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3740 * tbl/table.c (table::compute_separation_factor): Allow the
3741 separation factor to drop to 0.
3743 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3745 * refer/search.c: Include <errno.h>.
3747 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3749 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3751 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3754 * pic/lex.c (input_stack::bol): Move definition out of class body.
3756 * pic/main.c: On MSDOS munge argv[0].
3758 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3760 * lib/ptable.c (hash_string): Use unsigned long rather than
3762 (next_ptable_size): Use unsigned rather than int. Give an error
3763 message if we've hit the largest table size.
3764 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3767 * pic/object.h (object_spec): Make flags unsigned long. Declare
3768 flags as const unisgned long rather than as enums.
3770 * pic/output.c: Deleted.
3772 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3774 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3775 Add additional argument.
3776 (line_entry::note_double_vrule_on_{left,right}): Set value of
3777 douvle_vrule_on_{right,left} flag according to argument.
3778 (simple_line_entry::simple_print,
3779 simple_line_entry::double_line_print): If adjacent to double vrule
3780 on a corner extend rather than shorten the rule by half the double
3783 * troff/number.c (parse_term): In checking for overflow, handle the
3784 case where the current horizontal position is negative.
3786 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3788 * pic/object.c (draw_arrow): Check for object having zero length.
3790 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3792 * eqn/main.c (do_file): Split off inline equation handling into...
3793 (inline_equation): New function. Search for starting delimiter
3795 (delim_search): New function. Don't recognize a delimiter that
3796 occurs in the name of an escape sequence, number register, string
3799 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3801 * eqn/delim.c (delim_box::compute_metrics): Don't call
3802 define_extensible_string if left is 0.
3803 (delim_box::output): Don't print the left delimiter if left is 0.
3804 (delim_box::debug_print): Check for left == 0 before calling printf.
3806 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3808 * troff/Makefile (majorminor.c): Include only digits in
3811 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3813 * refer/dirnamemax.c: new file.
3814 * refer/genlimits.c: Deleted.
3815 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3816 Don't check path length.
3817 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3818 * Makefile: Add PATHCONF_MISSING option.
3820 * refer/indxbib.c (get_cwd): New function.
3821 (main): Use get_cwd().
3822 * lib/getcwd.c: New file.
3823 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3825 * lib/Makefile: Compile getcwd.o.
3827 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3830 * refer/indxbib.c (main): Check success of mktemp.
3832 * lib/tmpfile.c: New file.
3833 * lib/Makefile: Add tmpfile.c.
3834 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3835 * ps/ps.h: Delete declaration of mktemp().
3836 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3837 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3838 * driver/driver.h: No need now to include errno.h.
3840 * everywhere: Set errno to 0 before calling fopen().
3842 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3843 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3844 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3846 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3848 * troff/env.h (translate_space_to_dummy): Declare it.
3849 * troff/env.c (environment::space_newline, environment::space):
3850 If translate_space_to_dummy is set then make the width of spaces 0.
3851 * troff/input.c (translate): If the second character of a
3852 translation is a space, translate to unbreakable space. If the
3853 first character is a space, set or clear translate_space_to_dummy
3854 according to whether the second character is \&. Weird!
3856 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3858 * groff.c (run_commands): Don't use non-zero exit code because a
3859 command gets SIGPIPE.
3861 * groff.c, groff.sh: Use -mXps with -TXps.
3863 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3864 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3865 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3866 (ps_printer::special): New specials invis and endinvis.
3867 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3868 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3869 (ps_printer::end_page): Check that invis_count == 0.
3870 (ps_printer::invis_count): New member.
3871 (ps_printer::ps_printer): Initialize invis_count to 0.
3873 * troff/env.c (environment::hyphenate_line): Hyphenation
3874 indicator at beginning of word inhibits splitting after -, \(em
3877 * pic/pic.y (element): Allow another element to follow } without
3878 any intervening separator.
3880 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3882 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3884 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3886 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3887 declaration of wait() in header files.
3888 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3890 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3892 * lib/lib.h: Declare return type of strerror as char *.
3894 * man/Makefile: Add g flag to sed substitutions.
3895 * Makefile (shgroff, bindist): Likewise.
3897 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3899 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3900 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3903 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
3905 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3908 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
3910 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3913 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
3915 * troff/input.c (define_number_reg): If currently undefined,
3916 don't define it if the argument is an invalid expression.
3918 * Makefile: Ignore return value of `if' commands without `else'
3921 * Makefile: Split up CPPDEFINES into a series of separate
3922 configuration options.
3924 * troff/input.c (init_registers): Use time_t instead of long
3925 unless LONG_FOR_TIME_T is defined. Use returned result rather
3926 than passing pointer.
3927 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3929 * lib/Makefile (fontpath.h): Use gendef.
3931 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
3933 * troff/input.c (input_iterator::shift): Delete argument name.
3934 * troff/node.c (suppress_output_file::really_begin_page,
3935 suppress_output_file::really_transparent_char, node::ascii_print,
3936 node::tprint): Delete names of unused arguments.
3938 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
3940 * refer/label.y (string): Pass $4 to command_error.
3942 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3944 * Version 1.03 released.
3946 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3948 * Makefile: Pass definition of SHELL in SUBFLAGS.
3951 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3952 ps/Makefile: Use gendef to construct header files that are
3953 constructed from the Makefile.
3955 * macros/Makefile: make all should build stripped version of tmac.e.
3957 * refer/Makefile (clean): Remove y.output.
3959 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3961 * ps/pfbtops.c (main): Add -v option which prints out a version
3963 * ps/Makefile (pfbtops): Link with libgroff.a.
3965 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3967 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3968 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3970 * refer/lkbib.c (main): Always terminate reference with blank
3972 * refer/lookbib.c (main): Likewise.
3974 * refer/linear.c (file_buffer::load): Check that the file is not a
3977 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3978 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3979 Delete second inclusion of <sys/param.h>.
3981 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3983 * troff/token.h (token::special): Deleted.
3985 * tbl/main.c (process_format): Rework so that opt->tab_char is
3986 recognized only when appropriate.
3988 * ps/Makefile (clean): Remove pfbtops.
3990 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3992 * lib/font.c (text_file::next): Don't return if we have got a
3995 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3997 * refer/refer.c (store_reference): Get hash code from old_table[i]
3998 when rehashing the table.
4000 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4002 * eqn/box.c (box::top_level): Save size and prev size using \R and
4003 restore it afterwards. Set the size to the size at the beginning
4005 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4006 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4008 * refer/Makefile (limits.h): Use ./genlimits.
4010 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4012 * refer/index.c: Delete declarations of stat() and fstat().
4014 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4016 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4018 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4020 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4022 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4024 * troff/input.c (token::get_char): Handle \e.
4026 * refer/linear.c: Delete declarations of fstat() and stat().
4028 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4030 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4031 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4033 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4035 * troff/input.c (do_define_macro): Improve error handling for end
4036 of file while defining macro.
4038 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4040 * eqn/box.h: Fix declaration of set_gsize.
4041 * eqn/box.c (set_gsize): Make argument const char *.
4042 (gsize): Declare as char *.
4043 * eqn/main.c (main): Don't convert gsize to int.
4044 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4046 * Version 1.02 released.
4048 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4050 * macros/tmac.andoc: New file.
4051 * macros/Makefile: Install tmac.andoc.
4053 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4054 operator new and delete on OP_DELETE_BROKEN not being defined.
4055 * Makefile: Mention OP_DELETE_BROKEN.
4057 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4059 * Makefile (bindist): Pass SUBFLAGS.
4061 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4063 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4065 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4068 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4070 * ps/ps.h, ps/psrm.c: Make comment_table and
4071 header_comment_table local to resource_manager::process_file.
4073 * groff.sh: With -TXps pass -printCommand option to gxditview.
4075 * groff.c (possible_command::print): Implement using
4076 append_arg_to_string.
4078 * xditview: Merge in new implementation with own ChangeLog.
4080 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4082 * groff.c (main): Implement PRINT_OPTION.
4083 (append_arg_to_string): New command.
4084 (device_table): Set PRINT_OPTION flag for Xps.
4086 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4088 * troff/groff.h: Rename to troff.h.
4090 * pic/lex.c (lookup_keyword, docmp): New functions.
4091 (get_token): Use new lookup_keyword.
4092 Don't include key.h.
4093 * pic/key.[ch], pic/pic.gperf: Deleted.
4094 * pic/Makefile: Remove gperf stuff.
4096 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4098 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4100 * troff/Makefile, troff/node.c: Move definition of
4101 STORE_WIDTH into node.c.
4103 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4105 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4107 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4108 dvi/devdvi/texb.map: Add lq and rq.
4109 dvi/devdvi: Regenerate fonts.
4110 * ps/devps/textmap: Add lq and rq.
4111 * ps/devps: Regenerate fonts.
4112 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4113 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4115 * pic/object.c (position_rectangle): When checking radius
4116 cope with possiblity that width or height is negative.
4117 (box_object::box_object): Have separate xrad and yrad with
4118 signs matching signs of dim components.
4119 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4120 (box_object::print): With rounded boxes use absolute values
4121 for dim and rad arguments.
4123 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4126 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4128 * various files: Add explicit destructors to keep Saber CC +d
4131 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4133 * eqn/box.c (box::top_level): Restore fonts correctly after
4134 font changes in line containing inline equation. Also
4135 restore previous font as well as current font.
4136 * eqn/pbox.h: Define necessary string and register names.
4138 * troff/input.c (token::next): Case 'R' calls do_register.
4139 (do_register): New function.
4141 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4143 * groff.c, groff.sh: Support Xps device. Allow each device
4144 to have a pseudo_name and a real_name.
4146 * groff.c (run_commands): Don't print `Broken pipe' messages.
4148 * ps/pfbtops.c: New file.
4149 * ps/Makefile: Add pfbtops.
4151 * troff/number.c (parse_term): Improved error message.
4153 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4155 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4157 * Makefile: Integrate refer.
4158 * refer: New directory.
4159 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4160 man/lkbib.man: New files.
4161 * man/Makefile: Support refer man pages.
4163 * lib/lib.h: Declare is_prime.
4164 * lib/prime.c: New file.
4166 * troff/input.c (macro_source): New function.
4167 (init_input_requests): Bind "mso" to macro_source.
4169 * troff/env.c (environment::possibly_break_line): Maintain
4170 pointer to pointer to node to be split in ndp so as to avoid
4171 using address of freed node.
4173 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4174 pointer to first node to be hyphenated in startp so as to
4175 avoid using address of freed node.
4177 * troff/env.c (class trie, class hyphen_trie): Make the
4178 elements of the trie be of type char not unsigned char.
4179 Declare arguments to be const char* instead of unsigned char *.
4181 * troff/env.c (hyphenate): Initialize hbuf[0].
4183 * troff/input.c (set_string): Declare p to be char * and cast
4184 *p to unsigned char when necessary.
4186 * troff/input.c (do_define_macro): Declare s to be const
4187 char*. Cast element to unisgned char when necessary, Declare
4188 d to be an int. Handle EOF better.
4190 * troff/Makefile, troff/input.c: Different scheme for passing
4191 definitions of MACROPATH, HYPHENFILE and DEVICE.
4193 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4195 * tty/devascii/R.proto: Delete entry for em.
4196 * tty/devlatin1/R.proto: Likewise.
4198 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4200 * troff/input.c (translate): Stop when we get a space. Treat eof
4203 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4205 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4207 * tbl/main.c (process_format): A font name following a `f'
4208 modifier that starts with a digit can be only one character long.
4209 Also deal with EOF on the second character of the font name.
4211 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4213 * troff/input.c (token::next): Turn \~ into an
4214 unbreakable_space_node.
4215 * troff/node.c (unbreakable_space_node): New class.
4216 * troff/node.h: Declare it.
4218 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4220 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4221 it's >= 0, before outputting it as a single byte.
4223 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4225 * lib/font.c: Make font_char_metric::code an int.
4226 (font::get_code): Change return type to int.
4227 (font::load): Allow code to be arbitrary integer.
4228 * lib/font.h (font::get_code): Change return type to int.
4229 (font::number_to_index): Change argument type to int.
4230 * troff/input.c (token::next): In case 'N', allow any value.
4231 Store value in token::val.
4232 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4233 (token::get_char, token::add_to_node_list, token::process): Get
4235 (charinfo::set_number): Change argument to int.
4236 (charinfo::get_number): Require that NUMBERED flag be set.
4237 (get_charinfo_by_number): Store numbered characters not between 0
4238 and 255 in a dictionary.
4239 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4241 (charinfo::number): Change type to int.
4242 (charinfo::set_number): Change type of set_number to int.
4243 * troff/node.c (troff_output_file::put_char_width,
4244 troff_output_file::put_char): Test whether character is numbered
4245 using charinfo::numbered().
4246 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4248 * lib/nametoindex.c: New implementation to cope with arbitrary
4251 * troff/input.c (token::operator==): Test val for
4252 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4255 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4256 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4258 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4260 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4263 * all Makefiles: rm targets of cp and >.
4265 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4268 * eqn/lex.c (def_table): Add dollar.
4270 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4272 * troff/input.c (do_width): Push back newline before closing delim
4275 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4277 * groff.c (possible_command::prepend_arg): New function.
4278 (main): Prepend device -m option.
4279 * groff.sh: Put device -m options before command-line options.
4281 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4283 * macros/tmac.an (IP): Quote argument to TP.
4285 * ps/ps.c (main): New option -b, which sets...
4286 (broken_flags): New variable.
4287 (ps_printer::~ps_printer): Incorporate the setup section in the
4288 prolog if (broken_flags & NO_SETUP_SECTION).
4289 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4290 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4291 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4292 ps_printer::print_needed_font_comment,
4293 ps_printer::print_supplied_font_comment,
4294 ps_printer::print_include_font_comments,
4295 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4296 ps_printer::read_download_file, read_document_fonts, add_font,
4297 skip_line, parse_fonts_arg, document_font::document_font,
4298 document_font::~document_font, document_font::download,
4299 ps_output::include_file): Deleted.
4300 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4301 rather than %!PS-Adobe-2.0. Make calls to
4302 resource_manager::need_font for each font that we used. Replace
4303 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4304 print_supplied_font_comment, print_needed_font_comment by call to
4305 resource_manager::print_header_comments. Output %%Orientation
4306 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4307 Don't output the prolog directly. Instead call
4308 resource_manager::output_prolog. Only define #copies when ncopies
4309 > 1. Delete calls to print_include_font_comments and
4310 download_fonts. Add call to resource_manager::document_setup.
4311 (ps_printer::do_file): Call resource_manager::import_file instead
4312 of including it ourselves.
4313 (ps_printer::do_import): Likewise. Also don't call
4314 merge_import_fonts. Push userdict on the dictionary stack before
4315 and pop it afterwards.
4316 Move declaration of ps_output into ps.h.
4317 * ps/psrm.c: New file implementing resource_manager class.
4318 * ps/ps.h: New file declaring ps_output and resource_manager
4320 * ps/devps/zapfdr.ps:
4321 * ps/devps/symbolsl.ps:
4322 * ps/devps/prologue: Use 3.0 conventions.
4323 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4324 Add default definition of BROKEN_SPOOLER_FLAGS.
4325 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4326 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4328 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4330 * etc/grog.pl: New file.
4331 * Makefile (GROG): New variable.
4332 Add GROG to SUBFLAGS.
4333 * etc/Makefile (GROG): New variable.
4334 (install.nobin): Install $(GROG) rather than grog.sh.
4336 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4338 * eqn/special.c (special_box::compute_metrics): Make the input and
4339 output strings the same. Get the new height and depth from the
4340 predefined height and depth registers. Also make subscript kern
4342 (special_box::compute_subscript_kern, special_box::compute_skew):
4345 * eqn/box.c (pointer_box::compute_skew,
4346 simple_box::compute_metrics, box::top_level)
4347 * eqn/text.c (prime_box::compute_metrics,
4348 prime_box::comput_subscript_kern)
4349 * eqn/limit.c (limit_box::compute_metrics):
4350 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4351 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4352 negative numbers in `nr' requests with a leading 0.
4354 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4356 * eqn/special.c: New file.
4357 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4358 Add new rule for simple.
4359 * eqn/lex.c (token_table): Add SPECIAL.
4360 * eqn/box.h: Declare make_special_box.
4361 * eqn/Makefile: Add special.[co].
4363 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4365 * ps/devps/prologue: Possibly set packing to true while defining.
4366 Create grops dictionary here. Initialize local variables before
4367 defining procedures.
4368 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4369 the dictionary stack. Set strokeadjust and overprint to false if
4370 the relevant operators are defined.
4371 (PEND): New procedure.
4372 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4373 prologue. Do everything else in the setup section.
4374 (ps_printer::do_import): Just call PBEGIN and PEND around the
4375 picture. Also push userdict before, and pop it afterwards.
4377 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4379 * troff/node.c (bracket_node::tprint): Brackets were being printed
4382 * macros/tmac.an (SH, SS): Set fill mode.
4384 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4386 * troff/div.c (top_level_diversion::begin_page): Set
4387 high_water_mark to 0.
4389 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4391 * man/mdate.sh: New file.
4392 * man/mdate.c: Deleted.
4393 * man/Makefile: Use mdate.sh instead of mdate.
4396 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4398 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4400 * man/mdate.c: New file.
4401 * man/*.man: Replace modification date by @MDATE@.
4402 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4403 (mdate): New target.
4405 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4406 Remove illegal input characters.
4408 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4410 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4412 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4414 * troff/div.c (begin_page): Change behaviour when
4415 !first_page_begun and !break_flag.
4417 * troff/input.c (do_name_test): Return 0 if argument is empty.
4419 * troff/input.c (read_long_escape_name): Require closing ] to be
4420 at same input level as opening [.
4422 * troff/input.c (read_increment_and_escape_name): New function.
4423 (get_copy, process_input_stack): Use this for \n.
4425 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4427 * troff/div.c (top_level_diversion::begin_page): Ignore the
4428 current value of page_number if !first_page_begun.
4430 * groff.c (main): Fix declaration of buf.
4432 * troff/input.c (do_name_test): New function.
4433 (token::next): Implement \A.
4434 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4435 (token::description, token::add_to_node_list, token::process):
4436 Handle TOKEN_ESCAPE.
4437 * troff/token.h: New token TOKEN_ESCAPE.
4439 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4441 * pic/main.c (do_picture): Allow space before and after filename
4442 following `<'. Check that the filename is not empty.
4444 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4446 * Version 1.01 released.
4448 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4450 * dvi/tmac.dvi: ftr HR to H.
4452 * macros/tmac.e: Round up computation of $r.
4454 * xditview/tmac.X: Don't give up completely in compatibility mode.
4455 Use \n(.s instead of \n[.s].
4457 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4458 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4459 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4460 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4461 short names in the char definitions.
4463 * ps/tmac.ps: Don't give up completely in compatibility mode.
4464 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4465 quote in front of \n(.s. Add u to factors inside \s[...].
4467 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4469 * tty/tmac.tty: Call the nroff request.
4471 * macros/tmac.e ((x, )x): Better definitions that work properly
4473 (@0, @1): Helper macros for (x.
4475 * macros/tmac.e ($s, hl): Use \l rather than \D.
4477 * tty/tmac.tty: Make it work better in compatibility mode.
4478 (pchar): Rename to tty-char.
4480 * macros/tmac.e (@E): New macro.
4481 (r, i, b, rb, bi): Use @E.
4483 * macros/tmac.e (@F): Don't use (;...) syntax.
4485 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4486 it was modified for groff.
4488 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4490 * macros/tmac.e (<., .>): Removed.
4491 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4493 * macros/tmac.e: Remove check that groff is being used.
4495 * macros/tmac.e (@C): Change families only if using groff; turn
4496 compatibility mode off while changing familes. Save compatibility
4497 mode before changing families and restore it afterwards.
4499 * macros/tmac.e (@h): Remove test for offset + line length.
4501 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4502 (lo, th, ac): Define to call @S instead of using als.
4504 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4505 the ratio of the vertical spacing to the point size in units
4506 expressed as a percentage. Use these instead of $10r and $10R,
4507 Delete $10r and $10R.
4509 * lib/font.c (font::load): In default computation of space_width,
4510 divide by sizescale. Use scale_round.
4512 * macros/tmac.an (TP): Don't call `nf'.
4513 (an-do-tag): Don't call `fi'.
4515 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4517 * troff/input.c (process_input_stack): Handle the case where
4518 spaces at the beginning of an input line are followed by a
4521 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4523 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4524 * groff.sh: Use pic -x with the dvi device.
4526 * dvi/devdvi/FontMakefile (H): Don't use -s.
4528 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4529 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4530 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4533 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4535 * ps/psfig.diff: New file.
4536 * ps/tmac.psfig: New file.
4538 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4540 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4541 (]-): Don't call ref*do-tl.
4543 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4545 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4546 (fn@do-FS): Rename to fn*do-FS.
4548 * troff/input.c (transparent_translate): New function.
4549 (process_input_stack): Apply transparent_translate before calling
4550 diversion::transparent_output(unsigned char).
4552 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4554 * troff/input.c (do_define_macro): Define the macro before calling
4557 * xditview/Makefile: Add DEVICES variable. Change install target
4560 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4562 * groff.c (run_commands): Handle the possibility that there are
4563 child processes other than those forked by us.
4565 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4567 * lib/string.c (string::append): New function.
4568 * lib/stringclass.h: Declare it.
4570 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4572 * eqn/main.c (main): New option -N which sets
4573 no_newline_in_delim_flag.
4574 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4576 * groff.c (main): Pass -N on to eqn.
4577 (help, synopsis): Mention -N.
4578 * groff.sh: Implement -N.
4580 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4582 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4583 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4584 (XP): Allow as initializer.
4586 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4588 * troff/env.c (environment::wrap_up_field): If field_spaces are
4589 non-zero and we have a current_tab, subtract padding from
4590 tab_distance. If this makes tab_distance <= 0, use the next tab
4591 stop instead. If there isn't any next tab or it's a left tab,
4592 wrap up the current tab.
4593 (environment::start_field): Initialize tab_precedes_field.
4594 (environment::wrap_up_tab): If there's a current field, update
4595 pre_field_width, field_distance and tab_precedes_field.
4596 * troff/env.h (environment::tab_precedes_field): New member.
4598 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4600 * ps/ps.c (ps_printer::do_file): New function.
4601 (ps_printer::special): Bind to `file' special.
4602 (ps_printer::do_exec): Set ndefined_styles to 0.
4604 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4606 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4607 Avoid stripping first character from the start of unrecognized
4608 escapes. Use lex_error instead of error to report errors.
4609 * eqn/lex.c (get_token): Rework handling of escapes.
4610 (lex_error): Move declaration into...
4613 * xditview/xditview.c (main): Make -page option work.
4615 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4617 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4619 * macros/tmac.s (B2): Correct size of box.
4621 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4623 * macros/tmac.s (B2): Postpone drawing the box until in the
4624 top-level diversion.
4626 * tty/tmac.tty: Add font translations for C, CR, CW.
4628 * groff.c (synopsis, help): Document -i.
4629 * groff.sh: Implement -i.
4631 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4632 Simplify the construction of SN.
4634 * troff/number.c (parse_term): Give `|' a higher precedence.
4635 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4638 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4640 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4642 * lib/string.c (string::move): New function.
4643 * lib/stringclass.h: Declare it.
4645 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4647 * troff/env.c (distribute_space): Add optional argument
4649 (environment::wrap_up_field): Call distribute_space with
4650 `force_forward' argument of 1.
4652 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4654 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4655 Inline it. Move reallocation into...
4656 (string::grow1): New function.
4657 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4658 dependencies to include library header files.
4659 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4661 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4663 * macros/tmac.s (@NH): Use the same number registers than -ms does
4664 for the heading level counters. Use the same string that -ms does
4665 for the number for this heading.
4667 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4669 * lib/new.c (operator new): Cast result of malloc to char *.
4671 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4674 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4676 * groff.c (main): Support -i.
4678 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4680 * pic/pic.h: Include <osfcn.h>.
4682 * ps/ps.c: Add declaration of mktemp.
4684 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4685 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4686 argument as union wait *.
4687 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4688 argument to union wait *.
4690 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4692 * tty/tmac.tty: Add definition of \(co.
4694 * pic/object.c (make_arc): Only increase radius when radius
4695 strictly less than d.
4696 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4699 * troff/env.c (environment::environment(symbol),
4700 environment::environment(const environment *)): Initialize
4703 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4705 * tbl/main.c (main): Add exit(0).
4707 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4709 * pic/main.c (main):
4710 * eqn/main.c (main):
4711 * tbl/main.c (main):
4712 * etc/soelim.c (main):
4713 * driver/printer.c (printer::~printer):
4714 * troff/node.c (real_output_file::~real_output_file,
4715 real_output_file::flush): Check for errors on stdout.
4717 * most files: Add 1991 to copyright notice.
4719 * macros/tmac.s: Don't test \n(.x and \n(.y.
4721 * troff/input.c (token::next): Rename `escape_char' label to
4722 `handle_escape_char' and `normal_char' label to
4723 `handle_normal_char'.
4725 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4727 * groff.c (main, synopsis, help): Support -a option.
4728 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4729 to trflags while parsing options.
4731 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4733 * troff/number.c (parse_term): With `m', `M' and `n' scale
4734 indicators, convert scale factor to hunits before scaling.
4736 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4738 * lib/font.c (scale_round): Better test for overflow when n is
4741 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4743 * tbl/main.c (process_format): Add second argument of type
4744 options*. Change callers. Allow opt->tab_char as well as '\t'
4745 between format items.
4747 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4749 * macros/tmac.an (PD): With no arguments, make sure register PD is
4751 (TH): Call PD with no argument, instead of setting register PD
4754 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4756 * Version 1.00 released.
4758 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4760 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4762 * dvi/devdvi/DESC: Mount CW instead of CR.
4764 * dvi/tmac.dvi: Add definition of \(tm.
4766 * dvi/devdvi/texsy.map: Add lh, and rh.
4767 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4768 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4770 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4771 * dvi/devdvi/Makefile: Install H.
4772 * dvi/devdvi/H: New file.
4774 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4776 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4779 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4781 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4783 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4785 * macros/tmac.s (@EN): Handle the case where the equation is empty
4786 but the label is not.
4788 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4790 * troff/groff.h: New warning category WARN_SPACE.
4791 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4792 WARN_SPACE to warning_table.
4793 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4794 is longer than two characters and is not defined, but the first
4795 two characters do make a defined name.
4797 * PROBLEMS: New file.
4799 * CHANGES: New file.
4800 * README-0.6, README-1.00: Deleted.
4802 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4803 * xditview/devX75/Makefile: Make devX75-12.
4804 * xditview/devX100/Makefile: Make devX100-12.
4806 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4807 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4809 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4811 * README-0.7: Rename to README-1.00.
4813 * macros/tmac.pic: New file.
4814 * macros/Makefile (install.nobin): Install tmac.pic.
4816 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4818 * troff/env.c (hyphen_word): Correct the test for whether the
4819 token is a hyphen. Reset npos to 0.
4821 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4823 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4825 * macros/tmac.s (ds*common-end): Call par*reset.
4827 (par@reset-indent): Deleted.
4829 * macros/tmac.s (@IP): Divert the label.
4831 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4833 * xditview/draw.c (setGC): Use a line width of .1m rather than
4834 .04m by default; round rather than truncate value.
4836 * tbl/table.c (class empty_entry): New class.
4837 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4838 (table::add_entry): Represent empty entries by objects of type
4840 (table_entry::line_type): Return -1.
4841 (table::determine_row_type): Ignore entries with line_type 0.
4842 Treat type -1 as non-lines.
4844 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4846 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4847 macros/tmac.s: Rename \(-d to \(Sd.
4849 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4851 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4852 * xditview/libXdvi/DviChar.c: Likewise.
4853 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4855 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4857 * troff/div.c (top_level_diversion::begin_page): Call
4858 init_output() if the_output is 0.
4860 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4862 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4864 (get_copy): Turn \E into ESCAPE_E.
4865 (token::process, asciify): Handle ESCAPE_E.
4867 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4869 (DS): Implement `.DS R'.
4871 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4873 * macros/tmac.s (FS): New macro.
4875 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4877 * macros/tmac.s (cov*tl-init): Remove after first execution
4878 instead of aliasing to @nop. Call top of page macro explicitly
4879 instead of setting trap; call @init first. Set pg@top as top of
4881 (cov*auto-init): Deleted. Set cov*tl-init instead of
4882 cov*auto-init as top of page trap.
4883 (TL, LP): Do a break instead of calling cov*tl-init.
4884 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4885 @FE; in this case also give a warning and always start another
4886 page. No need to set pg@top here.
4887 (cov*tl-init): Rename to cov*first-page-init.
4889 * macros/tmac.s (RP): Do `.pn 0'.
4890 (cov*tl-init): With RP format don't do `.pn 0'.
4892 * macros/tmac.s (pg@cs-top): Set no space mode.
4894 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4895 (cov*ab-init): Alias TL, AU and AI to these.
4897 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4899 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4900 (@EN): Do nothing unless \n[dl] is > 0.
4902 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4904 * pic/object.c (ellipse_object::radius): New function.
4906 * VERSION: Change version to 0.7.
4908 * tbl/table.c (block_entry::do_divert): Declare return type as
4910 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4912 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
4914 * troff/column.c: New file.
4915 * troff/Makefile: Corresponding changes.
4917 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
4920 * troff/div.c (top_level_diversion::space): If the space causes
4921 the first-page transition and springs a trap, truncate the space
4924 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
4926 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4929 * pic/troff.c (troff_output::line_thickness,
4930 troff_output::set_fill): Do a horizontal motion to compensate for
4931 the width of the \D escape sequence.
4933 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
4935 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4938 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
4941 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4942 Supply empty definition.
4943 (text_entry::simple_print, simple_text_entry::simple_print):
4944 Delete declarations.
4945 (table::add_entry): Represent empty entries by objects of type
4948 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4950 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4952 * tbl/table.c (left_text_entry::add_tab): New function.
4954 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4957 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4959 * troff/env.c (environment::start_field): Give an error message if
4960 there is no next tab.
4962 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4964 * troff/env.c (hyphenate): Skip initial elements with zero
4967 * macros/tmac.s (par@init): Keep VS in points rather than units.
4969 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4971 * pic/main.c (main): Implement `-c' option.
4972 * pic/output.h: Declare make_tpic_output().
4973 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4975 (tpic_output): New class.
4976 (tpic_output::tpic_output, tpic_output::set_pen_size,
4977 tpic_output::command, make_tpic_output): New functions.
4979 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4981 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4982 if they're not already defined.
4983 * tbl/table.c (init_output): Don't test \n(.g.
4985 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4986 `d', `r' and `c' conditions even in compatibility mode.
4988 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4990 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4993 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4995 * troff/env.h (environment::prev_line_interrupted): New member.
4996 (environment::get_prev_line_interrupted): New function.
4997 * troff/env.c (environment::newline): Set prev_line_interrupted.
4998 (environment::environment(const environment *),
4999 environment::environment(symbol)): Initialize
5000 prev_line_interrupted.
5001 * troff/input.c (process_input_stack): Don't give special
5002 treatment to space and newline at the beginning of the line if the
5003 previous line was interrupted.
5005 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5007 * eqn/eqn.y: Disallow PRIME by itself.
5008 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5010 (def_table): Remove definition of '. Define prime to be `.
5012 * eqn/eqn.y: Split off part of rule `script' into a new rule
5015 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5017 * macros/tmac.s ({, }): New string aliases.
5019 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5021 * README-0.7: New file.
5023 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5025 * macros/tmac.s: New file.
5026 * man/groff_ms.man: New file.
5027 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5028 * Makefile.bd: Similarily.
5029 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5030 definition of TMAC_S.
5031 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5032 * macros/TODO: New file.
5034 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5036 * troff/env.c (right_justify): New function.
5037 (init_env_requests): Bind this to request "rj".
5038 (center_lines): Set right_justify_lines to 0. If we get a bad
5039 integer, center 1 line.
5040 (environment::environment(symbol), environment::environment(const
5041 environment *)): Initialize right_justify_lines.
5042 (environment::get_right_justify_lines): New function.
5043 (init_env_requests): Bind this to number_register ".rj".
5045 * troff/env.c (environment::choose_breakpoint): Implement
5046 hyphenation_margin and hyphenation_space.
5047 (environment::get_hyphenation_space,
5048 environment::get_hyphenation_margin): New functions.
5049 (init_env_requests): Bind these to .hys and .hym.
5050 (hyphenation_space_request, hyphenation_margin_request): New
5052 (init_env_requests): Bind these to hys and hym.
5053 (environment::environment(symbol), environment::environment(const
5054 environment *)): Initialize hyphenation_margin and
5056 * troff/env.h: Corresponding changes to class environment.
5058 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5060 * troff/div.c (blank_line): Always do a break.
5062 * eqn/box.c (do_text): Turn off escapes while appending text to
5065 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5067 * troff/input.c (while_break_request, while_continue_request): New
5069 (init_input_requests): Bind these to "break" and "continue".
5070 (while_depth, while_break_flag): New variables.
5071 (while_request): Update while_depth. Break out of loop if
5072 while_break_flag is set.
5074 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5076 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5079 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5081 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5083 * stringify: New file.
5084 * Makefile (groff.o): Use stringify.
5086 * xditview/tmac.X: Remove definition of \(rn.
5087 * xditview/libXdvi/DviChar.c: Remove radicalex from
5090 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5092 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5093 (alphabetic_block_entry::alphabetic_block_entry,
5094 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5096 (block_entry::divert): Split off body into ...
5097 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5098 from the line length; also update the span width to dl+2n, and the
5099 alphabetic span width to dl.
5101 * driver/input.c (do_file): While reading argument to D command,
5102 when expanding buffer, multiply szp by sizeof(int) rather than 2
5103 in the argument to memcpy.
5105 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5106 width of alphabetic columns.
5108 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5110 * troff/node.c (lookup_family): Supply second argument to lookup.
5112 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5113 search, return immediately if v is 0.
5115 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5116 (troff_output::start_picture): Set this reg.
5117 (troff_output::end_picture): Remove this reg
5118 * eqn/box.c (box::extra_space): Don't produce `\x's if
5119 EQN_NO_EXTRA_SPACE_REG is defined.
5121 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5122 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5125 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5127 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5130 * troff/div.c (top_level_diversion::top_level_diversion):
5131 Initialize page_number to 0.
5133 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5135 * groff/troff (environment::environment(const environment *)):
5136 Initialize name to e->name, rather than "anonymous".
5138 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5140 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5141 requested_page. Split middle part into ...
5142 (FindPage): New function.
5143 (SetValues): If we don't yet know the last page, and the requested
5144 page is greater than the current page, call FindPage.
5145 Update the font_map_string before doing this.
5147 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5148 Translate \(lh and \(rh into left and right double arrows.
5150 * troff/node.c (class hyphen_inhibitor_node): New class.
5151 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5152 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5153 hyphen_inhibitor_node::type,
5154 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5155 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5156 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5159 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5161 * troff/node.h (dummy_node::get_hyphenation_type,
5162 transparent_dummy_node::get_hyphenation_type): Declare them.
5163 * troff/node.c: (dummy_node::get_hyphenation_type,
5164 transparent_dummy_node::get_hyphenation_type): New functions.
5166 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5168 * xditview/libXdvi/draw.c: If M_PI not defined after including
5169 math.h, then define it.
5171 * xditview/Makefile: Add definition of AR. Pass it to the submake
5173 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5175 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5177 * troff/dictionary.h (object_dictionary::alias): Declare return
5179 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5180 if the old name was defined.
5181 * troff/input.c (alias_macro): Give a warning if the old name was
5183 * troff/reg.c (alias_reg): Likewise.
5185 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5187 * troff/input.c (token::next): Delete implementation of \R.
5189 * macros/Makefile: Strip comments from tmac.e while installing it.
5191 * troff/input.c: New variable `nroff_mode'.
5192 (troff_request, nroff_request): New functions.
5193 (init_input_requests): Bind `troff' and `nroff' to troff_request
5195 (do_if_request): Compute results of t and n conditions from
5198 * text/text.c (split_text): Fix typo in >=.
5200 * eqn/lex.c: Add definition of `==' to def_table.
5202 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5204 * pic/tex.c (tex_output::start_picture): Change the definitions of
5205 \graph and \graphtemp so that they work properly with Plain TeX.
5207 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5208 argument to `ar' is not less than the first.
5210 * pic/pic.y: Allow a comma between elements of the variable list
5211 in the argument to `reset'.
5213 * pic/object.c (arc_object::arc_object): Fix computation of
5216 * eqn/main.c (main): Add exit(0).
5218 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5220 * troff/div.c (begin_page): Test no_space_mode after doing the
5221 break, but still push the page ejector cookie before doing the
5222 break. Also set the next page number after doing the break.
5224 * xditview/xditview.c (NewFile): Don't set the title and icon name
5225 if this is the first file and its name is `-'.
5226 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5227 the X75 and X100 devices.
5228 (main): If a device has the XT_OPTION flag set and there's exactly
5229 one file argument, pass the driver -xrm and -title options to set
5230 the icon name and window title to the name of the file.
5232 * troff/env.c (environment_switch): If there was an argument but
5233 it wasn't a valid number or name, then pop an environment but
5234 don't give an error message on underflow.
5236 * troff/number.c (start_number): Correct spelling in error message.
5238 * troff/input.c (token::delimiter): Don't print an error message
5241 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5242 ParseDrawFunction if dw->display_enable is true.
5244 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5246 * pic/pic.y: Parse text positioning like normal attributes, so as
5247 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5248 positioning attribute.
5250 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5252 * tbl/main.c (process_data): When in state START while reading a
5253 text block, don't change to state MIDDLE if c is a newline.
5255 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5257 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5258 so as to avoid shadowing parameter.
5260 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5262 * tbl/table.c (trim_space): Deleted.
5263 (table::add_entry): Don't call trim_space.
5265 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5267 * VERSION: Change version to 0.6.
5269 * troff/number.c (parse_expr): Make == work.
5271 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5273 * man/grog.man: New file.
5274 * man/Makefile: Add grog.n to MAN1PAGES.
5275 * etc/grog.sh: New file.
5276 * etc/Makefile: Install grog.sh as grog.
5278 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5280 * troff/input.c (token::next): Implement \E.
5282 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5284 * xditview/tmac.X: Change font translations to match tmac.ps.
5286 * troff/input.c (non_empty_name_warning): Don't give a warning if
5287 `\{' terminates the name.
5289 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5291 * ps/devps/symbol.diff: New file.
5292 * ps/devps/FontMakefile: Mention symbol.diff.
5294 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5296 * troff/node.c (font_position): Use get_long_name to read the
5299 * troff/env.c (environment_switch): If we get a number that's < 0
5300 or >= NENVIRONMENTS, treat it like a name.
5301 Change NENVIRONMENTS to 10.
5303 * troff/groff.h: Remove definition of FONTS_MAX.
5304 * troff/node.h (class font_family): Make map a pointer instead of
5305 an array. Add a map_size member. Make it a class. Make nm const
5306 and public. Make invalidate_fontno a friend.
5307 * troff/node.c: Define font_table_size. Make font_info a pointer
5308 rather than an array.
5309 (class troff_output_file): Allocate font_position dynamically. Add
5310 nfont_positions member.
5311 (troff_output_file::set_font): Grow font_position if necessary.
5312 (troff_output_file::~troff_output_file): Delete font_position.
5313 (troff_output_file::troff_output_file): Allocate font_position.
5314 (grow_font_table): New function.
5315 (troff_output_file::really_begin_page,
5316 troff_output_file:really_copy_page): Use nfont_positions rather
5318 (mount_font_no_translate, mount_style): Call grow_font_table if
5320 (font_family::font_family): Allocate map.
5321 (font_family::make_definite): Grow map if necessary. Use
5322 font_table_size instead of FONTS_MAX.
5323 (font_family::~font_family): New function.
5324 (invalidate_fontno): Use font_family::map_size.
5325 (get_fontno, env_space_width, env_half_narrow_space_width,
5326 env_narrow_space_width, symbol_fotno, is_good_fontno,
5327 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5329 (next_available_font_position): Never return 0.
5331 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5333 * ps/tmac.ps: Add font translations for compatibility with dpost.
5335 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5337 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5338 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5339 Move definitions baseline_sep, shift_down, column_sep,
5340 matrix_side_sep into...
5341 * eqn/box.c: Add them to param_table.
5342 * eqn/pbox.h: Add declarations to pbox.h.
5344 * troff/input.c (set_string): Cast value to unsigned char *.
5346 * troff/token.h (process_input_stack): Declare it static before
5347 declaring it a friend.
5349 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5351 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5353 * dvi/devdvi/EX: Regenerate.
5355 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5358 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5360 * eqn/lex.c: In defaults_table, make definition of `dot' call
5361 `dot_def'. Don't explicitly make it roman. Similarily for other
5364 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5366 (for_input::get, for_input::peek): Use this.
5367 (do_for): Add by_is_multiplicative argument.
5368 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5369 Change semantic value of optional_by to be a double plus a flag
5370 saying whethet the by clause is multiplicative.
5372 * eqn/lex.c (get_delimited_text): Remember location of start of
5373 definition. Improve error handling when EOF is encountered.
5375 * lib/font.h: Rename handle_x_command to
5376 handle_unknown_font_command.
5377 * lib/font.c (font::load): Call handle_unknown_font_command for
5378 any unknown command in the font description file. Don't call
5379 handle_x_command. Include the name of the command in the argv.
5380 Improve message for unknown command after kernpairs or charset
5382 * ps/ps.c (ps_font::handle_x_command): Rename to
5383 handle_unknown_font_command. Remove message about `x download'
5384 command. Give error message for wrong number of arguments.
5385 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5386 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5387 handle_unknown_font_command. Give an error message for wrong
5388 number of arguments. Rename design_size to designsize.
5389 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5390 checksum', `designsize' instead of `design_size'.
5392 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5394 * eqn/*.[chy]: Change underaccent to uaccent.
5396 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5397 give it the same precedence as ACCENT.
5398 * eqn/other.c (make_underaccent_box): New function.
5399 * eqn/box.h: Declare it.
5400 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5403 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5405 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5406 (parse_init): Call reset_all.
5407 (define_variable): When defining scale reset only those
5408 pre-defined variables that are scaled.
5409 (defaults_table): Add `scale' as non-scaled value.
5411 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5412 together with the text; allow any number of positioning words;
5413 allow center as a positioning word.
5415 * pic/object.c (output::compute_scale): Get picture maximum height
5416 and width from variables called maxpswid and maxpsht.
5417 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5419 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5421 * pic/object.c (object_spec::make_text): Multiply textht by number
5424 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5426 (do_sprintf): New function.
5427 (pic.gperf): Add sprintf token.
5428 (text, sprintf): New rules.
5430 * pic/pic.y: `rand()' with no arguments returns a random number
5433 * pic/pic.y: Allow a bare expression to be an attribute: change
5434 precedences to support this. Change optional_ordinal rule to
5435 optional_ordinal_last to avoid reduce/reduce conflict.
5436 * pic/object.c (object_spec::object_spec): Initialize direction.
5438 * pic/pic.y: Implement ^ operator meaning exponentiation.
5440 * troff/node.h: Add default argument to mount_font.
5441 * troff/node.c (font_position): Read an optional third argument
5442 giving the external_name.
5443 (mount_font): Add optional argument giving the external_name.
5444 (mount_font_not_translate): Have additional argument giving
5445 external name. Use this name to load the font. Pass both names
5446 to font_info::font_info.
5447 (font_info::font_info): Have additional argument giving
5449 (class tfont): New member external_name.
5450 (font_info::get_tfont): Use external name to construct tfont_spec.
5452 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5454 * eqn/lex.c (init_table): Add argument giving device. Define
5455 name of device to be "1".
5456 (do_ifdef): Counts as true if the argument has been defined with
5458 * eqn/main.c (main): Call init_table with device argument. Make
5459 device local to main.
5460 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5463 * pic/lex.c (get_delimited): Allow text to be delimited by
5464 matching {}s. Don't recognize ending delimiter within a string.
5466 * troff/input.c (get_delim_name): New function.
5467 (token::next): Implement \C.
5469 * lib/font.c (font::load): Grok ---. Add an alias for each
5470 character based on its code.
5471 (font::get_code_width): Deleted.
5472 * lib/font.h (class font): Declare font::number_to_index().
5473 Remove declaration of font::get_code_width.
5474 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5475 to indices of named characters.
5476 (font::number_to_index): New function.
5477 * troff/input.c (font::number_to_index): New function.
5478 (get_charinfo_by_number, charinfo::get_number,
5479 charinfo::set_number): New functions.
5480 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5481 (token::process, token::description, token::get_char,
5482 token::add_to_node_list, token::operator==): Handle
5483 TOKEN_NUMBERED_CHAR.
5484 * troff/charinfo.h: Declare get_charinfo_by_number,
5485 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5487 (charinfo::numbered): New function.
5488 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5489 * troff/env.h (class environment): Remove declaration of ...
5490 * troff/env.c (environment::make_numbered_char_node): Deleted.
5491 * troff/node.c (make_numbered_node): Deleted.
5492 (class numbered_glyph_node): Remove.
5493 (troff_output_file::put_char_width, troff_output_file::put_char):
5494 Handle numbered chars.
5495 (troff_output_file::numbered_char): Removed.
5496 (tfont::get_code_width): Removed.
5497 (make_glyph_node): Don't search special fonts for numbered
5499 * troff/node.h: Remove declaration of make_numbered_node.
5500 * driver/input.c (do_file): Handle N command.
5501 * driver/printer.h: Add declaration of ...
5502 * driver/printer.c (printer::set_numbered_char): New function.
5503 * dvi/tfmtodit.c (main): Generate unnamed entries.
5504 * ps/devps/afmtodit: Likewise.
5505 * xditview/xtotroff.c (MapFont): Likewise.
5506 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5508 * tbl/main.c (process_format): If multiple widths are specified
5509 for a column but all the widths are the same, don't give an error
5512 * tbl/table.c (table::do_row): If the current row is all lines and
5513 the stuff doesn't contains a line, mark the top of the row after
5514 printing stuff before the row. If the current row is not all
5515 lines and the stuff doesn't contain a line, don't unnecessarily
5516 mark the top of the row before printing the stuff.
5518 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5520 * troff/groff.h: Remove MAX_PATH.
5521 * troff/input.c (open_file): Dynamically allocate space for the
5523 (open_mac_file, process_macro_file): Corresponding changes.
5525 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5527 * troff/node.h (class output_file): Make copy_file pure. Add
5528 vspace method ifdef COLUMN. Add is_printing method.
5529 * troff/node.c: Add class printing_reg. Add class
5530 real_output_file. Derive other output_file classes from
5531 real_output_file; in these classes rename begin_page to
5532 really_begin_page, print_line to really_print_line, copy_file to
5533 really_copy_file, transparent_char to really_transparent_char.
5534 Move output_file::flush to real_output_file. Add printing member
5535 to class output_file.
5536 * troff/div.h: Remove printing member from top_level_diversion.
5537 Add vspace member function to class diversion ifdef COLUMN. Add
5538 some declarations ifdef COLUMN.
5539 * troff/div.c (top_level_diversion::copy_file,
5540 top_level_diversion::transparent_output,
5541 top_level_diversion::output): Don't test printing member before
5543 * troff/input.c: Handle initial variable_space_request ifdef
5545 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5548 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5550 * troff/div.c (diversion::need): Make any space forced. If we
5551 sprung a trap, set truncated_space to minus the distance to the
5552 trap and set needed_space to the amount that was needed.
5553 (top_level_diversion::space): A forced space turns no_space_mode
5555 (class constant_vunits_reg): New class.
5556 (init_div_requests): Implement number registers .trunc and .ne
5557 using constant_vunits_reg.
5558 (class truncated_space_reg): Deleted.
5560 * troff/div.h: Don't have a no_space_mode member in diversion.
5561 Instead have it in top_level_diversion.
5562 * troff/div.c (diversion::diversion): Don't initialize
5564 (top_level_diversion::top_level_diversion): Initialize
5566 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5567 (macro_diversion::output): Don't clear no_space_mode.
5569 * troff/input.c (diverted_space_node::reread): Don't call
5570 environment::do_break. In fill mode, act like a blank line.
5571 (diverted_copy_file_node::reread): Don't call
5572 environment::do_break.
5574 * troff/div.c (blank_line): New function.
5575 * troff/div.h: Declare it.
5576 * troff/input.c (process_input_stack): Call it.
5578 * troff/div.c (truncated_space_reg::get_string): New function.
5579 (init_div_requests): Bind to .trunc.
5580 (space_request, top_level_diversion::space,
5581 top_level_diversion::output, macro_diversion::space,
5582 macro_diversion::output): Update truncated_space.
5583 (macro_diversion::output): Redo calculations when trap sprung.
5584 (macro_diversion::output, macro_diversion::space): No need for
5587 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5588 after truncating post line spacing.
5590 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5592 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5593 defined as a procedure rather than as an operator.
5595 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5597 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5599 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5601 * troff/div.c (top_level_diversion::output): Merge
5602 output_file::print_line and output_file::end_of_line member
5604 * troff/div.h (class output_file):
5605 * troff/node.c (troff_output_file::print_line,
5606 troff_output_file::end_of_line, output_file::end_of_line,
5607 ascii_output_file::print_line, suppress_output_file::print_line):
5608 Corresponding changes.
5610 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5612 * troff/input.c (token::next): Don't give a warning for `\.'.
5614 * troff/env.c (environment::get_center_lines): New function.
5615 (init_env_requests): Bind number register .ce to it.
5616 * troff/env.h: Declare it.
5617 * tbl/table.c (table::init_output): Define reset macro to restore
5618 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5620 (table::print): If center option not given, then imply center
5621 option if SAVED_CENTER_REG > 0.
5623 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5625 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5626 Troff.ps from DOWNLOAD.
5628 * troff/Makefile: Change comment in DEFINES to avoid confusing
5631 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5632 code. Don't try to catch errors with stopped.
5633 (check_line_lengths): New function.
5634 * ps/devps/prologue (EXEC): Deleted.
5635 (EBEGIN, EEND): New procedures.
5637 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5639 * troff/input.c: Include request.h before node.h.
5640 * troff/node.c: Likewise.
5641 * troff/env.c: Likewise.
5642 * troff/div.c: Likewise.
5643 * troff/node.h (class special_node): Store argument as a macro
5644 rather than a char *.
5645 * troff/node.c (special_node::special_node, special_node::copy):
5647 (special_node::~special_node): Deleted.
5648 (special_node::tprint): Deleted.
5649 (special_node::tprint_start, special_node::tprint_end,
5650 special_node::tprint_char): New functions.
5651 (troff_output_file::special): Deleted.
5652 (troff_output_file::start_special, troff_output_file::end_special,
5653 troff_output_file::special_char): New functions.
5654 * troff/input.c (special_node::tprint): New function.
5655 (do_special): Use macro not char *.
5656 (do_transparent_macro): Deleted.
5657 (token::next): Don't call do_transparent_macro.
5659 * troff/input.c (token::next): Add 'Y' case.
5660 (do_transparent_macro): New function.
5661 * troff/node.c (troff_output_file::special): Handle newlines with
5662 argument using new continuation convention.
5663 * driver/input.c (get_string): Cope with continuation convention.
5664 (do_file): Don't call skip_line after calling get_string(1).
5665 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5666 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5668 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5671 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5673 * troff/input.c (asciify): By default, illegal input characters
5674 should return empty string.
5676 * troff/input.c (copy_file): Handle first page transition like title.
5677 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5679 * troff/input.c (token::next): Improve error message for EOF after
5681 (input_char_description): New function.
5682 (get_char_for_escape_name): Use input_char_description.
5683 (token::next): Warn about unrecognized escape sequences.
5684 (warning_table): Add WARN_ESCAPE.
5685 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5688 * troff/token.h: Remove declaration of process_input_stack.
5690 * troff/input.c: Remove declaration of init_hyphen_requests.
5691 * troff/request.h: Correct spelling in declaration of same.
5693 * troff/input.c (token::next): Check whether escape_char is 0.
5695 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5697 * groff.c (main, usage, help): Implement -P and -L options.
5698 * groff.sh: Likewise.
5700 * troff/input.c (token::next): Use some gotos to avoid code
5703 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5704 Avoid calling symbol::symbol if name empty.
5706 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5708 * troff/input.c (init_input_requests): Make \n(.x return the major
5709 version number and \n(.y return the minor version number.
5710 * troff/Makefile: Construct file majorminor.c defining
5711 major_version and minor_version automatically from ../VERSION.
5713 * troff/node.c (class glyph_node): Make operator new and operator
5715 (class ligature_node): Similarily.
5717 * troff/input.c (operator==(const macro &, const macro &)): New
5719 (non_interpreted_node::same): Use this.
5720 (string_iterator::string_iterator): Make macro& argument const.
5722 * troff/input.c (input_iterator::get): New function. Don't make
5723 asciify_macro or class non_interpreted_node friends of class
5725 (non_interpreted_node::interpret): Use input_iterator::get.
5726 (asciify_macro): Likewise.
5728 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5729 ~non_interpreted_node): Deleted.
5730 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5733 * troff/symbol.h: Make all symbol member functions const.
5735 * lib/strtol.c: New file.
5736 * lib/Makefile: Add strtol.c.
5737 * Makefile: Define STRTOL as strtol.o to include strtol in
5740 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5742 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5744 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5746 * troff/input.c (do_special): Use input_level.
5748 * troff/token.h (TOKEN_BACKSPACE): New token.
5749 (token::backspace): New function.
5750 * troff/input.c (token::description, token::next, token::process):
5751 Grok TOKEN_BACKSPACE.
5752 (do_special): Turn TOKEN_BACKSPACE back into \b.
5754 * troff/token.h (token::leader): New function.
5755 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5757 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5759 * troff/input.c (do_special): Use token::description in error
5762 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5764 * troff/input.c (decode_args): Combine quoted and
5765 quote_input_level variables. Make it a for (;;) loop.
5767 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5769 * troff/input.c (read_long_escape_name): The test for whether to
5770 expand buffer was off by 1.
5771 (read_string): Similarily.
5773 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5775 * troff/input.c: Use `const int' rather than `static const int'.
5777 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5778 (macro_diversion::copy_file): New function.
5779 * troff/node.h: New class diverted_copy_file_node.
5780 * troff/node.c: Implement it.
5781 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5782 first page transition by pushing a diverted_copy_file_node.
5783 * troff/input.c (token::next, process_input_stack): Don't handle
5786 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5788 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5789 whether space widths need adjusting.
5791 * troff/charinfo.h: Generalize translated_to_space to
5792 special_translation so as to allow translation to \&.
5793 * troff/input.c (translate): Allow translation to \&.
5794 (charinfo::*): Corresponding changes.
5795 * troff/node.c (make_node, node::add_char): Corresponding changes.
5796 * troff/node.h (dummy_node::dummy_node): Allow optional first
5799 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5800 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5802 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5803 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5804 (token::process): Grok that.
5805 * troff/input.c (copy_file): Handle first page transition like
5806 title by pushing a COPY_FILE_REQUEST cookie.
5807 (token::next, process_input_stack): Grok that.
5808 * troff/node.h (output_file::copy_file): Add x and y arguments.
5810 * troff/div.c (top_level_diversion::copy_file): Supply them.
5811 * troff/node.c (troff_output_file::copy_file): Add x and y
5812 arguments; moveto specified position. Invalidate font_position
5813 array after copying file.
5814 (output_file::copy_file): New function.
5815 (suppressed_output_file::copy_file, ascii_output::copy_file):
5817 * troff/input.c (transparent_file): New function.
5818 (init_input_requests): Bind to "trf".
5819 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5820 (process_input_stack): Likewise.
5822 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5824 * troff/node.c (init_node_requests): New number registers .kern
5825 pointing to global_kern_mode, and .lg pointing to
5826 global_ligature_mode.
5828 * troff/node.c (ligature): Don't change it if we get a bad
5831 * troff/input.c (do_define_string): Don't strip tabs.
5833 * troff/input.c (asciify_macro): Make the string_iterator auto.
5835 * troff/node.c (init_font_requests): Rename to...
5836 (init_node_requests):
5837 * troff/node.h: Change declaration.
5838 * troff/input.c (main): Change call.
5840 * troff/input.c (node::reread, diverted_space_node::reread): New
5842 (process_input_stack): Call reread rather than
5843 get_diverted_space_node.
5844 * troff/node.c (node::get_diverted_space_node,
5845 diverted_space_node::get_diverted_space_node): Removed.
5846 * troff/node.h: Declare reread methods instead of
5847 get_diverted_space_node methods. Make `n' member private.
5848 * troff/input.c: (token::diverted_space): Removed.
5849 * troff/token.h: Removed declaration.
5852 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5854 * eqn/script.c (script_box::compute_metrics): Don't let
5855 SUP_RAISE_FORMAT become negative.
5857 * tbl/table.c (table::do_row): Entries that don't end in the
5858 this row shouldn't make the row non-blank.
5860 * tbl/table.c (table::make_columns_equal): Only set the width of
5861 columns which are marked as equal.
5863 * tbl/main.c (process_data): Before issuing excess data error,
5864 if last character was a newline unget it; then get it again after
5865 the error. Also include the contents of the entry in the message.
5867 * groff.c: New file.
5868 * Makefile: Build groff from groff.c. Make it possible to use
5869 either groff.sh or groff.c as groff.
5870 * Makefile.bd: Similarily.
5872 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5874 * groff.sh: Don't delay expansion of $@ in assignment to files.
5875 Remove occurrences of \".
5877 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5879 * all Makefiles: Simplify and rearrange.
5881 * Makefile: Handle fmod like malloc.
5882 * lib/Makefile: Similarily.
5883 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5885 * Makefile: Rename OPTIMISE to OPTIMIZE.
5887 * groff.sh: Remove assignment to PATH.
5888 * Makefile: Remove SHPATH variable.
5889 * Makefile.bd: Similarily.
5891 * groff.sh: Add -V option to print the pipeline instead of
5894 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5896 * lib/font.c: Split off file searching into ...
5897 * lib/fontfile.c: New file.
5899 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5901 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5903 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5904 Also change misleading comment.
5905 (table::do_vspan): Change similarily misleading comment.
5906 * tbl/main.c (process_data): A format row with an explicit `s'
5907 uses up a data line, even if all the other columns are `_' or `='.
5909 * troff/input.c (token::description): Fix description of
5910 TOKEN_DUMMY and TOKEN_EMPTY.
5912 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
5914 * groff.sh: Fix description of -Z in help message.
5916 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
5918 * pic/object.c (object_spec::make_object): Allow negative and zero
5920 * pic/pic.y: Give linethick default value of -1.0.
5921 * pic/troff.c (troff_output::troff_output): Initialize
5922 last_line_thickness to BAD_THICKNESS.
5923 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5924 (troff_output::line_thickness): Canonicalize negative thicknesses
5925 to RELATIVE_THICKNESS.
5926 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5927 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5929 (tex_output::start_picture): Set pen_size to -2.0.
5931 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5932 0, then use 0 linewidth.
5933 (ps_printer::ps_printer): Initialize line_thickness to -1.
5935 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5937 * ps/devps/symbolchars: Remove `or'.
5938 * ps/tmac.ps: Implement \(or with .char.
5940 * ps/devps/symbolchars: Move most characters into textmap.
5941 * ps/devps/textmap: Add names for troff bracket characters. Remove
5944 * ps/devps/TSymbol.ps: Removed.
5945 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5946 * ps/tmac.ps: Do with .char what TSymbol did.
5947 * ps/devps/download: Remove TSymbol.
5949 * ps/devps/T: Removed.
5950 * ps/devps/Troff.ps: Removed.
5951 * ps/devps/Troff.afm: Removed.
5952 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5953 * ps/devps/download: Remove Troff.
5954 * ps/devps/FontMakefile: Remove T target.
5955 * ps/devps/DESC-A4: Remove T from font list.
5956 * ps/devps/DESC-letter: Likewise.
5958 * troff/input.c (macro_to_node): Rename to ...
5959 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5960 character's definition while processing it.
5961 * troff/node.c (node::add_char, make_node): Change calls to
5962 macro_to_node accordingly.
5964 * troff/input.c (token::next): Translate \_ to \(ul.
5966 * tty/devascii/R.proto: Add `|'.
5967 * tty/devlatin1/R.proto: Likewise.
5969 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5971 * man: Put the version number in all the man pages.
5973 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5975 * Makefile.bd: New file.
5976 * README.bd: New file.
5978 * VERSION: New file.
5979 * lib/version.c: Removed.
5980 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5983 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5984 environment variable.
5986 * all Makefiles: Split install target into install.bin for
5987 binaries, and install.nobin for everything else.
5988 * Makefile: Add bindist target.
5990 * man/afmtodit.man: New file.
5991 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5992 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5994 * ps/Makefile: Pass BINDIR to make install in devps.
5996 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5997 the space character.
5999 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6001 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6003 * ps/ps.c: Redo font downloading.
6004 * ps/devps/download: New file.
6005 * ps/devps/Makefile: Add download to DEVICEFILES.
6006 * ps/devps/afmtodit: Remove -d option.
6007 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6008 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6009 * ps/devps/zapfdr.ps: Likewise.
6010 * ps/devps/TSymbol.ps: Likewise.
6012 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6014 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6016 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6018 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6019 then strip the first line if it starts with %.
6020 * Makefile: Add a comment about this.
6022 * man/tfmtodit.man: New file.
6023 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6024 * dvi/Makefile: Install tfmtodit in BINDIR.
6026 * dvi/tfmtodit.c (usage): Mention -v option.
6028 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6030 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6031 * troff/node.c (troff_output_file::transparent_char): Don't call
6034 * eqn: Add check_tabs method to most box classes.
6035 * eqn/box.c (box::top_level): Call check_tabs.
6037 * eqn/script.c (script_box::output): Use \Z.
6038 * eqn/limit.c (limit_box::output): Use \Z.
6040 * eqn/box.c (box::top_level): Use itoa.
6042 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6044 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6045 * dvi/devdvi/Makefile: Don't make links to CW.
6047 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6049 * xditview/tmac.X: Likewise.
6051 * troff/node.c: Add font translation feature.
6052 (get_font_translation): New function.
6053 (symbol_fontno): Translate the font name.
6054 (mount_font_no_translate): Rename to mount_font to this.
6055 (mount_font): New function.
6056 (font_family::make_definite): Call mount_font_no_translate instead
6058 (mount_style): Translate the font name.
6059 (font_translate): New function.
6060 (init_font_requests): Bind "ftr" to font_translate.
6062 * ps/devps/prologue (SN): New procedure that rounds a position to
6063 the nearest (pixel + (.25,.25)).
6064 (DL): Use SN to round endpoints.
6066 * lib/version.c: Changed version to 0.5.
6068 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6070 * Makefile: Move definition of PAGE to the very beginning, so that
6071 people are less likely to miss it.
6073 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6075 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6077 * troff/env.c (environment::choose_breakpoint): Make `can't find
6078 breakpoint' error a warning of type WARN_BREAK. Change message to
6080 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6082 * troff/input.c: Add WARN_BREAK to warning_table. Include
6083 WARN_BREAK in DEFAULT_WARNING_MASK.
6085 * tty/tmac.tty: Add definition of \(+-.
6087 * groff.sh: Remove `--' option to set command.
6089 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6091 * ps/devps/eqnchar: Better definition of cdot using md.
6092 * dvi/devdvi/eqnchar: Likewise.
6093 * xditview/devX100/eqnchar: Likewise.
6094 * xditview/devX75/eqnchar: Likewise.
6095 * eqn/lex.c: Add definition of cdot.
6097 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6099 * troff/input.c (get_optional_char): New function.
6100 * troff/input.c (set_page_character): Use get_optional_char(),
6101 rather than has_arg() and tok.get_char(1).
6102 * troff/env.c (tab_character, leader_character, hyphen_char,
6103 field_characters): Likewise.
6104 (margin_character): Likewise. Also always delete the
6105 margin_character_node.
6107 * troff/input.c (token::get_char): Use token::description.
6109 * troff/input.c (has_arg): Don't skip over tab and \}.
6110 * troff/number.c (start_number): Give a warning if the number
6111 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6113 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6115 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6117 (get_name, get_long_name): Use these. Rename `warn' argument to
6120 * troff/node.c (get_fontno): Test that the symbol is not null.
6122 * troff/input.c (token::description): New function.
6123 * troff/number.c (parse_term): Use token::description in `numeric
6124 expression expected' message.
6125 * troff/groff.h: Add WARN_MISSING.
6126 * troff/number.c (start_number): New function.
6127 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6128 get_incr_number): Use start_number().
6129 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6131 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6132 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6134 * troff/input.c (token::get_char): Use WARN_MISSING.
6135 * troff/input.c (token::delimiter): Use token::description.
6136 * troff/env.c (environment_switch): Back out Aug 3 change.
6137 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6139 * troff/token.h (token::tab): New function.
6140 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6141 * troff/reg.c (alter_format): Likewise.
6142 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6144 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6146 * troff (most files): Redo warnings. Divide warnings into various
6147 categories; warning() has an additional first argument indicating
6148 the category it falls into.
6149 * troff/input.c (main): -w now takes an argument. New option -W.
6150 (enable_warning, disable_warning): New functions.
6152 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6153 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6155 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6157 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6158 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6159 * xditview/devX75/eqnchar: Likewise.
6160 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6162 * eqn/other.c: When bar or over applies to a single character
6163 don't produce an overline_box or an underline_box. Instead produce
6164 an accent_box or an underaccent_box, with the accent a line
6165 whose width is accent_width. New classes underaccent_box,
6166 overline_char_box and underline_char_box.
6167 * eqn/box.h: Move overline_box, underline_box, accent_box class
6168 declarations into eqn/other.c. Add declarations of
6169 make_underline_box, make_overline_box, make_accent_box.
6170 * eqn/eqn.y: Call make_overline_box, make_underline_box
6171 make_accent_box instead of constructors.
6172 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6174 * eqn/other.c: Add accent_box::~accent_box.
6175 * eqn/box.h: Declare it.
6177 * groff.sh: With -Tps, use eqn -D.
6179 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6181 (underline_box::output): Similarily.
6182 (accent_box::output): Use \Z.
6184 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6187 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6189 * troff/div.c (top_level_diversion::transparent_output(unsigned
6190 char)): Use asciify.
6191 * troff/input.c (asciify): Don't make it static.
6192 * troff/token.h (asciify): Declare it.
6194 * troff/input.c (get_name, get_long_name, token::get_char,
6195 token::delimiter): Add an extra default argument which says
6196 whether a warning should be printed.
6197 * troff: Pass a non-zero argument to one of these rather than
6198 printing a warning directly.
6200 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6202 * troff: Consistently use symbol::is_null.
6204 * troff/dictionary.h: Move some inline functions into
6207 * troff/request.h: Move inline functions into input.c.
6208 (request_or_macro::invoke): Make it pure.
6210 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6211 * troff/input.c (init_input_requests): Use class constant_int_reg.
6212 (class compatible_reg): Deleted.
6213 * troff/div.c (init_div_requests): Use class constant_int_reg.
6214 (class last_post_line_extra_space_reg): Deleted.
6216 * troff/env.c (tab_character): Don't change the tab character if
6217 we get an invalid argument.
6218 (hyphen_char): Similarily.
6220 * troff/reg.c (alter_format): Check that nm is not null.
6222 * Makefile, groff.sh: Make it possible to customize the commands
6223 used for printing PostScript and dvi files. Also make it possible
6224 to customize the path used by groff.sh.
6226 * eqn/eqn.y: Make `left' right associative.
6228 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6230 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6233 * pic/pic.h: Removed definition of INT_MAX.
6235 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6238 * troff/input.c (token::next): Handle \R like \n.
6240 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6242 * ps/tmac.pc (PSPIC): Simplify.
6244 * troff/env.c (tab_stops::to_string):
6245 * pic/pic.y (object_type_name):
6246 * pic/troff.c (simple_output::line):
6247 * pic/tex.c (tex_output::spline):
6248 * pic/object.c (object_spec::make_object):
6249 * tbl/main.c (process_data): Add cases to switch statements to
6250 avoid cfront warnings. (Some of these are spurious, since the
6251 switch already has a default case.)
6253 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6254 `ps-'. Don't test systat; instead check number of arguments to
6257 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6259 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6261 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6262 Unlink the file as soon as we have opened it, so that we don't
6263 have to bother with signal handlers.
6265 (fatal_error_exit): Deleted.
6266 (main): Don't call signal.
6268 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6270 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6272 * pic/pic.y: If there is a label, or an nth construction before
6273 the first `.' in the argument to `with', ignore it and generate a
6275 * pic/lex.c (lex_warning): New function.
6277 * tbl/table.c (table::init_output): In section keep and release
6278 macro, use 0 indent when diverting and the correct indent when
6281 * troff/input.c (interpolate_number_format): Do not interpolate
6282 anything if the number register is not defined.
6284 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6286 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6288 * ps/devps/prologue (PICTURE): Set components of graphics state to
6289 their default values.
6291 * ps/devps/text.enc: Add trademark
6292 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6293 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6294 * ps/devps/symbolchars: Add names for summation and product.
6296 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6297 suchthat. Add pp. Add upper-case letters.
6299 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6300 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6303 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6304 rA (right angle bracket) to ra. Introduce names for double-headed
6305 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6306 * ps/devps/textmap: Likewise for ps device.
6307 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6308 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6309 * tty/devascii/R.proto: Likewise.
6310 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6312 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6314 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6316 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6319 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6321 * troff/div.c (when_request): Use symbol::is_null rather than
6322 has_arg to determine whether we have an argument.
6323 (change_trap): Remove the trap if we get an invalid number. Give
6324 an error if we don't get at least the macro name.
6325 (diversion_trap): Remove trap if we get an invalid name or number.
6327 * troff/env.c (environment_switch): Pop if we get an invalid
6328 symbol or numeric expression.
6330 * troff/input.c (do_define_macro): If EOF is encoutered while
6331 defining the macro, do tok.next() before returning.
6333 * troff/token.h (has_arg): Move definition from here, to ...
6334 * troff/input.c (has_arg): ... here
6336 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6337 * troff/input.c (shift): Likewise.
6339 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6342 * pic/troff.c (troff_output::start_picture): Comment out calls to
6345 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6346 interpret_lf_args succeeds.
6348 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6349 \\. This avoids problems with \$N.
6351 * groff.sh: Pass -C to preprocessors.
6353 * lib/lf.c (interpret_lf_args): Be more flexible.
6355 * tbl/main.c (main): Add -C option.
6356 (table_input::get): Do not recognize TE if followed by character
6357 other than a space or newline unless -C option given.
6358 (process_input_file): Likewise for lf, TS.
6359 (process_data): Likewise for lf in text blocks.
6361 * eqn/main.c (main): Add -C option.
6362 (do_file): Don't recognize EQ, EN or lf if followed by character
6363 other than space or newline unless -C option given.
6364 * eqn/lex.c (file_input::read_line): Similarily.
6365 * eqn/eqn.h: Declare compatible_flag.
6367 * etc/soelim.c (main): Add -C option.
6368 (interpret_lf_args): Use version in libgroff.
6371 * pic/main.c (main): Add -C option, which sets compatible_flag.
6372 (top_input::get), (top_input::peek): If -C option not given,
6373 do not recognize .PS/.PE/.PF/.lf if followed by a character
6374 other than space or newline.
6375 * pic/lex.c (file_input::read_line): Similarily.
6376 * pic/pic.h: Add declaration of compatible_flag.
6378 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6380 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6382 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6383 derived from node. New class space_char_hmotion_node.
6384 * troff/input.c (asciify_macro): New function.
6385 * troff/input.c (init_input_requests): New request `asciify' bound
6387 * macros/mm.diff: New file.
6388 * Makefile: In install.mm target use `patch' to apply
6391 * troff/input.c (macro::print_size): Just print the size in bytes.
6393 * troff/div.c (return_request): Correct the argument
6396 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6398 * troff/node.h (class composite_node): Add sz member.
6399 * troff/node.c (composite_node::size): Return sz.
6400 * troff/input.c (macro_to_node): Use the initial size in the
6401 environment as the size of the composite_node.
6403 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6406 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6408 * troff/div.c (change_trap): If we get a bad number expression,
6411 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6413 * lib/matherr.c (matherr): Define this only if math.h defines
6416 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6418 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6419 no diversion trap return vunits(INT_MAX - vresolution).
6421 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6423 * troff/input.c (do_zero_width): New implementation that doesn't
6424 use a temporary environment. Use instead:
6425 (token::add_to_node_list): New function.
6426 * troff/env.c (environment::get_prev_char_height),
6427 (environment::get_prev_char_height),
6428 (environment::get_prev_char_skew): New functions.
6429 (environment::get_prev_char): New function.
6430 (environment::get_prev_char_width): Change to use get_prev_char.
6431 (init_env_request): Implement new registers .cht, .cdp, .csk.
6432 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6433 \Z being processed in a separate environment.
6435 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6437 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6439 * tbl/table.c (table::init_output): In the section release macro,
6440 give a warning message if the section won't fit on one page.
6442 * tbl/table.c (table::do_top): Emit table keep only if table is
6444 (table::do_bottom): Likewise for table release.
6445 (table::table), (table::add_vertical_rule): Remove reference to
6447 * tbl/table.h: Remove keep member.
6449 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6450 SECTION_RELEASE_MACRO, if there's not enough space before the next
6451 trap to output the diversion, call T# ourselves, set
6452 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6453 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6454 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6455 vertical position and return to it before turning traps on again.
6457 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6459 * troff/node.c, troff/node.h: In classes derived from node,
6460 replace prev_char_width method by last_char_node method.
6461 * troff/env.c (environment::get_prev_char_width): Use
6462 node::last_char_node rather than node::get_prev_char_width.
6464 * Makefile: Added comment about -fno-inline on 68030-based
6467 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6468 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6469 expressions using sizeof to int.
6470 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6472 * macros/tmac.e (TS): Don't move @f back past the current
6475 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6477 * ps/ps.c (main): Buffer stderr.
6478 * dvi/dvi.c (main): Likewise.
6479 * tty/tty.c (main): Likewise.
6481 * ps/ps.c (ps_printer::do_import): Improve error handling.
6483 * troff/input.c (abort_request): Use asciify.
6485 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6486 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6487 type of first argument int rather than char. This works around a
6488 bug on the 68030 based Apollo using g++ 1.37.1.
6490 * tbl/table.h (class table): Add `keep' member.
6491 * tbl/table.c (table::table): Initialize `keep'.
6492 (table::add_vertical_rule): Set `keep' to 1.
6493 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6494 (table::do_bottom): Likewise for table release macro.
6495 (table::do_row): Emit section keep macro even if the row is 0.
6497 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6499 * macros/tmac.e (@C): Preserve the font family across the change
6502 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6504 * lib/font.c: Initialize font::hor and font::vert to 1.
6505 (font::load_desc): Check the values of font::hor and font::vert.
6507 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6508 be included in a C compilation.
6509 (iftoa): Use INT_DIGITS. Include lib.h.
6511 (as_string): Likewise.
6512 * tbl/table.c: Removed definition of INT_DIGITS.
6513 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6514 * troff/input.c (input_input_requests): Likewise.
6515 * ps/ps.c (make_encoding_name): Likewise.
6516 (ps_printer::set_style): Likewise.
6517 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6519 * tty/devascii/R.proto: Map fm onto '.
6520 * tty/devlatin1/R.proto: Likewise.
6522 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6524 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6525 argument to \w is at a different input level.
6527 * tbl/table.c (table::init_output): Define a new macro
6528 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6529 transparently outputs itself.
6530 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6532 (table::do_row): Likewise.
6534 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6535 TRANSPARENT_STRING_NAME.
6537 * tbl/table.c (table::init_output): In the table release macro
6538 print an error message and don't produce any output if after
6539 issuing the need request the table still will not fit. Also
6540 remove the diversion after bringing it back.
6542 * tbl/table.c (table::init_output): Define a new macro
6543 REPEATED_MARK_MACRO, like mk but if in a diversion also
6544 transparently outputs itself.
6545 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6546 is necessary because .TH might not call .T#.
6547 (table::do_top): Likewise TOP_REG.
6548 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6549 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6550 table header might contain just the two top rules.
6552 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6554 * troff/div.c: Implement new request `ptr' to print all traps.
6556 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6557 init_string_env_reg.
6558 * troff/env.c (class tab_reg): Deleted.
6560 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6562 * troff/div.c: New number register .pn returns the number of the
6563 next page as set by the pn request.
6565 * macros/tmac.an: Redid headers and footers. Number each manual
6566 entry starting from 1 unless \nC is > 0, like Sun. Added an
6567 optional 5th argument to .TH which specifies the manual name and
6568 appears in the center of the header. Understand the X, P and D
6571 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6573 * troff/env.c (init_env_requests): New number register `.lt' to
6574 return the title length.
6576 * troff/node.h (class transparent_dummy_node): New class.
6577 * troff/node.c (class transparent_dummy_node): Provide member
6579 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6582 * troff/input.c (token::next): New escape sequence \).
6583 * troff/input.c (get_copy): Recognize \) in copy mode.
6585 * troff/input.c (input_stack::clear): New function.
6586 * troff/input.c (exit_request): Use input_stack::clear.
6588 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6589 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6591 * troff/env.c: Move set_page_character to input.c. Move
6592 page_character to input.c also.
6593 * troff/env.c (title): Split off the reading of the parts of the
6594 title into read_title_parts.
6595 * troff/input.c (read_title_parts): New function. Check the
6596 input_level when testing whether a token matches the delimiter.
6598 * troff/input.c (exit_request): New function.
6599 * troff/input.c (init_input_requests): Bind ex request to
6600 exit_request rather than exit_groff.
6602 * troff/input.c (exit_groff): Call tok.next() before
6603 process_input_stack().
6605 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6607 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6608 * troff/env.h: ditto.
6609 * troff/input.c: ditto.
6611 * troff/env.c (environment::is_empty): Test pending_lines.
6613 * troff/env.c (environment::have_pending_lines): Removed.
6615 * troff/input.c: Add request to flush pending lines from the
6618 * troff/env.c, troff/env.h: Add automatic widow control feature.
6620 * troff/input.c (exit_groff): Do process_input_stack() after
6621 do_break() but before setting exit_flag to 2.
6623 * troff/input.c: Remove FLUSH_PENDING_LINES and
6624 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6625 environment after END_TRAP token seen, but only if there aren't
6626 any more traps still unfinished.
6627 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6629 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6631 * troff/env.c: Rename the `retain_size' member of class
6632 pending_output_line to `no_fill'.
6634 * troff/env.c (title): When the line is output, make the
6635 retain_size argument !fill.
6637 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6638 * troff/node.c (space_node::get_breakpoints),
6639 (dbreak_node::get_breakpoints): Fill this in.
6640 * troff/env.c: Allow specification of maximum number of
6641 consecutive hyphenated lines.
6643 * troff/env.c (environment::is_empty): Add test for !current_tab.
6645 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6647 * troff/env.c (environment::hyphenate_line): Don't completely give
6648 up if the word is not to be hyphenated; continue so that breaks
6649 can be made at break_char_node's.
6651 * lib/lib.h: Only define INT_MAX if it's not already defined;
6652 undef INT_MIN if it's already defined.
6654 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6656 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6657 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6660 * macros/tmac.an (an-header): Set no-space mode.
6662 * macros/tmac.an (TH): Start a new page if necessary.
6664 * Started using ChangeLog at version 0.4.
6667 version-control: never