1 2001-08-18 Sebastian Krahmer <krahmer@suse.de>
3 * src/preproc/pic/pic.y (format_number): Use do_sprintf().
4 (do_sprintf): Use snprintf().
6 2001-08-18 Werner LEMBERG <wl@gnu.org>
8 * src/libs/snprintf/*: Added an snprintf module written by Mark
10 * src/libs/libgroff/Makefile.sub: Updated.
11 * configure.ac: Add test for snprintf().
12 * Makefile.in: Updated.
13 * configure: Regenerated.
15 * src/preproc/html/pre-html.cc (make_message): Reactivate code which
18 2001-08-14 Ruslan Ermilov <ru@FreeBSD.org>
20 * tmac/doc.tmac (Ex): New implementation.
21 * tmac/doc-common, tmac/groff_tmac.man: Updated.
23 2001-08-13 Ruslan Ermilov <ru@FreeBSD.org>
25 * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
27 * tmac/groff_tmac.man: Updated.
29 2001-08-13 Werner LEMBERG <wl@gnu.org>
31 * src/preproc/tbl/tbl.man: Minor documentation update.
33 2001-08-13 John David Anglin <dave@hiauly1.hia.nrc.ca>
35 * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
36 * configure.ac: Add declaration test for gettimeofday().
37 * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
38 * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
39 * configure: Regenerated.
41 2001-08-11 Werner LEMBERG <wl@gnu.org>
43 * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
44 * configure.ac: Add declaration test for strcasecmp().
45 * Makefile.in: Updated.
46 * configure: Regenerated.
47 * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
48 this is necessary because groff's mkstemp.cc is C++.
49 Add declaration conditionally for strcasecmp().
51 2001-08-10 Werner LEMBERG <wl@gnu.org>
53 Intergrated pic2graph, contributed by Eric S. Raymond.
55 * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
57 * Makefile.in, NEWS: Updated.
59 * src/preproc/tbl/tbl.man: Revised.
61 2001-08-09 Eric S. Raymond <esr@thyrsus.com>
63 * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
65 2001-08-09 Werner LEMBERG <wl@gnu.org>
67 * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
70 2001-08-08 Paul Eggert <eggert@twinsun.com>
72 * Makefile.sub (configure): Depend on configure.ac, not
74 * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
76 2001-08-07 Werner LEMBERG <wl@gnu.org>
78 * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
81 2001-08-06 Werner LEMBERG <wl@gnu.org>
83 * src/roff/troff/troff.man: Improve documentation of -E option.
85 2001-07-28 Ralph Corderoy <ralph@inputplus.demon.co.uk>
87 * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
90 2001-07-27 Werner LEMBERG <wl@gnu.org>
92 * src/preproc/refer/refer.cc: Undo last change.
93 * src/devices/grohtml/post-html.cc: Ditto.
95 2001-07-26 Werner LEMBERG <wl@gnu.org>
97 * contrib/mm/groff_mm.man: Start always a new line after end of
98 sentence. Add some compatibility info to the HF variable.
100 * src/preproc/refer/refer.cc: Include `lib.h'.
101 * src/devices/grohtml/post-html.cc: Ditto.
103 2001-07-26 Larry Jones <larry.jones@sdrc.com>
105 * contrib/mm/m.tmac: Fix initialization of Hps1 and Hps2.
107 2001-07-25 Gaius Mulley <gaius@glam.ac.uk>
109 * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
110 * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
111 * Makefile.in: Comment updated.
112 * configure: Regenerated.
114 2001-07-25 Werner LEMBERG <wl@gnu.org>
116 * src/preproc/pic/pic.cc: Removed.
117 * src/preproc/pic/pic_tab.h: Removed.
118 * src/preproc/refer/label.cc: Removed.
120 * doc/Makefile (.ms.html): Don't use a file name extension in
121 argument to grohtml's -I option.
122 * Makefile.in (dist): Remove CVS directories.
123 Call `distfiles' target.
125 * src/devices/grohtml/grohtml.man: Add information about valid
126 versions of pnmtopng.
127 * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
128 name instead of number.
130 2001-07-24 Werner LEMBERG <wl@gnu.org>
132 * doc/groff.texinfo: Minor fixes.
134 2001-07-21 Gaius Mulley <gaius@glam.ac.uk>
136 * doc/Makefile (.ms.html): Put image files into a subdirectory.
139 2001-07-20 Werner LEMBERG <wl@gnu.org>
141 * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
142 * src/libs/libgroff/mkstemp.cc: New file.
143 * src/libs/libgroff/mksdir.cc: New file.
144 * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
145 (xtmpfile) [!HAVE_MKSTEMP]: Removed.
146 * src/libs/libgroff/Makefile.sub: Updated.
147 * src/include/lib.h: Add mksdir() prototype.
148 * src/include/posix.h: Define S_IXUSR if not yet defined.
150 * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
151 (createAllPages): Use mksdir() instead of current code.
152 * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
153 (main): [!HAVE_MKSTEMP]: Removed.
155 * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
156 (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
158 * configure.ac: Add tests for stdint.h, sys/time.h, and
160 Call new GROFF_xxx macros.
161 * configure: Regenerated.
162 * Makefile.in: Comments updated.
164 2001-07-20 Gaius Mulley <gaius@glam.ac.uk>
166 * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
167 instead of current code.
168 * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
169 * src/roff/groff/groff.cc (possible_command::insert_args): New
171 (main): Use it for predriver handling instead of insert_arg().
173 2001-07-19 Werner LEMBERG <wl@gnu.org>
175 * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
178 * src/include/posix.h: Define S_IWUSR if not yet defined.
180 2001-07-18 Werner LEMBERG <wl@gnu.org>
184 2001-07-18 Ruslan Ermilov <ru@FreeBSD.org>
186 * tmac/groff_mdoc.man: Document new -width and -column syntax.
187 Some other minor fixes.
188 * tmac/an-old.tmac: Add `AT' and `UC' macros.
190 2001-07-17 Gaius Mulley <gaius@glam.ac.uk>
192 Replace call to `troff' with `groff -Z' to make it aware of
195 * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
196 (troff_command, command_prefix): Removed.
197 (alterDeviceTo): Use groff.
198 (addZ): New function.
199 (char_buffer::do_html): Use it.
200 (scanArguments): Use TROFF_COMMAND.
201 (findPrefix): Removed.
203 * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
205 2001-07-17 Eric S. Raymond <esr@snark.thyrsus.com>
207 * doc/pic.ms: Documentation fixes.
209 2001-07-17 Werner LEMBERG <wl@gnu.org>
211 Replace atexit() with global destructor.
213 * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
214 (xtmpfile_list_init): New global structure to deallocate
215 xtmpfile_list on exit. Its destructor inherits most code from
217 (remove_tmp_files): Deleted.
218 (add_tmp_file): Simplified.
220 2001-07-16 Werner LEMBERG <wl@gnu.org>
222 Replace strdup() with strsave().
224 * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
225 (set_papersize): Use strsave() and a_delete.
226 (main): Use strsave().
227 * src/preproc/html/pre-html.cc (make_message, createAllPages,
228 removeAllPages): Use strsave() and a_delete.
230 * configure.ac: Remove test for strdup.
231 * Makefile.in: Comment updated.
232 * configure: Regenerated.
234 2001-07-15 Werner LEMBERG <wl@gnu.org>
236 * win32-diffs: Updated.
238 2001-07-14 Werner LEMBERG <wl@gnu.org>
240 * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
241 removing the old one.
242 * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
244 2001-07-14 Ralph Corderoy <ralph@inputplus.demon.co.uk>
246 * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
248 2001-07-12 Ruslan Ermilov <ru@FreeBSD.org>
250 Merge -xwidth into -width. Add -xwidth functionality to -column
253 * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
255 (doc-do-Bl-args): Merge -xwidth code with -width. Test whether
256 string immediately following a leading dot starts with a valid mdoc
258 Add similar code to the -column branch.
259 (doc-Bl-usage): Updated.
260 * groff_mdoc.man: s/-xwidth/-width/.
262 2001-07-12 Gaius Mulley <gaius@glam.ac.uk>
264 * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
265 running into centered or non-formatted text.
267 2001-07-11 Werner LEMBERG <wl@gnu.org>
269 Introduce short and long prefixes to have the selection at run-time
270 whether there is a 8+3 limit for names of temporary files.
272 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
273 (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
274 (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
276 (temp_init): New global structure to initialize above three
278 (xtmptemplate): Use two parameters for long and short prefix.
279 Simplify code use above three variables.
280 (xtmpfile): Use long and short prefixes as parameters.
281 * src/include/lib.h: Updated.
283 * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
285 ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
286 (createAllPages, makeTempFiles): Updated.
288 2001-07-09 Werner LEMBERG <wl@gnu.org>
290 * REVISION: Increased to 3.
292 Version 1.17.2 released
293 =======================
295 2001-07-07 Werner LEMBERG <wl@gnu.org>
297 * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
300 2001-07-06 Ruslan Ermilov <ru@FreeBSD.org>
302 * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
304 * tmac/groff_mdoc.man: Fix synopsis.
306 2001-07-05 Ruslan Ermilov <ru@FreeBSD.org>
308 * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
309 Restore `doc-Pa-font'.
311 2001-07-04 Werner LEMBERG <wl@gnu.org>
313 * src/utils/indxbib/dirnamemax.c: Moved to ...
314 * src/libs/libgroff/maxfilename.cc: Here.
315 s/dir_name_max/file_name_max/.
317 * src/include/lib.h: Add file_name_max.
318 * src/utils/indxbib/indxbib.cc: Updated.
319 * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
322 * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
324 (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
326 * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
327 REGION_TEMPLATE): New macros.
328 (createAllPages, makeTempFiles): Use them.
329 Include `nonposix.h'.
330 (html_system): New function.
331 (createAllPages, createImage): Use it.
334 * tmac/www.tmac: Fix typos.
336 2001-07-03 Werner LEMBERG <wl@gnu.org>
338 * tmac/www.tmac: Disable hyphenation in normal text only if output
340 (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
341 * tmac/groff_mwww.man, NEWS: Updated.
343 2001-07-03 Gaius Mulley <gaius@glam.ac.uk>
345 * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
348 2001-07-02 Ruslan Ermilov <ru@FreeBSD.org>
350 * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
351 doc-display-ps-stack): Implement font and font size stack for
354 2001-07-02 Werner LEMBERG <wl@gnu.org>
356 * REVISION: Increased to 2.
357 * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
359 * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
361 * src/groff/grog/grog.sh: Ditto.
363 2001-06-29 Peter Marquardt <wwwutz@molgen.mpg.de>
365 * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
368 2001-06-27 Werner LEMBERG <wl@gnu.org>
370 Fix problems with preprocessor string for `man' program.
372 * *.man: Don't use `s' in preprocessor string -- it doesn't exist.
373 Updated/added copyright.
374 Moved Emacs's local variable to identify nroff mode to the end of
375 the file; add local variable if missing.
377 2001-06-26 Andras Salamon <andras@cs.wits.ac.za>
379 * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
380 AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
381 * configure: Regenerated.
383 2001-06-25 Andras Salamon <andras@cs.wits.ac.za>
385 * aclocal.m4 (GROFF_PAGE): Fix page detection code.
386 * configure: Regenerated.
388 2001-06-24 Werner LEMBERG <wl@gnu.org>
390 * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
392 * doc/pic.ms: Fix typos.
394 Version 1.17.1 released
395 =======================
397 2001-06-21 Golubev I. N. <gin@mo.msk.ru>
399 * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
400 * configure: Updated.
402 2001-06-20 Gaius Mulley <gaius@glam.ac.uk>
404 * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
406 * src/roff/troff/dic.cc (blank_line): Add html tag.
408 2001-06-19 Gaius Mulley <gaius@glam.ac.uk>
410 * src/roff/troff/input.cc (do_suppress): Fix typo.
412 2001-06-18 Gaius Mulley <gaius@glam.ac.uk>
414 Added two new options (-D and -I) to specify image names and a
415 subdirectory to place the images in.
417 Change syntax from \\Ox to \\O[x].
419 * src/devices/grohtml/post-html.cc (main): Add options.
421 * src/preproc/html/pre-html.cc: Include `stdarg.h'.
422 Use `NULL' instead of `0' for null string pointers.
423 (MAX_RETRIES): New macro.
424 (lengthOfintToStr, intToStr, make_message): New functions.
425 (makeFileName): Make function static.
426 Implement -D and -I options.
427 (checkImageDir): New function.
428 (write_end_image, write_start_image): Use new syntax of \O.
429 (createAllPages, removeAllPages): Implement -D and -I options. Use
431 (createImage): Use make_message().
432 (addps4html): Add guard for malloc().
433 (usage, scanArguments): Updated.
434 (makeTempFiles): Use mkstemp().
435 (removeTempFiles): Use unlink().
436 (findPrefix): Add guard for malloc().
438 * src/roff/troff/input.cc (get_delim_file_name): New function to
440 (do_suppress): Updated to parse new syntax.
441 * src/devices/grohtml/grohtml.man: Updated.
442 * tmac/www.tmac: Updated to new syntax.
446 2001-06-15 Werner LEMBERG <wl@gnu.org>
448 * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
450 * src/devices/grohtml/grohtml.man: Minor improvements.
452 2001-06-14 Werner LEMBERG <wl@gnu.org>
454 * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
456 2001-06-11 Werner LEMBERG <wl@gnu.org>
458 * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
459 line to specify preprocessor options -- mandb 2.3.1 only recognizes
461 * src/preproc/grn/grn.man: Add proper '\" string.
463 2001-06-11 OKAZAKI Tetsurou <okazaki@be.to>
465 * test-groff: Don't use PATH but GROFF_BIN_PATH.
467 2001-06-08 Werner LEMBERG <wl@gnu.org>
469 Updated to autoconf 2.50.
471 * configure.in: Renamed to...
472 * configure.ac: This.
473 * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
474 (GROFF_OS390): Updated.
475 * configure: Regenerated.
477 2001-05-18 Werner LEMBERG <wl@gnu.org>
479 * src/roff/troff/env.c, src/roff/troff/env.h,
480 src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
483 2001-05-17 Jeffrey Friedl <jfriedl@yahoo-inc.com>
485 * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
487 2001-05-16 Bruce Lilly <blilly@erols.com>
489 * contrib/mm/m.tmac (TH): Fix incorrect error message.
491 2001-05-16 Werner LEMBERG <wl@gnu.org>
493 * src/roff/troff/input.cc (read_size): Emit warning if value becomes
494 less than or equal zero; set it to 1 then.
495 * src/roff/troff/node.h (node::node): Initialize `last'.
497 2001-05-08 Werner LEMBERG <wl@gnu.org>
499 * tmac/an-old.tmac: Make predefined strings work in compatibility
501 Add troff version guard.
502 * tmac/doc.tmac: Simplify version guard.
504 2001-05-07 Werner LEMBERG <wl@gnu.org>
506 The .ns and .rs requests are now honoured not only in the top-level
507 but in all diversions (similar to UNIX troff).
509 This change is based on a patch from Tadziu Hoffmann
510 <hoffmann@usm.uni-muenchen.de>.
512 * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
513 (top_level_diversion): Remove `no_space_mode' member.
514 * src/roff/troff/div.cc (diversion::diversion,
515 top_level_diversion::top_level_diversion): Updated.
516 (macro_diversion::output): Reset `no_space_mode'.
517 (no_space, restore_spacing): Use `curdiv' unconditionally.
518 (space_request, blank_line): Check `curdiv->no_space_mode'.
519 (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
520 `curdiv' unconditionally.
521 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
524 2001-05-06 Werner LEMBERG <wl@gnu.org>
526 Added two new requests `de1' and `am1' which are similar to `de' and
527 `am' with the difference that compatibility mode is saved on entry,
528 switched off during macro execution, and restored on exit.
530 * src/roff/troff/input.h: Added two new special characters
531 (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
532 * src/roff/troff/input.cc (input_iterator): Added two member
533 functions `save_compatible_flag' and `get_compatible_flag'.
534 (input_stack): Ditto.
535 (string_iterator): Ditto. Also add private member
536 `saved_compatible_flag'.
537 (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
538 (calling_mode): New enumeration.
539 (do_define_macro): Use it. Insert COMPATIBLE_SAVE and
540 COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
541 (define_macro, define_indirect_macro, append_macro, ignore): Use
543 (define_nocomp_macro, append_nocomp_macro): New functions.
544 (init_input_requests): Updated.
545 (do_request): Rename local variable `saved_compatible_flag' to
546 `old_compatible_flag'.
547 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
549 * tmac/an-old.tmac: Use `de1' instead of `de' request for all
550 public and trap-invoked macros. As a consequence, the man macros
551 work in compatibility mode also.
553 2001-05-06 Solar Designer <solar@openwall.com>
555 * Makefile.in: Use $(mandir).
557 2001-05-06 Alexios Zavras <zvr@pobox.com>
559 * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
561 2001-05-05 Werner LEMBERG <wl@gnu.org>
563 Added `.ns' number register: Returns 1 in no-space mode (if in
564 top-level diversion), 0 otherwise.
566 * src/roff/troff/div.cc (no_space_mode_reg): New class.
567 (init_div_requests): Updated.
568 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
571 2001-05-04 Werner LEMBERG <wl@gnu.org>
573 * src/roff/nroff/nroff.man: Improved documentation (especially
576 2001-05-02 Werner LEMBERG <wl@gnu.org>
578 Added `brp' request: This is \p as a request.
580 * src/roff/troff/env.cc (environment::do_break): Add parameter
582 (do_break_request): New function (was `break_request').
583 (break_request): Calls `do_break_request'.
584 (break_spread_request): New; calls `do_break_request'.
585 (init_env_requests): Updated.
586 * src/roff/troff/env.h: Updated.
587 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
589 * REVISION: Increased to 1.
590 * win32-diffs: Updated.
592 2001-05-01 Werner LEMBERG <wl@gnu.org>
594 * tmac/an-old.tmac: Fix minor compatibility mode issue.
595 * tmac/troffrc-end: Make it really work in compatibility mode.
597 2001-04-27 Werner LEMBERG <wl@gnu.org>
599 * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
602 2001-04-22 Werner LEMBERG <wl@gnu.org>
604 * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
605 latest versions from glibc CVS archive.
607 * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
608 <c.zeelenberg@hccnet.nl>.
610 2001-04-21 Werner LEMBERG <wl@gnu.org>
612 * configure.in: Move check for mkstemp() to...
613 * aclocal.m4 (GROFF_MKSTEMP): This new function.
614 * configure: Regenerated.
616 * src/include/groff-getopt.h: Don't use variable names in
619 * src/devices/grohtml/html-chars.h: Removed. It isn't used.
620 * src/devices/grohtml/Makefile.sub,
621 src/devices/grohtml/post-html.cc: Updated.
623 2001-04-21 Albert Chin-A-Young <china@thewrittenword.com>
625 * configure.in: Add special check for mkstemp().
626 * src/libs/libgroff/tmpfile.cc: Use it.
627 * src/utils/indxbib/indxbib.cc: Ditto.
628 * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
629 * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
632 2001-04-20 Bruce Lilly <blilly@erols.com>
634 `Version_string' as C++ object was not visible to linker from C
636 Add `const' to `Version_string'.
638 * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
639 (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
640 (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
641 (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
642 (scanArguments), src/preproc/refer/refer.cc (main),
643 src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
644 (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
645 (main), src/devices/grohtml/post-html.cc (main),
646 src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
647 (main), src/utils/hpftodit/hpftodit.cc (main),
648 src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
649 (main), src/utils/lkbib/lkbib.cc (main),
650 src/utils/addftinfo/addftinfo.cc (main): Implement it.
652 * src/roff/groff/pipeline.c: Add _UWIN.
653 * src/include/nonposix.h: Ditto.
655 2001-04-20 Werner LEMBERG <wl@gnu.org>
657 * src/include/lib.h: Use HAVE_STRERROR.
658 * src/roff/groff/pipeline.c: Ditto.
659 * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
660 * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
661 * src/utils/pfbtops/pfbtops.c: Add copyright notice.
662 * win32-diffs: Updated.
663 * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
665 2001-04-19 Werner LEMBERG <wl@gnu.org>
667 * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
668 instead of hardwired `"troff"'.
669 (char_buffer::read_file): Remove unused variables.
670 (char_buffer::write_file_troff): Ditto.
671 (char_buffer::write_file_html): Ditto.
672 (generateImages): Ditto.
674 * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
676 * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
678 * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
679 * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
680 index_search_item::search1): Ditto.
681 * src/roff/troff/node.h (width_list): Reorder members.
682 * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
683 (lookup_warning): Ditto.
684 (prepend_string): Commented out.
685 * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
686 * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
687 * src/preproc/tbl/main.cc (process_format): Ditto.
688 * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
690 * src/preproc/pic/pic.cc: Updated.
691 * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
692 * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
693 * src/preproc/refer/command.cc (execute_command): Ditto.
694 * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
695 * src/preproc/refer/token.cc (lookup_token): Ditto.
696 * src/preproc/soelim/soelim.cc: Ditto.
697 * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
698 (isHexDigit): Commented out.
699 (pushBackBuffer::isString): Remove unused variable.
700 * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
702 * src/devices/grops/psrm.cc (resource_manager::lookup_font,
703 resource_manager::read_resource_arg, read_one_of, parse_extensions):
705 * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
706 * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
707 lookup_paper_size): Ditto.
708 * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
709 (text_glob, element_list): Reorder members.
710 * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
712 * src/devices/grohtml/html-text.h (html_text::emit_space): Change
713 return value to `void'.
714 * src/devices/grohtml/output.cc (word_list::word_list): Fix order
716 * src/devices/grohtml/html.h (simple_output::check_newline,
717 simple_output::space_or_newline, simple_output::enable_newlines):
719 * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
721 * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
722 * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
723 output_ligatures, output_charset, read_map): Ditto.
724 * src/utils/lookbib/lookbib.cc (main): Ditto.
725 * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
726 (do_file): Fix typo (`=' -> `==').
727 * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
728 * src/utils/addftinfo/addftinfo.cc (main): Ditto.
730 2001-04-18 Ruslan Ermilov <ru@FreeBSD.org>
732 * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
733 Fix usage of GROFF_BIN_PATH.
734 * src/roff/nroff/nroff.man: Updated.
736 2001-04-18 Werner LEMBERG <wl@gnu.org>
738 * NEWS: Fixing typos.
741 Version 1.17 released
742 =====================
744 2001-04-17 Werner LEMBERG <wl@gnu.org>
746 * tmac/Makefile.sub (install-data): mdoc.local-s is in current
747 directory, not in $(srcdir).
749 2001-04-16 Werner LEMBERG <wl@gnu.org>
751 * doc/groff.texinfo: More info on conditionals.
753 2001-04-15 Werner LEMBERG <wl@gnu.org>
755 * doc/groff.texinfo: Added some info about groff internals.
757 * src/roff/troff/node.cc (make_glyph_node): Emit warning message
758 about missing special character only if the name is non-null.
760 2001-04-14 Werner LEMBERG <wl@gnu.org>
762 Removing the grohtml-old device driver which is now obsolete.
764 * src/devices/grohtml-old/*: Removed.
765 * font/devhtml-old/*: Removed.
766 * src/libgroff/htmlindicate.cc (graphic_start, graphic_end): Remove
768 * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
769 * test-groff (PATH): Updated.
770 * tmac/Makefile.sub (NORMALFILES): Updated.
771 * tmac/an-old.tmac: Remove special code for html-old device.
772 Replace `html-or-html-old' register with `an-html'.
773 * tmac/eqnrc: Updated.
774 * tmac/html-old.tmac: Removed.
775 * tmac/troffrc, tmac/troffrc-end: Updated.
776 * tmac/www.tmac: Remove special code for html-old device.
777 Replace `html-or-html-old' register with `www-html'.
779 * src/libgroff/tmpfile.cc (remove_tmp_files),
780 src/libgroff/htmlindicate.cc (graphic_end), include/htmlindicate.h,
781 src/preproc/grn/*.cc, src/roff/groff/env.{cc,h}: Remove `void'
782 parameter if used as a single argument for consistency with rest of
785 * aclocal.m4, tmac/an-old.tmac: Fix copyright.
787 2001-04-13 Ruslan Ermilov <ru@FreeBSD.org>
789 * src/roff/troff/troff.man: Fixing typos.
791 2001-04-13 Werner LEMBERG <wl@gnu.org>
793 * doc/pic.ms: Fixing many font switches.
794 * doc/groff.texinfo: Fixes, additions.
795 * MORE.STUFF: Updated.
797 2001-04-12 Gaius Mulley <gaius@glam.ac.uk>
799 * src/devices/grohtml/grohtml.man: Updated manual page regarding
801 * src/preproc/html/pre-html.cc (createImage): Fixed right hand
803 (removeTempFiles): New function to tidy up temporary files.
804 * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
805 Many fixes to do with the new inline suppress node and image regions
807 * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
808 (generate_img_src): New function.
809 (html_printer::do_auto_image): Utilizes it.
810 (do_heading, do_title): Include inline images within their contents.
811 (html_printer::begin_page): Tidied up comments that are issued to
812 the html output file.
813 (html_printer::do_fill): Fixed so that `.nf' works with fonts other
815 (text_glob::is_br): New method used by do_heading.
816 * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
817 equivalent diversion.
818 * src/include/html-strings.h: Altered image tags to reflect the
820 * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
822 * src/preproc/eqn/main.cc: Will suppress generation of image tags if
823 it is already inside a pic image. Only emit tags if the argument
824 `-Tps:html' is present.
825 * src/preproc/tbl/main.cc: Changes to reflect additional
826 `html_end_suppress' parameter.
827 * src/roff/troff/env.cc: Only emit eol tag if a node has been
828 emitted since the last eol tag was written.
829 * src/roff/troff/env.h: New boolean `emitted_node'.
830 * src/roff/troff/input.cc (do_suppress): Handles extra suppress
831 nodes \O3, \O4, \O5. No longer use `output_low_mark_miny'.
832 * src/roff/troff/node.cc (check_charinfo): New method.
833 (troff_output_file::determine_line_limits): Alterations to limit
835 * tmac/www.tmac: Changes to reflect new suppress nodes.
837 2001-04-12 Bruno Haible <haible@clisp.cons.org>
839 * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
840 Escape the html_glyph in the buffer.
841 (str_translate_to_html): Output the unescaped escaped_char.
842 * src/devices/grohtml/html-text.cc (issue_table_begin): Set
843 `frame=void', not `frame=none'. Add `border=0'.
845 2001-04-12 Ruslan Ermilov <ru@FreeBSD.org>
847 * contrib/mm/groff_mm.man: Fixing some typos.
849 2001-04-12 Werner LEMBERG <wl@gnu.org>
851 * PROBLEMS: Add some words on how to avoid wrapper macros.
853 2001-04-11 Blake McBride <blake@florida-software.com>
855 * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
857 2001-04-11 Werner LEMBERG <wl@gnu.org>
859 * font/devlbp/Makefile.sub (CLEANADD): Set it.
860 * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
861 * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
862 * Makefile.sub (DISTCLEANFILES): Here.
864 * libs/libgroff/new.cc: Include `nonposix.h'.
865 * win32-diffs: Updated.
867 2001-04-10 Ruslan Ermilov <ru@FreeBSD.org>
869 Added skeleton macro for defunct macros.
871 Updated documentation.
873 When inside displays, an empty input line warning should be
874 suppressed. If another macro call is put inside a display,
875 all subsequent empty lines found in that display caused a
876 warning to be emitted.
878 * tmac/doc.tmac (doc-defunct-macro): New macro.
879 (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
880 (doc-restore-global-vars): Fixed typo.
881 (doc-empty-line): Check the `doc-display-depth' register to
882 determine whether we are inside display or not.
884 * tmac/doc-common: Removed `Or' and `Sf' registers.
885 Moved obsolete `Ds' macro to doc.tmac.
887 * tmac/groff_mdoc.man: Bump document date.
888 Document `.Vt' under ``Variable Types''.
889 Removed documentation for obsolete `.Or' macro.
891 2001-04-10 Werner LEMBERG <wl@gnu.org>
894 * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
896 2001-04-10 Bruno Haible <haible@clisp.cons.org>
898 * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
899 (usage): Add stream argument. Don't exit.
900 * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
901 Write --version output to stdout, not stderr.
902 (usage): Add stream argument. Don't exit.
903 * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
904 (usage): Add stream argument. Don't exit.
905 * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
907 (usage): Add stream argument. Don't exit.
908 (main): Write --help output to stdout, not stderr.
909 * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
910 (usage): Add stream argument. Don't exit.
911 * src/devices/grops/ps.cc (main): Accept --help and --version.
912 (usage): Add stream argument. Don't exit.
913 * src/devices/grotty/tty.cc (main): Accept --help and --version.
914 (usage): Add stream argument. Don't exit.
915 * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
916 (main): Accept --help and --version.
917 * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
918 (main): Accept --help and --version.
919 * src/preproc/html/pre-html.cc (usage): Add stream argument.
920 (scanArguments): Accept --help and --version.
921 * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
922 (main): Accept --help and --version.
923 * src/preproc/refer/refer.cc (main): Accept --help and --version.
924 (usage): Add stream argument. Don't exit.
925 * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
927 (main): Accept --help and --version.
928 * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
929 (main): Accept --help and --version.
930 * src/roff/groff/groff.cc (main): Accept --help and --version.
931 (synopsis): Add stream argument.
932 (help): Write --help output to stdout, not stderr.
933 (usage): Add stream argument. Don't exit.
934 * src/roff/grog/grog.pl: Accept --help and --version.
936 * src/roff/grog/grog.sh: Accept --help and --version.
937 * src/roff/nroff/nroff.sh: Accept --help and --version.
938 * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
939 (usage): Add stream argument. Don't exit.
940 (main): Accept --help and --version.
941 * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
942 (usage): New function with stream argument, doesn't exit.
943 * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
944 (usage): New function with stream argument, doesn't exit.
945 * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
946 (usage): Add stream argument. Don't exit.
947 * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
948 (main): Accept --help and --version.
949 * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
951 (main): Accept --help and --version.
952 * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
953 (main): Accept --help and --version.
954 * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
955 (usage): Add stream argument. Don't exit.
957 2001-04-10 Ruslan Ermilov <ru@freebsd.org>
959 Fix indentation in SYNOPSIS.
961 Updated to include changes of latest BSD mdoc version (basically,
962 the only change is that `.Fn' and `.Fc' put a final semicolon after
963 a function declaration in the SYNOPSIS section).
965 * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
966 (doc-in-synopsis-section): New variable. Updated all related
968 (doc-indent-synopsis-active): New register.
969 (Nd, Fn, Fo): Use it.
970 (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
971 `.Cd' with long argument line produces indented wrapped lines.
972 Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
973 undesirable line break to be output.
974 (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
976 (Fn, Fc): Add final `;' to output.
977 (doc-save-global-vars, doc-restore-global-vars): Updated.
978 * tmac/doc-common: Remove `Ex' register.
980 * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
983 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
985 * tmac/doc.tmac (Cd): Simplify code.
986 * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
988 2001-04-06 Werner LEMBERG <wl@gnu.org>
990 Implement continuous underlining for nroff mode. To do that, a new
991 request in the ditroff language has been added: `x u N' (N is 0
994 \X and \Y are now transparent to end-of-sentence recognition.
996 * src/include/printer.h (printer): Add `type' parameter to `special'
998 * src/libs/libdriver/printer.cc (printer::special): Updated.
999 * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
1001 * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
1002 specials of type `p'.
1003 * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
1004 * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
1005 * src/devices/grops/ps.cc (ps_printer::special): Ditto.
1006 * src/devices/grotty/tty.cc: Add new enum CU_MODE.
1007 (glyph::order): New method.
1008 (tty_printer::add_char): Use it.
1009 (tty_printer::special): New method.
1010 (tty_printer::end_page): Implement it.
1012 * src/roff/troff/node.h (special_node): Add `no_init_string' member.
1013 * src/roff/troff/node.cc (special_node::special_node): Add parameter
1014 to set `no_init_string'.
1015 (special_node::tprint_start): Use it.
1016 (special_node::same, special_node::copy): Updated.
1017 (special_node::ends_sentence): New method.
1018 (troff_output_file::start_special): Add parameter to include
1019 inititialization of special conditionally.
1021 * src/roff/troff/env.h (environment): New member `underline_spaces'.
1022 * src/roff/troff/env.cc (do_underline_special): New function.
1023 (environment::set_font): Use it.
1024 (do_underline): Use it. This was `underline()'.
1025 (underline): Call `do_underline()'.
1026 (continuous_underline): New function which calls `do_underline()'.
1027 (environment::newline): Use `do_underline_special()'.
1028 (init_env_requests): Updated.
1030 * NEWS, man/troff_out.man: Updated.
1032 2001-04-06 Bruno Haible <haible@clisp.cons.org>
1034 * font/devutf8/R.proto: Fix code of 'shc'.
1036 2001-04-06 Ruslan Ermilov <ru@freebsd.org>
1038 Many fixes. Diag lists can now be nested also; additionally,
1039 `-compact' and `-offset' are supported.
1041 * tmac/doc.tmac (doc-have-indent): Replaced with ...
1042 (doc-list-have-indent-stackXXX): A new register stack.
1043 (doc-have-diag-list): Removed.
1044 (Bl): Use `doc-list-have-indent-stackXXX'.
1046 (doc-diag-list): Use `doc-compact-list-stackXXX'.
1047 (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
1048 (doc-set-vertical-and-indent): Ditto.
1049 (doc-next-list-depth): Removed.
1050 (doc-increment-list-stack): Updated.
1051 (doc-decrement-list-stack): Use `doc-list-depth' instead of
1052 `doc-next-list-depth'.
1053 (doc-end-list, doc-end-column-list): Don't use
1054 `doc-increment-list-stack'.
1055 (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
1056 (doc-save-global-vars, doc-restore-global-vars): Updated.
1057 * tmac/doc-common: Updated.
1058 * tmac/groff_mdoc.man: Updated.
1061 2001-04-02 Werner LEMBERG <wl@gnu.org>
1063 * src/devices/grotty/grotty.man: Fix grammatical error.
1065 2001-03-30 Ruslan Ermilov <ru@freebsd.org>
1067 Remove .Ld from mdoc package; replace it with special handling of
1070 * tmac/doc-common: Remove `Ld' register.
1071 Uncomment `doc-volume-ds-*' strings.
1072 Remove `doc-operating-system-default'.
1074 * tmac/doc-syms (Ld): Removed.
1075 * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
1079 * tmac/groff_mdoc.man: Many fixes and updates.
1081 2001-03-29 Werner LEMBERG <wl@gnu.org>
1083 * tmac/troffrc-end: Protect data with `.do'. Reported by T. Kurt
1084 Bond <tkb@tkb.mpl.com>.
1085 * tmac/www.tmac: Save compatibility mode.
1087 2001-03-28 Ruslan Ermilov <ru@freebsd.org>
1089 * tmac/groff_mdoc.man: Many fixes.
1091 2001-03-28 Werner LEMBERG <wl@gnu.org>
1093 * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
1096 2001-03-27 Werner LEMBERG <wl@gnu.org>
1098 * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
1099 diversion. This fixes overlong tags.
1101 2001-03-26 Werner LEMBERG <wl@gnu.org>
1103 * doc/groff.texinfo: Fixed and improved documentation of fonts.
1104 * tmac/doc-syms: Fix error messages.
1105 * tmac/an-old.tmac: Remove incorrect double backslashes.
1107 2001-03-24 Ruslan Ermilov <ru@freebsd.org>
1109 * tmac/Makefile.sub: Strip mdoc.local also
1110 * tmac/strip.sed: Fixed.
1112 2001-03-24 Werner LEMBERG <wl@gnu.org>
1114 * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
1115 selecting the font size.
1116 * tmac/groff_mdoc.man, NEWS: Document it.
1118 2001-03-23 Werner LEMBERG <wl@gnu.org>
1120 * src/roff/troff/div.cc (save_vertical_space): Add default argument
1122 * src/roff/troff/env.cc (family_change): Make `.fam' accept no
1123 argument to restore previous font family.
1124 * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
1126 * doc/groff.texinfo: More fixes and additions (mainly for font
1127 manipulating commands).
1129 * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
1130 * tmac/groff_mdoc.man: This. The quick reference has been removed.
1131 * tmac/Makefile.sub, NEWS: Updated.
1133 2001-03-23 Werner LEMBERG <wl@gnu.org>
1135 Replaced mdoc implementation. The new version is `state of the
1136 art', using almost all new features of groff 1.17 -- it won't run
1137 with older versions.
1139 * tmac/doc.tmac: Completely rewritten.
1140 * tmac/doc-common: Ditto.
1141 * tmac/doc-nroff: Ditto.
1142 * tmac/doc-ditroff: Ditto.
1143 * tmac/doc-syms: Ditto.
1144 * tmac/mdoc.local: New file.
1145 * tmac/groff_mdoc.samples.man: Replaced with ...
1146 * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
1147 * tmac/strip.sed: Updated.
1148 * tmac/Makefile.sub: Updated.
1151 * tmac/groff_man.man: Add `man.local' to the FILES section.
1153 2001-03-22 Werner LEMBERG <wl@gnu.org>
1155 * doc/groff.texinfo: Added many @noindent.
1156 Replaced @end_Example -> @endExample.
1157 Added info whether registers are r/o.
1158 Many other additions and fixes.
1160 2001-03-21 Werner LEMBERG <wl@gnu.org>
1162 * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
1163 in makeinfo of texinfo 4.0) to be used in @Def* macros.
1164 Improved @Def* macros: Now the exact syntax of request, register,
1165 and escapes is shown.
1166 Added macros for parentheses and brackets to be used in @Def*.
1167 Many fixes and improvements of the documentation.
1169 2001-03-20 Werner LEMBERG <wl@gnu.org>
1171 * doc/groff.texinfo: Added new index: `st' (for strings).
1172 Added macros @Defstr(x).
1173 Added macro @Example (adding @group).
1174 Other minor improvements.
1176 2001-03-19 Werner LEMBERG <wl@gnu.org>
1178 * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
1179 `rq' for requests. `fn' is no longer used.
1180 Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
1183 * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
1184 number with name of man page.
1186 2001-03-19 Larry Kollar <kollar@alltel.net>
1188 * doc/groff.texinfo: Complete revision. Added many @Deffn to gain
1191 2001-03-19 Werner LEMBERG <wl@gnu.org>
1193 * man/groff_font.man: Document `prepro', `postpro', and `print'.
1194 * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
1195 * src/devices/grohtml/grohtml.man: Fixing typos.
1197 2001-03-19 Gaius Mulley <gaius@glam.ac.uk>
1199 * tmac/s.tmac (@IP): Pass `.ip' html tag.
1200 * tmac/groff_mwww.man: Remove .LINE macro
1201 * tmac/www.tmac (LINE): Add `.ti'.
1203 * src/devices/grohtml/post-html.cc (html_printer): New member
1205 (html_printer::emit_raw): Use it.
1206 (html_printer::do_linelength): Ditto.
1207 (html_printer::do_pageoffset): Ditto.
1208 (html_printer::do_indentation): Ditto.
1209 (html_printer::do_tempindent): Ditto.
1210 (html_printer::do_break): Ditto.
1211 (html_printer::begin_page): Ditto.
1212 (html_printer::do_indentedparagraph): New function.
1213 (html_printer::troff_tag): Handle `.ip'.
1214 * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
1215 Add `<td width=...>' handling.
1216 (html_text::do_table): Add parameter.
1217 (html_text::do_indent): Updated.
1218 * src/devices/groohtml/html-text.h: Updated.
1220 2001-03-16 Gaius Mulley <gaius@glam.ac.uk>
1222 Introduced simple html tables to implement indentation.
1224 * src/devices/grohtml/html.h (word, word_list): New structures.
1225 (simple_output): Use it.
1226 * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
1227 (html_printer): Improve indentation handling.
1228 (html_printer::emit_raw): Set `in_table' element. Handle
1230 (html_printer::write_header): Move conditional downwards.
1231 Don't allow whitespace in tags.
1232 (html_printer::do_linelength): Handle line length and indentation
1234 (html_printer::do_pageoffset): Handle indentation conditionally.
1235 (html_printer::do_indentation): Ditto.
1236 (html_printer::do_tempindent): New function member.
1237 (html_printer::do_fill): Take care of indentation.
1238 (html_printer::do_flush): Finish table.
1239 (html_printer::do_links): Ditto.
1240 (html_printer::do_break): New function for handling `.br' and `.ti'.
1241 (html_printer::troff_tag): Use it.
1243 (html_printer::flush_globs): Fix.
1244 (html_printer::flush_page): Finish table.
1245 (html_printer::html_printer): Fix error message. Set up
1247 (html_printer::add_to_sbuf): Remove special handling of character
1249 (to_unicode): Remove `stop()'.
1250 (html_printer::write_title): Cleanup.
1251 (html_printer::begin_page): Use `put_string()'. Handle indentation.
1252 (html_printer::~html_printer): Flush text and end the line.
1254 * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
1255 * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
1257 (html_text::start_tag): Disable newlines.
1258 (html_text::table_is_void): New function.
1259 (html_text::issue_table_begin): Ditto.
1260 (html_text::issue_table_end): Ditto.
1261 (html_text::push_para): Better table handling.
1262 (html_text::do_indent): New function.
1263 (html_text::do_table): Ditto.
1264 (html_text::done_table): Ditto.
1265 (html_text::do_tt): Handle PRE_TAG.
1266 (html_text::is_in_table): New function.
1267 (html_text::check_emit_text): Handle tables.
1268 (html_text::do_emittext): Use `nl()'.
1269 (html_text::do_para): Handle table.
1270 (html_text::remove_def): New function.
1271 * src/devices/grohtml/output.cc (word, word_list): Implement
1273 (simple_output::end_line): Flush last word.
1274 (simple_output::simple_comment): Ditto.
1275 (simple_output::begin_comment): Recoded.
1276 (simple_output::end_comment): Ditto.
1277 (simple_output::comment_arg): Removed.
1278 (simple_output::check_newline): Improve test and flush last word.
1279 (simple_output::space_or_newline): Improved.
1280 (simple_output::write_newline): Replaced with...
1281 (simple_output::nl): This.
1282 (simple_output::put_raw_char): Flush last word.
1283 (simple_output::check_space): Removed.
1284 (simple_output::put_translated_string): Ditto.
1285 (simple_output::put_string): Simplified.
1286 (simple_output::put_number): Updated.
1287 (simple_output::put_float): Ditto.
1288 (simple_output::put_symbol): Removed.
1289 (simple_output::enable_newlines): Add `check_newline()'.
1290 (simple_output::flush_last_word): New function.
1292 * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
1293 * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
1295 * tmac/s.tmac (@PP, @IP): Add html conditional code.
1296 * tmac/an-old.tmac (TP): Ditto.
1298 2001-03-09 Ruslan Ermilov <ru@freebsd.org>
1300 * mdate.sh: Make it POSIX compliant.
1302 2001-03-09 Werner LEMBERG <wl@gnu.org>
1304 Added the `return' request to end a macro immediately. It simply
1305 pops iterators from the input stack until a macro iterator is found.
1307 * src/roff/troff/input.cc (input_iterator::is_macro,
1308 macro_iterator::is_macro): New member.
1309 (input_return_boundary): New class to signal an immediate return
1311 (input_stack::add_return_boundary, input_stack::is_return_boundary):
1313 (input_stack::clear): Use it.
1314 (input_stack::pop_macro): New function.
1315 (while_request): Use `is_return_boundary()'.
1316 (return_macro_request): New function.
1317 (init_input_requests): Use it.
1319 * src/roff/troff/TODO: Updated.
1320 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1322 2001-03-08 Werner LEMBERG <wl@gnu.org>
1324 * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
1327 2001-03-07 Werner LEMBERG <wl@gnu.org>
1329 Make `\B' more rigid.
1331 * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
1333 (get_number_rigidly): New function.
1334 * src/roff/troff/input.cc (do_expr_test): Use it.
1335 * src/roff/troff/token.h: Updated.
1337 * src/roff/troff/request.h: Fix typo (init_html_request ->
1338 init_markup_request).
1340 2001-03-04 Gaius Mulley <gaius@glam.ac.uk>
1342 Fixed grohtml handling of any named glyph for glyph indexes < 0x80.
1343 Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
1344 are now `.begin', `.end', `.image'.
1346 * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
1347 (html_printer::add_to_sbuf): Changing type of `code' parameter.
1348 Use add_char_to_sbuf().
1349 (to_unicode): New function.
1350 (char_translate_to_html): Changing type of `ch' parameter.
1352 (html_printer::~html_printer): Comment out doctype string.
1353 * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
1354 instead of `.html-end'.
1355 (write_start_image): Use `.begin' and `.image' instead of
1356 `.html-begin' and `.html-image'.
1357 * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
1358 (html_begin): Renamed to ...
1360 (html_end): Renamed to ...
1362 (html_image): Renamed to ...
1364 (init_html_requests): Renamed to ...
1365 (init_markup_requests): This.
1366 * tmac/www.tmac: Updated.
1368 2001-02-28 Bram <bram@avontuur.org>
1370 * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
1373 2001-02-26 David Leonard <david.leonard@csee.uq.edu.au>
1375 * doc/meref.me: Fixing some typos.
1377 2001-02-16 Werner LEMBERG <wl@gnu.org>
1379 * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
1380 method. Return `HYPHEN_MIDDLE' if it was `\:'.
1381 * src/roff/troff/node.h: Updated.
1383 2001-02-17 Ruslan Ermilov <ru@FreeBSD.org>
1385 * tmac/groff_tmac.man: Fix typo.
1387 2001-02-16 Werner LEMBERG <wl@gnu.org>
1389 Fixing a bug which prevented proper end-of-sentence recognition
1390 between an `unformatted' box and the following text. As a
1391 consequence, vertical line distances are no longer preserved in
1392 boxes after a call to `.unformat' -- because boxes aren't
1393 line-oriented (contrary to diversions), this doesn't make sense
1396 * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
1398 (vertical_size_node::set_unformat_flag): New method.
1399 * src/roff/troff/node.hh: Updated.
1400 * src/roff/troff/input.cc (word_space_node::reread,
1401 hmotion_node::reread): Reset `unformat' flag after usage.
1402 (unformat_macro): Append only if `set_unformat_flag()' returns
1404 * src/roff/troff/troff.man: Updated.
1406 2001-02-15 Werner LEMBERG <wl@gnu.org>
1408 * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
1409 documentation of `asciify' and `unformat' requests.
1411 2001-02-13 Werner LEMBERG <wl@gnu.org>
1413 Redesigned the `unformat' request. It is no longer connected with
1414 `asciify' but rather uses new `reread()' methods if the `unformat'
1415 flag is set. Additionally, the handling of space characters after
1416 unformatting has been fixed so that they retain their width.
1418 * src/roff/troff/node.h (width_list): New structure to store
1419 original widths of spaces.
1420 (node): Added `unformat' member.
1421 Replaced `num_spaces' variable with `orig_width' list.
1422 * src/roff/troff/node.cc (*node::asciify,
1423 asciify_reverse_node_list): Removed `unformat_only' flag and related
1425 (word_space_node::asciify, word_space_node::word_space_node): Use
1427 (word_space_node::~word_space_node): New destructor.
1428 (word_space_node::copy): Updated to handle `orig_width'.
1429 (hmotion_node::copy, unbreakable_space_node::copy): Updated.
1430 (*node::merge_space): Update `orig_width' list if necessary.
1431 (*node::set_unformat_flag): New methods to set the `unformat' flag.
1432 * src/roff/troff/enc.cc (environment::space_newline): Use
1434 (environment::space): Added method to handle space width and
1435 sentence space width as parameters. Use `width_list'.
1436 (environment::make_tab_node): Updated.
1437 * src/roff/troff/env.h: Updated.
1438 * src/roff/troff/input.cc (word_space_node::reread,
1439 unbreakable_space_node::reread, hmotion_node::reread): New methods
1440 to handle nodes specially if `unformat' flag is set.
1441 (do_asciify_macro): Renamed back to ...
1442 (asciify_macro): This.
1443 (unformat_macro): New implementation to simply set the `unformat'
1446 * MORE.STUFF: Added more info about deroff.
1448 2001-02-08 Werner LEMBERG <wl@gnu.org>
1450 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1451 space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
1452 and `add_self()' methods to avoid hyphenation. For example, the
1453 hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
1454 soft hyphen after `foo'. Now the hyphen list is correctly
1455 `foo<ignore><ignore>bar'.
1457 2001-02-05 Yoshiteru Kageyama <yt-kage@cb3.so-net.ne.jp>
1459 * tmac/groff_tmac.man: Fix `BIR' macro.
1461 2001-02-04 Werner LEMBERG <wl@gnu.org>
1463 A new escape sequence `\:', inserting a zero-width break point.
1465 * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
1466 * src/roff/troff/input.cc (get_copy, token::next, asciify):
1468 * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
1470 (space_node): Add `was_escape_colon' member. Add `is_escape_colon()'
1471 and `asciify()' methods.
1472 * src/roff/troff/node.cc (space_node::space_node): Updated.
1473 (space_node::asciify): Handle `was_escape_colon'.
1474 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1476 Handle `\~' similar to other comparable requests.
1478 * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
1480 (token::next): Move creation of an unbreakable_space_node to...
1481 (token::add_to_node_list): Here.
1483 Fix a bug which sometimes prevented hyphenation of words connected
1484 with `\~' or `\ ' (and other escape sequences handled as
1485 TOKEN_NODE). This also fixes a hyphenation problem with boxes
1486 (after a call to the `unformat' request).
1488 * src/roff/troff/env.h (environment::possibly_break_line,
1489 environment::hyphenate_line): Introducing `start_here' parameter.
1490 * src/roff/troff/env.cc (environment::space_newline,
1491 environment::space): Use it.
1492 (environment::possibly_break_line, environment::hyphenate_line):
1494 * src/roff/troff/input.cc (process_input_stack): Use it.
1495 * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
1496 space_char_hmotion_node, overstrike_node): Add
1497 `get_hyphenation_type()' method.
1498 * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
1499 if `unformat_only' is active.
1501 2001-01-30 Werner LEMBERG <wl@gnu.org>
1503 Implemented new read-only number register `.linetabs' which
1504 returns 1 if in line-tabs mode, 0 otherwise.
1506 * src/roff/troff/env.h (environment): Add get_line_tabs() member.
1507 * src/roff/troff/env.cc (get_line_tabs): New function.
1508 (init_env_requests): Use it.
1509 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1511 * VERSION, REVISION: Changing to 1.17.0.
1513 2001-01-28 Werner LEMBERG <wl@gnu.org>
1515 Fixed a bug which prevented hyphenation of words which are finished
1518 * src/roff/troff/token.h (token): Add enum type
1519 `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
1520 * src/roff/troff/input.cc (token::next, token::description,
1521 get_line_arg, token::add_to_node_list, token::process): Use it.
1523 2001-01-27 Werner LEMBERG <wl@gnu.org>
1525 * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
1526 * src/roff/troff/div.cc (do_divert): Use it.
1528 * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
1530 2001-01-25 Werner LEMBERG <wl@gnu.org>
1532 Adding the `linetabs' request. If set, tab distances are not
1533 computed relative to the input line but relative to the output line.
1535 * src/roff/troff/env.h (environment): New member `line_tabs'.
1536 * src/roff/troff/env.cc (line_tabs_request): Implement request.
1537 (environment::environment, environment::copy): Updated.
1538 (environment::distance_to_next_tab): Use `line_tabs'.
1539 (init_env_requests): Register request.
1540 * src/roff/troff/troff.man, man/groff.man, NEWS: Document it. Other
1543 2001-01-24 Werner LEMBERG <wl@gnu.org>
1545 Introducing a new read-only register `.int' which is set to a
1546 positive value if the last output line is interrupted (i.e., if it
1549 * src/roff/troff/env.cc (init_env_requests): Add it.
1550 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1552 2001-01-23 Gaius Mulley <gaius@glam.ac.uk>
1554 * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
1555 * src/preproc/html/pre-html.cc (findPrefix): New function which
1556 generates the troff executable name via the system prefix.
1557 * src/preproc/eqn/main.cc: Modified warning message.
1559 2001-01-23 Werner LEMBERG <wl@gnu.org>
1561 troff's `box' and `boxa' requests didn't preserve temporary
1564 * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
1565 `saved_target_text_length' members.
1566 * src/roff/troff/div.cc (do_divert): Use them.
1568 Tabs (but not yet leaders and fields) are now handled correctly by
1571 * node.h (hmotion_node): Add field `was_tab'.
1572 * env.cc (environment::make_tab_node): Set it.
1573 * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
1575 Added new request `unformat' which will, contrary to `asciify',
1576 preserve font information after unformatting (i.e., only nodes
1577 dealing with horizontal space are converted back to input
1580 * input.cc (asciify_macro): Renamed to ...
1581 (do_asciify_macro): this, having a new parameter `unformat_only'.
1582 (asciify_macro, unformat_macro): New; using do_asciify_macro.
1583 (init_input_requests): Added `unformat'.
1584 * node.cc (*_node::asciify), asciify_reverse_node_list: Added
1585 parameter to control asciification process.
1586 * node.h (*_node::asciify): Ditto.
1587 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1589 2001-01-20 Werner LEMBERG <wl@gnu.org>
1591 * doc/groff.texinfo: Minor improvement of `.in' documentation.
1593 2001-01-18 Werner LEMBERG <wl@gnu.org>
1595 * tmac/ps.tmac: Remove call of psold.tmac.
1596 * tmac/psold.tmac: Comment updated.
1597 * tmac/psnew.tmac: Removed since no longer needed.
1598 * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
1600 * font/devutf8/R.proto: Adding `shc' glyph.
1601 * font/devutf8/NOTES: Updated.
1603 * test-groff: Updated.
1605 2001-01-15 Gaius Mulley <gaius@glam.ac.uk>
1607 First cut of the new html device driver. Changes to pre-html and
1608 the new grohtml are too numerous to be documented here.
1610 Stuff related to `html' has been renamed to `html-old' and `html2'
1611 stuff has been renamed to `html' (including directories). The new
1612 html device driver is therefore invoked as `-Thtml'.
1614 Added new `\O' escape to suppress output (needed by html driver).
1616 Added functions and code to pass info about input-level commands
1617 (`.in', `.fl', etc.) to html driver.
1619 Three new functions (.html-begin, .html-end, and .html-image) for
1620 better html handling: `html-begin' will execute the remaining line
1621 if at the outermost nesting level, increasing an internal counter.
1622 `html-end' does the same but decreases the internal counter.
1623 `html_image' puts its arguments into a special node (suppress_node)
1624 to define an image region.
1626 The `output' request has been removed.
1628 * tmac/html-tags.tmac: Removed.
1629 * tmac/arkup.tmac: Updated and renamed to ...
1630 * tmac/www.tmac: New file.
1631 * tmac/markup.tmac Updated and renamed to ...
1632 * tmac/mwww.tmac: New file.
1633 * tmac/Makefile.sub: Updated.
1634 * tmac/an-old.tmac: Updated.
1635 * tmac/eqnrc: Updated.
1636 * tmac/groff_man.man
1637 * tmac/groff_markup.man: Updated and renamed to ...
1638 * tmac/groff_mwww.man: New file.
1639 * tmac/groff_tmac.man: Updated.
1640 * tmac/html-old.tmac: Updated and Renamed from html.tmac.
1641 * tmac/html.tmac: Updated and renamed from html2.tmac.
1642 * tmac/pspic.tmac: Updated html support.
1643 * tmac/s.tmac: Added html output support.
1644 * tmac/troffrc, tmac/troffrc-end: Updated.
1646 * Makefile.in, doc/Makefile: Updated.
1647 * doc/groff.texinfo: Added info about new `\O' escape.
1648 * doc/homepage.ms: Use `MAILTO' macro.
1650 * font/devhtml/DESC.proto: Add `C' font.
1651 * font/devhtml/Makefile.sub: Updated.
1652 * font/devhtml/R.proto: Minor fixes.
1653 * font/devhtml-old/Makefile.sub: Updated.
1655 * src/devices/grohtml-old/Makefile.sub: Updated.
1657 * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
1659 * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
1660 graphic_start): Add `inline' parameter. Update.
1661 (html_end_suppress, graphic_end): Update.
1663 * src/include/html-strings.h: New file.
1664 * src/include/htmlindicate.h: Comments updated.
1665 * src/include/printer.h: Updated.
1667 * src/preproc/eqn/main.cc (do_file, main): Updated.
1668 * src/preproc/pic/troff.cc (troff_output::start_picture,
1669 troff_output::finish_picture): Updated.
1670 * src/preproc/tbl/main.cc (process_input_file): Updated.
1672 * src/roff/groff/groff.cc (main): Updated.
1673 Pass device arguments to predrivers also.
1674 Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
1675 * src/roff/troff/env.h (environment): Updated.
1676 New elements `need_eol' and `ignore_next_eol' (for html output).
1677 * src/roff/troff/env.cc (environment::environment): Add initializers
1678 for `need_eol' and `ignore_next_eol'.
1679 (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
1681 (point_size, fill, no_fill, center, right_justify, line_length,
1682 indent, temporary_indent, break_request, handle_tab): Use
1684 (set_tabs): Use `add_html_tag_tabs()'.
1685 (environment::add_html_tag): Updated.
1686 (environment::do_break): Updated.
1687 * src/roff/troff/div.cc (space_request, flush_output): Use
1688 `environment::add_html_tag()'.
1689 * src/roff/troff/input.cc: Updated.
1690 New variable `html_level' to indicate nested `html-begin' requests.
1691 (file_iterator::fill): Use `environment::add_html_tag_eol()'.
1692 (non_interpreted_char_node, token_node, non_interpreted_node): Add
1693 `force_tprint()' method.
1694 (token::next): Handle `\O'.
1695 (do_suppress): Implement it.
1696 (html_begin, html_end, html_image): New functions.
1697 (init_output_requests): Renamed to ...
1698 (init_html_requests): this.
1700 (macro::append_str, macro::append_unsigned, macro::append_int): New
1702 New variable `output_low_mark_miny' to limit minimal value of y.
1703 (reset_output_registers): Use it.
1704 (output_request): Removed.
1705 (get_output_registers): New function.
1706 * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
1707 (*_node): Added `force_tprint()' if necessary.
1708 (special_node): New elements `tf' and `get_tfont()'.
1709 (suppress_node): New class.
1710 * src/roff/troff/node.cc:
1711 New global variables `image_no' and `suppress_start_page'.
1712 (real_output_file): New method `is_on()'.
1713 (troff_output_file): New method `start_special(tfont)'.
1714 (troff_output_file::really_print_line): Use `tprint' conditionally.
1715 (real_output_file::print_line): Updated.
1716 (real_output_file::on): Updated.
1717 (*_node): Added `force_tprint()'.
1718 (special_node::special_node): Initializer updated.
1719 (special_node::same, special_node::copy, special_node::tprint_start):
1721 (get_reg_int, get_reg_str): New functions.
1722 (suppress_node::*): New methods.
1723 New global variables last_position, last_image_filename;
1724 (min): New inline function.
1725 * src/roff/troff/reg.h, src/roff/troff/request.h,
1726 src/roff/troff/troff.h: Updated.
1728 2001-01-13 Werner LEMBERG <wl@gnu.org>
1730 * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
1731 documentation of `asciify' request.
1733 2001-01-12 Werner LEMBERG <wl@gnu.org>
1735 * src/roff/troff/input.cc: Move definition of special characters
1736 like `ESCAPE_TILDE' to ...
1737 * src/roff/troff/input.h: New file.
1738 * src/roff/troff/Makefile.sub (HDRS): Add it.
1740 Extending the .asciify request to `unformat' space characters also.
1742 * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
1743 to count input space characters.
1744 Update constructors to take care of it.
1745 * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
1746 `ESCAPE_SPACE' instead of normal space.
1747 (word_space_node::asciify): New method.
1748 (unbreakable_space_node::asciify): New method.
1749 (word_space_node::merge_space): New method.
1750 * src/roff/troff/env.cc (environment::space_newline,
1751 environment::space): Add code to initialize `num_spaces' (using the
1752 constructor of `word_space_node').
1753 * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
1756 2001-01-09 Werner LEMBERG <wl@gnu.org>
1758 * man/groff_char.man: Use table header traps only conditionally.
1760 2001-01-09 Bjarni Ingi Gíslason <bjarniig@hi.is>
1762 * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
1764 2001-01-08 Werner LEMBERG <wl@gnu.org>
1766 Introducing the `box' and `boxa' requests which are similar to
1767 `di' resp. `da' but omitting a partially filled line (which is
1768 restored after ending the diversion).
1770 * src/roff/troff/div.h (diversion): Add elements to save partially
1772 * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
1773 partially filled line.
1774 (divert, divert_append): Updated.
1775 (box, box_append): New functions.
1776 (init_div_requests): Use them.
1777 * src/roff/troff/env.h (environment): do_divert() is now a friend.
1778 * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
1780 * doc/groff.texinfo: Fix documentation of `lf' request.
1782 2000-12-25 Werner LEMBERG <wl@gnu.org>
1784 * src/roff/troff/troff.man, NEWS: Document `writem' request.
1786 2000-12-21 Werner LEMBERG <wl@gnu.org>
1788 Ignore `ss' request if in compatibility mode.
1790 * src/roff/troff/input.cc: Make `compatible_flag' non-static.
1791 * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
1792 * src/roff/troff/env.cc (space_size): Use it.
1794 * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
1795 `ss' request in nroff mode.
1797 * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
1800 2000-12-15 Ruslan Ermilov <ru@FreeBSD.org>
1802 * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
1804 2000-12-13 Werner LEMBERG <wl@gnu.org>
1806 * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
1807 * src/preproc/eqn/neqn.man: Small fixes and additions.
1809 2000-12-13 Ruslan Ermilov <ru@FreeBSD.org>
1811 * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
1814 * src/preproc/eqn/neqn.man: New file.
1816 * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
1819 * tmac/e.tmac: Add `T&' macro.
1820 Fix `indent cannot be negative' warning.
1821 * tmac/s.tmac: Fix `indent cannot be negative' warning.
1823 2000-12-07 Werner LEMBERG <wl@gnu.org>
1825 * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
1827 2000-12-06 Werner LEMBERG <wl@gnu.org>
1829 * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
1832 * MORE.STUFF: Added info about deroff for djgpp.
1834 * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
1835 documentation of -rcR switch.
1837 2000-12-03 Werner LEMBERG <wl@gnu.org>
1839 * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
1840 if -rcR=1 (which is now the default in nroff mode), a single, very
1841 long page is created instead of multiple pages: All `ne' and `wh'
1842 requests are put into conditionals; a new macro `an-end' is added to
1843 be called with `em'.
1845 Some other minor cleanups.
1847 * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
1849 2000-12-02 Werner LEMBERG <wl@gnu.org>
1851 Fixing a bug which prevented hyphenation in words followed
1852 immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
1854 * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
1855 Adding possibly_break_line().
1856 * src/roff/troff/env.h (environment): Make possibly_break_line()
1859 Make `\~' usable in .tr request.
1861 * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
1862 (token): Add stretchable_space().
1863 * src/roff/troff/input.cc (token::next, token::delimiter,
1864 token::description, process_input_stack, do_translate,
1865 add_to_node_list, token::process): Use it.
1866 * src/roff/troff/node.h (node): Add fourth parameter to add_char()
1867 for adjusting the space.
1868 * src/roff/troff/node.cc (node::add_char): Implement it. Add code
1869 for stretchable space.
1870 * src/roff/troff/input.cc (token::add_to_node_list): Use it.
1871 (make_node): Add code for stretchable space.
1872 * src/roff/troff/env.cc (environment::add_char): Use it.
1873 * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
1874 (get_copy, token::next, transparent_translate, asciify): Use it.
1876 * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
1877 doc/groff.texinfo: Updated.
1878 * man/groff.man: Small reorderings.
1880 2000-11-23 Werner LEMBERG <wl@gnu.org>
1883 * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
1885 * src/roff/troff/input.cc (main): Add `config_macro_path' and
1886 `safer_macro_path' to -M option.
1887 * src/roff/troff/troff.man: Fixes.
1889 2000-11-22 Werner LEMBERG <wl@gnu.org>
1891 Use safer path (except for config files) if -U isn't specified. Add
1892 a special macro path (without home and current directory) for config
1893 files. Add home directory to unsafe path for consistency. Don't
1894 include the home directory in the font path.
1896 * src/lib/libgroff/macropath.cc: Add `config_macro_path', change
1898 * src/include/macropath.h: Add `config_macrp_path'.
1899 * src/lib/libgroff/fontfile.cc: Fix font path.
1900 * src/roff/troff/input.cc (process_startup_file): Use
1901 `config_macro_path'.
1902 (main): Select unsafe path if -U is given.
1904 * src/preproc/eqn/main.cc (main): Fixing search path for
1906 * src/preproc/eqn/eqn.man: Updated.
1908 * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
1911 * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
1912 src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
1913 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
1914 src/devices/grotty/grotty.man: Updated.
1916 * Makefile.in: Fix comments.
1918 2000-11-17 Werner LEMBERG <wl@gnu.org>
1920 * tmac/safer.tmac: Empty file added (again) for compatibility
1922 * tmac/Makefile.sub: Updated.
1924 2000-11-16 Werner LEMBERG <wl@gnu.org>
1926 * src/devices/grodvi/dvi.cc (main),
1927 src/devices/grohtml2/post-html.cc (main),
1928 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1929 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1930 (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1931 (main), src/preproc/html2/pre-html.cc (main),
1932 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1933 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1934 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1935 (main), src/utils/hpftodit/hpftodit.cc (main),
1936 src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
1937 (main), src/utils/lookbib/lookbib.cc (main),
1938 src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
1939 (main): Use stdout for -v.
1940 * src/roff/groff/groff.cc (run_commands),
1941 src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
1942 to make direct printing to stdout possible.
1943 * src/roff/groff/pipeline.h: Updated.
1945 * src/utils/afmtodit/afmtodit.pl: Add -v switch.
1946 * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
1947 * src/utils/afmtodit/afmtodit.man: Updated.
1949 * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
1950 (version): New function.
1952 * src/utils/addftinfo/addftinfo.man: Updated.
1954 * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
1955 Fixing copyright dates.
1957 * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
1960 * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
1963 * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
1965 2000-11-15 Werner LEMBERG <wl@gnu.org>
1967 In all programs, make -v return immediately with exit status 0 to
1968 be compliant with the GNU standard.
1970 * src/devices/grodvi/dvi.cc (main),
1971 src/devices/grohtml2/post-html.cc (main),
1972 src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
1973 (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
1974 (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
1975 (main), src/preproc/html2/pre-html.cc (main),
1976 src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
1977 src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
1978 (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
1979 (main): Implement it.
1982 * src/roff/groff/groff.cc (main): Add copyright notice. Add refer
1983 and postprocessors to the -v option.
1985 * src/roff/grog/grog.pl: Implement -v.
1986 * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
1987 * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
1989 * src/roff/nroff/nroff.sh: Implement -v.
1990 * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
1991 * src/roff/nroff/nroff.man: Updated.
1993 * src/preproc/eqn/main.cc (main): Fix comment typo.
1995 * MORE.STUFF: Added info about djgpp port of grap.
1997 2000-11-14 Werner LEMBERG <wl@gnu.org>
1999 * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
2000 mode (or rather, implemented non-compatibility mode).
2001 * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
2003 * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
2004 replacing it -- we don't find gxditview otherwise.
2005 * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
2007 * src/preproc/pic/depend: Removed. Unnecessary.
2009 Implemented dummy keyword `solid' in pic for compatibility with
2012 * lex.cc (lookup_keyword): Added `solid'.
2013 * pic.y: Added SOLID with dummy rule.
2014 * pic.cc, pic_tab.h: Regenerated.
2015 * doc/pic.ms: Updated.
2017 2000-11-13 Werner LEMBERG <wl@gnu.org>
2019 For security reasons, don't use the current directory but the home
2020 directory while searching and scanning troffrc and troffrc-end.
2021 Similarly, replace the current directory with the home directory
2024 * Makefile.in (fontpath, tmacpath): Remove current directory.
2026 * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
2027 two parameters `add_home' and `add_current'.
2028 (search_path::~search_path, search_path::command_line_dir,
2029 search_path::open_file): Remove tests for `dirs' being zero.
2030 * src/include/searchpath.h: Adjust.
2031 * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
2033 * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
2035 * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
2036 * src/roff/troff/input.cc: Use `mac_path', initialized with
2038 (process_startup_file): Set `mac_path' to `safer_macro_path'.
2039 * src/roff/troff/env.cc: Use `mac_path'.
2041 * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
2043 * NEWS, man/roff.man, src/roff/troff/troff.man,
2044 src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
2047 2000-11-12 Werner LEMBERG <wl@gnu.org>
2049 * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
2051 * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
2052 * configure.in: Fix typo in comment.
2053 * configure: Regenerated.
2055 * src/libgroff/*, src/include/*, src/roff/troff/*: Fixing copyright
2058 2000-11-08 Werner LEMBERG <wl@gnu.org>
2060 Add system tmac directory (/usr/local/lib/groff/site-tmac).
2062 * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
2063 (uninstall_dirs): Add $(libdir), $(libprogramdir), and
2066 * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
2067 * tmac/Makefile.sub (install_data): Create
2068 $(systemtmacdir) and $(localtmacdir).
2069 (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
2070 * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
2071 NEWS, doc/groff.texinfo: Updated and minor fixes.
2073 * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
2074 * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
2075 $(systemtmacdir) since the wrapper files are platform-dependent.
2077 2000-11-01 Werner LEMBERG <wl@gnu.org>
2079 * doc/groff.texinfo: Fix typo.
2081 2000-10-26 Werner LEMBERG <wl@gnu.org>
2083 Convert macros `tmac.XXX' to `XXX.tmac'. Special cases:
2084 tmac.doc.old -> doc-old.tmac
2085 tmac.an.old -> an-old.tmac
2087 * tmac/tmac.*: Moved to ...
2088 * tmac/*.tmac: this.
2089 * tmac/man.local: Fix comment.
2090 * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
2091 tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated.
2092 Added some `FILES' sections. More use of @...@ directives. Other
2094 * arch/djgpp/README, font/devutf8/NOTES: Updated.
2095 * doc/homepage.ms, doc/groff.texinfo: Updated.
2096 * man/groff.man, man/roff.man: Updated.
2097 * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
2098 src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
2099 src/devices/grotty/grotty.man: Updated.
2100 * src/preproc/pic/pic.man: Updated.
2101 * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
2102 instead of -mdoc.old.
2103 * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
2104 * src/roff/nroff/nroff.man: Updated.
2107 * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
2109 * tmac/mm.diff: Removed -- it has no use now since the mm package
2112 * tmac/*: Removed trailing spaces.
2114 * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
2115 the tmac subdirectory also).
2117 * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
2118 * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
2119 stuff since it is no longer needed.
2121 * README, PROBLEMS: Updated.
2123 2000-10-25 Werner LEMBERG <wl@gnu.org>
2125 Invert current behaviour: Search first FOOBAR.tmac, then
2128 * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
2129 (open_mac_file, macro_source): Implement it.
2130 * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
2131 doc/groff.texinfo, NEWS: Document it.
2133 * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
2134 Small documentation improvements.
2136 * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
2139 * font/devps/Makefile.sub: Fix rules for dingbats.*map.
2141 2000-10-24 Werner LEMBERG <wl@gnu.org>
2143 Add local tmac directory (groff/site-tmac).
2145 * Makefile.in: Add $(localtmacdir).
2146 (uninstall_dirs): Add $(localtmacdir).
2147 * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
2148 * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
2149 in $(localtmacdir). Create $(localtmacdir).
2150 * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
2151 Updated and minor fixes.
2153 Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
2155 * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
2157 2000-10-23 Werner LEMBERG <wl@gnu.org>
2159 Move hyphen.us to tmac directory.
2161 * src/roff/troff/hyphen.us: Removed.
2162 * src/tmac/hyphen.us: Added.
2163 * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
2165 Change installation structure for data files from .../groff/... to
2166 .../groff/<version><revision>/... to be conform with other GNU
2169 * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
2170 doc/Makefile: Implement it.
2171 * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
2172 * configure: Updated.
2173 * arch/djgpp/README, font/devutf8/NOTES: Use it.
2174 * NEWS: Document it.
2175 * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
2176 @MACRODIR@ instead of hard-coded directories.
2178 2000-10-22 Werner LEMBERG <wl@gnu.org>
2180 Implement $GROFF_BIN_PATH environment variable (which defaults to
2181 $bindir) used for child programs of groff and similar wrappers.
2183 * gendefs.sh: Improve documentation.
2184 * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
2185 src/preproc/eqn/Makefile.sub (neqn),
2186 src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
2187 * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
2189 * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
2190 $GROFF_PATH__ (the latter for communication with troff).
2191 * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
2193 * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
2194 doc/groff.texinfo: Document it.
2196 * doc/groff.texinfo: Improve documentation of troff's -a option.
2198 2000-10-17 Gaius Mulley <gaius@glam.ac.uk>
2200 * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
2201 non-intrusive eol marker.
2202 (troff_output_file::determine_line_limits): New function.
2203 (troff_output_file::draw): Use it.
2204 * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
2205 output_pending_lines() instead of output_line().
2206 * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
2207 * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
2208 createImage): Small fixes.
2210 2000-10-14 Werner LEMBERG <wl@gnu.org>
2212 Replace tmac.safer with a real secure solution.
2214 * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
2215 system_request, pipe_output): Disable requests if in safer mode.
2216 * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
2217 * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
2218 * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
2219 doc/groff.texinfo, src/roff/groff/groff.man,
2220 src/roff/troff/troff.man, arch/djgpp/README: Updated.
2222 * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
2223 (resource_manager::output_prolog): Replace setenv() with putenv().
2225 2000-10-09 Werner LEMBERG <wl@gnu.org>
2227 * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
2228 src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
2229 src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
2230 src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
2231 compilation errors with some compilers. It seems that this code
2232 is no longer necessary -- if yes, it is easy to add some #ifdef's
2233 for that particular old-fashioned compiler.
2235 * MORE.STUFF: Added info about Meta-tbl.
2237 * doc/groff.texinfo: Added more info about `.if "..."..."'.
2239 2000-10-07 Werner LEMBERG <wl@gnu.org>
2241 Adding a new escape sequence \B'...': If the string between
2242 the delimiters is a valid numeric expression, return the character
2243 `1', and `0' otherwise. This is an analogon to \A.
2245 * src/roff/troff/input.cc (do_expr_test): Implement it.
2246 (token::next): Use it.
2247 * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
2249 * tmac/tmac.trace: Made independent from escape character.
2251 2000-10-06 Werner LEMBERG <wl@gnu.org>
2253 Adding a new request .dei: define indirect. The first and second
2254 parameter of .dei are taken from string registers instead directly;
2255 this very special request is needed to make tmac.trace independent
2256 from the escape character (which might even be disabled).
2258 * src/roff/troff/input.cc (do_define_macro): Implement it.
2259 (define_macro_indirect): New function.
2260 (init_input_requests): Use it.
2262 Adding two requests .ecs and .ecr: Save and restore the escape
2263 character. These two requests are needed to make tmac.trace
2264 independent from the escape character (which might even be
2267 * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
2269 (init_input_requests): Use it.
2271 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2273 2000-09-22 Ricardo Soares Guimarães <ricardo@conectiva.com.br>
2275 Adding a new option -P and new environment variable GROPS_PROLOGUE
2276 to grops, selecting a different prologue file (minor modifications
2279 * src/devices/grops/psrm.cc (resource_manager::output_prolog),
2280 src/devices/grops/ps.cc (main): Implement it.
2281 * src/devices/grops/grops.man, NEWS: Document it.
2283 2000-09-22 Werner LEMBERG <wl@gnu.org>
2285 * INSTALL: Add info about selecting paper format.
2287 2000-09-21 Werner LEMBERG <wl@gnu.org>
2289 * src/roff/troff/input.cc (main): Fixing compiler warning.
2290 * src/include/{driver.h, lib.h}: Move inclusion of string.h and
2291 strings.h from the former to the latter.
2292 * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
2293 stuff from the former to the latter.
2295 2000-09-11 Werner LEMBERG <wl@gnu.org>
2297 Implementing two new requests .tm1 and .tmc: The former is similar
2298 to .tm but can output leading spaces; its syntax is similar to
2299 defining a string, i.e., a `"' can be used to mark the beginning of
2300 the string to be written to stderr: `.tm1 " test'. The latter is
2301 similar to .tm1 but doesn't write out a final newline character.
2303 * src/roff/troff/input.cc (terminal1, terminal_continue,
2304 do_terminal): New functions.
2305 (init_input_requests): Use them.
2306 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2308 2000-09-09 Werner LEMBERG <wl@gnu.org>
2310 * tmac/groff_mdoc.samples.man: Small fixes.
2312 2000-09-08 Werner LEMBERG <wl@gnu.org>
2314 * tmac/groff_mdoc.man: Fixing typo.
2316 2000-09-02 Werner LEMBERG <wl@gnu.org>
2318 Implementing a .nop request which does nothing.
2320 * src/roff/troff/input.cc (nop_request): New function.
2321 (init_input_requests): Use it.
2322 * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
2324 2000-09-01 Werner LEMBERG <wl@gnu.org>
2326 * doc/groff.texinfo: Added some comments.
2328 2000-08-30 Werner LEMBERG <wl@gnu.org>
2330 * src/roff/troff/TODO: Updated.
2332 2000-08-28 Bruno Haible <haible@clisp.cons.org>
2334 * contrib/mm/Makefile.sub: New target 'all', makes all prerequisites
2337 2000-08-25 Werner LEMBERG <wl@gnu.org>
2339 * doc/groff.texinfo: Fix comment how to compile the DVI file.
2341 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
2343 * font/devps/generate/Makefile (SHELL): Define explicitly to
2344 "/bin/sh", for non-Unix platforms.
2345 (extraclean): Use a more portable "" quoting instead of a
2346 backslash (which doesn't work on DOS/Windows).
2348 * font/devlj4/generate/Makefile (extraclean): Ditto.
2350 * font/devdvi/generate/Makefile (extraclean): Ditto.
2352 2000-08-25 Werner LEMBERG <wl@gnu.org>
2354 * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
2355 src/roff/troff/troff.man: Document Eli's latest changes.
2357 2000-08-25 Eli Zaretskii <eliz@is.elta.co.il>
2359 * src/roff/troff/input.cc (open_mac_file, macro_source): Support
2360 macro file names of the form NAME.tmac as well as tmac.NAME.
2362 2000-08-25 Werner LEMBERG <wl@gnu.org>
2364 * src/include/posix.h: Remove definition of FILENAME_MAX.
2366 * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
2367 `sys_fatal' and `stop' function().
2369 * test-groff: Updated.
2371 2000-08-24 Gaius Mulley <gaius@glam.ac.uk>
2373 Added the new troff command .output <arg> to suppress output (while
2374 still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
2375 registers (for passing the output dimensions to the output device).
2377 * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
2379 * src/roff/troff/node.h, src/roff/troff/node.cc
2380 (troff_output_file::really_print_line,
2381 ascii_output_file::really_print_line,
2382 supress_output_file::really_print_line): Use `width' parameter.
2383 (troff_output_file::really_on, troff_output_file::really_off,
2384 output_file::on, output_file::off, real_output_file::on,
2385 real_output_file::off, real_output_file::really_on,
2386 real_output_file::really_off): New functions.
2387 (real_output_file:public output_file): New variable `output_on'.
2388 (real_output_file::begin_page, real_output_file::copy_file,
2389 real_output_file::transparent_char, real_output_file::print_line):
2391 (real_output_file::print_line): Use check_output_limits.
2392 * src/roff/troff/reg.h, src/roff/troff/request.h,
2393 src/roff/troff/input.cc (assign_registers): New function to remove
2395 (do_ps_file): Use it.
2396 (check_output_limits, reset_output_registers, output_request,
2397 init_output_requests): New functions.
2398 (init_input_requests): Updated.
2400 Added new grohtml2 device and html2 preprocessor (coding
2401 not yet finished) which will eventually replace grohtml.
2403 * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
2405 * src/include/htmlindicate.h, src/include/htmlindicate
2406 (html_begin_suppress, html_end_suppress): New functions.
2407 * src/preproc/tbl/main.cc: Use it.
2408 * src/roff/groff/groff.cc: Add support for html2 device (which will
2409 automatically invoke the html2 preprocessor).
2410 * src/roff/troff/input.cc (is_html2): New variable.
2411 * src/roff/troff/troff.h, src/roff/troff/env.h,
2412 src/roff/troff/env.cc (environment::add_html_tag): New function
2414 (environment::do_break): Use it.
2415 * font/devhtml2/*: New files.
2416 * src/devices/grohtml2: New device.
2417 * src/preproc/html2: New preprocessor.
2418 * tmac/tmac.html-tags, tmac/tmac.html2: New files.
2420 2000-08-23 Werner LEMBERG <wl@gnu.org>
2422 * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
2424 2000-08-22 Werner LEMBERG <wl@gnu.org>
2426 * src/include/lib.h: Provide a fix for IRIX to not include
2429 2000-08-18 Werner LEMBERG <wl@gnu.org>
2431 * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
2432 since some non-GNU sed programs can't handle null regexps.
2433 * configure, src/preproc/eqn/Makefile.sub,
2434 src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
2436 * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
2437 bug (string.h and strings.h are both needed according to latest
2440 * MORE.STUFF: Added info about unroff and troffcvt.
2442 2000-08-08 Werner LEMBERG <wl@gnu.org>
2444 * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
2447 * tmac/tmac.man.old: Remove unused number register.
2449 * tmac.doc: Minor documentation fix.
2451 2000-08-07 Paul Eggert <eggert@twinsun.com>
2453 * src/roff/groff/pipeline.c (is_system_shell):
2454 Fix typo: "monocased_shell" no longer exists.
2456 2000-08-07 Paul Eggert <eggert@twinsun.com>
2458 Remove FILENAME_MAX limits.
2460 * src/roff/groff/pipeline.c (is_system_shell): Do not assume
2461 that the argument length is less than FILENAME_MAX.
2462 * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
2463 Use struct hack to allocate and free file name.
2464 (struct xtmpfile_list): fname is now part of the structure,
2465 not a pointer to another string.
2467 2000-08-07 Tom Schmidt <tschmidt@micron.com>
2469 * src/include/posix.h: Add a default value for FILENAME_MAX.
2471 2000-08-06 Paul Eggert <eggert@twinsun.com>
2473 Add support for new BSD-style man pages (with ".Dd" instead of
2474 ".TH"), so that "groff -man" understands both styles, even
2475 when running "groff -man" on a host whose system man page
2476 macros don't support ".Dd".
2478 * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
2479 (stamp-wrap): Source tmac.andoc first when wrapping man macros,
2480 in case the system man macros don't define Dd or TH.
2482 * tmac/tmac.an.old: Renamed from tmac/tmac.an.
2483 * tmac/tmac.an: New one-line file.
2484 * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
2486 2000-08-06 Werner LEMBERG <wl@gnu.org>
2488 * src/roff/troff/troff.man: Fixing typos.
2490 Version 1.16.1 released
2491 =======================
2493 2000-07-31 Werner LEMBERG <wl@gnu.org>
2495 Preparing release 1.16.1.
2497 * REVISION: Revision number set to 1.
2498 * MORE.STUFF: Added info about port to DOS.
2499 * NEWS, win32-diffs: Updated.
2501 * src/include/nonposix.h: Remove first line -- this file is used
2504 * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
2507 2000-07-30 Werner LEMBERG <wl@gnu.org>
2509 * doc/texinfo.tex: Update to latest version.
2511 2000-06-28 Paul Eggert <eggert@twinsun.com>
2513 * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
2514 commands that fail. Don't assume that "export a=b" is valid shell
2515 syntax. This is needed for Solaris 2.5.1.
2517 * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
2518 comment about missing Solaris headers.
2520 * PROBLEMS: Add section about problems with Sun Make and VPATH.
2522 2000-06-25 Werner LEMBERG <wl@gnu.org>
2524 * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
2527 * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
2529 * win32-diffs: Updated.
2530 * README.WIN32: Added CRs to make all Windows editors happy.
2532 * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
2533 src/roff/groff/pipeline.c).
2535 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2537 * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
2538 $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
2540 2000-06-17 Eli Zaretskii <eliz@is.elta.co.il>
2542 * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
2543 (tfm::load, gf::load): Open tfm and gf files in binary mode: these
2545 (main): Support non-Posix systems with several different styles of
2546 slash characters in file names.
2548 * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
2549 (main) [SET_BINARY]: Switch stdin into binary mode.
2551 * src/utils/indxbib/indxbib.cc: #include nonposix.h.
2552 (main): Support file names with several possible slash-type
2553 characters, as given by DIR_SEPS[] in nonposix.h.
2554 (main) [__MSDOS__]: If renaming the temporary index file fails
2555 because it has more than one dot in its trunk, replace the dot
2556 with an underscore and try again.
2557 (do_file): Use FOPEN_RB instead of "r". Skip every CR before a
2559 [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
2561 * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
2562 (File::File): Open the input file in binary mode. Strip CR
2563 characters from each CR-LF pair.
2564 (xbasename): Support file names with several possible slash-type
2565 characters, as given by DIR_SEPS[] in nonposix.h.
2567 * src/include/Makefile.sub (HDRS): Add nonposix.h.
2569 * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
2570 (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
2571 [!_POSIX_VERSION]: Define for traditional Unix systems.
2572 (real_output_file::real_output_file): Remove the MSVC-specific
2573 call to popen, use instead POPEN_WT, appropriately defined on
2574 nonposix.h. #include nonposix.h.
2575 (real_output_file::~real_output_file): Remove the MSVC-specific
2576 call to pclose, a suitable macro is now defined on nonposix.h.
2577 Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
2578 and WEXITSTATUS instead of assuming traditional Unix
2579 interpretation of the status returned by pclose.
2581 * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
2582 call to popen, use POPEN_RT instead (appropriately defined on
2583 nonposix.h). #include nonposix.h.
2584 (ps_bbox_request): Open the PostScript file in binary mode.
2585 Close the file after processing it.
2586 (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
2589 * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
2590 A version of run_pipeline that doesn't use `fork'.
2591 (signal_catcher) [__MSDOS__ || _WIN32]: New function.
2592 (system_shell_name, system_shell_dash_c)
2593 (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
2594 the ugliness of testing DOS/Windows file names for equality, and
2595 support both stock shells and ports of Unix shells.
2597 * src/roff/groff/groff.cc: #include nonposix.h.
2598 (BSHELL): Definition moved to nonposix.h.
2599 (main): Use PATH_SEP[0] instead of literal ':'. Use BSHELL_DASH_C
2600 instead of a literal "-c".
2601 (xbasename): Support file names with several possible slash-type
2602 characters, as given by DIR_SEPS[] in nonposix.h.
2603 (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
2606 * src/preproc/soelim/soelim.cc: #include nonposix.h.
2607 (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
2609 * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
2612 * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
2614 * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
2617 * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
2619 * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
2620 P_tmpdir is defined, use it instead of the literal "/tmp".
2621 (remove_tmp_files, add_tmp_file): New functions.
2622 (xtmpfile): Record temporary files and register an atexit function
2623 to delete them explicitly, instead of relying on the OS to do
2624 that, which doesn't work on non-Unix systems.
2626 * src/libs/libgroff/searchpath.cc: #include nonposix.h.
2627 (search_path::search_path): Use PATH_SEP instead of a literal
2629 (search_path::command_line_dir): Ditto.
2630 (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
2631 to support non-Posix systems.
2633 * src/libc/libbib/search.cc: #include nonposix.h.
2634 (search_list::add_file): Open the file in binary mode.
2636 * src/libs/libbib/linear.cc: #include nonposix.h.
2637 (file_buffer::load): Remove \r characters preceding \n from the
2640 * src/libs/libbib/index.cc: #include nonposix.h.
2641 (make_index_search_item): Open index_filename in O_BINARY mode.
2642 (index_search_item_iterator::get_tag): Ditto. Remove \r
2643 characters before \n characters.
2644 (index_search_item::check_files): Open files in binary mode.
2645 (index_search_item::munge_filename): Support DOS-style file names
2646 with backslashes and drive letters, use IS_ABSOLUTE.
2648 * src/devices/grops/ps.cc: #include nonposix.h.
2649 (main) [SET_BINARY]: Switch stdout to binary mode.
2651 * src/devices/grolj4/lj4.cc: #include nonposix.h.
2652 (main) [SET_BINARY]: Switch stdout to binary mode.
2654 * src/devices/grolbp/lbp.cc: #include nonposix.h
2655 (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
2657 * src/devices/grodvi/dvi.cc: #include nonposix.h.
2658 [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
2660 (main) [SET_BINARY]: Switch stdout to binary mode.
2661 [_MSC_VER]: Remove an explicit call to _setmode.
2663 * src/include/nonposix.h: New file.
2665 * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
2666 operation when building with DJGPP.
2667 ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
2668 ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
2671 * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
2673 (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
2674 etc. can include a semi-colon on DOS/Windows.
2675 (depend.temp): Use depend1.temp instead of depend.temp1, to
2676 prevent files from overerwiting each other on 8+3 filesystems.
2678 * gendef.sh (t): Change definition to work with DOS/Windows.
2680 doc/groff.texinfo: Apart of some typo corrections, I also changed
2681 some index entris, to make them more non-ambiguous, and also put
2682 @ignore around some parts that are not yet written, to allow the
2683 Info output be readable.
2685 2000-06-10 Gael Queri <gqueri@mail.dotcom.fr>
2687 Replaced specific checks for function declarations with a generic
2688 routine taken from GNU bfd.
2690 * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
2691 GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
2692 * configure.in: Use it.
2693 * src/devices/grolbp/lbp.cc, src/include/lib.h,
2694 src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
2695 src/roff/groff/groff.cc: Use it.
2696 * Makefile.in, configure: Updated.
2698 2000-06-07 Paco Andres Verdu <pandres@dragonet.es>
2700 * src/devides/grolbp/lbp.h: Removed unused variables.
2702 2000-05-31 Keith Thompson <kst@sdsc.edu>
2704 * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
2707 2000-05-31 Werner LEMBERG <wl@gnu.org>
2709 * aclocal.m4 (GROFF_SRAND): New function to test the return value
2710 of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
2711 * configure.in: Use it.
2712 * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
2713 * configure, Makefile.in: Updated.
2715 * configure.in: Add test for strncasecmp().
2716 * src/include/lib.h: Use it.
2718 2000-05-29 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
2720 * src/preproc/grn/Makefile.sub: Add MLIB.
2722 2000-05-29 Nix <nix@esperi.demon.co.uk>
2724 * Makefile.in: Use @datadir@ and @mandir@ appropriately.
2726 2000-05-29 Werner LEMBERG <wl@gnu.org>
2728 * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
2730 * PROBLEMS: Small update.
2732 * src/devices/grolbp/lbp.cc: Various small fixes.
2734 2000-05-28 Keith Thompson <kst@sdsc.edu>
2736 * src/roff/nroff/nroff.sh: Fix main loop syntax.
2738 * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
2740 2000-05-25 Werner LEMBERG <wl@gnu.org>
2742 * man/roff.man: Removed unused macro.
2744 2000-05-24 Werner LEMBERG <wl@gnu.org>
2746 * Makefile.in (dist): Remove src/xditview/Imakefile explicitly.
2747 This is needed e.g. if you do
2748 `make distclean; ./configure; make dist'.
2750 Version 1.16 released
2751 =====================
2753 2000-05-23 Werner LEMBERG <wl@gnu.org>
2755 Adding font CWI (constant width italic) to devdvi.
2757 * font/devdvi/CWI: New file.
2758 * font/devdvi/generate/Makefile: Add generating rule.
2759 * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
2760 tmac/tmac.dvi: Use it.
2761 * NEWS: Announce it.
2763 * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
2764 * font/devlj4/generate/Makefile: Cosmetic changes only.
2766 * man/groff.man: Removed most of the redundant description of
2767 special characters (which is in groff_char.man). Added font
2768 translation CB->CR for devdvi. Other minor fixes.
2770 * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
2771 (registered) symbols.
2773 2000-05-22 Werner LEMBERG <wl@gnu.org>
2775 * doc/Makefile: Added rule for creating info files.
2777 * font/devdvi/*: Added kernings for `cq' glyph. Updated to latest
2779 * font/devdvi/generate/Makefile: Fixed dependencies.
2781 * font/devps/*: Regenerated. Heavy changes for Bookman and
2782 NewCentury Schoolbook!
2783 * font/devps/generate/afmname: Will now run with GNU awk.
2784 * font/devps/generate/textmap: Added forgotten `cq' glyph name.
2785 * font/devps/generate/Makefile: Cosmetic changes only.
2787 2000-05-21 Werner LEMBERG <wl@gnu.org>
2789 * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
2790 10, 11, or 12) to support output with 11pt and 12pt base font sizes.
2791 `.SS' now produces a heading with a smaller size than `.SH'.
2792 Completely formatted.
2793 * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
2795 * man/groff.man: Improved table appearance. Use of `eo' request
2796 to reduce number of doubled backslashes in macro definitions.
2797 Replacing `\e' with `\(rs'. Other minor fixes.
2799 * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
2800 to have correct line number.
2802 * INSTALL: Small improvement.
2804 2000-05-20 Bernd Warken <bwarken@mayn.de>
2806 * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
2809 2000-05-19 Bernd Warken <bwarken@mayn.de>
2811 * man/groff.man: Complete update (with a lot of corrections by WL).
2813 2000-05-18 Werner LEMBERG <wl@gnu.org>
2815 Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
2817 * font/*/*: Implement it.
2818 * man/groff_char.man, NEWS: Document it.
2820 * src/include/unix.h: Removed. It isn't used.
2822 * doc/groff.texinfo: Slight improvements.
2824 2000-05-17 Werner LEMBERG <wl@gnu.org>
2826 * README, win32-diffs: Small fixes and improvements.
2828 2000-05-16 Werner LEMBERG <wl@gnu.org>
2830 * FDL: New file (the Free Documentation License version 1.1).
2832 * doc/groff.texinfo: Added many start-up values for gtroff.
2833 Some structural improvements of the source code.
2835 2000-05-15 Werner LEMBERG <wl@gnu.org>
2837 * src/roff/troff/input.cc: Added small comment about troffrc-end.
2838 * src/roff/troff/troff.man: Added info about troffrc-end.
2840 2000-05-14 Werner LEMBERG <wl@gnu.org>
2842 * Makefile.in (EXTRADIRS): Fix typos.
2843 (dist): Handle deletion of old .tar.gz file correctly.
2844 (DISTDIRS): Include all tty output devices.
2846 * doc/groff.texinfo: Adding more cross references; countless other
2849 2000-05-13 Werner LEMBERG <wl@gnu.org>
2851 * MORE.STUFF: Added Robert Marks's utilities.
2853 2000-05-12 Werner LEMBERG <wl@gnu.org>
2855 Added win32 port contributed by Blake McBride
2856 <blake@florida-software.com>.
2858 * README.WIN32, win32-diffs: New files.
2861 * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
2862 (tmove, tmove2): Added parentheses to avoid compiler warnings.
2863 (change): Removed unused variables.
2865 * src/preproc/grn/main.cc (main, conv): Removed unused variables.
2866 (savebounds): Changed return value from `int' to `void'.
2867 * src/preproc/grn/hdb.cc: Ditto.
2869 * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
2870 final backslash in comment to avoid compiler warning.
2872 * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
2874 * doc/groff.texinfo: More fixes.
2876 2000-05-11 OKAZAKI Tetsurou <okazaki@be.to>
2878 * tmac/tmac.doc: Documentation fix.
2880 2000-05-11 Werner LEMBERG <wl@gnu.org>
2882 * doc/groff.texinfo: Reading the source code shows up a lot of
2883 omissions and incorrect data... More conversion to @Deffn macros.
2885 2000-05-10 Werner LEMBERG <wl@gnu.org>
2887 * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
2890 * src/roff/troff/request.h: Removing unused `no_break_flag'.
2892 2000-05-09 Werner LEMBERG <wl@gnu.org>
2894 * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
2897 * doc/groff.texinfo: Extended history section. More conversion to
2898 @Deffn macros. More .tr documentation.
2900 2000-05-07 Werner LEMBERG <wl@gnu.org>
2902 * doc/groff.texinfo: Completed tab section. Added info about
2905 2000-05-06 Mike MacIsaac <mikemac@us.ibm.com>
2907 * PROBLEMS: Describe configure script fix for OS/390 Unix.
2909 2000-05-05 Werner LEMBERG <wl@gnu.org>
2911 * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
2913 * NEWS: Document it.
2915 * man/troff.man: Minor optical improvements.
2917 2000-05-03 Werner LEMBERG <wl@gnu.org>
2919 Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
2921 * font/*/*: Implement it.
2922 * man/groff_char.man, NEWS: Document it.
2924 2000-05-02 Werner LEMBERG <wl@gnu.org>
2926 * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
2928 * NEWS: Document the three new man pages.
2930 * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
2931 * configure: Updated.
2933 * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
2935 2000-05-01 Werner LEMBERG <wl@gnu.org>
2937 Added grap support to grog.
2939 * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
2940 * src/roff/grog/grog.man: Document it.
2942 * doc/groff.texinfo, NEWS: Add info about grap support.
2944 Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
2945 (with slight fixes by me).
2947 * tmac/groff_tmac.man: New file documenting tmac mechanism.
2948 * tmac/Makefile.sub: Add groff_tmac.man.
2949 * man/roff.man: New file giving overview of roff system.
2950 * man/troff.man: A short reference of troff.
2951 * man/Makefile.sub: Add roff.man and troff.man.
2953 2000-04-30 Werner LEMBERG <wl@gnu.org>
2955 Added grap support to groff.
2957 * src/roff/groff/groff.cc: Implement it.
2958 * src/roff/groff/groff.man: Document it.
2960 * src/devices/grotty/grotty.man: Add cp1047 device.
2961 * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
2963 * src/roff/groff/groff.man: Ditto.
2964 * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
2965 * doc/groff.texinfo: Ditto.
2967 * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
2970 2000-04-29 Werner LEMBERG <wl@gnu.org>
2972 * man/groff_char.man: Add `pc' glyph.
2973 * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
2974 * tmac/tmac.tty: Add `pc' glyph.
2975 * tmac/tmac.tty-char: Use/add `pc' glyph. Don't call tmac.latin1 if
2976 we use cp1047 output device.
2978 * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
2979 there are still hardcoded latin1->unicode values in utf8's font
2981 * configure: Updated.
2982 * NEWS: Minor clarification. Updated.
2984 * PROBLEMS: Formatted. Added info about C++ fix pack for OS/390
2987 2000-04-28 Werner LEMBERG <wl@gnu.org>
2989 Adding EBCDIC code page 1047.
2991 * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
2992 font/devcp1047/DESC.proto: New files.
2994 * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
2995 either ascii/latin1 or cp1047.
2996 * Makefile.in: Use it.
2997 * configure: Updated.
2999 Replacing and/or adding `md' (mathdot) glyph with `pc'
3000 (periodcentered) in all text fonts.
3002 * font/*/*: Change it.
3004 2000-04-27 Werner LEMBERG <wl@gnu.org>
3006 * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
3008 * configure.in: Add check for strings.h.
3009 * src/include/driver.h: Use HAVE_STRINGS_H.
3010 * src/devices/grolbp/lpb.cc: Remove string.h.
3012 * src/include/groff-getopt.h: New file. It will be used instead of
3013 getopt.h (to be included in lib.h) to avoid endless problems with
3014 picky C++ compilers.
3015 * src/include/lib.h: Use groff-getopt.h.
3016 * src/include/Makefile.sub: Updated.
3018 * configure: Updated.
3019 * Makefile.in: Updated.
3021 * NEWS: Mention EBCDIC support.
3023 2000-04-26 Werner LEMBERG <wl@gnu.org>
3025 * TODO: Some additions.
3027 2000-04-25 Werner LEMBERG <wl@gnu.org>
3029 * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
3032 2000-04-23 Werner LEMBERG <wl@gnu.org>
3034 * src/roff/troff/troff.man: Minor fixes.
3036 2000-04-22 Werner LEMBERG <wl@gnu.org>
3038 * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
3039 `.T' string register and the incompatible definition of the `.T'
3040 number register (compared to Unix troff).
3042 * man/groff_char.man: Add some missing characters.
3043 * font/devutf8/NOTES: Update.
3045 2000-04-21 Werner LEMBERG <wl@gnu.org>
3047 * src/include/htmlindicate.h, src/include/lib.h,
3048 src/include/posix.h: Fix copyright.
3050 * src/include/Makefile.sub: Update.
3052 2000-04-20 Werner LEMBERG <wl@gnu.org>
3054 * src/roff/troff/input.cc (input_char_description): Removing
3055 superfluous space char.
3057 * tmac/tmac.X: Fix typo \(bq -> \(Bq.
3059 * doc/groff.texinfo: Document EBCDIC.
3061 2000-04-19 Werner LEMBERG <wl@gnu.org>
3063 Introducing `shc' as the glyph name for the soft hyphen character.
3065 * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
3066 font/devlatin1/R.proto: Use it.
3070 2000-04-18 Werner LEMBERG <wl@gnu.org>
3072 * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
3073 dependency on ASCII order.
3075 2000-04-16 Sandor BARANY <S.Barany@infosys.tuwien.ac.at>
3077 * src/libs/libgroff/illegal.c: Added EBCDIC table.
3078 * src/roff/troff/input.cc: Added adaptation to EBCDIC.
3080 * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
3081 to increase portability.
3083 2000-04-15 Werner LEMBERG <wl@gnu.org>
3085 * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
3086 Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
3087 the generic `\n' if under OS/390 Unix.
3089 * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
3091 * configure: Regenerated.
3093 2000-04-14 Werner LEMBERG <wl@gnu.org>
3095 * doc/groff.texinfo: More conversions to @Deffn.
3097 2000-04-12 Werner LEMBERG <wl@gnu.org>
3099 * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
3102 * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
3104 2000-04-10 Werner LEMBERG <wl@gnu.org>
3106 * doc/groff.texinfo: More conversions to @Deffn.
3108 2000-04-08 Werner LEMBERG <wl@gnu.org>
3110 * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
3111 Updated to latest version (glibc 2.1.3).
3113 2000-04-07 Werner LEMBERG <wl@gnu.org>
3115 * doc/Makefile (clean): Include more index files.
3116 Add rule texinfo->dvi.
3118 2000-04-05 Werner LEMBERG <wl@gnu.org>
3120 * doc/groff.texinfo: Added new index `op' for operators. More
3121 info on end of sentence characters. More use of @Deffn.
3123 2000-03-30 Werner LEMBERG <wl@gnu.org>
3125 * */*.man: Adding a note that a whitespace can be inserted between
3126 a command line option and its parameter -- we are using GNU getopt.
3128 * src/roff/groff/groff.man: Add example of `-m mandoc'.
3130 2000-03-28 Werner LEMBERG <wl@gnu.org>
3132 Correct anachronism of calling the man macro file with `-man'
3133 instead of `-m man' etc.
3135 * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
3136 tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
3137 load tmac.<package>.
3139 * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc.
3143 * doc/groff.texinfo: Updated.
3145 * tmac/groff_man.man: Copyright added.
3147 2000-03-27 Werner LEMBERG <wl@gnu.org>
3149 * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
3150 typeset the request resp. escape name with a tt font -- due to a
3151 bug in texinfo.tex it is necessary to use the `-e' switch with
3154 Improving info about usage of groff units.
3158 2000-03-20 Werner LEMBERG <wl@gnu.org>
3160 * doc/groff.texinfo: Added section about man macro package
3161 (I've basically taken groff_man.man). Introducing new indices `ma'
3162 for macros/strings and `gl' for glyph names. Other minor fixes.
3164 * tmac/groff_man.man: Fixed some typos.
3166 2000-03-19 Werner LEMBERG <wl@gnu.org>
3168 * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
3171 * doc/texinfo.tex: New file.
3173 2000-03-18 Werner LEMBERG <wl@gnu.org>
3175 * doc/groff.texinfo: Improved section on number registers. Other
3178 2000-03-16 Werner LEMBERG <wl@gnu.org>
3180 * src/roff/groff/groff.man: Added info about grolbp. Make nicer
3183 * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
3184 src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
3185 src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
3186 src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
3188 * src/preproc/grn/grn.man: Better synopsis; added copyright.
3190 * src/roff/grog/grog.man: Updated copyright date.
3192 2000-03-14 Francisco Andres Verdu <pandres@dragonet.es>
3194 * configure.in: Added test for strdup.
3196 * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
3199 Replaced dynamic allocation of arrays `[...]' with `new' operator.
3203 2000-03-12 OKAZAKI Tetsurou <okazaki@be.to>
3205 * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
3207 2000-03-11 Werner LEMBERG <wl@gnu.org>
3209 * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
3211 * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
3212 * src/include/lib.h: Remove some spaces.
3214 2000-03-10 Werner LEMBERG <wl@gnu.org>
3216 * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
3217 initializers from arguments (some compilers don't like this).
3219 2000-03-09 Gaius Mulley <gaius@glam.ac.uk>
3221 * src/libs/libgroff/htmlindicate.cc: Added library file which is now
3222 used by pic and eqn to tell grohtml where the graphic regions start
3224 * src/libs/libgroff/Makefile.sub: Use it.
3225 * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
3226 graphic_start() and graphic_end() from htmlindicate.cc.
3228 2000-03-09 Werner LEMBERG <wl@gnu.org>
3230 * tmac/tmac.safer: Will now work correctly in compatibility mode.
3231 * tmac/groff_man.man: More fixes.
3233 2000-03-08 Werner LEMBERG <wl@gnu.org>
3235 * doc/Makefile: Added texput.log to the `clean' target.
3236 * doc/groff.texinfo: Added info about delimiters for escapes.
3238 2000-03-08 Bernd Warken <bwarken@mayn.de>
3240 * src/preproc/pic/pic.man: Add info on conversion of pic images to
3241 other graphic formats.
3243 2000-03-07 OKAZAKI Tetsurou <okazaki@be.to>
3245 * Makefile.in, contrib/mm/Makefile.sub, src/preproc/eqn/Makefile.sub,
3246 src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
3247 src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
3250 2000-03-07 Werner LEMBERG <wl@gnu.org>
3252 * doc/groff.texinfo: Spelling fixes.
3254 2000-03-06 Werner LEMBERG <wl@gnu.org>
3256 * tmac/groff_man.man: Completely revised to cover everything in
3259 * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
3260 Other minor fixings.
3261 * src/roff/troff/env.cc (environment_copy): Improve error message and
3263 * src/roff/troff/TODO: Updated.
3265 * doc/Makefile: Bug fixes -- this is still provisional, though...
3267 * tmac/eqnrc: Small fixes.
3269 2000-03-05 Abramo Bagnara <abramo@alsa-project.org>
3271 Adding a request `evc' to copy environments.
3273 * src/roff/troff/env.cc (environment::copy, environment_copy):
3275 * src/roff/troff/env.h: Add prototype.
3277 2000-03-05 Francisco Andres Verdu <pandres@dragonet.es>
3279 Adding strsep() -- Solaris 8 doesn't have it.
3281 * configure.in: Test it.
3282 * src/devices/grolbp/lbp.cc: Add code.
3284 2000-03-05 Werner LEMBERG <wl@gnu.org>
3286 * src/roff/troff/div.cc (macro_diversion::output,
3287 top_level_diversion::output): Fixing an incompatibility with
3288 original troff: \x'0' updates the .a register also. Thanks to
3289 <Andries.Brouwer@cwi.nl> for pointing this out.
3290 * doc/groff.texinfo: Document it.
3292 * Makefile.in: Create Makefile.dep if necessary before calling the
3293 submake process to avoid warning about nonexistent file.
3295 * NEWS, PROJECTS: Updated.
3297 2000-03-04 Werner LEMBERG <wl@gnu.org>
3299 * tmac/troffrc: Add tmac.lbp.
3301 2000-03-03 Francisco Andres Verdu <pandres@dragonet.es>
3303 * tmac/tmac.lbp: New file.
3304 * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
3307 2000-03-03 Werner LEMBERG <wl@gnu.org>
3309 * Makefile.in: Fixing $(subdir).
3311 * README, NEWS: Small fixes.
3313 * test-groff: Adding path to grolbp.
3315 * configure.in: The (new) file src/xditview/Imakefile.in will be
3316 also configured -- it is now possible to build gxditview in a
3317 directory different from $srcdir.
3319 2000-03-02 Blake McBride <blake@florida-software.com>
3321 * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
3323 * MORE.STUFF: Added website of bell labs and info about plot2dev.
3325 2000-03-01 Colin Phipps <crp22@cam.ac.uk>
3327 * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
3330 2000-02-29 Werner LEMBERG <wl@gnu.org>
3332 Adding GNU getopt to the groff distribution.
3334 * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
3336 * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
3337 * aclocal.a4: Remove GROFF_GETOPT function.
3338 * configure.in, Makefile.in, PROBLEMS: Update.
3339 * src/include/lib.h: Replace getopt tests with getopt.h.
3340 * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
3342 * doc/groff.texinfo: Further checking/updating. Adding more index
3345 * man/groff_out.man: Fix nroff mode activation (for emacs).
3346 * man/groff_font.man: Add missing ligature.
3348 2000-02-28 Werner LEMBERG <wl@gnu.org>
3350 * doc/groff.texinfo: Further checking/updating. Adding more index
3353 * src/devices/grolbp/grolbp.man: Added a comment line at the
3354 beginning of the file (similar to shell scripts) which indicates
3355 that `tbl' should be used as a preprocessor.
3357 2000-02-27 Blake McBride <blake@florida-software.com>
3359 Adapting groff to MS Visual C++ 6.0 compiler (tested with
3360 Windows NT 4.0). Uses _MSC_VER define where necessary.
3362 * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
3363 * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
3364 * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
3365 src/include/lib.h, src/libs/libgroff/errarg.cc,
3366 src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
3367 src/preproc/refer/label.y, src/preproc/refer/label.cc,
3368 src/roff/groff/pipeline.c, src/roff/troff/column.cc,
3369 src/roff/troff/div.cc, src/roff/troff/env.cc,
3370 src/roff/troff/input.cc, src/roff/troff/node.cc,
3371 src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
3372 if_to_a() to avoid name clashes.
3373 * src/include/posix.h: Don't use unistd.h.
3374 * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
3375 clause for integrating non-Unix xtmpfile() code.
3376 * src/roff/troff/input.cc: Adding `public' keyword to macro_header
3377 structure; use "rt" for popen() in pipe_source(); add getpid()
3379 * src/roff/troff/node.cc: Use special versions of popen() in
3380 real_output_file() and pclose() in ~real_output_file().
3382 2000-02-27 Werner LEMBERG <wl@gnu.org>
3384 Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
3385 LBP-8 series laser printers). This code has been contributed by
3386 Francisco Andres Verdu <pandres@dragonet.es>.
3388 * src/devices/grolbp/*: The grolbp output device.
3389 * font/devlpb/*: The font description files.
3390 * Makefile.in: Add grolpb and devlbp subdirectories.
3392 * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
3393 src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
3396 * doc/groff.texinfo: Further checking/updating. Adding more index
3401 * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
3403 * man/groff_font.man: Adding info about obsolete DESC keywords.
3404 * src/devices/grolj4/grolj4.man: Documenting additional DESC
3407 2000-02-26 Werner LEMBERG <wl@gnu.org>
3409 * src/preproc/grn/grn.man: Added info about the gremlin file format
3410 (contributed by Daniel Senderowicz <daniel@synchrods.com>).
3412 2000-02-25 Werner LEMBERG <wl@gnu.org>
3414 * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
3415 friends to be non-integer.
3417 * src/preproc/grn/grn.man: Document it.
3419 * doc/groff.texinfo: Further checking/updating. Adding more index
3422 2000-02-24 Werner LEMBERG <wl@gnu.org>
3424 * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
3425 line thicknesses to be integer multiples of this value.
3427 * src/preproc/grn/grn.man: Commenting out the -s option -- the
3428 corresponding code doesn't work (yet).
3430 * doc/groff.texinfo: Further checking/updating. Adding more index
3433 2000-02-23 Werner LEMBERG <wl@gnu.org>
3435 * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
3436 specify line thickness instead of base units. The new default
3437 values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
3438 thick lines respectively.
3440 Removed unused variable `prevval'.
3442 * src/preproc/grn/grn.man: Updated.
3444 2000-02-22 Werner LEMBERG <wl@gnu.org>
3446 * src/preproc/grn/main.cc: Slight formatting.
3448 * src/roff/groff/groff.man: Formatting fix.
3449 * src/preproc/grn/grn.man: Ditto.
3451 * src/roff/grog/grog.pl: Fixing two embarassing bugs.
3453 * doc/groff.texinfo: Further checking/updating.
3455 2000-02-21 Werner LEMBERG <wl@gnu.org>
3457 * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
3459 * test-groff: Added grn subdir to path.
3461 * doc/groff.texinfo: Some restructing and other small improvements.
3463 * src/roff/groff/groff.cc (help): Fixed info string.
3465 2000-02-20 Werner LEMBERG <wl@gnu.org>
3467 * doc/meref.me: Fix description of .GS request.
3469 * src/roff/troff/troff.man: Fixing typo.
3471 Adding the `grn' preprocessor for gremlin graphic files.
3473 * src/preproc/grn/*: This is the Berkeley distribution written by
3474 David Slattengren and Barry Roitblat, adapted to groff by Daniel
3475 Senderowicz and Werner Lemberg.
3477 * doc/grnexampl.{me,g}: A sample for grn.
3479 * Makefile.in: Added subdirectory entry for grn.
3481 * src/roff/groff/groff.cc: Added support for grn. It can be now
3482 called with the switch `-g'.
3484 * src/roff/groff/groff.man: Updated.
3486 * src/roff/grog/grog.{man,pl,sh}: Updated.
3490 2000-02-11 Gaius Mulley <gaius@glam.ac.uk>
3492 * src/include/lib.h: Added xtmptemplate and made xtmpfile
3493 parametrically polymorphic.
3495 * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
3496 and the alterations to xtmpfile.
3497 xtmpfile can be requested to return the filename created
3498 and asked not to unlink the temp file. The default behaviour
3499 if parameters are absent is exactly the same as before.
3501 2000-02-11 Abramo Bagnara <abramo@alsa-project.org>
3503 A new request `length' is available which returns the length of a
3504 string in a number register:
3506 * src/roff/troff/input.cc (length_macro): Implement it.
3507 * src/roff/troff/input.cc (init_input_requests): Register it.
3509 2000-02-11 Werner LEMBERG <wl@gnu.org>
3511 * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
3512 of the `substring' request.
3514 * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
3517 * src/roff/troff/TODO, NEWS: Updated.
3519 2000-02-09 Werner LEMBERG <wl@gnu.org>
3521 * src/roff/groff/groff.man: Added an example.
3523 2000-02-06 Werner LEMBERG <wl@gnu.org>
3525 I've considerably modified the directory structure of the
3526 distribution to get a more vertical layout. For example, the number
3527 of top level directories has been reduced from 42 to 6.
3529 As a consequence, many changes, especially to the makefiles, were
3532 * The makefile variables `top_builddir' and `top_srcdir' have been
3533 introduced. Virtually all relative paths have been replaced with
3534 absolute ones using these two variables.
3536 * Dependencies (in the files `Makefile.dep') are no longer part of
3537 the distribution. Instead, they are created during a `make install'
3538 in the build directory.
3540 * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
3541 make `top_srcdir' and `top_builddir' absolute.
3545 * Man pages no depend on the files `VERSION' and `REVISION'.
3547 * The added shell script `mkinstalldirs' will replace `mkdir' in
3550 * VERSION: Version number increased to 1.16.
3552 2000-02-04 Werner LEMBERG <wl@gnu.org>
3554 * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
3556 * Makefile.in: Removed $(tmac_m) since it is no longer needed
3557 (after an update of the mm stuff).
3559 * troff/Makefile.sub (majorminor.cc): Fix dependencies.
3561 2000-02-03 Werner LEMBERG <wl@gnu.org>
3563 The .psbb request will now also accept Mac PS images (i.e. using LF
3564 as the EOL character).
3566 * troff/input.cc (ps_get_line): New function, taken from psrm.cc
3567 (with slight modifications).
3568 * troff/input.cc (do_ps_file): Use it.
3570 * test-groff: Add grohtml and grolj4 output devices to PATH.
3572 2000-01-30 Werner LEMBERG <wl@gnu.org>
3574 * NEWS, MORE.STUFF: Updated.
3576 2000-01-30 Cary D. Renzema <caryr@dollar.mxim.com>
3578 Add the `srand' command to pic.
3580 * pic/lex.cc, pic/pic.y: Implement it.
3581 * pic/pic.man: Document it.
3582 * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
3584 2000-01-30 Werner LEMBERG <wl@gnu.org>
3586 Add a new request `.psbb'. This does exactly what the external
3587 program psbb did. It scans a PostScript image file for a
3588 %%BoundingBox comment and extracts the bounding box values (in
3589 PostScript units) which are then stored in the four new (read-only)
3590 number registers `llx', `lly', `urx', and `ury'.
3592 This will allow the usage of the .PSPIC macro without worrying
3593 about unsafe behaviour of groff, i.e., it will work without the
3594 `-U' switch of groff.
3596 * troff/input.cc: Implement it.
3597 * tmac/tmac.pspic: Use it.
3598 * troff/troff.man, grops/grops.man, NEWS: Document it.
3599 * psbb/*, Makefile.in: Remove it since it is no longer needed.
3601 This is bloody C code simply adapted from psbb.c! Any improvements
3604 2000-01-29 Werner LEMBERG <wl@gnu.org>
3606 * man/groff_font.man: Minor clarifications.
3610 2000-01-28 Werner LEMBERG <wl@gnu.org>
3612 * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
3614 2000-01-28 Gaius Mulley <gaius@glam.ac.uk>
3616 * man/groff_font.man: Brought up to date regarding tcommand
3618 * libgroff/font.cc: Handle everything after `--' as a comment
3620 * devps/*: Added comment delimiter inside devps font files.
3622 2000-01-28 Werner LEMBERG <wl@gnu.org>
3624 * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
3625 \fC...\fP (which now works as expected).
3627 * troff/troff.man: Fix typo.
3629 2000-01-27 Gaius Mulley <gaius@glam.ac.uk>
3631 Completed the pass_filenames implementation in troff.
3633 * libdriver/input.cc: Will read the new `F' tcommand.
3634 * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
3635 * troff/input.cc: Use it.
3637 2000-01-26 Werner LEMBERG <wl@gnu.org>
3639 * troff/env.cc (set_font): Fix the behaviour of \fP. The previous
3640 font will now be updated even if an invalid font is selected.
3642 2000-01-24 Werner LEMBERG <wl@gnu.org>
3644 * doc/homepage.ms: Updated for new tmac.arkup.
3646 * tmac/tmac.html: Disable line breaks after hyphen-like characters.
3648 * tmac/tmac.arkup: Cleanup.
3650 Added `\&' to .HTML macro to `leave vertical mode', so to say.
3652 Removed obsolete .LINK macro completely.
3654 The macros .URL, .FTP, and .MAILTO now accept a third argument which
3655 will be immediately appended to the second argument (to be used with
3656 punctuation, for example).
3658 Disabled .CDFTP macro temporarily for security reasons.
3660 * tmac/groff_markup.man: Complete revision for latest changes in
3661 tmac.arkup -- note that it does not yet format correctly with
3664 2000-01-23 Bruno Haible <haible@clisp.cons.org>
3666 * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
3667 * devutf8/R.proto: Add mappings for wp, lh, rh.
3668 * devutf8/NOTES: Updated.
3670 2000-01-23 Werner LEMBERG <wl@gnu.org>
3672 * doc/groff.texinfo: Updated version/copyright info.
3674 2000-01-21 Gaius Mulley <gaius@glam.ac.uk>
3676 Added support for two new directives in device descriptions:
3677 `pass_filenames' (to pass the input file name to the output device)
3678 and `use_charnames_in_special' (to support e.g. accented characters
3679 in the `X' request).
3681 * include/font.h, troff/charinfo.h: Declare it.
3683 * libgroff/font.cc, libgroff/fontfile.cc: Set it.
3685 * devhtml/DESC: Use it.
3687 * troff/input.cc: New function encoded_char.
3689 * troff/token.h: Add test for `specialness'.
3691 2000-01-21 Werner LEMBERG <wl@gnu.org>
3693 * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
3694 mistake from the list of files to be installed.
3696 2000-01-18 Werner LEMBERG <wl@gnu.org>
3698 * README: Added info how to apply patches.
3700 2000-01-15 Jan Echternach <echter@informatik.uni-rostock.de>
3702 * troff/node.cc (ligature_note::operator delete): Fix g++ warning.
3704 2000-01-15 Gaius Mulley <gaius@glam.ac.uk>
3706 * troff/input.cc: Add support for troffrc-end.
3708 * tbl/main.cc: Altered to issue table-start and table-end special
3709 characters if using the html device.
3711 * devhtml/*: Modified font files to incorporate html encoding of
3714 * tmac/groff_markup.man: New file documenting tmac.arkup.
3716 * tmac/troffrc-end: New file. This is invoked after all user
3717 specified macros. Currently used by the html device to include
3718 tmac.html. Thus no need for users to specify -mhtml anymore.
3720 * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
3721 (MAN7): Add groff_markup.man.
3723 * tmac/tmac.an, tmac/tmac.html: Small html updates.
3725 * tmac/troffrc: tmac.arkup will now be called for the html device.
3727 * libgroff/font.cc, libgroff/font.h: Altered to include reading of
3728 extra device specific information about fonts.
3730 * doc/homepage.ms: New file. It is an example how an HTML home page
3731 could look like with grohtml.
3733 * doc/Makefile: Add homepage.ms. Remove rule for pic.html.
3735 2000-01-12 Bruno Haible <haible@clisp.cons.org>
3737 * devutf8/R.proto: Add mappings for ti, Fn, st, an. Change mappings
3740 * devutf8/NOTES: Updated.
3742 2000-01-08 Bruno Haible <haible@clisp.cons.org>
3744 * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
3745 eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
3746 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
3747 libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
3748 pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
3749 tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
3750 troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
3751 troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
3754 * troff/node.cc (bracket_node::copy): Initialize last to NULL.
3756 2000-01-12 Fabrizio Polacco <fab@prosa.it>
3758 grolj4: Paper size will be searched case-insensitively.
3760 * include/lib.h: Add check for strcasecmp().
3761 * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
3762 * configure.in: Check for strcasecmp().
3764 2000-01-11 Werner LEMBERG <wl@gnu.org>
3766 * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
3769 2000-01-10 Werner LEMBERG <wl@gnu.org>
3771 * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
3774 Add a new read-only register, `.Y', which contains the groff
3777 * troff/input.cc (init_input_requests): Define it.
3778 * troff/Makefile.sub (majorminor.cc): Define `revision' string.
3779 * doc/groff.texinfo, troff/troff.man: Document it.
3781 * libgroff/Makefile.sub (version.cc): Add definition of
3782 `Version_string[]', consisting of `<major>.<minor>.<revision>'
3783 * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
3784 grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
3785 refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
3786 troff/input.cc, pfbtops/pfbtops.c: Use it.
3788 2000-01-10 Fabrizio Polacco <fab@prosa.it>
3790 Add a revision scheme to the groff package.
3792 * REVISION: New file.
3793 * libgroff/Makefile.sub (version.cc): Use it to define
3794 `revision_string[]'.
3795 * grops/psrm.cc: Use revision_string (converted to an unsigned
3796 integer) in constructor of resource_manager.
3798 2000-01-10 Bruno Haible <haible@clisp.cons.org>
3800 * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
3802 * Makefile.in (DEVDIRS): Add devutf8.
3803 * grotty/tty.cc: Include device.h.
3804 (glyph): Change type of `code' to `unsigned int'.
3805 (tty_printer): New field is_utf8. Constructor takes device argument.
3806 (tty_printer::tty_printer): If device if `utf8', set is_utf8.
3807 (tty_printer::add_char): Change type of first arg to `unsigned int'.
3808 (tty_printer::put_char): New function.
3809 (tty_printer::end_page): Use put_char() instead of ::putchar().
3810 (make_printer): Pass device to tty_printer constructor.
3811 * nroff.sh: Determine default device by calling 'locale'. As a
3812 fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
3813 Recognize UTF-8 locales.
3814 * tmac/eqnrc: Recognize utf8 like latin1.
3815 * tmac/troffrc: Device utf8 needs tmac.tty.
3817 2000-01-07 Werner LEMBERG <wl@gnu.org>
3819 * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
3821 2000-01-07 Paul Eggert <eggert@twinsun.com>
3823 Add a new predefined writeable number register, `year',
3824 which contains the current year.
3826 * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
3827 * tmac/tmac.s: Use it.
3828 * troff/input.cc (init_registers): Initialize it.
3830 2000-01-06 Werner LEMBERG <wl@gnu.org>
3832 * PROBLEMS: Fixed typo.
3834 2000-01-04 Paul Eggert <eggert@twinsun.com>
3836 * PROBLEMS: Add Y2k advice for the yr number register.
3838 2000-01-03 Paul Eggert <eggert@twinsun.com>
3840 * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
3842 2000-01-02 Werner LEMBERG <wl@gnu.org>
3844 * tmac/tmac.arkup: Slight modification of macros to provide better
3845 appearance for non-HTML formats.
3847 2000-01-01 Charles Levert <charles@comm.polymtl.ca>
3849 * soelim/soelim.cc (include_path_append): realloc(NULL, n)
3850 does not automatically translate to malloc(n) on all OSes
3851 (e.g., SunOS) so do it explicitly. Also, check the returned
3854 2000-01-01 Werner LEMBERG <wl@gnu.org>
3856 * tmac/tmac.arkup: Added .LINE macro. Some formatting.
3858 * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
3859 expects this variable
3861 2000-01-01 Gaius Mulley <gaius@glam.ac.uk>
3863 * doc/Makefile: Added instructions to create HTML and text
3864 versions of some files.
3866 1999-12-31 Werner LEMBERG <wl@gnu.org>
3868 * Updated INSTALL.gen.
3870 * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
3871 better resp. correctly with non-HTML devices.
3873 Version 1.15 released
3874 =====================
3876 1999-12-28 Werner LEMBERG <wl@gnu.org>
3878 * NEWS, VERSION: Changed to 1.15
3880 1999-12-27 Paul Eggert <eggert@twinsun.com>
3882 * nroff/nroff.man: -S is safer, not safe.
3884 * groff/groff.cc (main): Use `safer', not `safe', in variable
3885 names. This does not change the behavior.
3887 * troff/input.cc (main): Likewise.
3889 * nroff/nroff.sh: Likewise.
3891 * troff/input.cc (prepend_string): New function.
3892 (main): Prepend -msafer, so that we check macro libraries for
3895 * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
3897 Version 1.14 released
3898 =====================
3900 1999-12-26 Werner LEMBERG <wl@gnu.org>
3902 * NEWS, VERSION: Changed to 1.14.
3904 1999-12-24 Werner LEMBERG <wl@gnu.org>
3906 * refer/refer.cc: Fixing the last fix.
3908 Version 1.13 released
3909 =====================
3911 1999-12-23 Werner LEMBERG <wl@gnu.org>
3913 * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
3918 * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
3920 * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
3921 document conventions, the version number must be a real.
3923 Version 1.12.1 released
3924 =======================
3926 1999-12-22 Werner LEMBERG <wl@gnu.org>
3928 * VERSION: Changed to 1.12.1.
3930 1999-12-22 Alan Rooks <arooks@istar.ca>
3932 * refer/refer.cc (do_file): Slight modification to satisfy the
3933 `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
3936 1999-12-20 Werner LEMBERG <wl@gnu.org>
3938 * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
3941 * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
3942 list of unsafe requests.
3944 * pic/pic.man: Fixed a typo.
3946 * man/groff_out.man: Fixed a typo.
3948 1999-12-18 Werner LEMBERG <wl@gnu.org>
3950 * Makefile.in: Doc fixes.
3952 1999-12-17 Fabrizio Polacco <fab@prosa.it>
3954 * groff/groff.cc: Missing `U' option added to getopt().
3956 * troff/troff.man: Missing `U' option added to synopsis.
3958 Version 1.12 released
3959 =====================
3961 1999-12-14 Werner LEMBERG <wl@gnu.org>
3963 * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
3966 * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
3967 with the more appropriate terms `safer' and `unsafe'.
3969 * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
3970 sys_nerr and sys_errlist[].
3972 * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
3974 * pic/pic.y, pic/pic.cc: Added check for fmod().
3976 1999-12-13 Werner LEMBERG <wl@gnu.org>
3978 * VERSION: Changed to 1.12.
3980 Here some patches from various sources; most of them taken from
3981 the Debian distribution.
3983 * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
3984 tmac/Makefile.sub: New files copied directly from the NetBSD
3985 distribution. Probably, some additional adaptation later on is
3988 * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
3991 * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
3992 nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
3993 troff/troff.man: Added option `-U' for unsafe mode. Safe mode
3994 (`-S') is now the default.
3996 * README, NEWS: Updated.
3998 1999-12-09 Werner LEMBERG <wl@gnu.org>
4000 * doc/groff.texinfo: Regenerated nodes and menus with emacs.
4002 * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
4004 1999-12-06 Werner LEMBERG <wl@gnu.org>
4006 * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
4007 grief than relief today. Additionally, it is against the GNU
4010 * configure: Recreated.
4012 1999-12-05 Werner LEMBERG <wl@gnu.org>
4014 * configure.in: Added GROFF_LIBM.
4016 * configure: Recreated.
4018 * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
4021 * Makefile.in: Added definition of $(LIBM).
4023 * Makefile.comm (LIBM): Removed.
4025 * pfbtops/Makefile.sub: On AIX, -lm is needed also.
4027 1999-12-03 Gaius Mulley <gaius@glam.ac.uk>
4029 * doc/Makefile: Added rule for generation pic.html.
4031 (clean): Files produced by grohtml will be removed also.
4033 * doc/pic.ms: Small fix.
4035 * tmac/tmac.html: Fixed suppression of headers.
4037 1999-11-16 Gaius Mulley <gaius@glam.ac.uk>
4039 * tmac/tmac.html: Fixing horizontal arrows.
4041 Turning off hyphenation.
4043 * tmac/tmac.an: Improved support for grohtml; better indentation,
4046 1999-10-31 Gaius Mulley <gaius@glam.ac.uk>
4048 * tmac/tmac.arkup: Added CDFTP macro
4050 * tmac/tmac.html: All headers are turned off for ms, me, and mm
4053 * tmac/troffrc: Some additions for HTML stuff.
4055 1999-10-06 Gaius Mulley <gaius@glam.ac.uk>
4057 * tmac/tmac.html: Small changes.
4059 1999-09-26 Werner LEMBERG <wl@gnu.org>
4061 * doc/groff.texinfo: Minor fixes.
4063 1999-09-26 Gaius Mulley <gaius@glam.ac.uk>
4065 * devhtml/TR: Changed spacewidth to 3.
4067 * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
4069 * tmac/tmac.html: Moved markup macros to tmap.arkup.
4071 * tmac/tmac.arkup: New file.
4073 * grohtml/ChangeLog: New file.
4075 1999-09-16 Werner LEMBERG <wl@gnu.org>
4077 * doc/groff.texinfo (Common Features): Added Copying chapter.
4078 Changed format to @smallbook.
4080 1999-09-15 Werner LEMBERG <wl@gnu.org>
4082 * NEWS: Added info about groff.texinfo.
4084 * doc/groff.texinfo: Will now compile (using texi2dvi) without
4087 1999-09-14 Werner LEMBERG <wl@gnu.org>
4089 * groff/groff.man: More updates.
4091 1999-09-13 Werner LEMBERG <wl@gnu.org>
4093 * doc/groff.texinfo: New file. This manual is still very
4094 rudimentary. It has been originally contributed by Trent
4095 A. Fisher <trent@gnurd.portland.or.us> with first corrections and
4098 * INSTALL: Added information about the `doc' subdir
4100 * troff/troff.man: Minor fixes.
4102 * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
4105 * troff/input.cc (usage): Added missing `-ffam' to usage message.
4107 * Makefile.in (dist): groff-$(version).tar.gz must be removed
4108 also, otherwise it is included itself in another call of `make
4111 * groff/groff.cc (synopsis): Removed superfluous space.
4113 * PROJECTS, PROBLEMS, NEWS: Updated.
4115 * VERSION: Updated to 1.12beta.
4117 * BUG-REPORT: Some cosmetic fixes. Corrected email address.
4119 * README: Updated: Included documentation about CVS repository,
4120 mailing lists, and daily snapshots.
4122 * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
4124 1999-09-12 Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
4126 * tmac/tmac.an: If the tag didn't fit into the space that the
4127 macro `TP' specifies, the rest of the tag went into the space for
4130 1999-09-12 Jeffrey Copeland <jeff@opennt.com>
4132 * grolj4/lj4.cc: Added duplex printing (option `-d').
4134 * grolj4/grolj4.man: Document duplex printing.
4136 1999-09-12 Werner LEMBERG <wl@gnu.org>
4138 * doc/Makefile (pic.ps): Fixed rule which caused problems with
4139 non-GNUish sed programs.
4141 * tmac/doc-syms: Removed extra space from -iso8802-3 macro
4144 * configure.in (LIBS): Added `-lc'
4146 * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
4148 * pic/tex.cc (solid_arc): Casting M_PI to double.
4150 * libgroff/putenv.c (putenv): Changed function header to ANSI C.
4152 * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
4153 (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
4154 file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
4156 * groff/groff_man.man: New file. This manual page was originally
4157 written for the Debian GNU/Linux system by Susan G. Kleinmann
4160 * eqn/list.cc (list_box::compute_metrics,
4161 list_box::compute_sublist_width): Removed variable declaration to
4162 avoid shadowing warnings.
4164 * grops/psrm.cc (resource_manager::process_file): Ditto.
4166 * tfmtodit/tfmtodit.cc (main): Ditto.
4168 * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
4169 to avoid shadowing warnings.
4171 * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
4172 shadowing loop variable.
4174 * groff/groff.man, troff/troff.man: Added doc about grohtml.
4176 1999-09-12 Gaius Mulley <gaius@glam.ac.uk>
4178 New grohtml frontend to convert groff input to html.
4180 * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
4182 * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
4184 * tmac/eqnrc: Added html device.
4186 * tmac/tmac.html: New file.
4188 * eqn/main.cc (do_file, inline_equation), pic/troff.cc
4189 (troff_output::start_picture, troff_output::finish_picture),
4190 tbl/main.cc (process_input_file):
4191 Surrounded output with `graphics_start' and `graphics_end' so that
4192 the html driver can identify non-text portions.
4194 * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
4195 (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
4196 grotty/tty.ps (tty_printer::set_char): Additional parameter
4199 * include/printer.h: Class printer: New function
4200 set_char_and_width; new variables (is_char_named, is_named_set,
4201 named_command, named_char_s, named_char_n) to hold information
4202 about named characters -- needed by the html driver.
4204 * libdriver/printer.cc (printer::set_ascii_char,
4205 printer::set_special_char): Use set_char_and_width.
4207 * devhtml/*: New device files for html driver.
4209 * grohtml/*: New driver grohtml.
4211 1999-09-11 Wilfredo Sanchez <wsanchez@apple.com>
4213 * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
4216 1999-09-11 Luke Mewburn <lukem@netbsd.org>
4218 * libgroff/string.cc (search): Small fix to test against NULL
4221 1999-09-11 Jeff Conrad <jeff_conrad@msn.com>
4223 * troff/node.cc (copy): The characters in a bracket escape (e.g.,
4224 \b'abc') were stacked in reverse order when processed in a
4227 * troff/node.h: Added `*last' to struct `node' to make the above
4230 * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
4231 The default scale for the 'f' and 't' graphics functions were 'm'
4232 rather than 'u' (i.e., no scaling).
4234 1999-09-11 Peter Miller <peterm@jna.com.au>
4236 * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
4237 do_file), soelim/soelim.man: Added `-I file' option to soelim,
4238 defining include paths.
4240 * soelim/soelim.cc (include_path_append): New function.
4242 1999-09-11 Larry Jones <larry.jones@sdrc.com>
4244 * tbl/main.cc (process_options): Unix (at least Documenter's
4245 Workbench) tbl allows arbitrary non-alpha characters between
4248 1999-09-11 Paul Eggert <eggert@twinsun.com>
4250 Y2k fixes. Don't assume that the current year precedes 2000.
4252 * doc/meref.me: Add \n(y2, \n(y4.
4254 * tmac/doc-common (Yr): New number register.
4255 (Dd): Don't assume current year precedes 2000.
4257 * tmac/tmac.e (td): Likewise.
4258 (y2, y4): New number registers.
4260 * pic/pic.man: Update reference for pic paper to May, 1991
4263 1999-09-11 Werner LEMBERG <wl@gnu.org>
4265 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
4266 Removed quotation marks which prevented correct expansion of
4269 * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
4271 1999-09-10 Werner LEMBERG <wl@gnu.org>
4273 * Makefile.sub (DISTCLEANFILES): Added `config.log' and
4276 * Removed configure.old.
4278 1999-08-31 Werner LEMBERG <wl@gnu.org>
4280 * VERSION: Updated to 1.11.1
4282 1999-05-27 Werner LEMBERG <wl@gnu.org>
4284 * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
4286 * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
4287 added quotations around $(tmac_wrap) to avoid syntax error if
4290 * configure: Newly generated using autoconf 2.13.
4292 * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
4294 Fri Aug 15 08:51:47 1997 Eric S. Raymond <esr@snark.thyrsus.com>
4296 * README, PROJECTS, NEWS, INSTALL, VERSION,
4297 doc/Makefile. doc/pic.ms, groff/groff.man:
4298 Prepare for 1.11 release. No code changes.
4299 Documentation for pic added (doc/pic.ms).
4301 Sun Nov 26 11:45:13 1995 James Clark <jjc@jclark.com>
4303 * Version 1.10 released.
4305 Fri Nov 24 09:56:16 1995 James Clark <jjc@jclark.com>
4307 * afmtodit/afmtodit.pl: Avoid comment on first line.
4309 Mon Nov 20 11:13:49 1995 James Clark <jjc@jclark.com>
4311 * aclocal.m4 (GROFF_INSTALL_SH): New macro.
4312 * configure.in: Call it.
4314 * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
4315 (distfiles): Doesn't depend on config.log or config.cache.
4317 Sun Oct 1 08:45:36 1995 James Clark <jjc@jclark.com>
4319 * grog/grog.sh: Use print "" rather than print in END rule.
4321 Wed Aug 23 13:30:52 1995 James Clark <jjc@jclark.com>
4323 * tbl/main.cc (process_data): Don't give error for excess data
4324 entries that are comments.
4326 Fri Jul 28 11:00:27 1995 James Clark <jjc@jclark.com>
4328 * tbl/main.cc (process_data): Fix case where new for-scope rules
4329 silently change meaning of code.
4331 Tue Jul 4 23:39:51 1995 James Clark <jjc@jclark.com>
4333 * troff/env.cc (hyphenate): Loop over all consecutive sequences
4334 of non-zero hyphenation codes.
4336 Sat Jul 1 00:42:15 1995 James Clark <jjc@jclark.com>
4338 * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
4340 Thu Jun 29 13:58:36 1995 James Clark <jjc@jclark.com>
4342 * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
4344 Tue Jun 27 12:30:16 1995 James Clark <jjc@jclark.com>
4346 * tmac/tmac.andoc: Make it work in compatibility mode.
4348 * refer/token.h (token_info::is_range_sep): New function.
4349 * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
4350 * refer/ref.cc (reference::output): More sophisticated check for
4353 * devps/prologue.ps (MANUAL): New procedure.
4354 * grops/ps.cc (main): New -m option.
4355 (usage): Include -m.
4356 (ps_printer::~ps_printer): Implement -m.
4358 * aclocal.m4 (GROFF_G): New macro.
4359 * configure.in: Call it.
4360 * Makefile.in (g): Provided by configure.
4362 * hpftodit/hpftodit.cc (basename): Rename to xbasename.
4364 * tmac/tmac.tty: Disable warning about bad fonts. Remove font
4367 * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
4368 (tmac_m, tmac_s): Deleted.
4369 (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
4370 tmac_s_prefix): New variables.
4371 (MDEFINES): Change accordingly.
4372 * Makefile.comm (.man.n): Use new TMAC_* variables.
4373 * configure.in (GROFF_TMAC): Call.
4374 * aclocal.m4 (GROFF_TMAC): Define.
4375 * tmac/Makefile.sub (stamp_wrap): New target.
4376 (install_data, uninstall_sub): Handle macro wrapping.
4378 Mon Jun 26 14:54:39 1995 James Clark <jjc@jclark.com>
4380 * tbl/main.cc (main): Ignore -T option.
4382 Thu Jun 22 09:08:06 1995 James Clark <jjc@jclark.com>
4384 * devlj4/generate/special.map: Add definition of \(nb.
4386 * tmac/tmac.dvi: Add definition of \(nb.
4388 * troff/dictionary.c (dictionary::dictionary): association::v gets
4389 initialized by association::association.
4391 * tmac/Makefile.sub: Avoid using temporary files when installing.
4393 * troff/env.cc (environment::set_font): Make bad font number a
4396 * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
4398 * Makefile.in (datadir): Use share rather than lib.
4400 * groff/groff.cc (basename): Rename to xbasename.
4402 Wed Jun 21 16:59:46 1995 James Clark <jjc@jclark.com>
4404 * Makefile (CCLIBS): Don't use.
4405 * Makefile.ccpg: Likewise.
4407 * acgroff.m4: Rename to...
4408 * aclocal.m4: Modify extensively for autoconf 2.
4409 * configure.in: Likewise.
4410 * Makefile.in: Likewise.
4412 * groff/pipeline.c (const): Declare as empty if __STDC__ not
4414 (xstrsignal): Check for definition of NSIG. Conditionalize
4415 on SYS_SIGLIST_DECLARED. Make return type const.
4417 Sat Jun 10 12:28:16 1995 James Clark <jjc@jclark.com>
4419 * troff/input.cc (interpolate_macro): Rephrase missing space
4422 Thu May 11 01:07:16 1995 Jason Merrill <jason@phydeaux.cygnus.com>
4424 * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
4425 grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
4426 grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
4427 libbib/index.cc, libbib/linear.cc, libbib/search.cc,
4428 libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
4429 libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
4430 libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
4431 pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
4432 refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
4433 tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
4434 troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
4437 Wed Apr 19 21:15:11 1995 James Clark <jjc@jclark.com>
4439 * troff/input.cc (spring_trap): Push a macro_iterator rather than a
4441 (spring_trap, postpone_traps, unpostpone_traps): Move to later in
4443 (macro_iterator::macro_iterator): Add additional argument.
4445 Mon Apr 10 12:06:02 1995 James Clark <jjc@jclark.com>
4447 * troff/div.cc (vertical_size::vertical_size): In place of integer
4448 specifying line spacing use cunits specifying post vertical
4450 (macro_diversion::output, top_level_diversion::output): Likewise.
4451 * troff/div.h: Change declarations accordingly.
4452 * troff/env.cc (pending_output_line): Replace ls field by post_vs
4454 (pending_output_line::pending_output_line,
4455 pending_output_line::output, environment::output,
4456 environment::output_line, environment::output_title,
4457 environment::hyphenate_line): In place of
4458 integer specifying line spacing use cunits specifying post vertical
4460 (environment::environment): Add post_vertical_spacing and
4461 prev_post_vertical_spacing arguments.
4462 (environment::get_post_vertical_spacing): New function.
4463 (environment::total_post_vertical_spacing): New function.
4464 (environment::post_vertical_spacing): New function.
4465 (init_env_requests): Initialize pvs request and .pvs register.
4466 * troff/env.h: Change declarations.
4468 Tue Mar 28 09:52:07 1995 James Clark <jjc@jclark.com>
4470 * tmac/tmac.pspic: Immediately remove the temporary file.
4472 Sat Mar 25 10:43:11 1995 James Clark <jjc@jclark.com>
4474 * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
4475 height is specified.
4477 Thu Jan 26 16:20:13 1995 James Clark <jjc@jclark.com>
4479 * tbl/table.c (struct vertical rule, class table_entry): Use int
4480 not short for start_row and end_row.
4482 Fri Jan 13 13:53:05 1995 James Clark <jjc@jclark.com>
4484 * troff/input.cc (trapping_blank_line, blank_line_macro): New
4486 (diverted_space_node::reread, process_input_stack): Call
4487 trapping_blank_line() rather than blank_line().
4488 (init_input_requests): Bind "blm" to blank_line_macro().
4490 * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
4492 Tue Jan 10 11:40:35 1995 James Clark <jjc@jclark.com>
4494 * troff/env.cc (environment::possibly_break_line): Require that
4495 width total excluding width of final space node be greater than
4496 the target text length.
4498 Tue Jan 3 09:13:37 1995 James Clark <jjc@jclark.com>
4500 * troff/node.cc (kern_pair_node::vertical_extent): New function.
4502 Sun Dec 4 13:19:07 1994 James Clark <jjc@jclark.com>
4504 * troff/node.cc (charinfo_node): New class.
4505 (glyph_node, composite_node): Derive from charinfo_node. Change
4506 member functions accordingly.
4508 Wed Nov 30 10:29:29 1994 James Clark <jjc@jclark.com>
4510 * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
4512 Mon Aug 8 10:17:59 1994 James Clark (jjc@jclark.com)
4514 * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
4516 * devps/generate/textmap (notsubset): Add.
4518 * tmac/tmac.a4: New file.
4520 Sun Jul 24 20:08:42 1994 James Clark (jjc@jclark.com)
4522 * pic/main.cc (had_parse_error): New variable.
4523 (do_picture, do_whole_file): Set had_parse_error if yyparse()
4525 (main): Return 1 if had_parse_error is true.
4527 Tue Jul 19 13:40:31 1994 James Clark (jjc@jclark.com)
4529 * grolj4/lj4.cc (main): Avoid use of strtoul.
4531 Mon Jul 18 15:03:02 1994 James Clark (jjc@jclark.com)
4533 * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
4534 iso_8859_1 or $LESSCHARSET is latin1.
4536 Sun Jul 10 13:38:35 1994 James Clark (jjc@jclark.com)
4538 * hpftodit: New directory.
4539 * Makefile.in (CCPROGDIRS): Add hpftodit.
4540 * devlj4/generate: New directory.
4542 Thu Jul 7 23:49:48 1994 James Clark (jjc@jclark.com)
4544 * configure.in: Don't use AC_VFORK.
4545 * groff/pipeline.c (run_pipeline): Use fork() always.
4547 Wed Jul 6 11:13:17 1994 James Clark (jjc@jclark.com)
4549 * grops/ps.cc (main): Use %1 not %s in error message for -w.
4551 * Makefile.in (CCPROGDIRS): Add grolj4.
4552 (DEVDIRS): Add devlj4.
4553 * grolj4, devlj4: New directories.
4554 * tmac/troffrc: Handle lj4.
4555 * tmac/tmac.lj4: New file.
4557 Fri Jun 17 18:02:53 1994 James Clark (jjc@jclark.com)
4559 * tmac/tmac.e (@n): Set indent to 0 before calling |h.
4561 Wed Jun 1 07:33:47 1994 James Clark (jjc@jclark.com)
4563 * troff/input.cc (do_if_request): At end of second string, switch
4564 environments before getting next token.
4566 Fri May 20 07:39:18 1994 James Clark (jjc@jclark.com)
4568 * devps/psstrip.sed: Split rule that strips whitespace on either
4571 Wed May 18 08:13:47 1994 James Clark (jjc@jclark.com)
4573 * troff/node.h (font_family::make_definition): Add return value to
4574 declaration. * troff/symbol.h (symbol::operator==,
4575 symbol::operator!=): Likewise.
4577 Tue May 17 20:46:06 1994 James Clark (jjc@jclark.com)
4579 * groff/groff.cc (main, help, synopsis): Handle -S.
4580 (possible_command::insert_arg): New function.
4582 * tmac/tmac.safer: New file.
4583 * tmac/msafer.man: New file.
4584 * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
4586 Thu Mar 10 01:58:30 1994 Paul Eggert (eggert@twinsun.com)
4588 * pic/pic.h, pic/main.cc (safer_flag): New variable.
4589 * pic/pic.y (placeless_element): Avoid unsafe operations if
4590 `safer_flag' is set.
4591 * pic/main.cc (main): Add -S option, which sets `safer_flag'.
4593 Tue May 10 13:02:31 1994 James Clark (jjc@jclark.com)
4595 * eqn/lex.cc (get_token): Put call to add_context() in block to
4596 work around Sun C++ 4.0 bug.
4598 * include/stringclass.h (operator +): Use ?: instead of `if' to
4599 work around Sun C++ 4.0 bug.
4601 Thu May 5 11:18:03 1994 James Clark (jjc@jclark.com)
4603 * tbl/main.cc (process_format): Accept - as a synonym for the _
4606 * libbib/index.cc (minus_one): Don't declare as const.
4608 Fri Apr 29 09:32:48 1994 James Clark (jjc@jclark.com)
4610 * troff/input.cc (get_char_for_escape_name): Push back a newline.
4612 Wed Apr 27 21:14:18 1994 James Clark (jjc@jclark.com)
4614 * troff/input.cc (write_macro_request): New function.
4615 (init_input_requests): Bind write_macro_request to writem.
4617 Sun Apr 17 11:15:38 1994 James Clark (jjc@jclark.com)
4619 * tmac/tmac.s (@EN): Turn filling back on even if there was no
4622 * eqn/lex.cc (do_space): Supply missing argument to lex_error.
4624 * tmac/tmac.s (@TS): Renamed from TS.
4625 (TS): Call LP then TS again.
4626 (cov*ab-init): Alias @TS to TS.
4628 * tmac/tmac.s: Allow QP or RS to initialize.
4630 * tmac/tmac.s (par@load-init): New macro. Call at end of file.
4631 Move initializations of PS and LL here.
4632 (par@init): Don't initialize HY. Avoid changing environment 0.
4633 (par*env-init): Don't all par@reset.
4635 Thu Apr 14 19:15:45 1994 James Clark (jjc@jclark.com)
4637 * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
4639 Sun Apr 10 09:54:44 1994 James Clark (jjc@jclark.com)
4641 * Makefile.in (MDEFINES): Add LDFLAGS.
4642 (LDFLAGS): Add definition line.
4644 Thu Apr 7 22:22:22 1994 James Clark (jjc@jclark.com)
4646 * troff/input.cc (get_optional_char): Split off error check into...
4647 (check_missing_character): New function.
4648 * troff/token.h: Declare it.
4649 * troff/env.cc (margin_character): Don't call get_optional_char.
4650 Only call tok.next() after making the node.
4652 * include/lib.h (getopt): Make 2nd argument char *const *.
4654 Fri Mar 11 07:28:03 1994 James Clark (jjc@jclark.com)
4656 * nroff/conftest.sh: Deleted.
4658 Fri Mar 4 10:51:36 1994 James Clark (jjc@jclark.com)
4660 * pic/make-dos-dist: Deleted.
4662 Wed Mar 2 20:59:16 1994 James Clark (jjc@jclark.com)
4664 * devps/psstrip.sed: Strip comments before stripping trailing
4667 Sat Feb 19 13:07:16 1994 James Clark (jjc@jclark.com)
4669 * Version 1.09 released.
4671 Wed Feb 16 16:53:49 1994 James Clark (jjc@jclark.com)
4673 * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
4675 Mon Feb 14 08:26:40 1994 James Clark (jjc@jclark.com)
4677 * libgroff/font.cc (font::load_desc): Fix typo in error message.
4679 Sun Feb 13 09:37:38 1994 James Clark (jjc@jclark.com)
4681 * libgroff/new.cc (operator new): Rewrite so as to avoid warning
4682 about returning without a value.
4684 * troff/charinfo.h (charinfo::get_special_translation): Cast
4685 TRANSLATE_NONE to int.
4687 * refer/token.cc (lookup_token, store_token): Remove bogus loop
4688 test. Fix test so that it works with n unsigned.
4690 * pic/pic.y (defaults_table): Fully bracket initializer.
4691 * pic/lex.cc (lookup_keyword): Likewise.
4692 * eqn/lex.cc (token_table, def_table): Likewise.
4693 * eqn/box.cc (param_table): Likewise.
4694 * troff/input.cc (warning_table): Likewise.
4695 * libgroff/font.cc (table): Likewise.
4696 * grops/ps.cc (ps_printer::special): Likewise.
4697 * grops/psrm.cc (resource_manager::process_file): Likewise.
4698 * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
4699 * refer/command.cc (command_table): Likewise.
4700 * addftinfo/addftinfo.cc (param_table): Likewise.
4702 * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
4703 about temp's being unused.
4704 (unused): New function.
4706 * groff/pipeline.cc: Declare c_fatal.
4708 * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
4711 * libbib/index.cc (index_search_item::load): Prevent compiler
4712 warnings about fd_closer's being unused.
4713 (unused): New function.
4715 Sat Feb 12 10:31:59 1994 James Clark (jjc@jclark.com)
4717 * troff/input.cc (copy_mode_error): Make `prefix' static.
4720 * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
4722 * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
4723 HAVE_CC_OSFCN_H and modify accordingly.
4725 * troff/input.cc (init_charset_table): radicalex overlaps
4728 * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
4729 udodo!hans@relay.NL.net).
4730 * groff/configure.in: Call it.
4732 * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
4733 * groff/configure.in: Call it.
4734 * include/lib.h: Conditionalize declaration of pclose.
4736 * troff/div.cc (last_page_number): New global variable.
4737 (top_level_diversion::begin_page): Exit if we just printed the
4739 * troff/div.h (last_page_number): Declare it.
4740 * troff/input.cc (parse_output_page_list): Set last_page_number.
4742 * eqn/sqrt.cc: Rename \(rn to \[radicalex].
4743 * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
4744 tmac/tmac.X: Likewise.
4745 * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
4746 * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
4748 Fri Feb 11 11:45:40 1994 James Clark (jjc@jclark.com)
4750 * tmac/doc-ditroff (hK): Remove groff specific code which
4751 prevented page-breaks between separate manual entries. If this is
4752 the first page, don't set the page number to 1.
4754 * acgroff.m4 (GROFF_POSIX): New macro.
4755 * configure.in: Use it.
4757 * troff/node.cc (class real_output_file,
4758 real_output_file::real_output_file,
4759 real_output_file::~real_output_file): Conditionalize use of
4760 popen/pclose on POPEN_MISSING.
4761 * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
4762 * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
4763 (pipe_source): Similarily.
4765 * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
4767 * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
4768 presence of declarations by trying to compile example with
4769 conflicting declarations. (gcc only gives a warning for missing
4772 Wed Feb 9 09:12:23 1994 James Clark (jjc@jclark.com)
4774 * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
4775 (from Ulrich Lauther).
4777 Tue Feb 8 03:56:40 1994 James Clark (jjc@jclark.com)
4779 * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
4781 Thu Feb 3 09:34:35 1994 James Clark (jjc@jclark.com)
4783 * indxbib/indxbib.cc (write_hash_table): Add code for case where
4784 pointers and ints have different sizes.
4786 Sun Jan 9 16:17:51 1994 James Clark (jjc@jclark.com)
4788 * tmac/tmac.s (par*env-init): Call par@reset.
4790 Fri Jan 7 10:24:27 1994 James Clark (jjc@jclark.com)
4792 * tmac/tmac.s (@IP): Switch to a new environment when diverting
4794 (par*push-tag-env, par*pop-tag-env): New macros.
4796 Wed Jan 5 21:18:34 1994 James Clark (jjc@jclark.com)
4798 * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
4799 initializing `out'. Reduce MAX_LINE_LENGTH from 79 to 72.
4801 * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
4802 comment. Include <time.h>.
4804 Wed Dec 15 14:14:00 1993 James Clark (jjc@jclark.com)
4806 * grops/ps.cc (is_small_h, is_small_v): Deleted.
4807 (ps_printer::flush_sbuf): Use absolute motion only at beginning of
4810 Tue Dec 14 10:06:34 1993 James Clark (jjc@jclark.com)
4812 * troff/input.cc (read_request): Only print a prompt if reading
4813 from the terminal. Also clearerr on EOF if reading from the
4814 terminal. Declare isatty.
4816 Mon Nov 29 08:38:15 1993 James Clark (jjc@jclark.com)
4818 * refer/label.y: Rename map_t to map_func and extractor_t to
4821 Sat Oct 30 06:38:12 1993 James Clark (jjc@jclark.com)
4823 * include/assert.h: Don't use volatile.
4824 * libgroff/assert.cc: Likewise.
4826 Fri Oct 29 15:00:23 1993 James Clark (jjc@jclark.com)
4828 * troff/input.cc (abort_request): Look at character in tok before
4831 Thu Oct 28 14:09:48 1993 James Clark (jjc@jclark.com)
4833 * troff/troff.h (NO_RETURN): Deleted.
4834 * troff/div.cc (cleanup_and_exit): Don't declare aas NO_RETURN.
4835 * troff/input.cc (exit_troff): Likewise
4837 * Makefile.in: Remove `Making ...' messages since GNU make now
4840 * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
4842 Wed Oct 27 11:12:51 1993 James Clark (jjc@jclark.com)
4844 * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
4847 Sat Oct 23 10:03:52 1993 James Clark (jjc@jclark.com)
4849 * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
4851 Thu Oct 14 12:09:45 1993 James Clark (jjc@jclark.com)
4853 * eqn/delim.cc (delim_box::compute_metrics): Don't increase
4854 MARK_REG if there was no left delimiter.
4856 Sat Oct 2 19:54:47 1993 James Clark (jjc@jclark.com)
4858 * pic/troff.cc (troff_output::text): Set line thickness to
4859 relative before outputting text.
4861 * tmac/tmac.e (@k): Don't zero ?T.
4864 Sat Sep 25 11:08:43 1993 James Clark (jjc@jclark.com)
4866 * tmac/tmac.e ($p): Handle possibility that $3 is empty.
4868 Wed Aug 18 08:51:41 1993 James Clark (jjc@jclark.com)
4870 * troff/input.cc (decode_args): Warn about unquoted tabs (from
4873 Tue Aug 10 08:38:32 1993 James Clark (jjc@jclark.com)
4875 * troff/input.cc (ignoring): New variable.
4876 (ignore): Set ignoring during call to do_define_macro.
4877 (do_define_macro): Clear ignoring before interpolating terminating
4879 (copy_mode_error): New function.
4880 (get_char_for_escape_name, read_long_escape_name,
4881 interpolate_arg): Use copy_mode_error.
4882 (warning_table): Add WARN_IG.
4883 * troff/troff.h (WARN_IG): Declare.
4884 (WARN_TOTAL): Change accordingly.
4886 * groff/pipeline.c (strsignal): Rename to xstrsignal.
4887 * groff/groff.cc (strsignal): Delete declaration.
4889 Fri Jul 16 01:43:12 1993 James Clark (jjc@jclark.com)
4891 * troff/div.cc (page_offset): Use 'm' as default scaling.
4893 Sat Jul 3 09:11:38 1993 James Clark (jjc@jclark.com)
4895 * nroff/nroff.sh: Ignore -u.
4897 Wed Jun 9 12:17:27 1993 James Clark (jjc@jclark.com)
4899 * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
4901 Fri Jun 4 17:35:47 1993 James Clark (jjc@jclark.com)
4903 * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
4905 (B2): With -Tascii, leave additional vertical space before
4906 and after. Ensure that the left and right indent is restored to
4907 what it was even if the point size changes. Don't call
4908 par@finish. Change the indent, line length and title length
4909 directly. With -Tascii, make the width of the box 1n less.
4910 (B1): Remember 1n at the current point size. Don't call
4911 par@reset. Change the indent, line length and title length
4912 directly. Ensure that the temporary indent is preserved.
4913 (par*box-mark-top): Turn off no spacing mode.
4915 Thu Jun 3 17:47:14 1993 James Clark (jjc@jclark.com)
4917 * Makefile.in (dist): Use .gz suffix.
4919 Thu May 27 20:04:59 1993 James Clark (jjc@jclark.com)
4921 * troff/input.cc (main): Add return 0.
4922 * pic/main.cc (main): Use return instead of exit.
4923 * tbl/main.cc (main): Likewise.
4924 * eqn/main.cc (main): Likewise.
4925 * grops/ps.cc (main): Likewise.
4926 * grotty/tty.cc (main): Likewise.
4927 * groff/groff.cc (main): Likewise.
4928 * grodvi/dvi.cc (main): Likewise.
4929 * refer/refer.cc (main): Likewise.
4930 * indxbib/indxbib.cc (main): Likewise.
4931 * lkbib/lkbib.cc (main): Likewise.
4932 * soelim/soelim.cc (main): Likewise.
4933 * addftinfo/addftinfo.cc (main): Likewise.
4934 * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
4935 GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
4937 * troff/token.h (process_input_stack): Don't declare as static.
4938 * troff/input.cc: Likewise.
4940 * troff/node.c (invalidate_fontno): Make it a static member of
4941 class font_family. Change callers.
4942 * troff/node.c: Change declaration.
4944 * tbl/main.cc (struct input_entry_format): Add explicit public
4946 * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
4947 struct double_hline_stuff): Likewise.
4948 * tbl/table.h (struct entry_format): Likewise.
4949 * pic/object.h (struct saved_state): Likewise.
4951 * include/stringclass.h: Add forward declarations of friend
4952 functions that are later declared as inline. Don't include inline
4953 specifier in friend declaration.
4955 * libgroff/lib.h: Declare popen and pclose.
4956 * acgroff.m4 (GROFF_POPEN): New macro.
4957 * configure.in: Call it.
4959 * include/lib.h (PI): New constant. Undef first if necessary.
4960 * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
4961 * grops/ps.cc (degrees, radians): Likewise.
4962 * libgroff/font.cc (font::get_skew): Likewise.
4964 * grops/ps.cc (is_ascii): New function.
4965 (ps_output::put_string): Use is_ascii. Use csprint rather than
4967 (ps_printer::define_encoding): Use csspace.
4968 * libgroff/strtol.c (ISASCII): New macro.
4969 (strtol): Cast arguments to is*() and tolower() to unsigned char.
4970 Use ISASCII rather than isascii.
4971 * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
4972 * libgroff/cset.cc: Likewise.
4973 * libdriver/input.cc: Include cset.h.
4974 (do_file, get_integer, possibly_get_integer): Use csdigit() rather
4977 * refer/refer.cc (main): Use %ld rather than %d for longs.
4979 * libbib/index.cc (index_search_item_iterator::get_tag): Use
4982 * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
4984 Mon May 24 08:51:37 1993 James Clark (jjc@jclark.com)
4986 * troff/input.cc (hyphenation_code): Skip white space between
4989 Sun May 16 08:15:52 1993 James Clark (jjc at jclark.com)
4991 * tbl/table.h (table::entry_list_tailp): New member.
4992 (table::table): Initialize it.
4993 (table::add_entry): Use entry_list_tailp to avoid O(n^2)
4996 Sat May 15 17:26:00 1993 James Clark (jjc at jclark.com)
4998 * grotty/tty.cc (tty_printer::add_char): Don't discard characters
4999 with negative horizontal positions. Remove casts of glyph::hpos to
5001 (USHRT_MAX): Delete definition.
5002 (SHRT_MAX, SHRT_MIN): New definitions.
5003 (glyph::hpos): Change type to short.
5004 (tty_printer::end_page): Output multiple backspaces if necessary.
5005 Remove casts of glyph::hpos to int.
5007 Fri May 7 12:14:37 1993 James Clark (jjc at jclark.com)
5009 * tmac/tmac.s (@RT): New definition.
5011 Thu May 6 21:36:54 1993 James Clark (jjc at jclark.com)
5013 * refer/refer.cc (do_file): Make sure current_filename is set when
5016 * pic/common.cc (common_output::dot_line): Handle zero length
5019 Sun May 2 19:54:16 1993 James Clark (jjc at jclark.com)
5021 * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
5022 (par@init): Initialize \n[HY].
5024 Mon Apr 26 11:43:16 1993 James Clark (jjc at jclark.com)
5026 * troff/dictionary.cc (dictionary::remove): Continue when
5029 Sun Apr 25 11:03:00 1993 James Clark (jjc at jclark.com)
5031 * Makefile.com (.y.cc): Avoid ending up with two versions of
5034 Thu Apr 22 21:03:45 1993 James Clark (jjc at jclark.com)
5036 * tmac/tmac.dvi (\(,c): Define only if it does not exist.
5037 (\(,C): Likewise. Also fix typo.
5039 Wed Apr 21 08:47:32 1993 James Clark (jjc at jclark.com)
5041 * lib.h: Delete extraneous semi-colon.
5043 * Add pso request: `so' from a pipe.
5044 * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
5045 (file_iterator::close): New function.
5046 (file_iterator::~file_iterator, file_iterator::next_file): Use
5047 file_iterator::close.
5048 (file_iterator::backtrace): Say `process' rather than `file' when
5049 the stream is popened.
5050 (pipe_source): New function.
5051 (init_input_requests): Bind ".pso" to pipe_source.
5053 Tue Apr 20 00:02:26 1993 James Clark (jjc at jclark.com)
5055 * afmtodit/afmtodit.pl: Avoid single quotes in comments.
5057 * pfbtops/pfbtops.c: Output 64 characters per line. Output hex
5058 digits in lower case.
5060 Mon Apr 19 09:55:57 1993 James Clark (jjc at jclark)
5062 * Version 1.08 released.
5064 * Makefile.in (dist): Insert || true after ln -s commands that
5067 * mm: Update to mm 1.16.
5069 * acgroff.m4 (GROFF_CSH_HACK): New macro.
5070 * configure.in: Call GROFF_CSH_HACK. Substitute for
5072 * Makefile.in (SH_SCRIPT_SED_CMD): New variable. Include in
5074 * nroff/Makefile.sub (nroff): New target.
5075 (install_data): Install nroff.
5076 * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
5077 * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
5079 Sat Apr 17 08:24:28 1993 James Clark (jjc at jclark)
5081 * eqn/Makefile.sub (neqn): Add chmod +x.
5083 * grog/Makefile.sub (grog): Remove spurious semi-colon.
5085 Fri Apr 16 22:41:57 1993 James Clark (jjc at jclark)
5087 * troff/input.cc (string_iterator::string_iterator()): Initialize
5090 Tue Apr 13 10:22:28 1993 James Clark (jjc at jclark)
5092 * troff/div.cc (macro_diversion::space,
5093 top_level_diversion::space): Don't set high_water_mark.
5094 (macro_diversion::output, top_level_diversion::output): Don't
5095 include post line space in high water mark.
5097 Wed Apr 7 12:48:18 1993 James Clark (jjc at jclark)
5099 * eqn/eqn.y: Don't define YYDEBUG.
5100 * pic/pic.y: Likewise.
5102 Mon Apr 5 10:15:15 1993 James Clark (jjc at jclark)
5104 * tmac/tmac.e ([3): Add space after comma following editors.
5105 Change double spaces to single spaces.
5106 ([4): Change double spaces to single spaces.
5108 * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
5109 * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
5110 bit is set in broken_flags, use 2.0 rather than 3.0 as the version
5111 after %!PS-Adobe- (for Newsprint).
5113 * troff/div.cc (top_level_diversion::begin_page): When
5114 before_first_page is 1, set page_number to 1.
5116 Sun Apr 4 14:28:53 1993 James Clark (jjc at jclark)
5118 * eqn/box.cc (box::top_level): Protect equation with \&.
5120 Sat Apr 3 23:27:25 1993 James Clark (jjc at jclark)
5122 * groff/groff.cc (possible_command::set_name): Delete old name.
5124 * groff/groff.cc (possible_command::~possible_command): Use
5127 * troff/node.cc (troff_output_file::begun_page): New member.
5128 (troff_output_file::troff_output_file): Initialize it.
5129 (troff_output_file::really_begin_page): Only output V command if a
5130 page has been begun.
5132 * pic/pic.y (placeless_element): Delete argument to PRINT after
5135 Fri Apr 2 11:31:02 1993 James Clark (jjc at jclark)
5137 * Make wrapman work.
5138 * troff/div.h (class top_level_diversion): Replace
5139 first_page_begun by before_first_page (with opposite sense).
5140 * Change first_page_begun to before_first_page inverting sense.
5141 * troff/div.cc (class nl_reg): New class.
5142 (init_div_requests): Use class nl_reg for \n(nl.
5143 (top_level_diversion::begin_page): Don't call
5144 output_file::begin_page if before_first_page is 2;
5145 reset before_first_page afterwards. If have_next_page_number is
5146 false, then always increment page_number.
5147 * tmac/tmac.an: Set traps within TH rather than at the top-level.
5148 Restore compatibility mode after loading, and then disable
5149 compatibility mode in TH.
5151 Thu Apr 1 11:09:34 1993 James Clark (jjc at jclark)
5153 * grotty/tty.cc (tty_printer::end_page): Don't discard characters
5155 * troff/node.h (output_file::trailer): Declare.
5156 * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
5157 * troff/node.cc (output_file::trailer): New function.
5158 (troff_output_file::~troff_output_file): Move most code into...
5159 (troff_output_file::trailer): New function.
5160 (class troff_output_file): Delete page_length member. Declare
5162 (troff_output_file::really_begin_page): Use current page length
5163 for final V command.
5165 * tbl/main.cc (struct options): New decimal_point_char member.
5166 (options::options): Initialize this.
5167 (process_options): Implement decimalpoint option.
5168 (process_data): Pass decimal_point_char option to table::table.
5169 * tbl/table.h (class table): New decimal_point_char member.
5170 (table::table): Add additional argument.
5171 * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
5172 second argument specifying decimal point character. Use this
5174 (table::table): Initialize decimal_point_char.
5175 (table::add_entry): Change call to find_dot.
5177 * troff/input.cc (get_copy, token::next): Implement \V.
5178 (interpolate_environment_variable): New function.
5180 Tue Mar 30 14:41:39 1993 James Clark (jjc at jclark)
5182 * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
5183 * pic/pic.y: Likewise.
5185 * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
5187 * refer/ref.cc (reference::insert_field, reference::delete_field):
5189 * troff/number.cc (parse_term): Likewise.
5191 * acgroff.m4 (GROFF_PROG_YACC): New macro.
5192 * configure.in: Use GROFF_PROG_YACC.
5194 * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
5196 * Makefile.in (OPTIMIZE): New define.
5197 (DEBUG): Empty by default.
5198 (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
5200 * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
5201 (GROFF_ARRAY_DELETE): Likewise.
5202 (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
5204 * troff/env.cc (trie::~trie): Make virtual to shut up g++.
5206 * devps/psstrip.sed: Use different delimiter on last line (so that
5207 it works with BSD 4.4 sed.)
5209 Mon Mar 29 17:07:14 1993 James Clark (jjc at jclark)
5211 * devps/psstrip.sed: Delete comments.
5213 * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
5214 optind, opterr, optarg.
5215 * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
5218 Sun Mar 28 17:44:25 1993 James Clark (jjc at jclark)
5220 * Makefile.in (check): Dummy target.
5222 Wed Mar 3 04:53:38 1993 James Clark (jjc at jclark)
5224 * Version 1.07 released.
5226 * Integrate mm 1.11.
5228 * tbl/table.cc (alphabetic_block_entry::print): start_row was used
5229 where start_col was meant.
5231 Thu Feb 25 07:55:36 1993 James Clark (jjc at jclark)
5233 * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
5235 Wed Feb 24 10:15:34 1993 James Clark (jjc at jclark)
5237 * troff/input.cc (token::next): Make \z\o'...' and similar things
5240 * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
5242 (environment): Add margin_character_flags member.
5243 * env.cc (environment::environment(symbol),
5244 environment::environment(const environment *): Initialize
5245 margin_character_flags.
5246 (margin_character): Rewrite.
5247 (environment::output_line): Add a margin character if
5248 margin_character_flags is non-zero. Turn off the
5249 MARGIN_CHARACTER_NEXT bit. If that makes margin_character_flags
5250 zero, use margin_character_node without copying and then set
5251 margin_character_node to 0.
5253 * devps/DESC.in: Change minimum size to 1000.
5255 Tue Feb 23 14:57:49 1993 James Clark (jjc at jclark)
5257 * troff/symbol.h (symbol::hash): Change return type to unsigned
5259 * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
5262 * test-groff: Use -r rather than -x.
5264 * grops/psfig.diff: Include in distribution again.
5266 Mon Feb 22 09:10:44 1993 James Clark (jjc at jclark)
5268 * Makefile.in (dist): Use gzip.
5270 Sun Feb 21 11:12:53 1993 James Clark (jjc at jclark)
5272 * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
5273 unistd.h as well as in stdlib.h.
5274 * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
5275 defined; otherwise include <sys/types.h> and <unistd.h> if
5276 UNISTD_H_DECLARES_GETOPT is defined.
5278 * configure.in: use builtin(include, ... rather than include(...
5279 * configure: Regenerate with autoconf 1.3.
5281 * libdriver/print.cc (printer::adjust_arc_center): Use new
5282 algorithm suggested by Andy Fyfe.
5284 * libdriver/printer.cc (printer::adjust_arc_center): New function.
5285 * include/printer.h: Declare this.
5286 * grops/ps.cc (ps_printer::draw): Use it.
5287 * grodvi/dvi.cc (dvi_printer::draw): Use it.
5289 Fri Feb 19 23:13:51 1993 James Clark (jjc at jclark)
5291 * Makefile.comm (.man.n): Replace macrodir by tmacdir.
5293 Thu Feb 11 16:46:59 1993 James Clark (jjc at jclark)
5295 * eqn/main.cc (main): Handle "eqn -".
5297 Mon Jan 4 20:29:56 1993 James Clark (jjc at jclark)
5299 * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
5301 * mm: Integrate version 1.08.
5303 * pic/troff.cc (troff_output::finish_picture): Set
5304 EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
5305 * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
5306 if it's not defined. Check whether the register is non-zero rather
5307 than whether it's not defined.
5308 * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
5310 * indxbib/indxbib.cc: Move all signal handling into...
5311 * indxbib/signal.c: New file.
5312 * configure.in: Call AC_RETSIGTYPE.
5314 * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
5315 * configure.in: Call GROFF_STRUCT_EXCEPTION.
5316 * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
5318 * troff/input.cc (token::token, token::operator=): Work round SGI
5320 * pic/object.cc (position::position): Likewise.
5322 Mon Dec 28 21:50:21 1992 James Clark (jjc at jclark)
5324 * pic/pic.h: Move declaration of hypot().
5326 Wed Dec 16 12:28:29 1992 James Clark (jjc at jclark)
5328 * pic/pic.h: Declare hypot().
5330 * pic/pic.h: Define M_PI if necessary.
5332 Thu Dec 10 12:03:29 1992 James Clark (jjc at jclark)
5334 * tmac/tmac.e (re): Add alternative version that doesn't use groff
5337 * devps/prologue.ps (RE): Handle the possibility that the old font
5338 doesn't have a FontName entry.
5340 Wed Dec 2 10:25:29 1992 James Clark (jjc at jclark)
5342 * tmac/tmac.e (fam): Redefine to set family in environment 2.
5343 (@C): Use @fam not fam.
5345 Thu Nov 26 16:01:25 1992 James Clark (jjc at jclark)
5347 * lookbib/lookbib.cc (main): Change type of start to const char *.
5348 * lkbib/lkbib.cc (main): Likewise.
5350 * eqn/lex.cc (definition::definition): Don't use member
5351 initializer syntax for members of anonymous unions.
5353 * troff/input.cc (input_stack::backtrace): Change type of to const
5356 Wed Nov 25 13:43:09 1992 James Clark (jjc at jclark)
5358 * include/stringclass.h (class string): Declare inline friend
5359 functions as inline in class declaration.
5360 * troff/hvunits.h (class hunits, class vunits): Likewise.
5361 * include/refid.h (class reference_id): Likewise
5362 * troff/troff.h (points_to_units(units), scale(units, double)):
5363 Delete declarations.
5364 * libdriver/input.cc (get_char): Delete declaration.
5365 * include/lib.h: Change 2nd argument of getopt from const char **
5367 * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
5368 char **' before assigning to a `const char **'.
5369 * tbl/table.cc: Delete extra declarations of prints().
5371 Tue Nov 24 14:33:13 1992 James Clark (jjc at jclark)
5373 * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
5374 char **' before assigning to a `const char **'.
5376 * libgroff/errarg.cc (errarg::errarg): Don't use member
5377 initializer syntax for members of anonymous unions.
5379 Sat Nov 21 05:02:23 1992 James Clark (jjc at jclark)
5381 * mm: Integrate version 1.07.
5383 Tue Nov 17 16:44:27 1992 James Clark (jjc at jclark)
5385 * troff/input.c (translate2): Rename to
5386 (translate_no_transparent).
5387 (init_input_requests): Rename tr2 to trnt.
5389 Mon Nov 16 09:49:32 1992 James Clark (jjc at jclark)
5391 * troff/charinfo.h (class charinfo): Add transparent_translate field.
5392 (charinfo::set_translation, charinfo::set_special_translation):
5393 Add second argument that specifies value for
5394 transparent_translate.
5395 (charinfo::get_translation, charinfo::get_special_translation):
5396 Add optional second argument that specifies whether translation is
5397 being used for transparent throughput.
5398 * troff/input.cc (charinfo::set_translation,
5399 charinfo::set_special_translation): Handle second argument.
5400 (charinfo::charinfo): Initialize transparent_translate.
5401 (translate): Split main part off into
5402 (do_translate): New function. Pass argument saying whether
5403 translation applies to transparent throughput.
5404 (translate2): New request.
5405 (init_input_requests): Bind translate2 to `tr2'.
5407 Wed Nov 11 11:43:20 1992 James Clark (jjc at jclark)
5409 * tbl/table.h (class table): Add `nokeep' flag.
5410 * tbl/main.cc (process_options): Handle `nokeep' option.
5411 * tbl/table.cc (table::init_output, table::do_row, table::do_top,
5412 table::do_bottom): Don't output keep/release macro definitions or
5413 calls when `nokeep' option has been specified.
5415 Sat Nov 7 01:28:33 1992 James Clark (jjc at jclark)
5417 * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
5419 Wed Nov 4 16:29:04 1992 James Clark (jjc at jclark)
5421 * tbl/table.cc (table_entry::divert, block_entry::do_divert,
5422 block_entry::divert, alphabetic_block_entry::divert): Add extra
5423 argument giving column separation.
5424 (table::compute_widths): Pass column separation to
5425 table_entry::divert().
5426 (block_entry::do_divert): If an entry spans multiple columns and a
5427 minimumum width has been specified for each column, then set the
5428 line length to the sum of the widths (plus possibly the column
5431 * troff/input.cc (set_escape_char): Don't set the escape_char
5432 until after calling has_arg().
5434 Tue Nov 3 11:23:27 1992 James Clark (jjc at jclark)
5436 * tbl/table.cc (table::do_top): Add missing \s0 for double box
5439 * tbl/table.cc (table::print_double_hline): Avoid extra new line
5440 in case where r > nrows - 1.
5442 * tbl/table.cc (BODY_HEIGHT): Deleted.
5443 (LINE_SEP): New definition.
5444 (table::print_single_hline, table::print_double_hline,
5445 table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
5446 table::do_row, table::do_top): Use LINE_SEP space before a line
5447 instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
5449 * tbl/table.cc (text_entry::print_contents): New function.
5450 (text_string_name, right_text_string_name): Deleted.
5451 (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
5452 (simple_text_entry::do_width, numeric_text_entry::do_width,
5453 alphabetic_text_entry::do_width): Don't store the contents of the
5455 (left_text_entry::simple_print, right_text_entry::simple_print,
5456 center_text_entry::simple_print,
5457 alphabetic_text_entry::simple_print,
5458 numeric_text_entry::simple_print): Print the entry directly
5459 instead of using the stored string.
5461 Fri Oct 30 10:39:32 1992 James Clark (jjc at jclark)
5463 * devps/Makefile: Strip PostScript files.
5464 * devps/prologue: Rename to...
5465 * devps/prologue.ps.
5466 * devps/psstrip.sed: New file.
5467 * devps/download: Use .pfa rather than .ps for installed versions
5470 Thu Oct 29 09:14:43 1992 James Clark (jjc at jclark)
5472 * troff/env.cc (input_trap): Give a warning if the argument is out
5475 * troff/env.cc (adjust): Treat negative argument as missing. Round
5476 argument > 5 down to 5.
5478 * troff/env.cc (center, right_justify): Make negative argument zero.
5480 * troff/div.cc (page_offset, vertical_position_traps): Treat
5481 invalid argument as missing.
5482 * troff/env.cc (line_spacing, line_length, title_length, indent,
5483 underline, hyphen_line_max_request, control_char,
5484 no_break_control_char, widow_control_request, adjust, input_trap,
5485 point_size): Likewise.
5486 * troff/node.cc (ligature, kern_request, bold_font, track_kern,
5487 constant_space): Likewise.
5488 * troff/input.cc (compatible, shift, warn_request,
5489 set_escape_char): Likewise.
5491 * tbl/main.cc (format::format): Avoid doing `new int[0]'.
5492 * tbl/table.cc (table::table): Likewise.
5494 * Makefile.dev (install_dev): depends on $(DEVFILES).
5496 Wed Oct 28 08:30:57 1992 James Clark (jjc at jclark)
5498 * devX75, devX75-12, devX100, devX100-12: New directories.
5499 * Makefile.in: Add these to DEVDIRS.
5501 * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
5502 afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
5503 grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
5504 * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
5506 * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
5507 (uninstall): New target.
5508 * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
5509 uninstall_prog, uninstall_dev): New targets.
5511 * troff/div.cc (return_request): Treat an invalid argument as
5514 Mon Oct 26 11:33:47 1992 James Clark (jjc at jclark)
5516 * tmac/tmac.e ((f): Set up the environment even when there's a
5517 current diversion. Transperently throughput a call to @N.
5520 Thu Oct 22 05:05:59 1992 James Clark (jjc at jclark)
5522 * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
5523 up to vertical resolution.
5525 * tbl/table.cc (table::do_row): Change row number after printing
5528 * pic/lex.cc (get_token_after_dot): Make .left and .right work.
5530 Wed Oct 21 14:46:45 1992 James Clark (jjc at jclark)
5532 * Rename CHANGES to NEWS.
5534 Tue Oct 20 23:25:21 1992 James Clark (jjc at jclark)
5536 * libgroff/new.cc (operator new): Avoid calling malloc(0).
5538 Mon Oct 19 09:10:13 1992 James Clark (jjc at jclark)
5540 * man.ultrix: Removed.
5542 Sun Oct 18 06:35:15 1992 James Clark (jjc at jclark)
5544 * Makefile.comm (extraclean): Delete files whose names begin with
5547 * pic/troff.cc (troff_output::text): Fix typo in implementation of
5550 Sat Oct 10 09:32:29 1992 James Clark (jjc at jclark)
5552 * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
5553 * troff/div.cc (page_length, need_space, space_request): Treat
5554 invalid optional argument as missing.
5555 * troff/env.cc (number_lines): If the first argument is present
5556 but not a number, turn on line numbering, don't change the next
5557 line number and parse the remaining arguments.
5559 * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
5561 Thu Oct 8 10:24:40 1992 James Clark (jjc at jclark)
5563 * eqn/box.h: Change declaration accordingly.
5564 * eqn/box.cc (set_gsize): Change return type to int. Return 0 if
5565 the specified size was bad but don't give an error. Check for
5567 * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
5568 * eqn/lex (do_size): Likewise.
5570 Wed Oct 7 09:48:59 1992 James Clark (jjc at jclark)
5572 * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
5575 Sun Oct 4 18:24:02 1992 James Clark (jjc at jclark)
5577 * tbl/table.cc (table::init_output): Improve error message when
5578 table won't fit on one page.
5580 Fri Oct 2 10:41:40 1992 James Clark (jjc at jclark)
5582 * pic/troff.cc (troff_output::start_picture): Generate line
5583 containing a horizontal motion equal to the width of the picture.
5585 * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
5586 using GROFF_COMMAND_PREFIX environment variable.
5588 Fri Sep 25 11:40:40 1992 James Clark (jjc at jclark)
5590 * mdate.sh: Use $NF rather than $(NF).
5592 Tue Sep 22 09:47:24 1992 James Clark (jjc at jclark)
5594 * pic/main.cc (main): Use %1 not %c in argument to warning.
5596 * eqn/main.cc (main): Output code to check that geqn was given the
5599 Mon Sep 21 10:59:16 1992 James Clark (jjc at jclark)
5601 * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
5602 `ln -s ../Makefile .; make; rm -f Makefile'.
5604 * troff/hyphen: Rename to...
5606 * troff/input.cc (main): Delete -H option. Don't call
5608 * troff/env.cc: Include searchpath.h and macropath.h.
5609 (exception_dictionary): Deleted.
5611 (read_hyphen_file): Deleted.
5612 (hyphenation_language): New struct.
5613 (class trie, class hyphen_trie): Move declarations up.
5614 (trie_node::~trie_node): Deleted.
5615 (trie::delete_trie_node): New function.
5616 (trie::do_delete): New pure virtual function.
5617 (hyphen_trie::do_delete): New function.
5618 (trie::~trie): New function.
5619 (hyphen_trie::~hyphen_trie): New function.
5620 (trie::clear): No need to chcek that tp is not 0.
5621 (current_language, language_dictionary): New variables.
5622 (hyphen_word): Give an error if no current language. Use
5623 exceptions dictionary in current language.
5624 (hyphen_trie::read_patterns_file): Find file using macro_path.
5625 Allow comments (starting with %) in patterns file. Don't make it
5626 a fatal error if the file can't be found.
5627 (hyphenate): Return if no current language. Get the exceptions
5628 dictionary and the hyphenation patterns from the current language.
5629 (set_hyphenation_language): New variable.
5630 (hyphenation_patterns_file): New function.
5631 (hyphenation_language_reg): New class.
5632 (hyphenation_language_reg::get_string): New function.
5633 (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
5634 "hpf" to hyphenation_patterns_file. Initialize `.hla' number
5636 * groff/groff.cc (main, help, synopsis): Delete -H option.
5637 * include/Makefile.sub: Don't define HYPHENFILE.
5638 * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
5639 * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
5640 * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
5641 hyphenation patterns.
5643 Sun Sep 20 09:33:02 1992 James Clark (jjc at jclark)
5645 * eqn/neqn.sh: New file.
5646 * eqn/Makefile.sub: Handle neqn.sh.
5648 * eqn/eqn.h: Declare `nroff' variable.
5649 * eqn/box.cc (param_table): Add `nroff' param.
5651 * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
5653 * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
5655 * troff/troff.h (WARN_FONT): New warning.
5656 (WARN_TOTAL): Change accordingly.
5657 * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
5658 (warning_table): Add WARN_FONT.
5659 * troff/node.cc (mount_font_no_translate): Pass argument to
5660 font::load_font. If this is non-zero, give a warning.
5661 Don't give an error message when accessing a font that has already
5662 been found to be invalid.
5663 * include/font.h (font::load, font::load_font): Add additional
5664 optional argument which suppresses error message if the font is
5666 * libgroff/font.cc (font::load_font): Handle additional argument.
5667 (font::load): Add additional argument. If this is non-null, set it
5668 to 1 and don't give error message.
5670 * include/printer.h (printer::end_page): Add argument giving
5672 * libdriver/input.cc (do_file): Pass this.
5673 * grops/ps.cc (ps_printer::end_page): Add argument.
5674 * grodvi/dvi.cc (dvi_printer::end_page,
5675 draw_dvi_printer::end_page): Add argument.
5676 * grotty/tty.cc (class tty_printer): Remove lines_per_page and
5677 columns_per_page members. New member nlines.
5678 (DEFAULT_LINES_PER_PAGE): Deleted.
5679 (tty_printer::tty_printer): Don't compute lines_per_page from
5680 font::paperlength. Don't compute columns_per_page from
5682 (tty_printer::add_char): Don't check horizontal position against
5683 columns_per_page. Grow glyphs vector if neccessary.
5684 (tty_printer::end_page): Add argument giving page_length in units.
5685 Discard lines past end of page.
5687 Wed Sep 16 06:29:52 1992 James Clark (jjc at jclark)
5689 * tmac/tmac.tty-char: Fix definition of \(/l.
5691 * tmac/tmac.X: Define \(en.
5693 Tue Sep 15 10:37:13 1992 James Clark (jjc at jclark)
5695 * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
5696 lpq, then use lp rather than lpr.
5698 * tmac/tmac.s (par@reset): Don't call `ad'.
5699 (par*env-init): Call `ad'.
5701 Sun Sep 13 18:48:20 1992 James Clark (jjc at jclark)
5703 * mdate.sh: Use $(NF) instead of $6 to extract year from output of
5706 * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
5707 * indxbib/indxbib.cc: Likewise.
5709 Sun Sep 6 09:44:46 1992 James Clark (jjc at jclark)
5711 * libgroff/putenv.c: New file.
5712 * libgroff/Makefile.sub: Add putenv.c to CSRCS.
5713 * Makefile.in: Say that putenv.o can be one of LIBOBJS.
5714 * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
5715 stdlib.h with AC_HAVE_HEADERS.
5717 Sat Sep 5 18:11:52 1992 James Clark (jjc at jclark)
5719 * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
5722 Fri Sep 4 09:43:26 1992 James Clark (jjc at jclark)
5724 * eqn/box.cc (gsize): Make it an int.
5725 (set_gsize): Parse argument handling increment or decrement.
5726 (box::top_level): Convert gsize to a string.
5728 * troff/input.cc (exit_troff): Make buf unsigned char [].
5729 Call to make_temp_iterator casts buf to char*.
5731 * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
5733 * Makefile.ccpg (depend.temp): Depends on $(YTABC).
5734 * Makefile.cpg (depend.temp): Likewise.
5736 * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
5738 * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
5740 Thu Sep 3 08:01:55 1992 James Clark (jjc at jclark)
5742 * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
5744 Tue Sep 1 18:24:53 1992 James Clark (jjc at jclark)
5746 * Version 1.06 released.
5748 * Integrate mm 1.04.
5750 Fri Aug 28 11:28:19 1992 James Clark (jjc at jclark)
5752 * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
5754 Thu Aug 27 11:03:33 1992 James Clark (jjc at jclark)
5756 * afmtodit/afmtodit.pl: Add -n option that disables generation of
5758 * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
5759 afmtodit. Regenerate.
5761 * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
5762 @f back past the current position.
5764 * tmac/tmac.e: Change calls to @R so that comments are not part of
5767 Tue Aug 25 10:42:07 1992 James Clark (jjc at jclark)
5769 * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
5771 * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
5772 check that we can link a call to a function declared in <stdio.h>.
5773 (GROFF_UNISTD_H): New macro.
5774 * configure.in: Call it.
5775 * Makefile.in: Document it.
5776 * include/posix.h: New file.
5777 * troff/troff.h: Don't include <osfcn.h>
5778 * troff/input.cc: Include posix.h.
5779 * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
5781 * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
5782 Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
5784 * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
5785 * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
5786 * libbib/search.cc (O_RDONLY): Delete definition.
5787 * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
5788 Don't include <osfcn.h>.
5790 * acgroff.m4 (GROFF_TIME_T): New macro.
5791 * configure.in: Call it.
5792 * Makefile.in: Document it.
5794 * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
5795 * configure.in: Call it.
5796 * Makefile.in: Document -DTRADITIONAL_CPP.
5797 * include/ptable.h: Don't include generic.h.
5800 * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
5801 Afterwards remove [T1 and [T2.
5802 (ref*spec!0, ref*spec!2): Use T1 rather than T.
5803 (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
5804 (ref*add-T2): Renamed from ref*add-T.
5805 (ref*add-T1): New macro.
5807 Mon Aug 24 11:11:11 1992 James Clark (jjc at jclark)
5809 * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
5811 * libbib/index.cc: Include <fcntl.h>.
5812 (O_RDONLY): Define if necessary.
5813 (make_index_search_item, index_search_item_iterator::get_tag,
5814 index_search_item::check_files): Use O_RDONLY.
5815 * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
5816 (O_RDONLY): Define if necessary.
5817 (search_list::add_file): Use O_RDONLY.
5818 * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
5820 (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
5823 * libbib/index.cc (S_ISREG): Define it if necessary.
5824 (index_search_item::load): Use S_ISREG.
5826 * include/driver.h: Include <errno.h>.
5828 Sun Aug 23 11:32:18 1992 James Clark (jjc at jclark)
5830 * eqn/box.cc (body_height): Increase default value to 85.
5831 (body_depth): Increase default value to 35.
5833 Fri Aug 21 05:34:42 1992 James Clark (jjc at jclark)
5835 * eqn/pbox.h (SAVE_FONT_STRING): Define it.
5836 * eqn/box.cc (box::top_level): Hide use of \R in a string that is
5837 protected from expansion with \E.
5839 * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
5841 * Makefile (Makefile): New target.
5843 * Makefile.sub (configure, distfiles): New targets.
5845 * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
5848 Thu Aug 20 12:27:26 1992 James Clark (jjc at jclark)
5850 * eqn/box.cc (param_table): Add body_height and body_depth.
5852 * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
5854 Tue Aug 18 16:24:25 1992 James Clark (jjc at jclark)
5856 * psbb/Makefile.sub: Don't link with libgroff.a.
5858 * acgroff.m4 (GROFF_PUTENV): New macro.
5859 * configure.in: Call GROFF_PUTENV.
5860 * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
5861 * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
5864 * troff/env.cc (distribute_space): Rename force_forward argument
5865 to force_reverse. Reverse the list if force_reverse is true.
5867 Mon Aug 17 17:49:05 1992 James Clark (jjc at jclark)
5869 * tmac/tmac.an: Don't define a string `T'. Just define Tm.
5871 * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
5872 height or depth to be negative. Guard against SUP_RAISE quantity
5875 Sat Aug 15 08:18:54 1992 James Clark (jjc at jclark)
5877 * devps/generate/textmap: Add `an' (arrowhorizex).
5878 * tmac/tmac.ps: \(an overlaps horizontally.
5879 * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
5881 * devps/symbolchars: Add arrowverttp, arrowvertbt.
5882 * devps/textmap: Add arrowvertex.
5883 * eqn/delim.cc (delim_table): Add uparrow, downarrow and
5884 updownarrow delimiters.
5885 * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
5887 * tbl/table.cc (simple_entry::position_vertically,
5888 block_entry::position_vertically): For a centered entry, perform
5889 the motion in two stages.
5891 * refer/refer.cc (split_punct): Don't call lookup_token if there
5894 Fri Aug 14 11:14:58 1992 James Clark (jjc at jclark)
5896 * troff/input.cc (token::next): Delete token_node after copying
5899 * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
5902 * libdriver/printer.cc (printer::load_font): Delete old_font_table.
5904 * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
5906 Tue Aug 11 13:50:38 1992 James Clark (jjc at jclark)
5908 * grops/ps.cc (usage): -b option takes an argument.
5910 * devps/prologue (PLG): New procedure.
5911 * grops/ps.cc (main, usage): New -g option.
5912 (ps_printer::~ps_printer): If guess_flag is set, guess the paper
5915 Mon Aug 10 11:17:53 1992 James Clark (jjc at jclark)
5917 * include/cset.h: Include <limits.h> if we have it.
5919 * libgroff/illegal.cc: New file.
5920 * include/lib.h (illegal_input_char): Use table.
5921 * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
5922 * pic/lex.cc (ARG1): Renumber to 14.
5923 * eqn/lex.cc (ARG1: Likewise.
5925 * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
5926 (eg 1.05.90) correctly.
5928 Sun Aug 9 13:35:43 1992 James Clark (jjc at jclark)
5930 * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
5931 Rename $r and $R registers to $v and $V.
5932 ($r, $R): Initialize to 0.
5933 (@v, @V): New macros.
5937 * troff/input.cc (main, usage): Add -R option that says not to
5939 * eqn/main.cc (main, usage): Rename -n to -R.
5941 Sat Aug 8 00:16:00 1992 James Clark (jjc at jclark)
5943 * devps/DESC.in: Leave font positions 5-9 blank.
5944 * devdvi/DESC.in: Likewise.
5946 * grog/grog.pl: Handle `.PS <file' correctly.
5948 * troff/input.cc (input_stack::push): Improve error message when
5949 input stack limit exceeded.
5951 Fri Aug 7 13:08:16 1992 James Clark (jjc at jclark)
5953 * refer/refer.cc (main): Fix typo in handling of `a' option.
5955 * refer/refer.cc (do_bib): In state START after a newline remain
5958 * groff/groff.sh: Deleted.
5959 * groff/Makefile.sub: Delete handling of groff.sh.
5961 * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
5962 to determine whether to use \X'ps:...'.
5963 * tmac/troffrc: Set 0p register to 0.
5964 * tmac/tmac.ps: Set 0p register to 1.
5966 * groff/groff.cc: Support -X option. Give warning for -TXps and
5967 transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
5968 * tmac/troffrc: Support -r.X=1.
5970 * pic/troff.cc (troff_output::dot): Don't test
5971 zero_length_line_flag.
5973 Thu Aug 6 13:32:08 1992 James Clark (jjc at jclark)
5975 * include/lib.h: Declare getopt() and friends unless
5976 STDLIB_H_DECLARES_GETOPT is defined.
5978 * doc/chars.tr: Delete.
5979 * man/groff_char.man: New file.
5981 Wed Aug 5 00:38:58 1992 James Clark (jjc at jclark)
5983 * tmac/tmac.e (np, bu): Test \n($p with string expression in case
5984 user has changed register format.
5986 Mon Aug 3 11:22:18 1992 James Clark (jjc at jclark)
5988 * groff/groff.cc: Get rid of device_table. Get postprocessor from
5989 `postpro' command in DESC file. Get spooler command from `print'
5990 command in DESC file. Execute spooler command with /bin/sh.
5992 * groff/groff.cc: Split Unix-specific parts into...
5993 * groff/pipeline.c: New file.
5996 * COPYING: New file.
5997 * all files: Update copyright notices.
5999 * Rearrange files. Redo Makefiles. Use autoconf.
6001 Sat Aug 1 09:36:50 1992 James Clark (jjc at jclark)
6003 * troff/input.c (charinfo_to_node_list): Interpret character
6004 definition with escape_char of `\'.
6006 Tue Jul 28 12:20:12 1992 James Clark (jjc at jclark)
6008 * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
6009 Define INT_DIGITS as big enough for 64-bit integer.
6010 * lib/strtol.c: Don't include lib.h.
6011 * lib/lib.h: Delete ifdef __cplusplus stuff.
6013 Mon Jul 27 11:08:50 1992 James Clark (jjc at jclark)
6015 * ps/devps/Makefile: Add DESC to DEVICEFILES. Separate out rule
6016 for making DESC. Make $(FONTS) depend on DESC. afmtodit should
6017 get DESC from current directory.
6019 Sun Jul 26 15:38:26 1992 James Clark (jjc at jclark)
6021 * tbl/main.c (main): Always reset the line number when reading
6024 * tbl/table.c (table::print_single_hline, table::print_double_hline,
6025 table::define_bottom_macro, table::do_row, table::do_top): Round
6026 vertical spacing up to vertical resolution.
6028 Fri Jul 24 14:32:07 1992 James Clark (jjc at jclark)
6030 * ps/ps.h (enum resource_type): Avoid comma at end of
6032 * dvi/dvi.c (class dvi_printer): Likewise.
6033 * dvi/tfmtodit.c (gf::load): Likewise.
6034 * refer/label.y (struct expression): Likewise.
6035 * refer/refer.c (class label_processing_state): Likewise.
6036 * refer/indxbib.c (do_file): Likewise.
6037 * troff/troff.c (enum warning_type): Likewise.
6038 * tbl/main.c (process_data): Likewise.
6039 * troff/charinfo.h (class charinfo):
6041 Wed Jul 22 09:17:58 1992 James Clark (jjc at jclark)
6043 * dvi/devdvi/textt.map: Add entry for `-'. Regenerate fonts.
6045 Tue Jul 21 11:39:26 1992 James Clark (jjc at jclark)
6047 * groff.c: Move to new groff subdirectory.
6048 * groff/Makefile: New file.
6049 * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
6051 * man/mdate.sh: Use ls -L if supported.
6053 * Consolidate all header files produced by gendef into lib/defs.h.
6054 * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
6055 Don't include path.h.
6056 * lib/Makefile (path.h): Don't generate.
6057 * troff/input.c: Include defs.h. Don't include config.h.
6058 * troff/Makefile (config.h): Don't generate.
6059 * refer/index.h: Don't include suffix.h.
6060 * refer/index.c: Include defs.h.
6061 * refer/indxbib.c: Include defs.h.
6062 * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
6064 * refer/Makefile (suffix.h, path.h): Don't generate.
6065 * groff.c: Don't include config.h. Include defs.h.
6066 * Makefile (config.h): Don't generate.
6067 (lib/defs.h): Generate.
6068 (topclean): Remove lib/defs.h.
6070 Mon Jul 20 10:12:57 1992 James Clark (jjc at jclark)
6072 * lib/malloc.c, lib/getpagesize.h: Deleted.
6073 * Makefile: Add COOKIE_BUG configuration option. Delete malloc
6075 * lib/Makefile: Delete malloc-related stuff.
6076 * lib/new.c: Workaround COOKIE_BUG if necessary.
6078 * refer/lkbib.c, refer/indxbib.c: Don't include refer.h. Include
6079 needed header files directly.
6080 * refer/refer.h: Omit definition of DEFAULT_INDEX.
6081 * Makefile: Include definition of DEFAULT_INDEX in path.h.
6083 Sun Jul 19 10:19:22 1992 James Clark (jjc at jclark)
6085 * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
6087 * lib/font (font::load_desc, font::load): Don't split argument of
6089 (font::handle_unknown_font_command): Change type.
6090 * ps/ps.c (ps_font::handle_unknown_font_command,
6091 handle_unknown_desc_command): Change type.
6092 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
6094 Fri Jul 17 11:12:49 1992 James Clark (jjc at jclark)
6096 * lib/font.h (font::handle_unknown_font_command): Add file and
6098 * lib/font.c (font::handle_unknown_font_command):
6099 * ps/ps.c (ps_font::handle_unknown_font_command):
6100 * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
6101 lineno arguments. Use _with_file_and_line functions for error
6104 * lib/fontfile.c (font::unknown_desc_command_handler): New static
6106 * lib/font.c (font::set_unknown_desc_command_handler): New
6108 (font::load_desc): For unknown commands, call
6109 unknown_desc_command_handler if not null.
6110 * lib/font.h (class font): Declare them.
6111 (FONT_COMMAND_HANDLER): New typedef.
6112 * ps/ps.c (handle_unknown_desc_command): New function.
6113 (main): Set bflag if we had a -b option. Call
6114 font::set_unknown_desc_command_handler.
6115 (broken.h): Don't include.
6116 * ps/Makefile: No need for broken.h. Pass BROKEN_SPOOLER_FLAGS to
6118 * ps/devps/Makefile: Add `broken' command to DESC file using
6119 BROKEN_SPOOLER_FLAGS.
6121 * macros/tmac.e ([, ]): Add as synonyms for { and }.
6123 * macros/tmac.e ($p): Only exdent if \$3 > 0.
6125 * macros/tmac.e (@R, @S): New macros.
6126 Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
6127 ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
6128 Declare $H, $[0-9], .. macros with @S.
6129 Declare |0, |1, |2, |3 strings with @S.
6131 * macros/tmac.e (@S): Rename to @U.
6133 * macros/tmac.e (@z): Define @b and bp as empty instead of
6136 * macros/tmac.e (@m): Deleted.
6137 (@h): Don't call @m.
6138 (@z): Don't set @m trap.
6140 * macros/tmac.e ($h, $f): Define |z as empty string.
6142 * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
6145 * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
6147 ()f): Likewise for * register.
6149 * macros/tmac.e (sr): Don't ever scale the arguments. If the third
6150 argument is missing, don't change $R. Call sr with three
6151 arguments when initializing.
6153 Thu Jul 16 12:17:12 1992 James Clark (jjc at jclark)
6155 * macros/tmac.e (sr): New macro.
6156 Initialize $r and $R using sr.
6158 * macros/tmac.e (,): Delete \*(#[.
6160 * troff/env.c (set_tabs): Read the tab type even if the position
6161 is bad. Allow the position of the first tab stop to be negative.
6163 Wed Jul 15 13:14:37 1992 James Clark (jjc at jclark)
6165 * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
6167 * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
6168 rather than -DPATHCONF_MISSING.
6169 * Makefile: Get rid of PATHCONF_MISSING.
6171 * refer/map.c: New file.
6172 * refer/index.c: Interface to mmap through map.c. Rename map_size
6174 * refer/Makefile: Handle map.c.
6175 * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
6177 Tue Jul 14 14:15:20 1992 James Clark (jjc at jclark)
6179 * Makefile: RANLIB should be `true' if there is no ranlib.
6180 * lib/Makefile (libgroff.a): Simplify.
6181 * driver/Makefile (libdriver.a): Simplify.
6183 * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
6184 * groff.c (WCOREDUMP): Use WCOREFLAG. Define only if not already
6187 Sat Jul 11 09:19:17 1992 James Clark (jjc at jclark)
6189 * troff/env.c (compare_ranges): Declare as extern "C".
6191 * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
6193 * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
6195 Wed Jul 8 11:52:27 1992 James Clark (jjc at jclark)
6197 * pic/troff.c (troff_output::text): Merge in grops_output::text,
6198 but conditionalize use of \X based on \*(.T.
6199 (grops_output::*): Deleted.
6200 * pic/output.h: Delete declaration of make_grops_output.
6201 * pic/main.c (main): Ignore -p and -x. driver_extension_flag is 1
6202 by default. -n sets it to 0.
6203 (usage): Corresponding changes.
6204 * groff.c (main): Don't pass -x or -p to pic.
6205 * groff.sh: Likewise.
6207 * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
6210 * ps/devps/afmtodit: Change calculation of asc_boundary and
6211 desc_boundary. Make these bounds inclusive.
6212 * ps/devps: Regenerate font files.
6214 Tue Jul 7 13:14:15 1992 James Clark (jjc at jclark)
6216 * macros/tmac.latin1: New file.
6217 * macros/tmac.tty-char: Use tmac.latin1.
6218 (tmac.tty-tr): Deleted.
6219 * macros/Makefile: Install tmac.latin1.
6220 * macros/tmac.dvi: Use tmac.latin1.
6221 * macros/troffrc: Translate \[char160] onto no-break space here.
6222 * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
6224 Mon Jul 6 11:06:52 1992 James Clark (jjc at jclark)
6226 * macros/tmac.Xps: Use `do' request.
6228 * macros/tmac.ps: Use `do' request.
6230 * macros/tmac.e (@C): Use `do' request.
6232 * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
6233 * macros/Makefile: Install tmac.X*.
6235 * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
6236 * tty/Makefile: Don't install tmac.tty*.
6237 * macros/Makefile: Install tmac.tty*.
6239 * dvi/tmac.dvi: Move to macros.
6240 * dvi/Makefile: Don't install tmac.dvi.
6241 * macros/Makefile: Install tmac.dvi.
6243 * ps/tmac.ps*: Move to macros.
6244 * ps/Makefile: Don't install tmac.ps*.
6245 * macros/Makefile: Install tmac.ps*.
6247 * eqn/box.c: Provide draw_lines parameter corresponding to -D
6249 * macros/eqnrc: Set draw_lines parameter based on device.
6250 * groff.c: Don't pass -D flag to eqn.
6251 * groff.sh: Likewise.
6252 * eqn/main.c: Warn about use of -D.
6254 * troff/input.c (process_startup_file): New function.
6255 (main): Call process_startup_file().
6256 * macros/troffrc: New file.
6257 * macros/Makefile: Install troffrc.
6258 * groff.c (main): Don't pass extra -m option to troff. For a
6259 pseudo device pass the name of the pseudo device to troff using
6261 * groff.sh: Likewise.
6262 * groff.c (possible_command::prepend_arg): Deleted.
6264 * troff/input.c (do_request): New function.
6265 (init_input_requests): Bind "do" to do_request.
6267 * eqn/main.c (main): Instead of loading eqnchar from device directory,
6268 load eqnrc from macro directory.
6269 * macros/eqnrc: New file.
6270 * macros/Makefile: Install eqnrc.
6271 * ps/devps/eqnchar: Deleted.
6272 * ps/devps/Makefile: Don't install eqnchar.
6273 * dvi/devdvi/eqnchar: Deleted.
6274 * dvi/devdvi/Makefile: Don't install eqnchar.
6275 * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
6278 * lib/device.[ch]: New files.
6279 * lib/font.h (font::set_device_name, font::get_device_name):
6281 * lib/fontfile.c: Use device.h.
6282 * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
6283 * troff/input.c: Delete definition of `device'.
6284 (main): Don't initialize device.
6285 * troff/troff.h: Include device.h rather than declaring device.
6286 * troff/Makefile: No need to handle DEVICE.
6287 * driver/input.c: Include device.h. Don't use
6288 font::{set,get}_device_name.
6289 * groff.c, Makefile: Rename device.h to config.h.
6290 * groff.c: Use library device variable.
6291 * eqn/main.c: Use library device variable.
6292 * eqn/Makefile: No need to handle DEVICE.
6294 * lib/searchpath.[ch]: New files.
6295 * lib/Makefile: Handle searchpath.[ch].
6296 * troff/input.c (open_file, init_dirs): Deleted.
6297 (macro_dirs): Deleted.
6298 (open_mac_file, macro_source): Use class search_path.
6299 (add_string, struct string_list): Move definition.
6300 (main): Change -M option to use macro_path. Delete call to
6302 * lib/fontfile.c (font::command_line_font_dir, font::open_file):
6303 Rewrite to use class search_path.
6304 * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
6305 * lib/Makefile: fontfile.c depends on searchpath.h.
6306 * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
6308 * lib/macropath.[ch]: New files.
6309 * troff/Makefile: No need to handle MACROPATH.
6311 * troff/input.c: Delete DUMP code.
6312 * lib/fontfile.c, lib/font.h: Delete
6313 font::forget_command_line_font_dirs.
6315 * troff/input.c (push_token): New function.
6316 (handle_first_page_transition): Use push_token().
6317 (process_input_stack): Change handling of a space at the beginning
6320 Sun Jul 5 17:11:09 1992 James Clark (jjc at jclark)
6322 * troff/input.c (font_dirs): Delete unused variable.
6324 * eqn/lex.c (do_set): Correct error messages.
6326 Sat Jul 4 10:20:55 1992 James Clark (jjc at jclark)
6328 * troff/input.c (do_define_string): Allow the string name to be
6329 followed immediately by a tab.
6330 (define_character): Likewise.
6332 Thu Jul 2 10:59:15 1992 James Clark (jjc at jclark)
6334 * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
6337 * troff/input.c (input_iterator::is_file): New virtual function.
6338 (file_iterator::is_file): New function.
6339 (input_stack::end_file): New function.
6340 (input_stack::next_file): Handle the situation where there is no
6341 file on the input stack correctly. Avoid making two passes over
6343 (next_file): Make the filename optional; in this case call
6344 input_stack::end_file().
6346 Wed Jul 1 10:17:25 1992 James Clark (jjc at jclark)
6348 * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
6349 produce a real _ charater when the current font is CW and _
6352 * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
6353 expression to work around gcc 2.2 bug.
6355 Wed Jun 24 08:12:24 1992 James Clark (jjc at jclark)
6357 * eqn/main.c (main): Don't give an error if we can't find eqnchar.
6359 * troff/env.c (environment::add_padding): New function.
6360 (environment::add_char): Use add_padding().
6361 (environment::space): Likewise.
6362 (environment::wrap_up_field): Add some padding if there is none
6363 and there's no current tab.
6364 * troff/env.h: Declare environment::add_padding.
6366 Mon Jun 22 08:37:45 1992 James Clark (jjc@jclark)
6368 * pic/pic.y: undef fmod and rand before declaring them.
6370 Sun Jun 14 11:40:18 1992 James Clark (jjc@jclark)
6372 * troff/input.c (main): If the DESC file specifies a font name of
6373 0, then leave the corresponding font position empty.
6375 * nroff.sh: New file.
6376 * Makefile (install.nobin): Install nroff.sh.
6378 * tty/devlatin1/R.proto: Add ao as synonym for de.
6379 * tty/tmac.tty-char: Define ao as o.
6381 * tty/dev{ascii,latin1}/R.proto: Add aq.
6382 * tty/tmac.tty-char: Delete definition of aq.
6384 Mon Jun 8 11:43:20 1992 James Clark (jjc@jclark)
6386 * troff/input.c (init_charset_table): Don't translate 0240.
6387 * ps/tmac.ps: Translate char160 to space.
6388 * dvi/tmac.dvi: Likewise.
6389 * tty/tmac.tty: Likewise.
6391 Sun Jun 7 10:52:35 1992 James Clark (jjc@jclark)
6393 * dvi/tmac.dvi: Add support for all Latin-1 characters.
6395 * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
6396 \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
6399 * tty/tmac.tty-char: Add \(ah.
6401 * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
6402 No need to define \(FM and \(!/. Conditionalize all character
6405 * ps/devps/lgreekmap: Add +h, +f, +p.
6407 * ps/tmac.psnew: New file.
6408 * ps/Makefile: Install tmac.psnew.
6410 * troff/input.c (charinfo_to_node_list): Don't ever interpret
6411 character definitions in compatible mode.
6413 * troff/input.c (remove_character): New function.
6414 (init_input_requests): Bind remove_character to "rchar".
6416 * ps/tmac.psold: New file.
6417 * ps/Makefile: Install tmac.psold.
6418 * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
6419 characters into tmac.psold. Make these definitions unconditional.
6421 * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
6423 * ps/tmac.ps: Don't define \('c and \('C.
6425 * ps/devps/textmap: Move Greek characters to...
6426 * ps/devps/symbolchars:
6428 Sat Jun 6 16:41:17 1992 James Clark (jjc@jclark)
6430 * ps/devps/text.enc: Add quotesingle.
6431 * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
6432 * tty/tmac.tty-char: Likewise.
6433 * dvi/devdvi/texmi.map: Add +h, +f, +p.
6434 * dvi/devdvi/texi.map: Add Fn.
6435 * dvi/devdvi/msam.map: Add lz.
6436 * dvi/tmac.dvi: Handle Bq, bq, aq.
6438 * pic/lex.c (get_token): Recognize 'th.
6439 * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
6441 Fri Jun 5 11:20:46 1992 James Clark (jjc@jclark)
6443 * ps/devps/textmap: Move di, mu, +- to...
6444 * ps/devps/symbolchars:
6446 * macros/tmac.s (@XS): Don't call par@reset or fi.
6447 (XA): Call LP. Turn off adjustment. Reduce line length.
6449 * macros/tmac.s: Initially alias XS to LP.
6450 (XS): Rename to @XS.
6451 (cov*ab-init): Alias XS to @XS.
6453 Thu Jun 4 09:12:05 1992 James Clark (jjc@jclark)
6455 * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
6456 TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
6457 (token::is_size, token::changes_env): Deleted.
6458 * troff/number.c (parse_term): No need to process \s explicitly.
6459 Call tok.next() only after scale indicator has been processed.
6460 * troff/input.c (do_overstrike, do_bracket): No need to process \s,
6462 (token::next): Handle \s, \f, \S, \H immediately rather than
6463 returning them as tokens.
6464 (token::operator==, token::description, token::add_to_node_list,
6465 token::process): Remove handling of deleted tokens.
6467 * troff/env.c (environment::add_char): When adding padding
6468 indicator character, call start_line() if necessary.
6470 Wed Jun 3 09:55:50 1992 James Clark (jjc@jclark)
6472 * ps/devps/afmtodit: Don't output 0 kerns.
6474 * ps/devps/afmtodit: Remove directory from name of encoding in
6475 font description file.
6477 * ps/devps/afmtodit: Improve error messages.
6479 * ps/devps/afmtodit: Allow DESC file to be specified with -d.
6481 * ps/devps/Makefile: Incorporate FontMakefile. Rework.
6482 * ps/devps/FontMakefile: Deleted.
6483 * ps/devps/afmname: New file.
6485 * ps/devps/symbol.sed: New file.
6486 * ps/devps/symbol.diff: Deleted.
6487 * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
6488 Generate zapfdr.afm from zapfd.afm.
6490 * tty/tmac.tty (tty-char): Prefix definition with ".
6492 * macros/tmac.an (TP): Don't start a diversion if one has already
6495 * tty/tmac.tty-char: Add Latin-1 characters.
6497 * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
6499 Tue Jun 2 00:54:34 1992 James Clark (jjc@jclark)
6501 * tbl/table.c (table::allocate): Delete old_vline, old_entry.
6502 Move declaration of struct horizontal_span.
6504 * tbl/table.c (table::table): Initialize span_list.
6505 (table::~table): Delete span_list.
6507 * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
6509 * ps/devps/Makefile: Avoid dependency on GNU make.
6511 * ps/tmac.ps: Check that character does not already exist before
6514 * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
6515 \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
6516 \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
6519 * tty/tmac.tty-char: New file.
6520 * tty/Makefile: Install tmac.tty-char.
6521 * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
6524 * tty/tmac.tty: Fix definition of \(34.
6526 * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
6527 bracket-drawing characters onto |. Add *o.
6529 * troff/env.c (environment::wrap_up_tab): Increment field_spaces
6530 only if current_field.
6532 * troff/dictionary.c (dictionary::lookup): Free old_table after
6535 Mon Jun 1 10:15:22 1992 James Clark (jjc@jclark)
6537 * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
6538 whose glyphs are identical to glyphs of some Roman character.
6540 * tty/devlatin1/R.proto (bu): Deleted.
6541 * tty/devascii/R.proto (bu): Deleted.
6542 * tty/tmac.tty: Add definition of \(bu.
6544 * eqn/main.c (do_file): Pass FILE as argument.
6545 (main): Automatically load eqnchar. New options -F and -n.
6546 Pass do_file an opened FILE.
6547 * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
6548 No need to include font.h.
6549 * groff.sh: Likewise. Don't need to use - for standard input.
6550 Prefix files with -- if first file starts with -.
6552 * macros/tmac.e: Conditionalize use of \$* on \n(.g.
6554 * troff/env.c (environment::possibly_break_line): Don't set line
6555 to 0 across call to output_line(). Don't call output_line() until
6556 after discarding nodes after break.
6558 Sun May 31 10:45:29 1992 James Clark (jjc@jclark)
6560 * request.h (macro::empty): Declare it.
6561 * input.c (macro::empty): New method.
6562 (interpolate_macro): Don't give a WARN_SPACE if the two-character
6565 Sat May 30 10:27:15 1992 James Clark (jjc@jclark)
6567 * troff/env.c (environment::start_field): Decrement space_total
6568 when a space is frozen.
6570 Fri May 22 14:34:38 1992 James Clark (jjc@jclark)
6572 * macros/tmac.an (R): Delete macro.
6574 * troff/input.c (get_copy, token::next): Support \# (like \" but
6575 newline is ignored).
6577 * troff/input.c (token::next): Fix error message in 'Y' case.
6579 Thu May 21 09:26:24 1992 James Clark (jjc@jclark)
6581 * eqn/delim.c (define_extensible_string): Recognize any prefix of
6584 Fri May 15 10:20:41 1992 James Clark (jjc at jclark)
6586 * c++test.c: Include <osfcn.h>.
6588 * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
6591 Fri May 8 09:37:19 1992 James Clark (jjc at jclark)
6593 * tbl/table.c (table::divide_span): Don't count column separation
6594 if expand was specified.
6596 * tbl/main.c (process_format): Don't ignore width specs in
6597 continued format. Give warning for changing equal widths or
6598 column separation in continued format.
6599 (process_data): Set column separation, minimum width, equal
6600 columns at end of table.
6602 Thu May 7 08:50:40 1992 James Clark (jjc at jclark)
6604 * troff/node.c (kern_pair_node::add_discretionary_hyphen,
6605 node::add_discretionary_hyphen): Use soft_hyphen_char.
6606 (set_soft_hyphen_char): New function.
6607 (init_node_requests): Bind to shc. Initialize soft_hyphen_char.
6609 * Makefile (c++tested): Give more helpful message if test fails.
6611 Tue May 5 10:58:39 1992 James Clark (jjc at jclark)
6613 * troff/input.c (init_charset_table): Translate 0240 to
6614 an unbreakable space.
6616 * troff/token.h (token::hyphen_indicator): New function.
6617 * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
6619 * troff/input.c (translate): Allow translation to \%.
6620 * troff/node.c (node::add_char): Handle
6621 TRANSLATE_HYPHEN_INDICATOR.
6622 (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
6624 * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
6627 * tty/devlatin1/R.proto: \(hy and - should print as 055.
6629 Tue Apr 21 09:24:42 1992 James Clark (jjc at jclark)
6631 * groff.c (run_commands): If the last command gets a SIGPIPE send
6632 a SIGPIPE to all children than haven't yet terminated. When
6633 command terminates, set pid field to -1.
6635 Fri Apr 17 11:20:48 1992 James Clark (jjc at jclark)
6637 * groff.c (main): Pass an appropriate -filename option to gxditview.
6639 Thu Apr 16 15:11:40 1992 James Clark (jjc at jclark)
6641 * Makefile.bd (install): Remove existing program before copying.
6643 * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
6644 programs which have Unix counterparts to be installed with
6645 user-specified prefix.
6647 * troff/input.c (exit_troff): Don't check if exit_started.
6648 (exit_request): Don't call exit_troff if exit_started.
6650 * Makefile.bd (install.mm): Rename to install.dwbmm.
6652 Tue Apr 14 10:05:10 1992 James Clark (jjc at jclark)
6654 * driver/input.c (do_file): Add missing break for '#' case.
6656 Mon Apr 13 10:11:02 1992 James Clark (jjc at jclark)
6658 * troff/input.c (input_stack::clear): Clear past any boundaries and
6659 then add the boundaries back.
6661 * troff/input.c (exit_troff): Return immediately if already
6664 * macros/tmac.s (pg@end-text): New macro. Use pg@end-text for the
6666 (pg*end-page): If the text has ended and there are no more
6667 footnotes or keeps, exit.
6669 * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
6671 * troff/input.c (init_charset_table): Make \(rq transparent by
6674 * macros/tmac.an: Define lq and rq strings.
6676 * macros/tmac.s (Q, U): Define as \(lq and \(rq.
6678 Sun Apr 12 12:54:37 1992 James Clark (jjc at jclark)
6680 * troff/env.c (environment::final_break): New function.
6681 (environment::newline): Set prev_line_interrupted to 2 if
6683 * troff/env.h: Declare environment::final_break.
6684 * troff/input.c (exit_troff): Call environment::final_break()
6685 instead of environment::do_break().
6687 * macros/Makefile: Install man.local if $(MACRODIR)/man.local
6688 doesn't already exist.
6689 * macros/man.local: New file.
6690 * macros/tmac.an: Load man.local.
6691 * macros/man.ultrix: New file.
6693 Sat Apr 11 17:32:04 1992 James Clark (jjc at jclark)
6695 * troff/input.c (exit_groff): Rename to...
6696 (exit_troff): New function.
6698 * troff/div.c (exit_started, done_end_macro,
6699 seen_last_page_ejector): New global variables.
6700 (began_page_in_end_macro): New static variable.
6701 (exit_flag): Deleted.
6702 (top_level_diversion::top_level_diversion): Initialize
6704 (top_level_diversion): More elaborate test for whether
6705 cleanup_and_exit() should be called.
6706 Set began_page_in_end_macro if the end macro isn't yet finished.
6707 * troff/div.h (top_level_diversion::last_page_count): New data
6709 (top_level_diversion::set_last_page): New function.
6710 (exit_started, done_end_macro, seen_last_page_ejector): Declare.
6711 * troff/env.c (do_break): Zero prev_line_interrupted.
6712 * troff/input.c (exit_flag): Delete declaration.
6713 (LAST_PAGE_EJECTOR): New magic cookie.
6714 (token::next): Handle LAST_PAGE_EJECTOR.
6715 (exit_groff): Set exit_started and done_end_macro instead of
6716 exit_flag. Call top_level_diversion::set_last_page. Push a
6717 LAST_PAGE_EJECTOR instead of calling push_page_ejector(). Do
6718 another ejection after setting seen_last_page_ejector.
6720 Thu Apr 9 04:37:11 1992 James Clark (jjc at jclark)
6722 * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
6724 * macros/tmac.e (TH): Make sure there's room for the initial
6727 * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
6728 Set FVS in points rather than units.
6730 Mon Apr 6 11:21:32 1992 James Clark (jjc at jclark)
6732 * troff/div.c (top_level_diversion::add_trap): Don't consider the
6733 position of empty slots.
6735 Fri Apr 3 10:46:45 1992 James Clark (jjc at jclark)
6737 * ps/devps/S: Fix height and depth of parenrightex.
6738 * ps/devps/symbol.diff: Regenerate.
6740 Sat Mar 28 21:17:52 1992 James Clark (jjc at jclark)
6742 * tmac.e (u): Do underlining as in -mgs.
6744 Fri Mar 27 09:23:44 1992 James Clark (jjc at jclark)
6746 * tty/tty.c (tty_printer::end_page): If overstriking is
6747 suppressed, still turn overstruck horizontal and vertical lines
6750 * lib/new.c: Back out Feb 24 change; no longer needed with gcc
6753 * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
6755 Wed Mar 18 09:29:10 1992 James Clark (jjc at jclark)
6757 * Version 1.05 released.
6759 Tue Mar 17 16:50:45 1992 James Clark (jjc at jclark)
6761 * tty/tty.c: Instead of keeping an array of glyphs and then
6762 sorting it, keep a ordered linked list of glyphs for each line.
6764 * driver/driver.h: Include stddef.h.
6766 * tty/tty.c (compare_glyph):
6767 * refer/refer.c (rcompare):
6768 * troff/env.c (compare_ranges): Arguments of qsort comparison
6769 function should be const void *.
6771 * troff/number.c (parse_term):
6772 * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
6775 * refer/label.y (consider_authors): Don't access variables
6776 constructed under a condition outside that condition: put braces
6777 round for statement containing declaration; redeclare use of same
6780 * pic/pic.y (text_expr): Delete production that allows
6781 parenthesised text_expr.
6782 (expr): Allow a conditional_expr to appear in parentheses.
6783 (conditional_expr): Rename to any_expr.
6785 * mm: Install new version 1.01 from jh.
6787 * lib/font.c (font::get_width): Cache scaled widths.
6788 (font::font): Initialize widths_cache.
6789 (font::~font): Destroy widths_cache.
6790 * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
6792 Mon Mar 16 10:16:10 1992 James Clark (jjc at jclark)
6794 * c++test.c, c++test.ref: New files.
6795 * Makefile: Check that the C++ compiler works.
6797 * ps/tmac.pspic (PSPIC): Do a break.
6799 * ps/tmac.ps: Move definition of PSPIC into...
6800 * ps/tmac.pspic: New file.
6801 (PSPIC): Draw box around picture, but make it invisible to grops.
6802 * ps/tmac.ps: Load tmac.pspic.
6803 * ps/Makefile: Install tmac.pspic.
6805 Sun Mar 15 14:18:08 1992 James Clark (jjc at jclark)
6807 * lib/font.c (scale_round): If n is negative,
6808 subtract .5 before truncating floating point result.
6810 * lib/fontfile.c: Include <errno.h>.
6812 Tue Mar 10 14:17:03 1992 James Clark (jjc at jclark)
6814 * driver/input.c (get_char): Inline. Don't update current_lineno.
6815 Change callers to up date current_lineno if necessary.
6816 Use get_char() instead of getc(current_file).
6818 Sun Mar 8 18:05:28 1992 James Clark (jjc at jclark)
6820 * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
6822 Fri Mar 6 19:38:58 1992 James Clark (jjc at jclark)
6824 * tty/tty.c (tmac.tty): Define \(rg as (R).
6826 Tue Mar 3 10:11:25 1992 James Clark (jjc at jclark)
6828 * lib/lib.h: New define a_delete.
6829 * Use a_delete instead of delete when deleting an array of objects
6830 without destructors.
6832 * lib/lib.h: Rename adelete to ad_delete.
6833 * Change uses of adelete.
6835 Mon Mar 2 12:41:05 1992 James Clark (jjc at jclark)
6837 * eqn/eqn.y: Include lib.h.
6839 * troff/node.c (grow_font_table): Delete old_font_table.
6841 * mm: Install new version from jh.
6843 Fri Feb 28 10:42:23 1992 James Clark (jjc at jclark)
6845 * tbl/table.h (format_type): Make global instead of local to class
6846 entry_format. Prefix enumerators with FORMAT_.
6847 * tbl/table.c, tbl/main.c: Corresponding changes.
6848 * refer/token.h (token_type): Make global. Prefix enumerators
6850 * refer/token.[ch]: Corresponding changes.
6851 * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
6853 * troff/div.c (node::set_vertical_size): Don't name argument.
6855 Thu Feb 27 10:29:19 1992 James Clark (jjc at jclark)
6857 * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
6858 * lib/lib.h: Define adelete accordingly.
6859 * pic/object.c (graphic_object::graphic_object):
6860 * tbl/main.c (format::~format):
6861 * tbl/table.c (table::~table):
6862 * refer/ref.c (reference::~reference, reference::merge,
6863 reference::insert_field, reference::delete_field): Use adelete.
6865 * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
6867 * tbl/table.h: Corresponding changes.
6869 * common.c (common_output::dashed_arc, common_output::dotted_arc):
6870 Ensure total_angle is positive.
6872 Wed Feb 26 08:49:26 1992 James Clark (jjc at jclark)
6874 * refer/ref.c (reference::merge, reference::insert_field,
6875 reference::delete_field): Avoid delete[0].
6877 * refer/token.c (init_special_chars): Move calls to cmupper
6878 outside calls to init_two_char_letter to work around bug in gcc
6881 Mon Feb 24 14:20:00 1992 James Clark (jjc at jclark)
6883 * lib/new.c (operator new): Use __builtin_new for g++.
6885 * pic/object.c (graphic_object::~graphic_object): Don't use
6888 * pic/object.c (output::compute_scale): Initialize max_width and
6891 Sat Feb 15 09:55:20 1992 James Clark (jjc at jclark)
6893 * troff/input.c (write_request): Call fflush.
6895 * troff/node.h (class composite_node): Move declaration to node.c
6896 * troff/input.c (charinfo_to_node): Rename to ...
6897 (charinfo_to_node_list): Return node list rather than composite
6899 * troff/node.c (make_composite_node): New function.
6900 (make_node, add_char): Call make_composite_node instead of
6902 (class composite_node): Add a tfont * member. Delete font_size
6904 (composite_node::composite_node, composite_node::copy,
6905 composite_node::size): Corresponding changes.
6906 (composite_node::tprint): Provide constant spacing, emboldening
6907 and track kerning as specified in tfont.
6908 (composite_node::width): Change width calculation accordingly.
6909 * troff/env.h (environment::composite): New member.
6910 (environment::is_composite, environment::set_composite): New
6912 * troff/env.c (environment::environment): Initialize composite.
6913 * troff/input.c (charinfo_to_node): Call
6914 environment::set_composite.
6915 * troff/node.c (make_composite_node, make_glyph_node): Use the
6916 plain version of the tfont if the environment is composite.
6918 * troff/node.c (font_info::get_space_width): Additional argument
6919 giving space_size. Handle constant space correctly. Scale by
6920 space_size unless constant spaced.
6921 (env_sentence_space_width): New function.
6922 * troff/node.h: Declare it.
6923 * troff/env.h (environment::get_space_size,
6924 environment::get_sentence_space_size,
6925 environment::get_narrow_space_width,
6926 environment::get_half_narrow_space_width): Make inline.
6927 (environment::get_space_width): Make inline. Just call
6929 * troff/env.c: Delete definitions for funtions made inline.
6930 (environment::space_newline, environment::space): Use
6931 env_sentence_space_width(). Don't scale by space_size.
6932 * troff/node.h: Move declarations of env*space_width() functions
6935 Sat Feb 8 09:30:22 1992 James Clark (jjc at jclark)
6937 * macros/tmac.s (PS): Don't try to set negative indent.
6939 Thu Feb 6 09:00:35 1992 James Clark (jjc at jclark)
6941 * pic/pic.y: Fix min function.
6943 Tue Jan 28 07:52:29 1992 James Clark (jjc at jclark)
6945 * man/mdate.sh: Clear LANGUAGE.
6947 Sun Jan 19 13:02:41 1992 James Clark (jjc at jclark)
6949 * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
6950 * pic/lex.c: New COMMAND keyword.
6951 * pic/pic.y (print_args, print_arg): New rules.
6952 (placeless_element): Use print_args for PRINT.
6953 New COMMAND element.
6955 Tue Jan 7 13:14:31 1992 James Clark (jjc at jclark)
6957 * troff/input.c (terminal): Handle missing argument correctly.
6959 * pic/pic.y (text_expr): New rule.
6961 * pic/pic.y: Implement := operator.
6963 Sun Jan 5 10:23:02 1992 James Clark (jjc at jclark)
6965 * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
6968 Sat Jan 4 14:42:26 1992 James Clark (jjc at jclark)
6970 * ps/devps/dingbatsrmap: Include this in the distribution.
6972 * macros/tmac.doc: Replace with new version from 2nd Networking
6973 Release. Fix loading of doc-* files.
6974 * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
6975 * macros/tmac.doc.old: New file. Apply fixes that had been
6976 applied to old tmac.doc.
6977 * macros/tmac.andoc: Check that we're running under groff.
6978 * macros/Makefile: Rework.
6980 Fri Jan 3 13:27:51 1992 James Clark (jjc at jclark)
6982 * tbl/table.h (format_type):
6983 * refer/token.h (token_type): If NESTED_TYPES is defined, use
6984 typedef to make these types visible at file scope.
6985 * Makefile: Add NESTED_TYPES configuration option.
6987 * troff/div.c (mark): At the top level use the value of
6988 nl_reg_contents rather than the current vertical position.
6990 Thu Jan 2 10:34:51 1992 James Clark (jjc at jclark)
6992 * tty/tty.c: Implement \D for horizontal or vertical lines.
6993 (tty_printer::set_char): Use vec_used+2 as serial number.
6994 Don't allow size of vector to exceed USHRT_MAX-2.
6995 Split off part into...
6996 (tty_printer::add_char): New function.
6997 (tty_printer::draw): New function.
6998 (compare_glyph): Handle equal serial numbers.
6999 (tty_printer::end_page): Handle overstruck characters from \D.
7000 (main, usage): Implement -d option.
7002 Mon Dec 23 10:37:51 1991 James Clark (jjc at jclark)
7004 * tbl/main.c (process_format):
7005 * eqn/text.c (split_text):
7006 * troff/input.c (token::next): Use inner block for declarations
7007 with initializers in switch statement.
7009 Mon Dec 16 20:52:03 1991 James Clark (jjc at jclark)
7011 * pic/common.c (common_output::dash_line): Cope with zero-length
7014 Sun Nov 17 12:04:08 1991 James Clark (jjc at jclark)
7016 * Version 1.04 released.
7018 Wed Nov 13 05:27:21 1991 James Clark (jjc at jclark)
7020 * macros/tmac.an (TH): Define a macro an-init to define variables
7021 based on command line arguments.
7022 (an-header): Call it.
7024 Sun Nov 3 12:07:34 1991 James Clark (jjc at jclark)
7026 * Makefile (install.mm): Rename to install.dwbmm.
7028 * Makefile: Integrate mm.
7029 * mm: New directory.
7031 Wed Oct 30 10:11:34 1991 James Clark (jjc at jclark)
7033 * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
7036 * pic/troff.c (troff_output::simple_spline,
7037 troff_output::simple_polygon): Rename variable `v' to `d' to avoid
7038 shadowing parameter.
7040 * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
7042 * lib/ptable.h: Add explicit casts when converting from unsigned
7045 * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
7046 * dvi/devdvi/Makefile: Install SA, SB.
7048 * refer/indxbib.c: Add declaration of mktemp.
7050 * refer/lookbib.c: Add declaration of isatty.
7052 Fri Oct 25 09:00:17 1991 James Clark (jjc at jclark)
7054 * pic/lex.c (interpolate_macro_with_args): While collecting
7055 arguments, keep track of whether we're in a string.
7057 Wed Oct 23 08:42:48 1991 James Clark (jjc at jclark)
7059 * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
7060 down with \v, so as to avoid problems with top of page trap
7061 setting no space mode.
7063 Tue Oct 22 17:38:49 1991 James Clark (jjc at jclark)
7065 * eqn/lex.c (get_delimited_text): Allow tab before macro body.
7067 Tue Oct 15 17:24:53 1991 James Clark (jjc at jclark)
7069 * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
7070 Improve error message.
7072 Fri Oct 11 11:09:38 1991 James Clark (jjc at jclark)
7074 * ps/psrm.c (print_ps_string): Don't pass negative numbers to
7077 Wed Oct 9 17:50:14 1991 James Clark (jjc at jclark)
7079 * groff.c (possible_command::execp): Always use _exit() after a
7082 * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
7083 NO_SYS_WAIT_H configuration options.
7084 * groff.c: Use these options. Use POSIX-style macros to extract
7085 fields from the status returned by wait().
7087 Fri Oct 4 12:12:27 1991 James Clark (jjc at jclark)
7089 * tbl/table.c (table::compute_separation_factor): Allow the
7090 separation factor to drop to 0.
7092 Tue Oct 1 18:12:38 1991 James Clark (jjc at jclark)
7094 * refer/search.c: Include <errno.h>.
7096 Sun Sep 29 08:40:57 1991 James Clark (jjc at jclark)
7098 * pic/pic.y (YYDEBUG): Don't define for Borland C++.
7100 * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
7103 * pic/lex.c (input_stack::bol): Move definition out of class body.
7105 * pic/main.c: On MSDOS munge argv[0].
7107 * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
7109 * lib/ptable.c (hash_string): Use unsigned long rather than
7111 (next_ptable_size): Use unsigned rather than int. Give an error
7112 message if we've hit the largest table size.
7113 * lib/ptable.c: Corresponding changes. Also use unsigneds for the
7116 * pic/object.h (object_spec): Make flags unsigned long. Declare
7117 flags as const unisgned long rather than as enums.
7119 * pic/output.c: Deleted.
7121 * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
7123 * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
7124 Add additional argument.
7125 (line_entry::note_double_vrule_on_{left,right}): Set value of
7126 douvle_vrule_on_{right,left} flag according to argument.
7127 (simple_line_entry::simple_print,
7128 simple_line_entry::double_line_print): If adjacent to double vrule
7129 on a corner extend rather than shorten the rule by half the double
7132 * troff/number.c (parse_term): In checking for overflow, handle the
7133 case where the current horizontal position is negative.
7135 Thu Sep 12 08:26:09 1991 James Clark (jjc at jclark)
7137 * pic/object.c (draw_arrow): Check for object having zero length.
7139 Wed Sep 11 10:32:38 1991 James Clark (jjc at jclark)
7141 * eqn/main.c (do_file): Split off inline equation handling into...
7142 (inline_equation): New function. Search for starting delimiter
7144 (delim_search): New function. Don't recognize a delimiter that
7145 occurs in the name of an escape sequence, number register, string
7148 Tue Sep 10 04:01:11 1991 James Clark (jjc at jclark)
7150 * eqn/delim.c (delim_box::compute_metrics): Don't call
7151 define_extensible_string if left is 0.
7152 (delim_box::output): Don't print the left delimiter if left is 0.
7153 (delim_box::debug_print): Check for left == 0 before calling printf.
7155 Fri Aug 23 13:02:30 1991 James Clark (jjc at jclark)
7157 * troff/Makefile (majorminor.c): Include only digits in
7160 Thu Aug 22 09:35:37 1991 James Clark (jjc at jclark)
7162 * refer/dirnamemax.c: new file.
7163 * refer/genlimits.c: Deleted.
7164 * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
7165 Don't check path length.
7166 * refer/Makefile: Add dir_name_max.o; delete genlimits.
7167 * Makefile: Add PATHCONF_MISSING option.
7169 * refer/indxbib.c (get_cwd): New function.
7170 (main): Use get_cwd().
7171 * lib/getcwd.c: New file.
7172 * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
7174 * lib/Makefile: Compile getcwd.o.
7176 * ps/tmac.psatk (psatk-defs): Define showpage after pushing
7179 * refer/indxbib.c (main): Check success of mktemp.
7181 * lib/tmpfile.c: New file.
7182 * lib/Makefile: Add tmpfile.c.
7183 * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
7184 * ps/ps.h: Delete declaration of mktemp().
7185 * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
7186 * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
7187 * driver/driver.h: No need now to include errno.h.
7189 * everywhere: Set errno to 0 before calling fopen().
7191 * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
7192 dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
7193 refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
7195 Mon Aug 19 10:52:18 1991 James Clark (jjc at jclark)
7197 * troff/env.h (translate_space_to_dummy): Declare it.
7198 * troff/env.c (environment::space_newline, environment::space):
7199 If translate_space_to_dummy is set then make the width of spaces 0.
7200 * troff/input.c (translate): If the second character of a
7201 translation is a space, translate to unbreakable space. If the
7202 first character is a space, set or clear translate_space_to_dummy
7203 according to whether the second character is \&. Weird!
7205 Tue Jul 30 10:03:56 1991 James Clark (jjc at jclark)
7207 * groff.c (run_commands): Don't use non-zero exit code because a
7208 command gets SIGPIPE.
7210 * groff.c, groff.sh: Use -mXps with -TXps.
7212 * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
7213 (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
7214 ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
7215 (ps_printer::special): New specials invis and endinvis.
7216 (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
7217 (ps_printer::set_char, ps_printer::draw): Return if invis_count>0.
7218 (ps_printer::end_page): Check that invis_count == 0.
7219 (ps_printer::invis_count): New member.
7220 (ps_printer::ps_printer): Initialize invis_count to 0.
7222 * troff/env.c (environment::hyphenate_line): Hyphenation
7223 indicator at beginning of word inhibits splitting after -, \(em
7226 * pic/pic.y (element): Allow another element to follow } without
7227 any intervening separator.
7229 Mon Jul 22 12:27:37 1991 James Clark (jjc at jclark)
7231 * pic/lex.c (get_delimited): Allow tabs before delimiter.
7233 Wed Jul 17 10:59:08 1991 James Clark (jjc at jclark)
7235 * groff.c: Get rid of HAVE_UNION_WAIT stuff. Instead suppress
7236 declaration of wait() in header files.
7237 * Makefile: Get rid of -DHAVE_UNION_WAIT.
7239 * tbl/table.c (alphabetic_text_entry::add_tab): New function.
7241 * lib/lib.h: Declare return type of strerror as char *.
7243 * man/Makefile: Add g flag to sed substitutions.
7244 * Makefile (shgroff, bindist): Likewise.
7246 Sun Jul 14 11:57:02 1991 James Clark (jjc at jclark)
7248 * ps/ps.c (ps_printer::do_import): Move push of userdict into...
7249 * ps/devps/prologue (PBEGIN): Define showpage after pushing
7252 Sat Jul 13 20:53:04 1991 James Clark (jjc at jclark)
7254 * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
7257 Fri Jul 12 07:10:09 1991 James Clark (jjc at jclark)
7259 * man/mdate.sh: Handle the fact that BSD ls -l does not print the
7262 Sun Jul 7 08:00:23 1991 James Clark (jjc at jclark)
7264 * troff/input.c (define_number_reg): If currently undefined,
7265 don't define it if the argument is an invalid expression.
7267 * Makefile: Ignore return value of `if' commands without `else'
7270 * Makefile: Split up CPPDEFINES into a series of separate
7271 configuration options.
7273 * troff/input.c (init_registers): Use time_t instead of long
7274 unless LONG_FOR_TIME_T is defined. Use returned result rather
7275 than passing pointer.
7276 * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
7278 * lib/Makefile (fontpath.h): Use gendef.
7280 Thu Jul 4 09:48:05 1991 James Clark (jjc at jclark)
7282 * troff/input.c (input_iterator::shift): Delete argument name.
7283 * troff/node.c (suppress_output_file::really_begin_page,
7284 suppress_output_file::really_transparent_char, node::ascii_print,
7285 node::tprint): Delete names of unused arguments.
7287 Wed Jul 3 17:34:57 1991 James Clark (jjc at jclark)
7289 * refer/label.y (string): Pass $4 to command_error.
7291 Tue Jul 2 15:06:01 1991 James Clark (jjc at jclark)
7293 * Version 1.03 released.
7295 Sat Jun 29 08:14:01 1991 James Clark (jjc at jclark)
7297 * Makefile: Pass definition of SHELL in SUBFLAGS.
7300 * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
7301 ps/Makefile: Use gendef to construct header files that are
7302 constructed from the Makefile.
7304 * macros/Makefile: make all should build stripped version of tmac.e.
7306 * refer/Makefile (clean): Remove y.output.
7308 Fri Jun 28 09:44:36 1991 James Clark (jjc at jclark)
7310 * ps/pfbtops.c (main): Add -v option which prints out a version
7312 * ps/Makefile (pfbtops): Link with libgroff.a.
7314 Fri Jun 21 07:43:23 1991 James Clark (jjc at jclark)
7316 * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
7317 * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
7319 * refer/lkbib.c (main): Always terminate reference with blank
7321 * refer/lookbib.c (main): Likewise.
7323 * refer/linear.c (file_buffer::load): Check that the file is not a
7326 * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
7327 (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
7328 Delete second inclusion of <sys/param.h>.
7330 Tue Jun 18 01:32:26 1991 James Clark (jjc at jclark)
7332 * troff/token.h (token::special): Deleted.
7334 * tbl/main.c (process_format): Rework so that opt->tab_char is
7335 recognized only when appropriate.
7337 * ps/Makefile (clean): Remove pfbtops.
7339 Sun Jun 16 09:37:19 1991 James Clark (jjc at jclark)
7341 * lib/font.c (text_file::next): Don't return if we have got a
7344 Fri Jun 14 09:52:26 1991 James Clark (jjc at jclark)
7346 * refer/refer.c (store_reference): Get hash code from old_table[i]
7347 when rehashing the table.
7349 Thu Jun 13 01:26:43 1991 James Clark (jjc at jclark)
7351 * eqn/box.c (box::top_level): Save size and prev size using \R and
7352 restore it afterwards. Set the size to the size at the beginning
7354 * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
7355 SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
7357 * refer/Makefile (limits.h): Use ./genlimits.
7359 Wed Jun 12 16:05:34 1991 James Clark (jjc at jclark)
7361 * refer/index.c: Delete declarations of stat() and fstat().
7363 Tue Jun 11 14:52:49 1991 James Clark (jjc at jclark)
7365 * tty/tmac.tty: Add character definitions for \(>= and \(<=.
7367 Mon Jun 10 22:49:48 1991 James Clark (jjc at jclark)
7369 * etc/grog.sh, etc/grog.pl: Change regex for .PS.
7371 Fri Jun 7 09:13:06 1991 James Clark (jjc at jclark)
7373 * troff/input.c (token::get_char): Handle \e.
7375 * refer/linear.c: Delete declarations of fstat() and stat().
7377 Wed Jun 5 09:11:59 1991 James Clark (jjc at jclark)
7379 * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
7380 OP_DELETE_BROKEN stuff, since we now have a fix for g++.
7382 Mon Jun 3 13:41:32 1991 James Clark (jjc at jclark)
7384 * troff/input.c (do_define_macro): Improve error handling for end
7385 of file while defining macro.
7387 Sun Jun 2 10:20:24 1991 James Clark (jjc at jclark)
7389 * eqn/box.h: Fix declaration of set_gsize.
7390 * eqn/box.c (set_gsize): Make argument const char *.
7391 (gsize): Declare as char *.
7392 * eqn/main.c (main): Don't convert gsize to int.
7393 * eqn/lex.c (do_gsize): Pass char * to set_gsize.
7395 * Version 1.02 released.
7397 Sat Jun 1 12:19:46 1991 James Clark (jjc at jclark)
7399 * macros/tmac.andoc: New file.
7400 * macros/Makefile: Install tmac.andoc.
7402 * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
7403 operator new and delete on OP_DELETE_BROKEN not being defined.
7404 * Makefile: Mention OP_DELETE_BROKEN.
7406 Mon May 27 13:49:07 1991 James Clark (jjc at jclark)
7408 * Makefile (bindist): Pass SUBFLAGS.
7410 Sun May 26 14:13:22 1991 James Clark (jjc at jclark)
7412 * Makefile, groff.c: Pass definitions to groff.c via device.h.
7414 * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
7417 * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
7419 * ps/ps.h, ps/psrm.c: Make comment_table and
7420 header_comment_table local to resource_manager::process_file.
7422 * groff.sh: With -TXps pass -printCommand option to gxditview.
7424 * groff.c (possible_command::print): Implement using
7425 append_arg_to_string.
7427 * xditview: Merge in new implementation with own ChangeLog.
7429 Sat May 25 18:33:20 1991 James Clark (jjc at jclark)
7431 * groff.c (main): Implement PRINT_OPTION.
7432 (append_arg_to_string): New command.
7433 (device_table): Set PRINT_OPTION flag for Xps.
7435 Fri May 24 09:48:58 1991 James Clark (jjc at jclark)
7437 * troff/groff.h: Rename to troff.h.
7439 * pic/lex.c (lookup_keyword, docmp): New functions.
7440 (get_token): Use new lookup_keyword.
7441 Don't include key.h.
7442 * pic/key.[ch], pic/pic.gperf: Deleted.
7443 * pic/Makefile: Remove gperf stuff.
7445 * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
7447 * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
7449 * troff/Makefile, troff/node.c: Move definition of
7450 STORE_WIDTH into node.c.
7452 * etc/grog.pl, etc/grog.sh: Support -mdoc.
7454 Thu May 23 12:30:49 1991 James Clark (jjc at jclark)
7456 * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
7457 dvi/devdvi/texb.map: Add lq and rq.
7458 dvi/devdvi: Regenerate fonts.
7459 * ps/devps/textmap: Add lq and rq.
7460 * ps/devps: Regenerate fonts.
7461 * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
7462 * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
7464 * pic/object.c (position_rectangle): When checking radius
7465 cope with possiblity that width or height is negative.
7466 (box_object::box_object): Have separate xrad and yrad with
7467 signs matching signs of dim components.
7468 (box_object::{north,south}_{east,west}): Use xrad and yrad.
7469 (box_object::print): With rounded boxes use absolute values
7470 for dim and rad arguments.
7472 * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
7475 * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
7477 * various files: Add explicit destructors to keep Saber CC +d
7480 Wed May 22 11:37:11 1991 James Clark (jjc at jclark)
7482 * eqn/box.c (box::top_level): Restore fonts correctly after
7483 font changes in line containing inline equation. Also
7484 restore previous font as well as current font.
7485 * eqn/pbox.h: Define necessary string and register names.
7487 * troff/input.c (token::next): Case 'R' calls do_register.
7488 (do_register): New function.
7490 Tue May 21 11:28:23 1991 James Clark (jjc at jclark)
7492 * groff.c, groff.sh: Support Xps device. Allow each device
7493 to have a pseudo_name and a real_name.
7495 * groff.c (run_commands): Don't print `Broken pipe' messages.
7497 * ps/pfbtops.c: New file.
7498 * ps/Makefile: Add pfbtops.
7500 * troff/number.c (parse_term): Improved error message.
7502 Mon May 20 11:22:14 1991 James Clark (jjc at jclark)
7504 * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
7506 * Makefile: Integrate refer.
7507 * refer: New directory.
7508 * man/grefer.man, man/glookbib.man, man/gindxbib.man,
7509 man/lkbib.man: New files.
7510 * man/Makefile: Support refer man pages.
7512 * lib/lib.h: Declare is_prime.
7513 * lib/prime.c: New file.
7515 * troff/input.c (macro_source): New function.
7516 (init_input_requests): Bind "mso" to macro_source.
7518 * troff/env.c (environment::possibly_break_line): Maintain
7519 pointer to pointer to node to be split in ndp so as to avoid
7520 using address of freed node.
7522 * troff/env.c (environment::hyphenate_line): Maintain pointer to
7523 pointer to first node to be hyphenated in startp so as to
7524 avoid using address of freed node.
7526 * troff/env.c (class trie, class hyphen_trie): Make the
7527 elements of the trie be of type char not unsigned char.
7528 Declare arguments to be const char* instead of unsigned char *.
7530 * troff/env.c (hyphenate): Initialize hbuf[0].
7532 * troff/input.c (set_string): Declare p to be char * and cast
7533 *p to unsigned char when necessary.
7535 * troff/input.c (do_define_macro): Declare s to be const
7536 char*. Cast element to unisgned char when necessary, Declare
7537 d to be an int. Handle EOF better.
7539 * troff/Makefile, troff/input.c: Different scheme for passing
7540 definitions of MACROPATH, HYPHENFILE and DEVICE.
7542 Tue May 14 13:41:36 1991 James Clark (jjc at jclark)
7544 * tty/devascii/R.proto: Delete entry for em.
7545 * tty/devlatin1/R.proto: Likewise.
7547 Sat May 11 11:13:28 1991 James Clark (jjc at jclark)
7549 * troff/input.c (translate): Stop when we get a space. Treat eof
7552 * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
7554 Wed Apr 24 19:24:33 1991 James Clark (jjc at jclark)
7556 * tbl/main.c (process_format): A font name following a `f'
7557 modifier that starts with a digit can be only one character long.
7558 Also deal with EOF on the second character of the font name.
7560 Wed Apr 17 11:23:43 1991 James Clark (jjc at jclark)
7562 * troff/input.c (token::next): Turn \~ into an
7563 unbreakable_space_node.
7564 * troff/node.c (unbreakable_space_node): New class.
7565 * troff/node.h: Declare it.
7567 Tue Apr 16 10:47:12 1991 James Clark (jjc at jclark)
7569 * dvi/dvi.c (dvi_printer::set_char): Make code an int. Check that
7570 it's >= 0, before outputting it as a single byte.
7572 Mon Apr 15 11:20:23 1991 James Clark (jjc at jclark)
7574 * lib/font.c: Make font_char_metric::code an int.
7575 (font::get_code): Change return type to int.
7576 (font::load): Allow code to be arbitrary integer.
7577 * lib/font.h (font::get_code): Change return type to int.
7578 (font::number_to_index): Change argument type to int.
7579 * troff/input.c (token::next): In case 'N', allow any value.
7580 Store value in token::val.
7581 (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
7582 (token::get_char, token::add_to_node_list, token::process): Get
7584 (charinfo::set_number): Change argument to int.
7585 (charinfo::get_number): Require that NUMBERED flag be set.
7586 (get_charinfo_by_number): Store numbered characters not between 0
7587 and 255 in a dictionary.
7588 * troff/charinfo.h (get_charinfo_by_number): Change argument type
7590 (charinfo::number): Change type to int.
7591 (charinfo::set_number): Change type of set_number to int.
7592 * troff/node.c (troff_output_file::put_char_width,
7593 troff_output_file::put_char): Test whether character is numbered
7594 using charinfo::numbered().
7595 * driver/printer.c (printer::set_numbered_char): Allow arbitrary
7597 * lib/nametoindex.c: New implementation to cope with arbitrary
7600 * troff/input.c (token::operator==): Test val for
7601 TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
7604 * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
7605 (.man.n): sed out @BROKEN_SPOOLER_FLAGS@.
7607 Sun Apr 14 12:57:00 1991 James Clark (jjc at jclark)
7609 * ps/devps/zapfdr.ps: Don't copy UniqueID. Avoid use of newdict
7612 * all Makefiles: rm targets of cp and >.
7614 * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
7617 * eqn/lex.c (def_table): Add dollar.
7619 Sat Apr 13 13:02:44 1991 James Clark (jjc at jclark)
7621 * troff/input.c (do_width): Push back newline before closing delim
7624 Fri Apr 12 15:16:03 1991 James Clark (jjc at jclark)
7626 * groff.c (possible_command::prepend_arg): New function.
7627 (main): Prepend device -m option.
7628 * groff.sh: Put device -m options before command-line options.
7630 Tue Apr 9 10:24:43 1991 James Clark (jjc at jclark)
7632 * macros/tmac.an (IP): Quote argument to TP.
7634 * ps/ps.c (main): New option -b, which sets...
7635 (broken_flags): New variable.
7636 (ps_printer::~ps_printer): Incorporate the setup section in the
7637 prolog if (broken_flags & NO_SETUP_SECTION).
7638 (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
7639 (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
7640 ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
7641 ps_printer::print_needed_font_comment,
7642 ps_printer::print_supplied_font_comment,
7643 ps_printer::print_include_font_comments,
7644 ps_printer::lookup_doc_font, ps_printer::download_fonts,
7645 ps_printer::read_download_file, read_document_fonts, add_font,
7646 skip_line, parse_fonts_arg, document_font::document_font,
7647 document_font::~document_font, document_font::download,
7648 ps_output::include_file): Deleted.
7649 (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
7650 rather than %!PS-Adobe-2.0. Make calls to
7651 resource_manager::need_font for each font that we used. Replace
7652 calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
7653 print_supplied_font_comment, print_needed_font_comment by call to
7654 resource_manager::print_header_comments. Output %%Orientation
7655 comment. Output %%Requirements: numcopies comment if ncopies > 1.
7656 Don't output the prolog directly. Instead call
7657 resource_manager::output_prolog. Only define #copies when ncopies
7658 > 1. Delete calls to print_include_font_comments and
7659 download_fonts. Add call to resource_manager::document_setup.
7660 (ps_printer::do_file): Call resource_manager::import_file instead
7661 of including it ourselves.
7662 (ps_printer::do_import): Likewise. Also don't call
7663 merge_import_fonts. Push userdict on the dictionary stack before
7664 and pop it afterwards.
7665 Move declaration of ps_output into ps.h.
7666 * ps/psrm.c: New file implementing resource_manager class.
7667 * ps/ps.h: New file declaring ps_output and resource_manager
7669 * ps/devps/zapfdr.ps:
7670 * ps/devps/symbolsl.ps:
7671 * ps/devps/prologue: Use 3.0 conventions.
7672 * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
7673 Add default definition of BROKEN_SPOOLER_FLAGS.
7674 * Makefile: New variable BROKEN_SPOOLER_FLAGS. Add
7675 BROKEN_SPOOLER_FLAGS to SUBFLAGS.
7677 Mon Apr 8 09:26:54 1991 James Clark (jjc at jclark)
7679 * etc/grog.pl: New file.
7680 * Makefile (GROG): New variable.
7681 Add GROG to SUBFLAGS.
7682 * etc/Makefile (GROG): New variable.
7683 (install.nobin): Install $(GROG) rather than grog.sh.
7685 Thu Apr 4 11:36:45 1991 James Clark (jjc at jclark)
7687 * eqn/special.c (special_box::compute_metrics): Make the input and
7688 output strings the same. Get the new height and depth from the
7689 predefined height and depth registers. Also make subscript kern
7691 (special_box::compute_subscript_kern, special_box::compute_skew):
7694 * eqn/box.c (pointer_box::compute_skew,
7695 simple_box::compute_metrics, box::top_level)
7696 * eqn/text.c (prime_box::compute_metrics,
7697 prime_box::comput_subscript_kern)
7698 * eqn/limit.c (limit_box::compute_metrics):
7699 * eqn/delim.c (build_extensible, delim_box::compute_metrics):
7700 * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
7701 negative numbers in `nr' requests with a leading 0.
7703 Wed Apr 3 15:58:23 1991 James Clark (jjc at jclark)
7705 * eqn/special.c: New file.
7706 * eqn/eqn.y: Declare token SPECIAL. Make it right associative.
7707 Add new rule for simple.
7708 * eqn/lex.c (token_table): Add SPECIAL.
7709 * eqn/box.h: Declare make_special_box.
7710 * eqn/Makefile: Add special.[co].
7712 Sat Mar 30 10:57:53 1991 James Clark (jjc at jclark)
7714 * ps/devps/prologue: Possibly set packing to true while defining.
7715 Create grops dictionary here. Initialize local variables before
7716 defining procedures.
7717 (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
7718 the dictionary stack. Set strokeadjust and overprint to false if
7719 the relevant operators are defined.
7720 (PEND): New procedure.
7721 * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
7722 prologue. Do everything else in the setup section.
7723 (ps_printer::do_import): Just call PBEGIN and PEND around the
7724 picture. Also push userdict before, and pop it afterwards.
7726 Wed Mar 27 07:59:50 1991 James Clark (jjc at jclark)
7728 * troff/node.c (bracket_node::tprint): Brackets were being printed
7731 * macros/tmac.an (SH, SS): Set fill mode.
7733 Tue Mar 26 07:46:31 1991 James Clark (jjc at jclark)
7735 * troff/div.c (top_level_diversion::begin_page): Set
7736 high_water_mark to 0.
7738 Fri Mar 22 09:19:46 1991 James Clark (jjc at jclark)
7740 * man/mdate.sh: New file.
7741 * man/mdate.c: Deleted.
7742 * man/Makefile: Use mdate.sh instead of mdate.
7745 * eqn/lex.c (do_gsize): Supply missing argument to error message.
7747 Tue Mar 19 11:06:50 1991 James Clark (jjc at jclark)
7749 * man/mdate.c: New file.
7750 * man/*.man: Replace modification date by @MDATE@.
7751 * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
7752 (mdate): New target.
7754 * lib/font.c (text_file::next): Deal with arbitrarily long lines.
7755 Remove illegal input characters.
7757 Mon Mar 18 08:32:25 1991 James Clark (jjc at jclark)
7759 * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
7761 Sat Mar 16 03:52:25 1991 James Clark (jjc at jclark)
7763 * troff/div.c (begin_page): Change behaviour when
7764 !first_page_begun and !break_flag.
7766 * troff/input.c (do_name_test): Return 0 if argument is empty.
7768 * troff/input.c (read_long_escape_name): Require closing ] to be
7769 at same input level as opening [.
7771 * troff/input.c (read_increment_and_escape_name): New function.
7772 (get_copy, process_input_stack): Use this for \n.
7774 Fri Mar 15 00:31:48 1991 James Clark (jjc at jclark)
7776 * troff/div.c (top_level_diversion::begin_page): Ignore the
7777 current value of page_number if !first_page_begun.
7779 * groff.c (main): Fix declaration of buf.
7781 * troff/input.c (do_name_test): New function.
7782 (token::next): Implement \A.
7783 (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
7784 (token::description, token::add_to_node_list, token::process):
7785 Handle TOKEN_ESCAPE.
7786 * troff/token.h: New token TOKEN_ESCAPE.
7788 Thu Mar 14 10:22:26 1991 James Clark (jjc at jclark)
7790 * pic/main.c (do_picture): Allow space before and after filename
7791 following `<'. Check that the filename is not empty.
7793 Wed Mar 13 12:49:40 1991 James Clark (jjc at jclark)
7795 * Version 1.01 released.
7797 * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
7799 * dvi/tmac.dvi: ftr HR to H.
7801 * macros/tmac.e: Round up computation of $r.
7803 * xditview/tmac.X: Don't give up completely in compatibility mode.
7804 Use \n(.s instead of \n[.s].
7806 * dvi/tmac.dvi: Don't give up completely in compatibility mode.
7807 Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
7808 Add u to factors inside \s[...]. Rename frac to dvi-frac.
7809 Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
7810 short names in the char definitions.
7812 * ps/tmac.ps: Don't give up completely in compatibility mode.
7813 Fix the fraction definitions to use \n(.s and \(f/. Add an extra
7814 quote in front of \n(.s. Add u to factors inside \s[...].
7816 Mon Mar 11 12:01:20 1991 James Clark (jjc at jclark)
7818 * tty/tmac.tty: Call the nroff request.
7820 * macros/tmac.e ((x, )x): Better definitions that work properly
7822 (@0, @1): Helper macros for (x.
7824 * macros/tmac.e ($s, hl): Use \l rather than \D.
7826 * tty/tmac.tty: Make it work better in compatibility mode.
7827 (pchar): Rename to tty-char.
7829 * macros/tmac.e (@E): New macro.
7830 (r, i, b, rb, bi): Use @E.
7832 * macros/tmac.e (@F): Don't use (;...) syntax.
7834 * macros/tmac.e: Remove mention of \*(||/revisions. Mention that
7835 it was modified for groff.
7837 * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
7839 * macros/tmac.e (<., .>): Removed.
7840 ([., .]): If \n(.V>=1v, use [] instead of superscripting.
7842 * macros/tmac.e: Remove check that groff is being used.
7844 * macros/tmac.e (@C): Change families only if using groff; turn
7845 compatibility mode off while changing familes. Save compatibility
7846 mode before changing families and restore it afterwards.
7848 * macros/tmac.e (@h): Remove test for offset + line length.
7850 * macros/tmac.e (sorry): Rename to @S. Use \$1 instead of \$0
7851 (lo, th, ac): Define to call @S instead of using als.
7853 * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
7854 the ratio of the vertical spacing to the point size in units
7855 expressed as a percentage. Use these instead of $10r and $10R,
7856 Delete $10r and $10R.
7858 * lib/font.c (font::load): In default computation of space_width,
7859 divide by sizescale. Use scale_round.
7861 * macros/tmac.an (TP): Don't call `nf'.
7862 (an-do-tag): Don't call `fi'.
7864 Sun Mar 10 09:52:35 1991 James Clark (jjc at jclark)
7866 * troff/input.c (process_input_stack): Handle the case where
7867 spaces at the beginning of an input line are followed by a
7870 Thu Mar 7 20:18:07 1991 James Clark (jjc at jclark)
7872 * groff.c (device_table): Add PIC_X_OPTION for dvi device.
7873 * groff.sh: Use pic -x with the dvi device.
7875 * dvi/devdvi/FontMakefile (H): Don't use -s.
7877 * dvi/devdvi/HI, dvi/devdvi/HB: New files.
7878 * dvi/devdvi/Makefile: Add HI and HB to FONTS.
7879 * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
7882 Mon Mar 4 13:20:14 1991 James Clark (jjc at jclark)
7884 * ps/psfig.diff: New file.
7885 * ps/tmac.psfig: New file.
7887 Sat Mar 2 00:15:09 1991 James Clark (jjc at jclark)
7889 * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
7890 (]-): Don't call ref*do-tl.
7892 * macros/tmac.s (ref*end-print): Use XP if [F not defined.
7894 * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
7895 (fn@do-FS): Rename to fn*do-FS.
7897 * troff/input.c (transparent_translate): New function.
7898 (process_input_stack): Apply transparent_translate before calling
7899 diversion::transparent_output(unsigned char).
7901 Wed Feb 27 00:13:25 1991 James Clark (jjc at jclark)
7903 * troff/input.c (do_define_macro): Define the macro before calling
7906 * xditview/Makefile: Add DEVICES variable. Change install target
7909 Tue Feb 26 10:46:22 1991 James Clark (jjc at jclark)
7911 * groff.c (run_commands): Handle the possibility that there are
7912 child processes other than those forked by us.
7914 Sun Feb 24 21:32:30 1991 James Clark (jjc at jclark)
7916 * lib/string.c (string::append): New function.
7917 * lib/stringclass.h: Declare it.
7919 Thu Feb 21 11:49:26 1991 James Clark (jjc at jclark)
7921 * eqn/main.c (main): New option -N which sets
7922 no_newline_in_delim_flag.
7923 (do_file): If no_newline_in_delim_flag is set don't allow newlines
7925 * groff.c (main): Pass -N on to eqn.
7926 (help, synopsis): Mention -N.
7927 * groff.sh: Implement -N.
7929 Wed Feb 20 15:16:10 1991 James Clark (jjc at jclark)
7931 * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
7932 (]-): Call ref*do-tl if ref*need-tl is non-zero.
7933 (XP): Allow as initializer.
7935 Tue Feb 19 14:09:06 1991 James Clark (jjc at jclark)
7937 * troff/env.c (environment::wrap_up_field): If field_spaces are
7938 non-zero and we have a current_tab, subtract padding from
7939 tab_distance. If this makes tab_distance <= 0, use the next tab
7940 stop instead. If there isn't any next tab or it's a left tab,
7941 wrap up the current tab.
7942 (environment::start_field): Initialize tab_precedes_field.
7943 (environment::wrap_up_tab): If there's a current field, update
7944 pre_field_width, field_distance and tab_precedes_field.
7945 * troff/env.h (environment::tab_precedes_field): New member.
7947 Fri Feb 15 01:24:00 1991 James Clark (jjc at jclark)
7949 * ps/ps.c (ps_printer::do_file): New function.
7950 (ps_printer::special): Bind to `file' special.
7951 (ps_printer::do_exec): Set ndefined_styles to 0.
7953 Sat Feb 9 03:03:04 1991 James Clark (jjc at jclark)
7955 * eqn/text.c (split_text): Grok \* and similar escapes sequences.
7956 Avoid stripping first character from the start of unrecognized
7957 escapes. Use lex_error instead of error to report errors.
7958 * eqn/lex.c (get_token): Rework handling of escapes.
7959 (lex_error): Move declaration into...
7962 * xditview/xditview.c (main): Make -page option work.
7964 * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
7966 Wed Feb 6 12:28:43 1991 James Clark (jjc at jclark)
7968 * macros/tmac.s (B2): Correct size of box.
7970 Tue Feb 5 00:37:35 1991 James Clark (jjc at jclark)
7972 * macros/tmac.s (B2): Postpone drawing the box until in the
7973 top-level diversion.
7975 * tty/tmac.tty: Add font translations for C, CR, CW.
7977 * groff.c (synopsis, help): Document -i.
7978 * groff.sh: Implement -i.
7980 * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
7981 Simplify the construction of SN.
7983 * troff/number.c (parse_term): Give `|' a higher precedence.
7984 * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
7987 * macros/tmac.s (B2): Use par@finish instead of par@reset.
7989 Mon Feb 4 12:36:09 1991 James Clark (jjc at jclark)
7991 * lib/string.c (string::move): New function.
7992 * lib/stringclass.h: Declare it.
7994 Sat Feb 2 16:02:16 1991 James Clark (jjc at jclark)
7996 * troff/env.c (distribute_space): Add optional argument
7998 (environment::wrap_up_field): Call distribute_space with
7999 `force_forward' argument of 1.
8001 Fri Feb 1 19:36:33 1991 James Clark (jjc at jclark)
8003 * lib/string.c, lib/stringclass.h (string::operator+=(char)):
8004 Inline it. Move reallocation into...
8005 (string::grow1): New function.
8006 * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
8007 dependencies to include library header files.
8008 * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
8010 Thu Jan 31 15:02:27 1991 James Clark (jjc at jclark)
8012 * macros/tmac.s (@NH): Use the same number registers than -ms does
8013 for the heading level counters. Use the same string that -ms does
8014 for the number for this heading.
8016 Wed Jan 30 14:25:40 1991 James Clark (jjc at jclark)
8018 * lib/new.c (operator new): Cast result of malloc to char *.
8020 * troff/input.c (spring_trap, lookup_request): Add assert that nm
8023 Tue Jan 29 18:08:05 1991 James Clark (jjc at jclark)
8025 * groff.c (main): Support -i.
8027 Sun Jan 27 13:23:17 1991 James Clark (jjc at jclark)
8029 * pic/pic.h: Include <osfcn.h>.
8031 * ps/ps.c: Add declaration of mktemp.
8033 * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
8034 * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
8035 argument as union wait *.
8036 (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
8037 argument to union wait *.
8039 Sat Jan 26 12:04:52 1991 James Clark (jjc at jclark)
8041 * tty/tmac.tty: Add definition of \(co.
8043 * pic/object.c (make_arc): Only increase radius when radius
8044 strictly less than d.
8045 (arc_object::update_bounding_box): May need to add 4.0 to end_quad
8048 * troff/env.c (environment::environment(symbol),
8049 environment::environment(const environment *)): Initialize
8052 Sat Jan 19 08:18:35 1991 James Clark (jjc at jclark)
8054 * tbl/main.c (main): Add exit(0).
8056 * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
8058 * pic/main.c (main):
8059 * eqn/main.c (main):
8060 * tbl/main.c (main):
8061 * etc/soelim.c (main):
8062 * driver/printer.c (printer::~printer):
8063 * troff/node.c (real_output_file::~real_output_file,
8064 real_output_file::flush): Check for errors on stdout.
8066 * most files: Add 1991 to copyright notice.
8068 * macros/tmac.s: Don't test \n(.x and \n(.y.
8070 * troff/input.c (token::next): Rename `escape_char' label to
8071 `handle_escape_char' and `normal_char' label to
8072 `handle_normal_char'.
8074 Thu Jan 17 15:46:35 1991 James Clark (jjc at jclark)
8076 * groff.c (main, synopsis, help): Support -a option.
8077 * groff.sh: Likewise. Also eliminate Zflag variable by adding -z
8078 to trflags while parsing options.
8080 Tue Jan 15 13:07:27 1991 James Clark (jjc at jclark)
8082 * troff/number.c (parse_term): With `m', `M' and `n' scale
8083 indicators, convert scale factor to hunits before scaling.
8085 Mon Jan 14 12:39:12 1991 James Clark (jjc at jclark)
8087 * lib/font.c (scale_round): Better test for overflow when n is
8090 Thu Jan 10 11:10:56 1991 James Clark (jjc at jclark)
8092 * tbl/main.c (process_format): Add second argument of type
8093 options*. Change callers. Allow opt->tab_char as well as '\t'
8094 between format items.
8096 Mon Jan 7 12:30:18 1991 James Clark (jjc at jclark)
8098 * macros/tmac.an (PD): With no arguments, make sure register PD is
8100 (TH): Call PD with no argument, instead of setting register PD
8103 Sun Jan 6 11:18:39 1991 James Clark (jjc at jclark)
8105 * Version 1.00 released.
8107 Sat Jan 5 08:44:30 1991 James Clark (jjc at jclark)
8109 * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
8111 * dvi/devdvi/DESC: Mount CW instead of CR.
8113 * dvi/tmac.dvi: Add definition of \(tm.
8115 * dvi/devdvi/texsy.map: Add lh, and rh.
8116 * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
8117 * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
8119 * dvi/devdvi/FontMakefile: Generate H from cmss10.
8120 * dvi/devdvi/Makefile: Install H.
8121 * dvi/devdvi/H: New file.
8123 Fri Jan 4 15:04:57 1991 James Clark (jjc at jclark)
8125 * troff/env.c (vertical_spacing): Don't allow vertical spacing to
8128 Thu Jan 3 13:41:19 1991 James Clark (jjc at jclark)
8130 * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
8132 * macros/tmac.pic (PS): Avoid attempting to set negative indent.
8134 * macros/tmac.s (@EN): Handle the case where the equation is empty
8135 but the label is not.
8137 Wed Jan 2 10:31:44 1991 James Clark (jjc at jclark)
8139 * troff/groff.h: New warning category WARN_SPACE.
8140 * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
8141 WARN_SPACE to warning_table.
8142 (interpolate_macro): Give a warning of type WARN_SPACE if the name
8143 is longer than two characters and is not defined, but the first
8144 two characters do make a defined name.
8146 * PROBLEMS: New file.
8148 * CHANGES: New file.
8149 * README-0.6, README-1.00: Deleted.
8151 * groff.c, groff.sh: Add X75-12 and X100-12 devices.
8152 * xditview/devX75/Makefile: Make devX75-12.
8153 * xditview/devX100/Makefile: Make devX100-12.
8155 * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
8156 dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
8158 Tue Jan 1 19:24:01 1991 James Clark (jjc at jclark)
8160 * README-0.7: Rename to README-1.00.
8162 * macros/tmac.pic: New file.
8163 * macros/Makefile (install.nobin): Install tmac.pic.
8165 Mon Dec 31 10:40:53 1990 James Clark (jjc at jclark)
8167 * troff/env.c (hyphen_word): Correct the test for whether the
8168 token is a hyphen. Reset npos to 0.
8170 * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
8172 Sun Dec 30 15:53:13 1990 James Clark (jjc at jclark)
8174 * macros/tmac.s (ds*common-end): Call par*reset.
8176 (par@reset-indent): Deleted.
8178 * macros/tmac.s (@IP): Divert the label.
8180 Sat Dec 29 14:33:32 1990 James Clark (jjc at jclark)
8182 * xditview/draw.c (setGC): Use a line width of .1m rather than
8183 .04m by default; round rather than truncate value.
8185 * tbl/table.c (class empty_entry): New class.
8186 (empty_entry::empty_entry, empty_entry::line_type): New functions.
8187 (table::add_entry): Represent empty entries by objects of type
8189 (table_entry::line_type): Return -1.
8190 (table::determine_row_type): Ignore entries with line_type 0.
8191 Treat type -1 as non-lines.
8193 Fri Dec 28 15:04:41 1990 James Clark (jjc at jclark)
8195 * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
8196 macros/tmac.s: Rename \(-d to \(Sd.
8198 Thu Dec 27 12:35:47 1990 James Clark (jjc at jclark)
8200 * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
8201 * xditview/libXdvi/DviChar.c: Likewise.
8202 * dvi/devdvi/texsy.map: Add `<<', `>>'.
8204 Wed Dec 26 13:33:23 1990 James Clark (jjc at jclark)
8206 * troff/div.c (top_level_diversion::begin_page): Call
8207 init_output() if the_output is 0.
8209 Sat Dec 22 12:35:29 1990 James Clark (jjc at jclark)
8211 * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
8213 (get_copy): Turn \E into ESCAPE_E.
8214 (token::process, asciify): Handle ESCAPE_E.
8216 * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
8218 (DS): Implement `.DS R'.
8220 Fri Dec 21 11:41:53 1990 James Clark (jjc at jclark)
8222 * macros/tmac.s (FS): New macro.
8224 * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
8226 * macros/tmac.s (cov*tl-init): Remove after first execution
8227 instead of aliasing to @nop. Call top of page macro explicitly
8228 instead of setting trap; call @init first. Set pg@top as top of
8230 (cov*auto-init): Deleted. Set cov*tl-init instead of
8231 cov*auto-init as top of page trap.
8232 (TL, LP): Do a break instead of calling cov*tl-init.
8233 (cov*print): With RP format but no TL, alias FS and FE to @FS and
8234 @FE; in this case also give a warning and always start another
8235 page. No need to set pg@top here.
8236 (cov*tl-init): Rename to cov*first-page-init.
8238 * macros/tmac.s (RP): Do `.pn 0'.
8239 (cov*tl-init): With RP format don't do `.pn 0'.
8241 * macros/tmac.s (pg@cs-top): Set no space mode.
8243 * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
8244 (cov*ab-init): Alias TL, AU and AI to these.
8246 Thu Dec 20 10:10:50 1990 James Clark (jjc at jclark)
8248 * macros/tmac.s (@EQ): Move the space before the equation into @EN
8249 (@EN): Do nothing unless \n[dl] is > 0.
8251 Tue Dec 18 12:20:47 1990 James Clark (jjc at jclark)
8253 * pic/object.c (ellipse_object::radius): New function.
8255 * VERSION: Change version to 0.7.
8257 * tbl/table.c (block_entry::do_divert): Declare return type as
8259 (block_entry::divert, alphabetic_block_entry::divert): Return 1.
8261 Mon Dec 17 12:30:34 1990 James Clark (jjc at jclark)
8263 * troff/column.c: New file.
8264 * troff/Makefile: Corresponding changes.
8266 * troff/hvunits.c (scale(vunits, vunits, vunits)): New function.
8269 * troff/div.c (top_level_diversion::space): If the space causes
8270 the first-page transition and springs a trap, truncate the space
8273 Fri Dec 14 12:30:02 1990 James Clark (jjc at jclark)
8275 * ps/ps.c (ps_printer::do_import): Add a `clear' after including
8278 * pic/troff.c (troff_output::line_thickness,
8279 troff_output::set_fill): Do a horizontal motion to compensate for
8280 the width of the \D escape sequence.
8282 Thu Dec 13 10:17:14 1990 James Clark (jjc at jclark)
8284 * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
8287 * eqn/sqrt.c (sqrt_box::compute_metrics): Supply missing argument
8290 * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
8291 Supply empty definition.
8292 (text_entry::simple_print, simple_text_entry::simple_print):
8293 Delete declarations.
8294 (table::add_entry): Represent empty entries by objects of type
8297 Wed Dec 12 08:50:48 1990 James Clark (jjc at jclark)
8299 * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
8301 * tbl/table.c (left_text_entry::add_tab): New function.
8303 * macros/tmac.s: Make @RT an alias for par@reset. Make RT
8306 Mon Dec 10 11:19:55 1990 James Clark (jjc at jclark)
8308 * troff/env.c (environment::start_field): Give an error message if
8309 there is no next tab.
8311 Sun Dec 9 11:46:40 1990 James Clark (jjc at jclark)
8313 * troff/env.c (hyphenate): Skip initial elements with zero
8316 * macros/tmac.s (par@init): Keep VS in points rather than units.
8318 Sat Dec 8 23:00:27 1990 James Clark (jjc at jclark)
8320 * pic/main.c (main): Implement `-c' option.
8321 * pic/output.h: Declare make_tpic_output().
8322 * pic/tex.c (tex_output::set_pen_size): Make it virtual and
8324 (tpic_output): New class.
8325 (tpic_output::tpic_output, tpic_output::set_pen_size,
8326 tpic_output::command, make_tpic_output): New functions.
8328 Fri Dec 7 11:57:41 1990 James Clark (jjc at jclark)
8330 * tbl/main.c (main): Call `.ab' if \n(.g is false. Define TS/TE
8331 if they're not already defined.
8332 * tbl/table.c (init_output): Don't test \n(.g.
8334 * troff/input.c (do_if_request): Delete `g' condition. Recognize
8335 `d', `r' and `c' conditions even in compatibility mode.
8337 Tue Dec 4 09:13:47 1990 James Clark (jjc at jclark)
8339 * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
8342 Mon Dec 3 07:18:26 1990 James Clark (jjc at jclark)
8344 * troff/env.h (environment::prev_line_interrupted): New member.
8345 (environment::get_prev_line_interrupted): New function.
8346 * troff/env.c (environment::newline): Set prev_line_interrupted.
8347 (environment::environment(const environment *),
8348 environment::environment(symbol)): Initialize
8349 prev_line_interrupted.
8350 * troff/input.c (process_input_stack): Don't give special
8351 treatment to space and newline at the beginning of the line if the
8352 previous line was interrupted.
8354 Sat Dec 1 15:48:37 1990 James Clark (jjc at jclark)
8356 * eqn/eqn.y: Disallow PRIME by itself.
8357 * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
8359 (def_table): Remove definition of '. Define prime to be `.
8361 * eqn/eqn.y: Split off part of rule `script' into a new rule
8364 Fri Nov 30 10:23:44 1990 James Clark (jjc at jclark)
8366 * macros/tmac.s ({, }): New string aliases.
8368 Thu Nov 29 11:34:40 1990 James Clark (jjc at jclark)
8370 * README-0.7: New file.
8372 Wed Nov 28 10:09:57 1990 James Clark (jjc at jclark)
8374 * macros/tmac.s: New file.
8375 * man/groff_ms.man: New file.
8376 * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
8377 * Makefile.bd: Similarily.
8378 * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
8379 definition of TMAC_S.
8380 * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
8381 * macros/TODO: New file.
8383 Sat Nov 24 20:04:54 1990 James Clark (jjc at jclark)
8385 * troff/env.c (right_justify): New function.
8386 (init_env_requests): Bind this to request "rj".
8387 (center_lines): Set right_justify_lines to 0. If we get a bad
8388 integer, center 1 line.
8389 (environment::environment(symbol), environment::environment(const
8390 environment *)): Initialize right_justify_lines.
8391 (environment::get_right_justify_lines): New function.
8392 (init_env_requests): Bind this to number_register ".rj".
8394 * troff/env.c (environment::choose_breakpoint): Implement
8395 hyphenation_margin and hyphenation_space.
8396 (environment::get_hyphenation_space,
8397 environment::get_hyphenation_margin): New functions.
8398 (init_env_requests): Bind these to .hys and .hym.
8399 (hyphenation_space_request, hyphenation_margin_request): New
8401 (init_env_requests): Bind these to hys and hym.
8402 (environment::environment(symbol), environment::environment(const
8403 environment *)): Initialize hyphenation_margin and
8405 * troff/env.h: Corresponding changes to class environment.
8407 Fri Nov 23 09:08:16 1990 James Clark (jjc at jclark)
8409 * troff/div.c (blank_line): Always do a break.
8411 * eqn/box.c (do_text): Turn off escapes while appending text to
8414 Thu Nov 22 10:58:59 1990 James Clark (jjc at jclark)
8416 * troff/input.c (while_break_request, while_continue_request): New
8418 (init_input_requests): Bind these to "break" and "continue".
8419 (while_depth, while_break_flag): New variables.
8420 (while_request): Update while_depth. Break out of loop if
8421 while_break_flag is set.
8423 Wed Nov 21 10:54:40 1990 James Clark (jjc at jclark)
8425 * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
8428 Mon Nov 19 00:45:03 1990 James Clark (jjc at jclark)
8430 * Makefile: Include -DBROKEN_SPOOLER by default. Expand comment.
8432 * stringify: New file.
8433 * Makefile (groff.o): Use stringify.
8435 * xditview/tmac.X: Remove definition of \(rn.
8436 * xditview/libXdvi/DviChar.c: Remove radicalex from
8439 Sat Nov 17 10:44:58 1990 James Clark (jjc at jclark)
8441 * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
8442 (alphabetic_block_entry::alphabetic_block_entry,
8443 alphabetic_block_entry::divert, alphabetic_block_entry::print):
8445 (block_entry::divert): Split off body into ...
8446 (block_entry::do_divert): If the block is alphabetic, subtract 2n
8447 from the line length; also update the span width to dl+2n, and the
8448 alphabetic span width to dl.
8450 * driver/input.c (do_file): While reading argument to D command,
8451 when expanding buffer, multiply szp by sizeof(int) rather than 2
8452 in the argument to memcpy.
8454 * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
8455 width of alphabetic columns.
8457 Fri Nov 16 06:34:27 1990 James Clark (jjc at jclark)
8459 * troff/node.c (lookup_family): Supply second argument to lookup.
8461 * troff/dictionary.c (dictionary::lookup): After an unsuccesful
8462 search, return immediately if v is 0.
8464 * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
8465 (troff_output::start_picture): Set this reg.
8466 (troff_output::end_picture): Remove this reg
8467 * eqn/box.c (box::extra_space): Don't produce `\x's if
8468 EQN_NO_EXTRA_SPACE_REG is defined.
8470 * eqn/eqn.y: Allow just a PRIME to be a `simple'.
8471 * eqn/text.c (split_text): Map ' to \(fm when it's the first
8474 Thu Nov 15 10:35:06 1990 James Clark (jjc at jclark)
8476 * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
8479 * troff/div.c (top_level_diversion::top_level_diversion):
8480 Initialize page_number to 0.
8482 Wed Nov 14 21:41:58 1990 James Clark (jjc at jclark)
8484 * groff/troff (environment::environment(const environment *)):
8485 Initialize name to e->name, rather than "anonymous".
8487 Sat Nov 10 01:59:37 1990 James Clark (jjc at jclark)
8489 * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
8490 requested_page. Split middle part into ...
8491 (FindPage): New function.
8492 (SetValues): If we don't yet know the last page, and the requested
8493 page is greater than the current page, call FindPage.
8494 Update the font_map_string before doing this.
8496 * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
8497 Translate \(lh and \(rh into left and right double arrows.
8499 * troff/node.c (class hyphen_inhibitor_node): New class.
8500 (hyphen_inhibitor_node::hyphen_inhibitor_node,
8501 hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
8502 hyphen_inhibitor_node::type,
8503 hyphen_inhibitor_node::get_hyphenation_type): New functions.
8504 (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
8505 than dbreak_node(0, 0) to represent a `\%' at the beginning of a
8508 Fri Nov 9 16:05:38 1990 James Clark (jjc at jclark)
8510 * troff/node.h (dummy_node::get_hyphenation_type,
8511 transparent_dummy_node::get_hyphenation_type): Declare them.
8512 * troff/node.c: (dummy_node::get_hyphenation_type,
8513 transparent_dummy_node::get_hyphenation_type): New functions.
8515 Wed Nov 7 10:09:06 1990 James Clark (jjc at jclark)
8517 * xditview/libXdvi/draw.c: If M_PI not defined after including
8518 math.h, then define it.
8520 * xditview/Makefile: Add definition of AR. Pass it to the submake
8522 * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
8524 Tue Nov 6 10:14:27 1990 James Clark (jjc at jclark)
8526 * troff/dictionary.h (object_dictionary::alias): Declare return
8528 * troff/dictionary.c (object_dictionary::alias): Return non-zero
8529 if the old name was defined.
8530 * troff/input.c (alias_macro): Give a warning if the old name was
8532 * troff/reg.c (alias_reg): Likewise.
8534 Mon Nov 5 00:31:39 1990 James Clark (jjc at jclark)
8536 * troff/input.c (token::next): Delete implementation of \R.
8538 * macros/Makefile: Strip comments from tmac.e while installing it.
8540 * troff/input.c: New variable `nroff_mode'.
8541 (troff_request, nroff_request): New functions.
8542 (init_input_requests): Bind `troff' and `nroff' to troff_request
8544 (do_if_request): Compute results of t and n conditions from
8547 * text/text.c (split_text): Fix typo in >=.
8549 * eqn/lex.c: Add definition of `==' to def_table.
8551 Fri Nov 2 02:49:09 1990 James Clark (jjc at jclark)
8553 * pic/tex.c (tex_output::start_picture): Change the definitions of
8554 \graph and \graphtemp so that they work properly with Plain TeX.
8556 * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
8557 argument to `ar' is not less than the first.
8559 * pic/pic.y: Allow a comma between elements of the variable list
8560 in the argument to `reset'.
8562 * pic/object.c (arc_object::arc_object): Fix computation of
8565 * eqn/main.c (main): Add exit(0).
8567 Thu Nov 1 02:03:50 1990 James Clark (jjc at jclark)
8569 * troff/div.c (begin_page): Test no_space_mode after doing the
8570 break, but still push the page ejector cookie before doing the
8571 break. Also set the next page number after doing the break.
8573 * xditview/xditview.c (NewFile): Don't set the title and icon name
8574 if this is the first file and its name is `-'.
8575 * groff/groff.c: Define a new device flag XT_OPTION. Set it for
8576 the X75 and X100 devices.
8577 (main): If a device has the XT_OPTION flag set and there's exactly
8578 one file argument, pass the driver -xrm and -title options to set
8579 the icon name and window title to the name of the file.
8581 * troff/env.c (environment_switch): If there was an argument but
8582 it wasn't a valid number or name, then pop an environment but
8583 don't give an error message on underflow.
8585 * troff/number.c (start_number): Correct spelling in error message.
8587 * troff/input.c (token::delimiter): Don't print an error message
8590 * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
8591 ParseDrawFunction if dw->display_enable is true.
8593 Wed Oct 31 05:49:50 1990 James Clark (jjc at jclark)
8595 * pic/pic.y: Parse text positioning like normal attributes, so as
8596 to allow `"text" at 0,0 ljust'. Don't allow `center' as a
8597 positioning attribute.
8599 Mon Oct 29 22:50:38 1990 James Clark (jjc at jclark)
8601 * tbl/main.c (process_data): When in state START while reading a
8602 text block, don't change to state MIDDLE if c is a newline.
8604 Sun Oct 28 21:59:56 1990 James Clark (jjc at jclark)
8606 * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
8607 so as to avoid shadowing parameter.
8609 Wed Oct 24 18:35:39 1990 James Clark (jjc at jclark)
8611 * tbl/table.c (trim_space): Deleted.
8612 (table::add_entry): Don't call trim_space.
8614 Mon Oct 22 03:48:39 1990 James Clark (jjc at jclark)
8616 * VERSION: Change version to 0.6.
8618 * troff/number.c (parse_expr): Make == work.
8620 Sat Oct 20 11:28:17 1990 James Clark (jjc at jclark)
8622 * man/grog.man: New file.
8623 * man/Makefile: Add grog.n to MAN1PAGES.
8624 * etc/grog.sh: New file.
8625 * etc/Makefile: Install grog.sh as grog.
8627 Fri Oct 19 11:17:15 1990 James Clark (jjc at jclark)
8629 * troff/input.c (token::next): Implement \E.
8631 Thu Oct 18 11:56:24 1990 James Clark (jjc at jclark)
8633 * xditview/tmac.X: Change font translations to match tmac.ps.
8635 * troff/input.c (non_empty_name_warning): Don't give a warning if
8636 `\{' terminates the name.
8638 Tue Oct 16 10:04:23 1990 James Clark (jjc at jclark)
8640 * ps/devps/symbol.diff: New file.
8641 * ps/devps/FontMakefile: Mention symbol.diff.
8643 Sun Oct 14 11:46:46 1990 James Clark (jjc at jclark)
8645 * troff/node.c (font_position): Use get_long_name to read the
8648 * troff/env.c (environment_switch): If we get a number that's < 0
8649 or >= NENVIRONMENTS, treat it like a name.
8650 Change NENVIRONMENTS to 10.
8652 * troff/groff.h: Remove definition of FONTS_MAX.
8653 * troff/node.h (class font_family): Make map a pointer instead of
8654 an array. Add a map_size member. Make it a class. Make nm const
8655 and public. Make invalidate_fontno a friend.
8656 * troff/node.c: Define font_table_size. Make font_info a pointer
8657 rather than an array.
8658 (class troff_output_file): Allocate font_position dynamically. Add
8659 nfont_positions member.
8660 (troff_output_file::set_font): Grow font_position if necessary.
8661 (troff_output_file::~troff_output_file): Delete font_position.
8662 (troff_output_file::troff_output_file): Allocate font_position.
8663 (grow_font_table): New function.
8664 (troff_output_file::really_begin_page,
8665 troff_output_file:really_copy_page): Use nfont_positions rather
8667 (mount_font_no_translate, mount_style): Call grow_font_table if
8669 (font_family::font_family): Allocate map.
8670 (font_family::make_definite): Grow map if necessary. Use
8671 font_table_size instead of FONTS_MAX.
8672 (font_family::~font_family): New function.
8673 (invalidate_fontno): Use font_family::map_size.
8674 (get_fontno, env_space_width, env_half_narrow_space_width,
8675 env_narrow_space_width, symbol_fotno, is_good_fontno,
8676 get_bold_fontno, make_glyph_node): Use font_table_size rather than
8678 (next_available_font_position): Never return 0.
8680 Fri Oct 12 10:17:52 1990 James Clark (jjc at jclark)
8682 * ps/tmac.ps: Add font translations for compatibility with dpost.
8684 Thu Oct 11 12:09:03 1990 James Clark (jjc at jclark)
8686 * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
8687 Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
8688 Move definitions baseline_sep, shift_down, column_sep,
8689 matrix_side_sep into...
8690 * eqn/box.c: Add them to param_table.
8691 * eqn/pbox.h: Add declarations to pbox.h.
8693 * troff/input.c (set_string): Cast value to unsigned char *.
8695 * troff/token.h (process_input_stack): Declare it static before
8696 declaring it a friend.
8698 Wed Oct 10 09:59:13 1990 James Clark (jjc at jclark)
8700 * dvi/devdvi/texex.map: Fix positions of extensible brace middle
8702 * dvi/devdvi/EX: Regenerate.
8704 * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
8707 Tue Oct 9 08:34:02 1990 James Clark (jjc at jclark)
8709 * eqn/lex.c: In defaults_table, make definition of `dot' call
8710 `dot_def'. Don't explicitly make it roman. Similarily for other
8713 * pic/lex.c (for_input::for_input): Add by_is_multiplicative
8715 (for_input::get, for_input::peek): Use this.
8716 (do_for): Add by_is_multiplicative argument.
8717 * pic/pic.y: Change optional_by clause to allow '*' after `by'.
8718 Change semantic value of optional_by to be a double plus a flag
8719 saying whethet the by clause is multiplicative.
8721 * eqn/lex.c (get_delimited_text): Remember location of start of
8722 definition. Improve error handling when EOF is encountered.
8724 * lib/font.h: Rename handle_x_command to
8725 handle_unknown_font_command.
8726 * lib/font.c (font::load): Call handle_unknown_font_command for
8727 any unknown command in the font description file. Don't call
8728 handle_x_command. Include the name of the command in the argv.
8729 Improve message for unknown command after kernpairs or charset
8731 * ps/ps.c (ps_font::handle_x_command): Rename to
8732 handle_unknown_font_command. Remove message about `x download'
8733 command. Give error message for wrong number of arguments.
8734 * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
8735 * dvi/dvi.c (dvi_font::handle_x_command): Rename to
8736 handle_unknown_font_command. Give an error message for wrong
8737 number of arguments. Rename design_size to designsize.
8738 * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
8739 checksum', `designsize' instead of `design_size'.
8741 Mon Oct 8 00:38:55 1990 James Clark (jjc at jclark)
8743 * eqn/*.[chy]: Change underaccent to uaccent.
8745 * eqn/eqn.y: Add rule for underaccent. Declare UNDERACCENT token;
8746 give it the same precedence as ACCENT.
8747 * eqn/other.c (make_underaccent_box): New function.
8748 * eqn/box.h: Declare it.
8749 * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
8752 Sun Oct 7 11:25:16 1990 James Clark (jjc at jclark)
8754 * pic/pic.y (reset_all): New function. Called in rule for RESET.
8755 (parse_init): Call reset_all.
8756 (define_variable): When defining scale reset only those
8757 pre-defined variables that are scaled.
8758 (defaults_table): Add `scale' as non-scaled value.
8760 * pic/pic.y: Redo parsing of text adjustments: parse adjustments
8761 together with the text; allow any number of positioning words;
8762 allow center as a positioning word.
8764 * pic/object.c (output::compute_scale): Get picture maximum height
8765 and width from variables called maxpswid and maxpsht.
8766 * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
8768 Sat Oct 6 10:16:56 1990 James Clark (jjc at jclark)
8770 * pic/object.c (object_spec::make_text): Multiply textht by number
8773 * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
8775 (do_sprintf): New function.
8776 (pic.gperf): Add sprintf token.
8777 (text, sprintf): New rules.
8779 * pic/pic.y: `rand()' with no arguments returns a random number
8782 * pic/pic.y: Allow a bare expression to be an attribute: change
8783 precedences to support this. Change optional_ordinal rule to
8784 optional_ordinal_last to avoid reduce/reduce conflict.
8785 * pic/object.c (object_spec::object_spec): Initialize direction.
8787 * pic/pic.y: Implement ^ operator meaning exponentiation.
8789 * troff/node.h: Add default argument to mount_font.
8790 * troff/node.c (font_position): Read an optional third argument
8791 giving the external_name.
8792 (mount_font): Add optional argument giving the external_name.
8793 (mount_font_not_translate): Have additional argument giving
8794 external name. Use this name to load the font. Pass both names
8795 to font_info::font_info.
8796 (font_info::font_info): Have additional argument giving
8798 (class tfont): New member external_name.
8799 (font_info::get_tfont): Use external name to construct tfont_spec.
8801 Fri Oct 5 04:03:13 1990 James Clark (jjc at jclark)
8803 * eqn/lex.c (init_table): Add argument giving device. Define
8804 name of device to be "1".
8805 (do_ifdef): Counts as true if the argument has been defined with
8807 * eqn/main.c (main): Call init_table with device argument. Make
8808 device local to main.
8809 * eqn/eqn.h: Change declaration of init_table. Remove declaration
8812 * pic/lex.c (get_delimited): Allow text to be delimited by
8813 matching {}s. Don't recognize ending delimiter within a string.
8815 * troff/input.c (get_delim_name): New function.
8816 (token::next): Implement \C.
8818 * lib/font.c (font::load): Grok ---. Add an alias for each
8819 character based on its code.
8820 (font::get_code_width): Deleted.
8821 * lib/font.h (class font): Declare font::number_to_index().
8822 Remove declaration of font::get_code_width.
8823 * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
8824 to indices of named characters.
8825 (font::number_to_index): New function.
8826 * troff/input.c (font::number_to_index): New function.
8827 (get_charinfo_by_number, charinfo::get_number,
8828 charinfo::set_number): New functions.
8829 (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
8830 (token::process, token::description, token::get_char,
8831 token::add_to_node_list, token::operator==): Handle
8832 TOKEN_NUMBERED_CHAR.
8833 * troff/charinfo.h: Declare get_charinfo_by_number,
8834 charinfo::get_number, charinfo::set_number. Add NUMBERED flag to
8836 (charinfo::numbered): New function.
8837 * troff/token.h: Add TOKEN_NUMBERED_CHAR.
8838 * troff/env.h (class environment): Remove declaration of ...
8839 * troff/env.c (environment::make_numbered_char_node): Deleted.
8840 * troff/node.c (make_numbered_node): Deleted.
8841 (class numbered_glyph_node): Remove.
8842 (troff_output_file::put_char_width, troff_output_file::put_char):
8843 Handle numbered chars.
8844 (troff_output_file::numbered_char): Removed.
8845 (tfont::get_code_width): Removed.
8846 (make_glyph_node): Don't search special fonts for numbered
8848 * troff/node.h: Remove declaration of make_numbered_node.
8849 * driver/input.c (do_file): Handle N command.
8850 * driver/printer.h: Add declaration of ...
8851 * driver/printer.c (printer::set_numbered_char): New function.
8852 * dvi/tfmtodit.c (main): Generate unnamed entries.
8853 * ps/devps/afmtodit: Likewise.
8854 * xditview/xtotroff.c (MapFont): Likewise.
8855 * xditview/libXdvi/parse.c (ParseInput): Grok N command.
8857 * tbl/main.c (process_format): If multiple widths are specified
8858 for a column but all the widths are the same, don't give an error
8861 * tbl/table.c (table::do_row): If the current row is all lines and
8862 the stuff doesn't contains a line, mark the top of the row after
8863 printing stuff before the row. If the current row is not all
8864 lines and the stuff doesn't contain a line, don't unnecessarily
8865 mark the top of the row before printing the stuff.
8867 Mon Oct 1 11:42:00 1990 James Clark (jjc at jclark)
8869 * troff/groff.h: Remove MAX_PATH.
8870 * troff/input.c (open_file): Dynamically allocate space for the
8872 (open_mac_file, process_macro_file): Corresponding changes.
8874 Sun Sep 23 18:56:26 1990 James Clark (jjc at jclark)
8876 * troff/node.h (class output_file): Make copy_file pure. Add
8877 vspace method ifdef COLUMN. Add is_printing method.
8878 * troff/node.c: Add class printing_reg. Add class
8879 real_output_file. Derive other output_file classes from
8880 real_output_file; in these classes rename begin_page to
8881 really_begin_page, print_line to really_print_line, copy_file to
8882 really_copy_file, transparent_char to really_transparent_char.
8883 Move output_file::flush to real_output_file. Add printing member
8884 to class output_file.
8885 * troff/div.h: Remove printing member from top_level_diversion.
8886 Add vspace member function to class diversion ifdef COLUMN. Add
8887 some declarations ifdef COLUMN.
8888 * troff/div.c (top_level_diversion::copy_file,
8889 top_level_diversion::transparent_output,
8890 top_level_diversion::output): Don't test printing member before
8892 * troff/input.c: Handle initial variable_space_request ifdef
8894 * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
8897 Sat Sep 22 11:32:22 1990 James Clark (jjc at jclark)
8899 * troff/div.c (diversion::need): Make any space forced. If we
8900 sprung a trap, set truncated_space to minus the distance to the
8901 trap and set needed_space to the amount that was needed.
8902 (top_level_diversion::space): A forced space turns no_space_mode
8904 (class constant_vunits_reg): New class.
8905 (init_div_requests): Implement number registers .trunc and .ne
8906 using constant_vunits_reg.
8907 (class truncated_space_reg): Deleted.
8909 * troff/div.h: Don't have a no_space_mode member in diversion.
8910 Instead have it in top_level_diversion.
8911 * troff/div.c (diversion::diversion): Don't initialize
8913 (top_level_diversion::top_level_diversion): Initialize
8915 (no_space, restore_spacing): Do nothing if curdiv != topdiv.
8916 (macro_diversion::output): Don't clear no_space_mode.
8918 * troff/input.c (diverted_space_node::reread): Don't call
8919 environment::do_break. In fill mode, act like a blank line.
8920 (diverted_copy_file_node::reread): Don't call
8921 environment::do_break.
8923 * troff/div.c (blank_line): New function.
8924 * troff/div.h: Declare it.
8925 * troff/input.c (process_input_stack): Call it.
8927 * troff/div.c (truncated_space_reg::get_string): New function.
8928 (init_div_requests): Bind to .trunc.
8929 (space_request, top_level_diversion::space,
8930 top_level_diversion::output, macro_diversion::space,
8931 macro_diversion::output): Update truncated_space.
8932 (macro_diversion::output): Redo calculations when trap sprung.
8933 (macro_diversion::output, macro_diversion::space): No need for
8936 * troff/div.c (top_level_diversion::output): Set nl_reg_contents
8937 after truncating post line spacing.
8939 Fri Sep 21 11:27:25 1990 James Clark (jjc at jclark)
8941 * ps/devps/prologue (MF, SF): Make them work even if setfont is
8942 defined as a procedure rather than as an operator.
8944 Thu Sep 20 12:55:05 1990 James Clark (jjc at jclark)
8946 * troff/div.c (macro_diversion::space): Ignore no_space_mode.
8948 Wed Sep 19 10:54:37 1990 James Clark (jjc at jclark)
8950 * troff/div.c (top_level_diversion::output): Merge
8951 output_file::print_line and output_file::end_of_line member
8953 * troff/div.h (class output_file):
8954 * troff/node.c (troff_output_file::print_line,
8955 troff_output_file::end_of_line, output_file::end_of_line,
8956 ascii_output_file::print_line, suppress_output_file::print_line):
8957 Corresponding changes.
8959 Tue Sep 18 11:31:47 1990 James Clark (jjc at jclark)
8961 * troff/input.c (token::next): Don't give a warning for `\.'.
8963 * troff/env.c (environment::get_center_lines): New function.
8964 (init_env_requests): Bind number register .ce to it.
8965 * troff/env.h: Declare it.
8966 * tbl/table.c (table::init_output): Define reset macro to restore
8967 .ce. If center option not given, store .ce in SAVED_CENTER_REG.
8969 (table::print): If center option not given, then imply center
8970 option if SAVED_CENTER_REG > 0.
8972 Mon Sep 17 09:19:19 1990 James Clark (jjc at jclark)
8974 * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
8975 Troff.ps from DOWNLOAD.
8977 * troff/Makefile: Change comment in DEFINES to avoid confusing
8980 * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
8981 code. Don't try to catch errors with stopped.
8982 (check_line_lengths): New function.
8983 * ps/devps/prologue (EXEC): Deleted.
8984 (EBEGIN, EEND): New procedures.
8986 Sun Sep 16 14:51:15 1990 James Clark (jjc at jclark)
8988 * troff/input.c: Include request.h before node.h.
8989 * troff/node.c: Likewise.
8990 * troff/env.c: Likewise.
8991 * troff/div.c: Likewise.
8992 * troff/node.h (class special_node): Store argument as a macro
8993 rather than a char *.
8994 * troff/node.c (special_node::special_node, special_node::copy):
8996 (special_node::~special_node): Deleted.
8997 (special_node::tprint): Deleted.
8998 (special_node::tprint_start, special_node::tprint_end,
8999 special_node::tprint_char): New functions.
9000 (troff_output_file::special): Deleted.
9001 (troff_output_file::start_special, troff_output_file::end_special,
9002 troff_output_file::special_char): New functions.
9003 * troff/input.c (special_node::tprint): New function.
9004 (do_special): Use macro not char *.
9005 (do_transparent_macro): Deleted.
9006 (token::next): Don't call do_transparent_macro.
9008 * troff/input.c (token::next): Add 'Y' case.
9009 (do_transparent_macro): New function.
9010 * troff/node.c (troff_output_file::special): Handle newlines with
9011 argument using new continuation convention.
9012 * driver/input.c (get_string): Cope with continuation convention.
9013 (do_file): Don't call skip_line after calling get_string(1).
9014 * ps/ps.c (ps_printer::special, ps_printer::do_import,
9015 ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
9017 * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
9020 Sat Sep 15 19:00:10 1990 James Clark (jjc at jclark)
9022 * troff/input.c (asciify): By default, illegal input characters
9023 should return empty string.
9025 * troff/input.c (copy_file): Handle first page transition like title.
9026 (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
9028 * troff/input.c (token::next): Improve error message for EOF after
9030 (input_char_description): New function.
9031 (get_char_for_escape_name): Use input_char_description.
9032 (token::next): Warn about unrecognized escape sequences.
9033 (warning_table): Add WARN_ESCAPE.
9034 * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
9037 * troff/token.h: Remove declaration of process_input_stack.
9039 * troff/input.c: Remove declaration of init_hyphen_requests.
9040 * troff/request.h: Correct spelling in declaration of same.
9042 * troff/input.c (token::next): Check whether escape_char is 0.
9044 Fri Sep 14 12:09:25 1990 James Clark (jjc at jclark)
9046 * groff.c (main, usage, help): Implement -P and -L options.
9047 * groff.sh: Likewise.
9049 * troff/input.c (token::next): Use some gotos to avoid code
9052 * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
9053 Avoid calling symbol::symbol if name empty.
9055 Thu Sep 13 06:21:45 1990 James Clark (jjc at jclark)
9057 * troff/input.c (init_input_requests): Make \n(.x return the major
9058 version number and \n(.y return the minor version number.
9059 * troff/Makefile: Construct file majorminor.c defining
9060 major_version and minor_version automatically from ../VERSION.
9062 * troff/node.c (class glyph_node): Make operator new and operator
9064 (class ligature_node): Similarily.
9066 * troff/input.c (operator==(const macro &, const macro &)): New
9068 (non_interpreted_node::same): Use this.
9069 (string_iterator::string_iterator): Make macro& argument const.
9071 * troff/input.c (input_iterator::get): New function. Don't make
9072 asciify_macro or class non_interpreted_node friends of class
9074 (non_interpreted_node::interpret): Use input_iterator::get.
9075 (asciify_macro): Likewise.
9077 * troff/input.c (~token_node, ~string_iterator, ~arg_list,
9078 ~non_interpreted_node): Deleted.
9079 * troff/node.c: (~suppress_output_file, ~ascii_output_file):
9082 * troff/symbol.h: Make all symbol member functions const.
9084 * lib/strtol.c: New file.
9085 * lib/Makefile: Add strtol.c.
9086 * Makefile: Define STRTOL as strtol.o to include strtol in
9089 Wed Sep 12 10:00:49 1990 James Clark (jjc at jclark)
9091 * pic/troff.c (troff_output::simple_circle): Divide by scale.
9093 Tue Sep 11 14:17:16 1990 James Clark (jjc at jclark)
9095 * troff/input.c (do_special): Use input_level.
9097 * troff/token.h (TOKEN_BACKSPACE): New token.
9098 (token::backspace): New function.
9099 * troff/input.c (token::description, token::next, token::process):
9100 Grok TOKEN_BACKSPACE.
9101 (do_special): Turn TOKEN_BACKSPACE back into \b.
9103 * troff/token.h (token::leader): New function.
9104 * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
9106 * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
9108 * troff/input.c (do_special): Use token::description in error
9111 Mon Sep 10 11:06:27 1990 James Clark (jjc at jclark)
9113 * troff/input.c (decode_args): Combine quoted and
9114 quote_input_level variables. Make it a for (;;) loop.
9116 * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
9118 * troff/input.c (read_long_escape_name): The test for whether to
9119 expand buffer was off by 1.
9120 (read_string): Similarily.
9122 Fri Sep 7 11:45:50 1990 James Clark (jjc at jclark)
9124 * troff/input.c: Use `const int' rather than `static const int'.
9126 * troff/div.h (diversion::copy_file): Declare as pure virtual.
9127 (macro_diversion::copy_file): New function.
9128 * troff/node.h: New class diverted_copy_file_node.
9129 * troff/node.c: Implement it.
9130 * troff/input.c (copy_file): Use diversion::copy_file. Handle
9131 first page transition by pushing a diverted_copy_file_node.
9132 * troff/input.c (token::next, process_input_stack): Don't handle
9135 Thu Sep 6 13:29:10 1990 James Clark (jjc at jclark)
9137 * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
9138 whether space widths need adjusting.
9140 * troff/charinfo.h: Generalize translated_to_space to
9141 special_translation so as to allow translation to \&.
9142 * troff/input.c (translate): Allow translation to \&.
9143 (charinfo::*): Corresponding changes.
9144 * troff/node.c (make_node, node::add_char): Corresponding changes.
9145 * troff/node.h (dummy_node::dummy_node): Allow optional first
9148 * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
9149 * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
9151 * troff/input.c (token::next): Turn a TITLE_REQUEST into a
9152 TOKEN_REQUEST with an argument of TITLE_REQUEST.
9153 (token::process): Grok that.
9154 * troff/input.c (copy_file): Handle first page transition like
9155 title by pushing a COPY_FILE_REQUEST cookie.
9156 (token::next, process_input_stack): Grok that.
9157 * troff/node.h (output_file::copy_file): Add x and y arguments.
9159 * troff/div.c (top_level_diversion::copy_file): Supply them.
9160 * troff/node.c (troff_output_file::copy_file): Add x and y
9161 arguments; moveto specified position. Invalidate font_position
9162 array after copying file.
9163 (output_file::copy_file): New function.
9164 (suppressed_output_file::copy_file, ascii_output::copy_file):
9166 * troff/input.c (transparent_file): New function.
9167 (init_input_requests): Bind to "trf".
9168 (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
9169 (process_input_stack): Likewise.
9171 * troff/Makefile: Add ../lib/lib.h to GROFF_H.
9173 * troff/node.c (init_node_requests): New number registers .kern
9174 pointing to global_kern_mode, and .lg pointing to
9175 global_ligature_mode.
9177 * troff/node.c (ligature): Don't change it if we get a bad
9180 * troff/input.c (do_define_string): Don't strip tabs.
9182 * troff/input.c (asciify_macro): Make the string_iterator auto.
9184 * troff/node.c (init_font_requests): Rename to...
9185 (init_node_requests):
9186 * troff/node.h: Change declaration.
9187 * troff/input.c (main): Change call.
9189 * troff/input.c (node::reread, diverted_space_node::reread): New
9191 (process_input_stack): Call reread rather than
9192 get_diverted_space_node.
9193 * troff/node.c (node::get_diverted_space_node,
9194 diverted_space_node::get_diverted_space_node): Removed.
9195 * troff/node.h: Declare reread methods instead of
9196 get_diverted_space_node methods. Make `n' member private.
9197 * troff/input.c: (token::diverted_space): Removed.
9198 * troff/token.h: Removed declaration.
9201 Tue Sep 4 00:48:04 1990 James Clark (jjc at jclark)
9203 * eqn/script.c (script_box::compute_metrics): Don't let
9204 SUP_RAISE_FORMAT become negative.
9206 * tbl/table.c (table::do_row): Entries that don't end in the
9207 this row shouldn't make the row non-blank.
9209 * tbl/table.c (table::make_columns_equal): Only set the width of
9210 columns which are marked as equal.
9212 * tbl/main.c (process_data): Before issuing excess data error,
9213 if last character was a newline unget it; then get it again after
9214 the error. Also include the contents of the entry in the message.
9216 * groff.c: New file.
9217 * Makefile: Build groff from groff.c. Make it possible to use
9218 either groff.sh or groff.c as groff.
9219 * Makefile.bd: Similarily.
9221 Mon Sep 3 09:39:49 1990 James Clark (jjc at jclark)
9223 * groff.sh: Don't delay expansion of $@ in assignment to files.
9224 Remove occurrences of \".
9226 Sun Sep 2 09:56:59 1990 James Clark (jjc at jclark)
9228 * all Makefiles: Simplify and rearrange.
9230 * Makefile: Handle fmod like malloc.
9231 * lib/Makefile: Similarily.
9232 * lib/fmod.c: Remove #ifdef NEED_FMOD.
9234 * Makefile: Rename OPTIMISE to OPTIMIZE.
9236 * groff.sh: Remove assignment to PATH.
9237 * Makefile: Remove SHPATH variable.
9238 * Makefile.bd: Similarily.
9240 * groff.sh: Add -V option to print the pipeline instead of
9243 Fri Aug 31 00:56:46 1990 James Clark (jjc at jclark)
9245 * lib/font.c: Split off file searching into ...
9246 * lib/fontfile.c: New file.
9248 * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
9250 Thu Aug 30 13:13:55 1990 James Clark (jjc at jclark)
9252 * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
9253 Also change misleading comment.
9254 (table::do_vspan): Change similarily misleading comment.
9255 * tbl/main.c (process_data): A format row with an explicit `s'
9256 uses up a data line, even if all the other columns are `_' or `='.
9258 * troff/input.c (token::description): Fix description of
9259 TOKEN_DUMMY and TOKEN_EMPTY.
9261 Wed Aug 29 04:12:08 1990 James Clark (jjc at jclark)
9263 * groff.sh: Fix description of -Z in help message.
9265 Tue Aug 28 07:28:33 1990 James Clark (jjc at jclark)
9267 * pic/object.c (object_spec::make_object): Allow negative and zero
9269 * pic/pic.y: Give linethick default value of -1.0.
9270 * pic/troff.c (troff_output::troff_output): Initialize
9271 last_line_thickness to BAD_THICKNESS.
9272 (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
9273 (troff_output::line_thickness): Canonicalize negative thicknesses
9274 to RELATIVE_THICKNESS.
9275 * pic/tex.c (tex_output::set_pen_size): Silently map negative line
9276 thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
9278 (tex_output::start_picture): Set pen_size to -2.0.
9280 * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
9281 0, then use 0 linewidth.
9282 (ps_printer::ps_printer): Initialize line_thickness to -1.
9284 * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
9286 * ps/devps/symbolchars: Remove `or'.
9287 * ps/tmac.ps: Implement \(or with .char.
9289 * ps/devps/symbolchars: Move most characters into textmap.
9290 * ps/devps/textmap: Add names for troff bracket characters. Remove
9293 * ps/devps/TSymbol.ps: Removed.
9294 * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
9295 * ps/tmac.ps: Do with .char what TSymbol did.
9296 * ps/devps/download: Remove TSymbol.
9298 * ps/devps/T: Removed.
9299 * ps/devps/Troff.ps: Removed.
9300 * ps/devps/Troff.afm: Removed.
9301 * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
9302 * ps/devps/download: Remove Troff.
9303 * ps/devps/FontMakefile: Remove T target.
9304 * ps/devps/DESC-A4: Remove T from font list.
9305 * ps/devps/DESC-letter: Likewise.
9307 * troff/input.c (macro_to_node): Rename to ...
9308 (charinfo_to_node): Don't pass mac argument. Temporarily remove the
9309 character's definition while processing it.
9310 * troff/node.c (node::add_char, make_node): Change calls to
9311 macro_to_node accordingly.
9313 * troff/input.c (token::next): Translate \_ to \(ul.
9315 * tty/devascii/R.proto: Add `|'.
9316 * tty/devlatin1/R.proto: Likewise.
9318 Mon Aug 27 11:25:41 1990 James Clark (jjc at jclark)
9320 * man: Put the version number in all the man pages.
9322 Sun Aug 26 11:40:05 1990 James Clark (jjc at jclark)
9324 * Makefile.bd: New file.
9325 * README.bd: New file.
9327 * VERSION: New file.
9328 * lib/version.c: Removed.
9329 * lib/Makefile: Create version.c from ../VERSION. Remove version.c
9332 * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
9333 environment variable.
9335 * all Makefiles: Split install target into install.bin for
9336 binaries, and install.nobin for everything else.
9337 * Makefile: Add bindist target.
9339 * man/afmtodit.man: New file.
9340 * man/Makefile: Add afmtodit.n to MAN1PAGES.
9341 * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
9343 * ps/Makefile: Pass BINDIR to make install in devps.
9345 * ps/ps.c (ps_printer::set_char): Do nothing if the character is
9346 the space character.
9348 * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
9350 Sat Aug 25 15:39:03 1990 James Clark (jjc at jclark)
9352 * ps/ps.c: Redo font downloading.
9353 * ps/devps/download: New file.
9354 * ps/devps/Makefile: Add download to DEVICEFILES.
9355 * ps/devps/afmtodit: Remove -d option.
9356 * ps/devps/FontMakefile: Don't use -d option with afmtodit.
9357 * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
9358 * ps/devps/zapfdr.ps: Likewise.
9359 * ps/devps/TSymbol.ps: Likewise.
9361 Fri Aug 24 20:10:30 1990 James Clark (jjc at jclark)
9363 * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
9365 Thu Aug 23 10:03:47 1990 James Clark (jjc at yquem)
9367 * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
9368 then strip the first line if it starts with %.
9369 * Makefile: Add a comment about this.
9371 * man/tfmtodit.man: New file.
9372 * man/Makefile: Add tfmtodit.n to MAN1PAGES.
9373 * dvi/Makefile: Install tfmtodit in BINDIR.
9375 * dvi/tfmtodit.c (usage): Mention -v option.
9377 Wed Aug 22 09:56:36 1990 James Clark (jjc at yquem)
9379 * troff/node.c (troff_output_file::end_of_line): Call do_motion.
9380 * troff/node.c (troff_output_file::transparent_char): Don't call
9383 * eqn: Add check_tabs method to most box classes.
9384 * eqn/box.c (box::top_level): Call check_tabs.
9386 * eqn/script.c (script_box::output): Use \Z.
9387 * eqn/limit.c (limit_box::output): Use \Z.
9389 * eqn/box.c (box::top_level): Use itoa.
9391 Tue Aug 21 09:29:28 1990 James Clark (jjc at yquem)
9393 * dvi/tmac.dvi: Add font translations for CR, C, TT.
9394 * dvi/devdvi/Makefile: Don't make links to CW.
9396 * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
9398 * xditview/tmac.X: Likewise.
9400 * troff/node.c: Add font translation feature.
9401 (get_font_translation): New function.
9402 (symbol_fontno): Translate the font name.
9403 (mount_font_no_translate): Rename to mount_font to this.
9404 (mount_font): New function.
9405 (font_family::make_definite): Call mount_font_no_translate instead
9407 (mount_style): Translate the font name.
9408 (font_translate): New function.
9409 (init_font_requests): Bind "ftr" to font_translate.
9411 * ps/devps/prologue (SN): New procedure that rounds a position to
9412 the nearest (pixel + (.25,.25)).
9413 (DL): Use SN to round endpoints.
9415 * lib/version.c: Changed version to 0.5.
9417 Sat Aug 18 04:43:21 1990 James Clark (jjc at yquem)
9419 * Makefile: Move definition of PAGE to the very beginning, so that
9420 people are less likely to miss it.
9422 Fri Aug 17 02:15:11 1990 James Clark (jjc at yquem)
9424 * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
9426 * troff/env.c (environment::choose_breakpoint): Make `can't find
9427 breakpoint' error a warning of type WARN_BREAK. Change message to
9429 * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
9431 * troff/input.c: Add WARN_BREAK to warning_table. Include
9432 WARN_BREAK in DEFAULT_WARNING_MASK.
9434 * tty/tmac.tty: Add definition of \(+-.
9436 * groff.sh: Remove `--' option to set command.
9438 * dvi/devdvi/texsy.map: Remove duplicate md entry.
9440 * ps/devps/eqnchar: Better definition of cdot using md.
9441 * dvi/devdvi/eqnchar: Likewise.
9442 * xditview/devX100/eqnchar: Likewise.
9443 * xditview/devX75/eqnchar: Likewise.
9444 * eqn/lex.c: Add definition of cdot.
9446 Thu Aug 16 09:33:57 1990 James Clark (jjc at yquem)
9448 * troff/input.c (get_optional_char): New function.
9449 * troff/input.c (set_page_character): Use get_optional_char(),
9450 rather than has_arg() and tok.get_char(1).
9451 * troff/env.c (tab_character, leader_character, hyphen_char,
9452 field_characters): Likewise.
9453 (margin_character): Likewise. Also always delete the
9454 margin_character_node.
9456 * troff/input.c (token::get_char): Use token::description.
9458 * troff/input.c (has_arg): Don't skip over tab and \}.
9459 * troff/number.c (start_number): Give a warning if the number
9460 starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
9462 Wed Aug 15 10:04:37 1990 James Clark (jjc at yquem)
9464 * troff/input.c (empty_name_warning, non_empty_name_warning): New
9466 (get_name, get_long_name): Use these. Rename `warn' argument to
9469 * troff/node.c (get_fontno): Test that the symbol is not null.
9471 * troff/input.c (token::description): New function.
9472 * troff/number.c (parse_term): Use token::description in `numeric
9473 expression expected' message.
9474 * troff/groff.h: Add WARN_MISSING.
9475 * troff/number.c (start_number): New function.
9476 * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
9477 get_incr_number): Use start_number().
9478 * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
9480 * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
9481 * troff/reg.c (alter_format): Use WARN_MISSING. Also use
9483 * troff/input.c (token::get_char): Use WARN_MISSING.
9484 * troff/input.c (token::delimiter): Use token::description.
9485 * troff/env.c (environment_switch): Back out Aug 3 change.
9486 * troff/input.c (has_arg): Skip over \}s and tabs but give a
9488 * troff/token.h (token::tab): New function.
9489 * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
9490 * troff/reg.c (alter_format): Likewise.
9491 * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
9493 Tue Aug 14 10:11:21 1990 James Clark (jjc at yquem)
9495 * troff (most files): Redo warnings. Divide warnings into various
9496 categories; warning() has an additional first argument indicating
9497 the category it falls into.
9498 * troff/input.c (main): -w now takes an argument. New option -W.
9499 (enable_warning, disable_warning): New functions.
9501 * ps/devps/afmtodit: Add -a option to lie about the italic angle.
9502 * ps/devps/FontMakefile: Pretend TI has an angle of 7.
9504 Mon Aug 13 10:11:16 1990 James Clark (jjc at yquem)
9506 * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
9507 * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
9508 * xditview/devX75/eqnchar: Likewise.
9509 * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
9511 * eqn/other.c: When bar or over applies to a single character
9512 don't produce an overline_box or an underline_box. Instead produce
9513 an accent_box or an underaccent_box, with the accent a line
9514 whose width is accent_width. New classes underaccent_box,
9515 overline_char_box and underline_char_box.
9516 * eqn/box.h: Move overline_box, underline_box, accent_box class
9517 declarations into eqn/other.c. Add declarations of
9518 make_underline_box, make_overline_box, make_accent_box.
9519 * eqn/eqn.y: Call make_overline_box, make_underline_box
9520 make_accent_box instead of constructors.
9521 * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
9523 * eqn/other.c: Add accent_box::~accent_box.
9524 * eqn/box.h: Declare it.
9526 * groff.sh: With -Tps, use eqn -D.
9528 * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
9530 (underline_box::output): Similarily.
9531 (accent_box::output): Use \Z.
9533 * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
9536 Sun Aug 12 09:41:15 1990 James Clark (jjc at yquem)
9538 * troff/div.c (top_level_diversion::transparent_output(unsigned
9539 char)): Use asciify.
9540 * troff/input.c (asciify): Don't make it static.
9541 * troff/token.h (asciify): Declare it.
9543 * troff/input.c (get_name, get_long_name, token::get_char,
9544 token::delimiter): Add an extra default argument which says
9545 whether a warning should be printed.
9546 * troff: Pass a non-zero argument to one of these rather than
9547 printing a warning directly.
9549 Sat Aug 11 09:02:21 1990 James Clark (jjc at yquem)
9551 * troff: Consistently use symbol::is_null.
9553 * troff/dictionary.h: Move some inline functions into
9556 * troff/request.h: Move inline functions into input.c.
9557 (request_or_macro::invoke): Make it pure.
9559 * troff/input.c, troff/reg.h: New class `constant_int_reg'.
9560 * troff/input.c (init_input_requests): Use class constant_int_reg.
9561 (class compatible_reg): Deleted.
9562 * troff/div.c (init_div_requests): Use class constant_int_reg.
9563 (class last_post_line_extra_space_reg): Deleted.
9565 * troff/env.c (tab_character): Don't change the tab character if
9566 we get an invalid argument.
9567 (hyphen_char): Similarily.
9569 * troff/reg.c (alter_format): Check that nm is not null.
9571 * Makefile, groff.sh: Make it possible to customize the commands
9572 used for printing PostScript and dvi files. Also make it possible
9573 to customize the path used by groff.sh.
9575 * eqn/eqn.y: Make `left' right associative.
9577 Fri Aug 10 18:20:39 1990 James Clark (jjc at yquem)
9579 * pic/pic.h: Added definition of M_SQRT2 for those systems that
9582 * pic/pic.h: Removed definition of INT_MAX.
9584 * troff/node.c (italic_corrected_node::vertical_extent): Omit
9587 * troff/input.c (token::next): Handle \R like \n.
9589 Tue Aug 7 09:46:33 1990 James Clark (jjc at yquem)
9591 * ps/tmac.pc (PSPIC): Simplify.
9593 * troff/env.c (tab_stops::to_string):
9594 * pic/pic.y (object_type_name):
9595 * pic/troff.c (simple_output::line):
9596 * pic/tex.c (tex_output::spline):
9597 * pic/object.c (object_spec::make_object):
9598 * tbl/main.c (process_data): Add cases to switch statements to
9599 avoid cfront warnings. (Some of these are spurious, since the
9600 switch already has a default case.)
9602 * ps/tmac.ps (PSPIC): Reformatted. Prefix all local names with
9603 `ps-'. Don't test systat; instead check number of arguments to
9606 Mon Aug 6 00:13:07 1990 James Clark (jjc at yquem)
9608 * macros/tmac.e: Do not decrease the page offset by 0.5i.
9610 * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
9611 Unlink the file as soon as we have opened it, so that we don't
9612 have to bother with signal handlers.
9614 (fatal_error_exit): Deleted.
9615 (main): Don't call signal.
9617 * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
9619 * dvi/devdvi/Makefile: Use the -k option with S and MI.
9621 * pic/pic.y: If there is a label, or an nth construction before
9622 the first `.' in the argument to `with', ignore it and generate a
9624 * pic/lex.c (lex_warning): New function.
9626 * tbl/table.c (table::init_output): In section keep and release
9627 macro, use 0 indent when diverting and the correct indent when
9630 * troff/input.c (interpolate_number_format): Do not interpolate
9631 anything if the number register is not defined.
9633 * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
9635 Sat Aug 4 08:12:05 1990 James Clark (jjc at yquem)
9637 * ps/devps/prologue (PICTURE): Set components of graphics state to
9638 their default values.
9640 * ps/devps/text.enc: Add trademark
9641 * ps/devps/textmap: Add names for club, spade, heart, diamond,
9642 carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
9643 * ps/devps/symbolchars: Add names for summation and product.
9645 * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
9646 suchthat. Add pp. Add upper-case letters.
9648 * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
9649 diamond, carriagereturn, suchthat. Use Upsilon1 rather than
9652 * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
9653 rA (right angle bracket) to ra. Introduce names for double-headed
9654 arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
9655 * ps/devps/textmap: Likewise for ps device.
9656 * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
9657 * tty/devascii/R.proto: Rename lA to la and rA to ra.
9658 * tty/devascii/R.proto: Likewise.
9659 * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
9661 * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
9663 * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
9665 * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
9668 Fri Aug 3 09:59:27 1990 James Clark (jjc at yquem)
9670 * troff/div.c (when_request): Use symbol::is_null rather than
9671 has_arg to determine whether we have an argument.
9672 (change_trap): Remove the trap if we get an invalid number. Give
9673 an error if we don't get at least the macro name.
9674 (diversion_trap): Remove trap if we get an invalid name or number.
9676 * troff/env.c (environment_switch): Pop if we get an invalid
9677 symbol or numeric expression.
9679 * troff/input.c (do_define_macro): If EOF is encoutered while
9680 defining the macro, do tok.next() before returning.
9682 * troff/token.h (has_arg): Move definition from here, to ...
9683 * troff/input.c (has_arg): ... here
9685 * troff/env.c (space_size): Do nothing if we get an invalid argument.
9686 * troff/input.c (shift): Likewise.
9688 * pic/lex.c (get_token_after_dot): Accept `.center' as a synonym
9691 * pic/troff.c (troff_output::start_picture): Comment out calls to
9694 * eqn/main.c (do_file): Subtract 1 from current_lineno if
9695 interpret_lf_args succeeds.
9697 * eqn/main.c (do_file): Don't recognize delimiter if preceded by
9698 \\. This avoids problems with \$N.
9700 * groff.sh: Pass -C to preprocessors.
9702 * lib/lf.c (interpret_lf_args): Be more flexible.
9704 * tbl/main.c (main): Add -C option.
9705 (table_input::get): Do not recognize TE if followed by character
9706 other than a space or newline unless -C option given.
9707 (process_input_file): Likewise for lf, TS.
9708 (process_data): Likewise for lf in text blocks.
9710 * eqn/main.c (main): Add -C option.
9711 (do_file): Don't recognize EQ, EN or lf if followed by character
9712 other than space or newline unless -C option given.
9713 * eqn/lex.c (file_input::read_line): Similarily.
9714 * eqn/eqn.h: Declare compatible_flag.
9716 * etc/soelim.c (main): Add -C option.
9717 (interpret_lf_args): Use version in libgroff.
9720 * pic/main.c (main): Add -C option, which sets compatible_flag.
9721 (top_input::get), (top_input::peek): If -C option not given,
9722 do not recognize .PS/.PE/.PF/.lf if followed by a character
9723 other than space or newline.
9724 * pic/lex.c (file_input::read_line): Similarily.
9725 * pic/pic.h: Add declaration of compatible_flag.
9727 Thu Aug 2 11:11:27 1990 James Clark (jjc at yquem)
9729 * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
9731 * troff/node.c, troff/node.h: Add `asciify' methods to classes
9732 derived from node. New class space_char_hmotion_node.
9733 * troff/input.c (asciify_macro): New function.
9734 * troff/input.c (init_input_requests): New request `asciify' bound
9736 * macros/mm.diff: New file.
9737 * Makefile: In install.mm target use `patch' to apply
9740 * troff/input.c (macro::print_size): Just print the size in bytes.
9742 * troff/div.c (return_request): Correct the argument
9745 Wed Aug 1 12:38:36 1990 James Clark (jjc at yquem)
9747 * troff/node.h (class composite_node): Add sz member.
9748 * troff/node.c (composite_node::size): Return sz.
9749 * troff/input.c (macro_to_node): Use the initial size in the
9750 environment as the size of the composite_node.
9752 * troff/node.c (node::zero_width_tprint): Provide a reasonable
9755 Tue Jul 31 10:07:10 1990 James Clark (jjc at yquem)
9757 * troff/div.c (change_trap): If we get a bad number expression,
9760 Mon Jul 30 10:30:49 1990 James Clark (jjc at yquem)
9762 * lib/matherr.c (matherr): Define this only if math.h defines
9765 Sun Jul 29 10:34:27 1990 James Clark (jjc at yquem)
9767 * troff/div.c (macro_diversion::distance_to_next_trap): If there
9768 no diversion trap return vunits(INT_MAX - vresolution).
9770 Sat Jul 28 14:28:14 1990 James Clark (jjc at yquem)
9772 * troff/input.c (do_zero_width): New implementation that doesn't
9773 use a temporary environment. Use instead:
9774 (token::add_to_node_list): New function.
9775 * troff/env.c (environment::get_prev_char_height),
9776 (environment::get_prev_char_height),
9777 (environment::get_prev_char_skew): New functions.
9778 (environment::get_prev_char): New function.
9779 (environment::get_prev_char_width): Change to use get_prev_char.
9780 (init_env_request): Implement new registers .cht, .cdp, .csk.
9781 * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
9782 \Z being processed in a separate environment.
9784 Fri Jul 27 10:21:25 1990 James Clark (jjc at yquem)
9786 * tbl/table.c: Removed TABLE_BOTTOM_REG.
9788 * tbl/table.c (table::init_output): In the section release macro,
9789 give a warning message if the section won't fit on one page.
9791 * tbl/table.c (table::do_top): Emit table keep only if table is
9793 (table::do_bottom): Likewise for table release.
9794 (table::table), (table::add_vertical_rule): Remove reference to
9796 * tbl/table.h: Remove keep member.
9798 * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
9799 SECTION_RELEASE_MACRO, if there's not enough space before the next
9800 trap to output the diversion, call T# ourselves, set
9801 SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
9802 SUPPRESS_BOTTOM_REG back to 0. In T#, do nothing if
9803 SUPPRESS_BOTTOM_REG is non-zero. In T#, always mark the current
9804 vertical position and return to it before turning traps on again.
9806 Thu Jul 26 02:54:32 1990 James Clark (jjc at yquem)
9808 * troff/node.c, troff/node.h: In classes derived from node,
9809 replace prev_char_width method by last_char_node method.
9810 * troff/env.c (environment::get_prev_char_width): Use
9811 node::last_char_node rather than node::get_prev_char_width.
9813 * Makefile: Added comment about -fno-inline on 68030-based
9816 * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
9817 tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
9818 expressions using sizeof to int.
9819 * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
9821 * macros/tmac.e (TS): Don't move @f back past the current
9824 Wed Jul 25 09:11:08 1990 James Clark (jjc at yquem)
9826 * ps/ps.c (main): Buffer stderr.
9827 * dvi/dvi.c (main): Likewise.
9828 * tty/tty.c (main): Likewise.
9830 * ps/ps.c (ps_printer::do_import): Improve error handling.
9832 * troff/input.c (abort_request): Use asciify.
9834 * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
9835 ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
9836 type of first argument int rather than char. This works around a
9837 bug on the 68030 based Apollo using g++ 1.37.1.
9839 * tbl/table.h (class table): Add `keep' member.
9840 * tbl/table.c (table::table): Initialize `keep'.
9841 (table::add_vertical_rule): Set `keep' to 1.
9842 (table::do_top): Only emit table keep macro is `keep' is non-zero.
9843 (table::do_bottom): Likewise for table release macro.
9844 (table::do_row): Emit section keep macro even if the row is 0.
9846 Tue Jul 24 08:35:07 1990 James Clark (jjc at yquem)
9848 * macros/tmac.e (@C): Preserve the font family across the change
9851 Mon Jul 23 10:15:23 1990 James Clark (jjc at yquem)
9853 * lib/font.c: Initialize font::hor and font::vert to 1.
9854 (font::load_desc): Check the values of font::hor and font::vert.
9856 * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
9857 be included in a C compilation.
9858 (iftoa): Use INT_DIGITS. Include lib.h.
9860 (as_string): Likewise.
9861 * tbl/table.c: Removed definition of INT_DIGITS.
9862 * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
9863 * troff/input.c (input_input_requests): Likewise.
9864 * ps/ps.c (make_encoding_name): Likewise.
9865 (ps_printer::set_style): Likewise.
9866 (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
9868 * tty/devascii/R.proto: Map fm onto '.
9869 * tty/devlatin1/R.proto: Likewise.
9871 Sat Jul 21 12:45:07 1990 James Clark (jjc at yquem)
9873 * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
9874 argument to \w is at a different input level.
9876 * tbl/table.c (table::init_output): Define a new macro
9877 REPEATED_VPT_MACRO, like vpt but if in a diversion also
9878 transparently outputs itself.
9879 (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
9881 (table::do_row): Likewise.
9883 * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
9884 TRANSPARENT_STRING_NAME.
9886 * tbl/table.c (table::init_output): In the table release macro
9887 print an error message and don't produce any output if after
9888 issuing the need request the table still will not fit. Also
9889 remove the diversion after bringing it back.
9891 * tbl/table.c (table::init_output): Define a new macro
9892 REPEATED_MARK_MACRO, like mk but if in a diversion also
9893 transparently outputs itself.
9894 (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
9895 is necessary because .TH might not call .T#.
9896 (table::do_top): Likewise TOP_REG.
9897 (table::define_bottom_macro): If TOP_REG is no longer valid, use
9898 #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
9899 table header might contain just the two top rules.
9901 Fri Jul 20 10:51:42 1990 James Clark (jjc at yquem)
9903 * troff/div.c: Implement new request `ptr' to print all traps.
9905 * troff/env.c (init_env_requests): Implement `.tabs' reg with
9906 init_string_env_reg.
9907 * troff/env.c (class tab_reg): Deleted.
9909 Thu Jul 19 12:07:16 1990 James Clark (jjc at yquem)
9911 * troff/div.c: New number register .pn returns the number of the
9912 next page as set by the pn request.
9914 * macros/tmac.an: Redid headers and footers. Number each manual
9915 entry starting from 1 unless \nC is > 0, like Sun. Added an
9916 optional 5th argument to .TH which specifies the manual name and
9917 appears in the center of the header. Understand the X, P and D
9920 Wed Jul 18 10:23:31 1990 James Clark (jjc at yquem)
9922 * troff/env.c (init_env_requests): New number register `.lt' to
9923 return the title length.
9925 * troff/node.h (class transparent_dummy_node): New class.
9926 * troff/node.c (class transparent_dummy_node): Provide member
9928 * troff/env.c (interrupt): Add a transparent_dummy_node, rather
9931 * troff/input.c (token::next): New escape sequence \).
9932 * troff/input.c (get_copy): Recognize \) in copy mode.
9934 * troff/input.c (input_stack::clear): New function.
9935 * troff/input.c (exit_request): Use input_stack::clear.
9937 * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
9938 * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
9940 * troff/env.c: Move set_page_character to input.c. Move
9941 page_character to input.c also.
9942 * troff/env.c (title): Split off the reading of the parts of the
9943 title into read_title_parts.
9944 * troff/input.c (read_title_parts): New function. Check the
9945 input_level when testing whether a token matches the delimiter.
9947 * troff/input.c (exit_request): New function.
9948 * troff/input.c (init_input_requests): Bind ex request to
9949 exit_request rather than exit_groff.
9951 * troff/input.c (exit_groff): Call tok.next() before
9952 process_input_stack().
9954 Mon Jul 16 09:47:23 1990 James Clark (jjc at yquem)
9956 * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
9957 * troff/env.h: ditto.
9958 * troff/input.c: ditto.
9960 * troff/env.c (environment::is_empty): Test pending_lines.
9962 * troff/env.c (environment::have_pending_lines): Removed.
9964 * troff/input.c: Add request to flush pending lines from the
9967 * troff/env.c, troff/env.h: Add automatic widow control feature.
9969 * troff/input.c (exit_groff): Do process_input_stack() after
9970 do_break() but before setting exit_flag to 2.
9972 * troff/input.c: Remove FLUSH_PENDING_LINES and
9973 TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
9974 environment after END_TRAP token seen, but only if there aren't
9975 any more traps still unfinished.
9976 * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
9978 Sun Jul 15 10:50:08 1990 James Clark (jjc at yquem)
9980 * troff/env.c: Rename the `retain_size' member of class
9981 pending_output_line to `no_fill'.
9983 * troff/env.c (title): When the line is output, make the
9984 retain_size argument !fill.
9986 * troff/node.h: Add `hyphenated' member to struct breakpoint.
9987 * troff/node.c (space_node::get_breakpoints),
9988 (dbreak_node::get_breakpoints): Fill this in.
9989 * troff/env.c: Allow specification of maximum number of
9990 consecutive hyphenated lines.
9992 * troff/env.c (environment::is_empty): Add test for !current_tab.
9994 Sat Jul 14 11:23:01 1990 James Clark (jjc at yquem)
9996 * troff/env.c (environment::hyphenate_line): Don't completely give
9997 up if the word is not to be hyphenated; continue so that breaks
9998 can be made at break_char_node's.
10000 * lib/lib.h: Only define INT_MAX if it's not already defined;
10001 undef INT_MIN if it's already defined.
10003 * Makefile: Make it easy to define CFRONT_ANSI_BUG.
10005 * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
10006 This works around a bug in AT&T C++ 2.0 used with an ANSI C
10009 * macros/tmac.an (an-header): Set no-space mode.
10011 * macros/tmac.an (TH): Start a new page if necessary.
10013 * Started using ChangeLog at version 0.4.
10016 version-control: never