1 2000-02-29 Werner LEMBERG <wl@gnu.org>
3 * doc/meref.me: Fix description of .GS request.
5 * src/roff/troff/troff.man: Fixing typo.
7 Adding the `grn' preprocessor for gremlin graphic files.
9 * src/preproc/grn/*: This is the Berkeley distribution written by
10 David Slattengren and Barry Roitblat, adapted to groff by Daniel
11 Senderowicz and Werner Lemberg.
13 * doc/grnexampl.{me,g}: A sample for grn.
15 * src/roff/groff/groff.cc: Added support for grn. It can be now
16 called with the switch `-g'.
18 * src/roff/groff/groff.man: Updated.
20 * src/roff/grog/grog.{man,pl,sh}: Updated.
24 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
26 * src/include/lib.h: Added xtmptemplate and made xtmpfile
27 parametrically polymorphic.
29 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
30 and the alterations to xtmpfile.
31 xtmpfile can be requested to return the filename created
32 and asked not to unlink the temp file. The default behaviour
33 if parameters are absent is exactly the same as before.
35 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
37 A new request `length' is available which returns the length of a
38 string in a number register:
40 * src/roff/troff/input.cc (length_macro): Implement it.
41 * src/roff/troff/input.cc (init_input_requests): Register it.
43 2000-02-11 Werner LEMBERG <wl@gnu.org>
45 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
46 of the `substring' request.
48 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
51 * src/roff/troff/TODO, NEWS: Updated.
53 2000-02-09 Werner LEMBERG <wl@gnu.org>
55 * src/roff/groff/groff.man: Added an example.
57 2000-02-06 Werner LEMBERG <wl@gnu.org>
59 I've considerably modified the directory structure of the
60 distribution to get a more vertical layout. For example, the number
61 of top level directories has been reduced from 42 to 6.
63 As a consequence, many changes, especially to the makefiles, were
66 * The makefile variables `top_builddir' and `top_srcdir' have been
67 introduced. Virtually all relative paths have been replaced with
68 absolute ones using these two variables.
70 * Dependencies (in the files `Makefile.dep') are no longer part of
71 the distribution. Instead, they are created during a `make install'
72 in the build directory.
74 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
75 make `top_srcdir' and `top_builddir' absolute.
79 * Man pages no depend on the files `VERSION' and `REVISION'.
81 * The added shell script `mkinstalldirs' will replace `mkdir' in
84 * VERSION: Version number increased to 1.16.
86 2000-02-04 Werner LEMBERG <wl@gnu.org>
88 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
90 * Makefile.in: Removed $(tmac_m) since it is no longer needed
91 (after an update of the mm stuff).
93 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
95 2000-02-03 Werner LEMBERG <wl@gnu.org>
97 The .psbb request will now also accept Mac PS images (i.e. using LF
98 as the EOL character).
100 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
101 (with slight modifications).
102 * troff/input.cc (do_ps_file): Use it.
104 * test-groff: Add grohtml and grolj4 output devices to PATH.
106 2000-01-30 Werner LEMBERG <wl@gnu.org>
108 * NEWS, MORE.STUFF: Updated.
110 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
112 Add the `srand' command to pic.
114 * pic/lex.cc, pic/pic.y: Implement it.
115 * pic/pic.man: Document it.
116 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
118 2000-01-30 Werner LEMBERG <wl@gnu.org>
120 Add a new request `.psbb'. This does exactly what the external
121 program psbb did. It scans a PostScript image file for a
122 %%BoundingBox comment and extracts the bounding box values (in
123 PostScript units) which are then stored in the four new (read-only)
124 number registers `llx', `lly', `urx', and `ury'.
126 This will allow the usage of the .PSPIC macro without worrying
127 about unsafe behaviour of groff, i.e., it will work without the
128 `-U' switch of groff.
130 * troff/input.cc: Implement it.
131 * tmac/tmac.pspic: Use it.
132 * troff/troff.man, grops/grops.man, NEWS: Document it.
133 * psbb/*, Makefile.in: Remove it since it is no longer needed.
135 This is bloody C code simply adapted from psbb.c! Any improvements
138 2000-01-29 Werner LEMBERG <wl@gnu.org>
140 * man/groff_font.man: Minor clarifications.
144 2000-01-28 Werner LEMBERG <wl@gnu.org>
146 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
148 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
150 * man/groff_font.man: Brought up to date regarding tcommand
152 * libgroff/font.cc: Handle everything after `--' as a comment
154 * devps/*: Added comment delimiter inside devps font files.
156 2000-01-28 Werner LEMBERG <wl@gnu.org>
158 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
159 \fC...\fP (which now works as expected).
161 * troff/troff.man: Fix typo.
163 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
165 Completed the pass_filenames implementation in troff.
167 * libdriver/input.cc: Will read the new `F' tcommand.
168 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
169 * troff/input.cc: Use it.
171 2000-01-26 Werner LEMBERG <wl@gnu.org>
173 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
174 font will now be updated even if an invalid font is selected.
176 2000-01-24 Werner LEMBERG <wl@gnu.org>
178 * doc/homepage.ms: Updated for new tmac.arkup.
180 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
182 * tmac/tmac.arkup: Cleanup.
184 Added `\&' to .HTML macro to `leave vertical mode', so to say.
186 Removed obsolete .LINK macro completely.
188 The macros .URL, .FTP, and .MAILTO now accept a third argument which
189 will be immediately appended to the second argument (to be used with
190 punctuation, for example).
192 Disabled .CDFTP macro temporarily for security reasons.
194 * tmac/groff_markup.man: Complete revision for latest changes in
195 tmac.arkup -- note that it does not yet format correctly with
198 2000-01-23 Bruno Haible <haible@clisp.cons.org>
200 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
201 * devutf8/R.proto: Add mappings for wp, lh, rh.
202 * devutf8/NOTES: Updated.
204 2000-01-23 Werner LEMBERG <wl@gnu.org>
206 * doc/groff.texinfo: Updated version/copyright info.
208 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
210 Added support for two new directives in device descriptions:
211 `pass_filenames' (to pass the input file name to the output device)
212 and `use_charnames_in_special' (to support e.g. accented characters
215 * include/font.h, troff/charinfo.h: Declare it.
217 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
219 * devhtml/DESC: Use it.
221 * troff/input.cc: New function encoded_char.
223 * troff/token.h: Add test for `specialness'.
225 2000-01-21 Werner LEMBERG <wl@gnu.org>
227 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
228 mistake from the list of files to be installed.
230 2000-01-18 Werner LEMBERG <wl@gnu.org>
232 * README: Added info how to apply patches.
234 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
236 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
238 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
240 * troff/input.cc: Add support for troffrc-end.
242 * tbl/main.cc: Altered to issue table-start and table-end special
243 characters if using the html device.
245 * devhtml/*: Modified font files to incorporate html encoding of
248 * tmac/groff_markup.man: New file documenting tmac.arkup.
250 * tmac/troffrc-end: New file. This is invoked after all user
251 specified macros. Currently used by the html device to include
252 tmac.html. Thus no need for users to specify -mhtml anymore.
254 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
255 (MAN7): Add groff_markup.man.
257 * tmac/tmac.an, tmac/tmac.html: Small html updates.
259 * tmac/troffrc: tmac.arkup will now be called for the html device.
261 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
262 extra device specific information about fonts.
264 * doc/homepage.ms: New file. It is an example how an HTML home page
265 could look like with grohtml.
267 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
269 2000-01-12 Bruno Haible <haible@clisp.cons.org>
271 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
274 * devutf8/NOTES: Updated.
276 2000-01-08 Bruno Haible <haible@clisp.cons.org>
278 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
279 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
280 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
281 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
282 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
283 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
284 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
285 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
288 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
290 2000-01-12 Fabrizio Polacco <fab@prosa.it>
292 grolj4: Paper size will be searched case-insensitively.
294 * grolj4/lib.h: Add check for strcasecmp().
295 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
296 * configure.in: Check for strcasecmp().
298 2000-01-11 Werner LEMBERG <wl@gnu.org>
300 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
303 2000-01-10 Werner LEMBERG <wl@gnu.org>
305 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
308 Add a new read-only register, `.Y', which contains the groff
311 * troff/input.cc (init_input_requests): Define it.
312 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
313 * doc/groff.texinfo, troff/troff.man: Document it.
315 * libgroff/Makefile.sub (version.cc): Add definition of
316 `Version_string[]', consisting of `<major>.<minor>.<revision>'
317 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
318 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
319 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
320 troff/input.cc, pfbtops/pfbtops.c: Use it.
322 2000-01-10 Fabrizio Polacco <fab@prosa.it>
324 Add a revision scheme to the groff package.
326 * REVISION: New file.
327 * libgroff/Makefile.sub (version.cc): Use it to define
329 * grops/psrm.cc: Use revision_string (converted to an unsigned
330 integer) in constructor of resource_manager.
332 2000-01-10 Bruno Haible <haible@clisp.cons.org>
334 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
336 * Makefile.in (DEVDIRS): Add devutf8.
337 * grotty/tty.cc: Include device.h.
338 (glyph): Change type of `code' to `unsigned int'.
339 (tty_printer): New field is_utf8. Constructor takes device argument.
340 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
341 (tty_printer::add_char): Change type of first arg to `unsigned int'.
342 (tty_printer::put_char): New function.
343 (tty_printer::end_page): Use put_char() instead of ::putchar().
344 (make_printer): Pass device to tty_printer constructor.
345 * nroff.sh: Determine default device by calling 'locale'. As a
346 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
347 Recognize UTF-8 locales.
348 * tmac/eqnrc: Recognize utf8 like latin1.
349 * tmac/troffrc: Device utf8 needs tmac.tty.
351 2000-01-07 Werner LEMBERG <wl@gnu.org>
353 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
355 2000-01-07 Paul Eggert <eggert@twinsun.com>
357 Add a new predefined writeable number register, `year',
358 which contains the current year.
360 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
361 * tmac/tmac.s: Use it.
362 * troff/input.cc (init_registers): Initialize it.
364 2000-01-06 Werner LEMBERG <wl@gnu.org>
366 * PROBLEMS: Fixed typo.
368 2000-01-04 Paul Eggert <eggert@twinsun.com>
370 * PROBLEMS: Add Y2k advice for the yr number register.
372 2000-01-03 Paul Eggert <eggert@twinsun.com>
374 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
376 2000-01-02 Werner LEMBERG <wl@gnu.org>
378 * tmac/tmac.arkup: Slight modification of macros to provide better
379 appearance for non-HTML formats.
381 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
383 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
384 does not automatically translate to malloc(n) on all OSes
385 (e.g., SunOS) so do it explicitly. Also, check the returned
388 2000-01-01 Werner LEMBERG <wl@gnu.org>
390 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
392 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
393 expects this variable
395 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
397 * doc/Makefile: Added instructions to create HTML and text
398 versions of some files.
400 1999-12-31 Werner LEMBERG <wl@gnu.org>
402 * Updated INSTALL.gen.
404 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
405 better resp. correctly with non-HTML devices.
407 Version 1.15 released
408 =====================
410 1999-12-28 Werner LEMBERG <wl@gnu.org>
412 * NEWS, VERSION: Changed to 1.15
414 1999-12-27 Paul Eggert <eggert@twinsun.com>
416 * nroff/nroff.man: -S is safer, not safe.
418 * groff/groff.cc (main): Use `safer', not `safe', in variable
419 names. This does not change the behavior.
421 * troff/input.cc (main): Likewise.
423 * nroff/nroff.sh: Likewise.
425 * troff/input.cc (prepend_string): New function.
426 (main): Prepend -msafer, so that we check macro libraries for
429 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
431 Version 1.14 released
432 =====================
434 1999-12-26 Werner LEMBERG <wl@gnu.org>
436 * NEWS, VERSION: Changed to 1.14.
438 1999-12-24 Werner LEMBERG <wl@gnu.org>
440 * refer/refer.cc: Fixing the last fix.
442 Version 1.13 released
443 =====================
445 1999-12-23 Werner LEMBERG <wl@gnu.org>
447 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
452 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
454 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
455 document conventions, the version number must be a real.
457 Version 1.12.1 released
458 =======================
460 1999-12-22 Werner LEMBERG <wl@gnu.org>
462 * VERSION: Changed to 1.12.1.
464 1999-12-22 Alan Rooks <arooks@istar.ca>
466 * refer/refer.cc (do_file): Slight modification to satisfy the
467 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
470 1999-12-20 Werner LEMBERG <wl@gnu.org>
472 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
475 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
476 list of unsafe requests.
478 * pic/pic.man: Fixed a typo.
480 * man/groff_out.man: Fixed a typo.
482 1999-12-18 Werner LEMBERG <wl@gnu.org>
484 * Makefile.in: Doc fixes.
486 1999-12-17 Fabrizio Polacco <fab@prosa.it>
488 * groff/groff.cc: Missing `U' option added to getopt().
490 * troff/troff.man: Missing `U' option added to synopsis.
492 Version 1.12 released
493 =====================
495 1999-12-14 Werner LEMBERG <wl@gnu.org>
497 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
500 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
501 with the more appropriate terms `safer' and `unsafe'.
503 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
504 sys_nerr and sys_errlist[].
506 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
508 * pic/pic.y, pic/pic.cc: Added check for fmod().
510 1999-12-13 Werner LEMBERG <wl@gnu.org>
512 * VERSION: Changed to 1.12.
514 Here some patches from various sources; most of them taken from
515 the Debian distribution.
517 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
518 tmac/Makefile.sub: New files copied directly from the NetBSD
519 distribution. Probably, some additional adaptation later on is
522 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
525 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
526 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
527 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
528 (`-S') is now the default.
530 * README, NEWS: Updated.
532 1999-12-09 Werner LEMBERG <wl@gnu.org>
534 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
536 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
538 1999-12-06 Werner LEMBERG <wl@gnu.org>
540 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
541 grief than relief today. Additionally, it is against the GNU
544 * configure: Recreated.
546 1999-12-05 Werner LEMBERG <wl@gnu.org>
548 * configure.in: Added GROFF_LIBM.
550 * configure: Recreated.
552 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
555 * Makefile.in: Added definition of $(LIBM).
557 * Makefile.comm (LIBM): Removed.
559 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
561 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
563 * doc/Makefile: Added rule for generation pic.html.
565 (clean): Files produced by grohtml will be removed also.
567 * doc/pic.ms: Small fix.
569 * tmac/tmac.html: Fixed suppression of headers.
571 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
573 * tmac/tmac.html: Fixing horizontal arrows.
575 Turning off hyphenation.
577 * tmac/tmac.an: Improved support for grohtml; better indentation,
580 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
582 * tmac/tmac.arkup: Added CDFTP macro
584 * tmac/tmac.html: All headers are turned off for ms, me, and mm
587 * tmac/troffrc: Some additions for HTML stuff.
589 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
591 * tmac/tmac.html: Small changes.
593 1999-09-26 Werner LEMBERG <wl@gnu.org>
595 * doc/groff.texinfo: Minor fixes.
597 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
599 * devhtml/TR: Changed spacewidth to 3.
601 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
603 * tmac/tmac.html: Moved markup macros to tmap.arkup.
605 * tmac/tmac.arkup: New file.
607 * grohtml/ChangeLog: New file.
609 1999-09-16 Werner LEMBERG <wl@gnu.org>
611 * doc/groff.texinfo (Common Features): Added Copying chapter.
612 Changed format to @smallbook.
614 1999-09-15 Werner LEMBERG <wl@gnu.org>
616 * NEWS: Added info about groff.texinfo.
618 * doc/groff.texinfo: Will now compile (using texi2dvi) without
621 1999-09-14 Werner LEMBERG <wl@gnu.org>
623 * groff/groff.man: More updates.
625 1999-09-13 Werner LEMBERG <wl@gnu.org>
627 * doc/groff.texinfo: New file. This manual is still very
628 rudimentary. It has been originally contributed by Trent
629 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
632 * INSTALL: Added information about the `doc' subdir
634 * troff/troff.man: Minor fixes.
636 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
639 * troff/input.cc (usage): Added missing `-ffam' to usage message.
641 * Makefile.in (dist): groff-$(version).tar.gz must be removed
642 also, otherwise it is included itself in another call of `make
645 * groff/groff.cc (synopsis): Removed superfluous space.
647 * PROJECTS, PROBLEMS, NEWS: Updated.
649 * xditview/Makefile: Removed.
651 * VERSION: Updated to 1.12beta.
653 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
655 * README: Updated: Included documentation about CVS repository,
656 mailing lists, and daily snapshots.
658 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
660 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
662 * tmac/tmac.an: If the tag didn't fit into the space that the
663 macro `TP' specifies, the rest of the tag went into the space for
666 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
668 * grolj4/lj4.cc: Added duplex printing (option `-d').
670 * grolj4/grolj4.man: Document duplex printing.
672 1999-09-12 Werner LEMBERG <wl@gnu.org>
674 * doc/Makefile (pic.ps): Fixed rule which caused problems with
675 non-GNUish sed programs.
677 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
680 * configure.in (LIBS): Added `-lc'
682 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
684 * pic/tex.cc (solid_arc): Casting M_PI to double.
686 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
688 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
689 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
690 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
692 * groff/groff_man.man: New file. This manual page was originally
693 written for the Debian GNU/Linux system by Susan G. Kleinmann
696 * eqn/list.cc (list_box::compute_metrics,
697 list_box::compute_sublist_width): Removed variable declaration to
698 avoid shadowing warnings.
700 * grops/psrm.cc (resource_manager::process_file): Ditto.
702 * tfmtodit/tfmtodit.cc (main): Ditto.
704 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
705 to avoid shadowing warnings.
707 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
708 shadowing loop variable.
710 * groff/groff.man, troff/troff.man: Added doc about grohtml.
712 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
714 New grohtml frontend to convert groff input to html.
716 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
718 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
720 * tmac/eqnrc: Added html device.
722 * tmac/tmac.html: New file.
724 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
725 (troff_output::start_picture, troff_output::finish_picture),
726 tbl/main.cc (process_input_file):
727 Surrounded output with `graphics_start' and `graphics_end' so that
728 the html driver can identify non-text portions.
730 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
731 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
732 grotty/tty.ps (tty_printer::set_char): Additional parameter
735 * include/printer.h: Class printer: New function
736 set_char_and_width; new variables (is_char_named, is_named_set,
737 named_command, named_char_s, named_char_n) to hold information
738 about named characters -- needed by the html driver.
740 * libdriver/printer.cc (printer::set_ascii_char,
741 printer::set_special_char): Use set_char_and_width.
743 * devhtml/*: New device files for html driver.
745 * grohtml/*: New driver grohtml.
747 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
749 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
752 1999-09-11 Luke Mewburn <lukem@netbsd.org>
754 * libgroff/string.cc (search): Small fix to test against NULL
757 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
759 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
760 \b'abc') were stacked in reverse order when processed in a
763 * troff/node.h: Added `*last' to struct `node' to make the above
766 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
767 The default scale for the 'f' and 't' graphics functions were 'm'
768 rather than 'u' (i.e., no scaling).
770 1999-09-11 Peter Miller <peterm@jna.com.au>
772 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
773 do_file), soelim/soelim.man: Added `-I file' option to soelim,
774 defining include paths.
776 * soelim/soelim.cc (include_path_append): New function.
778 1999-09-11 Larry Jones <larry.jones@sdrc.com>
780 * tbl/main.cc (process_options): Unix (at least Documenter's
781 Workbench) tbl allows arbitrary non-alpha characters between
784 1999-09-11 Paul Eggert <eggert@twinsun.com>
786 Y2k fixes. Don't assume that the current year precedes 2000.
788 * doc/meref.me: Add \n(y2, \n(y4.
790 * tmac/doc-common (Yr): New number register.
791 (Dd): Don't assume current year precedes 2000.
793 * tmac/tmac.e (td): Likewise.
794 (y2, y4): New number registers.
796 * pic/pic.man: Update reference for pic paper to May, 1991
799 1999-09-11 Werner LEMBERG <wl@gnu.org>
801 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
802 Removed quotation marks which prevented correct expansion of
805 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
807 1999-09-10 Werner LEMBERG <wl@gnu.org>
809 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
812 * Removed configure.old.
814 1999-08-31 Werner LEMBERG <wl@gnu.org>
816 * VERSION: Updated to 1.11.1
818 1999-05-27 Werner LEMBERG <wl@gnu.org>
820 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
822 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
823 added quotations around $(tmac_wrap) to avoid syntax error if
826 * configure: Newly generated using autoconf 2.13.
828 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
830 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
832 * README, PROJECTS, NEWS, INSTALL, VERSION,
833 doc/Makefile. doc/pic.ms, groff/groff.man:
834 Prepare for 1.11 release. No code changes.
835 Documentation for pic added (doc/pic.ms).
837 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
839 * Version 1.10 released.
841 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
843 * afmtodit/afmtodit.pl: Avoid comment on first line.
845 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
847 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
848 * configure.in: Call it.
850 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
851 (distfiles): Doesn't depend on config.log or config.cache.
853 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
855 * grog/grog.sh: Use print "" rather than print in END rule.
857 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
859 * tbl/main.cc (process_data): Don't give error for excess data
860 entries that are comments.
862 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
864 * tbl/main.cc (process_data): Fix case where new for-scope rules
865 silently change meaning of code.
867 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
869 * troff/env.cc (hyphenate): Loop over all consecutive sequences
870 of non-zero hyphenation codes.
872 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
874 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
876 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
878 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
880 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
882 * tmac/tmac.andoc: Make it work in compatibility mode.
884 * refer/token.h (token_info::is_range_sep): New function.
885 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
886 * refer/ref.cc (reference::output): More sophisticated check for
889 * devps/prologue.ps (MANUAL): New procedure.
890 * grops/ps.cc (main): New -m option.
892 (ps_printer::~ps_printer): Implement -m.
894 * aclocal.m4 (GROFF_G): New macro.
895 * configure.in: Call it.
896 * Makefile.in (g): Provided by configure.
898 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
900 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
903 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
904 (tmac_m, tmac_s): Deleted.
905 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
906 tmac_s_prefix): New variables.
907 (MDEFINES): Change accordingly.
908 * Makefile.comm (.man.n): Use new TMAC_* variables.
909 * configure.in (GROFF_TMAC): Call.
910 * aclocal.m4 (GROFF_TMAC): Define.
911 * tmac/Makefile.sub (stamp_wrap): New target.
912 (install_data, uninstall_sub): Handle macro wrapping.
914 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
916 * tbl/main.cc (main): Ignore -T option.
918 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
920 * devlj4/generate/special.map: Add definition of \(nb.
922 * tmac/tmac.dvi: Add definition of \(nb.
924 * troff/dictionary.c (dictionary::dictionary): association::v gets
925 initialized by association::association.
927 * tmac/Makefile.sub: Avoid using temporary files when installing.
929 * troff/env.cc (environment::set_font): Make bad font number a
932 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
934 * Makefile.in (datadir): Use share rather than lib.
936 * groff/groff.cc (basename): Rename to xbasename.
938 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
940 * Makefile (CCLIBS): Don't use.
941 * Makefile.ccpg: Likewise.
943 * acgroff.m4: Rename to...
944 * aclocal.m4: Modify extensively for autoconf 2.
945 * configure.in: Likewise.
946 * Makefile.in: Likewise.
948 * groff/pipeline.c (const): Declare as empty if __STDC__ not
950 (xstrsignal): Check for definition of NSIG. Conditionalize
951 on SYS_SIGLIST_DECLARED. Make return type const.
953 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
955 * troff/input.cc (interpolate_macro): Rephrase missing space
958 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
960 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
961 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
962 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
963 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
964 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
965 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
966 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
967 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
968 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
969 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
970 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
973 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
975 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
977 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
979 (macro_iterator::macro_iterator): Add additional argument.
981 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
983 * troff/div.cc (vertical_size::vertical_size): In place of integer
984 specifying line spacing use cunits specifying post vertical
986 (macro_diversion::output, top_level_diversion::output): Likewise.
987 * troff/div.h: Change declarations accordingly.
988 * troff/env.cc (pending_output_line): Replace ls field by post_vs
990 (pending_output_line::pending_output_line,
991 pending_output_line::output, environment::output,
992 environment::output_line, environment::output_title,
993 environment::hyphenate_line): In place of
994 integer specifying line spacing use cunits specifying post vertical
996 (environment::environment): Add post_vertical_spacing and
997 prev_post_vertical_spacing arguments.
998 (environment::get_post_vertical_spacing): New function.
999 (environment::total_post_vertical_spacing): New function.
1000 (environment::post_vertical_spacing): New function.
1001 (init_env_requests): Initialize pvs request and .pvs register.
1002 * troff/env.h: Change declarations.
1004 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
1006 * tmac/tmac.pspic: Immediately remove the temporary file.
1008 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
1010 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
1011 height is specified.
1013 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
1015 * tbl/table.c (struct vertical rule, class table_entry): Use int
1016 not short for start_row and end_row.
1018 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
1020 * troff/input.cc (trapping_blank_line, blank_line_macro): New
1022 (diverted_space_node::reread, process_input_stack): Call
1023 trapping_blank_line() rather than blank_line().
1024 (init_input_requests): Bind "blm" to blank_line_macro().
1026 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
1028 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
1030 * troff/env.cc (environment::possibly_break_line): Require that
1031 width total excluding width of final space node be greater than
1032 the target text length.
1034 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
1036 * troff/node.cc (kern_pair_node::vertical_extent): New function.
1038 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
1040 * troff/node.cc (charinfo_node): New class.
1041 (glyph_node, composite_node): Derive from charinfo_node. Change
1042 member functions accordingly.
1044 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
1046 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
1048 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
1050 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
1052 * devps/generate/textmap (notsubset): Add.
1054 * tmac/tmac.a4: New file.
1056 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
1058 * pic/main.cc (had_parse_error): New variable.
1059 (do_picture, do_whole_file): Set had_parse_error if yyparse()
1061 (main): Return 1 if had_parse_error is true.
1063 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
1065 * grolj4/lj4.cc (main): Avoid use of strtoul.
1067 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
1069 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
1070 iso_8859_1 or $LESSCHARSET is latin1.
1072 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
1074 * hpftodit: New directory.
1075 * Makefile.in (CCPROGDIRS): Add hpftodit.
1076 * devlj4/generate: New directory.
1078 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
1080 * configure.in: Don't use AC_VFORK.
1081 * groff/pipeline.c (run_pipeline): Use fork() always.
1083 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
1085 * grops/ps.cc (main): Use %1 not %s in error message for -w.
1087 * Makefile.in (CCPROGDIRS): Add grolj4.
1088 (DEVDIRS): Add devlj4.
1089 * grolj4, devlj4: New directories.
1090 * tmac/troffrc: Handle lj4.
1091 * tmac/tmac.lj4: New file.
1093 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
1095 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
1097 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
1099 * troff/input.cc (do_if_request): At end of second string, switch
1100 environments before getting next token.
1102 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
1104 * devps/psstrip.sed: Split rule that strips whitespace on either
1107 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
1109 * troff/node.h (font_family::make_definition): Add return value to
1110 declaration. * troff/symbol.h (symbol::operator==,
1111 symbol::operator!=): Likewise.
1113 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
1115 * groff/groff.cc (main, help, synopsis): Handle -S.
1116 (possible_command::insert_arg): New function.
1118 * tmac/tmac.safer: New file.
1119 * tmac/msafer.man: New file.
1120 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
1122 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
1124 * pic/pic.h, pic/main.cc (safer_flag): New variable.
1125 * pic/pic.y (placeless_element): Avoid unsafe operations if
1126 `safer_flag' is set.
1127 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
1129 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
1131 * eqn/lex.cc (get_token): Put call to add_context() in block to
1132 work around Sun C++ 4.0 bug.
1134 * include/stringclass.h (operator +): Use ?: instead of `if' to
1135 work around Sun C++ 4.0 bug.
1137 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
1139 * tbl/main.cc (process_format): Accept - as a synonym for the _
1142 * libbib/index.cc (minus_one): Don't declare as const.
1144 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
1146 * troff/input.cc (get_char_for_escape_name): Push back a newline.
1148 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
1150 * troff/input.cc (write_macro_request): New function.
1151 (init_input_requests): Bind write_macro_request to writem.
1153 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
1155 * tmac/tmac.s (@EN): Turn filling back on even if there was no
1158 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
1160 * tmac/tmac.s (@TS): Renamed from TS.
1161 (TS): Call LP then TS again.
1162 (cov*ab-init): Alias @TS to TS.
1164 * tmac/tmac.s: Allow QP or RS to initialize.
1166 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
1167 Move initializations of PS and LL here.
1168 (par@init): Don't initialize HY. Avoid changing environment 0.
1169 (par*env-init): Don't all par@reset.
1171 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
1173 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
1175 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
1177 * Makefile.in (MDEFINES): Add LDFLAGS.
1178 (LDFLAGS): Add definition line.
1180 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
1182 * troff/input.cc (get_optional_char): Split off error check into...
1183 (check_missing_character): New function.
1184 * troff/token.h: Declare it.
1185 * troff/env.cc (margin_character): Don't call get_optional_char.
1186 Only call tok.next() after making the node.
1188 * include/lib.h (getopt): Make 2nd argument char *const *.
1190 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
1192 * nroff/conftest.sh: Deleted.
1194 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
1196 * pic/make-dos-dist: Deleted.
1198 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
1200 * devps/psstrip.sed: Strip comments before stripping trailing
1203 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
1205 * Version 1.09 released.
1207 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
1209 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
1211 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
1213 * libgroff/font.cc (font::load_desc): Fix typo in error message.
1215 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
1217 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
1218 about returning without a value.
1220 * troff/charinfo.h (charinfo::get_special_translation): Cast
1221 TRANSLATE_NONE to int.
1223 * refer/token.cc (lookup_token, store_token): Remove bogus loop
1224 test. Fix test so that it works with n unsigned.
1226 * pic/pic.y (defaults_table): Fully bracket initializer.
1227 * pic/lex.cc (lookup_keyword): Likewise.
1228 * eqn/lex.cc (token_table, def_table): Likewise.
1229 * eqn/box.cc (param_table): Likewise.
1230 * troff/input.cc (warning_table): Likewise.
1231 * libgroff/font.cc (table): Likewise.
1232 * grops/ps.cc (ps_printer::special): Likewise.
1233 * grops/psrm.cc (resource_manager::process_file): Likewise.
1234 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
1235 * refer/command.cc (command_table): Likewise.
1236 * addftinfo/addftinfo.cc (param_table): Likewise.
1238 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
1239 about temp's being unused.
1240 (unused): New function.
1242 * groff/pipeline.cc: Declare c_fatal.
1244 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
1247 * libbib/index.cc (index_search_item::load): Prevent compiler
1248 warnings about fd_closer's being unused.
1249 (unused): New function.
1251 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
1253 * troff/input.cc (copy_mode_error): Make `prefix' static.
1256 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
1258 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
1259 HAVE_CC_OSFCN_H and modify accordingly.
1261 * troff/input.cc (init_charset_table): radicalex overlaps
1264 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
1265 udodo!hans@relay.NL.net).
1266 * groff/configure.in: Call it.
1268 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
1269 * groff/configure.in: Call it.
1270 * include/lib.h: Conditionalize declaration of pclose.
1272 * troff/div.cc (last_page_number): New global variable.
1273 (top_level_diversion::begin_page): Exit if we just printed the
1275 * troff/div.h (last_page_number): Declare it.
1276 * troff/input.cc (parse_output_page_list): Set last_page_number.
1278 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
1279 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
1280 tmac/tmac.X: Likewise.
1281 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
1282 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
1284 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
1286 * tmac/doc-ditroff (hK): Remove groff specific code which
1287 prevented page-breaks between separate manual entries. If this is
1288 the first page, don't set the page number to 1.
1290 * acgroff.m4 (GROFF_POSIX): New macro.
1291 * configure.in: Use it.
1293 * troff/node.cc (class real_output_file,
1294 real_output_file::real_output_file,
1295 real_output_file::~real_output_file): Conditionalize use of
1296 popen/pclose on POPEN_MISSING.
1297 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
1298 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
1299 (pipe_source): Similarily.
1301 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
1303 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
1304 presence of declarations by trying to compile example with
1305 conflicting declarations. (gcc only gives a warning for missing
1308 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
1310 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
1311 (from Ulrich Lauther).
1313 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
1315 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
1317 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
1319 * indxbib/indxbib.cc (write_hash_table): Add code for case where
1320 pointers and ints have different sizes.
1322 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
1324 * tmac/tmac.s (par*env-init): Call par@reset.
1326 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
1328 * tmac/tmac.s (@IP): Switch to a new environment when diverting
1330 (par*push-tag-env, par*pop-tag-env): New macros.
1332 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
1334 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
1335 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
1337 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
1338 comment. Include <time.h>.
1340 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
1342 * grops/ps.cc (is_small_h, is_small_v): Deleted.
1343 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
1346 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
1348 * troff/input.cc (read_request): Only print a prompt if reading
1349 from the terminal. Also clearerr on EOF if reading from the
1350 terminal. Declare isatty.
1352 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
1354 * refer/label.y: Rename map_t to map_func and extractor_t to
1357 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
1359 * include/assert.h: Don't use volatile.
1360 * libgroff/assert.cc: Likewise.
1362 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
1364 * troff/input.cc (abort_request): Look at character in tok before
1367 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
1369 * troff/troff.h (NO_RETURN): Deleted.
1370 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
1371 * troff/input.cc (exit_troff): Likewise
1373 * Makefile.in: Remove `Making ...' messages since GNU make now
1376 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
1378 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
1380 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
1383 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
1385 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
1387 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
1389 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
1390 MARK_REG if there was no left delimiter.
1392 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
1394 * pic/troff.cc (troff_output::text): Set line thickness to
1395 relative before outputting text.
1397 * tmac/tmac.e (@k): Don't zero ?T.
1400 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
1402 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
1404 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
1406 * troff/input.cc (decode_args): Warn about unquoted tabs (from
1409 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
1411 * troff/input.cc (ignoring): New variable.
1412 (ignore): Set ignoring during call to do_define_macro.
1413 (do_define_macro): Clear ignoring before interpolating terminating
1415 (copy_mode_error): New function.
1416 (get_char_for_escape_name, read_long_escape_name,
1417 interpolate_arg): Use copy_mode_error.
1418 (warning_table): Add WARN_IG.
1419 * troff/troff.h (WARN_IG): Declare.
1420 (WARN_TOTAL): Change accordingly.
1422 * groff/pipeline.c (strsignal): Rename to xstrsignal.
1423 * groff/groff.cc (strsignal): Delete declaration.
1425 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
1427 * troff/div.cc (page_offset): Use 'm' as default scaling.
1429 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
1431 * nroff/nroff.sh: Ignore -u.
1433 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
1435 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
1437 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
1439 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
1441 (B2): With -Tascii, leave additional vertical space before
1442 and after. Ensure that the left and right indent is restored to
1443 what it was even if the point size changes. Don't call
1444 par@finish. Change the indent, line length and title length
1445 directly. With -Tascii, make the width of the box 1n less.
1446 (B1): Remember 1n at the current point size. Don't call
1447 par@reset. Change the indent, line length and title length
1448 directly. Ensure that the temporary indent is preserved.
1449 (par*box-mark-top): Turn off no spacing mode.
1451 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
1453 * Makefile.in (dist): Use .gz suffix.
1455 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
1457 * troff/input.cc (main): Add return 0.
1458 * pic/main.cc (main): Use return instead of exit.
1459 * tbl/main.cc (main): Likewise.
1460 * eqn/main.cc (main): Likewise.
1461 * grops/ps.cc (main): Likewise.
1462 * grotty/tty.cc (main): Likewise.
1463 * groff/groff.cc (main): Likewise.
1464 * grodvi/dvi.cc (main): Likewise.
1465 * refer/refer.cc (main): Likewise.
1466 * indxbib/indxbib.cc (main): Likewise.
1467 * lkbib/lkbib.cc (main): Likewise.
1468 * soelim/soelim.cc (main): Likewise.
1469 * addftinfo/addftinfo.cc (main): Likewise.
1470 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
1471 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
1473 * troff/token.h (process_input_stack): Don't declare as static.
1474 * troff/input.cc: Likewise.
1476 * troff/node.c (invalidate_fontno): Make it a static member of
1477 class font_family. Change callers.
1478 * troff/node.c: Change declaration.
1480 * tbl/main.cc (struct input_entry_format): Add explicit public
1482 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
1483 struct double_hline_stuff): Likewise.
1484 * tbl/table.h (struct entry_format): Likewise.
1485 * pic/object.h (struct saved_state): Likewise.
1487 * include/stringclass.h: Add forward declarations of friend
1488 functions that are later declared as inline. Don't include inline
1489 specifier in friend declaration.
1491 * libgroff/lib.h: Declare popen and pclose.
1492 * acgroff.m4 (GROFF_POPEN): New macro.
1493 * configure.in: Call it.
1495 * include/lib.h (PI): New constant. Undef first if necessary.
1496 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
1497 * grops/ps.cc (degrees, radians): Likewise.
1498 * libgroff/font.cc (font::get_skew): Likewise.
1500 * grops/ps.cc (is_ascii): New function.
1501 (ps_output::put_string): Use is_ascii. Use csprint rather than
1503 (ps_printer::define_encoding): Use csspace.
1504 * libgroff/strtol.c (ISASCII): New macro.
1505 (strtol): Cast arguments to is*() and tolower() to unsigned char.
1506 Use ISASCII rather than isascii.
1507 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
1508 * libgroff/cset.cc: Likewise.
1509 * libdriver/input.cc: Include cset.h.
1510 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
1513 * refer/refer.cc (main): Use %ld rather than %d for longs.
1515 * libbib/index.cc (index_search_item_iterator::get_tag): Use
1518 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
1520 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
1522 * troff/input.cc (hyphenation_code): Skip white space between
1525 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
1527 * tbl/table.h (table::entry_list_tailp): New member.
1528 (table::table): Initialize it.
1529 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
1532 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
1534 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
1535 with negative horizontal positions. Remove casts of glyph::hpos to
1537 (USHRT_MAX): Delete definition.
1538 (SHRT_MAX, SHRT_MIN): New definitions.
1539 (glyph::hpos): Change type to short.
1540 (tty_printer::end_page): Output multiple backspaces if necessary.
1541 Remove casts of glyph::hpos to int.
1543 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
1545 * tmac/tmac.s (@RT): New definition.
1547 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
1549 * refer/refer.cc (do_file): Make sure current_filename is set when
1552 * pic/common.cc (common_output::dot_line): Handle zero length
1555 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
1557 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
1558 (par@init): Initialize \n[HY].
1560 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
1562 * troff/dictionary.cc (dictionary::remove): Continue when
1565 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
1567 * Makefile.com (.y.cc): Avoid ending up with two versions of
1570 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
1572 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
1573 (\(,C): Likewise. Also fix typo.
1575 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
1577 * lib.h: Delete extraneous semi-colon.
1579 * Add pso request: `so' from a pipe.
1580 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
1581 (file_iterator::close): New function.
1582 (file_iterator::~file_iterator, file_iterator::next_file): Use
1583 file_iterator::close.
1584 (file_iterator::backtrace): Say `process' rather than `file' when
1585 the stream is popened.
1586 (pipe_source): New function.
1587 (init_input_requests): Bind ".pso" to pipe_source.
1589 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
1591 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
1593 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
1594 digits in lower case.
1596 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
1598 * Version 1.08 released.
1600 * Makefile.in (dist): Insert || true after ln -s commands that
1603 * mm: Update to mm 1.16.
1605 * acgroff.m4 (GROFF_CSH_HACK): New macro.
1606 * configure.in: Call GROFF_CSH_HACK. Substitute for
1608 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
1610 * nroff/Makefile.sub (nroff): New target.
1611 (install_data): Install nroff.
1612 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
1613 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
1615 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
1617 * eqn/Makefile.sub (neqn): Add chmod +x.
1619 * grog/Makefile.sub (grog): Remove spurious semi-colon.
1621 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
1623 * troff/input.cc (string_iterator::string_iterator()): Initialize
1626 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
1628 * troff/div.cc (macro_diversion::space,
1629 top_level_diversion::space): Don't set high_water_mark.
1630 (macro_diversion::output, top_level_diversion::output): Don't
1631 include post line space in high water mark.
1633 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
1635 * eqn/eqn.y: Don't define YYDEBUG.
1636 * pic/pic.y: Likewise.
1638 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
1640 * tmac/tmac.e ([3): Add space after comma following editors.
1641 Change double spaces to single spaces.
1642 ([4): Change double spaces to single spaces.
1644 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
1645 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
1646 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
1647 after %!PS-Adobe- (for Newsprint).
1649 * troff/div.cc (top_level_diversion::begin_page): When
1650 before_first_page is 1, set page_number to 1.
1652 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
1654 * eqn/box.cc (box::top_level): Protect equation with \&.
1656 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
1658 * groff/groff.cc (possible_command::set_name): Delete old name.
1660 * groff/groff.cc (possible_command::~possible_command): Use
1663 * troff/node.cc (troff_output_file::begun_page): New member.
1664 (troff_output_file::troff_output_file): Initialize it.
1665 (troff_output_file::really_begin_page): Only output V command if a
1666 page has been begun.
1668 * pic/pic.y (placeless_element): Delete argument to PRINT after
1671 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
1673 * Make wrapman work.
1674 * troff/div.h (class top_level_diversion): Replace
1675 first_page_begun by before_first_page (with opposite sense).
1676 * Change first_page_begun to before_first_page inverting sense.
1677 * troff/div.cc (class nl_reg): New class.
1678 (init_div_requests): Use class nl_reg for \n(nl.
1679 (top_level_diversion::begin_page): Don't call
1680 output_file::begin_page if before_first_page is 2;
1681 reset before_first_page afterwards. If have_next_page_number is
1682 false, then always increment page_number.
1683 * tmac/tmac.an: Set traps within TH rather than at the top-level.
1684 Restore compatibility mode after loading, and then disable
1685 compatibility mode in TH.
1687 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
1689 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
1691 * troff/node.h (output_file::trailer): Declare.
1692 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
1693 * troff/node.cc (output_file::trailer): New function.
1694 (troff_output_file::~troff_output_file): Move most code into...
1695 (troff_output_file::trailer): New function.
1696 (class troff_output_file): Delete page_length member. Declare
1698 (troff_output_file::really_begin_page): Use current page length
1699 for final V command.
1701 * tbl/main.cc (struct options): New decimal_point_char member.
1702 (options::options): Initialize this.
1703 (process_options): Implement decimalpoint option.
1704 (process_data): Pass decimal_point_char option to table::table.
1705 * tbl/table.h (class table): New decimal_point_char member.
1706 (table::table): Add additional argument.
1707 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
1708 second argument specifying decimal point character. Use this
1710 (table::table): Initialize decimal_point_char.
1711 (table::add_entry): Change call to find_dot.
1713 * troff/input.cc (get_copy, token::next): Implement \V.
1714 (interpolate_environment_variable): New function.
1716 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
1718 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
1719 * pic/pic.y: Likewise.
1721 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
1723 * refer/ref.cc (reference::insert_field, reference::delete_field):
1725 * troff/number.cc (parse_term): Likewise.
1727 * acgroff.m4 (GROFF_PROG_YACC): New macro.
1728 * configure.in: Use GROFF_PROG_YACC.
1730 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
1732 * Makefile.in (OPTIMIZE): New define.
1733 (DEBUG): Empty by default.
1734 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
1736 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
1737 (GROFF_ARRAY_DELETE): Likewise.
1738 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
1740 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
1742 * devps/psstrip.sed: Use different delimiter on last line (so that
1743 it works with BSD 4.4 sed.)
1745 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
1747 * devps/psstrip.sed: Delete comments.
1749 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
1750 optind, opterr, optarg.
1751 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
1754 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
1756 * Makefile.in (check): Dummy target.
1758 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
1760 * Version 1.07 released.
1762 * Integrate mm 1.11.
1764 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
1765 where start_col was meant.
1767 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
1769 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
1771 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
1773 * troff/input.cc (token::next): Make \z\o'...' and similar things
1776 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
1778 (environment): Add margin_character_flags member.
1779 * env.cc (environment::environment(symbol),
1780 environment::environment(const environment *): Initialize
1781 margin_character_flags.
1782 (margin_character): Rewrite.
1783 (environment::output_line): Add a margin character if
1784 margin_character_flags is non-zero. Turn off the
1785 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
1786 zero, use margin_character_node without copying and then set
1787 margin_character_node to 0.
1789 * devps/DESC.in: Change minimum size to 1000.
1791 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
1793 * troff/symbol.h (symbol::hash): Change return type to unsigned
1795 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
1798 * test-groff: Use -r rather than -x.
1800 * grops/psfig.diff: Include in distribution again.
1802 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
1804 * Makefile.in (dist): Use gzip.
1806 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
1808 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
1809 unistd.h as well as in stdlib.h.
1810 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
1811 defined; otherwise include <sys/types.h> and <unistd.h> if
1812 UNISTD_H_DECLARES_GETOPT is defined.
1814 * configure.in: use builtin(include, ... rather than include(...
1815 * configure: Regenerate with autoconf 1.3.
1817 * libdriver/print.cc (printer::adjust_arc_center): Use new
1818 algorithm suggested by Andy Fyfe.
1820 * libdriver/printer.cc (printer::adjust_arc_center): New function.
1821 * include/printer.h: Declare this.
1822 * grops/ps.cc (ps_printer::draw): Use it.
1823 * grodvi/dvi.cc (dvi_printer::draw): Use it.
1825 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
1827 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
1829 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
1831 * eqn/main.cc (main): Handle "eqn -".
1833 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
1835 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
1837 * mm: Integrate version 1.08.
1839 * pic/troff.cc (troff_output::finish_picture): Set
1840 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
1841 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
1842 if it's not defined. Check whether the register is non-zero rather
1843 than whether it's not defined.
1844 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
1846 * indxbib/indxbib.cc: Move all signal handling into...
1847 * indxbib/signal.c: New file.
1848 * configure.in: Call AC_RETSIGTYPE.
1850 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
1851 * configure.in: Call GROFF_STRUCT_EXCEPTION.
1852 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
1854 * troff/input.cc (token::token, token::operator=): Work round SGI
1856 * pic/object.cc (position::position): Likewise.
1858 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
1860 * pic/pic.h: Move declaration of hypot().
1862 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
1864 * pic/pic.h: Declare hypot().
1866 * pic/pic.h: Define M_PI if necessary.
1868 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
1870 * tmac/tmac.e (re): Add alternative version that doesn't use groff
1873 * devps/prologue.ps (RE): Handle the possibility that the old font
1874 doesn't have a FontName entry.
1876 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
1878 * tmac/tmac.e (fam): Redefine to set family in environment 2.
1879 (@C): Use @fam not fam.
1881 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
1883 * lookbib/lookbib.cc (main): Change type of start to const char *.
1884 * lkbib/lkbib.cc (main): Likewise.
1886 * eqn/lex.cc (definition::definition): Don't use member
1887 initializer syntax for members of anonymous unions.
1889 * troff/input.cc (input_stack::backtrace): Change type of to const
1892 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
1894 * include/stringclass.h (class string): Declare inline friend
1895 functions as inline in class declaration.
1896 * troff/hvunits.h (class hunits, class vunits): Likewise.
1897 * include/refid.h (class reference_id): Likewise
1898 * troff/troff.h (points_to_units(units), scale(units, double)):
1899 Delete declarations.
1900 * libdriver/input.cc (get_char): Delete declaration.
1901 * include/lib.h: Change 2nd argument of getopt from const char **
1903 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
1904 char **' before assigning to a `const char **'.
1905 * tbl/table.cc: Delete extra declarations of prints().
1907 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
1909 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
1910 char **' before assigning to a `const char **'.
1912 * libgroff/errarg.cc (errarg::errarg): Don't use member
1913 initializer syntax for members of anonymous unions.
1915 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
1917 * mm: Integrate version 1.07.
1919 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
1921 * troff/input.c (translate2): Rename to
1922 (translate_no_transparent).
1923 (init_input_requests): Rename tr2 to trnt.
1925 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
1927 * troff/charinfo.h (class charinfo): Add transparent_translate field.
1928 (charinfo::set_translation, charinfo::set_special_translation):
1929 Add second argument that specifies value for
1930 transparent_translate.
1931 (charinfo::get_translation, charinfo::get_special_translation):
1932 Add optional second argument that specifies whether translation is
1933 being used for transparent throughput.
1934 * troff/input.cc (charinfo::set_translation,
1935 charinfo::set_special_translation): Handle second argument.
1936 (charinfo::charinfo): Initialize transparent_translate.
1937 (translate): Split main part off into
1938 (do_translate): New function. Pass argument saying whether
1939 translation applies to transparent throughput.
1940 (translate2): New request.
1941 (init_input_requests): Bind translate2 to `tr2'.
1943 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
1945 * tbl/table.h (class table): Add `nokeep' flag.
1946 * tbl/main.cc (process_options): Handle `nokeep' option.
1947 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
1948 table::do_bottom): Don't output keep/release macro definitions or
1949 calls when `nokeep' option has been specified.
1951 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
1953 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
1955 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
1957 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
1958 block_entry::divert, alphabetic_block_entry::divert): Add extra
1959 argument giving column separation.
1960 (table::compute_widths): Pass column separation to
1961 table_entry::divert().
1962 (block_entry::do_divert): If an entry spans multiple columns and a
1963 minimumum width has been specified for each column, then set the
1964 line length to the sum of the widths (plus possibly the column
1967 * troff/input.cc (set_escape_char): Don't set the escape_char
1968 until after calling has_arg().
1970 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
1972 * tbl/table.cc (table::do_top): Add missing \s0 for double box
1975 * tbl/table.cc (table::print_double_hline): Avoid extra new line
1976 in case where r > nrows - 1.
1978 * tbl/table.cc (BODY_HEIGHT): Deleted.
1979 (LINE_SEP): New definition.
1980 (table::print_single_hline, table::print_double_hline,
1981 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
1982 table::do_row, table::do_top): Use LINE_SEP space before a line
1983 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
1985 * tbl/table.cc (text_entry::print_contents): New function.
1986 (text_string_name, right_text_string_name): Deleted.
1987 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
1988 (simple_text_entry::do_width, numeric_text_entry::do_width,
1989 alphabetic_text_entry::do_width): Don't store the contents of the
1991 (left_text_entry::simple_print, right_text_entry::simple_print,
1992 center_text_entry::simple_print,
1993 alphabetic_text_entry::simple_print,
1994 numeric_text_entry::simple_print): Print the entry directly
1995 instead of using the stored string.
1997 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
1999 * devps/Makefile: Strip PostScript files.
2000 * devps/prologue: Rename to...
2001 * devps/prologue.ps.
2002 * devps/psstrip.sed: New file.
2003 * devps/download: Use .pfa rather than .ps for installed versions
2006 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
2008 * troff/env.cc (input_trap): Give a warning if the argument is out
2011 * troff/env.cc (adjust): Treat negative argument as missing. Round
2012 argument > 5 down to 5.
2014 * troff/env.cc (center, right_justify): Make negative argument zero.
2016 * troff/div.cc (page_offset, vertical_position_traps): Treat
2017 invalid argument as missing.
2018 * troff/env.cc (line_spacing, line_length, title_length, indent,
2019 underline, hyphen_line_max_request, control_char,
2020 no_break_control_char, widow_control_request, adjust, input_trap,
2021 point_size): Likewise.
2022 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
2023 constant_space): Likewise.
2024 * troff/input.cc (compatible, shift, warn_request,
2025 set_escape_char): Likewise.
2027 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
2028 * tbl/table.cc (table::table): Likewise.
2030 * Makefile.dev (install_dev): depends on $(DEVFILES).
2032 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
2034 * devX75, devX75-12, devX100, devX100-12: New directories.
2035 * Makefile.in: Add these to DEVDIRS.
2037 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
2038 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
2039 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
2040 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
2042 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
2043 (uninstall): New target.
2044 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
2045 uninstall_prog, uninstall_dev): New targets.
2047 * troff/div.cc (return_request): Treat an invalid argument as
2050 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
2052 * tmac/tmac.e ((f): Set up the environment even when there's a
2053 current diversion. Transperently throughput a call to @N.
2056 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
2058 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
2059 up to vertical resolution.
2061 * tbl/table.cc (table::do_row): Change row number after printing
2064 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
2066 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
2068 * Rename CHANGES to NEWS.
2070 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
2072 * libgroff/new.cc (operator new): Avoid calling malloc(0).
2074 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
2076 * man.ultrix: Removed.
2078 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
2080 * Makefile.comm (extraclean): Delete files whose names begin with
2083 * pic/troff.cc (troff_output::text): Fix typo in implementation of
2086 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
2088 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
2089 * troff/div.cc (page_length, need_space, space_request): Treat
2090 invalid optional argument as missing.
2091 * troff/env.cc (number_lines): If the first argument is present
2092 but not a number, turn on line numbering, don't change the next
2093 line number and parse the remaining arguments.
2095 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
2097 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
2099 * eqn/box.h: Change declaration accordingly.
2100 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
2101 the specified size was bad but don't give an error. Check for
2103 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
2104 * eqn/lex (do_size): Likewise.
2106 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
2108 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
2111 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
2113 * tbl/table.cc (table::init_output): Improve error message when
2114 table won't fit on one page.
2116 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
2118 * pic/troff.cc (troff_output::start_picture): Generate line
2119 containing a horizontal motion equal to the width of the picture.
2121 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
2122 using GROFF_COMMAND_PREFIX environment variable.
2124 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
2126 * mdate.sh: Use $NF rather than $(NF).
2128 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
2130 * pic/main.cc (main): Use %1 not %c in argument to warning.
2132 * eqn/main.cc (main): Output code to check that geqn was given the
2135 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
2137 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
2138 `ln -s ../Makefile .; make; rm -f Makefile'.
2140 * troff/hyphen: Rename to...
2142 * troff/input.cc (main): Delete -H option. Don't call
2144 * troff/env.cc: Include searchpath.h and macropath.h.
2145 (exception_dictionary): Deleted.
2147 (read_hyphen_file): Deleted.
2148 (hyphenation_language): New struct.
2149 (class trie, class hyphen_trie): Move declarations up.
2150 (trie_node::~trie_node): Deleted.
2151 (trie::delete_trie_node): New function.
2152 (trie::do_delete): New pure virtual function.
2153 (hyphen_trie::do_delete): New function.
2154 (trie::~trie): New function.
2155 (hyphen_trie::~hyphen_trie): New function.
2156 (trie::clear): No need to chcek that tp is not 0.
2157 (current_language, language_dictionary): New variables.
2158 (hyphen_word): Give an error if no current language. Use
2159 exceptions dictionary in current language.
2160 (hyphen_trie::read_patterns_file): Find file using macro_path.
2161 Allow comments (starting with %) in patterns file. Don't make it
2162 a fatal error if the file can't be found.
2163 (hyphenate): Return if no current language. Get the exceptions
2164 dictionary and the hyphenation patterns from the current language.
2165 (set_hyphenation_language): New variable.
2166 (hyphenation_patterns_file): New function.
2167 (hyphenation_language_reg): New class.
2168 (hyphenation_language_reg::get_string): New function.
2169 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
2170 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
2172 * groff/groff.cc (main, help, synopsis): Delete -H option.
2173 * include/Makefile.sub: Don't define HYPHENFILE.
2174 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
2175 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
2176 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
2177 hyphenation patterns.
2179 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
2181 * eqn/neqn.sh: New file.
2182 * eqn/Makefile.sub: Handle neqn.sh.
2184 * eqn/eqn.h: Declare `nroff' variable.
2185 * eqn/box.cc (param_table): Add `nroff' param.
2187 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
2189 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
2191 * troff/troff.h (WARN_FONT): New warning.
2192 (WARN_TOTAL): Change accordingly.
2193 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
2194 (warning_table): Add WARN_FONT.
2195 * troff/node.cc (mount_font_no_translate): Pass argument to
2196 font::load_font. If this is non-zero, give a warning.
2197 Don't give an error message when accessing a font that has already
2198 been found to be invalid.
2199 * include/font.h (font::load, font::load_font): Add additional
2200 optional argument which suppresses error message if the font is
2202 * libgroff/font.cc (font::load_font): Handle additional argument.
2203 (font::load): Add additional argument. If this is non-null, set it
2204 to 1 and don't give error message.
2206 * include/printer.h (printer::end_page): Add argument giving
2208 * libdriver/input.cc (do_file): Pass this.
2209 * grops/ps.cc (ps_printer::end_page): Add argument.
2210 * grodvi/dvi.cc (dvi_printer::end_page,
2211 draw_dvi_printer::end_page): Add argument.
2212 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
2213 columns_per_page members. New member nlines.
2214 (DEFAULT_LINES_PER_PAGE): Deleted.
2215 (tty_printer::tty_printer): Don't compute lines_per_page from
2216 font::paperlength. Don't compute columns_per_page from
2218 (tty_printer::add_char): Don't check horizontal position against
2219 columns_per_page. Grow glyphs vector if neccessary.
2220 (tty_printer::end_page): Add argument giving page_length in units.
2221 Discard lines past end of page.
2223 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
2225 * tmac/tmac.tty-char: Fix definition of \(/l.
2227 * tmac/tmac.X: Define \(en.
2229 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
2231 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
2232 lpq, then use lp rather than lpr.
2234 * tmac/tmac.s (par@reset): Don't call `ad'.
2235 (par*env-init): Call `ad'.
2237 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
2239 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
2242 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
2243 * indxbib/indxbib.cc: Likewise.
2245 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
2247 * libgroff/putenv.c: New file.
2248 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
2249 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
2250 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
2251 stdlib.h with AC_HAVE_HEADERS.
2253 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
2255 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
2258 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
2260 * eqn/box.cc (gsize): Make it an int.
2261 (set_gsize): Parse argument handling increment or decrement.
2262 (box::top_level): Convert gsize to a string.
2264 * troff/input.cc (exit_troff): Make buf unsigned char [].
2265 Call to make_temp_iterator casts buf to char*.
2267 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
2269 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
2270 * Makefile.cpg (depend.temp): Likewise.
2272 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
2274 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
2276 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
2278 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
2280 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
2282 * Version 1.06 released.
2284 * Integrate mm 1.04.
2286 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
2288 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
2290 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
2292 * afmtodit/afmtodit.pl: Add -n option that disables generation of
2294 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
2295 afmtodit. Regenerate.
2297 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
2298 @f back past the current position.
2300 * tmac/tmac.e: Change calls to @R so that comments are not part of
2303 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
2305 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
2307 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
2308 check that we can link a call to a function declared in <stdio.h>.
2309 (GROFF_UNISTD_H): New macro.
2310 * configure.in: Call it.
2311 * Makefile.in: Document it.
2312 * include/posix.h: New file.
2313 * troff/troff.h: Don't include <osfcn.h>
2314 * troff/input.cc: Include posix.h.
2315 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
2317 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
2318 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
2320 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
2321 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
2322 * libbib/search.cc (O_RDONLY): Delete definition.
2323 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
2324 Don't include <osfcn.h>.
2326 * acgroff.m4 (GROFF_TIME_T): New macro.
2327 * configure.in: Call it.
2328 * Makefile.in: Document it.
2330 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
2331 * configure.in: Call it.
2332 * Makefile.in: Document -DTRADITIONAL_CPP.
2333 * include/ptable.h: Don't include generic.h.
2336 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
2337 Afterwards remove [T1 and [T2.
2338 (ref*spec!0, ref*spec!2): Use T1 rather than T.
2339 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
2340 (ref*add-T2): Renamed from ref*add-T.
2341 (ref*add-T1): New macro.
2343 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
2345 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
2347 * libbib/index.cc: Include <fcntl.h>.
2348 (O_RDONLY): Define if necessary.
2349 (make_index_search_item, index_search_item_iterator::get_tag,
2350 index_search_item::check_files): Use O_RDONLY.
2351 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
2352 (O_RDONLY): Define if necessary.
2353 (search_list::add_file): Use O_RDONLY.
2354 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
2356 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
2359 * libbib/index.cc (S_ISREG): Define it if necessary.
2360 (index_search_item::load): Use S_ISREG.
2362 * include/driver.h: Include <errno.h>.
2364 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
2366 * eqn/box.cc (body_height): Increase default value to 85.
2367 (body_depth): Increase default value to 35.
2369 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
2371 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
2372 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
2373 protected from expansion with \E.
2375 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
2377 * Makefile (Makefile): New target.
2379 * Makefile.sub (configure, distfiles): New targets.
2381 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
2384 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
2386 * eqn/box.cc (param_table): Add body_height and body_depth.
2388 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
2390 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
2392 * psbb/Makefile.sub: Don't link with libgroff.a.
2394 * acgroff.m4 (GROFF_PUTENV): New macro.
2395 * configure.in: Call GROFF_PUTENV.
2396 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
2397 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
2400 * troff/env.cc (distribute_space): Rename force_forward argument
2401 to force_reverse. Reverse the list if force_reverse is true.
2403 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
2405 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
2407 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
2408 height or depth to be negative. Guard against SUP_RAISE quantity
2411 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
2413 * devps/generate/textmap: Add `an' (arrowhorizex).
2414 * tmac/tmac.ps: \(an overlaps horizontally.
2415 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
2417 * devps/symbolchars: Add arrowverttp, arrowvertbt.
2418 * devps/textmap: Add arrowvertex.
2419 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
2420 updownarrow delimiters.
2421 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
2423 * tbl/table.cc (simple_entry::position_vertically,
2424 block_entry::position_vertically): For a centered entry, perform
2425 the motion in two stages.
2427 * refer/refer.cc (split_punct): Don't call lookup_token if there
2430 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
2432 * troff/input.cc (token::next): Delete token_node after copying
2435 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
2438 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
2440 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
2442 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
2444 * grops/ps.cc (usage): -b option takes an argument.
2446 * devps/prologue (PLG): New procedure.
2447 * grops/ps.cc (main, usage): New -g option.
2448 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
2451 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
2453 * include/cset.h: Include <limits.h> if we have it.
2455 * libgroff/illegal.cc: New file.
2456 * include/lib.h (illegal_input_char): Use table.
2457 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
2458 * pic/lex.cc (ARG1): Renumber to 14.
2459 * eqn/lex.cc (ARG1: Likewise.
2461 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
2462 (eg 1.05.90) correctly.
2464 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
2466 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
2467 Rename $r and $R registers to $v and $V.
2468 ($r, $R): Initialize to 0.
2469 (@v, @V): New macros.
2473 * troff/input.cc (main, usage): Add -R option that says not to
2475 * eqn/main.cc (main, usage): Rename -n to -R.
2477 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
2479 * devps/DESC.in: Leave font positions 5-9 blank.
2480 * devdvi/DESC.in: Likewise.
2482 * grog/grog.pl: Handle `.PS <file' correctly.
2484 * troff/input.cc (input_stack::push): Improve error message when
2485 input stack limit exceeded.
2487 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
2489 * refer/refer.cc (main): Fix typo in handling of `a' option.
2491 * refer/refer.cc (do_bib): In state START after a newline remain
2494 * groff/groff.sh: Deleted.
2495 * groff/Makefile.sub: Delete handling of groff.sh.
2497 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
2498 to determine whether to use \X'ps:...'.
2499 * tmac/troffrc: Set 0p register to 0.
2500 * tmac/tmac.ps: Set 0p register to 1.
2502 * groff/groff.cc: Support -X option. Give warning for -TXps and
2503 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
2504 * tmac/troffrc: Support -r.X=1.
2506 * pic/troff.cc (troff_output::dot): Don't test
2507 zero_length_line_flag.
2509 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
2511 * include/lib.h: Declare getopt() and friends unless
2512 STDLIB_H_DECLARES_GETOPT is defined.
2514 * doc/chars.tr: Delete.
2515 * man/groff_char.man: New file.
2517 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
2519 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
2520 user has changed register format.
2522 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
2524 * groff/groff.cc: Get rid of device_table. Get postprocessor from
2525 `postpro' command in DESC file. Get spooler command from `print'
2526 command in DESC file. Execute spooler command with /bin/sh.
2528 * groff/groff.cc: Split Unix-specific parts into...
2529 * groff/pipeline.c: New file.
2532 * COPYING: New file.
2533 * all files: Update copyright notices.
2535 * Rearrange files. Redo Makefiles. Use autoconf.
2537 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
2539 * troff/input.c (charinfo_to_node_list): Interpret character
2540 definition with escape_char of `\'.
2542 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
2544 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
2545 Define INT_DIGITS as big enough for 64-bit integer.
2546 * lib/strtol.c: Don't include lib.h.
2547 * lib/lib.h: Delete ifdef __cplusplus stuff.
2549 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
2551 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
2552 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
2553 get DESC from current directory.
2555 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
2557 * tbl/main.c (main): Always reset the line number when reading
2560 * tbl/table.c (table::print_single_hline, table::print_double_hline,
2561 table::define_bottom_macro, table::do_row, table::do_top): Round
2562 vertical spacing up to vertical resolution.
2564 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
2566 * ps/ps.h (enum resource_type): Avoid comma at end of
2568 * dvi/dvi.c (class dvi_printer): Likewise.
2569 * dvi/tfmtodit.c (gf::load): Likewise.
2570 * refer/label.y (struct expression): Likewise.
2571 * refer/refer.c (class label_processing_state): Likewise.
2572 * refer/indxbib.c (do_file): Likewise.
2573 * troff/troff.c (enum warning_type): Likewise.
2574 * tbl/main.c (process_data): Likewise.
2575 * troff/charinfo.h (class charinfo):
2577 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
2579 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
2581 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
2583 * groff.c: Move to new groff subdirectory.
2584 * groff/Makefile: New file.
2585 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
2587 * man/mdate.sh: Use ls -L if supported.
2589 * Consolidate all header files produced by gendef into lib/defs.h.
2590 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
2591 Don't include path.h.
2592 * lib/Makefile (path.h): Don't generate.
2593 * troff/input.c: Include defs.h. Don't include config.h.
2594 * troff/Makefile (config.h): Don't generate.
2595 * refer/index.h: Don't include suffix.h.
2596 * refer/index.c: Include defs.h.
2597 * refer/indxbib.c: Include defs.h.
2598 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
2600 * refer/Makefile (suffix.h, path.h): Don't generate.
2601 * groff.c: Don't include config.h. Include defs.h.
2602 * Makefile (config.h): Don't generate.
2603 (lib/defs.h): Generate.
2604 (topclean): Remove lib/defs.h.
2606 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
2608 * lib/malloc.c, lib/getpagesize.h: Deleted.
2609 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
2611 * lib/Makefile: Delete malloc-related stuff.
2612 * lib/new.c: Workaround COOKIE_BUG if necessary.
2614 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
2615 needed header files directly.
2616 * refer/refer.h: Omit definition of DEFAULT_INDEX.
2617 * Makefile: Include definition of DEFAULT_INDEX in path.h.
2619 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
2621 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
2623 * lib/font (font::load_desc, font::load): Don't split argument of
2625 (font::handle_unknown_font_command): Change type.
2626 * ps/ps.c (ps_font::handle_unknown_font_command,
2627 handle_unknown_desc_command): Change type.
2628 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
2630 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
2632 * lib/font.h (font::handle_unknown_font_command): Add file and
2634 * lib/font.c (font::handle_unknown_font_command):
2635 * ps/ps.c (ps_font::handle_unknown_font_command):
2636 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
2637 lineno arguments. Use _with_file_and_line functions for error
2640 * lib/fontfile.c (font::unknown_desc_command_handler): New static
2642 * lib/font.c (font::set_unknown_desc_command_handler): New
2644 (font::load_desc): For unknown commands, call
2645 unknown_desc_command_handler if not null.
2646 * lib/font.h (class font): Declare them.
2647 (FONT_COMMAND_HANDLER): New typedef.
2648 * ps/ps.c (handle_unknown_desc_command): New function.
2649 (main): Set bflag if we had a -b option. Call
2650 font::set_unknown_desc_command_handler.
2651 (broken.h): Don't include.
2652 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
2654 * ps/devps/Makefile: Add `broken' command to DESC file using
2655 BROKEN_SPOOLER_FLAGS.
2657 * macros/tmac.e ([, ]): Add as synonyms for { and }.
2659 * macros/tmac.e ($p): Only exdent if \$3 > 0.
2661 * macros/tmac.e (@R, @S): New macros.
2662 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
2663 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
2664 Declare $H, $[0-9], .. macros with @S.
2665 Declare |0, |1, |2, |3 strings with @S.
2667 * macros/tmac.e (@S): Rename to @U.
2669 * macros/tmac.e (@z): Define @b and bp as empty instead of
2672 * macros/tmac.e (@m): Deleted.
2673 (@h): Don't call @m.
2674 (@z): Don't set @m trap.
2676 * macros/tmac.e ($h, $f): Define |z as empty string.
2678 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
2681 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
2683 ()f): Likewise for * register.
2685 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
2686 argument is missing, don't change $R. Call sr with three
2687 arguments when initializing.
2689 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
2691 * macros/tmac.e (sr): New macro.
2692 Initialize $r and $R using sr.
2694 * macros/tmac.e (,): Delete \*(#[.
2696 * troff/env.c (set_tabs): Read the tab type even if the position
2697 is bad. Allow the position of the first tab stop to be negative.
2699 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
2701 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
2703 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
2704 rather than -DPATHCONF_MISSING.
2705 * Makefile: Get rid of PATHCONF_MISSING.
2707 * refer/map.c: New file.
2708 * refer/index.c: Interface to mmap through map.c. Rename map_size
2710 * refer/Makefile: Handle map.c.
2711 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
2713 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
2715 * Makefile: RANLIB should be `true' if there is no ranlib.
2716 * lib/Makefile (libgroff.a): Simplify.
2717 * driver/Makefile (libdriver.a): Simplify.
2719 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
2720 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
2723 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
2725 * troff/env.c (compare_ranges): Declare as extern "C".
2727 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
2729 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
2731 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
2733 * pic/troff.c (troff_output::text): Merge in grops_output::text,
2734 but conditionalize use of \X based on \*(.T.
2735 (grops_output::*): Deleted.
2736 * pic/output.h: Delete declaration of make_grops_output.
2737 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
2738 by default. -n sets it to 0.
2739 (usage): Corresponding changes.
2740 * groff.c (main): Don't pass -x or -p to pic.
2741 * groff.sh: Likewise.
2743 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
2746 * ps/devps/afmtodit: Change calculation of asc_boundary and
2747 desc_boundary. Make these bounds inclusive.
2748 * ps/devps: Regenerate font files.
2750 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
2752 * macros/tmac.latin1: New file.
2753 * macros/tmac.tty-char: Use tmac.latin1.
2754 (tmac.tty-tr): Deleted.
2755 * macros/Makefile: Install tmac.latin1.
2756 * macros/tmac.dvi: Use tmac.latin1.
2757 * macros/troffrc: Translate \[char160] onto no-break space here.
2758 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
2760 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
2762 * macros/tmac.Xps: Use `do' request.
2764 * macros/tmac.ps: Use `do' request.
2766 * macros/tmac.e (@C): Use `do' request.
2768 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
2769 * macros/Makefile: Install tmac.X*.
2771 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
2772 * tty/Makefile: Don't install tmac.tty*.
2773 * macros/Makefile: Install tmac.tty*.
2775 * dvi/tmac.dvi: Move to macros.
2776 * dvi/Makefile: Don't install tmac.dvi.
2777 * macros/Makefile: Install tmac.dvi.
2779 * ps/tmac.ps*: Move to macros.
2780 * ps/Makefile: Don't install tmac.ps*.
2781 * macros/Makefile: Install tmac.ps*.
2783 * eqn/box.c: Provide draw_lines parameter corresponding to -D
2785 * macros/eqnrc: Set draw_lines parameter based on device.
2786 * groff.c: Don't pass -D flag to eqn.
2787 * groff.sh: Likewise.
2788 * eqn/main.c: Warn about use of -D.
2790 * troff/input.c (process_startup_file): New function.
2791 (main): Call process_startup_file().
2792 * macros/troffrc: New file.
2793 * macros/Makefile: Install troffrc.
2794 * groff.c (main): Don't pass extra -m option to troff. For a
2795 pseudo device pass the name of the pseudo device to troff using
2797 * groff.sh: Likewise.
2798 * groff.c (possible_command::prepend_arg): Deleted.
2800 * troff/input.c (do_request): New function.
2801 (init_input_requests): Bind "do" to do_request.
2803 * eqn/main.c (main): Instead of loading eqnchar from device directory,
2804 load eqnrc from macro directory.
2805 * macros/eqnrc: New file.
2806 * macros/Makefile: Install eqnrc.
2807 * ps/devps/eqnchar: Deleted.
2808 * ps/devps/Makefile: Don't install eqnchar.
2809 * dvi/devdvi/eqnchar: Deleted.
2810 * dvi/devdvi/Makefile: Don't install eqnchar.
2811 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
2814 * lib/device.[ch]: New files.
2815 * lib/font.h (font::set_device_name, font::get_device_name):
2817 * lib/fontfile.c: Use device.h.
2818 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
2819 * troff/input.c: Delete definition of `device'.
2820 (main): Don't initialize device.
2821 * troff/troff.h: Include device.h rather than declaring device.
2822 * troff/Makefile: No need to handle DEVICE.
2823 * driver/input.c: Include device.h. Don't use
2824 font::{set,get}_device_name.
2825 * groff.c, Makefile: Rename device.h to config.h.
2826 * groff.c: Use library device variable.
2827 * eqn/main.c: Use library device variable.
2828 * eqn/Makefile: No need to handle DEVICE.
2830 * lib/searchpath.[ch]: New files.
2831 * lib/Makefile: Handle searchpath.[ch].
2832 * troff/input.c (open_file, init_dirs): Deleted.
2833 (macro_dirs): Deleted.
2834 (open_mac_file, macro_source): Use class search_path.
2835 (add_string, struct string_list): Move definition.
2836 (main): Change -M option to use macro_path. Delete call to
2838 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
2839 Rewrite to use class search_path.
2840 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
2841 * lib/Makefile: fontfile.c depends on searchpath.h.
2842 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
2844 * lib/macropath.[ch]: New files.
2845 * troff/Makefile: No need to handle MACROPATH.
2847 * troff/input.c: Delete DUMP code.
2848 * lib/fontfile.c, lib/font.h: Delete
2849 font::forget_command_line_font_dirs.
2851 * troff/input.c (push_token): New function.
2852 (handle_first_page_transition): Use push_token().
2853 (process_input_stack): Change handling of a space at the beginning
2856 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
2858 * troff/input.c (font_dirs): Delete unused variable.
2860 * eqn/lex.c (do_set): Correct error messages.
2862 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
2864 * troff/input.c (do_define_string): Allow the string name to be
2865 followed immediately by a tab.
2866 (define_character): Likewise.
2868 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
2870 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
2873 * troff/input.c (input_iterator::is_file): New virtual function.
2874 (file_iterator::is_file): New function.
2875 (input_stack::end_file): New function.
2876 (input_stack::next_file): Handle the situation where there is no
2877 file on the input stack correctly. Avoid making two passes over
2879 (next_file): Make the filename optional; in this case call
2880 input_stack::end_file().
2882 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
2884 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
2885 produce a real _ charater when the current font is CW and _
2888 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
2889 expression to work around gcc 2.2 bug.
2891 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
2893 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
2895 * troff/env.c (environment::add_padding): New function.
2896 (environment::add_char): Use add_padding().
2897 (environment::space): Likewise.
2898 (environment::wrap_up_field): Add some padding if there is none
2899 and there's no current tab.
2900 * troff/env.h: Declare environment::add_padding.
2902 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
2904 * pic/pic.y: undef fmod and rand before declaring them.
2906 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
2908 * troff/input.c (main): If the DESC file specifies a font name of
2909 0, then leave the corresponding font position empty.
2911 * nroff.sh: New file.
2912 * Makefile (install.nobin): Install nroff.sh.
2914 * tty/devlatin1/R.proto: Add ao as synonym for de.
2915 * tty/tmac.tty-char: Define ao as o.
2917 * tty/dev{ascii,latin1}/R.proto: Add aq.
2918 * tty/tmac.tty-char: Delete definition of aq.
2920 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
2922 * troff/input.c (init_charset_table): Don't translate 0240.
2923 * ps/tmac.ps: Translate char160 to space.
2924 * dvi/tmac.dvi: Likewise.
2925 * tty/tmac.tty: Likewise.
2927 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
2929 * dvi/tmac.dvi: Add support for all Latin-1 characters.
2931 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
2932 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
2935 * tty/tmac.tty-char: Add \(ah.
2937 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
2938 No need to define \(FM and \(!/. Conditionalize all character
2941 * ps/devps/lgreekmap: Add +h, +f, +p.
2943 * ps/tmac.psnew: New file.
2944 * ps/Makefile: Install tmac.psnew.
2946 * troff/input.c (charinfo_to_node_list): Don't ever interpret
2947 character definitions in compatible mode.
2949 * troff/input.c (remove_character): New function.
2950 (init_input_requests): Bind remove_character to "rchar".
2952 * ps/tmac.psold: New file.
2953 * ps/Makefile: Install tmac.psold.
2954 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
2955 characters into tmac.psold. Make these definitions unconditional.
2957 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
2959 * ps/tmac.ps: Don't define \('c and \('C.
2961 * ps/devps/textmap: Move Greek characters to...
2962 * ps/devps/symbolchars:
2964 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
2966 * ps/devps/text.enc: Add quotesingle.
2967 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
2968 * tty/tmac.tty-char: Likewise.
2969 * dvi/devdvi/texmi.map: Add +h, +f, +p.
2970 * dvi/devdvi/texi.map: Add Fn.
2971 * dvi/devdvi/msam.map: Add lz.
2972 * dvi/tmac.dvi: Handle Bq, bq, aq.
2974 * pic/lex.c (get_token): Recognize 'th.
2975 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
2977 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
2979 * ps/devps/textmap: Move di, mu, +- to...
2980 * ps/devps/symbolchars:
2982 * macros/tmac.s (@XS): Don't call par@reset or fi.
2983 (XA): Call LP. Turn off adjustment. Reduce line length.
2985 * macros/tmac.s: Initially alias XS to LP.
2986 (XS): Rename to @XS.
2987 (cov*ab-init): Alias XS to @XS.
2989 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
2991 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
2992 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
2993 (token::is_size, token::changes_env): Deleted.
2994 * troff/number.c (parse_term): No need to process \s explicitly.
2995 Call tok.next() only after scale indicator has been processed.
2996 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
2998 (token::next): Handle \s, \f, \S, \H immediately rather than
2999 returning them as tokens.
3000 (token::operator==, token::description, token::add_to_node_list,
3001 token::process): Remove handling of deleted tokens.
3003 * troff/env.c (environment::add_char): When adding padding
3004 indicator character, call start_line() if necessary.
3006 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
3008 * ps/devps/afmtodit: Don't output 0 kerns.
3010 * ps/devps/afmtodit: Remove directory from name of encoding in
3011 font description file.
3013 * ps/devps/afmtodit: Improve error messages.
3015 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
3017 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
3018 * ps/devps/FontMakefile: Deleted.
3019 * ps/devps/afmname: New file.
3021 * ps/devps/symbol.sed: New file.
3022 * ps/devps/symbol.diff: Deleted.
3023 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
3024 Generate zapfdr.afm from zapfd.afm.
3026 * tty/tmac.tty (tty-char): Prefix definition with ".
3028 * macros/tmac.an (TP): Don't start a diversion if one has already
3031 * tty/tmac.tty-char: Add Latin-1 characters.
3033 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
3035 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
3037 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
3038 Move declaration of struct horizontal_span.
3040 * tbl/table.c (table::table): Initialize span_list.
3041 (table::~table): Delete span_list.
3043 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
3045 * ps/devps/Makefile: Avoid dependency on GNU make.
3047 * ps/tmac.ps: Check that character does not already exist before
3050 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
3051 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
3052 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
3055 * tty/tmac.tty-char: New file.
3056 * tty/Makefile: Install tmac.tty-char.
3057 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
3060 * tty/tmac.tty: Fix definition of \(34.
3062 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
3063 bracket-drawing characters onto |. Add *o.
3065 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
3066 only if current_field.
3068 * troff/dictionary.c (dictionary::lookup): Free old_table after
3071 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
3073 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
3074 whose glyphs are identical to glyphs of some Roman character.
3076 * tty/devlatin1/R.proto (bu): Deleted.
3077 * tty/devascii/R.proto (bu): Deleted.
3078 * tty/tmac.tty: Add definition of \(bu.
3080 * eqn/main.c (do_file): Pass FILE as argument.
3081 (main): Automatically load eqnchar. New options -F and -n.
3082 Pass do_file an opened FILE.
3083 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
3084 No need to include font.h.
3085 * groff.sh: Likewise. Don't need to use - for standard input.
3086 Prefix files with -- if first file starts with -.
3088 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
3090 * troff/env.c (environment::possibly_break_line): Don't set line
3091 to 0 across call to output_line(). Don't call output_line() until
3092 after discarding nodes after break.
3094 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
3096 * request.h (macro::empty): Declare it.
3097 * input.c (macro::empty): New method.
3098 (interpolate_macro): Don't give a WARN_SPACE if the two-character
3101 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
3103 * troff/env.c (environment::start_field): Decrement space_total
3104 when a space is frozen.
3106 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
3108 * macros/tmac.an (R): Delete macro.
3110 * troff/input.c (get_copy, token::next): Support \# (like \" but
3111 newline is ignored).
3113 * troff/input.c (token::next): Fix error message in 'Y' case.
3115 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
3117 * eqn/delim.c (define_extensible_string): Recognize any prefix of
3120 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
3122 * c++test.c: Include <osfcn.h>.
3124 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
3127 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
3129 * tbl/table.c (table::divide_span): Don't count column separation
3130 if expand was specified.
3132 * tbl/main.c (process_format): Don't ignore width specs in
3133 continued format. Give warning for changing equal widths or
3134 column separation in continued format.
3135 (process_data): Set column separation, minimum width, equal
3136 columns at end of table.
3138 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
3140 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
3141 node::add_discretionary_hyphen): Use soft_hyphen_char.
3142 (set_soft_hyphen_char): New function.
3143 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
3145 * Makefile (c++tested): Give more helpful message if test fails.
3147 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
3149 * troff/input.c (init_charset_table): Translate 0240 to
3150 an unbreakable space.
3152 * troff/token.h (token::hyphen_indicator): New function.
3153 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
3155 * troff/input.c (translate): Allow translation to \%.
3156 * troff/node.c (node::add_char): Handle
3157 TRANSLATE_HYPHEN_INDICATOR.
3158 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
3160 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
3163 * tty/devlatin1/R.proto: \(hy and - should print as 055.
3165 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
3167 * groff.c (run_commands): If the last command gets a SIGPIPE send
3168 a SIGPIPE to all children than haven't yet terminated. When
3169 command terminates, set pid field to -1.
3171 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
3173 * groff.c (main): Pass an appropriate -filename option to gxditview.
3175 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
3177 * Makefile.bd (install): Remove existing program before copying.
3179 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
3180 programs which have Unix counterparts to be installed with
3181 user-specified prefix.
3183 * troff/input.c (exit_troff): Don't check if exit_started.
3184 (exit_request): Don't call exit_troff if exit_started.
3186 * Makefile.bd (install.mm): Rename to install.dwbmm.
3188 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
3190 * driver/input.c (do_file): Add missing break for '#' case.
3192 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
3194 * troff/input.c (input_stack::clear): Clear past any boundaries and
3195 then add the boundaries back.
3197 * troff/input.c (exit_troff): Return immediately if already
3200 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
3202 (pg*end-page): If the text has ended and there are no more
3203 footnotes or keeps, exit.
3205 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
3207 * troff/input.c (init_charset_table): Make \(rq transparent by
3210 * macros/tmac.an: Define lq and rq strings.
3212 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
3214 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
3216 * troff/env.c (environment::final_break): New function.
3217 (environment::newline): Set prev_line_interrupted to 2 if
3219 * troff/env.h: Declare environment::final_break.
3220 * troff/input.c (exit_troff): Call environment::final_break()
3221 instead of environment::do_break().
3223 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
3224 doesn't already exist.
3225 * macros/man.local: New file.
3226 * macros/tmac.an: Load man.local.
3227 * macros/man.ultrix: New file.
3229 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
3231 * troff/input.c (exit_groff): Rename to...
3232 (exit_troff): New function.
3234 * troff/div.c (exit_started, done_end_macro,
3235 seen_last_page_ejector): New global variables.
3236 (began_page_in_end_macro): New static variable.
3237 (exit_flag): Deleted.
3238 (top_level_diversion::top_level_diversion): Initialize
3240 (top_level_diversion): More elaborate test for whether
3241 cleanup_and_exit() should be called.
3242 Set began_page_in_end_macro if the end macro isn't yet finished.
3243 * troff/div.h (top_level_diversion::last_page_count): New data
3245 (top_level_diversion::set_last_page): New function.
3246 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
3247 * troff/env.c (do_break): Zero prev_line_interrupted.
3248 * troff/input.c (exit_flag): Delete declaration.
3249 (LAST_PAGE_EJECTOR): New magic cookie.
3250 (token::next): Handle LAST_PAGE_EJECTOR.
3251 (exit_groff): Set exit_started and done_end_macro instead of
3252 exit_flag. Call top_level_diversion::set_last_page. Push a
3253 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
3254 another ejection after setting seen_last_page_ejector.
3256 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
3258 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
3260 * macros/tmac.e (TH): Make sure there's room for the initial
3263 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
3264 Set FVS in points rather than units.
3266 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
3268 * troff/div.c (top_level_diversion::add_trap): Don't consider the
3269 position of empty slots.
3271 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
3273 * ps/devps/S: Fix height and depth of parenrightex.
3274 * ps/devps/symbol.diff: Regenerate.
3276 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
3278 * tmac.e (u): Do underlining as in -mgs.
3280 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
3282 * tty/tty.c (tty_printer::end_page): If overstriking is
3283 suppressed, still turn overstruck horizontal and vertical lines
3286 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
3289 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
3291 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
3293 * Version 1.05 released.
3295 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
3297 * tty/tty.c: Instead of keeping an array of glyphs and then
3298 sorting it, keep a ordered linked list of glyphs for each line.
3300 * driver/driver.h: Include stddef.h.
3302 * tty/tty.c (compare_glyph):
3303 * refer/refer.c (rcompare):
3304 * troff/env.c (compare_ranges): Arguments of qsort comparison
3305 function should be const void *.
3307 * troff/number.c (parse_term):
3308 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
3311 * refer/label.y (consider_authors): Don't access variables
3312 constructed under a condition outside that condition: put braces
3313 round for statement containing declaration; redeclare use of same
3316 * pic/pic.y (text_expr): Delete production that allows
3317 parenthesised text_expr.
3318 (expr): Allow a conditional_expr to appear in parentheses.
3319 (conditional_expr): Rename to any_expr.
3321 * mm: Install new version 1.01 from jh.
3323 * lib/font.c (font::get_width): Cache scaled widths.
3324 (font::font): Initialize widths_cache.
3325 (font::~font): Destroy widths_cache.
3326 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
3328 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
3330 * c++test.c, c++test.ref: New files.
3331 * Makefile: Check that the C++ compiler works.
3333 * ps/tmac.pspic (PSPIC): Do a break.
3335 * ps/tmac.ps: Move definition of PSPIC into...
3336 * ps/tmac.pspic: New file.
3337 (PSPIC): Draw box around picture, but make it invisible to grops.
3338 * ps/tmac.ps: Load tmac.pspic.
3339 * ps/Makefile: Install tmac.pspic.
3341 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
3343 * lib/font.c (scale_round): If n is negative,
3344 subtract .5 before truncating floating point result.
3346 * lib/fontfile.c: Include <errno.h>.
3348 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
3350 * driver/input.c (get_char): Inline. Don't update current_lineno.
3351 Change callers to up date current_lineno if necessary.
3352 Use get_char() instead of getc(current_file).
3354 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
3356 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
3358 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
3360 * tty/tty.c (tmac.tty): Define \(rg as (R).
3362 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
3364 * lib/lib.h: New define a_delete.
3365 * Use a_delete instead of delete when deleting an array of objects
3366 without destructors.
3368 * lib/lib.h: Rename adelete to ad_delete.
3369 * Change uses of adelete.
3371 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
3373 * eqn/eqn.y: Include lib.h.
3375 * troff/node.c (grow_font_table): Delete old_font_table.
3377 * mm: Install new version from jh.
3379 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
3381 * tbl/table.h (format_type): Make global instead of local to class
3382 entry_format. Prefix enumerators with FORMAT_.
3383 * tbl/table.c, tbl/main.c: Corresponding changes.
3384 * refer/token.h (token_type): Make global. Prefix enumerators
3386 * refer/token.[ch]: Corresponding changes.
3387 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
3389 * troff/div.c (node::set_vertical_size): Don't name argument.
3391 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
3393 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
3394 * lib/lib.h: Define adelete accordingly.
3395 * pic/object.c (graphic_object::graphic_object):
3396 * tbl/main.c (format::~format):
3397 * tbl/table.c (table::~table):
3398 * refer/ref.c (reference::~reference, reference::merge,
3399 reference::insert_field, reference::delete_field): Use adelete.
3401 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
3403 * tbl/table.h: Corresponding changes.
3405 * common.c (common_output::dashed_arc, common_output::dotted_arc):
3406 Ensure total_angle is positive.
3408 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
3410 * refer/ref.c (reference::merge, reference::insert_field,
3411 reference::delete_field): Avoid delete[0].
3413 * refer/token.c (init_special_chars): Move calls to cmupper
3414 outside calls to init_two_char_letter to work around bug in gcc
3417 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
3419 * lib/new.c (operator new): Use __builtin_new for g++.
3421 * pic/object.c (graphic_object::~graphic_object): Don't use
3424 * pic/object.c (output::compute_scale): Initialize max_width and
3427 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
3429 * troff/input.c (write_request): Call fflush.
3431 * troff/node.h (class composite_node): Move declaration to node.c
3432 * troff/input.c (charinfo_to_node): Rename to ...
3433 (charinfo_to_node_list): Return node list rather than composite
3435 * troff/node.c (make_composite_node): New function.
3436 (make_node, add_char): Call make_composite_node instead of
3438 (class composite_node): Add a tfont * member. Delete font_size
3440 (composite_node::composite_node, composite_node::copy,
3441 composite_node::size): Corresponding changes.
3442 (composite_node::tprint): Provide constant spacing, emboldening
3443 and track kerning as specified in tfont.
3444 (composite_node::width): Change width calculation accordingly.
3445 * troff/env.h (environment::composite): New member.
3446 (environment::is_composite, environment::set_composite): New
3448 * troff/env.c (environment::environment): Initialize composite.
3449 * troff/input.c (charinfo_to_node): Call
3450 environment::set_composite.
3451 * troff/node.c (make_composite_node, make_glyph_node): Use the
3452 plain version of the tfont if the environment is composite.
3454 * troff/node.c (font_info::get_space_width): Additional argument
3455 giving space_size. Handle constant space correctly. Scale by
3456 space_size unless constant spaced.
3457 (env_sentence_space_width): New function.
3458 * troff/node.h: Declare it.
3459 * troff/env.h (environment::get_space_size,
3460 environment::get_sentence_space_size,
3461 environment::get_narrow_space_width,
3462 environment::get_half_narrow_space_width): Make inline.
3463 (environment::get_space_width): Make inline. Just call
3465 * troff/env.c: Delete definitions for funtions made inline.
3466 (environment::space_newline, environment::space): Use
3467 env_sentence_space_width(). Don't scale by space_size.
3468 * troff/node.h: Move declarations of env*space_width() functions
3471 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
3473 * macros/tmac.s (PS): Don't try to set negative indent.
3475 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
3477 * pic/pic.y: Fix min function.
3479 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
3481 * man/mdate.sh: Clear LANGUAGE.
3483 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
3485 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
3486 * pic/lex.c: New COMMAND keyword.
3487 * pic/pic.y (print_args, print_arg): New rules.
3488 (placeless_element): Use print_args for PRINT.
3489 New COMMAND element.
3491 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
3493 * troff/input.c (terminal): Handle missing argument correctly.
3495 * pic/pic.y (text_expr): New rule.
3497 * pic/pic.y: Implement := operator.
3499 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
3501 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
3504 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
3506 * ps/devps/dingbatsrmap: Include this in the distribution.
3508 * macros/tmac.doc: Replace with new version from 2nd Networking
3509 Release. Fix loading of doc-* files.
3510 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
3511 * macros/tmac.doc.old: New file. Apply fixes that had been
3512 applied to old tmac.doc.
3513 * macros/tmac.andoc: Check that we're running under groff.
3514 * macros/Makefile: Rework.
3516 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
3518 * tbl/table.h (format_type):
3519 * refer/token.h (token_type): If NESTED_TYPES is defined, use
3520 typedef to make these types visible at file scope.
3521 * Makefile: Add NESTED_TYPES configuration option.
3523 * troff/div.c (mark): At the top level use the value of
3524 nl_reg_contents rather than the current vertical position.
3526 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
3528 * tty/tty.c: Implement \D for horizontal or vertical lines.
3529 (tty_printer::set_char): Use vec_used+2 as serial number.
3530 Don't allow size of vector to exceed USHRT_MAX-2.
3531 Split off part into...
3532 (tty_printer::add_char): New function.
3533 (tty_printer::draw): New function.
3534 (compare_glyph): Handle equal serial numbers.
3535 (tty_printer::end_page): Handle overstruck characters from \D.
3536 (main, usage): Implement -d option.
3538 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
3540 * tbl/main.c (process_format):
3541 * eqn/text.c (split_text):
3542 * troff/input.c (token::next): Use inner block for declarations
3543 with initializers in switch statement.
3545 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
3547 * pic/common.c (common_output::dash_line): Cope with zero-length
3550 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
3552 * Version 1.04 released.
3554 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
3556 * macros/tmac.an (TH): Define a macro an-init to define variables
3557 based on command line arguments.
3558 (an-header): Call it.
3560 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
3562 * Makefile (install.mm): Rename to install.dwbmm.
3564 * Makefile: Integrate mm.
3565 * mm: New directory.
3567 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
3569 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
3572 * pic/troff.c (troff_output::simple_spline,
3573 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
3574 shadowing parameter.
3576 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
3578 * lib/ptable.h: Add explicit casts when converting from unsigned
3581 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
3582 * dvi/devdvi/Makefile: Install SA, SB.
3584 * refer/indxbib.c: Add declaration of mktemp.
3586 * refer/lookbib.c: Add declaration of isatty.
3588 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
3590 * pic/lex.c (interpolate_macro_with_args): While collecting
3591 arguments, keep track of whether we're in a string.
3593 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
3595 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
3596 down with \v, so as to avoid problems with top of page trap
3597 setting no space mode.
3599 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
3601 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
3603 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
3605 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
3606 Improve error message.
3608 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
3610 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
3613 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
3615 * groff.c (possible_command::execp): Always use _exit() after a
3618 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
3619 NO_SYS_WAIT_H configuration options.
3620 * groff.c: Use these options. Use POSIX-style macros to extract
3621 fields from the status returned by wait().
3623 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
3625 * tbl/table.c (table::compute_separation_factor): Allow the
3626 separation factor to drop to 0.
3628 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
3630 * refer/search.c: Include <errno.h>.
3632 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
3634 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
3636 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
3639 * pic/lex.c (input_stack::bol): Move definition out of class body.
3641 * pic/main.c: On MSDOS munge argv[0].
3643 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
3645 * lib/ptable.c (hash_string): Use unsigned long rather than
3647 (next_ptable_size): Use unsigned rather than int. Give an error
3648 message if we've hit the largest table size.
3649 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
3652 * pic/object.h (object_spec): Make flags unsigned long. Declare
3653 flags as const unisgned long rather than as enums.
3655 * pic/output.c: Deleted.
3657 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
3659 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
3660 Add additional argument.
3661 (line_entry::note_double_vrule_on_{left,right}): Set value of
3662 douvle_vrule_on_{right,left} flag according to argument.
3663 (simple_line_entry::simple_print,
3664 simple_line_entry::double_line_print): If adjacent to double vrule
3665 on a corner extend rather than shorten the rule by half the double
3668 * troff/number.c (parse_term): In checking for overflow, handle the
3669 case where the current horizontal position is negative.
3671 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
3673 * pic/object.c (draw_arrow): Check for object having zero length.
3675 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
3677 * eqn/main.c (do_file): Split off inline equation handling into...
3678 (inline_equation): New function. Search for starting delimiter
3680 (delim_search): New function. Don't recognize a delimiter that
3681 occurs in the name of an escape sequence, number register, string
3684 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
3686 * eqn/delim.c (delim_box::compute_metrics): Don't call
3687 define_extensible_string if left is 0.
3688 (delim_box::output): Don't print the left delimiter if left is 0.
3689 (delim_box::debug_print): Check for left == 0 before calling printf.
3691 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
3693 * troff/Makefile (majorminor.c): Include only digits in
3696 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
3698 * refer/dirnamemax.c: new file.
3699 * refer/genlimits.c: Deleted.
3700 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
3701 Don't check path length.
3702 * refer/Makefile: Add dir_name_max.o; delete genlimits.
3703 * Makefile: Add PATHCONF_MISSING option.
3705 * refer/indxbib.c (get_cwd): New function.
3706 (main): Use get_cwd().
3707 * lib/getcwd.c: New file.
3708 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
3710 * lib/Makefile: Compile getcwd.o.
3712 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
3715 * refer/indxbib.c (main): Check success of mktemp.
3717 * lib/tmpfile.c: New file.
3718 * lib/Makefile: Add tmpfile.c.
3719 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
3720 * ps/ps.h: Delete declaration of mktemp().
3721 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
3722 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
3723 * driver/driver.h: No need now to include errno.h.
3725 * everywhere: Set errno to 0 before calling fopen().
3727 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
3728 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
3729 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
3731 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
3733 * troff/env.h (translate_space_to_dummy): Declare it.
3734 * troff/env.c (environment::space_newline, environment::space):
3735 If translate_space_to_dummy is set then make the width of spaces 0.
3736 * troff/input.c (translate): If the second character of a
3737 translation is a space, translate to unbreakable space. If the
3738 first character is a space, set or clear translate_space_to_dummy
3739 according to whether the second character is \&. Weird!
3741 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
3743 * groff.c (run_commands): Don't use non-zero exit code because a
3744 command gets SIGPIPE.
3746 * groff.c, groff.sh: Use -mXps with -TXps.
3748 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
3749 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
3750 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
3751 (ps_printer::special): New specials invis and endinvis.
3752 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
3753 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
3754 (ps_printer::end_page): Check that invis_count == 0.
3755 (ps_printer::invis_count): New member.
3756 (ps_printer::ps_printer): Initialize invis_count to 0.
3758 * troff/env.c (environment::hyphenate_line): Hyphenation
3759 indicator at beginning of word inhibits splitting after -, \(em
3762 * pic/pic.y (element): Allow another element to follow } without
3763 any intervening separator.
3765 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
3767 * pic/lex.c (get_delimited): Allow tabs before delimiter.
3769 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
3771 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
3772 declaration of wait() in header files.
3773 * Makefile: Get rid of -DHAVE_UNION_WAIT.
3775 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
3777 * lib/lib.h: Declare return type of strerror as char *.
3779 * man/Makefile: Add g flag to sed substitutions.
3780 * Makefile (shgroff, bindist): Likewise.
3782 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
3784 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
3785 * ps/devps/prologue (PBEGIN): Define showpage after pushing
3788 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
3790 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
3793 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
3795 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
3798 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
3800 * troff/input.c (define_number_reg): If currently undefined,
3801 don't define it if the argument is an invalid expression.
3803 * Makefile: Ignore return value of `if' commands without `else'
3806 * Makefile: Split up CPPDEFINES into a series of separate
3807 configuration options.
3809 * troff/input.c (init_registers): Use time_t instead of long
3810 unless LONG_FOR_TIME_T is defined. Use returned result rather
3811 than passing pointer.
3812 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
3814 * lib/Makefile (fontpath.h): Use gendef.
3816 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
3818 * troff/input.c (input_iterator::shift): Delete argument name.
3819 * troff/node.c (suppress_output_file::really_begin_page,
3820 suppress_output_file::really_transparent_char, node::ascii_print,
3821 node::tprint): Delete names of unused arguments.
3823 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
3825 * refer/label.y (string): Pass $4 to command_error.
3827 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
3829 * Version 1.03 released.
3831 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
3833 * Makefile: Pass definition of SHELL in SUBFLAGS.
3836 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
3837 ps/Makefile: Use gendef to construct header files that are
3838 constructed from the Makefile.
3840 * macros/Makefile: make all should build stripped version of tmac.e.
3842 * refer/Makefile (clean): Remove y.output.
3844 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
3846 * ps/pfbtops.c (main): Add -v option which prints out a version
3848 * ps/Makefile (pfbtops): Link with libgroff.a.
3850 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
3852 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
3853 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
3855 * refer/lkbib.c (main): Always terminate reference with blank
3857 * refer/lookbib.c (main): Likewise.
3859 * refer/linear.c (file_buffer::load): Check that the file is not a
3862 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
3863 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
3864 Delete second inclusion of <sys/param.h>.
3866 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
3868 * troff/token.h (token::special): Deleted.
3870 * tbl/main.c (process_format): Rework so that opt->tab_char is
3871 recognized only when appropriate.
3873 * ps/Makefile (clean): Remove pfbtops.
3875 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
3877 * lib/font.c (text_file::next): Don't return if we have got a
3880 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
3882 * refer/refer.c (store_reference): Get hash code from old_table[i]
3883 when rehashing the table.
3885 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
3887 * eqn/box.c (box::top_level): Save size and prev size using \R and
3888 restore it afterwards. Set the size to the size at the beginning
3890 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
3891 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
3893 * refer/Makefile (limits.h): Use ./genlimits.
3895 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
3897 * refer/index.c: Delete declarations of stat() and fstat().
3899 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
3901 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
3903 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
3905 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
3907 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
3909 * troff/input.c (token::get_char): Handle \e.
3911 * refer/linear.c: Delete declarations of fstat() and stat().
3913 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
3915 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
3916 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
3918 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
3920 * troff/input.c (do_define_macro): Improve error handling for end
3921 of file while defining macro.
3923 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
3925 * eqn/box.h: Fix declaration of set_gsize.
3926 * eqn/box.c (set_gsize): Make argument const char *.
3927 (gsize): Declare as char *.
3928 * eqn/main.c (main): Don't convert gsize to int.
3929 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
3931 * Version 1.02 released.
3933 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
3935 * macros/tmac.andoc: New file.
3936 * macros/Makefile: Install tmac.andoc.
3938 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
3939 operator new and delete on OP_DELETE_BROKEN not being defined.
3940 * Makefile: Mention OP_DELETE_BROKEN.
3942 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
3944 * Makefile (bindist): Pass SUBFLAGS.
3946 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
3948 * Makefile, groff.c: Pass definitions to groff.c via device.h.
3950 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
3953 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
3955 * ps/ps.h, ps/psrm.c: Make comment_table and
3956 header_comment_table local to resource_manager::process_file.
3958 * groff.sh: With -TXps pass -printCommand option to gxditview.
3960 * groff.c (possible_command::print): Implement using
3961 append_arg_to_string.
3963 * xditview: Merge in new implementation with own ChangeLog.
3965 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
3967 * groff.c (main): Implement PRINT_OPTION.
3968 (append_arg_to_string): New command.
3969 (device_table): Set PRINT_OPTION flag for Xps.
3971 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
3973 * troff/groff.h: Rename to troff.h.
3975 * pic/lex.c (lookup_keyword, docmp): New functions.
3976 (get_token): Use new lookup_keyword.
3977 Don't include key.h.
3978 * pic/key.[ch], pic/pic.gperf: Deleted.
3979 * pic/Makefile: Remove gperf stuff.
3981 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
3983 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
3985 * troff/Makefile, troff/node.c: Move definition of
3986 STORE_WIDTH into node.c.
3988 * etc/grog.pl, etc/grog.sh: Support -mdoc.
3990 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
3992 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
3993 dvi/devdvi/texb.map: Add lq and rq.
3994 dvi/devdvi: Regenerate fonts.
3995 * ps/devps/textmap: Add lq and rq.
3996 * ps/devps: Regenerate fonts.
3997 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
3998 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
4000 * pic/object.c (position_rectangle): When checking radius
4001 cope with possiblity that width or height is negative.
4002 (box_object::box_object): Have separate xrad and yrad with
4003 signs matching signs of dim components.
4004 (box_object::{north,south}_{east,west}): Use xrad and yrad.
4005 (box_object::print): With rounded boxes use absolute values
4006 for dim and rad arguments.
4008 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
4011 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
4013 * various files: Add explicit destructors to keep Saber CC +d
4016 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
4018 * eqn/box.c (box::top_level): Restore fonts correctly after
4019 font changes in line containing inline equation. Also
4020 restore previous font as well as current font.
4021 * eqn/pbox.h: Define necessary string and register names.
4023 * troff/input.c (token::next): Case 'R' calls do_register.
4024 (do_register): New function.
4026 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
4028 * groff.c, groff.sh: Support Xps device. Allow each device
4029 to have a pseudo_name and a real_name.
4031 * groff.c (run_commands): Don't print `Broken pipe' messages.
4033 * ps/pfbtops.c: New file.
4034 * ps/Makefile: Add pfbtops.
4036 * troff/number.c (parse_term): Improved error message.
4038 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
4040 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
4042 * Makefile: Integrate refer.
4043 * refer: New directory.
4044 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
4045 man/lkbib.man: New files.
4046 * man/Makefile: Support refer man pages.
4048 * lib/lib.h: Declare is_prime.
4049 * lib/prime.c: New file.
4051 * troff/input.c (macro_source): New function.
4052 (init_input_requests): Bind "mso" to macro_source.
4054 * troff/env.c (environment::possibly_break_line): Maintain
4055 pointer to pointer to node to be split in ndp so as to avoid
4056 using address of freed node.
4058 * troff/env.c (environment::hyphenate_line): Maintain pointer to
4059 pointer to first node to be hyphenated in startp so as to
4060 avoid using address of freed node.
4062 * troff/env.c (class trie, class hyphen_trie): Make the
4063 elements of the trie be of type char not unsigned char.
4064 Declare arguments to be const char* instead of unsigned char *.
4066 * troff/env.c (hyphenate): Initialize hbuf[0].
4068 * troff/input.c (set_string): Declare p to be char * and cast
4069 *p to unsigned char when necessary.
4071 * troff/input.c (do_define_macro): Declare s to be const
4072 char*. Cast element to unisgned char when necessary, Declare
4073 d to be an int. Handle EOF better.
4075 * troff/Makefile, troff/input.c: Different scheme for passing
4076 definitions of MACROPATH, HYPHENFILE and DEVICE.
4078 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
4080 * tty/devascii/R.proto: Delete entry for em.
4081 * tty/devlatin1/R.proto: Likewise.
4083 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
4085 * troff/input.c (translate): Stop when we get a space. Treat eof
4088 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
4090 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
4092 * tbl/main.c (process_format): A font name following a `f'
4093 modifier that starts with a digit can be only one character long.
4094 Also deal with EOF on the second character of the font name.
4096 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
4098 * troff/input.c (token::next): Turn \~ into an
4099 unbreakable_space_node.
4100 * troff/node.c (unbreakable_space_node): New class.
4101 * troff/node.h: Declare it.
4103 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
4105 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
4106 it's >= 0, before outputting it as a single byte.
4108 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
4110 * lib/font.c: Make font_char_metric::code an int.
4111 (font::get_code): Change return type to int.
4112 (font::load): Allow code to be arbitrary integer.
4113 * lib/font.h (font::get_code): Change return type to int.
4114 (font::number_to_index): Change argument type to int.
4115 * troff/input.c (token::next): In case 'N', allow any value.
4116 Store value in token::val.
4117 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
4118 (token::get_char, token::add_to_node_list, token::process): Get
4120 (charinfo::set_number): Change argument to int.
4121 (charinfo::get_number): Require that NUMBERED flag be set.
4122 (get_charinfo_by_number): Store numbered characters not between 0
4123 and 255 in a dictionary.
4124 * troff/charinfo.h (get_charinfo_by_number): Change argument type
4126 (charinfo::number): Change type to int.
4127 (charinfo::set_number): Change type of set_number to int.
4128 * troff/node.c (troff_output_file::put_char_width,
4129 troff_output_file::put_char): Test whether character is numbered
4130 using charinfo::numbered().
4131 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
4133 * lib/nametoindex.c: New implementation to cope with arbitrary
4136 * troff/input.c (token::operator==): Test val for
4137 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
4140 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
4141 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
4143 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
4145 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
4148 * all Makefiles: rm targets of cp and >.
4150 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
4153 * eqn/lex.c (def_table): Add dollar.
4155 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
4157 * troff/input.c (do_width): Push back newline before closing delim
4160 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
4162 * groff.c (possible_command::prepend_arg): New function.
4163 (main): Prepend device -m option.
4164 * groff.sh: Put device -m options before command-line options.
4166 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
4168 * macros/tmac.an (IP): Quote argument to TP.
4170 * ps/ps.c (main): New option -b, which sets...
4171 (broken_flags): New variable.
4172 (ps_printer::~ps_printer): Incorporate the setup section in the
4173 prolog if (broken_flags & NO_SETUP_SECTION).
4174 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
4175 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
4176 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
4177 ps_printer::print_needed_font_comment,
4178 ps_printer::print_supplied_font_comment,
4179 ps_printer::print_include_font_comments,
4180 ps_printer::lookup_doc_font, ps_printer::download_fonts,
4181 ps_printer::read_download_file, read_document_fonts, add_font,
4182 skip_line, parse_fonts_arg, document_font::document_font,
4183 document_font::~document_font, document_font::download,
4184 ps_output::include_file): Deleted.
4185 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
4186 rather than %!PS-Adobe-2.0. Make calls to
4187 resource_manager::need_font for each font that we used. Replace
4188 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
4189 print_supplied_font_comment, print_needed_font_comment by call to
4190 resource_manager::print_header_comments. Output %%Orientation
4191 comment. Output %%Requirements: numcopies comment if ncopies > 1.
4192 Don't output the prolog directly. Instead call
4193 resource_manager::output_prolog. Only define #copies when ncopies
4194 > 1. Delete calls to print_include_font_comments and
4195 download_fonts. Add call to resource_manager::document_setup.
4196 (ps_printer::do_file): Call resource_manager::import_file instead
4197 of including it ourselves.
4198 (ps_printer::do_import): Likewise. Also don't call
4199 merge_import_fonts. Push userdict on the dictionary stack before
4200 and pop it afterwards.
4201 Move declaration of ps_output into ps.h.
4202 * ps/psrm.c: New file implementing resource_manager class.
4203 * ps/ps.h: New file declaring ps_output and resource_manager
4205 * ps/devps/zapfdr.ps:
4206 * ps/devps/symbolsl.ps:
4207 * ps/devps/prologue: Use 3.0 conventions.
4208 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
4209 Add default definition of BROKEN_SPOOLER_FLAGS.
4210 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
4211 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
4213 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
4215 * etc/grog.pl: New file.
4216 * Makefile (GROG): New variable.
4217 Add GROG to SUBFLAGS.
4218 * etc/Makefile (GROG): New variable.
4219 (install.nobin): Install $(GROG) rather than grog.sh.
4221 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
4223 * eqn/special.c (special_box::compute_metrics): Make the input and
4224 output strings the same. Get the new height and depth from the
4225 predefined height and depth registers. Also make subscript kern
4227 (special_box::compute_subscript_kern, special_box::compute_skew):
4230 * eqn/box.c (pointer_box::compute_skew,
4231 simple_box::compute_metrics, box::top_level)
4232 * eqn/text.c (prime_box::compute_metrics,
4233 prime_box::comput_subscript_kern)
4234 * eqn/limit.c (limit_box::compute_metrics):
4235 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
4236 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
4237 negative numbers in `nr' requests with a leading 0.
4239 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
4241 * eqn/special.c: New file.
4242 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
4243 Add new rule for simple.
4244 * eqn/lex.c (token_table): Add SPECIAL.
4245 * eqn/box.h: Declare make_special_box.
4246 * eqn/Makefile: Add special.[co].
4248 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
4250 * ps/devps/prologue: Possibly set packing to true while defining.
4251 Create grops dictionary here. Initialize local variables before
4252 defining procedures.
4253 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
4254 the dictionary stack. Set strokeadjust and overprint to false if
4255 the relevant operators are defined.
4256 (PEND): New procedure.
4257 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
4258 prologue. Do everything else in the setup section.
4259 (ps_printer::do_import): Just call PBEGIN and PEND around the
4260 picture. Also push userdict before, and pop it afterwards.
4262 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
4264 * troff/node.c (bracket_node::tprint): Brackets were being printed
4267 * macros/tmac.an (SH, SS): Set fill mode.
4269 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
4271 * troff/div.c (top_level_diversion::begin_page): Set
4272 high_water_mark to 0.
4274 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
4276 * man/mdate.sh: New file.
4277 * man/mdate.c: Deleted.
4278 * man/Makefile: Use mdate.sh instead of mdate.
4281 * eqn/lex.c (do_gsize): Supply missing argument to error message.
4283 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
4285 * man/mdate.c: New file.
4286 * man/*.man: Replace modification date by @MDATE@.
4287 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
4288 (mdate): New target.
4290 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
4291 Remove illegal input characters.
4293 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
4295 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
4297 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
4299 * troff/div.c (begin_page): Change behaviour when
4300 !first_page_begun and !break_flag.
4302 * troff/input.c (do_name_test): Return 0 if argument is empty.
4304 * troff/input.c (read_long_escape_name): Require closing ] to be
4305 at same input level as opening [.
4307 * troff/input.c (read_increment_and_escape_name): New function.
4308 (get_copy, process_input_stack): Use this for \n.
4310 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
4312 * troff/div.c (top_level_diversion::begin_page): Ignore the
4313 current value of page_number if !first_page_begun.
4315 * groff.c (main): Fix declaration of buf.
4317 * troff/input.c (do_name_test): New function.
4318 (token::next): Implement \A.
4319 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
4320 (token::description, token::add_to_node_list, token::process):
4321 Handle TOKEN_ESCAPE.
4322 * troff/token.h: New token TOKEN_ESCAPE.
4324 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
4326 * pic/main.c (do_picture): Allow space before and after filename
4327 following `<'. Check that the filename is not empty.
4329 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
4331 * Version 1.01 released.
4333 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
4335 * dvi/tmac.dvi: ftr HR to H.
4337 * macros/tmac.e: Round up computation of $r.
4339 * xditview/tmac.X: Don't give up completely in compatibility mode.
4340 Use \n(.s instead of \n[.s].
4342 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
4343 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
4344 Add u to factors inside \s[...]. Rename frac to dvi-frac.
4345 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
4346 short names in the char definitions.
4348 * ps/tmac.ps: Don't give up completely in compatibility mode.
4349 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
4350 quote in front of \n(.s. Add u to factors inside \s[...].
4352 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
4354 * tty/tmac.tty: Call the nroff request.
4356 * macros/tmac.e ((x, )x): Better definitions that work properly
4358 (@0, @1): Helper macros for (x.
4360 * macros/tmac.e ($s, hl): Use \l rather than \D.
4362 * tty/tmac.tty: Make it work better in compatibility mode.
4363 (pchar): Rename to tty-char.
4365 * macros/tmac.e (@E): New macro.
4366 (r, i, b, rb, bi): Use @E.
4368 * macros/tmac.e (@F): Don't use (;...) syntax.
4370 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
4371 it was modified for groff.
4373 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
4375 * macros/tmac.e (<., .>): Removed.
4376 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
4378 * macros/tmac.e: Remove check that groff is being used.
4380 * macros/tmac.e (@C): Change families only if using groff; turn
4381 compatibility mode off while changing familes. Save compatibility
4382 mode before changing families and restore it afterwards.
4384 * macros/tmac.e (@h): Remove test for offset + line length.
4386 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
4387 (lo, th, ac): Define to call @S instead of using als.
4389 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
4390 the ratio of the vertical spacing to the point size in units
4391 expressed as a percentage. Use these instead of $10r and $10R,
4392 Delete $10r and $10R.
4394 * lib/font.c (font::load): In default computation of space_width,
4395 divide by sizescale. Use scale_round.
4397 * macros/tmac.an (TP): Don't call `nf'.
4398 (an-do-tag): Don't call `fi'.
4400 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
4402 * troff/input.c (process_input_stack): Handle the case where
4403 spaces at the beginning of an input line are followed by a
4406 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
4408 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
4409 * groff.sh: Use pic -x with the dvi device.
4411 * dvi/devdvi/FontMakefile (H): Don't use -s.
4413 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
4414 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
4415 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
4418 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
4420 * ps/psfig.diff: New file.
4421 * ps/tmac.psfig: New file.
4423 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
4425 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
4426 (]-): Don't call ref*do-tl.
4428 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
4430 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
4431 (fn@do-FS): Rename to fn*do-FS.
4433 * troff/input.c (transparent_translate): New function.
4434 (process_input_stack): Apply transparent_translate before calling
4435 diversion::transparent_output(unsigned char).
4437 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
4439 * troff/input.c (do_define_macro): Define the macro before calling
4442 * xditview/Makefile: Add DEVICES variable. Change install target
4445 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
4447 * groff.c (run_commands): Handle the possibility that there are
4448 child processes other than those forked by us.
4450 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
4452 * lib/string.c (string::append): New function.
4453 * lib/stringclass.h: Declare it.
4455 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
4457 * eqn/main.c (main): New option -N which sets
4458 no_newline_in_delim_flag.
4459 (do_file): If no_newline_in_delim_flag is set don't allow newlines
4461 * groff.c (main): Pass -N on to eqn.
4462 (help, synopsis): Mention -N.
4463 * groff.sh: Implement -N.
4465 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
4467 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
4468 (]-): Call ref*do-tl if ref*need-tl is non-zero.
4469 (XP): Allow as initializer.
4471 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
4473 * troff/env.c (environment::wrap_up_field): If field_spaces are
4474 non-zero and we have a current_tab, subtract padding from
4475 tab_distance. If this makes tab_distance <= 0, use the next tab
4476 stop instead. If there isn't any next tab or it's a left tab,
4477 wrap up the current tab.
4478 (environment::start_field): Initialize tab_precedes_field.
4479 (environment::wrap_up_tab): If there's a current field, update
4480 pre_field_width, field_distance and tab_precedes_field.
4481 * troff/env.h (environment::tab_precedes_field): New member.
4483 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
4485 * ps/ps.c (ps_printer::do_file): New function.
4486 (ps_printer::special): Bind to `file' special.
4487 (ps_printer::do_exec): Set ndefined_styles to 0.
4489 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
4491 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
4492 Avoid stripping first character from the start of unrecognized
4493 escapes. Use lex_error instead of error to report errors.
4494 * eqn/lex.c (get_token): Rework handling of escapes.
4495 (lex_error): Move declaration into...
4498 * xditview/xditview.c (main): Make -page option work.
4500 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
4502 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
4504 * macros/tmac.s (B2): Correct size of box.
4506 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
4508 * macros/tmac.s (B2): Postpone drawing the box until in the
4509 top-level diversion.
4511 * tty/tmac.tty: Add font translations for C, CR, CW.
4513 * groff.c (synopsis, help): Document -i.
4514 * groff.sh: Implement -i.
4516 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
4517 Simplify the construction of SN.
4519 * troff/number.c (parse_term): Give `|' a higher precedence.
4520 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
4523 * macros/tmac.s (B2): Use par@finish instead of par@reset.
4525 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
4527 * lib/string.c (string::move): New function.
4528 * lib/stringclass.h: Declare it.
4530 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
4532 * troff/env.c (distribute_space): Add optional argument
4534 (environment::wrap_up_field): Call distribute_space with
4535 `force_forward' argument of 1.
4537 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
4539 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
4540 Inline it. Move reallocation into...
4541 (string::grow1): New function.
4542 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
4543 dependencies to include library header files.
4544 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
4546 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
4548 * macros/tmac.s (@NH): Use the same number registers than -ms does
4549 for the heading level counters. Use the same string that -ms does
4550 for the number for this heading.
4552 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
4554 * lib/new.c (operator new): Cast result of malloc to char *.
4556 * troff/input.c (spring_trap, lookup_request): Add assert that nm
4559 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
4561 * groff.c (main): Support -i.
4563 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
4565 * pic/pic.h: Include <osfcn.h>.
4567 * ps/ps.c: Add declaration of mktemp.
4569 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
4570 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
4571 argument as union wait *.
4572 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
4573 argument to union wait *.
4575 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
4577 * tty/tmac.tty: Add definition of \(co.
4579 * pic/object.c (make_arc): Only increase radius when radius
4580 strictly less than d.
4581 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
4584 * troff/env.c (environment::environment(symbol),
4585 environment::environment(const environment *)): Initialize
4588 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
4590 * tbl/main.c (main): Add exit(0).
4592 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
4594 * pic/main.c (main):
4595 * eqn/main.c (main):
4596 * tbl/main.c (main):
4597 * etc/soelim.c (main):
4598 * driver/printer.c (printer::~printer):
4599 * troff/node.c (real_output_file::~real_output_file,
4600 real_output_file::flush): Check for errors on stdout.
4602 * most files: Add 1991 to copyright notice.
4604 * macros/tmac.s: Don't test \n(.x and \n(.y.
4606 * troff/input.c (token::next): Rename `escape_char' label to
4607 `handle_escape_char' and `normal_char' label to
4608 `handle_normal_char'.
4610 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
4612 * groff.c (main, synopsis, help): Support -a option.
4613 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
4614 to trflags while parsing options.
4616 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
4618 * troff/number.c (parse_term): With `m', `M' and `n' scale
4619 indicators, convert scale factor to hunits before scaling.
4621 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
4623 * lib/font.c (scale_round): Better test for overflow when n is
4626 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
4628 * tbl/main.c (process_format): Add second argument of type
4629 options*. Change callers. Allow opt->tab_char as well as '\t'
4630 between format items.
4632 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
4634 * macros/tmac.an (PD): With no arguments, make sure register PD is
4636 (TH): Call PD with no argument, instead of setting register PD
4639 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
4641 * Version 1.00 released.
4643 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
4645 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
4647 * dvi/devdvi/DESC: Mount CW instead of CR.
4649 * dvi/tmac.dvi: Add definition of \(tm.
4651 * dvi/devdvi/texsy.map: Add lh, and rh.
4652 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
4653 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
4655 * dvi/devdvi/FontMakefile: Generate H from cmss10.
4656 * dvi/devdvi/Makefile: Install H.
4657 * dvi/devdvi/H: New file.
4659 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
4661 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
4664 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
4666 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
4668 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
4670 * macros/tmac.s (@EN): Handle the case where the equation is empty
4671 but the label is not.
4673 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
4675 * troff/groff.h: New warning category WARN_SPACE.
4676 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
4677 WARN_SPACE to warning_table.
4678 (interpolate_macro): Give a warning of type WARN_SPACE if the name
4679 is longer than two characters and is not defined, but the first
4680 two characters do make a defined name.
4682 * PROBLEMS: New file.
4684 * CHANGES: New file.
4685 * README-0.6, README-1.00: Deleted.
4687 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
4688 * xditview/devX75/Makefile: Make devX75-12.
4689 * xditview/devX100/Makefile: Make devX100-12.
4691 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
4692 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
4694 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
4696 * README-0.7: Rename to README-1.00.
4698 * macros/tmac.pic: New file.
4699 * macros/Makefile (install.nobin): Install tmac.pic.
4701 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
4703 * troff/env.c (hyphen_word): Correct the test for whether the
4704 token is a hyphen. Reset npos to 0.
4706 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
4708 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
4710 * macros/tmac.s (ds*common-end): Call par*reset.
4712 (par@reset-indent): Deleted.
4714 * macros/tmac.s (@IP): Divert the label.
4716 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
4718 * xditview/draw.c (setGC): Use a line width of .1m rather than
4719 .04m by default; round rather than truncate value.
4721 * tbl/table.c (class empty_entry): New class.
4722 (empty_entry::empty_entry, empty_entry::line_type): New functions.
4723 (table::add_entry): Represent empty entries by objects of type
4725 (table_entry::line_type): Return -1.
4726 (table::determine_row_type): Ignore entries with line_type 0.
4727 Treat type -1 as non-lines.
4729 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
4731 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
4732 macros/tmac.s: Rename \(-d to \(Sd.
4734 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
4736 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
4737 * xditview/libXdvi/DviChar.c: Likewise.
4738 * dvi/devdvi/texsy.map: Add `<<', `>>'.
4740 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
4742 * troff/div.c (top_level_diversion::begin_page): Call
4743 init_output() if the_output is 0.
4745 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
4747 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
4749 (get_copy): Turn \E into ESCAPE_E.
4750 (token::process, asciify): Handle ESCAPE_E.
4752 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
4754 (DS): Implement `.DS R'.
4756 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
4758 * macros/tmac.s (FS): New macro.
4760 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
4762 * macros/tmac.s (cov*tl-init): Remove after first execution
4763 instead of aliasing to @nop. Call top of page macro explicitly
4764 instead of setting trap; call @init first. Set pg@top as top of
4766 (cov*auto-init): Deleted. Set cov*tl-init instead of
4767 cov*auto-init as top of page trap.
4768 (TL, LP): Do a break instead of calling cov*tl-init.
4769 (cov*print): With RP format but no TL, alias FS and FE to @FS and
4770 @FE; in this case also give a warning and always start another
4771 page. No need to set pg@top here.
4772 (cov*tl-init): Rename to cov*first-page-init.
4774 * macros/tmac.s (RP): Do `.pn 0'.
4775 (cov*tl-init): With RP format don't do `.pn 0'.
4777 * macros/tmac.s (pg@cs-top): Set no space mode.
4779 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
4780 (cov*ab-init): Alias TL, AU and AI to these.
4782 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
4784 * macros/tmac.s (@EQ): Move the space before the equation into @EN
4785 (@EN): Do nothing unless \n[dl] is > 0.
4787 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
4789 * pic/object.c (ellipse_object::radius): New function.
4791 * VERSION: Change version to 0.7.
4793 * tbl/table.c (block_entry::do_divert): Declare return type as
4795 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
4797 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
4799 * troff/column.c: New file.
4800 * troff/Makefile: Corresponding changes.
4802 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
4805 * troff/div.c (top_level_diversion::space): If the space causes
4806 the first-page transition and springs a trap, truncate the space
4809 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
4811 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
4814 * pic/troff.c (troff_output::line_thickness,
4815 troff_output::set_fill): Do a horizontal motion to compensate for
4816 the width of the \D escape sequence.
4818 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
4820 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
4823 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
4826 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
4827 Supply empty definition.
4828 (text_entry::simple_print, simple_text_entry::simple_print):
4829 Delete declarations.
4830 (table::add_entry): Represent empty entries by objects of type
4833 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
4835 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
4837 * tbl/table.c (left_text_entry::add_tab): New function.
4839 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
4842 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
4844 * troff/env.c (environment::start_field): Give an error message if
4845 there is no next tab.
4847 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
4849 * troff/env.c (hyphenate): Skip initial elements with zero
4852 * macros/tmac.s (par@init): Keep VS in points rather than units.
4854 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
4856 * pic/main.c (main): Implement `-c' option.
4857 * pic/output.h: Declare make_tpic_output().
4858 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
4860 (tpic_output): New class.
4861 (tpic_output::tpic_output, tpic_output::set_pen_size,
4862 tpic_output::command, make_tpic_output): New functions.
4864 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
4866 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
4867 if they're not already defined.
4868 * tbl/table.c (init_output): Don't test \n(.g.
4870 * troff/input.c (do_if_request): Delete `g' condition. Recognize
4871 `d', `r' and `c' conditions even in compatibility mode.
4873 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
4875 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
4878 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
4880 * troff/env.h (environment::prev_line_interrupted): New member.
4881 (environment::get_prev_line_interrupted): New function.
4882 * troff/env.c (environment::newline): Set prev_line_interrupted.
4883 (environment::environment(const environment *),
4884 environment::environment(symbol)): Initialize
4885 prev_line_interrupted.
4886 * troff/input.c (process_input_stack): Don't give special
4887 treatment to space and newline at the beginning of the line if the
4888 previous line was interrupted.
4890 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
4892 * eqn/eqn.y: Disallow PRIME by itself.
4893 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
4895 (def_table): Remove definition of '. Define prime to be `.
4897 * eqn/eqn.y: Split off part of rule `script' into a new rule
4900 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
4902 * macros/tmac.s ({, }): New string aliases.
4904 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
4906 * README-0.7: New file.
4908 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
4910 * macros/tmac.s: New file.
4911 * man/groff_ms.man: New file.
4912 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
4913 * Makefile.bd: Similarily.
4914 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
4915 definition of TMAC_S.
4916 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
4917 * macros/TODO: New file.
4919 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
4921 * troff/env.c (right_justify): New function.
4922 (init_env_requests): Bind this to request "rj".
4923 (center_lines): Set right_justify_lines to 0. If we get a bad
4924 integer, center 1 line.
4925 (environment::environment(symbol), environment::environment(const
4926 environment *)): Initialize right_justify_lines.
4927 (environment::get_right_justify_lines): New function.
4928 (init_env_requests): Bind this to number_register ".rj".
4930 * troff/env.c (environment::choose_breakpoint): Implement
4931 hyphenation_margin and hyphenation_space.
4932 (environment::get_hyphenation_space,
4933 environment::get_hyphenation_margin): New functions.
4934 (init_env_requests): Bind these to .hys and .hym.
4935 (hyphenation_space_request, hyphenation_margin_request): New
4937 (init_env_requests): Bind these to hys and hym.
4938 (environment::environment(symbol), environment::environment(const
4939 environment *)): Initialize hyphenation_margin and
4941 * troff/env.h: Corresponding changes to class environment.
4943 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
4945 * troff/div.c (blank_line): Always do a break.
4947 * eqn/box.c (do_text): Turn off escapes while appending text to
4950 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
4952 * troff/input.c (while_break_request, while_continue_request): New
4954 (init_input_requests): Bind these to "break" and "continue".
4955 (while_depth, while_break_flag): New variables.
4956 (while_request): Update while_depth. Break out of loop if
4957 while_break_flag is set.
4959 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
4961 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
4964 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
4966 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
4968 * stringify: New file.
4969 * Makefile (groff.o): Use stringify.
4971 * xditview/tmac.X: Remove definition of \(rn.
4972 * xditview/libXdvi/DviChar.c: Remove radicalex from
4975 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
4977 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
4978 (alphabetic_block_entry::alphabetic_block_entry,
4979 alphabetic_block_entry::divert, alphabetic_block_entry::print):
4981 (block_entry::divert): Split off body into ...
4982 (block_entry::do_divert): If the block is alphabetic, subtract 2n
4983 from the line length; also update the span width to dl+2n, and the
4984 alphabetic span width to dl.
4986 * driver/input.c (do_file): While reading argument to D command,
4987 when expanding buffer, multiply szp by sizeof(int) rather than 2
4988 in the argument to memcpy.
4990 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
4991 width of alphabetic columns.
4993 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
4995 * troff/node.c (lookup_family): Supply second argument to lookup.
4997 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
4998 search, return immediately if v is 0.
5000 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
5001 (troff_output::start_picture): Set this reg.
5002 (troff_output::end_picture): Remove this reg
5003 * eqn/box.c (box::extra_space): Don't produce `\x's if
5004 EQN_NO_EXTRA_SPACE_REG is defined.
5006 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
5007 * eqn/text.c (split_text): Map ' to \(fm when it's the first
5010 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
5012 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
5015 * troff/div.c (top_level_diversion::top_level_diversion):
5016 Initialize page_number to 0.
5018 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
5020 * groff/troff (environment::environment(const environment *)):
5021 Initialize name to e->name, rather than "anonymous".
5023 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
5025 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
5026 requested_page. Split middle part into ...
5027 (FindPage): New function.
5028 (SetValues): If we don't yet know the last page, and the requested
5029 page is greater than the current page, call FindPage.
5030 Update the font_map_string before doing this.
5032 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
5033 Translate \(lh and \(rh into left and right double arrows.
5035 * troff/node.c (class hyphen_inhibitor_node): New class.
5036 (hyphen_inhibitor_node::hyphen_inhibitor_node,
5037 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
5038 hyphen_inhibitor_node::type,
5039 hyphen_inhibitor_node::get_hyphenation_type): New functions.
5040 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
5041 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
5044 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
5046 * troff/node.h (dummy_node::get_hyphenation_type,
5047 transparent_dummy_node::get_hyphenation_type): Declare them.
5048 * troff/node.c: (dummy_node::get_hyphenation_type,
5049 transparent_dummy_node::get_hyphenation_type): New functions.
5051 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
5053 * xditview/libXdvi/draw.c: If M_PI not defined after including
5054 math.h, then define it.
5056 * xditview/Makefile: Add definition of AR. Pass it to the submake
5058 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
5060 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
5062 * troff/dictionary.h (object_dictionary::alias): Declare return
5064 * troff/dictionary.c (object_dictionary::alias): Return non-zero
5065 if the old name was defined.
5066 * troff/input.c (alias_macro): Give a warning if the old name was
5068 * troff/reg.c (alias_reg): Likewise.
5070 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
5072 * troff/input.c (token::next): Delete implementation of \R.
5074 * macros/Makefile: Strip comments from tmac.e while installing it.
5076 * troff/input.c: New variable `nroff_mode'.
5077 (troff_request, nroff_request): New functions.
5078 (init_input_requests): Bind `troff' and `nroff' to troff_request
5080 (do_if_request): Compute results of t and n conditions from
5083 * text/text.c (split_text): Fix typo in >=.
5085 * eqn/lex.c: Add definition of `==' to def_table.
5087 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
5089 * pic/tex.c (tex_output::start_picture): Change the definitions of
5090 \graph and \graphtemp so that they work properly with Plain TeX.
5092 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
5093 argument to `ar' is not less than the first.
5095 * pic/pic.y: Allow a comma between elements of the variable list
5096 in the argument to `reset'.
5098 * pic/object.c (arc_object::arc_object): Fix computation of
5101 * eqn/main.c (main): Add exit(0).
5103 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
5105 * troff/div.c (begin_page): Test no_space_mode after doing the
5106 break, but still push the page ejector cookie before doing the
5107 break. Also set the next page number after doing the break.
5109 * xditview/xditview.c (NewFile): Don't set the title and icon name
5110 if this is the first file and its name is `-'.
5111 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
5112 the X75 and X100 devices.
5113 (main): If a device has the XT_OPTION flag set and there's exactly
5114 one file argument, pass the driver -xrm and -title options to set
5115 the icon name and window title to the name of the file.
5117 * troff/env.c (environment_switch): If there was an argument but
5118 it wasn't a valid number or name, then pop an environment but
5119 don't give an error message on underflow.
5121 * troff/number.c (start_number): Correct spelling in error message.
5123 * troff/input.c (token::delimiter): Don't print an error message
5126 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
5127 ParseDrawFunction if dw->display_enable is true.
5129 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
5131 * pic/pic.y: Parse text positioning like normal attributes, so as
5132 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
5133 positioning attribute.
5135 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
5137 * tbl/main.c (process_data): When in state START while reading a
5138 text block, don't change to state MIDDLE if c is a newline.
5140 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
5142 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
5143 so as to avoid shadowing parameter.
5145 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
5147 * tbl/table.c (trim_space): Deleted.
5148 (table::add_entry): Don't call trim_space.
5150 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
5152 * VERSION: Change version to 0.6.
5154 * troff/number.c (parse_expr): Make == work.
5156 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
5158 * man/grog.man: New file.
5159 * man/Makefile: Add grog.n to MAN1PAGES.
5160 * etc/grog.sh: New file.
5161 * etc/Makefile: Install grog.sh as grog.
5163 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
5165 * troff/input.c (token::next): Implement \E.
5167 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
5169 * xditview/tmac.X: Change font translations to match tmac.ps.
5171 * troff/input.c (non_empty_name_warning): Don't give a warning if
5172 `\{' terminates the name.
5174 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
5176 * ps/devps/symbol.diff: New file.
5177 * ps/devps/FontMakefile: Mention symbol.diff.
5179 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
5181 * troff/node.c (font_position): Use get_long_name to read the
5184 * troff/env.c (environment_switch): If we get a number that's < 0
5185 or >= NENVIRONMENTS, treat it like a name.
5186 Change NENVIRONMENTS to 10.
5188 * troff/groff.h: Remove definition of FONTS_MAX.
5189 * troff/node.h (class font_family): Make map a pointer instead of
5190 an array. Add a map_size member. Make it a class. Make nm const
5191 and public. Make invalidate_fontno a friend.
5192 * troff/node.c: Define font_table_size. Make font_info a pointer
5193 rather than an array.
5194 (class troff_output_file): Allocate font_position dynamically. Add
5195 nfont_positions member.
5196 (troff_output_file::set_font): Grow font_position if necessary.
5197 (troff_output_file::~troff_output_file): Delete font_position.
5198 (troff_output_file::troff_output_file): Allocate font_position.
5199 (grow_font_table): New function.
5200 (troff_output_file::really_begin_page,
5201 troff_output_file:really_copy_page): Use nfont_positions rather
5203 (mount_font_no_translate, mount_style): Call grow_font_table if
5205 (font_family::font_family): Allocate map.
5206 (font_family::make_definite): Grow map if necessary. Use
5207 font_table_size instead of FONTS_MAX.
5208 (font_family::~font_family): New function.
5209 (invalidate_fontno): Use font_family::map_size.
5210 (get_fontno, env_space_width, env_half_narrow_space_width,
5211 env_narrow_space_width, symbol_fotno, is_good_fontno,
5212 get_bold_fontno, make_glyph_node): Use font_table_size rather than
5214 (next_available_font_position): Never return 0.
5216 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
5218 * ps/tmac.ps: Add font translations for compatibility with dpost.
5220 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
5222 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
5223 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
5224 Move definitions baseline_sep, shift_down, column_sep,
5225 matrix_side_sep into...
5226 * eqn/box.c: Add them to param_table.
5227 * eqn/pbox.h: Add declarations to pbox.h.
5229 * troff/input.c (set_string): Cast value to unsigned char *.
5231 * troff/token.h (process_input_stack): Declare it static before
5232 declaring it a friend.
5234 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
5236 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
5238 * dvi/devdvi/EX: Regenerate.
5240 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
5243 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
5245 * eqn/lex.c: In defaults_table, make definition of `dot' call
5246 `dot_def'. Don't explicitly make it roman. Similarily for other
5249 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
5251 (for_input::get, for_input::peek): Use this.
5252 (do_for): Add by_is_multiplicative argument.
5253 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
5254 Change semantic value of optional_by to be a double plus a flag
5255 saying whethet the by clause is multiplicative.
5257 * eqn/lex.c (get_delimited_text): Remember location of start of
5258 definition. Improve error handling when EOF is encountered.
5260 * lib/font.h: Rename handle_x_command to
5261 handle_unknown_font_command.
5262 * lib/font.c (font::load): Call handle_unknown_font_command for
5263 any unknown command in the font description file. Don't call
5264 handle_x_command. Include the name of the command in the argv.
5265 Improve message for unknown command after kernpairs or charset
5267 * ps/ps.c (ps_font::handle_x_command): Rename to
5268 handle_unknown_font_command. Remove message about `x download'
5269 command. Give error message for wrong number of arguments.
5270 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
5271 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
5272 handle_unknown_font_command. Give an error message for wrong
5273 number of arguments. Rename design_size to designsize.
5274 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
5275 checksum', `designsize' instead of `design_size'.
5277 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
5279 * eqn/*.[chy]: Change underaccent to uaccent.
5281 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
5282 give it the same precedence as ACCENT.
5283 * eqn/other.c (make_underaccent_box): New function.
5284 * eqn/box.h: Declare it.
5285 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
5288 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
5290 * pic/pic.y (reset_all): New function. Called in rule for RESET.
5291 (parse_init): Call reset_all.
5292 (define_variable): When defining scale reset only those
5293 pre-defined variables that are scaled.
5294 (defaults_table): Add `scale' as non-scaled value.
5296 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
5297 together with the text; allow any number of positioning words;
5298 allow center as a positioning word.
5300 * pic/object.c (output::compute_scale): Get picture maximum height
5301 and width from variables called maxpswid and maxpsht.
5302 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
5304 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
5306 * pic/object.c (object_spec::make_text): Multiply textht by number
5309 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
5311 (do_sprintf): New function.
5312 (pic.gperf): Add sprintf token.
5313 (text, sprintf): New rules.
5315 * pic/pic.y: `rand()' with no arguments returns a random number
5318 * pic/pic.y: Allow a bare expression to be an attribute: change
5319 precedences to support this. Change optional_ordinal rule to
5320 optional_ordinal_last to avoid reduce/reduce conflict.
5321 * pic/object.c (object_spec::object_spec): Initialize direction.
5323 * pic/pic.y: Implement ^ operator meaning exponentiation.
5325 * troff/node.h: Add default argument to mount_font.
5326 * troff/node.c (font_position): Read an optional third argument
5327 giving the external_name.
5328 (mount_font): Add optional argument giving the external_name.
5329 (mount_font_not_translate): Have additional argument giving
5330 external name. Use this name to load the font. Pass both names
5331 to font_info::font_info.
5332 (font_info::font_info): Have additional argument giving
5334 (class tfont): New member external_name.
5335 (font_info::get_tfont): Use external name to construct tfont_spec.
5337 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
5339 * eqn/lex.c (init_table): Add argument giving device. Define
5340 name of device to be "1".
5341 (do_ifdef): Counts as true if the argument has been defined with
5343 * eqn/main.c (main): Call init_table with device argument. Make
5344 device local to main.
5345 * eqn/eqn.h: Change declaration of init_table. Remove declaration
5348 * pic/lex.c (get_delimited): Allow text to be delimited by
5349 matching {}s. Don't recognize ending delimiter within a string.
5351 * troff/input.c (get_delim_name): New function.
5352 (token::next): Implement \C.
5354 * lib/font.c (font::load): Grok ---. Add an alias for each
5355 character based on its code.
5356 (font::get_code_width): Deleted.
5357 * lib/font.h (class font): Declare font::number_to_index().
5358 Remove declaration of font::get_code_width.
5359 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
5360 to indices of named characters.
5361 (font::number_to_index): New function.
5362 * troff/input.c (font::number_to_index): New function.
5363 (get_charinfo_by_number, charinfo::get_number,
5364 charinfo::set_number): New functions.
5365 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
5366 (token::process, token::description, token::get_char,
5367 token::add_to_node_list, token::operator==): Handle
5368 TOKEN_NUMBERED_CHAR.
5369 * troff/charinfo.h: Declare get_charinfo_by_number,
5370 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
5372 (charinfo::numbered): New function.
5373 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
5374 * troff/env.h (class environment): Remove declaration of ...
5375 * troff/env.c (environment::make_numbered_char_node): Deleted.
5376 * troff/node.c (make_numbered_node): Deleted.
5377 (class numbered_glyph_node): Remove.
5378 (troff_output_file::put_char_width, troff_output_file::put_char):
5379 Handle numbered chars.
5380 (troff_output_file::numbered_char): Removed.
5381 (tfont::get_code_width): Removed.
5382 (make_glyph_node): Don't search special fonts for numbered
5384 * troff/node.h: Remove declaration of make_numbered_node.
5385 * driver/input.c (do_file): Handle N command.
5386 * driver/printer.h: Add declaration of ...
5387 * driver/printer.c (printer::set_numbered_char): New function.
5388 * dvi/tfmtodit.c (main): Generate unnamed entries.
5389 * ps/devps/afmtodit: Likewise.
5390 * xditview/xtotroff.c (MapFont): Likewise.
5391 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
5393 * tbl/main.c (process_format): If multiple widths are specified
5394 for a column but all the widths are the same, don't give an error
5397 * tbl/table.c (table::do_row): If the current row is all lines and
5398 the stuff doesn't contains a line, mark the top of the row after
5399 printing stuff before the row. If the current row is not all
5400 lines and the stuff doesn't contain a line, don't unnecessarily
5401 mark the top of the row before printing the stuff.
5403 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
5405 * troff/groff.h: Remove MAX_PATH.
5406 * troff/input.c (open_file): Dynamically allocate space for the
5408 (open_mac_file, process_macro_file): Corresponding changes.
5410 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
5412 * troff/node.h (class output_file): Make copy_file pure. Add
5413 vspace method ifdef COLUMN. Add is_printing method.
5414 * troff/node.c: Add class printing_reg. Add class
5415 real_output_file. Derive other output_file classes from
5416 real_output_file; in these classes rename begin_page to
5417 really_begin_page, print_line to really_print_line, copy_file to
5418 really_copy_file, transparent_char to really_transparent_char.
5419 Move output_file::flush to real_output_file. Add printing member
5420 to class output_file.
5421 * troff/div.h: Remove printing member from top_level_diversion.
5422 Add vspace member function to class diversion ifdef COLUMN. Add
5423 some declarations ifdef COLUMN.
5424 * troff/div.c (top_level_diversion::copy_file,
5425 top_level_diversion::transparent_output,
5426 top_level_diversion::output): Don't test printing member before
5428 * troff/input.c: Handle initial variable_space_request ifdef
5430 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
5433 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
5435 * troff/div.c (diversion::need): Make any space forced. If we
5436 sprung a trap, set truncated_space to minus the distance to the
5437 trap and set needed_space to the amount that was needed.
5438 (top_level_diversion::space): A forced space turns no_space_mode
5440 (class constant_vunits_reg): New class.
5441 (init_div_requests): Implement number registers .trunc and .ne
5442 using constant_vunits_reg.
5443 (class truncated_space_reg): Deleted.
5445 * troff/div.h: Don't have a no_space_mode member in diversion.
5446 Instead have it in top_level_diversion.
5447 * troff/div.c (diversion::diversion): Don't initialize
5449 (top_level_diversion::top_level_diversion): Initialize
5451 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
5452 (macro_diversion::output): Don't clear no_space_mode.
5454 * troff/input.c (diverted_space_node::reread): Don't call
5455 environment::do_break. In fill mode, act like a blank line.
5456 (diverted_copy_file_node::reread): Don't call
5457 environment::do_break.
5459 * troff/div.c (blank_line): New function.
5460 * troff/div.h: Declare it.
5461 * troff/input.c (process_input_stack): Call it.
5463 * troff/div.c (truncated_space_reg::get_string): New function.
5464 (init_div_requests): Bind to .trunc.
5465 (space_request, top_level_diversion::space,
5466 top_level_diversion::output, macro_diversion::space,
5467 macro_diversion::output): Update truncated_space.
5468 (macro_diversion::output): Redo calculations when trap sprung.
5469 (macro_diversion::output, macro_diversion::space): No need for
5472 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
5473 after truncating post line spacing.
5475 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
5477 * ps/devps/prologue (MF, SF): Make them work even if setfont is
5478 defined as a procedure rather than as an operator.
5480 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
5482 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
5484 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
5486 * troff/div.c (top_level_diversion::output): Merge
5487 output_file::print_line and output_file::end_of_line member
5489 * troff/div.h (class output_file):
5490 * troff/node.c (troff_output_file::print_line,
5491 troff_output_file::end_of_line, output_file::end_of_line,
5492 ascii_output_file::print_line, suppress_output_file::print_line):
5493 Corresponding changes.
5495 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
5497 * troff/input.c (token::next): Don't give a warning for `\.'.
5499 * troff/env.c (environment::get_center_lines): New function.
5500 (init_env_requests): Bind number register .ce to it.
5501 * troff/env.h: Declare it.
5502 * tbl/table.c (table::init_output): Define reset macro to restore
5503 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
5505 (table::print): If center option not given, then imply center
5506 option if SAVED_CENTER_REG > 0.
5508 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
5510 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
5511 Troff.ps from DOWNLOAD.
5513 * troff/Makefile: Change comment in DEFINES to avoid confusing
5516 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
5517 code. Don't try to catch errors with stopped.
5518 (check_line_lengths): New function.
5519 * ps/devps/prologue (EXEC): Deleted.
5520 (EBEGIN, EEND): New procedures.
5522 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
5524 * troff/input.c: Include request.h before node.h.
5525 * troff/node.c: Likewise.
5526 * troff/env.c: Likewise.
5527 * troff/div.c: Likewise.
5528 * troff/node.h (class special_node): Store argument as a macro
5529 rather than a char *.
5530 * troff/node.c (special_node::special_node, special_node::copy):
5532 (special_node::~special_node): Deleted.
5533 (special_node::tprint): Deleted.
5534 (special_node::tprint_start, special_node::tprint_end,
5535 special_node::tprint_char): New functions.
5536 (troff_output_file::special): Deleted.
5537 (troff_output_file::start_special, troff_output_file::end_special,
5538 troff_output_file::special_char): New functions.
5539 * troff/input.c (special_node::tprint): New function.
5540 (do_special): Use macro not char *.
5541 (do_transparent_macro): Deleted.
5542 (token::next): Don't call do_transparent_macro.
5544 * troff/input.c (token::next): Add 'Y' case.
5545 (do_transparent_macro): New function.
5546 * troff/node.c (troff_output_file::special): Handle newlines with
5547 argument using new continuation convention.
5548 * driver/input.c (get_string): Cope with continuation convention.
5549 (do_file): Don't call skip_line after calling get_string(1).
5550 * ps/ps.c (ps_printer::special, ps_printer::do_import,
5551 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
5553 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
5556 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
5558 * troff/input.c (asciify): By default, illegal input characters
5559 should return empty string.
5561 * troff/input.c (copy_file): Handle first page transition like title.
5562 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
5564 * troff/input.c (token::next): Improve error message for EOF after
5566 (input_char_description): New function.
5567 (get_char_for_escape_name): Use input_char_description.
5568 (token::next): Warn about unrecognized escape sequences.
5569 (warning_table): Add WARN_ESCAPE.
5570 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
5573 * troff/token.h: Remove declaration of process_input_stack.
5575 * troff/input.c: Remove declaration of init_hyphen_requests.
5576 * troff/request.h: Correct spelling in declaration of same.
5578 * troff/input.c (token::next): Check whether escape_char is 0.
5580 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
5582 * groff.c (main, usage, help): Implement -P and -L options.
5583 * groff.sh: Likewise.
5585 * troff/input.c (token::next): Use some gotos to avoid code
5588 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
5589 Avoid calling symbol::symbol if name empty.
5591 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
5593 * troff/input.c (init_input_requests): Make \n(.x return the major
5594 version number and \n(.y return the minor version number.
5595 * troff/Makefile: Construct file majorminor.c defining
5596 major_version and minor_version automatically from ../VERSION.
5598 * troff/node.c (class glyph_node): Make operator new and operator
5600 (class ligature_node): Similarily.
5602 * troff/input.c (operator==(const macro &, const macro &)): New
5604 (non_interpreted_node::same): Use this.
5605 (string_iterator::string_iterator): Make macro& argument const.
5607 * troff/input.c (input_iterator::get): New function. Don't make
5608 asciify_macro or class non_interpreted_node friends of class
5610 (non_interpreted_node::interpret): Use input_iterator::get.
5611 (asciify_macro): Likewise.
5613 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
5614 ~non_interpreted_node): Deleted.
5615 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
5618 * troff/symbol.h: Make all symbol member functions const.
5620 * lib/strtol.c: New file.
5621 * lib/Makefile: Add strtol.c.
5622 * Makefile: Define STRTOL as strtol.o to include strtol in
5625 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
5627 * pic/troff.c (troff_output::simple_circle): Divide by scale.
5629 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
5631 * troff/input.c (do_special): Use input_level.
5633 * troff/token.h (TOKEN_BACKSPACE): New token.
5634 (token::backspace): New function.
5635 * troff/input.c (token::description, token::next, token::process):
5636 Grok TOKEN_BACKSPACE.
5637 (do_special): Turn TOKEN_BACKSPACE back into \b.
5639 * troff/token.h (token::leader): New function.
5640 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
5642 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
5644 * troff/input.c (do_special): Use token::description in error
5647 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
5649 * troff/input.c (decode_args): Combine quoted and
5650 quote_input_level variables. Make it a for (;;) loop.
5652 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
5654 * troff/input.c (read_long_escape_name): The test for whether to
5655 expand buffer was off by 1.
5656 (read_string): Similarily.
5658 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
5660 * troff/input.c: Use `const int' rather than `static const int'.
5662 * troff/div.h (diversion::copy_file): Declare as pure virtual.
5663 (macro_diversion::copy_file): New function.
5664 * troff/node.h: New class diverted_copy_file_node.
5665 * troff/node.c: Implement it.
5666 * troff/input.c (copy_file): Use diversion::copy_file. Handle
5667 first page transition by pushing a diverted_copy_file_node.
5668 * troff/input.c (token::next, process_input_stack): Don't handle
5671 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
5673 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
5674 whether space widths need adjusting.
5676 * troff/charinfo.h: Generalize translated_to_space to
5677 special_translation so as to allow translation to \&.
5678 * troff/input.c (translate): Allow translation to \&.
5679 (charinfo::*): Corresponding changes.
5680 * troff/node.c (make_node, node::add_char): Corresponding changes.
5681 * troff/node.h (dummy_node::dummy_node): Allow optional first
5684 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
5685 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
5687 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
5688 TOKEN_REQUEST with an argument of TITLE_REQUEST.
5689 (token::process): Grok that.
5690 * troff/input.c (copy_file): Handle first page transition like
5691 title by pushing a COPY_FILE_REQUEST cookie.
5692 (token::next, process_input_stack): Grok that.
5693 * troff/node.h (output_file::copy_file): Add x and y arguments.
5695 * troff/div.c (top_level_diversion::copy_file): Supply them.
5696 * troff/node.c (troff_output_file::copy_file): Add x and y
5697 arguments; moveto specified position. Invalidate font_position
5698 array after copying file.
5699 (output_file::copy_file): New function.
5700 (suppressed_output_file::copy_file, ascii_output::copy_file):
5702 * troff/input.c (transparent_file): New function.
5703 (init_input_requests): Bind to "trf".
5704 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
5705 (process_input_stack): Likewise.
5707 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
5709 * troff/node.c (init_node_requests): New number registers .kern
5710 pointing to global_kern_mode, and .lg pointing to
5711 global_ligature_mode.
5713 * troff/node.c (ligature): Don't change it if we get a bad
5716 * troff/input.c (do_define_string): Don't strip tabs.
5718 * troff/input.c (asciify_macro): Make the string_iterator auto.
5720 * troff/node.c (init_font_requests): Rename to...
5721 (init_node_requests):
5722 * troff/node.h: Change declaration.
5723 * troff/input.c (main): Change call.
5725 * troff/input.c (node::reread, diverted_space_node::reread): New
5727 (process_input_stack): Call reread rather than
5728 get_diverted_space_node.
5729 * troff/node.c (node::get_diverted_space_node,
5730 diverted_space_node::get_diverted_space_node): Removed.
5731 * troff/node.h: Declare reread methods instead of
5732 get_diverted_space_node methods. Make `n' member private.
5733 * troff/input.c: (token::diverted_space): Removed.
5734 * troff/token.h: Removed declaration.
5737 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
5739 * eqn/script.c (script_box::compute_metrics): Don't let
5740 SUP_RAISE_FORMAT become negative.
5742 * tbl/table.c (table::do_row): Entries that don't end in the
5743 this row shouldn't make the row non-blank.
5745 * tbl/table.c (table::make_columns_equal): Only set the width of
5746 columns which are marked as equal.
5748 * tbl/main.c (process_data): Before issuing excess data error,
5749 if last character was a newline unget it; then get it again after
5750 the error. Also include the contents of the entry in the message.
5752 * groff.c: New file.
5753 * Makefile: Build groff from groff.c. Make it possible to use
5754 either groff.sh or groff.c as groff.
5755 * Makefile.bd: Similarily.
5757 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
5759 * groff.sh: Don't delay expansion of $@ in assignment to files.
5760 Remove occurrences of \".
5762 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
5764 * all Makefiles: Simplify and rearrange.
5766 * Makefile: Handle fmod like malloc.
5767 * lib/Makefile: Similarily.
5768 * lib/fmod.c: Remove #ifdef NEED_FMOD.
5770 * Makefile: Rename OPTIMISE to OPTIMIZE.
5772 * groff.sh: Remove assignment to PATH.
5773 * Makefile: Remove SHPATH variable.
5774 * Makefile.bd: Similarily.
5776 * groff.sh: Add -V option to print the pipeline instead of
5779 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
5781 * lib/font.c: Split off file searching into ...
5782 * lib/fontfile.c: New file.
5784 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
5786 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
5788 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
5789 Also change misleading comment.
5790 (table::do_vspan): Change similarily misleading comment.
5791 * tbl/main.c (process_data): A format row with an explicit `s'
5792 uses up a data line, even if all the other columns are `_' or `='.
5794 * troff/input.c (token::description): Fix description of
5795 TOKEN_DUMMY and TOKEN_EMPTY.
5797 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
5799 * groff.sh: Fix description of -Z in help message.
5801 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
5803 * pic/object.c (object_spec::make_object): Allow negative and zero
5805 * pic/pic.y: Give linethick default value of -1.0.
5806 * pic/troff.c (troff_output::troff_output): Initialize
5807 last_line_thickness to BAD_THICKNESS.
5808 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
5809 (troff_output::line_thickness): Canonicalize negative thicknesses
5810 to RELATIVE_THICKNESS.
5811 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
5812 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
5814 (tex_output::start_picture): Set pen_size to -2.0.
5816 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
5817 0, then use 0 linewidth.
5818 (ps_printer::ps_printer): Initialize line_thickness to -1.
5820 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
5822 * ps/devps/symbolchars: Remove `or'.
5823 * ps/tmac.ps: Implement \(or with .char.
5825 * ps/devps/symbolchars: Move most characters into textmap.
5826 * ps/devps/textmap: Add names for troff bracket characters. Remove
5829 * ps/devps/TSymbol.ps: Removed.
5830 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
5831 * ps/tmac.ps: Do with .char what TSymbol did.
5832 * ps/devps/download: Remove TSymbol.
5834 * ps/devps/T: Removed.
5835 * ps/devps/Troff.ps: Removed.
5836 * ps/devps/Troff.afm: Removed.
5837 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
5838 * ps/devps/download: Remove Troff.
5839 * ps/devps/FontMakefile: Remove T target.
5840 * ps/devps/DESC-A4: Remove T from font list.
5841 * ps/devps/DESC-letter: Likewise.
5843 * troff/input.c (macro_to_node): Rename to ...
5844 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
5845 character's definition while processing it.
5846 * troff/node.c (node::add_char, make_node): Change calls to
5847 macro_to_node accordingly.
5849 * troff/input.c (token::next): Translate \_ to \(ul.
5851 * tty/devascii/R.proto: Add `|'.
5852 * tty/devlatin1/R.proto: Likewise.
5854 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
5856 * man: Put the version number in all the man pages.
5858 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
5860 * Makefile.bd: New file.
5861 * README.bd: New file.
5863 * VERSION: New file.
5864 * lib/version.c: Removed.
5865 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
5868 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
5869 environment variable.
5871 * all Makefiles: Split install target into install.bin for
5872 binaries, and install.nobin for everything else.
5873 * Makefile: Add bindist target.
5875 * man/afmtodit.man: New file.
5876 * man/Makefile: Add afmtodit.n to MAN1PAGES.
5877 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
5879 * ps/Makefile: Pass BINDIR to make install in devps.
5881 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
5882 the space character.
5884 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
5886 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
5888 * ps/ps.c: Redo font downloading.
5889 * ps/devps/download: New file.
5890 * ps/devps/Makefile: Add download to DEVICEFILES.
5891 * ps/devps/afmtodit: Remove -d option.
5892 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
5893 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
5894 * ps/devps/zapfdr.ps: Likewise.
5895 * ps/devps/TSymbol.ps: Likewise.
5897 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
5899 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
5901 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
5903 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
5904 then strip the first line if it starts with %.
5905 * Makefile: Add a comment about this.
5907 * man/tfmtodit.man: New file.
5908 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
5909 * dvi/Makefile: Install tfmtodit in BINDIR.
5911 * dvi/tfmtodit.c (usage): Mention -v option.
5913 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
5915 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
5916 * troff/node.c (troff_output_file::transparent_char): Don't call
5919 * eqn: Add check_tabs method to most box classes.
5920 * eqn/box.c (box::top_level): Call check_tabs.
5922 * eqn/script.c (script_box::output): Use \Z.
5923 * eqn/limit.c (limit_box::output): Use \Z.
5925 * eqn/box.c (box::top_level): Use itoa.
5927 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
5929 * dvi/tmac.dvi: Add font translations for CR, C, TT.
5930 * dvi/devdvi/Makefile: Don't make links to CW.
5932 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
5934 * xditview/tmac.X: Likewise.
5936 * troff/node.c: Add font translation feature.
5937 (get_font_translation): New function.
5938 (symbol_fontno): Translate the font name.
5939 (mount_font_no_translate): Rename to mount_font to this.
5940 (mount_font): New function.
5941 (font_family::make_definite): Call mount_font_no_translate instead
5943 (mount_style): Translate the font name.
5944 (font_translate): New function.
5945 (init_font_requests): Bind "ftr" to font_translate.
5947 * ps/devps/prologue (SN): New procedure that rounds a position to
5948 the nearest (pixel + (.25,.25)).
5949 (DL): Use SN to round endpoints.
5951 * lib/version.c: Changed version to 0.5.
5953 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
5955 * Makefile: Move definition of PAGE to the very beginning, so that
5956 people are less likely to miss it.
5958 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
5960 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
5962 * troff/env.c (environment::choose_breakpoint): Make `can't find
5963 breakpoint' error a warning of type WARN_BREAK. Change message to
5965 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
5967 * troff/input.c: Add WARN_BREAK to warning_table. Include
5968 WARN_BREAK in DEFAULT_WARNING_MASK.
5970 * tty/tmac.tty: Add definition of \(+-.
5972 * groff.sh: Remove `--' option to set command.
5974 * dvi/devdvi/texsy.map: Remove duplicate md entry.
5976 * ps/devps/eqnchar: Better definition of cdot using md.
5977 * dvi/devdvi/eqnchar: Likewise.
5978 * xditview/devX100/eqnchar: Likewise.
5979 * xditview/devX75/eqnchar: Likewise.
5980 * eqn/lex.c: Add definition of cdot.
5982 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
5984 * troff/input.c (get_optional_char): New function.
5985 * troff/input.c (set_page_character): Use get_optional_char(),
5986 rather than has_arg() and tok.get_char(1).
5987 * troff/env.c (tab_character, leader_character, hyphen_char,
5988 field_characters): Likewise.
5989 (margin_character): Likewise. Also always delete the
5990 margin_character_node.
5992 * troff/input.c (token::get_char): Use token::description.
5994 * troff/input.c (has_arg): Don't skip over tab and \}.
5995 * troff/number.c (start_number): Give a warning if the number
5996 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
5998 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
6000 * troff/input.c (empty_name_warning, non_empty_name_warning): New
6002 (get_name, get_long_name): Use these. Rename `warn' argument to
6005 * troff/node.c (get_fontno): Test that the symbol is not null.
6007 * troff/input.c (token::description): New function.
6008 * troff/number.c (parse_term): Use token::description in `numeric
6009 expression expected' message.
6010 * troff/groff.h: Add WARN_MISSING.
6011 * troff/number.c (start_number): New function.
6012 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
6013 get_incr_number): Use start_number().
6014 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
6016 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
6017 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
6019 * troff/input.c (token::get_char): Use WARN_MISSING.
6020 * troff/input.c (token::delimiter): Use token::description.
6021 * troff/env.c (environment_switch): Back out Aug 3 change.
6022 * troff/input.c (has_arg): Skip over \}s and tabs but give a
6024 * troff/token.h (token::tab): New function.
6025 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
6026 * troff/reg.c (alter_format): Likewise.
6027 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
6029 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
6031 * troff (most files): Redo warnings. Divide warnings into various
6032 categories; warning() has an additional first argument indicating
6033 the category it falls into.
6034 * troff/input.c (main): -w now takes an argument. New option -W.
6035 (enable_warning, disable_warning): New functions.
6037 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
6038 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
6040 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
6042 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
6043 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
6044 * xditview/devX75/eqnchar: Likewise.
6045 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
6047 * eqn/other.c: When bar or over applies to a single character
6048 don't produce an overline_box or an underline_box. Instead produce
6049 an accent_box or an underaccent_box, with the accent a line
6050 whose width is accent_width. New classes underaccent_box,
6051 overline_char_box and underline_char_box.
6052 * eqn/box.h: Move overline_box, underline_box, accent_box class
6053 declarations into eqn/other.c. Add declarations of
6054 make_underline_box, make_overline_box, make_accent_box.
6055 * eqn/eqn.y: Call make_overline_box, make_underline_box
6056 make_accent_box instead of constructors.
6057 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
6059 * eqn/other.c: Add accent_box::~accent_box.
6060 * eqn/box.h: Declare it.
6062 * groff.sh: With -Tps, use eqn -D.
6064 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
6066 (underline_box::output): Similarily.
6067 (accent_box::output): Use \Z.
6069 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
6072 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
6074 * troff/div.c (top_level_diversion::transparent_output(unsigned
6075 char)): Use asciify.
6076 * troff/input.c (asciify): Don't make it static.
6077 * troff/token.h (asciify): Declare it.
6079 * troff/input.c (get_name, get_long_name, token::get_char,
6080 token::delimiter): Add an extra default argument which says
6081 whether a warning should be printed.
6082 * troff: Pass a non-zero argument to one of these rather than
6083 printing a warning directly.
6085 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
6087 * troff: Consistently use symbol::is_null.
6089 * troff/dictionary.h: Move some inline functions into
6092 * troff/request.h: Move inline functions into input.c.
6093 (request_or_macro::invoke): Make it pure.
6095 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
6096 * troff/input.c (init_input_requests): Use class constant_int_reg.
6097 (class compatible_reg): Deleted.
6098 * troff/div.c (init_div_requests): Use class constant_int_reg.
6099 (class last_post_line_extra_space_reg): Deleted.
6101 * troff/env.c (tab_character): Don't change the tab character if
6102 we get an invalid argument.
6103 (hyphen_char): Similarily.
6105 * troff/reg.c (alter_format): Check that nm is not null.
6107 * Makefile, groff.sh: Make it possible to customize the commands
6108 used for printing PostScript and dvi files. Also make it possible
6109 to customize the path used by groff.sh.
6111 * eqn/eqn.y: Make `left' right associative.
6113 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
6115 * pic/pic.h: Added definition of M_SQRT2 for those systems that
6118 * pic/pic.h: Removed definition of INT_MAX.
6120 * troff/node.c (italic_corrected_node::vertical_extent): Omit
6123 * troff/input.c (token::next): Handle \R like \n.
6125 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
6127 * ps/tmac.pc (PSPIC): Simplify.
6129 * troff/env.c (tab_stops::to_string):
6130 * pic/pic.y (object_type_name):
6131 * pic/troff.c (simple_output::line):
6132 * pic/tex.c (tex_output::spline):
6133 * pic/object.c (object_spec::make_object):
6134 * tbl/main.c (process_data): Add cases to switch statements to
6135 avoid cfront warnings. (Some of these are spurious, since the
6136 switch already has a default case.)
6138 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
6139 `ps-'. Don't test systat; instead check number of arguments to
6142 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
6144 * macros/tmac.e: Do not decrease the page offset by 0.5i.
6146 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
6147 Unlink the file as soon as we have opened it, so that we don't
6148 have to bother with signal handlers.
6150 (fatal_error_exit): Deleted.
6151 (main): Don't call signal.
6153 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
6155 * dvi/devdvi/Makefile: Use the -k option with S and MI.
6157 * pic/pic.y: If there is a label, or an nth construction before
6158 the first `.' in the argument to `with', ignore it and generate a
6160 * pic/lex.c (lex_warning): New function.
6162 * tbl/table.c (table::init_output): In section keep and release
6163 macro, use 0 indent when diverting and the correct indent when
6166 * troff/input.c (interpolate_number_format): Do not interpolate
6167 anything if the number register is not defined.
6169 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
6171 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
6173 * ps/devps/prologue (PICTURE): Set components of graphics state to
6174 their default values.
6176 * ps/devps/text.enc: Add trademark
6177 * ps/devps/textmap: Add names for club, spade, heart, diamond,
6178 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
6179 * ps/devps/symbolchars: Add names for summation and product.
6181 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
6182 suchthat. Add pp. Add upper-case letters.
6184 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
6185 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
6188 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
6189 rA (right angle bracket) to ra. Introduce names for double-headed
6190 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
6191 * ps/devps/textmap: Likewise for ps device.
6192 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
6193 * tty/devascii/R.proto: Rename lA to la and rA to ra.
6194 * tty/devascii/R.proto: Likewise.
6195 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
6197 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
6199 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
6201 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
6204 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
6206 * troff/div.c (when_request): Use symbol::is_null rather than
6207 has_arg to determine whether we have an argument.
6208 (change_trap): Remove the trap if we get an invalid number. Give
6209 an error if we don't get at least the macro name.
6210 (diversion_trap): Remove trap if we get an invalid name or number.
6212 * troff/env.c (environment_switch): Pop if we get an invalid
6213 symbol or numeric expression.
6215 * troff/input.c (do_define_macro): If EOF is encoutered while
6216 defining the macro, do tok.next() before returning.
6218 * troff/token.h (has_arg): Move definition from here, to ...
6219 * troff/input.c (has_arg): ... here
6221 * troff/env.c (space_size): Do nothing if we get an invalid argument.
6222 * troff/input.c (shift): Likewise.
6224 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
6227 * pic/troff.c (troff_output::start_picture): Comment out calls to
6230 * eqn/main.c (do_file): Subtract 1 from current_lineno if
6231 interpret_lf_args succeeds.
6233 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
6234 \\. This avoids problems with \$N.
6236 * groff.sh: Pass -C to preprocessors.
6238 * lib/lf.c (interpret_lf_args): Be more flexible.
6240 * tbl/main.c (main): Add -C option.
6241 (table_input::get): Do not recognize TE if followed by character
6242 other than a space or newline unless -C option given.
6243 (process_input_file): Likewise for lf, TS.
6244 (process_data): Likewise for lf in text blocks.
6246 * eqn/main.c (main): Add -C option.
6247 (do_file): Don't recognize EQ, EN or lf if followed by character
6248 other than space or newline unless -C option given.
6249 * eqn/lex.c (file_input::read_line): Similarily.
6250 * eqn/eqn.h: Declare compatible_flag.
6252 * etc/soelim.c (main): Add -C option.
6253 (interpret_lf_args): Use version in libgroff.
6256 * pic/main.c (main): Add -C option, which sets compatible_flag.
6257 (top_input::get), (top_input::peek): If -C option not given,
6258 do not recognize .PS/.PE/.PF/.lf if followed by a character
6259 other than space or newline.
6260 * pic/lex.c (file_input::read_line): Similarily.
6261 * pic/pic.h: Add declaration of compatible_flag.
6263 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
6265 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
6267 * troff/node.c, troff/node.h: Add `asciify' methods to classes
6268 derived from node. New class space_char_hmotion_node.
6269 * troff/input.c (asciify_macro): New function.
6270 * troff/input.c (init_input_requests): New request `asciify' bound
6272 * macros/mm.diff: New file.
6273 * Makefile: In install.mm target use `patch' to apply
6276 * troff/input.c (macro::print_size): Just print the size in bytes.
6278 * troff/div.c (return_request): Correct the argument
6281 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
6283 * troff/node.h (class composite_node): Add sz member.
6284 * troff/node.c (composite_node::size): Return sz.
6285 * troff/input.c (macro_to_node): Use the initial size in the
6286 environment as the size of the composite_node.
6288 * troff/node.c (node::zero_width_tprint): Provide a reasonable
6291 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
6293 * troff/div.c (change_trap): If we get a bad number expression,
6296 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
6298 * lib/matherr.c (matherr): Define this only if math.h defines
6301 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
6303 * troff/div.c (macro_diversion::distance_to_next_trap): If there
6304 no diversion trap return vunits(INT_MAX - vresolution).
6306 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
6308 * troff/input.c (do_zero_width): New implementation that doesn't
6309 use a temporary environment. Use instead:
6310 (token::add_to_node_list): New function.
6311 * troff/env.c (environment::get_prev_char_height),
6312 (environment::get_prev_char_height),
6313 (environment::get_prev_char_skew): New functions.
6314 (environment::get_prev_char): New function.
6315 (environment::get_prev_char_width): Change to use get_prev_char.
6316 (init_env_request): Implement new registers .cht, .cdp, .csk.
6317 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
6318 \Z being processed in a separate environment.
6320 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
6322 * tbl/table.c: Removed TABLE_BOTTOM_REG.
6324 * tbl/table.c (table::init_output): In the section release macro,
6325 give a warning message if the section won't fit on one page.
6327 * tbl/table.c (table::do_top): Emit table keep only if table is
6329 (table::do_bottom): Likewise for table release.
6330 (table::table), (table::add_vertical_rule): Remove reference to
6332 * tbl/table.h: Remove keep member.
6334 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
6335 SECTION_RELEASE_MACRO, if there's not enough space before the next
6336 trap to output the diversion, call T# ourselves, set
6337 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
6338 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
6339 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
6340 vertical position and return to it before turning traps on again.
6342 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
6344 * troff/node.c, troff/node.h: In classes derived from node,
6345 replace prev_char_width method by last_char_node method.
6346 * troff/env.c (environment::get_prev_char_width): Use
6347 node::last_char_node rather than node::get_prev_char_width.
6349 * Makefile: Added comment about -fno-inline on 68030-based
6352 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
6353 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
6354 expressions using sizeof to int.
6355 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
6357 * macros/tmac.e (TS): Don't move @f back past the current
6360 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
6362 * ps/ps.c (main): Buffer stderr.
6363 * dvi/dvi.c (main): Likewise.
6364 * tty/tty.c (main): Likewise.
6366 * ps/ps.c (ps_printer::do_import): Improve error handling.
6368 * troff/input.c (abort_request): Use asciify.
6370 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
6371 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
6372 type of first argument int rather than char. This works around a
6373 bug on the 68030 based Apollo using g++ 1.37.1.
6375 * tbl/table.h (class table): Add `keep' member.
6376 * tbl/table.c (table::table): Initialize `keep'.
6377 (table::add_vertical_rule): Set `keep' to 1.
6378 (table::do_top): Only emit table keep macro is `keep' is non-zero.
6379 (table::do_bottom): Likewise for table release macro.
6380 (table::do_row): Emit section keep macro even if the row is 0.
6382 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
6384 * macros/tmac.e (@C): Preserve the font family across the change
6387 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
6389 * lib/font.c: Initialize font::hor and font::vert to 1.
6390 (font::load_desc): Check the values of font::hor and font::vert.
6392 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
6393 be included in a C compilation.
6394 (iftoa): Use INT_DIGITS. Include lib.h.
6396 (as_string): Likewise.
6397 * tbl/table.c: Removed definition of INT_DIGITS.
6398 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
6399 * troff/input.c (input_input_requests): Likewise.
6400 * ps/ps.c (make_encoding_name): Likewise.
6401 (ps_printer::set_style): Likewise.
6402 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
6404 * tty/devascii/R.proto: Map fm onto '.
6405 * tty/devlatin1/R.proto: Likewise.
6407 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
6409 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
6410 argument to \w is at a different input level.
6412 * tbl/table.c (table::init_output): Define a new macro
6413 REPEATED_VPT_MACRO, like vpt but if in a diversion also
6414 transparently outputs itself.
6415 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
6417 (table::do_row): Likewise.
6419 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
6420 TRANSPARENT_STRING_NAME.
6422 * tbl/table.c (table::init_output): In the table release macro
6423 print an error message and don't produce any output if after
6424 issuing the need request the table still will not fit. Also
6425 remove the diversion after bringing it back.
6427 * tbl/table.c (table::init_output): Define a new macro
6428 REPEATED_MARK_MACRO, like mk but if in a diversion also
6429 transparently outputs itself.
6430 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
6431 is necessary because .TH might not call .T#.
6432 (table::do_top): Likewise TOP_REG.
6433 (table::define_bottom_macro): If TOP_REG is no longer valid, use
6434 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
6435 table header might contain just the two top rules.
6437 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
6439 * troff/div.c: Implement new request `ptr' to print all traps.
6441 * troff/env.c (init_env_requests): Implement `.tabs' reg with
6442 init_string_env_reg.
6443 * troff/env.c (class tab_reg): Deleted.
6445 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
6447 * troff/div.c: New number register .pn returns the number of the
6448 next page as set by the pn request.
6450 * macros/tmac.an: Redid headers and footers. Number each manual
6451 entry starting from 1 unless \nC is > 0, like Sun. Added an
6452 optional 5th argument to .TH which specifies the manual name and
6453 appears in the center of the header. Understand the X, P and D
6456 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
6458 * troff/env.c (init_env_requests): New number register `.lt' to
6459 return the title length.
6461 * troff/node.h (class transparent_dummy_node): New class.
6462 * troff/node.c (class transparent_dummy_node): Provide member
6464 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
6467 * troff/input.c (token::next): New escape sequence \).
6468 * troff/input.c (get_copy): Recognize \) in copy mode.
6470 * troff/input.c (input_stack::clear): New function.
6471 * troff/input.c (exit_request): Use input_stack::clear.
6473 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
6474 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
6476 * troff/env.c: Move set_page_character to input.c. Move
6477 page_character to input.c also.
6478 * troff/env.c (title): Split off the reading of the parts of the
6479 title into read_title_parts.
6480 * troff/input.c (read_title_parts): New function. Check the
6481 input_level when testing whether a token matches the delimiter.
6483 * troff/input.c (exit_request): New function.
6484 * troff/input.c (init_input_requests): Bind ex request to
6485 exit_request rather than exit_groff.
6487 * troff/input.c (exit_groff): Call tok.next() before
6488 process_input_stack().
6490 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
6492 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
6493 * troff/env.h: ditto.
6494 * troff/input.c: ditto.
6496 * troff/env.c (environment::is_empty): Test pending_lines.
6498 * troff/env.c (environment::have_pending_lines): Removed.
6500 * troff/input.c: Add request to flush pending lines from the
6503 * troff/env.c, troff/env.h: Add automatic widow control feature.
6505 * troff/input.c (exit_groff): Do process_input_stack() after
6506 do_break() but before setting exit_flag to 2.
6508 * troff/input.c: Remove FLUSH_PENDING_LINES and
6509 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
6510 environment after END_TRAP token seen, but only if there aren't
6511 any more traps still unfinished.
6512 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
6514 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
6516 * troff/env.c: Rename the `retain_size' member of class
6517 pending_output_line to `no_fill'.
6519 * troff/env.c (title): When the line is output, make the
6520 retain_size argument !fill.
6522 * troff/node.h: Add `hyphenated' member to struct breakpoint.
6523 * troff/node.c (space_node::get_breakpoints),
6524 (dbreak_node::get_breakpoints): Fill this in.
6525 * troff/env.c: Allow specification of maximum number of
6526 consecutive hyphenated lines.
6528 * troff/env.c (environment::is_empty): Add test for !current_tab.
6530 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
6532 * troff/env.c (environment::hyphenate_line): Don't completely give
6533 up if the word is not to be hyphenated; continue so that breaks
6534 can be made at break_char_node's.
6536 * lib/lib.h: Only define INT_MAX if it's not already defined;
6537 undef INT_MIN if it's already defined.
6539 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
6541 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
6542 This works around a bug in AT&T C++ 2.0 used with an ANSI C
6545 * macros/tmac.an (an-header): Set no-space mode.
6547 * macros/tmac.an (TH): Start a new page if necessary.
6549 * Started using ChangeLog at version 0.4.
6552 version-control: never