1 2000-03-06 Werner LEMBERG <wl@gnu.org>
3 * tmac/groff_man.man: Completely revised to cover everything in
6 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8 * src/roff/troff/env.cc (environment_copy): Improve error message and
11 * doc/Makefile: Bug fixes -- this is still provisional, though...
13 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
15 Adding a request `evc' to copy environments.
17 * src/roff/troff/env.cc (environment::copy, environment_copy):
19 * src/roff/troff/env.h: Add prototype.
21 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
23 Adding strsep() -- Solaris 8 doesn't have it.
25 * configure.in: Test it.
26 * src/devices/grolbp/lbp.cc: Add code.
28 2000-03-05 Werner LEMBERG <wl@gnu.org>
30 * src/roff/troff/div.cc (macro_diversion::output,
31 top_level_diversion::output): Fixing an incompatibility with
32 original troff: \x'0' updates the .a register also. Thanks to
33 <Andries.Brouwer@cwi.nl> for pointing this out.
34 * doc/groff.texinfo: Document it.
36 * Makefile.in: Create Makefile.dep if necessary before calling the
37 submake process to avoid warning about nonexistent file.
39 * NEWS, PROJECTS: Updated.
41 2000-03-04 Werner LEMBERG <wl@gnu.org>
43 * tmac/troffrc: Add tmac.lbp.
45 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
47 * tmac/tmac.lbp: New file.
48 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
51 2000-03-03 Werner LEMBERG <wl@gnu.org>
53 * Makefile.in: Fixing $(subdir).
55 * README, NEWS: Small fixes.
57 * test-groff: Adding path to grolbp.
59 * configure.in: The (new) file src/xditview/Imakefile.in will be
60 also configured -- it is now possible to build gxditview in a
61 directory different from $srcdir.
63 2000-03-02 Blake McBride <blake@florida-software.com>
65 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
67 * MORE.STUFF: Added website of bell labs and info about plot2dev.
69 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
71 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
74 2000-02-29 Werner LEMBERG <wl@gnu.org>
76 Adding GNU getopt to the groff distribution.
78 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
80 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
81 * aclocal.a4: Remove GROFF_GETOPT function.
82 * configure.in, Makefile.in, PROBLEMS: Update.
83 * src/include/lib.h: Replace getopt tests with getopt.h.
84 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
86 * doc/groff.texinfo: Further checking/updating. Adding more index
89 * man/groff_out.man: Fix nroff mode activation (for emacs).
90 * man/groff_font.man: Add missing ligature.
92 2000-02-28 Werner LEMBERG <wl@gnu.org>
94 * doc/groff.texinfo: Further checking/updating. Adding more index
97 * src/devices/grolbp/grolbp.man: Added a comment line at the
98 beginning of the file (similar to shell scripts) which indicates
99 that `tbl' should be used as a preprocessor.
101 2000-02-27 Blake McBride <blake@florida-software.com>
103 Adapting groff to MS Visual C++ 6.0 compiler (tested with
104 Windows NT 4.0). Uses _MSC_VER define where necessary.
106 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
107 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
108 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
109 src/include/lib.h, src/libs/libgroff/errarg.cc,
110 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
111 src/preproc/refer/label.y, src/preproc/refer/label.cc,
112 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
113 src/roff/troff/div.cc, src/roff/troff/env.cc,
114 src/roff/troff/input.cc, src/roff/troff/node.cc,
115 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
116 if_to_a() to avoid name clashes.
117 * src/include/posix.h: Don't use unistd.h.
118 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
119 clause for integrating non-Unix xtmpfile() code.
120 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
121 structure; use "rt" for popen() in pipe_source(); add getpid()
123 * src/roff/troff/node.cc: Use special versions of popen() in
124 real_output_file() and pclose() in ~real_output_file().
126 2000-02-27 Werner LEMBERG <wl@gnu.org>
128 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
129 LBP-8 series laser printers). This code has been contributed by
130 Francisco Andres Verdu <pandres@dragonet.es>.
132 * src/devices/grolbp/*: The grolbp output device.
133 * font/devlpb/*: The font description files.
134 * Makefile.in: Add grolpb and devlbp subdirectories.
136 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
137 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
140 * doc/groff.texinfo: Further checking/updating. Adding more index
145 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
147 * man/groff_font.man: Adding info about obsolete DESC keywords.
148 * src/devices/grolj4/grolj4.man: Documenting additional DESC
151 2000-02-26 Werner LEMBERG <wl@gnu.org>
153 * src/preproc/grn/grn.man: Added info about the gremlin file format
154 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
156 2000-02-25 Werner LEMBERG <wl@gnu.org>
158 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
159 friends to be non-integer.
161 * src/preproc/grn/grn.man: Document it.
163 * doc/groff.texinfo: Further checking/updating. Adding more index
166 2000-02-24 Werner LEMBERG <wl@gnu.org>
168 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
169 line thicknesses to be integer multiples of this value.
171 * src/preproc/grn/grn.man: Commenting out the -s option -- the
172 corresponding code doesn't work (yet).
174 * doc/groff.texinfo: Further checking/updating. Adding more index
177 2000-02-23 Werner LEMBERG <wl@gnu.org>
179 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
180 specify line thickness instead of base units. The new default
181 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
182 thick lines respectively.
184 Removed unused variable `prevval'.
186 * src/preproc/grn/grn.man: Updated.
188 2000-02-22 Werner LEMBERG <wl@gnu.org>
190 * src/preproc/grn/main.cc: Slight formatting.
192 * src/roff/groff/groff.man: Formatting fix.
193 * src/preproc/grn/grn.man: Ditto.
195 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
197 * doc/groff.texinfo: Further checking/updating.
199 2000-02-21 Werner LEMBERG <wl@gnu.org>
201 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
203 * test-groff: Added grn subdir to path.
205 * doc/groff.texinfo: Some restructing and other small improvements.
207 * src/roff/groff/groff.cc (help): Fixed info string.
209 2000-02-20 Werner LEMBERG <wl@gnu.org>
211 * doc/meref.me: Fix description of .GS request.
213 * src/roff/troff/troff.man: Fixing typo.
215 Adding the `grn' preprocessor for gremlin graphic files.
217 * src/preproc/grn/*: This is the Berkeley distribution written by
218 David Slattengren and Barry Roitblat, adapted to groff by Daniel
219 Senderowicz and Werner Lemberg.
221 * doc/grnexampl.{me,g}: A sample for grn.
223 * Makefile.in: Added subdirectory entry for grn.
225 * src/roff/groff/groff.cc: Added support for grn. It can be now
226 called with the switch `-g'.
228 * src/roff/groff/groff.man: Updated.
230 * src/roff/grog/grog.{man,pl,sh}: Updated.
234 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
236 * src/include/lib.h: Added xtmptemplate and made xtmpfile
237 parametrically polymorphic.
239 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
240 and the alterations to xtmpfile.
241 xtmpfile can be requested to return the filename created
242 and asked not to unlink the temp file. The default behaviour
243 if parameters are absent is exactly the same as before.
245 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
247 A new request `length' is available which returns the length of a
248 string in a number register:
250 * src/roff/troff/input.cc (length_macro): Implement it.
251 * src/roff/troff/input.cc (init_input_requests): Register it.
253 2000-02-11 Werner LEMBERG <wl@gnu.org>
255 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
256 of the `substring' request.
258 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
261 * src/roff/troff/TODO, NEWS: Updated.
263 2000-02-09 Werner LEMBERG <wl@gnu.org>
265 * src/roff/groff/groff.man: Added an example.
267 2000-02-06 Werner LEMBERG <wl@gnu.org>
269 I've considerably modified the directory structure of the
270 distribution to get a more vertical layout. For example, the number
271 of top level directories has been reduced from 42 to 6.
273 As a consequence, many changes, especially to the makefiles, were
276 * The makefile variables `top_builddir' and `top_srcdir' have been
277 introduced. Virtually all relative paths have been replaced with
278 absolute ones using these two variables.
280 * Dependencies (in the files `Makefile.dep') are no longer part of
281 the distribution. Instead, they are created during a `make install'
282 in the build directory.
284 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
285 make `top_srcdir' and `top_builddir' absolute.
289 * Man pages no depend on the files `VERSION' and `REVISION'.
291 * The added shell script `mkinstalldirs' will replace `mkdir' in
294 * VERSION: Version number increased to 1.16.
296 2000-02-04 Werner LEMBERG <wl@gnu.org>
298 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
300 * Makefile.in: Removed $(tmac_m) since it is no longer needed
301 (after an update of the mm stuff).
303 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
305 2000-02-03 Werner LEMBERG <wl@gnu.org>
307 The .psbb request will now also accept Mac PS images (i.e. using LF
308 as the EOL character).
310 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
311 (with slight modifications).
312 * troff/input.cc (do_ps_file): Use it.
314 * test-groff: Add grohtml and grolj4 output devices to PATH.
316 2000-01-30 Werner LEMBERG <wl@gnu.org>
318 * NEWS, MORE.STUFF: Updated.
320 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
322 Add the `srand' command to pic.
324 * pic/lex.cc, pic/pic.y: Implement it.
325 * pic/pic.man: Document it.
326 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
328 2000-01-30 Werner LEMBERG <wl@gnu.org>
330 Add a new request `.psbb'. This does exactly what the external
331 program psbb did. It scans a PostScript image file for a
332 %%BoundingBox comment and extracts the bounding box values (in
333 PostScript units) which are then stored in the four new (read-only)
334 number registers `llx', `lly', `urx', and `ury'.
336 This will allow the usage of the .PSPIC macro without worrying
337 about unsafe behaviour of groff, i.e., it will work without the
338 `-U' switch of groff.
340 * troff/input.cc: Implement it.
341 * tmac/tmac.pspic: Use it.
342 * troff/troff.man, grops/grops.man, NEWS: Document it.
343 * psbb/*, Makefile.in: Remove it since it is no longer needed.
345 This is bloody C code simply adapted from psbb.c! Any improvements
348 2000-01-29 Werner LEMBERG <wl@gnu.org>
350 * man/groff_font.man: Minor clarifications.
354 2000-01-28 Werner LEMBERG <wl@gnu.org>
356 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
358 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
360 * man/groff_font.man: Brought up to date regarding tcommand
362 * libgroff/font.cc: Handle everything after `--' as a comment
364 * devps/*: Added comment delimiter inside devps font files.
366 2000-01-28 Werner LEMBERG <wl@gnu.org>
368 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
369 \fC...\fP (which now works as expected).
371 * troff/troff.man: Fix typo.
373 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
375 Completed the pass_filenames implementation in troff.
377 * libdriver/input.cc: Will read the new `F' tcommand.
378 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
379 * troff/input.cc: Use it.
381 2000-01-26 Werner LEMBERG <wl@gnu.org>
383 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
384 font will now be updated even if an invalid font is selected.
386 2000-01-24 Werner LEMBERG <wl@gnu.org>
388 * doc/homepage.ms: Updated for new tmac.arkup.
390 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
392 * tmac/tmac.arkup: Cleanup.
394 Added `\&' to .HTML macro to `leave vertical mode', so to say.
396 Removed obsolete .LINK macro completely.
398 The macros .URL, .FTP, and .MAILTO now accept a third argument which
399 will be immediately appended to the second argument (to be used with
400 punctuation, for example).
402 Disabled .CDFTP macro temporarily for security reasons.
404 * tmac/groff_markup.man: Complete revision for latest changes in
405 tmac.arkup -- note that it does not yet format correctly with
408 2000-01-23 Bruno Haible <haible@clisp.cons.org>
410 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
411 * devutf8/R.proto: Add mappings for wp, lh, rh.
412 * devutf8/NOTES: Updated.
414 2000-01-23 Werner LEMBERG <wl@gnu.org>
416 * doc/groff.texinfo: Updated version/copyright info.
418 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
420 Added support for two new directives in device descriptions:
421 `pass_filenames' (to pass the input file name to the output device)
422 and `use_charnames_in_special' (to support e.g. accented characters
425 * include/font.h, troff/charinfo.h: Declare it.
427 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
429 * devhtml/DESC: Use it.
431 * troff/input.cc: New function encoded_char.
433 * troff/token.h: Add test for `specialness'.
435 2000-01-21 Werner LEMBERG <wl@gnu.org>
437 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
438 mistake from the list of files to be installed.
440 2000-01-18 Werner LEMBERG <wl@gnu.org>
442 * README: Added info how to apply patches.
444 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
446 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
448 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
450 * troff/input.cc: Add support for troffrc-end.
452 * tbl/main.cc: Altered to issue table-start and table-end special
453 characters if using the html device.
455 * devhtml/*: Modified font files to incorporate html encoding of
458 * tmac/groff_markup.man: New file documenting tmac.arkup.
460 * tmac/troffrc-end: New file. This is invoked after all user
461 specified macros. Currently used by the html device to include
462 tmac.html. Thus no need for users to specify -mhtml anymore.
464 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
465 (MAN7): Add groff_markup.man.
467 * tmac/tmac.an, tmac/tmac.html: Small html updates.
469 * tmac/troffrc: tmac.arkup will now be called for the html device.
471 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
472 extra device specific information about fonts.
474 * doc/homepage.ms: New file. It is an example how an HTML home page
475 could look like with grohtml.
477 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
479 2000-01-12 Bruno Haible <haible@clisp.cons.org>
481 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
484 * devutf8/NOTES: Updated.
486 2000-01-08 Bruno Haible <haible@clisp.cons.org>
488 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
489 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
490 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
491 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
492 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
493 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
494 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
495 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
498 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
500 2000-01-12 Fabrizio Polacco <fab@prosa.it>
502 grolj4: Paper size will be searched case-insensitively.
504 * grolj4/lib.h: Add check for strcasecmp().
505 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
506 * configure.in: Check for strcasecmp().
508 2000-01-11 Werner LEMBERG <wl@gnu.org>
510 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
513 2000-01-10 Werner LEMBERG <wl@gnu.org>
515 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
518 Add a new read-only register, `.Y', which contains the groff
521 * troff/input.cc (init_input_requests): Define it.
522 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
523 * doc/groff.texinfo, troff/troff.man: Document it.
525 * libgroff/Makefile.sub (version.cc): Add definition of
526 `Version_string[]', consisting of `<major>.<minor>.<revision>'
527 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
528 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
529 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
530 troff/input.cc, pfbtops/pfbtops.c: Use it.
532 2000-01-10 Fabrizio Polacco <fab@prosa.it>
534 Add a revision scheme to the groff package.
536 * REVISION: New file.
537 * libgroff/Makefile.sub (version.cc): Use it to define
539 * grops/psrm.cc: Use revision_string (converted to an unsigned
540 integer) in constructor of resource_manager.
542 2000-01-10 Bruno Haible <haible@clisp.cons.org>
544 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
546 * Makefile.in (DEVDIRS): Add devutf8.
547 * grotty/tty.cc: Include device.h.
548 (glyph): Change type of `code' to `unsigned int'.
549 (tty_printer): New field is_utf8. Constructor takes device argument.
550 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
551 (tty_printer::add_char): Change type of first arg to `unsigned int'.
552 (tty_printer::put_char): New function.
553 (tty_printer::end_page): Use put_char() instead of ::putchar().
554 (make_printer): Pass device to tty_printer constructor.
555 * nroff.sh: Determine default device by calling 'locale'. As a
556 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
557 Recognize UTF-8 locales.
558 * tmac/eqnrc: Recognize utf8 like latin1.
559 * tmac/troffrc: Device utf8 needs tmac.tty.
561 2000-01-07 Werner LEMBERG <wl@gnu.org>
563 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
565 2000-01-07 Paul Eggert <eggert@twinsun.com>
567 Add a new predefined writeable number register, `year',
568 which contains the current year.
570 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
571 * tmac/tmac.s: Use it.
572 * troff/input.cc (init_registers): Initialize it.
574 2000-01-06 Werner LEMBERG <wl@gnu.org>
576 * PROBLEMS: Fixed typo.
578 2000-01-04 Paul Eggert <eggert@twinsun.com>
580 * PROBLEMS: Add Y2k advice for the yr number register.
582 2000-01-03 Paul Eggert <eggert@twinsun.com>
584 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
586 2000-01-02 Werner LEMBERG <wl@gnu.org>
588 * tmac/tmac.arkup: Slight modification of macros to provide better
589 appearance for non-HTML formats.
591 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
593 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
594 does not automatically translate to malloc(n) on all OSes
595 (e.g., SunOS) so do it explicitly. Also, check the returned
598 2000-01-01 Werner LEMBERG <wl@gnu.org>
600 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
602 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
603 expects this variable
605 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
607 * doc/Makefile: Added instructions to create HTML and text
608 versions of some files.
610 1999-12-31 Werner LEMBERG <wl@gnu.org>
612 * Updated INSTALL.gen.
614 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
615 better resp. correctly with non-HTML devices.
617 Version 1.15 released
618 =====================
620 1999-12-28 Werner LEMBERG <wl@gnu.org>
622 * NEWS, VERSION: Changed to 1.15
624 1999-12-27 Paul Eggert <eggert@twinsun.com>
626 * nroff/nroff.man: -S is safer, not safe.
628 * groff/groff.cc (main): Use `safer', not `safe', in variable
629 names. This does not change the behavior.
631 * troff/input.cc (main): Likewise.
633 * nroff/nroff.sh: Likewise.
635 * troff/input.cc (prepend_string): New function.
636 (main): Prepend -msafer, so that we check macro libraries for
639 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
641 Version 1.14 released
642 =====================
644 1999-12-26 Werner LEMBERG <wl@gnu.org>
646 * NEWS, VERSION: Changed to 1.14.
648 1999-12-24 Werner LEMBERG <wl@gnu.org>
650 * refer/refer.cc: Fixing the last fix.
652 Version 1.13 released
653 =====================
655 1999-12-23 Werner LEMBERG <wl@gnu.org>
657 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
662 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
664 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
665 document conventions, the version number must be a real.
667 Version 1.12.1 released
668 =======================
670 1999-12-22 Werner LEMBERG <wl@gnu.org>
672 * VERSION: Changed to 1.12.1.
674 1999-12-22 Alan Rooks <arooks@istar.ca>
676 * refer/refer.cc (do_file): Slight modification to satisfy the
677 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
680 1999-12-20 Werner LEMBERG <wl@gnu.org>
682 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
685 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
686 list of unsafe requests.
688 * pic/pic.man: Fixed a typo.
690 * man/groff_out.man: Fixed a typo.
692 1999-12-18 Werner LEMBERG <wl@gnu.org>
694 * Makefile.in: Doc fixes.
696 1999-12-17 Fabrizio Polacco <fab@prosa.it>
698 * groff/groff.cc: Missing `U' option added to getopt().
700 * troff/troff.man: Missing `U' option added to synopsis.
702 Version 1.12 released
703 =====================
705 1999-12-14 Werner LEMBERG <wl@gnu.org>
707 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
710 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
711 with the more appropriate terms `safer' and `unsafe'.
713 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
714 sys_nerr and sys_errlist[].
716 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
718 * pic/pic.y, pic/pic.cc: Added check for fmod().
720 1999-12-13 Werner LEMBERG <wl@gnu.org>
722 * VERSION: Changed to 1.12.
724 Here some patches from various sources; most of them taken from
725 the Debian distribution.
727 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
728 tmac/Makefile.sub: New files copied directly from the NetBSD
729 distribution. Probably, some additional adaptation later on is
732 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
735 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
736 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
737 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
738 (`-S') is now the default.
740 * README, NEWS: Updated.
742 1999-12-09 Werner LEMBERG <wl@gnu.org>
744 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
746 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
748 1999-12-06 Werner LEMBERG <wl@gnu.org>
750 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
751 grief than relief today. Additionally, it is against the GNU
754 * configure: Recreated.
756 1999-12-05 Werner LEMBERG <wl@gnu.org>
758 * configure.in: Added GROFF_LIBM.
760 * configure: Recreated.
762 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
765 * Makefile.in: Added definition of $(LIBM).
767 * Makefile.comm (LIBM): Removed.
769 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
771 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
773 * doc/Makefile: Added rule for generation pic.html.
775 (clean): Files produced by grohtml will be removed also.
777 * doc/pic.ms: Small fix.
779 * tmac/tmac.html: Fixed suppression of headers.
781 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
783 * tmac/tmac.html: Fixing horizontal arrows.
785 Turning off hyphenation.
787 * tmac/tmac.an: Improved support for grohtml; better indentation,
790 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
792 * tmac/tmac.arkup: Added CDFTP macro
794 * tmac/tmac.html: All headers are turned off for ms, me, and mm
797 * tmac/troffrc: Some additions for HTML stuff.
799 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
801 * tmac/tmac.html: Small changes.
803 1999-09-26 Werner LEMBERG <wl@gnu.org>
805 * doc/groff.texinfo: Minor fixes.
807 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
809 * devhtml/TR: Changed spacewidth to 3.
811 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
813 * tmac/tmac.html: Moved markup macros to tmap.arkup.
815 * tmac/tmac.arkup: New file.
817 * grohtml/ChangeLog: New file.
819 1999-09-16 Werner LEMBERG <wl@gnu.org>
821 * doc/groff.texinfo (Common Features): Added Copying chapter.
822 Changed format to @smallbook.
824 1999-09-15 Werner LEMBERG <wl@gnu.org>
826 * NEWS: Added info about groff.texinfo.
828 * doc/groff.texinfo: Will now compile (using texi2dvi) without
831 1999-09-14 Werner LEMBERG <wl@gnu.org>
833 * groff/groff.man: More updates.
835 1999-09-13 Werner LEMBERG <wl@gnu.org>
837 * doc/groff.texinfo: New file. This manual is still very
838 rudimentary. It has been originally contributed by Trent
839 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
842 * INSTALL: Added information about the `doc' subdir
844 * troff/troff.man: Minor fixes.
846 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
849 * troff/input.cc (usage): Added missing `-ffam' to usage message.
851 * Makefile.in (dist): groff-$(version).tar.gz must be removed
852 also, otherwise it is included itself in another call of `make
855 * groff/groff.cc (synopsis): Removed superfluous space.
857 * PROJECTS, PROBLEMS, NEWS: Updated.
859 * xditview/Makefile: Removed.
861 * VERSION: Updated to 1.12beta.
863 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
865 * README: Updated: Included documentation about CVS repository,
866 mailing lists, and daily snapshots.
868 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
870 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
872 * tmac/tmac.an: If the tag didn't fit into the space that the
873 macro `TP' specifies, the rest of the tag went into the space for
876 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
878 * grolj4/lj4.cc: Added duplex printing (option `-d').
880 * grolj4/grolj4.man: Document duplex printing.
882 1999-09-12 Werner LEMBERG <wl@gnu.org>
884 * doc/Makefile (pic.ps): Fixed rule which caused problems with
885 non-GNUish sed programs.
887 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
890 * configure.in (LIBS): Added `-lc'
892 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
894 * pic/tex.cc (solid_arc): Casting M_PI to double.
896 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
898 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
899 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
900 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
902 * groff/groff_man.man: New file. This manual page was originally
903 written for the Debian GNU/Linux system by Susan G. Kleinmann
906 * eqn/list.cc (list_box::compute_metrics,
907 list_box::compute_sublist_width): Removed variable declaration to
908 avoid shadowing warnings.
910 * grops/psrm.cc (resource_manager::process_file): Ditto.
912 * tfmtodit/tfmtodit.cc (main): Ditto.
914 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
915 to avoid shadowing warnings.
917 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
918 shadowing loop variable.
920 * groff/groff.man, troff/troff.man: Added doc about grohtml.
922 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
924 New grohtml frontend to convert groff input to html.
926 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
928 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
930 * tmac/eqnrc: Added html device.
932 * tmac/tmac.html: New file.
934 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
935 (troff_output::start_picture, troff_output::finish_picture),
936 tbl/main.cc (process_input_file):
937 Surrounded output with `graphics_start' and `graphics_end' so that
938 the html driver can identify non-text portions.
940 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
941 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
942 grotty/tty.ps (tty_printer::set_char): Additional parameter
945 * include/printer.h: Class printer: New function
946 set_char_and_width; new variables (is_char_named, is_named_set,
947 named_command, named_char_s, named_char_n) to hold information
948 about named characters -- needed by the html driver.
950 * libdriver/printer.cc (printer::set_ascii_char,
951 printer::set_special_char): Use set_char_and_width.
953 * devhtml/*: New device files for html driver.
955 * grohtml/*: New driver grohtml.
957 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
959 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
962 1999-09-11 Luke Mewburn <lukem@netbsd.org>
964 * libgroff/string.cc (search): Small fix to test against NULL
967 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
969 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
970 \b'abc') were stacked in reverse order when processed in a
973 * troff/node.h: Added `*last' to struct `node' to make the above
976 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
977 The default scale for the 'f' and 't' graphics functions were 'm'
978 rather than 'u' (i.e., no scaling).
980 1999-09-11 Peter Miller <peterm@jna.com.au>
982 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
983 do_file), soelim/soelim.man: Added `-I file' option to soelim,
984 defining include paths.
986 * soelim/soelim.cc (include_path_append): New function.
988 1999-09-11 Larry Jones <larry.jones@sdrc.com>
990 * tbl/main.cc (process_options): Unix (at least Documenter's
991 Workbench) tbl allows arbitrary non-alpha characters between
994 1999-09-11 Paul Eggert <eggert@twinsun.com>
996 Y2k fixes. Don't assume that the current year precedes 2000.
998 * doc/meref.me: Add \n(y2, \n(y4.
1000 * tmac/doc-common (Yr): New number register.
1001 (Dd): Don't assume current year precedes 2000.
1003 * tmac/tmac.e (td): Likewise.
1004 (y2, y4): New number registers.
1006 * pic/pic.man: Update reference for pic paper to May, 1991
1009 1999-09-11 Werner LEMBERG <wl@gnu.org>
1011 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1012 Removed quotation marks which prevented correct expansion of
1015 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
1017 1999-09-10 Werner LEMBERG <wl@gnu.org>
1019 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
1022 * Removed configure.old.
1024 1999-08-31 Werner LEMBERG <wl@gnu.org>
1026 * VERSION: Updated to 1.11.1
1028 1999-05-27 Werner LEMBERG <wl@gnu.org>
1030 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
1032 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
1033 added quotations around $(tmac_wrap) to avoid syntax error if
1036 * configure: Newly generated using autoconf 2.13.
1038 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
1040 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
1042 * README, PROJECTS, NEWS, INSTALL, VERSION,
1043 doc/Makefile. doc/pic.ms, groff/groff.man:
1044 Prepare for 1.11 release. No code changes.
1045 Documentation for pic added (doc/pic.ms).
1047 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
1049 * Version 1.10 released.
1051 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
1053 * afmtodit/afmtodit.pl: Avoid comment on first line.
1055 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
1057 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
1058 * configure.in: Call it.
1060 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
1061 (distfiles): Doesn't depend on config.log or config.cache.
1063 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
1065 * grog/grog.sh: Use print "" rather than print in END rule.
1067 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
1069 * tbl/main.cc (process_data): Don't give error for excess data
1070 entries that are comments.
1072 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
1074 * tbl/main.cc (process_data): Fix case where new for-scope rules
1075 silently change meaning of code.
1077 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
1079 * troff/env.cc (hyphenate): Loop over all consecutive sequences
1080 of non-zero hyphenation codes.
1082 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
1084 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
1086 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
1088 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
1090 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
1092 * tmac/tmac.andoc: Make it work in compatibility mode.
1094 * refer/token.h (token_info::is_range_sep): New function.
1095 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
1096 * refer/ref.cc (reference::output): More sophisticated check for
1099 * devps/prologue.ps (MANUAL): New procedure.
1100 * grops/ps.cc (main): New -m option.
1101 (usage): Include -m.
1102 (ps_printer::~ps_printer): Implement -m.
1104 * aclocal.m4 (GROFF_G): New macro.
1105 * configure.in: Call it.
1106 * Makefile.in (g): Provided by configure.
1108 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
1110 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
1113 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
1114 (tmac_m, tmac_s): Deleted.
1115 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
1116 tmac_s_prefix): New variables.
1117 (MDEFINES): Change accordingly.
1118 * Makefile.comm (.man.n): Use new TMAC_* variables.
1119 * configure.in (GROFF_TMAC): Call.
1120 * aclocal.m4 (GROFF_TMAC): Define.
1121 * tmac/Makefile.sub (stamp_wrap): New target.
1122 (install_data, uninstall_sub): Handle macro wrapping.
1124 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
1126 * tbl/main.cc (main): Ignore -T option.
1128 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
1130 * devlj4/generate/special.map: Add definition of \(nb.
1132 * tmac/tmac.dvi: Add definition of \(nb.
1134 * troff/dictionary.c (dictionary::dictionary): association::v gets
1135 initialized by association::association.
1137 * tmac/Makefile.sub: Avoid using temporary files when installing.
1139 * troff/env.cc (environment::set_font): Make bad font number a
1142 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
1144 * Makefile.in (datadir): Use share rather than lib.
1146 * groff/groff.cc (basename): Rename to xbasename.
1148 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
1150 * Makefile (CCLIBS): Don't use.
1151 * Makefile.ccpg: Likewise.
1153 * acgroff.m4: Rename to...
1154 * aclocal.m4: Modify extensively for autoconf 2.
1155 * configure.in: Likewise.
1156 * Makefile.in: Likewise.
1158 * groff/pipeline.c (const): Declare as empty if __STDC__ not
1160 (xstrsignal): Check for definition of NSIG. Conditionalize
1161 on SYS_SIGLIST_DECLARED. Make return type const.
1163 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
1165 * troff/input.cc (interpolate_macro): Rephrase missing space
1168 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
1170 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
1171 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
1172 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
1173 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
1174 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
1175 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
1176 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
1177 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
1178 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
1179 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
1180 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
1183 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
1185 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
1187 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
1189 (macro_iterator::macro_iterator): Add additional argument.
1191 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
1193 * troff/div.cc (vertical_size::vertical_size): In place of integer
1194 specifying line spacing use cunits specifying post vertical
1196 (macro_diversion::output, top_level_diversion::output): Likewise.
1197 * troff/div.h: Change declarations accordingly.
1198 * troff/env.cc (pending_output_line): Replace ls field by post_vs
1200 (pending_output_line::pending_output_line,
1201 pending_output_line::output, environment::output,
1202 environment::output_line, environment::output_title,
1203 environment::hyphenate_line): In place of
1204 integer specifying line spacing use cunits specifying post vertical
1206 (environment::environment): Add post_vertical_spacing and
1207 prev_post_vertical_spacing arguments.
1208 (environment::get_post_vertical_spacing): New function.
1209 (environment::total_post_vertical_spacing): New function.
1210 (environment::post_vertical_spacing): New function.
1211 (init_env_requests): Initialize pvs request and .pvs register.
1212 * troff/env.h: Change declarations.
1214 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1216 * tmac/tmac.pspic: Immediately remove the temporary file.
1218 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1220 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1221 height is specified.
1223 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1225 * tbl/table.c (struct vertical rule, class table_entry): Use int
1226 not short for start_row and end_row.
1228 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1230 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1232 (diverted_space_node::reread, process_input_stack): Call
1233 trapping_blank_line() rather than blank_line().
1234 (init_input_requests): Bind "blm" to blank_line_macro().
1236 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1238 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1240 * troff/env.cc (environment::possibly_break_line): Require that
1241 width total excluding width of final space node be greater than
1242 the target text length.
1244 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1246 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1248 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1250 * troff/node.cc (charinfo_node): New class.
1251 (glyph_node, composite_node): Derive from charinfo_node. Change
1252 member functions accordingly.
1254 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1256 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1258 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1260 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1262 * devps/generate/textmap (notsubset): Add.
1264 * tmac/tmac.a4: New file.
1266 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1268 * pic/main.cc (had_parse_error): New variable.
1269 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1271 (main): Return 1 if had_parse_error is true.
1273 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1275 * grolj4/lj4.cc (main): Avoid use of strtoul.
1277 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1279 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1280 iso_8859_1 or $LESSCHARSET is latin1.
1282 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1284 * hpftodit: New directory.
1285 * Makefile.in (CCPROGDIRS): Add hpftodit.
1286 * devlj4/generate: New directory.
1288 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1290 * configure.in: Don't use AC_VFORK.
1291 * groff/pipeline.c (run_pipeline): Use fork() always.
1293 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1295 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1297 * Makefile.in (CCPROGDIRS): Add grolj4.
1298 (DEVDIRS): Add devlj4.
1299 * grolj4, devlj4: New directories.
1300 * tmac/troffrc: Handle lj4.
1301 * tmac/tmac.lj4: New file.
1303 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1305 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1307 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1309 * troff/input.cc (do_if_request): At end of second string, switch
1310 environments before getting next token.
1312 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1314 * devps/psstrip.sed: Split rule that strips whitespace on either
1317 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1319 * troff/node.h (font_family::make_definition): Add return value to
1320 declaration. * troff/symbol.h (symbol::operator==,
1321 symbol::operator!=): Likewise.
1323 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1325 * groff/groff.cc (main, help, synopsis): Handle -S.
1326 (possible_command::insert_arg): New function.
1328 * tmac/tmac.safer: New file.
1329 * tmac/msafer.man: New file.
1330 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1332 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1334 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1335 * pic/pic.y (placeless_element): Avoid unsafe operations if
1336 `safer_flag' is set.
1337 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1339 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1341 * eqn/lex.cc (get_token): Put call to add_context() in block to
1342 work around Sun C++ 4.0 bug.
1344 * include/stringclass.h (operator +): Use ?: instead of `if' to
1345 work around Sun C++ 4.0 bug.
1347 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1349 * tbl/main.cc (process_format): Accept - as a synonym for the _
1352 * libbib/index.cc (minus_one): Don't declare as const.
1354 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1356 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1358 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1360 * troff/input.cc (write_macro_request): New function.
1361 (init_input_requests): Bind write_macro_request to writem.
1363 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1365 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1368 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1370 * tmac/tmac.s (@TS): Renamed from TS.
1371 (TS): Call LP then TS again.
1372 (cov*ab-init): Alias @TS to TS.
1374 * tmac/tmac.s: Allow QP or RS to initialize.
1376 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1377 Move initializations of PS and LL here.
1378 (par@init): Don't initialize HY. Avoid changing environment 0.
1379 (par*env-init): Don't all par@reset.
1381 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1383 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1385 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1387 * Makefile.in (MDEFINES): Add LDFLAGS.
1388 (LDFLAGS): Add definition line.
1390 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1392 * troff/input.cc (get_optional_char): Split off error check into...
1393 (check_missing_character): New function.
1394 * troff/token.h: Declare it.
1395 * troff/env.cc (margin_character): Don't call get_optional_char.
1396 Only call tok.next() after making the node.
1398 * include/lib.h (getopt): Make 2nd argument char *const *.
1400 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1402 * nroff/conftest.sh: Deleted.
1404 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1406 * pic/make-dos-dist: Deleted.
1408 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1410 * devps/psstrip.sed: Strip comments before stripping trailing
1413 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1415 * Version 1.09 released.
1417 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1419 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1421 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1423 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1425 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1427 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1428 about returning without a value.
1430 * troff/charinfo.h (charinfo::get_special_translation): Cast
1431 TRANSLATE_NONE to int.
1433 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1434 test. Fix test so that it works with n unsigned.
1436 * pic/pic.y (defaults_table): Fully bracket initializer.
1437 * pic/lex.cc (lookup_keyword): Likewise.
1438 * eqn/lex.cc (token_table, def_table): Likewise.
1439 * eqn/box.cc (param_table): Likewise.
1440 * troff/input.cc (warning_table): Likewise.
1441 * libgroff/font.cc (table): Likewise.
1442 * grops/ps.cc (ps_printer::special): Likewise.
1443 * grops/psrm.cc (resource_manager::process_file): Likewise.
1444 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1445 * refer/command.cc (command_table): Likewise.
1446 * addftinfo/addftinfo.cc (param_table): Likewise.
1448 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1449 about temp's being unused.
1450 (unused): New function.
1452 * groff/pipeline.cc: Declare c_fatal.
1454 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1457 * libbib/index.cc (index_search_item::load): Prevent compiler
1458 warnings about fd_closer's being unused.
1459 (unused): New function.
1461 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1463 * troff/input.cc (copy_mode_error): Make `prefix' static.
1466 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1468 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1469 HAVE_CC_OSFCN_H and modify accordingly.
1471 * troff/input.cc (init_charset_table): radicalex overlaps
1474 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1475 udodo!hans@relay.NL.net).
1476 * groff/configure.in: Call it.
1478 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1479 * groff/configure.in: Call it.
1480 * include/lib.h: Conditionalize declaration of pclose.
1482 * troff/div.cc (last_page_number): New global variable.
1483 (top_level_diversion::begin_page): Exit if we just printed the
1485 * troff/div.h (last_page_number): Declare it.
1486 * troff/input.cc (parse_output_page_list): Set last_page_number.
1488 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1489 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1490 tmac/tmac.X: Likewise.
1491 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1492 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1494 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1496 * tmac/doc-ditroff (hK): Remove groff specific code which
1497 prevented page-breaks between separate manual entries. If this is
1498 the first page, don't set the page number to 1.
1500 * acgroff.m4 (GROFF_POSIX): New macro.
1501 * configure.in: Use it.
1503 * troff/node.cc (class real_output_file,
1504 real_output_file::real_output_file,
1505 real_output_file::~real_output_file): Conditionalize use of
1506 popen/pclose on POPEN_MISSING.
1507 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1508 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1509 (pipe_source): Similarily.
1511 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1513 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1514 presence of declarations by trying to compile example with
1515 conflicting declarations. (gcc only gives a warning for missing
1518 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1520 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1521 (from Ulrich Lauther).
1523 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1525 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1527 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1529 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1530 pointers and ints have different sizes.
1532 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1534 * tmac/tmac.s (par*env-init): Call par@reset.
1536 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1538 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1540 (par*push-tag-env, par*pop-tag-env): New macros.
1542 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1544 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1545 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1547 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1548 comment. Include <time.h>.
1550 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1552 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1553 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1556 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1558 * troff/input.cc (read_request): Only print a prompt if reading
1559 from the terminal. Also clearerr on EOF if reading from the
1560 terminal. Declare isatty.
1562 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1564 * refer/label.y: Rename map_t to map_func and extractor_t to
1567 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1569 * include/assert.h: Don't use volatile.
1570 * libgroff/assert.cc: Likewise.
1572 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1574 * troff/input.cc (abort_request): Look at character in tok before
1577 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1579 * troff/troff.h (NO_RETURN): Deleted.
1580 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1581 * troff/input.cc (exit_troff): Likewise
1583 * Makefile.in: Remove `Making ...' messages since GNU make now
1586 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1588 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1590 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1593 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1595 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1597 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1599 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1600 MARK_REG if there was no left delimiter.
1602 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1604 * pic/troff.cc (troff_output::text): Set line thickness to
1605 relative before outputting text.
1607 * tmac/tmac.e (@k): Don't zero ?T.
1610 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1612 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1614 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1616 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1619 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1621 * troff/input.cc (ignoring): New variable.
1622 (ignore): Set ignoring during call to do_define_macro.
1623 (do_define_macro): Clear ignoring before interpolating terminating
1625 (copy_mode_error): New function.
1626 (get_char_for_escape_name, read_long_escape_name,
1627 interpolate_arg): Use copy_mode_error.
1628 (warning_table): Add WARN_IG.
1629 * troff/troff.h (WARN_IG): Declare.
1630 (WARN_TOTAL): Change accordingly.
1632 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1633 * groff/groff.cc (strsignal): Delete declaration.
1635 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1637 * troff/div.cc (page_offset): Use 'm' as default scaling.
1639 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1641 * nroff/nroff.sh: Ignore -u.
1643 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1645 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1647 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1649 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1651 (B2): With -Tascii, leave additional vertical space before
1652 and after. Ensure that the left and right indent is restored to
1653 what it was even if the point size changes. Don't call
1654 par@finish. Change the indent, line length and title length
1655 directly. With -Tascii, make the width of the box 1n less.
1656 (B1): Remember 1n at the current point size. Don't call
1657 par@reset. Change the indent, line length and title length
1658 directly. Ensure that the temporary indent is preserved.
1659 (par*box-mark-top): Turn off no spacing mode.
1661 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1663 * Makefile.in (dist): Use .gz suffix.
1665 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1667 * troff/input.cc (main): Add return 0.
1668 * pic/main.cc (main): Use return instead of exit.
1669 * tbl/main.cc (main): Likewise.
1670 * eqn/main.cc (main): Likewise.
1671 * grops/ps.cc (main): Likewise.
1672 * grotty/tty.cc (main): Likewise.
1673 * groff/groff.cc (main): Likewise.
1674 * grodvi/dvi.cc (main): Likewise.
1675 * refer/refer.cc (main): Likewise.
1676 * indxbib/indxbib.cc (main): Likewise.
1677 * lkbib/lkbib.cc (main): Likewise.
1678 * soelim/soelim.cc (main): Likewise.
1679 * addftinfo/addftinfo.cc (main): Likewise.
1680 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1681 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1683 * troff/token.h (process_input_stack): Don't declare as static.
1684 * troff/input.cc: Likewise.
1686 * troff/node.c (invalidate_fontno): Make it a static member of
1687 class font_family. Change callers.
1688 * troff/node.c: Change declaration.
1690 * tbl/main.cc (struct input_entry_format): Add explicit public
1692 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1693 struct double_hline_stuff): Likewise.
1694 * tbl/table.h (struct entry_format): Likewise.
1695 * pic/object.h (struct saved_state): Likewise.
1697 * include/stringclass.h: Add forward declarations of friend
1698 functions that are later declared as inline. Don't include inline
1699 specifier in friend declaration.
1701 * libgroff/lib.h: Declare popen and pclose.
1702 * acgroff.m4 (GROFF_POPEN): New macro.
1703 * configure.in: Call it.
1705 * include/lib.h (PI): New constant. Undef first if necessary.
1706 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1707 * grops/ps.cc (degrees, radians): Likewise.
1708 * libgroff/font.cc (font::get_skew): Likewise.
1710 * grops/ps.cc (is_ascii): New function.
1711 (ps_output::put_string): Use is_ascii. Use csprint rather than
1713 (ps_printer::define_encoding): Use csspace.
1714 * libgroff/strtol.c (ISASCII): New macro.
1715 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1716 Use ISASCII rather than isascii.
1717 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1718 * libgroff/cset.cc: Likewise.
1719 * libdriver/input.cc: Include cset.h.
1720 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1723 * refer/refer.cc (main): Use %ld rather than %d for longs.
1725 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1728 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1730 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1732 * troff/input.cc (hyphenation_code): Skip white space between
1735 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1737 * tbl/table.h (table::entry_list_tailp): New member.
1738 (table::table): Initialize it.
1739 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1742 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1744 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1745 with negative horizontal positions. Remove casts of glyph::hpos to
1747 (USHRT_MAX): Delete definition.
1748 (SHRT_MAX, SHRT_MIN): New definitions.
1749 (glyph::hpos): Change type to short.
1750 (tty_printer::end_page): Output multiple backspaces if necessary.
1751 Remove casts of glyph::hpos to int.
1753 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1755 * tmac/tmac.s (@RT): New definition.
1757 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1759 * refer/refer.cc (do_file): Make sure current_filename is set when
1762 * pic/common.cc (common_output::dot_line): Handle zero length
1765 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1767 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1768 (par@init): Initialize \n[HY].
1770 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1772 * troff/dictionary.cc (dictionary::remove): Continue when
1775 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1777 * Makefile.com (.y.cc): Avoid ending up with two versions of
1780 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1782 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1783 (\(,C): Likewise. Also fix typo.
1785 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1787 * lib.h: Delete extraneous semi-colon.
1789 * Add pso request: `so' from a pipe.
1790 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1791 (file_iterator::close): New function.
1792 (file_iterator::~file_iterator, file_iterator::next_file): Use
1793 file_iterator::close.
1794 (file_iterator::backtrace): Say `process' rather than `file' when
1795 the stream is popened.
1796 (pipe_source): New function.
1797 (init_input_requests): Bind ".pso" to pipe_source.
1799 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1801 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1803 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1804 digits in lower case.
1806 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1808 * Version 1.08 released.
1810 * Makefile.in (dist): Insert || true after ln -s commands that
1813 * mm: Update to mm 1.16.
1815 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1816 * configure.in: Call GROFF_CSH_HACK. Substitute for
1818 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1820 * nroff/Makefile.sub (nroff): New target.
1821 (install_data): Install nroff.
1822 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1823 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1825 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1827 * eqn/Makefile.sub (neqn): Add chmod +x.
1829 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1831 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1833 * troff/input.cc (string_iterator::string_iterator()): Initialize
1836 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1838 * troff/div.cc (macro_diversion::space,
1839 top_level_diversion::space): Don't set high_water_mark.
1840 (macro_diversion::output, top_level_diversion::output): Don't
1841 include post line space in high water mark.
1843 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1845 * eqn/eqn.y: Don't define YYDEBUG.
1846 * pic/pic.y: Likewise.
1848 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1850 * tmac/tmac.e ([3): Add space after comma following editors.
1851 Change double spaces to single spaces.
1852 ([4): Change double spaces to single spaces.
1854 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1855 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1856 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1857 after %!PS-Adobe- (for Newsprint).
1859 * troff/div.cc (top_level_diversion::begin_page): When
1860 before_first_page is 1, set page_number to 1.
1862 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1864 * eqn/box.cc (box::top_level): Protect equation with \&.
1866 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1868 * groff/groff.cc (possible_command::set_name): Delete old name.
1870 * groff/groff.cc (possible_command::~possible_command): Use
1873 * troff/node.cc (troff_output_file::begun_page): New member.
1874 (troff_output_file::troff_output_file): Initialize it.
1875 (troff_output_file::really_begin_page): Only output V command if a
1876 page has been begun.
1878 * pic/pic.y (placeless_element): Delete argument to PRINT after
1881 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1883 * Make wrapman work.
1884 * troff/div.h (class top_level_diversion): Replace
1885 first_page_begun by before_first_page (with opposite sense).
1886 * Change first_page_begun to before_first_page inverting sense.
1887 * troff/div.cc (class nl_reg): New class.
1888 (init_div_requests): Use class nl_reg for \n(nl.
1889 (top_level_diversion::begin_page): Don't call
1890 output_file::begin_page if before_first_page is 2;
1891 reset before_first_page afterwards. If have_next_page_number is
1892 false, then always increment page_number.
1893 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1894 Restore compatibility mode after loading, and then disable
1895 compatibility mode in TH.
1897 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1899 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1901 * troff/node.h (output_file::trailer): Declare.
1902 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1903 * troff/node.cc (output_file::trailer): New function.
1904 (troff_output_file::~troff_output_file): Move most code into...
1905 (troff_output_file::trailer): New function.
1906 (class troff_output_file): Delete page_length member. Declare
1908 (troff_output_file::really_begin_page): Use current page length
1909 for final V command.
1911 * tbl/main.cc (struct options): New decimal_point_char member.
1912 (options::options): Initialize this.
1913 (process_options): Implement decimalpoint option.
1914 (process_data): Pass decimal_point_char option to table::table.
1915 * tbl/table.h (class table): New decimal_point_char member.
1916 (table::table): Add additional argument.
1917 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1918 second argument specifying decimal point character. Use this
1920 (table::table): Initialize decimal_point_char.
1921 (table::add_entry): Change call to find_dot.
1923 * troff/input.cc (get_copy, token::next): Implement \V.
1924 (interpolate_environment_variable): New function.
1926 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1928 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1929 * pic/pic.y: Likewise.
1931 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1933 * refer/ref.cc (reference::insert_field, reference::delete_field):
1935 * troff/number.cc (parse_term): Likewise.
1937 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1938 * configure.in: Use GROFF_PROG_YACC.
1940 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1942 * Makefile.in (OPTIMIZE): New define.
1943 (DEBUG): Empty by default.
1944 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1946 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1947 (GROFF_ARRAY_DELETE): Likewise.
1948 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1950 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1952 * devps/psstrip.sed: Use different delimiter on last line (so that
1953 it works with BSD 4.4 sed.)
1955 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1957 * devps/psstrip.sed: Delete comments.
1959 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1960 optind, opterr, optarg.
1961 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1964 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1966 * Makefile.in (check): Dummy target.
1968 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1970 * Version 1.07 released.
1972 * Integrate mm 1.11.
1974 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1975 where start_col was meant.
1977 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1979 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1981 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1983 * troff/input.cc (token::next): Make \z\o'...' and similar things
1986 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1988 (environment): Add margin_character_flags member.
1989 * env.cc (environment::environment(symbol),
1990 environment::environment(const environment *): Initialize
1991 margin_character_flags.
1992 (margin_character): Rewrite.
1993 (environment::output_line): Add a margin character if
1994 margin_character_flags is non-zero. Turn off the
1995 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1996 zero, use margin_character_node without copying and then set
1997 margin_character_node to 0.
1999 * devps/DESC.in: Change minimum size to 1000.
2001 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
2003 * troff/symbol.h (symbol::hash): Change return type to unsigned
2005 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
2008 * test-groff: Use -r rather than -x.
2010 * grops/psfig.diff: Include in distribution again.
2012 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
2014 * Makefile.in (dist): Use gzip.
2016 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
2018 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
2019 unistd.h as well as in stdlib.h.
2020 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
2021 defined; otherwise include <sys/types.h> and <unistd.h> if
2022 UNISTD_H_DECLARES_GETOPT is defined.
2024 * configure.in: use builtin(include, ... rather than include(...
2025 * configure: Regenerate with autoconf 1.3.
2027 * libdriver/print.cc (printer::adjust_arc_center): Use new
2028 algorithm suggested by Andy Fyfe.
2030 * libdriver/printer.cc (printer::adjust_arc_center): New function.
2031 * include/printer.h: Declare this.
2032 * grops/ps.cc (ps_printer::draw): Use it.
2033 * grodvi/dvi.cc (dvi_printer::draw): Use it.
2035 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
2037 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
2039 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
2041 * eqn/main.cc (main): Handle "eqn -".
2043 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
2045 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
2047 * mm: Integrate version 1.08.
2049 * pic/troff.cc (troff_output::finish_picture): Set
2050 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
2051 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
2052 if it's not defined. Check whether the register is non-zero rather
2053 than whether it's not defined.
2054 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
2056 * indxbib/indxbib.cc: Move all signal handling into...
2057 * indxbib/signal.c: New file.
2058 * configure.in: Call AC_RETSIGTYPE.
2060 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
2061 * configure.in: Call GROFF_STRUCT_EXCEPTION.
2062 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
2064 * troff/input.cc (token::token, token::operator=): Work round SGI
2066 * pic/object.cc (position::position): Likewise.
2068 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
2070 * pic/pic.h: Move declaration of hypot().
2072 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
2074 * pic/pic.h: Declare hypot().
2076 * pic/pic.h: Define M_PI if necessary.
2078 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
2080 * tmac/tmac.e (re): Add alternative version that doesn't use groff
2083 * devps/prologue.ps (RE): Handle the possibility that the old font
2084 doesn't have a FontName entry.
2086 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
2088 * tmac/tmac.e (fam): Redefine to set family in environment 2.
2089 (@C): Use @fam not fam.
2091 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
2093 * lookbib/lookbib.cc (main): Change type of start to const char *.
2094 * lkbib/lkbib.cc (main): Likewise.
2096 * eqn/lex.cc (definition::definition): Don't use member
2097 initializer syntax for members of anonymous unions.
2099 * troff/input.cc (input_stack::backtrace): Change type of to const
2102 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
2104 * include/stringclass.h (class string): Declare inline friend
2105 functions as inline in class declaration.
2106 * troff/hvunits.h (class hunits, class vunits): Likewise.
2107 * include/refid.h (class reference_id): Likewise
2108 * troff/troff.h (points_to_units(units), scale(units, double)):
2109 Delete declarations.
2110 * libdriver/input.cc (get_char): Delete declaration.
2111 * include/lib.h: Change 2nd argument of getopt from const char **
2113 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
2114 char **' before assigning to a `const char **'.
2115 * tbl/table.cc: Delete extra declarations of prints().
2117 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
2119 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
2120 char **' before assigning to a `const char **'.
2122 * libgroff/errarg.cc (errarg::errarg): Don't use member
2123 initializer syntax for members of anonymous unions.
2125 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
2127 * mm: Integrate version 1.07.
2129 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
2131 * troff/input.c (translate2): Rename to
2132 (translate_no_transparent).
2133 (init_input_requests): Rename tr2 to trnt.
2135 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
2137 * troff/charinfo.h (class charinfo): Add transparent_translate field.
2138 (charinfo::set_translation, charinfo::set_special_translation):
2139 Add second argument that specifies value for
2140 transparent_translate.
2141 (charinfo::get_translation, charinfo::get_special_translation):
2142 Add optional second argument that specifies whether translation is
2143 being used for transparent throughput.
2144 * troff/input.cc (charinfo::set_translation,
2145 charinfo::set_special_translation): Handle second argument.
2146 (charinfo::charinfo): Initialize transparent_translate.
2147 (translate): Split main part off into
2148 (do_translate): New function. Pass argument saying whether
2149 translation applies to transparent throughput.
2150 (translate2): New request.
2151 (init_input_requests): Bind translate2 to `tr2'.
2153 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
2155 * tbl/table.h (class table): Add `nokeep' flag.
2156 * tbl/main.cc (process_options): Handle `nokeep' option.
2157 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
2158 table::do_bottom): Don't output keep/release macro definitions or
2159 calls when `nokeep' option has been specified.
2161 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
2163 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
2165 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
2167 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
2168 block_entry::divert, alphabetic_block_entry::divert): Add extra
2169 argument giving column separation.
2170 (table::compute_widths): Pass column separation to
2171 table_entry::divert().
2172 (block_entry::do_divert): If an entry spans multiple columns and a
2173 minimumum width has been specified for each column, then set the
2174 line length to the sum of the widths (plus possibly the column
2177 * troff/input.cc (set_escape_char): Don't set the escape_char
2178 until after calling has_arg().
2180 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
2182 * tbl/table.cc (table::do_top): Add missing \s0 for double box
2185 * tbl/table.cc (table::print_double_hline): Avoid extra new line
2186 in case where r > nrows - 1.
2188 * tbl/table.cc (BODY_HEIGHT): Deleted.
2189 (LINE_SEP): New definition.
2190 (table::print_single_hline, table::print_double_hline,
2191 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
2192 table::do_row, table::do_top): Use LINE_SEP space before a line
2193 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
2195 * tbl/table.cc (text_entry::print_contents): New function.
2196 (text_string_name, right_text_string_name): Deleted.
2197 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
2198 (simple_text_entry::do_width, numeric_text_entry::do_width,
2199 alphabetic_text_entry::do_width): Don't store the contents of the
2201 (left_text_entry::simple_print, right_text_entry::simple_print,
2202 center_text_entry::simple_print,
2203 alphabetic_text_entry::simple_print,
2204 numeric_text_entry::simple_print): Print the entry directly
2205 instead of using the stored string.
2207 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
2209 * devps/Makefile: Strip PostScript files.
2210 * devps/prologue: Rename to...
2211 * devps/prologue.ps.
2212 * devps/psstrip.sed: New file.
2213 * devps/download: Use .pfa rather than .ps for installed versions
2216 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2218 * troff/env.cc (input_trap): Give a warning if the argument is out
2221 * troff/env.cc (adjust): Treat negative argument as missing. Round
2222 argument > 5 down to 5.
2224 * troff/env.cc (center, right_justify): Make negative argument zero.
2226 * troff/div.cc (page_offset, vertical_position_traps): Treat
2227 invalid argument as missing.
2228 * troff/env.cc (line_spacing, line_length, title_length, indent,
2229 underline, hyphen_line_max_request, control_char,
2230 no_break_control_char, widow_control_request, adjust, input_trap,
2231 point_size): Likewise.
2232 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2233 constant_space): Likewise.
2234 * troff/input.cc (compatible, shift, warn_request,
2235 set_escape_char): Likewise.
2237 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2238 * tbl/table.cc (table::table): Likewise.
2240 * Makefile.dev (install_dev): depends on $(DEVFILES).
2242 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2244 * devX75, devX75-12, devX100, devX100-12: New directories.
2245 * Makefile.in: Add these to DEVDIRS.
2247 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2248 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2249 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2250 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2252 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2253 (uninstall): New target.
2254 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2255 uninstall_prog, uninstall_dev): New targets.
2257 * troff/div.cc (return_request): Treat an invalid argument as
2260 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2262 * tmac/tmac.e ((f): Set up the environment even when there's a
2263 current diversion. Transperently throughput a call to @N.
2266 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2268 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2269 up to vertical resolution.
2271 * tbl/table.cc (table::do_row): Change row number after printing
2274 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2276 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2278 * Rename CHANGES to NEWS.
2280 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2282 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2284 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2286 * man.ultrix: Removed.
2288 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2290 * Makefile.comm (extraclean): Delete files whose names begin with
2293 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2296 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2298 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2299 * troff/div.cc (page_length, need_space, space_request): Treat
2300 invalid optional argument as missing.
2301 * troff/env.cc (number_lines): If the first argument is present
2302 but not a number, turn on line numbering, don't change the next
2303 line number and parse the remaining arguments.
2305 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2307 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2309 * eqn/box.h: Change declaration accordingly.
2310 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2311 the specified size was bad but don't give an error. Check for
2313 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2314 * eqn/lex (do_size): Likewise.
2316 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2318 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2321 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2323 * tbl/table.cc (table::init_output): Improve error message when
2324 table won't fit on one page.
2326 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2328 * pic/troff.cc (troff_output::start_picture): Generate line
2329 containing a horizontal motion equal to the width of the picture.
2331 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2332 using GROFF_COMMAND_PREFIX environment variable.
2334 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2336 * mdate.sh: Use $NF rather than $(NF).
2338 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2340 * pic/main.cc (main): Use %1 not %c in argument to warning.
2342 * eqn/main.cc (main): Output code to check that geqn was given the
2345 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2347 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2348 `ln -s ../Makefile .; make; rm -f Makefile'.
2350 * troff/hyphen: Rename to...
2352 * troff/input.cc (main): Delete -H option. Don't call
2354 * troff/env.cc: Include searchpath.h and macropath.h.
2355 (exception_dictionary): Deleted.
2357 (read_hyphen_file): Deleted.
2358 (hyphenation_language): New struct.
2359 (class trie, class hyphen_trie): Move declarations up.
2360 (trie_node::~trie_node): Deleted.
2361 (trie::delete_trie_node): New function.
2362 (trie::do_delete): New pure virtual function.
2363 (hyphen_trie::do_delete): New function.
2364 (trie::~trie): New function.
2365 (hyphen_trie::~hyphen_trie): New function.
2366 (trie::clear): No need to chcek that tp is not 0.
2367 (current_language, language_dictionary): New variables.
2368 (hyphen_word): Give an error if no current language. Use
2369 exceptions dictionary in current language.
2370 (hyphen_trie::read_patterns_file): Find file using macro_path.
2371 Allow comments (starting with %) in patterns file. Don't make it
2372 a fatal error if the file can't be found.
2373 (hyphenate): Return if no current language. Get the exceptions
2374 dictionary and the hyphenation patterns from the current language.
2375 (set_hyphenation_language): New variable.
2376 (hyphenation_patterns_file): New function.
2377 (hyphenation_language_reg): New class.
2378 (hyphenation_language_reg::get_string): New function.
2379 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2380 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2382 * groff/groff.cc (main, help, synopsis): Delete -H option.
2383 * include/Makefile.sub: Don't define HYPHENFILE.
2384 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2385 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2386 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2387 hyphenation patterns.
2389 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2391 * eqn/neqn.sh: New file.
2392 * eqn/Makefile.sub: Handle neqn.sh.
2394 * eqn/eqn.h: Declare `nroff' variable.
2395 * eqn/box.cc (param_table): Add `nroff' param.
2397 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2399 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2401 * troff/troff.h (WARN_FONT): New warning.
2402 (WARN_TOTAL): Change accordingly.
2403 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2404 (warning_table): Add WARN_FONT.
2405 * troff/node.cc (mount_font_no_translate): Pass argument to
2406 font::load_font. If this is non-zero, give a warning.
2407 Don't give an error message when accessing a font that has already
2408 been found to be invalid.
2409 * include/font.h (font::load, font::load_font): Add additional
2410 optional argument which suppresses error message if the font is
2412 * libgroff/font.cc (font::load_font): Handle additional argument.
2413 (font::load): Add additional argument. If this is non-null, set it
2414 to 1 and don't give error message.
2416 * include/printer.h (printer::end_page): Add argument giving
2418 * libdriver/input.cc (do_file): Pass this.
2419 * grops/ps.cc (ps_printer::end_page): Add argument.
2420 * grodvi/dvi.cc (dvi_printer::end_page,
2421 draw_dvi_printer::end_page): Add argument.
2422 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2423 columns_per_page members. New member nlines.
2424 (DEFAULT_LINES_PER_PAGE): Deleted.
2425 (tty_printer::tty_printer): Don't compute lines_per_page from
2426 font::paperlength. Don't compute columns_per_page from
2428 (tty_printer::add_char): Don't check horizontal position against
2429 columns_per_page. Grow glyphs vector if neccessary.
2430 (tty_printer::end_page): Add argument giving page_length in units.
2431 Discard lines past end of page.
2433 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2435 * tmac/tmac.tty-char: Fix definition of \(/l.
2437 * tmac/tmac.X: Define \(en.
2439 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2441 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2442 lpq, then use lp rather than lpr.
2444 * tmac/tmac.s (par@reset): Don't call `ad'.
2445 (par*env-init): Call `ad'.
2447 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2449 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2452 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2453 * indxbib/indxbib.cc: Likewise.
2455 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2457 * libgroff/putenv.c: New file.
2458 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2459 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2460 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2461 stdlib.h with AC_HAVE_HEADERS.
2463 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2465 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2468 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2470 * eqn/box.cc (gsize): Make it an int.
2471 (set_gsize): Parse argument handling increment or decrement.
2472 (box::top_level): Convert gsize to a string.
2474 * troff/input.cc (exit_troff): Make buf unsigned char [].
2475 Call to make_temp_iterator casts buf to char*.
2477 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2479 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2480 * Makefile.cpg (depend.temp): Likewise.
2482 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2484 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2486 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2488 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2490 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2492 * Version 1.06 released.
2494 * Integrate mm 1.04.
2496 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2498 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2500 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2502 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2504 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2505 afmtodit. Regenerate.
2507 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2508 @f back past the current position.
2510 * tmac/tmac.e: Change calls to @R so that comments are not part of
2513 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2515 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2517 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2518 check that we can link a call to a function declared in <stdio.h>.
2519 (GROFF_UNISTD_H): New macro.
2520 * configure.in: Call it.
2521 * Makefile.in: Document it.
2522 * include/posix.h: New file.
2523 * troff/troff.h: Don't include <osfcn.h>
2524 * troff/input.cc: Include posix.h.
2525 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2527 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2528 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2530 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2531 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2532 * libbib/search.cc (O_RDONLY): Delete definition.
2533 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2534 Don't include <osfcn.h>.
2536 * acgroff.m4 (GROFF_TIME_T): New macro.
2537 * configure.in: Call it.
2538 * Makefile.in: Document it.
2540 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2541 * configure.in: Call it.
2542 * Makefile.in: Document -DTRADITIONAL_CPP.
2543 * include/ptable.h: Don't include generic.h.
2546 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2547 Afterwards remove [T1 and [T2.
2548 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2549 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2550 (ref*add-T2): Renamed from ref*add-T.
2551 (ref*add-T1): New macro.
2553 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2555 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2557 * libbib/index.cc: Include <fcntl.h>.
2558 (O_RDONLY): Define if necessary.
2559 (make_index_search_item, index_search_item_iterator::get_tag,
2560 index_search_item::check_files): Use O_RDONLY.
2561 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2562 (O_RDONLY): Define if necessary.
2563 (search_list::add_file): Use O_RDONLY.
2564 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2566 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2569 * libbib/index.cc (S_ISREG): Define it if necessary.
2570 (index_search_item::load): Use S_ISREG.
2572 * include/driver.h: Include <errno.h>.
2574 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2576 * eqn/box.cc (body_height): Increase default value to 85.
2577 (body_depth): Increase default value to 35.
2579 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2581 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2582 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2583 protected from expansion with \E.
2585 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2587 * Makefile (Makefile): New target.
2589 * Makefile.sub (configure, distfiles): New targets.
2591 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2594 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2596 * eqn/box.cc (param_table): Add body_height and body_depth.
2598 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2600 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2602 * psbb/Makefile.sub: Don't link with libgroff.a.
2604 * acgroff.m4 (GROFF_PUTENV): New macro.
2605 * configure.in: Call GROFF_PUTENV.
2606 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2607 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2610 * troff/env.cc (distribute_space): Rename force_forward argument
2611 to force_reverse. Reverse the list if force_reverse is true.
2613 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2615 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2617 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2618 height or depth to be negative. Guard against SUP_RAISE quantity
2621 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2623 * devps/generate/textmap: Add `an' (arrowhorizex).
2624 * tmac/tmac.ps: \(an overlaps horizontally.
2625 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2627 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2628 * devps/textmap: Add arrowvertex.
2629 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2630 updownarrow delimiters.
2631 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2633 * tbl/table.cc (simple_entry::position_vertically,
2634 block_entry::position_vertically): For a centered entry, perform
2635 the motion in two stages.
2637 * refer/refer.cc (split_punct): Don't call lookup_token if there
2640 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2642 * troff/input.cc (token::next): Delete token_node after copying
2645 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2648 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2650 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2652 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2654 * grops/ps.cc (usage): -b option takes an argument.
2656 * devps/prologue (PLG): New procedure.
2657 * grops/ps.cc (main, usage): New -g option.
2658 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2661 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2663 * include/cset.h: Include <limits.h> if we have it.
2665 * libgroff/illegal.cc: New file.
2666 * include/lib.h (illegal_input_char): Use table.
2667 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2668 * pic/lex.cc (ARG1): Renumber to 14.
2669 * eqn/lex.cc (ARG1: Likewise.
2671 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2672 (eg 1.05.90) correctly.
2674 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2676 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2677 Rename $r and $R registers to $v and $V.
2678 ($r, $R): Initialize to 0.
2679 (@v, @V): New macros.
2683 * troff/input.cc (main, usage): Add -R option that says not to
2685 * eqn/main.cc (main, usage): Rename -n to -R.
2687 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2689 * devps/DESC.in: Leave font positions 5-9 blank.
2690 * devdvi/DESC.in: Likewise.
2692 * grog/grog.pl: Handle `.PS <file' correctly.
2694 * troff/input.cc (input_stack::push): Improve error message when
2695 input stack limit exceeded.
2697 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2699 * refer/refer.cc (main): Fix typo in handling of `a' option.
2701 * refer/refer.cc (do_bib): In state START after a newline remain
2704 * groff/groff.sh: Deleted.
2705 * groff/Makefile.sub: Delete handling of groff.sh.
2707 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2708 to determine whether to use \X'ps:...'.
2709 * tmac/troffrc: Set 0p register to 0.
2710 * tmac/tmac.ps: Set 0p register to 1.
2712 * groff/groff.cc: Support -X option. Give warning for -TXps and
2713 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2714 * tmac/troffrc: Support -r.X=1.
2716 * pic/troff.cc (troff_output::dot): Don't test
2717 zero_length_line_flag.
2719 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2721 * include/lib.h: Declare getopt() and friends unless
2722 STDLIB_H_DECLARES_GETOPT is defined.
2724 * doc/chars.tr: Delete.
2725 * man/groff_char.man: New file.
2727 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2729 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2730 user has changed register format.
2732 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2734 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2735 `postpro' command in DESC file. Get spooler command from `print'
2736 command in DESC file. Execute spooler command with /bin/sh.
2738 * groff/groff.cc: Split Unix-specific parts into...
2739 * groff/pipeline.c: New file.
2742 * COPYING: New file.
2743 * all files: Update copyright notices.
2745 * Rearrange files. Redo Makefiles. Use autoconf.
2747 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2749 * troff/input.c (charinfo_to_node_list): Interpret character
2750 definition with escape_char of `\'.
2752 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2754 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2755 Define INT_DIGITS as big enough for 64-bit integer.
2756 * lib/strtol.c: Don't include lib.h.
2757 * lib/lib.h: Delete ifdef __cplusplus stuff.
2759 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2761 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2762 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2763 get DESC from current directory.
2765 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2767 * tbl/main.c (main): Always reset the line number when reading
2770 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2771 table::define_bottom_macro, table::do_row, table::do_top): Round
2772 vertical spacing up to vertical resolution.
2774 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2776 * ps/ps.h (enum resource_type): Avoid comma at end of
2778 * dvi/dvi.c (class dvi_printer): Likewise.
2779 * dvi/tfmtodit.c (gf::load): Likewise.
2780 * refer/label.y (struct expression): Likewise.
2781 * refer/refer.c (class label_processing_state): Likewise.
2782 * refer/indxbib.c (do_file): Likewise.
2783 * troff/troff.c (enum warning_type): Likewise.
2784 * tbl/main.c (process_data): Likewise.
2785 * troff/charinfo.h (class charinfo):
2787 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2789 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2791 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2793 * groff.c: Move to new groff subdirectory.
2794 * groff/Makefile: New file.
2795 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2797 * man/mdate.sh: Use ls -L if supported.
2799 * Consolidate all header files produced by gendef into lib/defs.h.
2800 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2801 Don't include path.h.
2802 * lib/Makefile (path.h): Don't generate.
2803 * troff/input.c: Include defs.h. Don't include config.h.
2804 * troff/Makefile (config.h): Don't generate.
2805 * refer/index.h: Don't include suffix.h.
2806 * refer/index.c: Include defs.h.
2807 * refer/indxbib.c: Include defs.h.
2808 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2810 * refer/Makefile (suffix.h, path.h): Don't generate.
2811 * groff.c: Don't include config.h. Include defs.h.
2812 * Makefile (config.h): Don't generate.
2813 (lib/defs.h): Generate.
2814 (topclean): Remove lib/defs.h.
2816 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2818 * lib/malloc.c, lib/getpagesize.h: Deleted.
2819 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2821 * lib/Makefile: Delete malloc-related stuff.
2822 * lib/new.c: Workaround COOKIE_BUG if necessary.
2824 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2825 needed header files directly.
2826 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2827 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2829 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2831 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2833 * lib/font (font::load_desc, font::load): Don't split argument of
2835 (font::handle_unknown_font_command): Change type.
2836 * ps/ps.c (ps_font::handle_unknown_font_command,
2837 handle_unknown_desc_command): Change type.
2838 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2840 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2842 * lib/font.h (font::handle_unknown_font_command): Add file and
2844 * lib/font.c (font::handle_unknown_font_command):
2845 * ps/ps.c (ps_font::handle_unknown_font_command):
2846 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2847 lineno arguments. Use _with_file_and_line functions for error
2850 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2852 * lib/font.c (font::set_unknown_desc_command_handler): New
2854 (font::load_desc): For unknown commands, call
2855 unknown_desc_command_handler if not null.
2856 * lib/font.h (class font): Declare them.
2857 (FONT_COMMAND_HANDLER): New typedef.
2858 * ps/ps.c (handle_unknown_desc_command): New function.
2859 (main): Set bflag if we had a -b option. Call
2860 font::set_unknown_desc_command_handler.
2861 (broken.h): Don't include.
2862 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2864 * ps/devps/Makefile: Add `broken' command to DESC file using
2865 BROKEN_SPOOLER_FLAGS.
2867 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2869 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2871 * macros/tmac.e (@R, @S): New macros.
2872 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2873 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2874 Declare $H, $[0-9], .. macros with @S.
2875 Declare |0, |1, |2, |3 strings with @S.
2877 * macros/tmac.e (@S): Rename to @U.
2879 * macros/tmac.e (@z): Define @b and bp as empty instead of
2882 * macros/tmac.e (@m): Deleted.
2883 (@h): Don't call @m.
2884 (@z): Don't set @m trap.
2886 * macros/tmac.e ($h, $f): Define |z as empty string.
2888 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2891 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2893 ()f): Likewise for * register.
2895 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2896 argument is missing, don't change $R. Call sr with three
2897 arguments when initializing.
2899 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2901 * macros/tmac.e (sr): New macro.
2902 Initialize $r and $R using sr.
2904 * macros/tmac.e (,): Delete \*(#[.
2906 * troff/env.c (set_tabs): Read the tab type even if the position
2907 is bad. Allow the position of the first tab stop to be negative.
2909 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2911 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2913 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2914 rather than -DPATHCONF_MISSING.
2915 * Makefile: Get rid of PATHCONF_MISSING.
2917 * refer/map.c: New file.
2918 * refer/index.c: Interface to mmap through map.c. Rename map_size
2920 * refer/Makefile: Handle map.c.
2921 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2923 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2925 * Makefile: RANLIB should be `true' if there is no ranlib.
2926 * lib/Makefile (libgroff.a): Simplify.
2927 * driver/Makefile (libdriver.a): Simplify.
2929 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2930 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2933 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2935 * troff/env.c (compare_ranges): Declare as extern "C".
2937 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2939 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2941 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2943 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2944 but conditionalize use of \X based on \*(.T.
2945 (grops_output::*): Deleted.
2946 * pic/output.h: Delete declaration of make_grops_output.
2947 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2948 by default. -n sets it to 0.
2949 (usage): Corresponding changes.
2950 * groff.c (main): Don't pass -x or -p to pic.
2951 * groff.sh: Likewise.
2953 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2956 * ps/devps/afmtodit: Change calculation of asc_boundary and
2957 desc_boundary. Make these bounds inclusive.
2958 * ps/devps: Regenerate font files.
2960 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2962 * macros/tmac.latin1: New file.
2963 * macros/tmac.tty-char: Use tmac.latin1.
2964 (tmac.tty-tr): Deleted.
2965 * macros/Makefile: Install tmac.latin1.
2966 * macros/tmac.dvi: Use tmac.latin1.
2967 * macros/troffrc: Translate \[char160] onto no-break space here.
2968 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2970 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2972 * macros/tmac.Xps: Use `do' request.
2974 * macros/tmac.ps: Use `do' request.
2976 * macros/tmac.e (@C): Use `do' request.
2978 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2979 * macros/Makefile: Install tmac.X*.
2981 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2982 * tty/Makefile: Don't install tmac.tty*.
2983 * macros/Makefile: Install tmac.tty*.
2985 * dvi/tmac.dvi: Move to macros.
2986 * dvi/Makefile: Don't install tmac.dvi.
2987 * macros/Makefile: Install tmac.dvi.
2989 * ps/tmac.ps*: Move to macros.
2990 * ps/Makefile: Don't install tmac.ps*.
2991 * macros/Makefile: Install tmac.ps*.
2993 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2995 * macros/eqnrc: Set draw_lines parameter based on device.
2996 * groff.c: Don't pass -D flag to eqn.
2997 * groff.sh: Likewise.
2998 * eqn/main.c: Warn about use of -D.
3000 * troff/input.c (process_startup_file): New function.
3001 (main): Call process_startup_file().
3002 * macros/troffrc: New file.
3003 * macros/Makefile: Install troffrc.
3004 * groff.c (main): Don't pass extra -m option to troff. For a
3005 pseudo device pass the name of the pseudo device to troff using
3007 * groff.sh: Likewise.
3008 * groff.c (possible_command::prepend_arg): Deleted.
3010 * troff/input.c (do_request): New function.
3011 (init_input_requests): Bind "do" to do_request.
3013 * eqn/main.c (main): Instead of loading eqnchar from device directory,
3014 load eqnrc from macro directory.
3015 * macros/eqnrc: New file.
3016 * macros/Makefile: Install eqnrc.
3017 * ps/devps/eqnchar: Deleted.
3018 * ps/devps/Makefile: Don't install eqnchar.
3019 * dvi/devdvi/eqnchar: Deleted.
3020 * dvi/devdvi/Makefile: Don't install eqnchar.
3021 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
3024 * lib/device.[ch]: New files.
3025 * lib/font.h (font::set_device_name, font::get_device_name):
3027 * lib/fontfile.c: Use device.h.
3028 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
3029 * troff/input.c: Delete definition of `device'.
3030 (main): Don't initialize device.
3031 * troff/troff.h: Include device.h rather than declaring device.
3032 * troff/Makefile: No need to handle DEVICE.
3033 * driver/input.c: Include device.h. Don't use
3034 font::{set,get}_device_name.
3035 * groff.c, Makefile: Rename device.h to config.h.
3036 * groff.c: Use library device variable.
3037 * eqn/main.c: Use library device variable.
3038 * eqn/Makefile: No need to handle DEVICE.
3040 * lib/searchpath.[ch]: New files.
3041 * lib/Makefile: Handle searchpath.[ch].
3042 * troff/input.c (open_file, init_dirs): Deleted.
3043 (macro_dirs): Deleted.
3044 (open_mac_file, macro_source): Use class search_path.
3045 (add_string, struct string_list): Move definition.
3046 (main): Change -M option to use macro_path. Delete call to
3048 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
3049 Rewrite to use class search_path.
3050 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
3051 * lib/Makefile: fontfile.c depends on searchpath.h.
3052 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
3054 * lib/macropath.[ch]: New files.
3055 * troff/Makefile: No need to handle MACROPATH.
3057 * troff/input.c: Delete DUMP code.
3058 * lib/fontfile.c, lib/font.h: Delete
3059 font::forget_command_line_font_dirs.
3061 * troff/input.c (push_token): New function.
3062 (handle_first_page_transition): Use push_token().
3063 (process_input_stack): Change handling of a space at the beginning
3066 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
3068 * troff/input.c (font_dirs): Delete unused variable.
3070 * eqn/lex.c (do_set): Correct error messages.
3072 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
3074 * troff/input.c (do_define_string): Allow the string name to be
3075 followed immediately by a tab.
3076 (define_character): Likewise.
3078 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
3080 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
3083 * troff/input.c (input_iterator::is_file): New virtual function.
3084 (file_iterator::is_file): New function.
3085 (input_stack::end_file): New function.
3086 (input_stack::next_file): Handle the situation where there is no
3087 file on the input stack correctly. Avoid making two passes over
3089 (next_file): Make the filename optional; in this case call
3090 input_stack::end_file().
3092 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
3094 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
3095 produce a real _ charater when the current font is CW and _
3098 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
3099 expression to work around gcc 2.2 bug.
3101 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
3103 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
3105 * troff/env.c (environment::add_padding): New function.
3106 (environment::add_char): Use add_padding().
3107 (environment::space): Likewise.
3108 (environment::wrap_up_field): Add some padding if there is none
3109 and there's no current tab.
3110 * troff/env.h: Declare environment::add_padding.
3112 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
3114 * pic/pic.y: undef fmod and rand before declaring them.
3116 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
3118 * troff/input.c (main): If the DESC file specifies a font name of
3119 0, then leave the corresponding font position empty.
3121 * nroff.sh: New file.
3122 * Makefile (install.nobin): Install nroff.sh.
3124 * tty/devlatin1/R.proto: Add ao as synonym for de.
3125 * tty/tmac.tty-char: Define ao as o.
3127 * tty/dev{ascii,latin1}/R.proto: Add aq.
3128 * tty/tmac.tty-char: Delete definition of aq.
3130 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
3132 * troff/input.c (init_charset_table): Don't translate 0240.
3133 * ps/tmac.ps: Translate char160 to space.
3134 * dvi/tmac.dvi: Likewise.
3135 * tty/tmac.tty: Likewise.
3137 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
3139 * dvi/tmac.dvi: Add support for all Latin-1 characters.
3141 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
3142 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
3145 * tty/tmac.tty-char: Add \(ah.
3147 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
3148 No need to define \(FM and \(!/. Conditionalize all character
3151 * ps/devps/lgreekmap: Add +h, +f, +p.
3153 * ps/tmac.psnew: New file.
3154 * ps/Makefile: Install tmac.psnew.
3156 * troff/input.c (charinfo_to_node_list): Don't ever interpret
3157 character definitions in compatible mode.
3159 * troff/input.c (remove_character): New function.
3160 (init_input_requests): Bind remove_character to "rchar".
3162 * ps/tmac.psold: New file.
3163 * ps/Makefile: Install tmac.psold.
3164 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
3165 characters into tmac.psold. Make these definitions unconditional.
3167 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
3169 * ps/tmac.ps: Don't define \('c and \('C.
3171 * ps/devps/textmap: Move Greek characters to...
3172 * ps/devps/symbolchars:
3174 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
3176 * ps/devps/text.enc: Add quotesingle.
3177 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
3178 * tty/tmac.tty-char: Likewise.
3179 * dvi/devdvi/texmi.map: Add +h, +f, +p.
3180 * dvi/devdvi/texi.map: Add Fn.
3181 * dvi/devdvi/msam.map: Add lz.
3182 * dvi/tmac.dvi: Handle Bq, bq, aq.
3184 * pic/lex.c (get_token): Recognize 'th.
3185 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
3187 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
3189 * ps/devps/textmap: Move di, mu, +- to...
3190 * ps/devps/symbolchars:
3192 * macros/tmac.s (@XS): Don't call par@reset or fi.
3193 (XA): Call LP. Turn off adjustment. Reduce line length.
3195 * macros/tmac.s: Initially alias XS to LP.
3196 (XS): Rename to @XS.
3197 (cov*ab-init): Alias XS to @XS.
3199 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
3201 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
3202 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
3203 (token::is_size, token::changes_env): Deleted.
3204 * troff/number.c (parse_term): No need to process \s explicitly.
3205 Call tok.next() only after scale indicator has been processed.
3206 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
3208 (token::next): Handle \s, \f, \S, \H immediately rather than
3209 returning them as tokens.
3210 (token::operator==, token::description, token::add_to_node_list,
3211 token::process): Remove handling of deleted tokens.
3213 * troff/env.c (environment::add_char): When adding padding
3214 indicator character, call start_line() if necessary.
3216 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3218 * ps/devps/afmtodit: Don't output 0 kerns.
3220 * ps/devps/afmtodit: Remove directory from name of encoding in
3221 font description file.
3223 * ps/devps/afmtodit: Improve error messages.
3225 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3227 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3228 * ps/devps/FontMakefile: Deleted.
3229 * ps/devps/afmname: New file.
3231 * ps/devps/symbol.sed: New file.
3232 * ps/devps/symbol.diff: Deleted.
3233 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3234 Generate zapfdr.afm from zapfd.afm.
3236 * tty/tmac.tty (tty-char): Prefix definition with ".
3238 * macros/tmac.an (TP): Don't start a diversion if one has already
3241 * tty/tmac.tty-char: Add Latin-1 characters.
3243 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3245 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3247 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3248 Move declaration of struct horizontal_span.
3250 * tbl/table.c (table::table): Initialize span_list.
3251 (table::~table): Delete span_list.
3253 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3255 * ps/devps/Makefile: Avoid dependency on GNU make.
3257 * ps/tmac.ps: Check that character does not already exist before
3260 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3261 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3262 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3265 * tty/tmac.tty-char: New file.
3266 * tty/Makefile: Install tmac.tty-char.
3267 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3270 * tty/tmac.tty: Fix definition of \(34.
3272 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3273 bracket-drawing characters onto |. Add *o.
3275 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3276 only if current_field.
3278 * troff/dictionary.c (dictionary::lookup): Free old_table after
3281 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3283 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3284 whose glyphs are identical to glyphs of some Roman character.
3286 * tty/devlatin1/R.proto (bu): Deleted.
3287 * tty/devascii/R.proto (bu): Deleted.
3288 * tty/tmac.tty: Add definition of \(bu.
3290 * eqn/main.c (do_file): Pass FILE as argument.
3291 (main): Automatically load eqnchar. New options -F and -n.
3292 Pass do_file an opened FILE.
3293 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3294 No need to include font.h.
3295 * groff.sh: Likewise. Don't need to use - for standard input.
3296 Prefix files with -- if first file starts with -.
3298 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3300 * troff/env.c (environment::possibly_break_line): Don't set line
3301 to 0 across call to output_line(). Don't call output_line() until
3302 after discarding nodes after break.
3304 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3306 * request.h (macro::empty): Declare it.
3307 * input.c (macro::empty): New method.
3308 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3311 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3313 * troff/env.c (environment::start_field): Decrement space_total
3314 when a space is frozen.
3316 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3318 * macros/tmac.an (R): Delete macro.
3320 * troff/input.c (get_copy, token::next): Support \# (like \" but
3321 newline is ignored).
3323 * troff/input.c (token::next): Fix error message in 'Y' case.
3325 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3327 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3330 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3332 * c++test.c: Include <osfcn.h>.
3334 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3337 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3339 * tbl/table.c (table::divide_span): Don't count column separation
3340 if expand was specified.
3342 * tbl/main.c (process_format): Don't ignore width specs in
3343 continued format. Give warning for changing equal widths or
3344 column separation in continued format.
3345 (process_data): Set column separation, minimum width, equal
3346 columns at end of table.
3348 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3350 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3351 node::add_discretionary_hyphen): Use soft_hyphen_char.
3352 (set_soft_hyphen_char): New function.
3353 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3355 * Makefile (c++tested): Give more helpful message if test fails.
3357 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3359 * troff/input.c (init_charset_table): Translate 0240 to
3360 an unbreakable space.
3362 * troff/token.h (token::hyphen_indicator): New function.
3363 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3365 * troff/input.c (translate): Allow translation to \%.
3366 * troff/node.c (node::add_char): Handle
3367 TRANSLATE_HYPHEN_INDICATOR.
3368 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3370 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3373 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3375 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3377 * groff.c (run_commands): If the last command gets a SIGPIPE send
3378 a SIGPIPE to all children than haven't yet terminated. When
3379 command terminates, set pid field to -1.
3381 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3383 * groff.c (main): Pass an appropriate -filename option to gxditview.
3385 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3387 * Makefile.bd (install): Remove existing program before copying.
3389 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3390 programs which have Unix counterparts to be installed with
3391 user-specified prefix.
3393 * troff/input.c (exit_troff): Don't check if exit_started.
3394 (exit_request): Don't call exit_troff if exit_started.
3396 * Makefile.bd (install.mm): Rename to install.dwbmm.
3398 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3400 * driver/input.c (do_file): Add missing break for '#' case.
3402 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3404 * troff/input.c (input_stack::clear): Clear past any boundaries and
3405 then add the boundaries back.
3407 * troff/input.c (exit_troff): Return immediately if already
3410 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3412 (pg*end-page): If the text has ended and there are no more
3413 footnotes or keeps, exit.
3415 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3417 * troff/input.c (init_charset_table): Make \(rq transparent by
3420 * macros/tmac.an: Define lq and rq strings.
3422 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3424 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3426 * troff/env.c (environment::final_break): New function.
3427 (environment::newline): Set prev_line_interrupted to 2 if
3429 * troff/env.h: Declare environment::final_break.
3430 * troff/input.c (exit_troff): Call environment::final_break()
3431 instead of environment::do_break().
3433 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3434 doesn't already exist.
3435 * macros/man.local: New file.
3436 * macros/tmac.an: Load man.local.
3437 * macros/man.ultrix: New file.
3439 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3441 * troff/input.c (exit_groff): Rename to...
3442 (exit_troff): New function.
3444 * troff/div.c (exit_started, done_end_macro,
3445 seen_last_page_ejector): New global variables.
3446 (began_page_in_end_macro): New static variable.
3447 (exit_flag): Deleted.
3448 (top_level_diversion::top_level_diversion): Initialize
3450 (top_level_diversion): More elaborate test for whether
3451 cleanup_and_exit() should be called.
3452 Set began_page_in_end_macro if the end macro isn't yet finished.
3453 * troff/div.h (top_level_diversion::last_page_count): New data
3455 (top_level_diversion::set_last_page): New function.
3456 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3457 * troff/env.c (do_break): Zero prev_line_interrupted.
3458 * troff/input.c (exit_flag): Delete declaration.
3459 (LAST_PAGE_EJECTOR): New magic cookie.
3460 (token::next): Handle LAST_PAGE_EJECTOR.
3461 (exit_groff): Set exit_started and done_end_macro instead of
3462 exit_flag. Call top_level_diversion::set_last_page. Push a
3463 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3464 another ejection after setting seen_last_page_ejector.
3466 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3468 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3470 * macros/tmac.e (TH): Make sure there's room for the initial
3473 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3474 Set FVS in points rather than units.
3476 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3478 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3479 position of empty slots.
3481 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3483 * ps/devps/S: Fix height and depth of parenrightex.
3484 * ps/devps/symbol.diff: Regenerate.
3486 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3488 * tmac.e (u): Do underlining as in -mgs.
3490 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3492 * tty/tty.c (tty_printer::end_page): If overstriking is
3493 suppressed, still turn overstruck horizontal and vertical lines
3496 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3499 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3501 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3503 * Version 1.05 released.
3505 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3507 * tty/tty.c: Instead of keeping an array of glyphs and then
3508 sorting it, keep a ordered linked list of glyphs for each line.
3510 * driver/driver.h: Include stddef.h.
3512 * tty/tty.c (compare_glyph):
3513 * refer/refer.c (rcompare):
3514 * troff/env.c (compare_ranges): Arguments of qsort comparison
3515 function should be const void *.
3517 * troff/number.c (parse_term):
3518 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3521 * refer/label.y (consider_authors): Don't access variables
3522 constructed under a condition outside that condition: put braces
3523 round for statement containing declaration; redeclare use of same
3526 * pic/pic.y (text_expr): Delete production that allows
3527 parenthesised text_expr.
3528 (expr): Allow a conditional_expr to appear in parentheses.
3529 (conditional_expr): Rename to any_expr.
3531 * mm: Install new version 1.01 from jh.
3533 * lib/font.c (font::get_width): Cache scaled widths.
3534 (font::font): Initialize widths_cache.
3535 (font::~font): Destroy widths_cache.
3536 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3538 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3540 * c++test.c, c++test.ref: New files.
3541 * Makefile: Check that the C++ compiler works.
3543 * ps/tmac.pspic (PSPIC): Do a break.
3545 * ps/tmac.ps: Move definition of PSPIC into...
3546 * ps/tmac.pspic: New file.
3547 (PSPIC): Draw box around picture, but make it invisible to grops.
3548 * ps/tmac.ps: Load tmac.pspic.
3549 * ps/Makefile: Install tmac.pspic.
3551 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3553 * lib/font.c (scale_round): If n is negative,
3554 subtract .5 before truncating floating point result.
3556 * lib/fontfile.c: Include <errno.h>.
3558 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3560 * driver/input.c (get_char): Inline. Don't update current_lineno.
3561 Change callers to up date current_lineno if necessary.
3562 Use get_char() instead of getc(current_file).
3564 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3566 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3568 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3570 * tty/tty.c (tmac.tty): Define \(rg as (R).
3572 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3574 * lib/lib.h: New define a_delete.
3575 * Use a_delete instead of delete when deleting an array of objects
3576 without destructors.
3578 * lib/lib.h: Rename adelete to ad_delete.
3579 * Change uses of adelete.
3581 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3583 * eqn/eqn.y: Include lib.h.
3585 * troff/node.c (grow_font_table): Delete old_font_table.
3587 * mm: Install new version from jh.
3589 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3591 * tbl/table.h (format_type): Make global instead of local to class
3592 entry_format. Prefix enumerators with FORMAT_.
3593 * tbl/table.c, tbl/main.c: Corresponding changes.
3594 * refer/token.h (token_type): Make global. Prefix enumerators
3596 * refer/token.[ch]: Corresponding changes.
3597 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3599 * troff/div.c (node::set_vertical_size): Don't name argument.
3601 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3603 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3604 * lib/lib.h: Define adelete accordingly.
3605 * pic/object.c (graphic_object::graphic_object):
3606 * tbl/main.c (format::~format):
3607 * tbl/table.c (table::~table):
3608 * refer/ref.c (reference::~reference, reference::merge,
3609 reference::insert_field, reference::delete_field): Use adelete.
3611 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3613 * tbl/table.h: Corresponding changes.
3615 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3616 Ensure total_angle is positive.
3618 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3620 * refer/ref.c (reference::merge, reference::insert_field,
3621 reference::delete_field): Avoid delete[0].
3623 * refer/token.c (init_special_chars): Move calls to cmupper
3624 outside calls to init_two_char_letter to work around bug in gcc
3627 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3629 * lib/new.c (operator new): Use __builtin_new for g++.
3631 * pic/object.c (graphic_object::~graphic_object): Don't use
3634 * pic/object.c (output::compute_scale): Initialize max_width and
3637 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3639 * troff/input.c (write_request): Call fflush.
3641 * troff/node.h (class composite_node): Move declaration to node.c
3642 * troff/input.c (charinfo_to_node): Rename to ...
3643 (charinfo_to_node_list): Return node list rather than composite
3645 * troff/node.c (make_composite_node): New function.
3646 (make_node, add_char): Call make_composite_node instead of
3648 (class composite_node): Add a tfont * member. Delete font_size
3650 (composite_node::composite_node, composite_node::copy,
3651 composite_node::size): Corresponding changes.
3652 (composite_node::tprint): Provide constant spacing, emboldening
3653 and track kerning as specified in tfont.
3654 (composite_node::width): Change width calculation accordingly.
3655 * troff/env.h (environment::composite): New member.
3656 (environment::is_composite, environment::set_composite): New
3658 * troff/env.c (environment::environment): Initialize composite.
3659 * troff/input.c (charinfo_to_node): Call
3660 environment::set_composite.
3661 * troff/node.c (make_composite_node, make_glyph_node): Use the
3662 plain version of the tfont if the environment is composite.
3664 * troff/node.c (font_info::get_space_width): Additional argument
3665 giving space_size. Handle constant space correctly. Scale by
3666 space_size unless constant spaced.
3667 (env_sentence_space_width): New function.
3668 * troff/node.h: Declare it.
3669 * troff/env.h (environment::get_space_size,
3670 environment::get_sentence_space_size,
3671 environment::get_narrow_space_width,
3672 environment::get_half_narrow_space_width): Make inline.
3673 (environment::get_space_width): Make inline. Just call
3675 * troff/env.c: Delete definitions for funtions made inline.
3676 (environment::space_newline, environment::space): Use
3677 env_sentence_space_width(). Don't scale by space_size.
3678 * troff/node.h: Move declarations of env*space_width() functions
3681 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3683 * macros/tmac.s (PS): Don't try to set negative indent.
3685 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3687 * pic/pic.y: Fix min function.
3689 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3691 * man/mdate.sh: Clear LANGUAGE.
3693 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3695 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3696 * pic/lex.c: New COMMAND keyword.
3697 * pic/pic.y (print_args, print_arg): New rules.
3698 (placeless_element): Use print_args for PRINT.
3699 New COMMAND element.
3701 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3703 * troff/input.c (terminal): Handle missing argument correctly.
3705 * pic/pic.y (text_expr): New rule.
3707 * pic/pic.y: Implement := operator.
3709 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3711 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3714 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3716 * ps/devps/dingbatsrmap: Include this in the distribution.
3718 * macros/tmac.doc: Replace with new version from 2nd Networking
3719 Release. Fix loading of doc-* files.
3720 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3721 * macros/tmac.doc.old: New file. Apply fixes that had been
3722 applied to old tmac.doc.
3723 * macros/tmac.andoc: Check that we're running under groff.
3724 * macros/Makefile: Rework.
3726 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3728 * tbl/table.h (format_type):
3729 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3730 typedef to make these types visible at file scope.
3731 * Makefile: Add NESTED_TYPES configuration option.
3733 * troff/div.c (mark): At the top level use the value of
3734 nl_reg_contents rather than the current vertical position.
3736 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3738 * tty/tty.c: Implement \D for horizontal or vertical lines.
3739 (tty_printer::set_char): Use vec_used+2 as serial number.
3740 Don't allow size of vector to exceed USHRT_MAX-2.
3741 Split off part into...
3742 (tty_printer::add_char): New function.
3743 (tty_printer::draw): New function.
3744 (compare_glyph): Handle equal serial numbers.
3745 (tty_printer::end_page): Handle overstruck characters from \D.
3746 (main, usage): Implement -d option.
3748 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3750 * tbl/main.c (process_format):
3751 * eqn/text.c (split_text):
3752 * troff/input.c (token::next): Use inner block for declarations
3753 with initializers in switch statement.
3755 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3757 * pic/common.c (common_output::dash_line): Cope with zero-length
3760 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3762 * Version 1.04 released.
3764 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3766 * macros/tmac.an (TH): Define a macro an-init to define variables
3767 based on command line arguments.
3768 (an-header): Call it.
3770 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3772 * Makefile (install.mm): Rename to install.dwbmm.
3774 * Makefile: Integrate mm.
3775 * mm: New directory.
3777 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3779 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3782 * pic/troff.c (troff_output::simple_spline,
3783 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3784 shadowing parameter.
3786 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3788 * lib/ptable.h: Add explicit casts when converting from unsigned
3791 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3792 * dvi/devdvi/Makefile: Install SA, SB.
3794 * refer/indxbib.c: Add declaration of mktemp.
3796 * refer/lookbib.c: Add declaration of isatty.
3798 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3800 * pic/lex.c (interpolate_macro_with_args): While collecting
3801 arguments, keep track of whether we're in a string.
3803 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3805 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3806 down with \v, so as to avoid problems with top of page trap
3807 setting no space mode.
3809 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3811 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3813 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3815 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3816 Improve error message.
3818 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3820 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3823 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3825 * groff.c (possible_command::execp): Always use _exit() after a
3828 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3829 NO_SYS_WAIT_H configuration options.
3830 * groff.c: Use these options. Use POSIX-style macros to extract
3831 fields from the status returned by wait().
3833 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3835 * tbl/table.c (table::compute_separation_factor): Allow the
3836 separation factor to drop to 0.
3838 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3840 * refer/search.c: Include <errno.h>.
3842 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3844 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3846 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3849 * pic/lex.c (input_stack::bol): Move definition out of class body.
3851 * pic/main.c: On MSDOS munge argv[0].
3853 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3855 * lib/ptable.c (hash_string): Use unsigned long rather than
3857 (next_ptable_size): Use unsigned rather than int. Give an error
3858 message if we've hit the largest table size.
3859 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3862 * pic/object.h (object_spec): Make flags unsigned long. Declare
3863 flags as const unisgned long rather than as enums.
3865 * pic/output.c: Deleted.
3867 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3869 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3870 Add additional argument.
3871 (line_entry::note_double_vrule_on_{left,right}): Set value of
3872 douvle_vrule_on_{right,left} flag according to argument.
3873 (simple_line_entry::simple_print,
3874 simple_line_entry::double_line_print): If adjacent to double vrule
3875 on a corner extend rather than shorten the rule by half the double
3878 * troff/number.c (parse_term): In checking for overflow, handle the
3879 case where the current horizontal position is negative.
3881 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3883 * pic/object.c (draw_arrow): Check for object having zero length.
3885 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3887 * eqn/main.c (do_file): Split off inline equation handling into...
3888 (inline_equation): New function. Search for starting delimiter
3890 (delim_search): New function. Don't recognize a delimiter that
3891 occurs in the name of an escape sequence, number register, string
3894 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3896 * eqn/delim.c (delim_box::compute_metrics): Don't call
3897 define_extensible_string if left is 0.
3898 (delim_box::output): Don't print the left delimiter if left is 0.
3899 (delim_box::debug_print): Check for left == 0 before calling printf.
3901 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3903 * troff/Makefile (majorminor.c): Include only digits in
3906 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3908 * refer/dirnamemax.c: new file.
3909 * refer/genlimits.c: Deleted.
3910 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3911 Don't check path length.
3912 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3913 * Makefile: Add PATHCONF_MISSING option.
3915 * refer/indxbib.c (get_cwd): New function.
3916 (main): Use get_cwd().
3917 * lib/getcwd.c: New file.
3918 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3920 * lib/Makefile: Compile getcwd.o.
3922 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3925 * refer/indxbib.c (main): Check success of mktemp.
3927 * lib/tmpfile.c: New file.
3928 * lib/Makefile: Add tmpfile.c.
3929 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3930 * ps/ps.h: Delete declaration of mktemp().
3931 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3932 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3933 * driver/driver.h: No need now to include errno.h.
3935 * everywhere: Set errno to 0 before calling fopen().
3937 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3938 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3939 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3941 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3943 * troff/env.h (translate_space_to_dummy): Declare it.
3944 * troff/env.c (environment::space_newline, environment::space):
3945 If translate_space_to_dummy is set then make the width of spaces 0.
3946 * troff/input.c (translate): If the second character of a
3947 translation is a space, translate to unbreakable space. If the
3948 first character is a space, set or clear translate_space_to_dummy
3949 according to whether the second character is \&. Weird!
3951 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3953 * groff.c (run_commands): Don't use non-zero exit code because a
3954 command gets SIGPIPE.
3956 * groff.c, groff.sh: Use -mXps with -TXps.
3958 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3959 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3960 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3961 (ps_printer::special): New specials invis and endinvis.
3962 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3963 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3964 (ps_printer::end_page): Check that invis_count == 0.
3965 (ps_printer::invis_count): New member.
3966 (ps_printer::ps_printer): Initialize invis_count to 0.
3968 * troff/env.c (environment::hyphenate_line): Hyphenation
3969 indicator at beginning of word inhibits splitting after -, \(em
3972 * pic/pic.y (element): Allow another element to follow } without
3973 any intervening separator.
3975 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3977 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3979 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3981 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3982 declaration of wait() in header files.
3983 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3985 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3987 * lib/lib.h: Declare return type of strerror as char *.
3989 * man/Makefile: Add g flag to sed substitutions.
3990 * Makefile (shgroff, bindist): Likewise.
3992 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3994 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3995 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3998 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
4000 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
4003 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
4005 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
4008 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
4010 * troff/input.c (define_number_reg): If currently undefined,
4011 don't define it if the argument is an invalid expression.
4013 * Makefile: Ignore return value of `if' commands without `else'
4016 * Makefile: Split up CPPDEFINES into a series of separate
4017 configuration options.
4019 * troff/input.c (init_registers): Use time_t instead of long
4020 unless LONG_FOR_TIME_T is defined. Use returned result rather
4021 than passing pointer.
4022 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
4024 * lib/Makefile (fontpath.h): Use gendef.
4026 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
4028 * troff/input.c (input_iterator::shift): Delete argument name.
4029 * troff/node.c (suppress_output_file::really_begin_page,
4030 suppress_output_file::really_transparent_char, node::ascii_print,
4031 node::tprint): Delete names of unused arguments.
4033 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
4035 * refer/label.y (string): Pass $4 to command_error.
4037 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
4039 * Version 1.03 released.
4041 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
4043 * Makefile: Pass definition of SHELL in SUBFLAGS.
4046 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
4047 ps/Makefile: Use gendef to construct header files that are
4048 constructed from the Makefile.
4050 * macros/Makefile: make all should build stripped version of tmac.e.
4052 * refer/Makefile (clean): Remove y.output.
4054 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
4056 * ps/pfbtops.c (main): Add -v option which prints out a version
4058 * ps/Makefile (pfbtops): Link with libgroff.a.
4060 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
4062 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
4063 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
4065 * refer/lkbib.c (main): Always terminate reference with blank
4067 * refer/lookbib.c (main): Likewise.
4069 * refer/linear.c (file_buffer::load): Check that the file is not a
4072 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
4073 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
4074 Delete second inclusion of <sys/param.h>.
4076 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
4078 * troff/token.h (token::special): Deleted.
4080 * tbl/main.c (process_format): Rework so that opt->tab_char is
4081 recognized only when appropriate.
4083 * ps/Makefile (clean): Remove pfbtops.
4085 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
4087 * lib/font.c (text_file::next): Don't return if we have got a
4090 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
4092 * refer/refer.c (store_reference): Get hash code from old_table[i]
4093 when rehashing the table.
4095 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
4097 * eqn/box.c (box::top_level): Save size and prev size using \R and
4098 restore it afterwards. Set the size to the size at the beginning
4100 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
4101 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
4103 * refer/Makefile (limits.h): Use ./genlimits.
4105 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
4107 * refer/index.c: Delete declarations of stat() and fstat().
4109 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
4111 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
4113 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
4115 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
4117 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
4119 * troff/input.c (token::get_char): Handle \e.
4121 * refer/linear.c: Delete declarations of fstat() and stat().
4123 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
4125 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
4126 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
4128 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
4130 * troff/input.c (do_define_macro): Improve error handling for end
4131 of file while defining macro.
4133 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
4135 * eqn/box.h: Fix declaration of set_gsize.
4136 * eqn/box.c (set_gsize): Make argument const char *.
4137 (gsize): Declare as char *.
4138 * eqn/main.c (main): Don't convert gsize to int.
4139 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
4141 * Version 1.02 released.
4143 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
4145 * macros/tmac.andoc: New file.
4146 * macros/Makefile: Install tmac.andoc.
4148 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
4149 operator new and delete on OP_DELETE_BROKEN not being defined.
4150 * Makefile: Mention OP_DELETE_BROKEN.
4152 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
4154 * Makefile (bindist): Pass SUBFLAGS.
4156 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
4158 * Makefile, groff.c: Pass definitions to groff.c via device.h.
4160 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
4163 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
4165 * ps/ps.h, ps/psrm.c: Make comment_table and
4166 header_comment_table local to resource_manager::process_file.
4168 * groff.sh: With -TXps pass -printCommand option to gxditview.
4170 * groff.c (possible_command::print): Implement using
4171 append_arg_to_string.
4173 * xditview: Merge in new implementation with own ChangeLog.
4175 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
4177 * groff.c (main): Implement PRINT_OPTION.
4178 (append_arg_to_string): New command.
4179 (device_table): Set PRINT_OPTION flag for Xps.
4181 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
4183 * troff/groff.h: Rename to troff.h.
4185 * pic/lex.c (lookup_keyword, docmp): New functions.
4186 (get_token): Use new lookup_keyword.
4187 Don't include key.h.
4188 * pic/key.[ch], pic/pic.gperf: Deleted.
4189 * pic/Makefile: Remove gperf stuff.
4191 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
4193 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
4195 * troff/Makefile, troff/node.c: Move definition of
4196 STORE_WIDTH into node.c.
4198 * etc/grog.pl, etc/grog.sh: Support -mdoc.
4200 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
4202 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
4203 dvi/devdvi/texb.map: Add lq and rq.
4204 dvi/devdvi: Regenerate fonts.
4205 * ps/devps/textmap: Add lq and rq.
4206 * ps/devps: Regenerate fonts.
4207 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
4208 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4210 * pic/object.c (position_rectangle): When checking radius
4211 cope with possiblity that width or height is negative.
4212 (box_object::box_object): Have separate xrad and yrad with
4213 signs matching signs of dim components.
4214 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4215 (box_object::print): With rounded boxes use absolute values
4216 for dim and rad arguments.
4218 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4221 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4223 * various files: Add explicit destructors to keep Saber CC +d
4226 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4228 * eqn/box.c (box::top_level): Restore fonts correctly after
4229 font changes in line containing inline equation. Also
4230 restore previous font as well as current font.
4231 * eqn/pbox.h: Define necessary string and register names.
4233 * troff/input.c (token::next): Case 'R' calls do_register.
4234 (do_register): New function.
4236 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4238 * groff.c, groff.sh: Support Xps device. Allow each device
4239 to have a pseudo_name and a real_name.
4241 * groff.c (run_commands): Don't print `Broken pipe' messages.
4243 * ps/pfbtops.c: New file.
4244 * ps/Makefile: Add pfbtops.
4246 * troff/number.c (parse_term): Improved error message.
4248 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4250 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4252 * Makefile: Integrate refer.
4253 * refer: New directory.
4254 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4255 man/lkbib.man: New files.
4256 * man/Makefile: Support refer man pages.
4258 * lib/lib.h: Declare is_prime.
4259 * lib/prime.c: New file.
4261 * troff/input.c (macro_source): New function.
4262 (init_input_requests): Bind "mso" to macro_source.
4264 * troff/env.c (environment::possibly_break_line): Maintain
4265 pointer to pointer to node to be split in ndp so as to avoid
4266 using address of freed node.
4268 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4269 pointer to first node to be hyphenated in startp so as to
4270 avoid using address of freed node.
4272 * troff/env.c (class trie, class hyphen_trie): Make the
4273 elements of the trie be of type char not unsigned char.
4274 Declare arguments to be const char* instead of unsigned char *.
4276 * troff/env.c (hyphenate): Initialize hbuf[0].
4278 * troff/input.c (set_string): Declare p to be char * and cast
4279 *p to unsigned char when necessary.
4281 * troff/input.c (do_define_macro): Declare s to be const
4282 char*. Cast element to unisgned char when necessary, Declare
4283 d to be an int. Handle EOF better.
4285 * troff/Makefile, troff/input.c: Different scheme for passing
4286 definitions of MACROPATH, HYPHENFILE and DEVICE.
4288 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4290 * tty/devascii/R.proto: Delete entry for em.
4291 * tty/devlatin1/R.proto: Likewise.
4293 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4295 * troff/input.c (translate): Stop when we get a space. Treat eof
4298 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4300 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4302 * tbl/main.c (process_format): A font name following a `f'
4303 modifier that starts with a digit can be only one character long.
4304 Also deal with EOF on the second character of the font name.
4306 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4308 * troff/input.c (token::next): Turn \~ into an
4309 unbreakable_space_node.
4310 * troff/node.c (unbreakable_space_node): New class.
4311 * troff/node.h: Declare it.
4313 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4315 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4316 it's >= 0, before outputting it as a single byte.
4318 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4320 * lib/font.c: Make font_char_metric::code an int.
4321 (font::get_code): Change return type to int.
4322 (font::load): Allow code to be arbitrary integer.
4323 * lib/font.h (font::get_code): Change return type to int.
4324 (font::number_to_index): Change argument type to int.
4325 * troff/input.c (token::next): In case 'N', allow any value.
4326 Store value in token::val.
4327 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4328 (token::get_char, token::add_to_node_list, token::process): Get
4330 (charinfo::set_number): Change argument to int.
4331 (charinfo::get_number): Require that NUMBERED flag be set.
4332 (get_charinfo_by_number): Store numbered characters not between 0
4333 and 255 in a dictionary.
4334 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4336 (charinfo::number): Change type to int.
4337 (charinfo::set_number): Change type of set_number to int.
4338 * troff/node.c (troff_output_file::put_char_width,
4339 troff_output_file::put_char): Test whether character is numbered
4340 using charinfo::numbered().
4341 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4343 * lib/nametoindex.c: New implementation to cope with arbitrary
4346 * troff/input.c (token::operator==): Test val for
4347 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4350 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4351 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4353 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4355 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4358 * all Makefiles: rm targets of cp and >.
4360 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4363 * eqn/lex.c (def_table): Add dollar.
4365 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4367 * troff/input.c (do_width): Push back newline before closing delim
4370 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4372 * groff.c (possible_command::prepend_arg): New function.
4373 (main): Prepend device -m option.
4374 * groff.sh: Put device -m options before command-line options.
4376 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4378 * macros/tmac.an (IP): Quote argument to TP.
4380 * ps/ps.c (main): New option -b, which sets...
4381 (broken_flags): New variable.
4382 (ps_printer::~ps_printer): Incorporate the setup section in the
4383 prolog if (broken_flags & NO_SETUP_SECTION).
4384 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4385 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4386 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4387 ps_printer::print_needed_font_comment,
4388 ps_printer::print_supplied_font_comment,
4389 ps_printer::print_include_font_comments,
4390 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4391 ps_printer::read_download_file, read_document_fonts, add_font,
4392 skip_line, parse_fonts_arg, document_font::document_font,
4393 document_font::~document_font, document_font::download,
4394 ps_output::include_file): Deleted.
4395 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4396 rather than %!PS-Adobe-2.0. Make calls to
4397 resource_manager::need_font for each font that we used. Replace
4398 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4399 print_supplied_font_comment, print_needed_font_comment by call to
4400 resource_manager::print_header_comments. Output %%Orientation
4401 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4402 Don't output the prolog directly. Instead call
4403 resource_manager::output_prolog. Only define #copies when ncopies
4404 > 1. Delete calls to print_include_font_comments and
4405 download_fonts. Add call to resource_manager::document_setup.
4406 (ps_printer::do_file): Call resource_manager::import_file instead
4407 of including it ourselves.
4408 (ps_printer::do_import): Likewise. Also don't call
4409 merge_import_fonts. Push userdict on the dictionary stack before
4410 and pop it afterwards.
4411 Move declaration of ps_output into ps.h.
4412 * ps/psrm.c: New file implementing resource_manager class.
4413 * ps/ps.h: New file declaring ps_output and resource_manager
4415 * ps/devps/zapfdr.ps:
4416 * ps/devps/symbolsl.ps:
4417 * ps/devps/prologue: Use 3.0 conventions.
4418 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4419 Add default definition of BROKEN_SPOOLER_FLAGS.
4420 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4421 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4423 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4425 * etc/grog.pl: New file.
4426 * Makefile (GROG): New variable.
4427 Add GROG to SUBFLAGS.
4428 * etc/Makefile (GROG): New variable.
4429 (install.nobin): Install $(GROG) rather than grog.sh.
4431 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4433 * eqn/special.c (special_box::compute_metrics): Make the input and
4434 output strings the same. Get the new height and depth from the
4435 predefined height and depth registers. Also make subscript kern
4437 (special_box::compute_subscript_kern, special_box::compute_skew):
4440 * eqn/box.c (pointer_box::compute_skew,
4441 simple_box::compute_metrics, box::top_level)
4442 * eqn/text.c (prime_box::compute_metrics,
4443 prime_box::comput_subscript_kern)
4444 * eqn/limit.c (limit_box::compute_metrics):
4445 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4446 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4447 negative numbers in `nr' requests with a leading 0.
4449 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4451 * eqn/special.c: New file.
4452 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4453 Add new rule for simple.
4454 * eqn/lex.c (token_table): Add SPECIAL.
4455 * eqn/box.h: Declare make_special_box.
4456 * eqn/Makefile: Add special.[co].
4458 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4460 * ps/devps/prologue: Possibly set packing to true while defining.
4461 Create grops dictionary here. Initialize local variables before
4462 defining procedures.
4463 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4464 the dictionary stack. Set strokeadjust and overprint to false if
4465 the relevant operators are defined.
4466 (PEND): New procedure.
4467 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4468 prologue. Do everything else in the setup section.
4469 (ps_printer::do_import): Just call PBEGIN and PEND around the
4470 picture. Also push userdict before, and pop it afterwards.
4472 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4474 * troff/node.c (bracket_node::tprint): Brackets were being printed
4477 * macros/tmac.an (SH, SS): Set fill mode.
4479 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4481 * troff/div.c (top_level_diversion::begin_page): Set
4482 high_water_mark to 0.
4484 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4486 * man/mdate.sh: New file.
4487 * man/mdate.c: Deleted.
4488 * man/Makefile: Use mdate.sh instead of mdate.
4491 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4493 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4495 * man/mdate.c: New file.
4496 * man/*.man: Replace modification date by @MDATE@.
4497 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4498 (mdate): New target.
4500 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4501 Remove illegal input characters.
4503 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4505 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4507 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4509 * troff/div.c (begin_page): Change behaviour when
4510 !first_page_begun and !break_flag.
4512 * troff/input.c (do_name_test): Return 0 if argument is empty.
4514 * troff/input.c (read_long_escape_name): Require closing ] to be
4515 at same input level as opening [.
4517 * troff/input.c (read_increment_and_escape_name): New function.
4518 (get_copy, process_input_stack): Use this for \n.
4520 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4522 * troff/div.c (top_level_diversion::begin_page): Ignore the
4523 current value of page_number if !first_page_begun.
4525 * groff.c (main): Fix declaration of buf.
4527 * troff/input.c (do_name_test): New function.
4528 (token::next): Implement \A.
4529 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4530 (token::description, token::add_to_node_list, token::process):
4531 Handle TOKEN_ESCAPE.
4532 * troff/token.h: New token TOKEN_ESCAPE.
4534 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4536 * pic/main.c (do_picture): Allow space before and after filename
4537 following `<'. Check that the filename is not empty.
4539 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4541 * Version 1.01 released.
4543 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4545 * dvi/tmac.dvi: ftr HR to H.
4547 * macros/tmac.e: Round up computation of $r.
4549 * xditview/tmac.X: Don't give up completely in compatibility mode.
4550 Use \n(.s instead of \n[.s].
4552 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4553 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4554 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4555 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4556 short names in the char definitions.
4558 * ps/tmac.ps: Don't give up completely in compatibility mode.
4559 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4560 quote in front of \n(.s. Add u to factors inside \s[...].
4562 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4564 * tty/tmac.tty: Call the nroff request.
4566 * macros/tmac.e ((x, )x): Better definitions that work properly
4568 (@0, @1): Helper macros for (x.
4570 * macros/tmac.e ($s, hl): Use \l rather than \D.
4572 * tty/tmac.tty: Make it work better in compatibility mode.
4573 (pchar): Rename to tty-char.
4575 * macros/tmac.e (@E): New macro.
4576 (r, i, b, rb, bi): Use @E.
4578 * macros/tmac.e (@F): Don't use (;...) syntax.
4580 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4581 it was modified for groff.
4583 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4585 * macros/tmac.e (<., .>): Removed.
4586 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4588 * macros/tmac.e: Remove check that groff is being used.
4590 * macros/tmac.e (@C): Change families only if using groff; turn
4591 compatibility mode off while changing familes. Save compatibility
4592 mode before changing families and restore it afterwards.
4594 * macros/tmac.e (@h): Remove test for offset + line length.
4596 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4597 (lo, th, ac): Define to call @S instead of using als.
4599 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4600 the ratio of the vertical spacing to the point size in units
4601 expressed as a percentage. Use these instead of $10r and $10R,
4602 Delete $10r and $10R.
4604 * lib/font.c (font::load): In default computation of space_width,
4605 divide by sizescale. Use scale_round.
4607 * macros/tmac.an (TP): Don't call `nf'.
4608 (an-do-tag): Don't call `fi'.
4610 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4612 * troff/input.c (process_input_stack): Handle the case where
4613 spaces at the beginning of an input line are followed by a
4616 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4618 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4619 * groff.sh: Use pic -x with the dvi device.
4621 * dvi/devdvi/FontMakefile (H): Don't use -s.
4623 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4624 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4625 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4628 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4630 * ps/psfig.diff: New file.
4631 * ps/tmac.psfig: New file.
4633 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4635 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4636 (]-): Don't call ref*do-tl.
4638 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4640 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4641 (fn@do-FS): Rename to fn*do-FS.
4643 * troff/input.c (transparent_translate): New function.
4644 (process_input_stack): Apply transparent_translate before calling
4645 diversion::transparent_output(unsigned char).
4647 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4649 * troff/input.c (do_define_macro): Define the macro before calling
4652 * xditview/Makefile: Add DEVICES variable. Change install target
4655 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4657 * groff.c (run_commands): Handle the possibility that there are
4658 child processes other than those forked by us.
4660 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4662 * lib/string.c (string::append): New function.
4663 * lib/stringclass.h: Declare it.
4665 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4667 * eqn/main.c (main): New option -N which sets
4668 no_newline_in_delim_flag.
4669 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4671 * groff.c (main): Pass -N on to eqn.
4672 (help, synopsis): Mention -N.
4673 * groff.sh: Implement -N.
4675 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4677 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4678 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4679 (XP): Allow as initializer.
4681 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4683 * troff/env.c (environment::wrap_up_field): If field_spaces are
4684 non-zero and we have a current_tab, subtract padding from
4685 tab_distance. If this makes tab_distance <= 0, use the next tab
4686 stop instead. If there isn't any next tab or it's a left tab,
4687 wrap up the current tab.
4688 (environment::start_field): Initialize tab_precedes_field.
4689 (environment::wrap_up_tab): If there's a current field, update
4690 pre_field_width, field_distance and tab_precedes_field.
4691 * troff/env.h (environment::tab_precedes_field): New member.
4693 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4695 * ps/ps.c (ps_printer::do_file): New function.
4696 (ps_printer::special): Bind to `file' special.
4697 (ps_printer::do_exec): Set ndefined_styles to 0.
4699 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4701 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4702 Avoid stripping first character from the start of unrecognized
4703 escapes. Use lex_error instead of error to report errors.
4704 * eqn/lex.c (get_token): Rework handling of escapes.
4705 (lex_error): Move declaration into...
4708 * xditview/xditview.c (main): Make -page option work.
4710 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4712 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4714 * macros/tmac.s (B2): Correct size of box.
4716 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4718 * macros/tmac.s (B2): Postpone drawing the box until in the
4719 top-level diversion.
4721 * tty/tmac.tty: Add font translations for C, CR, CW.
4723 * groff.c (synopsis, help): Document -i.
4724 * groff.sh: Implement -i.
4726 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4727 Simplify the construction of SN.
4729 * troff/number.c (parse_term): Give `|' a higher precedence.
4730 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4733 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4735 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4737 * lib/string.c (string::move): New function.
4738 * lib/stringclass.h: Declare it.
4740 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4742 * troff/env.c (distribute_space): Add optional argument
4744 (environment::wrap_up_field): Call distribute_space with
4745 `force_forward' argument of 1.
4747 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4749 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4750 Inline it. Move reallocation into...
4751 (string::grow1): New function.
4752 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4753 dependencies to include library header files.
4754 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4756 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4758 * macros/tmac.s (@NH): Use the same number registers than -ms does
4759 for the heading level counters. Use the same string that -ms does
4760 for the number for this heading.
4762 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4764 * lib/new.c (operator new): Cast result of malloc to char *.
4766 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4769 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4771 * groff.c (main): Support -i.
4773 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4775 * pic/pic.h: Include <osfcn.h>.
4777 * ps/ps.c: Add declaration of mktemp.
4779 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4780 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4781 argument as union wait *.
4782 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4783 argument to union wait *.
4785 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4787 * tty/tmac.tty: Add definition of \(co.
4789 * pic/object.c (make_arc): Only increase radius when radius
4790 strictly less than d.
4791 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4794 * troff/env.c (environment::environment(symbol),
4795 environment::environment(const environment *)): Initialize
4798 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4800 * tbl/main.c (main): Add exit(0).
4802 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4804 * pic/main.c (main):
4805 * eqn/main.c (main):
4806 * tbl/main.c (main):
4807 * etc/soelim.c (main):
4808 * driver/printer.c (printer::~printer):
4809 * troff/node.c (real_output_file::~real_output_file,
4810 real_output_file::flush): Check for errors on stdout.
4812 * most files: Add 1991 to copyright notice.
4814 * macros/tmac.s: Don't test \n(.x and \n(.y.
4816 * troff/input.c (token::next): Rename `escape_char' label to
4817 `handle_escape_char' and `normal_char' label to
4818 `handle_normal_char'.
4820 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4822 * groff.c (main, synopsis, help): Support -a option.
4823 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4824 to trflags while parsing options.
4826 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4828 * troff/number.c (parse_term): With `m', `M' and `n' scale
4829 indicators, convert scale factor to hunits before scaling.
4831 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4833 * lib/font.c (scale_round): Better test for overflow when n is
4836 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4838 * tbl/main.c (process_format): Add second argument of type
4839 options*. Change callers. Allow opt->tab_char as well as '\t'
4840 between format items.
4842 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4844 * macros/tmac.an (PD): With no arguments, make sure register PD is
4846 (TH): Call PD with no argument, instead of setting register PD
4849 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4851 * Version 1.00 released.
4853 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4855 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4857 * dvi/devdvi/DESC: Mount CW instead of CR.
4859 * dvi/tmac.dvi: Add definition of \(tm.
4861 * dvi/devdvi/texsy.map: Add lh, and rh.
4862 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4863 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4865 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4866 * dvi/devdvi/Makefile: Install H.
4867 * dvi/devdvi/H: New file.
4869 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4871 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4874 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4876 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4878 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4880 * macros/tmac.s (@EN): Handle the case where the equation is empty
4881 but the label is not.
4883 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4885 * troff/groff.h: New warning category WARN_SPACE.
4886 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4887 WARN_SPACE to warning_table.
4888 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4889 is longer than two characters and is not defined, but the first
4890 two characters do make a defined name.
4892 * PROBLEMS: New file.
4894 * CHANGES: New file.
4895 * README-0.6, README-1.00: Deleted.
4897 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4898 * xditview/devX75/Makefile: Make devX75-12.
4899 * xditview/devX100/Makefile: Make devX100-12.
4901 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4902 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4904 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4906 * README-0.7: Rename to README-1.00.
4908 * macros/tmac.pic: New file.
4909 * macros/Makefile (install.nobin): Install tmac.pic.
4911 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4913 * troff/env.c (hyphen_word): Correct the test for whether the
4914 token is a hyphen. Reset npos to 0.
4916 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4918 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4920 * macros/tmac.s (ds*common-end): Call par*reset.
4922 (par@reset-indent): Deleted.
4924 * macros/tmac.s (@IP): Divert the label.
4926 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4928 * xditview/draw.c (setGC): Use a line width of .1m rather than
4929 .04m by default; round rather than truncate value.
4931 * tbl/table.c (class empty_entry): New class.
4932 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4933 (table::add_entry): Represent empty entries by objects of type
4935 (table_entry::line_type): Return -1.
4936 (table::determine_row_type): Ignore entries with line_type 0.
4937 Treat type -1 as non-lines.
4939 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4941 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4942 macros/tmac.s: Rename \(-d to \(Sd.
4944 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4946 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4947 * xditview/libXdvi/DviChar.c: Likewise.
4948 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4950 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4952 * troff/div.c (top_level_diversion::begin_page): Call
4953 init_output() if the_output is 0.
4955 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4957 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4959 (get_copy): Turn \E into ESCAPE_E.
4960 (token::process, asciify): Handle ESCAPE_E.
4962 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4964 (DS): Implement `.DS R'.
4966 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4968 * macros/tmac.s (FS): New macro.
4970 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4972 * macros/tmac.s (cov*tl-init): Remove after first execution
4973 instead of aliasing to @nop. Call top of page macro explicitly
4974 instead of setting trap; call @init first. Set pg@top as top of
4976 (cov*auto-init): Deleted. Set cov*tl-init instead of
4977 cov*auto-init as top of page trap.
4978 (TL, LP): Do a break instead of calling cov*tl-init.
4979 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4980 @FE; in this case also give a warning and always start another
4981 page. No need to set pg@top here.
4982 (cov*tl-init): Rename to cov*first-page-init.
4984 * macros/tmac.s (RP): Do `.pn 0'.
4985 (cov*tl-init): With RP format don't do `.pn 0'.
4987 * macros/tmac.s (pg@cs-top): Set no space mode.
4989 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4990 (cov*ab-init): Alias TL, AU and AI to these.
4992 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4994 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4995 (@EN): Do nothing unless \n[dl] is > 0.
4997 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4999 * pic/object.c (ellipse_object::radius): New function.
5001 * VERSION: Change version to 0.7.
5003 * tbl/table.c (block_entry::do_divert): Declare return type as
5005 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
5007 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
5009 * troff/column.c: New file.
5010 * troff/Makefile: Corresponding changes.
5012 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
5015 * troff/div.c (top_level_diversion::space): If the space causes
5016 the first-page transition and springs a trap, truncate the space
5019 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
5021 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
5024 * pic/troff.c (troff_output::line_thickness,
5025 troff_output::set_fill): Do a horizontal motion to compensate for
5026 the width of the \D escape sequence.
5028 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
5030 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
5033 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
5036 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
5037 Supply empty definition.
5038 (text_entry::simple_print, simple_text_entry::simple_print):
5039 Delete declarations.
5040 (table::add_entry): Represent empty entries by objects of type
5043 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
5045 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
5047 * tbl/table.c (left_text_entry::add_tab): New function.
5049 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
5052 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
5054 * troff/env.c (environment::start_field): Give an error message if
5055 there is no next tab.
5057 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
5059 * troff/env.c (hyphenate): Skip initial elements with zero
5062 * macros/tmac.s (par@init): Keep VS in points rather than units.
5064 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
5066 * pic/main.c (main): Implement `-c' option.
5067 * pic/output.h: Declare make_tpic_output().
5068 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
5070 (tpic_output): New class.
5071 (tpic_output::tpic_output, tpic_output::set_pen_size,
5072 tpic_output::command, make_tpic_output): New functions.
5074 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
5076 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
5077 if they're not already defined.
5078 * tbl/table.c (init_output): Don't test \n(.g.
5080 * troff/input.c (do_if_request): Delete `g' condition. Recognize
5081 `d', `r' and `c' conditions even in compatibility mode.
5083 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
5085 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
5088 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
5090 * troff/env.h (environment::prev_line_interrupted): New member.
5091 (environment::get_prev_line_interrupted): New function.
5092 * troff/env.c (environment::newline): Set prev_line_interrupted.
5093 (environment::environment(const environment *),
5094 environment::environment(symbol)): Initialize
5095 prev_line_interrupted.
5096 * troff/input.c (process_input_stack): Don't give special
5097 treatment to space and newline at the beginning of the line if the
5098 previous line was interrupted.
5100 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
5102 * eqn/eqn.y: Disallow PRIME by itself.
5103 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
5105 (def_table): Remove definition of '. Define prime to be `.
5107 * eqn/eqn.y: Split off part of rule `script' into a new rule
5110 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
5112 * macros/tmac.s ({, }): New string aliases.
5114 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
5116 * README-0.7: New file.
5118 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
5120 * macros/tmac.s: New file.
5121 * man/groff_ms.man: New file.
5122 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
5123 * Makefile.bd: Similarily.
5124 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
5125 definition of TMAC_S.
5126 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
5127 * macros/TODO: New file.
5129 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
5131 * troff/env.c (right_justify): New function.
5132 (init_env_requests): Bind this to request "rj".
5133 (center_lines): Set right_justify_lines to 0. If we get a bad
5134 integer, center 1 line.
5135 (environment::environment(symbol), environment::environment(const
5136 environment *)): Initialize right_justify_lines.
5137 (environment::get_right_justify_lines): New function.
5138 (init_env_requests): Bind this to number_register ".rj".
5140 * troff/env.c (environment::choose_breakpoint): Implement
5141 hyphenation_margin and hyphenation_space.
5142 (environment::get_hyphenation_space,
5143 environment::get_hyphenation_margin): New functions.
5144 (init_env_requests): Bind these to .hys and .hym.
5145 (hyphenation_space_request, hyphenation_margin_request): New
5147 (init_env_requests): Bind these to hys and hym.
5148 (environment::environment(symbol), environment::environment(const
5149 environment *)): Initialize hyphenation_margin and
5151 * troff/env.h: Corresponding changes to class environment.
5153 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
5155 * troff/div.c (blank_line): Always do a break.
5157 * eqn/box.c (do_text): Turn off escapes while appending text to
5160 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
5162 * troff/input.c (while_break_request, while_continue_request): New
5164 (init_input_requests): Bind these to "break" and "continue".
5165 (while_depth, while_break_flag): New variables.
5166 (while_request): Update while_depth. Break out of loop if
5167 while_break_flag is set.
5169 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
5171 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
5174 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
5176 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
5178 * stringify: New file.
5179 * Makefile (groff.o): Use stringify.
5181 * xditview/tmac.X: Remove definition of \(rn.
5182 * xditview/libXdvi/DviChar.c: Remove radicalex from
5185 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
5187 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
5188 (alphabetic_block_entry::alphabetic_block_entry,
5189 alphabetic_block_entry::divert, alphabetic_block_entry::print):
5191 (block_entry::divert): Split off body into ...
5192 (block_entry::do_divert): If the block is alphabetic, subtract 2n
5193 from the line length; also update the span width to dl+2n, and the
5194 alphabetic span width to dl.
5196 * driver/input.c (do_file): While reading argument to D command,
5197 when expanding buffer, multiply szp by sizeof(int) rather than 2
5198 in the argument to memcpy.
5200 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
5201 width of alphabetic columns.
5203 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
5205 * troff/node.c (lookup_family): Supply second argument to lookup.
5207 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
5208 search, return immediately if v is 0.
5210 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5211 (troff_output::start_picture): Set this reg.
5212 (troff_output::end_picture): Remove this reg
5213 * eqn/box.c (box::extra_space): Don't produce `\x's if
5214 EQN_NO_EXTRA_SPACE_REG is defined.
5216 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5217 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5220 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5222 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5225 * troff/div.c (top_level_diversion::top_level_diversion):
5226 Initialize page_number to 0.
5228 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5230 * groff/troff (environment::environment(const environment *)):
5231 Initialize name to e->name, rather than "anonymous".
5233 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5235 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5236 requested_page. Split middle part into ...
5237 (FindPage): New function.
5238 (SetValues): If we don't yet know the last page, and the requested
5239 page is greater than the current page, call FindPage.
5240 Update the font_map_string before doing this.
5242 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5243 Translate \(lh and \(rh into left and right double arrows.
5245 * troff/node.c (class hyphen_inhibitor_node): New class.
5246 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5247 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5248 hyphen_inhibitor_node::type,
5249 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5250 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5251 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5254 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5256 * troff/node.h (dummy_node::get_hyphenation_type,
5257 transparent_dummy_node::get_hyphenation_type): Declare them.
5258 * troff/node.c: (dummy_node::get_hyphenation_type,
5259 transparent_dummy_node::get_hyphenation_type): New functions.
5261 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5263 * xditview/libXdvi/draw.c: If M_PI not defined after including
5264 math.h, then define it.
5266 * xditview/Makefile: Add definition of AR. Pass it to the submake
5268 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5270 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5272 * troff/dictionary.h (object_dictionary::alias): Declare return
5274 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5275 if the old name was defined.
5276 * troff/input.c (alias_macro): Give a warning if the old name was
5278 * troff/reg.c (alias_reg): Likewise.
5280 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5282 * troff/input.c (token::next): Delete implementation of \R.
5284 * macros/Makefile: Strip comments from tmac.e while installing it.
5286 * troff/input.c: New variable `nroff_mode'.
5287 (troff_request, nroff_request): New functions.
5288 (init_input_requests): Bind `troff' and `nroff' to troff_request
5290 (do_if_request): Compute results of t and n conditions from
5293 * text/text.c (split_text): Fix typo in >=.
5295 * eqn/lex.c: Add definition of `==' to def_table.
5297 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5299 * pic/tex.c (tex_output::start_picture): Change the definitions of
5300 \graph and \graphtemp so that they work properly with Plain TeX.
5302 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5303 argument to `ar' is not less than the first.
5305 * pic/pic.y: Allow a comma between elements of the variable list
5306 in the argument to `reset'.
5308 * pic/object.c (arc_object::arc_object): Fix computation of
5311 * eqn/main.c (main): Add exit(0).
5313 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5315 * troff/div.c (begin_page): Test no_space_mode after doing the
5316 break, but still push the page ejector cookie before doing the
5317 break. Also set the next page number after doing the break.
5319 * xditview/xditview.c (NewFile): Don't set the title and icon name
5320 if this is the first file and its name is `-'.
5321 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5322 the X75 and X100 devices.
5323 (main): If a device has the XT_OPTION flag set and there's exactly
5324 one file argument, pass the driver -xrm and -title options to set
5325 the icon name and window title to the name of the file.
5327 * troff/env.c (environment_switch): If there was an argument but
5328 it wasn't a valid number or name, then pop an environment but
5329 don't give an error message on underflow.
5331 * troff/number.c (start_number): Correct spelling in error message.
5333 * troff/input.c (token::delimiter): Don't print an error message
5336 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5337 ParseDrawFunction if dw->display_enable is true.
5339 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5341 * pic/pic.y: Parse text positioning like normal attributes, so as
5342 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5343 positioning attribute.
5345 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5347 * tbl/main.c (process_data): When in state START while reading a
5348 text block, don't change to state MIDDLE if c is a newline.
5350 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5352 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5353 so as to avoid shadowing parameter.
5355 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5357 * tbl/table.c (trim_space): Deleted.
5358 (table::add_entry): Don't call trim_space.
5360 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5362 * VERSION: Change version to 0.6.
5364 * troff/number.c (parse_expr): Make == work.
5366 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5368 * man/grog.man: New file.
5369 * man/Makefile: Add grog.n to MAN1PAGES.
5370 * etc/grog.sh: New file.
5371 * etc/Makefile: Install grog.sh as grog.
5373 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5375 * troff/input.c (token::next): Implement \E.
5377 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5379 * xditview/tmac.X: Change font translations to match tmac.ps.
5381 * troff/input.c (non_empty_name_warning): Don't give a warning if
5382 `\{' terminates the name.
5384 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5386 * ps/devps/symbol.diff: New file.
5387 * ps/devps/FontMakefile: Mention symbol.diff.
5389 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5391 * troff/node.c (font_position): Use get_long_name to read the
5394 * troff/env.c (environment_switch): If we get a number that's < 0
5395 or >= NENVIRONMENTS, treat it like a name.
5396 Change NENVIRONMENTS to 10.
5398 * troff/groff.h: Remove definition of FONTS_MAX.
5399 * troff/node.h (class font_family): Make map a pointer instead of
5400 an array. Add a map_size member. Make it a class. Make nm const
5401 and public. Make invalidate_fontno a friend.
5402 * troff/node.c: Define font_table_size. Make font_info a pointer
5403 rather than an array.
5404 (class troff_output_file): Allocate font_position dynamically. Add
5405 nfont_positions member.
5406 (troff_output_file::set_font): Grow font_position if necessary.
5407 (troff_output_file::~troff_output_file): Delete font_position.
5408 (troff_output_file::troff_output_file): Allocate font_position.
5409 (grow_font_table): New function.
5410 (troff_output_file::really_begin_page,
5411 troff_output_file:really_copy_page): Use nfont_positions rather
5413 (mount_font_no_translate, mount_style): Call grow_font_table if
5415 (font_family::font_family): Allocate map.
5416 (font_family::make_definite): Grow map if necessary. Use
5417 font_table_size instead of FONTS_MAX.
5418 (font_family::~font_family): New function.
5419 (invalidate_fontno): Use font_family::map_size.
5420 (get_fontno, env_space_width, env_half_narrow_space_width,
5421 env_narrow_space_width, symbol_fotno, is_good_fontno,
5422 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5424 (next_available_font_position): Never return 0.
5426 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5428 * ps/tmac.ps: Add font translations for compatibility with dpost.
5430 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5432 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5433 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5434 Move definitions baseline_sep, shift_down, column_sep,
5435 matrix_side_sep into...
5436 * eqn/box.c: Add them to param_table.
5437 * eqn/pbox.h: Add declarations to pbox.h.
5439 * troff/input.c (set_string): Cast value to unsigned char *.
5441 * troff/token.h (process_input_stack): Declare it static before
5442 declaring it a friend.
5444 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5446 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5448 * dvi/devdvi/EX: Regenerate.
5450 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5453 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5455 * eqn/lex.c: In defaults_table, make definition of `dot' call
5456 `dot_def'. Don't explicitly make it roman. Similarily for other
5459 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5461 (for_input::get, for_input::peek): Use this.
5462 (do_for): Add by_is_multiplicative argument.
5463 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5464 Change semantic value of optional_by to be a double plus a flag
5465 saying whethet the by clause is multiplicative.
5467 * eqn/lex.c (get_delimited_text): Remember location of start of
5468 definition. Improve error handling when EOF is encountered.
5470 * lib/font.h: Rename handle_x_command to
5471 handle_unknown_font_command.
5472 * lib/font.c (font::load): Call handle_unknown_font_command for
5473 any unknown command in the font description file. Don't call
5474 handle_x_command. Include the name of the command in the argv.
5475 Improve message for unknown command after kernpairs or charset
5477 * ps/ps.c (ps_font::handle_x_command): Rename to
5478 handle_unknown_font_command. Remove message about `x download'
5479 command. Give error message for wrong number of arguments.
5480 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5481 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5482 handle_unknown_font_command. Give an error message for wrong
5483 number of arguments. Rename design_size to designsize.
5484 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5485 checksum', `designsize' instead of `design_size'.
5487 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5489 * eqn/*.[chy]: Change underaccent to uaccent.
5491 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5492 give it the same precedence as ACCENT.
5493 * eqn/other.c (make_underaccent_box): New function.
5494 * eqn/box.h: Declare it.
5495 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5498 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5500 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5501 (parse_init): Call reset_all.
5502 (define_variable): When defining scale reset only those
5503 pre-defined variables that are scaled.
5504 (defaults_table): Add `scale' as non-scaled value.
5506 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5507 together with the text; allow any number of positioning words;
5508 allow center as a positioning word.
5510 * pic/object.c (output::compute_scale): Get picture maximum height
5511 and width from variables called maxpswid and maxpsht.
5512 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5514 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5516 * pic/object.c (object_spec::make_text): Multiply textht by number
5519 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5521 (do_sprintf): New function.
5522 (pic.gperf): Add sprintf token.
5523 (text, sprintf): New rules.
5525 * pic/pic.y: `rand()' with no arguments returns a random number
5528 * pic/pic.y: Allow a bare expression to be an attribute: change
5529 precedences to support this. Change optional_ordinal rule to
5530 optional_ordinal_last to avoid reduce/reduce conflict.
5531 * pic/object.c (object_spec::object_spec): Initialize direction.
5533 * pic/pic.y: Implement ^ operator meaning exponentiation.
5535 * troff/node.h: Add default argument to mount_font.
5536 * troff/node.c (font_position): Read an optional third argument
5537 giving the external_name.
5538 (mount_font): Add optional argument giving the external_name.
5539 (mount_font_not_translate): Have additional argument giving
5540 external name. Use this name to load the font. Pass both names
5541 to font_info::font_info.
5542 (font_info::font_info): Have additional argument giving
5544 (class tfont): New member external_name.
5545 (font_info::get_tfont): Use external name to construct tfont_spec.
5547 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5549 * eqn/lex.c (init_table): Add argument giving device. Define
5550 name of device to be "1".
5551 (do_ifdef): Counts as true if the argument has been defined with
5553 * eqn/main.c (main): Call init_table with device argument. Make
5554 device local to main.
5555 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5558 * pic/lex.c (get_delimited): Allow text to be delimited by
5559 matching {}s. Don't recognize ending delimiter within a string.
5561 * troff/input.c (get_delim_name): New function.
5562 (token::next): Implement \C.
5564 * lib/font.c (font::load): Grok ---. Add an alias for each
5565 character based on its code.
5566 (font::get_code_width): Deleted.
5567 * lib/font.h (class font): Declare font::number_to_index().
5568 Remove declaration of font::get_code_width.
5569 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5570 to indices of named characters.
5571 (font::number_to_index): New function.
5572 * troff/input.c (font::number_to_index): New function.
5573 (get_charinfo_by_number, charinfo::get_number,
5574 charinfo::set_number): New functions.
5575 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5576 (token::process, token::description, token::get_char,
5577 token::add_to_node_list, token::operator==): Handle
5578 TOKEN_NUMBERED_CHAR.
5579 * troff/charinfo.h: Declare get_charinfo_by_number,
5580 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5582 (charinfo::numbered): New function.
5583 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5584 * troff/env.h (class environment): Remove declaration of ...
5585 * troff/env.c (environment::make_numbered_char_node): Deleted.
5586 * troff/node.c (make_numbered_node): Deleted.
5587 (class numbered_glyph_node): Remove.
5588 (troff_output_file::put_char_width, troff_output_file::put_char):
5589 Handle numbered chars.
5590 (troff_output_file::numbered_char): Removed.
5591 (tfont::get_code_width): Removed.
5592 (make_glyph_node): Don't search special fonts for numbered
5594 * troff/node.h: Remove declaration of make_numbered_node.
5595 * driver/input.c (do_file): Handle N command.
5596 * driver/printer.h: Add declaration of ...
5597 * driver/printer.c (printer::set_numbered_char): New function.
5598 * dvi/tfmtodit.c (main): Generate unnamed entries.
5599 * ps/devps/afmtodit: Likewise.
5600 * xditview/xtotroff.c (MapFont): Likewise.
5601 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5603 * tbl/main.c (process_format): If multiple widths are specified
5604 for a column but all the widths are the same, don't give an error
5607 * tbl/table.c (table::do_row): If the current row is all lines and
5608 the stuff doesn't contains a line, mark the top of the row after
5609 printing stuff before the row. If the current row is not all
5610 lines and the stuff doesn't contain a line, don't unnecessarily
5611 mark the top of the row before printing the stuff.
5613 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5615 * troff/groff.h: Remove MAX_PATH.
5616 * troff/input.c (open_file): Dynamically allocate space for the
5618 (open_mac_file, process_macro_file): Corresponding changes.
5620 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5622 * troff/node.h (class output_file): Make copy_file pure. Add
5623 vspace method ifdef COLUMN. Add is_printing method.
5624 * troff/node.c: Add class printing_reg. Add class
5625 real_output_file. Derive other output_file classes from
5626 real_output_file; in these classes rename begin_page to
5627 really_begin_page, print_line to really_print_line, copy_file to
5628 really_copy_file, transparent_char to really_transparent_char.
5629 Move output_file::flush to real_output_file. Add printing member
5630 to class output_file.
5631 * troff/div.h: Remove printing member from top_level_diversion.
5632 Add vspace member function to class diversion ifdef COLUMN. Add
5633 some declarations ifdef COLUMN.
5634 * troff/div.c (top_level_diversion::copy_file,
5635 top_level_diversion::transparent_output,
5636 top_level_diversion::output): Don't test printing member before
5638 * troff/input.c: Handle initial variable_space_request ifdef
5640 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5643 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5645 * troff/div.c (diversion::need): Make any space forced. If we
5646 sprung a trap, set truncated_space to minus the distance to the
5647 trap and set needed_space to the amount that was needed.
5648 (top_level_diversion::space): A forced space turns no_space_mode
5650 (class constant_vunits_reg): New class.
5651 (init_div_requests): Implement number registers .trunc and .ne
5652 using constant_vunits_reg.
5653 (class truncated_space_reg): Deleted.
5655 * troff/div.h: Don't have a no_space_mode member in diversion.
5656 Instead have it in top_level_diversion.
5657 * troff/div.c (diversion::diversion): Don't initialize
5659 (top_level_diversion::top_level_diversion): Initialize
5661 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5662 (macro_diversion::output): Don't clear no_space_mode.
5664 * troff/input.c (diverted_space_node::reread): Don't call
5665 environment::do_break. In fill mode, act like a blank line.
5666 (diverted_copy_file_node::reread): Don't call
5667 environment::do_break.
5669 * troff/div.c (blank_line): New function.
5670 * troff/div.h: Declare it.
5671 * troff/input.c (process_input_stack): Call it.
5673 * troff/div.c (truncated_space_reg::get_string): New function.
5674 (init_div_requests): Bind to .trunc.
5675 (space_request, top_level_diversion::space,
5676 top_level_diversion::output, macro_diversion::space,
5677 macro_diversion::output): Update truncated_space.
5678 (macro_diversion::output): Redo calculations when trap sprung.
5679 (macro_diversion::output, macro_diversion::space): No need for
5682 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5683 after truncating post line spacing.
5685 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5687 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5688 defined as a procedure rather than as an operator.
5690 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5692 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5694 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5696 * troff/div.c (top_level_diversion::output): Merge
5697 output_file::print_line and output_file::end_of_line member
5699 * troff/div.h (class output_file):
5700 * troff/node.c (troff_output_file::print_line,
5701 troff_output_file::end_of_line, output_file::end_of_line,
5702 ascii_output_file::print_line, suppress_output_file::print_line):
5703 Corresponding changes.
5705 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5707 * troff/input.c (token::next): Don't give a warning for `\.'.
5709 * troff/env.c (environment::get_center_lines): New function.
5710 (init_env_requests): Bind number register .ce to it.
5711 * troff/env.h: Declare it.
5712 * tbl/table.c (table::init_output): Define reset macro to restore
5713 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5715 (table::print): If center option not given, then imply center
5716 option if SAVED_CENTER_REG > 0.
5718 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5720 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5721 Troff.ps from DOWNLOAD.
5723 * troff/Makefile: Change comment in DEFINES to avoid confusing
5726 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5727 code. Don't try to catch errors with stopped.
5728 (check_line_lengths): New function.
5729 * ps/devps/prologue (EXEC): Deleted.
5730 (EBEGIN, EEND): New procedures.
5732 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5734 * troff/input.c: Include request.h before node.h.
5735 * troff/node.c: Likewise.
5736 * troff/env.c: Likewise.
5737 * troff/div.c: Likewise.
5738 * troff/node.h (class special_node): Store argument as a macro
5739 rather than a char *.
5740 * troff/node.c (special_node::special_node, special_node::copy):
5742 (special_node::~special_node): Deleted.
5743 (special_node::tprint): Deleted.
5744 (special_node::tprint_start, special_node::tprint_end,
5745 special_node::tprint_char): New functions.
5746 (troff_output_file::special): Deleted.
5747 (troff_output_file::start_special, troff_output_file::end_special,
5748 troff_output_file::special_char): New functions.
5749 * troff/input.c (special_node::tprint): New function.
5750 (do_special): Use macro not char *.
5751 (do_transparent_macro): Deleted.
5752 (token::next): Don't call do_transparent_macro.
5754 * troff/input.c (token::next): Add 'Y' case.
5755 (do_transparent_macro): New function.
5756 * troff/node.c (troff_output_file::special): Handle newlines with
5757 argument using new continuation convention.
5758 * driver/input.c (get_string): Cope with continuation convention.
5759 (do_file): Don't call skip_line after calling get_string(1).
5760 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5761 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5763 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5766 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5768 * troff/input.c (asciify): By default, illegal input characters
5769 should return empty string.
5771 * troff/input.c (copy_file): Handle first page transition like title.
5772 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5774 * troff/input.c (token::next): Improve error message for EOF after
5776 (input_char_description): New function.
5777 (get_char_for_escape_name): Use input_char_description.
5778 (token::next): Warn about unrecognized escape sequences.
5779 (warning_table): Add WARN_ESCAPE.
5780 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5783 * troff/token.h: Remove declaration of process_input_stack.
5785 * troff/input.c: Remove declaration of init_hyphen_requests.
5786 * troff/request.h: Correct spelling in declaration of same.
5788 * troff/input.c (token::next): Check whether escape_char is 0.
5790 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5792 * groff.c (main, usage, help): Implement -P and -L options.
5793 * groff.sh: Likewise.
5795 * troff/input.c (token::next): Use some gotos to avoid code
5798 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5799 Avoid calling symbol::symbol if name empty.
5801 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5803 * troff/input.c (init_input_requests): Make \n(.x return the major
5804 version number and \n(.y return the minor version number.
5805 * troff/Makefile: Construct file majorminor.c defining
5806 major_version and minor_version automatically from ../VERSION.
5808 * troff/node.c (class glyph_node): Make operator new and operator
5810 (class ligature_node): Similarily.
5812 * troff/input.c (operator==(const macro &, const macro &)): New
5814 (non_interpreted_node::same): Use this.
5815 (string_iterator::string_iterator): Make macro& argument const.
5817 * troff/input.c (input_iterator::get): New function. Don't make
5818 asciify_macro or class non_interpreted_node friends of class
5820 (non_interpreted_node::interpret): Use input_iterator::get.
5821 (asciify_macro): Likewise.
5823 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5824 ~non_interpreted_node): Deleted.
5825 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5828 * troff/symbol.h: Make all symbol member functions const.
5830 * lib/strtol.c: New file.
5831 * lib/Makefile: Add strtol.c.
5832 * Makefile: Define STRTOL as strtol.o to include strtol in
5835 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5837 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5839 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5841 * troff/input.c (do_special): Use input_level.
5843 * troff/token.h (TOKEN_BACKSPACE): New token.
5844 (token::backspace): New function.
5845 * troff/input.c (token::description, token::next, token::process):
5846 Grok TOKEN_BACKSPACE.
5847 (do_special): Turn TOKEN_BACKSPACE back into \b.
5849 * troff/token.h (token::leader): New function.
5850 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5852 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5854 * troff/input.c (do_special): Use token::description in error
5857 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5859 * troff/input.c (decode_args): Combine quoted and
5860 quote_input_level variables. Make it a for (;;) loop.
5862 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5864 * troff/input.c (read_long_escape_name): The test for whether to
5865 expand buffer was off by 1.
5866 (read_string): Similarily.
5868 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5870 * troff/input.c: Use `const int' rather than `static const int'.
5872 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5873 (macro_diversion::copy_file): New function.
5874 * troff/node.h: New class diverted_copy_file_node.
5875 * troff/node.c: Implement it.
5876 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5877 first page transition by pushing a diverted_copy_file_node.
5878 * troff/input.c (token::next, process_input_stack): Don't handle
5881 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5883 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5884 whether space widths need adjusting.
5886 * troff/charinfo.h: Generalize translated_to_space to
5887 special_translation so as to allow translation to \&.
5888 * troff/input.c (translate): Allow translation to \&.
5889 (charinfo::*): Corresponding changes.
5890 * troff/node.c (make_node, node::add_char): Corresponding changes.
5891 * troff/node.h (dummy_node::dummy_node): Allow optional first
5894 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5895 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5897 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5898 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5899 (token::process): Grok that.
5900 * troff/input.c (copy_file): Handle first page transition like
5901 title by pushing a COPY_FILE_REQUEST cookie.
5902 (token::next, process_input_stack): Grok that.
5903 * troff/node.h (output_file::copy_file): Add x and y arguments.
5905 * troff/div.c (top_level_diversion::copy_file): Supply them.
5906 * troff/node.c (troff_output_file::copy_file): Add x and y
5907 arguments; moveto specified position. Invalidate font_position
5908 array after copying file.
5909 (output_file::copy_file): New function.
5910 (suppressed_output_file::copy_file, ascii_output::copy_file):
5912 * troff/input.c (transparent_file): New function.
5913 (init_input_requests): Bind to "trf".
5914 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5915 (process_input_stack): Likewise.
5917 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5919 * troff/node.c (init_node_requests): New number registers .kern
5920 pointing to global_kern_mode, and .lg pointing to
5921 global_ligature_mode.
5923 * troff/node.c (ligature): Don't change it if we get a bad
5926 * troff/input.c (do_define_string): Don't strip tabs.
5928 * troff/input.c (asciify_macro): Make the string_iterator auto.
5930 * troff/node.c (init_font_requests): Rename to...
5931 (init_node_requests):
5932 * troff/node.h: Change declaration.
5933 * troff/input.c (main): Change call.
5935 * troff/input.c (node::reread, diverted_space_node::reread): New
5937 (process_input_stack): Call reread rather than
5938 get_diverted_space_node.
5939 * troff/node.c (node::get_diverted_space_node,
5940 diverted_space_node::get_diverted_space_node): Removed.
5941 * troff/node.h: Declare reread methods instead of
5942 get_diverted_space_node methods. Make `n' member private.
5943 * troff/input.c: (token::diverted_space): Removed.
5944 * troff/token.h: Removed declaration.
5947 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5949 * eqn/script.c (script_box::compute_metrics): Don't let
5950 SUP_RAISE_FORMAT become negative.
5952 * tbl/table.c (table::do_row): Entries that don't end in the
5953 this row shouldn't make the row non-blank.
5955 * tbl/table.c (table::make_columns_equal): Only set the width of
5956 columns which are marked as equal.
5958 * tbl/main.c (process_data): Before issuing excess data error,
5959 if last character was a newline unget it; then get it again after
5960 the error. Also include the contents of the entry in the message.
5962 * groff.c: New file.
5963 * Makefile: Build groff from groff.c. Make it possible to use
5964 either groff.sh or groff.c as groff.
5965 * Makefile.bd: Similarily.
5967 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5969 * groff.sh: Don't delay expansion of $@ in assignment to files.
5970 Remove occurrences of \".
5972 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5974 * all Makefiles: Simplify and rearrange.
5976 * Makefile: Handle fmod like malloc.
5977 * lib/Makefile: Similarily.
5978 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5980 * Makefile: Rename OPTIMISE to OPTIMIZE.
5982 * groff.sh: Remove assignment to PATH.
5983 * Makefile: Remove SHPATH variable.
5984 * Makefile.bd: Similarily.
5986 * groff.sh: Add -V option to print the pipeline instead of
5989 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5991 * lib/font.c: Split off file searching into ...
5992 * lib/fontfile.c: New file.
5994 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5996 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5998 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5999 Also change misleading comment.
6000 (table::do_vspan): Change similarily misleading comment.
6001 * tbl/main.c (process_data): A format row with an explicit `s'
6002 uses up a data line, even if all the other columns are `_' or `='.
6004 * troff/input.c (token::description): Fix description of
6005 TOKEN_DUMMY and TOKEN_EMPTY.
6007 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
6009 * groff.sh: Fix description of -Z in help message.
6011 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
6013 * pic/object.c (object_spec::make_object): Allow negative and zero
6015 * pic/pic.y: Give linethick default value of -1.0.
6016 * pic/troff.c (troff_output::troff_output): Initialize
6017 last_line_thickness to BAD_THICKNESS.
6018 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
6019 (troff_output::line_thickness): Canonicalize negative thicknesses
6020 to RELATIVE_THICKNESS.
6021 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
6022 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
6024 (tex_output::start_picture): Set pen_size to -2.0.
6026 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
6027 0, then use 0 linewidth.
6028 (ps_printer::ps_printer): Initialize line_thickness to -1.
6030 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
6032 * ps/devps/symbolchars: Remove `or'.
6033 * ps/tmac.ps: Implement \(or with .char.
6035 * ps/devps/symbolchars: Move most characters into textmap.
6036 * ps/devps/textmap: Add names for troff bracket characters. Remove
6039 * ps/devps/TSymbol.ps: Removed.
6040 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
6041 * ps/tmac.ps: Do with .char what TSymbol did.
6042 * ps/devps/download: Remove TSymbol.
6044 * ps/devps/T: Removed.
6045 * ps/devps/Troff.ps: Removed.
6046 * ps/devps/Troff.afm: Removed.
6047 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
6048 * ps/devps/download: Remove Troff.
6049 * ps/devps/FontMakefile: Remove T target.
6050 * ps/devps/DESC-A4: Remove T from font list.
6051 * ps/devps/DESC-letter: Likewise.
6053 * troff/input.c (macro_to_node): Rename to ...
6054 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
6055 character's definition while processing it.
6056 * troff/node.c (node::add_char, make_node): Change calls to
6057 macro_to_node accordingly.
6059 * troff/input.c (token::next): Translate \_ to \(ul.
6061 * tty/devascii/R.proto: Add `|'.
6062 * tty/devlatin1/R.proto: Likewise.
6064 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
6066 * man: Put the version number in all the man pages.
6068 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
6070 * Makefile.bd: New file.
6071 * README.bd: New file.
6073 * VERSION: New file.
6074 * lib/version.c: Removed.
6075 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
6078 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
6079 environment variable.
6081 * all Makefiles: Split install target into install.bin for
6082 binaries, and install.nobin for everything else.
6083 * Makefile: Add bindist target.
6085 * man/afmtodit.man: New file.
6086 * man/Makefile: Add afmtodit.n to MAN1PAGES.
6087 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
6089 * ps/Makefile: Pass BINDIR to make install in devps.
6091 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
6092 the space character.
6094 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
6096 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
6098 * ps/ps.c: Redo font downloading.
6099 * ps/devps/download: New file.
6100 * ps/devps/Makefile: Add download to DEVICEFILES.
6101 * ps/devps/afmtodit: Remove -d option.
6102 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
6103 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
6104 * ps/devps/zapfdr.ps: Likewise.
6105 * ps/devps/TSymbol.ps: Likewise.
6107 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
6109 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
6111 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
6113 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
6114 then strip the first line if it starts with %.
6115 * Makefile: Add a comment about this.
6117 * man/tfmtodit.man: New file.
6118 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
6119 * dvi/Makefile: Install tfmtodit in BINDIR.
6121 * dvi/tfmtodit.c (usage): Mention -v option.
6123 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
6125 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
6126 * troff/node.c (troff_output_file::transparent_char): Don't call
6129 * eqn: Add check_tabs method to most box classes.
6130 * eqn/box.c (box::top_level): Call check_tabs.
6132 * eqn/script.c (script_box::output): Use \Z.
6133 * eqn/limit.c (limit_box::output): Use \Z.
6135 * eqn/box.c (box::top_level): Use itoa.
6137 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
6139 * dvi/tmac.dvi: Add font translations for CR, C, TT.
6140 * dvi/devdvi/Makefile: Don't make links to CW.
6142 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
6144 * xditview/tmac.X: Likewise.
6146 * troff/node.c: Add font translation feature.
6147 (get_font_translation): New function.
6148 (symbol_fontno): Translate the font name.
6149 (mount_font_no_translate): Rename to mount_font to this.
6150 (mount_font): New function.
6151 (font_family::make_definite): Call mount_font_no_translate instead
6153 (mount_style): Translate the font name.
6154 (font_translate): New function.
6155 (init_font_requests): Bind "ftr" to font_translate.
6157 * ps/devps/prologue (SN): New procedure that rounds a position to
6158 the nearest (pixel + (.25,.25)).
6159 (DL): Use SN to round endpoints.
6161 * lib/version.c: Changed version to 0.5.
6163 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
6165 * Makefile: Move definition of PAGE to the very beginning, so that
6166 people are less likely to miss it.
6168 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
6170 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
6172 * troff/env.c (environment::choose_breakpoint): Make `can't find
6173 breakpoint' error a warning of type WARN_BREAK. Change message to
6175 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
6177 * troff/input.c: Add WARN_BREAK to warning_table. Include
6178 WARN_BREAK in DEFAULT_WARNING_MASK.
6180 * tty/tmac.tty: Add definition of \(+-.
6182 * groff.sh: Remove `--' option to set command.
6184 * dvi/devdvi/texsy.map: Remove duplicate md entry.
6186 * ps/devps/eqnchar: Better definition of cdot using md.
6187 * dvi/devdvi/eqnchar: Likewise.
6188 * xditview/devX100/eqnchar: Likewise.
6189 * xditview/devX75/eqnchar: Likewise.
6190 * eqn/lex.c: Add definition of cdot.
6192 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
6194 * troff/input.c (get_optional_char): New function.
6195 * troff/input.c (set_page_character): Use get_optional_char(),
6196 rather than has_arg() and tok.get_char(1).
6197 * troff/env.c (tab_character, leader_character, hyphen_char,
6198 field_characters): Likewise.
6199 (margin_character): Likewise. Also always delete the
6200 margin_character_node.
6202 * troff/input.c (token::get_char): Use token::description.
6204 * troff/input.c (has_arg): Don't skip over tab and \}.
6205 * troff/number.c (start_number): Give a warning if the number
6206 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
6208 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6210 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6212 (get_name, get_long_name): Use these. Rename `warn' argument to
6215 * troff/node.c (get_fontno): Test that the symbol is not null.
6217 * troff/input.c (token::description): New function.
6218 * troff/number.c (parse_term): Use token::description in `numeric
6219 expression expected' message.
6220 * troff/groff.h: Add WARN_MISSING.
6221 * troff/number.c (start_number): New function.
6222 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6223 get_incr_number): Use start_number().
6224 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6226 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6227 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6229 * troff/input.c (token::get_char): Use WARN_MISSING.
6230 * troff/input.c (token::delimiter): Use token::description.
6231 * troff/env.c (environment_switch): Back out Aug 3 change.
6232 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6234 * troff/token.h (token::tab): New function.
6235 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6236 * troff/reg.c (alter_format): Likewise.
6237 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6239 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6241 * troff (most files): Redo warnings. Divide warnings into various
6242 categories; warning() has an additional first argument indicating
6243 the category it falls into.
6244 * troff/input.c (main): -w now takes an argument. New option -W.
6245 (enable_warning, disable_warning): New functions.
6247 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6248 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6250 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6252 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6253 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6254 * xditview/devX75/eqnchar: Likewise.
6255 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6257 * eqn/other.c: When bar or over applies to a single character
6258 don't produce an overline_box or an underline_box. Instead produce
6259 an accent_box or an underaccent_box, with the accent a line
6260 whose width is accent_width. New classes underaccent_box,
6261 overline_char_box and underline_char_box.
6262 * eqn/box.h: Move overline_box, underline_box, accent_box class
6263 declarations into eqn/other.c. Add declarations of
6264 make_underline_box, make_overline_box, make_accent_box.
6265 * eqn/eqn.y: Call make_overline_box, make_underline_box
6266 make_accent_box instead of constructors.
6267 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6269 * eqn/other.c: Add accent_box::~accent_box.
6270 * eqn/box.h: Declare it.
6272 * groff.sh: With -Tps, use eqn -D.
6274 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6276 (underline_box::output): Similarily.
6277 (accent_box::output): Use \Z.
6279 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6282 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6284 * troff/div.c (top_level_diversion::transparent_output(unsigned
6285 char)): Use asciify.
6286 * troff/input.c (asciify): Don't make it static.
6287 * troff/token.h (asciify): Declare it.
6289 * troff/input.c (get_name, get_long_name, token::get_char,
6290 token::delimiter): Add an extra default argument which says
6291 whether a warning should be printed.
6292 * troff: Pass a non-zero argument to one of these rather than
6293 printing a warning directly.
6295 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6297 * troff: Consistently use symbol::is_null.
6299 * troff/dictionary.h: Move some inline functions into
6302 * troff/request.h: Move inline functions into input.c.
6303 (request_or_macro::invoke): Make it pure.
6305 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6306 * troff/input.c (init_input_requests): Use class constant_int_reg.
6307 (class compatible_reg): Deleted.
6308 * troff/div.c (init_div_requests): Use class constant_int_reg.
6309 (class last_post_line_extra_space_reg): Deleted.
6311 * troff/env.c (tab_character): Don't change the tab character if
6312 we get an invalid argument.
6313 (hyphen_char): Similarily.
6315 * troff/reg.c (alter_format): Check that nm is not null.
6317 * Makefile, groff.sh: Make it possible to customize the commands
6318 used for printing PostScript and dvi files. Also make it possible
6319 to customize the path used by groff.sh.
6321 * eqn/eqn.y: Make `left' right associative.
6323 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6325 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6328 * pic/pic.h: Removed definition of INT_MAX.
6330 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6333 * troff/input.c (token::next): Handle \R like \n.
6335 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6337 * ps/tmac.pc (PSPIC): Simplify.
6339 * troff/env.c (tab_stops::to_string):
6340 * pic/pic.y (object_type_name):
6341 * pic/troff.c (simple_output::line):
6342 * pic/tex.c (tex_output::spline):
6343 * pic/object.c (object_spec::make_object):
6344 * tbl/main.c (process_data): Add cases to switch statements to
6345 avoid cfront warnings. (Some of these are spurious, since the
6346 switch already has a default case.)
6348 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6349 `ps-'. Don't test systat; instead check number of arguments to
6352 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6354 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6356 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6357 Unlink the file as soon as we have opened it, so that we don't
6358 have to bother with signal handlers.
6360 (fatal_error_exit): Deleted.
6361 (main): Don't call signal.
6363 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6365 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6367 * pic/pic.y: If there is a label, or an nth construction before
6368 the first `.' in the argument to `with', ignore it and generate a
6370 * pic/lex.c (lex_warning): New function.
6372 * tbl/table.c (table::init_output): In section keep and release
6373 macro, use 0 indent when diverting and the correct indent when
6376 * troff/input.c (interpolate_number_format): Do not interpolate
6377 anything if the number register is not defined.
6379 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6381 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6383 * ps/devps/prologue (PICTURE): Set components of graphics state to
6384 their default values.
6386 * ps/devps/text.enc: Add trademark
6387 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6388 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6389 * ps/devps/symbolchars: Add names for summation and product.
6391 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6392 suchthat. Add pp. Add upper-case letters.
6394 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6395 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6398 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6399 rA (right angle bracket) to ra. Introduce names for double-headed
6400 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6401 * ps/devps/textmap: Likewise for ps device.
6402 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6403 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6404 * tty/devascii/R.proto: Likewise.
6405 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6407 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6409 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6411 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6414 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6416 * troff/div.c (when_request): Use symbol::is_null rather than
6417 has_arg to determine whether we have an argument.
6418 (change_trap): Remove the trap if we get an invalid number. Give
6419 an error if we don't get at least the macro name.
6420 (diversion_trap): Remove trap if we get an invalid name or number.
6422 * troff/env.c (environment_switch): Pop if we get an invalid
6423 symbol or numeric expression.
6425 * troff/input.c (do_define_macro): If EOF is encoutered while
6426 defining the macro, do tok.next() before returning.
6428 * troff/token.h (has_arg): Move definition from here, to ...
6429 * troff/input.c (has_arg): ... here
6431 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6432 * troff/input.c (shift): Likewise.
6434 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6437 * pic/troff.c (troff_output::start_picture): Comment out calls to
6440 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6441 interpret_lf_args succeeds.
6443 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6444 \\. This avoids problems with \$N.
6446 * groff.sh: Pass -C to preprocessors.
6448 * lib/lf.c (interpret_lf_args): Be more flexible.
6450 * tbl/main.c (main): Add -C option.
6451 (table_input::get): Do not recognize TE if followed by character
6452 other than a space or newline unless -C option given.
6453 (process_input_file): Likewise for lf, TS.
6454 (process_data): Likewise for lf in text blocks.
6456 * eqn/main.c (main): Add -C option.
6457 (do_file): Don't recognize EQ, EN or lf if followed by character
6458 other than space or newline unless -C option given.
6459 * eqn/lex.c (file_input::read_line): Similarily.
6460 * eqn/eqn.h: Declare compatible_flag.
6462 * etc/soelim.c (main): Add -C option.
6463 (interpret_lf_args): Use version in libgroff.
6466 * pic/main.c (main): Add -C option, which sets compatible_flag.
6467 (top_input::get), (top_input::peek): If -C option not given,
6468 do not recognize .PS/.PE/.PF/.lf if followed by a character
6469 other than space or newline.
6470 * pic/lex.c (file_input::read_line): Similarily.
6471 * pic/pic.h: Add declaration of compatible_flag.
6473 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6475 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6477 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6478 derived from node. New class space_char_hmotion_node.
6479 * troff/input.c (asciify_macro): New function.
6480 * troff/input.c (init_input_requests): New request `asciify' bound
6482 * macros/mm.diff: New file.
6483 * Makefile: In install.mm target use `patch' to apply
6486 * troff/input.c (macro::print_size): Just print the size in bytes.
6488 * troff/div.c (return_request): Correct the argument
6491 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6493 * troff/node.h (class composite_node): Add sz member.
6494 * troff/node.c (composite_node::size): Return sz.
6495 * troff/input.c (macro_to_node): Use the initial size in the
6496 environment as the size of the composite_node.
6498 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6501 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6503 * troff/div.c (change_trap): If we get a bad number expression,
6506 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6508 * lib/matherr.c (matherr): Define this only if math.h defines
6511 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6513 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6514 no diversion trap return vunits(INT_MAX - vresolution).
6516 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6518 * troff/input.c (do_zero_width): New implementation that doesn't
6519 use a temporary environment. Use instead:
6520 (token::add_to_node_list): New function.
6521 * troff/env.c (environment::get_prev_char_height),
6522 (environment::get_prev_char_height),
6523 (environment::get_prev_char_skew): New functions.
6524 (environment::get_prev_char): New function.
6525 (environment::get_prev_char_width): Change to use get_prev_char.
6526 (init_env_request): Implement new registers .cht, .cdp, .csk.
6527 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6528 \Z being processed in a separate environment.
6530 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6532 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6534 * tbl/table.c (table::init_output): In the section release macro,
6535 give a warning message if the section won't fit on one page.
6537 * tbl/table.c (table::do_top): Emit table keep only if table is
6539 (table::do_bottom): Likewise for table release.
6540 (table::table), (table::add_vertical_rule): Remove reference to
6542 * tbl/table.h: Remove keep member.
6544 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6545 SECTION_RELEASE_MACRO, if there's not enough space before the next
6546 trap to output the diversion, call T# ourselves, set
6547 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6548 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6549 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6550 vertical position and return to it before turning traps on again.
6552 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6554 * troff/node.c, troff/node.h: In classes derived from node,
6555 replace prev_char_width method by last_char_node method.
6556 * troff/env.c (environment::get_prev_char_width): Use
6557 node::last_char_node rather than node::get_prev_char_width.
6559 * Makefile: Added comment about -fno-inline on 68030-based
6562 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6563 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6564 expressions using sizeof to int.
6565 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6567 * macros/tmac.e (TS): Don't move @f back past the current
6570 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6572 * ps/ps.c (main): Buffer stderr.
6573 * dvi/dvi.c (main): Likewise.
6574 * tty/tty.c (main): Likewise.
6576 * ps/ps.c (ps_printer::do_import): Improve error handling.
6578 * troff/input.c (abort_request): Use asciify.
6580 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6581 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6582 type of first argument int rather than char. This works around a
6583 bug on the 68030 based Apollo using g++ 1.37.1.
6585 * tbl/table.h (class table): Add `keep' member.
6586 * tbl/table.c (table::table): Initialize `keep'.
6587 (table::add_vertical_rule): Set `keep' to 1.
6588 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6589 (table::do_bottom): Likewise for table release macro.
6590 (table::do_row): Emit section keep macro even if the row is 0.
6592 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6594 * macros/tmac.e (@C): Preserve the font family across the change
6597 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6599 * lib/font.c: Initialize font::hor and font::vert to 1.
6600 (font::load_desc): Check the values of font::hor and font::vert.
6602 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6603 be included in a C compilation.
6604 (iftoa): Use INT_DIGITS. Include lib.h.
6606 (as_string): Likewise.
6607 * tbl/table.c: Removed definition of INT_DIGITS.
6608 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6609 * troff/input.c (input_input_requests): Likewise.
6610 * ps/ps.c (make_encoding_name): Likewise.
6611 (ps_printer::set_style): Likewise.
6612 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6614 * tty/devascii/R.proto: Map fm onto '.
6615 * tty/devlatin1/R.proto: Likewise.
6617 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6619 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6620 argument to \w is at a different input level.
6622 * tbl/table.c (table::init_output): Define a new macro
6623 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6624 transparently outputs itself.
6625 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6627 (table::do_row): Likewise.
6629 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6630 TRANSPARENT_STRING_NAME.
6632 * tbl/table.c (table::init_output): In the table release macro
6633 print an error message and don't produce any output if after
6634 issuing the need request the table still will not fit. Also
6635 remove the diversion after bringing it back.
6637 * tbl/table.c (table::init_output): Define a new macro
6638 REPEATED_MARK_MACRO, like mk but if in a diversion also
6639 transparently outputs itself.
6640 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6641 is necessary because .TH might not call .T#.
6642 (table::do_top): Likewise TOP_REG.
6643 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6644 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6645 table header might contain just the two top rules.
6647 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6649 * troff/div.c: Implement new request `ptr' to print all traps.
6651 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6652 init_string_env_reg.
6653 * troff/env.c (class tab_reg): Deleted.
6655 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6657 * troff/div.c: New number register .pn returns the number of the
6658 next page as set by the pn request.
6660 * macros/tmac.an: Redid headers and footers. Number each manual
6661 entry starting from 1 unless \nC is > 0, like Sun. Added an
6662 optional 5th argument to .TH which specifies the manual name and
6663 appears in the center of the header. Understand the X, P and D
6666 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6668 * troff/env.c (init_env_requests): New number register `.lt' to
6669 return the title length.
6671 * troff/node.h (class transparent_dummy_node): New class.
6672 * troff/node.c (class transparent_dummy_node): Provide member
6674 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6677 * troff/input.c (token::next): New escape sequence \).
6678 * troff/input.c (get_copy): Recognize \) in copy mode.
6680 * troff/input.c (input_stack::clear): New function.
6681 * troff/input.c (exit_request): Use input_stack::clear.
6683 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6684 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6686 * troff/env.c: Move set_page_character to input.c. Move
6687 page_character to input.c also.
6688 * troff/env.c (title): Split off the reading of the parts of the
6689 title into read_title_parts.
6690 * troff/input.c (read_title_parts): New function. Check the
6691 input_level when testing whether a token matches the delimiter.
6693 * troff/input.c (exit_request): New function.
6694 * troff/input.c (init_input_requests): Bind ex request to
6695 exit_request rather than exit_groff.
6697 * troff/input.c (exit_groff): Call tok.next() before
6698 process_input_stack().
6700 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6702 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6703 * troff/env.h: ditto.
6704 * troff/input.c: ditto.
6706 * troff/env.c (environment::is_empty): Test pending_lines.
6708 * troff/env.c (environment::have_pending_lines): Removed.
6710 * troff/input.c: Add request to flush pending lines from the
6713 * troff/env.c, troff/env.h: Add automatic widow control feature.
6715 * troff/input.c (exit_groff): Do process_input_stack() after
6716 do_break() but before setting exit_flag to 2.
6718 * troff/input.c: Remove FLUSH_PENDING_LINES and
6719 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6720 environment after END_TRAP token seen, but only if there aren't
6721 any more traps still unfinished.
6722 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6724 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6726 * troff/env.c: Rename the `retain_size' member of class
6727 pending_output_line to `no_fill'.
6729 * troff/env.c (title): When the line is output, make the
6730 retain_size argument !fill.
6732 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6733 * troff/node.c (space_node::get_breakpoints),
6734 (dbreak_node::get_breakpoints): Fill this in.
6735 * troff/env.c: Allow specification of maximum number of
6736 consecutive hyphenated lines.
6738 * troff/env.c (environment::is_empty): Add test for !current_tab.
6740 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6742 * troff/env.c (environment::hyphenate_line): Don't completely give
6743 up if the word is not to be hyphenated; continue so that breaks
6744 can be made at break_char_node's.
6746 * lib/lib.h: Only define INT_MAX if it's not already defined;
6747 undef INT_MIN if it's already defined.
6749 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6751 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6752 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6755 * macros/tmac.an (an-header): Set no-space mode.
6757 * macros/tmac.an (TH): Start a new page if necessary.
6759 * Started using ChangeLog at version 0.4.
6762 version-control: never