* src/roff/troff/input.cc (token::next): Make \H behave consistently
[s-roff.git] / ChangeLog
blob61bcd0b04f72686c9a88bb11393a930429c32457
1 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/troff/input.cc (token::next): Make \H behave consistently
4         if not in compatibility mode, i.e., increment relative to the
5         previous height.
6         * doc/groff.texinfo: Updated accordingly.
8 2002-04-17  Werner LEMBERG  <wl@gnu.org>
10         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
12 2002-04-16  Bernd Warken  <bwarken@mayn.de>
14         * src/roff/groff/groff.man: Improve documentation of -P option.
15         Other minor fixes.
17 2002-04-15  Werner LEMBERG  <wl@gnu.org>
19         Add new escape \F to switch font family.
21         * src/roff/troff/input.cc (token::next): Handle \F.
22         * src/roff/troff/env.cc (environment::set_family): Handle
23         `interrupted' flag.
24         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
25         Document it.
27 2002-04-14  Werner LEMBERG  <wl@gnu.org>
29         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
30         spaces in tags.
32 2002-04-13  Werner LEMBERG  <wl@gnu.org>
34         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
35         \m[] and \M[], respectively.
37         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
38         (symbol::symbol): Handle NULL string and empty string differently.
39         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
40         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
41         Add optional parameter.
42         Updated calling functions.
43         (get_copy, do_glyph_color, do_fill_color, token::next): Use
44         `symbol::is_empty'.
45         * src/roff/troff/env.cc (environment::set_font): Ditto.
47         * src/preproc/pic/troff.cc (troff_output::set_fill,
48         troff_output::reset_color: Updated.
50         * tmac/www.tmac: Updated.
52         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
53         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
54         Updated.
56         * tmac/Xps.tmac: Remove some redundant code.
58         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
59         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
60         man/groff_out.man, man/groff.man, man/groff_diff.man,
61         src/roff/groff/groff.man: Replace \f[P] with \f[].
63 2002-04-13  Bernd Warken  <bwarken@mayn.de>
65         * src/include/printer.h, src/libs/libdriver/printer.cc
66         (printer::change_fill_color): New member function.
67         * src/libs/libdriver/input.cc (parse_D_command): Use it.
69 2002-04-12  Werner LEMBERG  <wl@gnu.org>
71         * doc/groff.texinfo: Completed pass on gtroff reference.
73 2002-04-11  Werner LEMBERG  <wl@gnu.org>
75         * doc/groff.texinfo: More fixes.
77 2002-04-11  Bernd Warken  <bwarken@mayn.de>
79         * src/include/color.h: Decorate with `const'.
80         Use `size_t'.
81         Include `stddef.h'.
82         * src/libs/libgroff.color.cc: Decorate with `const'.
83         Use `size_t'.
84         (color::color): Initialize members.
85         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
86         command according to the documentation.
88         * man/groff_out.man: Updated.
89         Minor fixes.
91 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
93         * src/preproc/html/pre-html.cc (write_start_image): Remove
94         redundant output.
95         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
97         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
98         \C'hy' caused an assertion failure.
100         * src/roff/troff/env.cc (environment::environment): Initialize
101         `emitted_node'.
102         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
104 2002-04-10  Werner LEMBERG  <wl@gnu.org>
106         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
107         Document pvs request and .pvs register.
109 2002-04-09  Werner LEMBERG  <wl@gnu.org>
111         * doc/groff.texinfo: Improve and fix documentation of diversions
112         and environments.
114 2002-04-08  Werner LEMBERG  <wl@gnu.org>
116         * doc/groff.texinfo: Fix documentation of drawing functions.
117         Other minor fixes.
119 2002-04-07  Werner LEMBERG  <wl@gnu.org>
121         * doc/groff.texinfo: Better documentation of double quotes as
122         arguments.
123         Other minor fixes.
125 2002-04-06  Werner LEMBERG  <wl@gnu.org>
127         * man/groff_font.man: Document names of special characters better.
128         * doc/groff.texinfo: Minor improvements.
130         * tmac/lbp.tmac: Load latin1.tmac.
131         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
133         * font/devX*/*: Regenerated (all chars > 0x80 removed).
135 2002-04-05  Werner LEMBERG  <wl@gnu.org>
137         * tmac/tty.tmac: Don't use shc request.
138         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
139         * NEWS: Updated.
141         * man/groff_diff.man: Minor fixes.
143         * font/devlbp/*: Remove all `charXXX' entities.
145         * src/libs/libgroff/font.cc (font::~font): Deallocate
146         `special_device_coding'.
147         (font::load): Use `new' for allocating `special_device_coding'.
148         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
149         Removed unused member.
151 2002-04-05  Werner LEMBERG  <wl@gnu.org>
153         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
154         (resource_manager::do_begin_binary,
155         resource_manager::do_begin_data): Use it.
157         * doc/texinfo.tex: Updated to version 4.2.
159         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
160         (token::zero_width_break): New inline function.
161         * src/roff/troff/input.cc (token::next): Use it.
162         (token::description): Updated.
163         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
164         (token::add_to_node_list, token::process): Use it.
165         * NEWS, doc/groff.texinfo: Updated.
167         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
168         * tmac/tty.tmac: Add missing backslash.
170 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
172         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
173         `.ps' register instead of `.s' to handle fractional point sizes.
174         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
175         limit_box::output): Ditto.
176         * src/preproc/eqn/other.cc (size_box::compute_metrics,
177         size_box::output): Ditto.
178         * src/preproc/eqn/over.cc (over_box::compute_metrics,
179         over_box::output): Ditto.
180         * src/preproc/eqn/script.cc (script_box::compute_metrics,
181         script_box::output): Ditto.
182         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
183         sqrt_box::output): Ditto.
185 2002-04-03  Michael Selway  <mas@ssl.co.uk>
187         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
188         Fix typo.
190 2002-04-03  Werner LEMBERG  <wl@gnu.org>
192         * doc/homepage.ms: Reduce title size.
193         * doc/groff.texinfo: Fix documentation of .t register.
194         Fix handling of colon.
195         Fix `\' vs. `\\'.
197         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
198         only if page length is positive to avoid a loop.
200         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
201         tbl.
203 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
205         * src/include/nonposix.h, src/roff/groff/pipeline.c:
206         s/__CYGWIN32__/__CYGWIN__/.
208 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
210         * doc/gnu.xpm: New image contributed by Emily Mulley.
211         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
212         (homepage.html): Be dependent on gnu.eps.
213         * doc/homepage.ms: Updated to new image.
215         * src/devices/grohtml/post-html.cc (html_printer): New member
216         `sbuf_prev_hpos'.
217         (html_printer::flush_sbuf, html_printer::set_char): Set it.
218         (html_printer::sbuf_continuation): Use it.
220 2002-03-28  Werner LEMBERG  <wl@gnu.org>
222         * src/libs/libgroff/getopt.c: Updated to latest version.
224         * tmac/README: More on hyphen.tex license.
226 2002-03-26  Larry Kollar  <kollar@alltel.net>
228         * doc/groff.texinfo: Add documentation of most missing requests.
230 2002-03-25  Werner LEMBERG  <wl@gnu.org>
232         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
233         of `+-', `mu', and `di', respectively.
235         * font/devascii/R.proto, font/devutf8/R.proto,
236         font/devlatin1/R.proto, font/devhtml/R.proto,
237         font/devcp1047/R.proto, font/devlpb/*: Add them.
238         * font/devps/generate/textmap: Ditto.
239         * font/devps/*: Regenerated.
240         * font/devlj4/generate/text.map: Add them.
241         * font/devlj4/*: Regenerated.
242         * font/devdvi/generate/tc.map: Use them.
243         * font/devdvi/generate/texsy.map: Add them.
244         * font/devdvi/*: Regenerated.
245         * font/devX*/*: Regenerated.
247         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
248         tmac/tty-char.tmac: Updated.
250         * NEWS, man/groff_char.man: Updated.
252 2002-03-24  Werner LEMBERG  <wl@gnu.org>
254         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
255         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
256         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
257         we use `.fchar' in dvi.tmac.
258         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
259         * tmac/Xps.tmac: Simplify some char definitions.
260         Add definition for \[f/].
261         * man/groff_char.man: Updated for new X.tmac.
263         * tmac/README: New file.
265 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
267         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
268         internal .y.o rule took precendence over the .y.cc rule, compiling
269         the yacc files with gcc instead of g++.
271 2002-03-23  Werner LEMBERG  <wl@gnu.org>
273         * tmac/dvi.tmac: Add replacement font for `CB'.
275         * tmac/doc.tmac: s/request/macro/ in messages.
276         (doc-generic-macro): Improve error message.
277         * tmac/groff_mdoc.man: Minor improvements.
279 2002-03-22  Werner LEMBERG  <wl@gnu.org>
281         * doc/groff.texinfo: Document possible conflict between `tr' and
282         `char' requests.
284 2002-03-21  Werner LEMBERG  <wl@gnu.org>
286         Improve handling of hyphenation patterns.  It is now possible to
287         use most of TeX's pattern files unmodified.  To make the process
288         more flexible, a new request `hpfcode' has been added which
289         provides a character code mapping for the `hpf' request.  See
290         comment before hpf_getc() for more details.
292         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
293         functions.
294         (read_patterns_file): Additional parameter for exception dictionary.
295         Extended to recognize \pattern, \hyphenation, and \endinput.
296         (do_hyphenation_patterns_file): Updated.
297         * src/roff/troff/env.h (hpf_code_table): New extern.
299         * src/roff/troff/input.cc (hpf_code_table): New array.
300         (init_hpf_code_table, hyphenation_patterns_file_code): New
301         functions.
302         (hyphenation_code): Handle translation from `trin' correctly.
303         (main, init_input_requests): Updated.
304         (charinfo::set_translation): Handle hyphenation code also.
306         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
307         inline function.
309         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
310         char' is used for offsets in hyphenation exceptions.
312         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
314         * NEWS, man/groff_diff.man, man/groff.man: Document it.
316 2002-03-20  Larry Kollar  <kollar@alltel.net>
318         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
319         requests.
321 2002-03-18  Werner LEMBERG  <wl@gnu.org>
323         * tmac/html.tmac: Fix serious typo.
325 2002-03-17  Larry Kollar  <kollar@alltel.net>
327         * doc/groff.texinfo: Add documentation for `writec' request.
329 2002-03-17  Werner LEMBERG  <wl@gnu.org>
331         Added request `hpfa' to append hyphenation patterns.
333         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
334         parameter `append'.
335         (hyphenation_patterns_file): Renamed to...
336         (do_hyphenation_patterns_file): This.
337         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
338         functions.
339         (init_hyphen_requests): Updated.
340         * NEWS, man/groff.man, man/groff_diff.man: Document it.
342 2002-03-16  Werner LEMBERG  <wl@gnu.org>
344         Added request `writec' in analogy to `tmc'.
346         * src/roff/troff/input.cc (write_request): Renamed to...
347         (do_write_request): This.
348         Added one parameter.
349         (write_request, write_request_continue): New functions.
350         (init_input_requests): Updated.
351         * NEWS, man/groff.man, man/groff_diff.man: Document it.
353         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
354         5-10000pt.
355         * NEWS: Document it.
357 2002-03-15  Werner LEMBERG  <wl@gnu.org>
359         * man/groff.man: Add writem request.
361         Add request `trin' (translate input) to make `.asciify' work
362         correctly.  This is necessary since `charXXX' entity names are no
363         longer hardcoded in font definition files.
365         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
366         `translate_input' members.
367         (charinfo::set_asciify_code, charinfo::get_asciify_code,
368         charinfo::set_translation_input): New methods.
369         (charinfo::set_translation): Add third argument.
370         * src/roff/troff/input.cc (charinfo:set_translation): Set
371         `asciify_code'.
372         (do_translate): Add second argument.
373         (translate_input): New function.
374         (init_input_requests): Updated.
375         * src/roff/troff/node.cc (glyph_node::asciify,
376         composite_node::asciify): Use `get_asciify_code'.
378         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
380         * NEWS, man/groff.man, man/groff_diff.man: Updated.
382 2002-03-14  Larry Kollar  <kollar@alltel.net>
384         * doc/groff.texinfo: Improve documentation of .RS and .RE.
386 2002-03-14  Werner LEMBERG  <wl@gnu.org>
388         Add a new request `sizes' similar to the `sizes' command in DESC
389         files.
391         * src/roff/troff/env.cc (override_sizes): New function.
392         (init_env_requests): Use it.
393         * src/roff/troff/token.h: Export `read_string'.
394         * NEWS, man/groff_diff.man, man/groff.man: Document it.
396 2002-03-12  Werner LEMBERG  <wl@gnu.org>
398         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
400 2002-03-10  Werner LEMBERG  <wl@gnu.org>
402         * tmac/pspic.tmac: Add support for -Tdvi.
403         * tmac/dvi.tmac: Include pspic.tmac.
404         * src/devices/grodvi/grodvi.man: Document it.
405         * NEWS: Updated.
407         * font/devlj4/generate/Makefile: Fix URL of metric files.
409 2002-03-09  Werner LEMBERG  <wl@gnu.org>
411         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
413 2002-03-09  Larry Kollar  <kollar@alltel.net>
415         * tmac/groff_ms.man: Add documentation for RS and RE macros.
417 2002-03-08  Werner LEMBERG  <wl@gnu.org>
419         * doc/groff.texinfo: Fixes for texinfo 4.1.
421 2002-03-07  Werner LEMBERG  <wl@gnu.org>
423         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
424         included.
425         Handle CYGWIN properly.
427 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
429         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
430         * tmac/lbp.tmac: Add some font translations.
432 2002-03-02  Werner LEMBERG  <wl@gnu.org>
434         * font/devcp1047/R.proto, font/devlatin1/R.proto,
435         font/devhtml/R.proto: Remove `charXXX'  entries.
436         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
437         where appropriate.
439         * font/devlj4/generate/text.map: Remove `charXXX' entries.
440         * font/devlj4/*: Regenerated all font definition files.
441         * tmac/lj4.tmac: Load latin1.tmac.
443         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
444         from 2000-06-17: LJ4 metric files are *not* text files.
446         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
447         register to test for EBCDIC.
449 2002-03-01  Werner LEMBERG  <wl@gnu.org>
451         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
452         files (as grops already does).
453         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
454         files.
455         * src/devices/grops/grops.man: Document comment lines in encoding
456         files.
458         * tmac/cp1047.tmac: New file.
459         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
460         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
461         * tmac/Makefile.sub (NORMALFILES): Updated.
463         * tmac/ec.tmac: Don't load latin1.tmac again.
465         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
466         font/devps/generate/dingbats.map,
467         font/devps/generate/dingbats.rmap, font/devps/text.enc,
468         font/devps/generate/Makefile (symbolmap): Add header comment.
469         * font/devps/generate/textmap: Ditto.
470         Remove `charXXX' entries.
471         * font/devps/symbolmap: Regenerated.
472         * font/devps/*: Regenerated all font definition files.
474 2002-02-28  Werner LEMBERG  <wl@gnu.org>
476         Add color support to grodvi (for drawing colors are currently
477         translated to gray values).
479         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
480         (dvi_printer): Add `cur_color' member.
481         (dvi_printer::set_color): New function.
482         (draw_dvi_printer): Remove `fill'.
483         (draw_dvi_printer::fill_next): Pass environment as parameter.
484         Update code for new color support translated to gray.
485         (dvi_printer::set_char): Updated.
486         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
487         changes crossing the page border.
488         (dvi_printer::draw): Updated.
489         Remove cases `f' and `F'.
490         * tmac/dvi.tmac: Add color definitions.
491         * NEWS, src/devices/grodvi/grodvi.man: Updated.
493         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
494         used incorrectly.
496         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
497         versions of autoconf.
498         * configure: Updated.
500         * doc/homepage.ms: Use `.blm'.
501         * tmac/www.tmac (www-depth): New auxiliary variable.
502         (www-pop-level): Don't issue HTML tag.
503         (ULS, ULE, LI): Use absolute indentation.
505         * src/devices/grops/ps.cc (ps_printer::begin_page,
506         ps_printer::end_page): Switch forth and back to default color while
507         starting a new page.
509 2002-02-27  Werner LEMBERG  <wl@gnu.org>
511         Add EC and TC fonts to devdvi.
513         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
514         * font/devdvi/generate/cork.map: Renamed to...
515         * font/devdvi/generate/ec.map: This.
516         Remove entry for `aq'.
517         * font/devdvi/generate/tc.map: New file.
518         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
519         EC and TC fonts.
520         (FONTS): Updated.
521         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
522         * font/devdvi/Makefile.sub (DEVFILES): Updated.
523         * tmac/ec.tmac: New file.
524         * tmac/Makefile.sub (NORMALFILES): Updated.
525         * NEWS, src/devices/grodvi/grodvi.man: Updated.
526         * man/groff_char.man: Check `ECFONTS' register.
528         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
530 2002-02-26  Werner LEMBERG  <wl@gnu.org>
532         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
533         * font/devdvi/generate/cork.map: Add 'y and 'Y.
534         * font/devdvi/*: Updated.
535         * tmac/dvi.tmac: Formatting.
537         Add font `HBI' for the dvi output.
538         Add support for font families `T' and `H'.
540         * font/devdvi/HBI: New file.
541         * font/devdvi/B: Renamed to ...
542         * font/devdvi/TB: This.
543         * font/devdvi/BI: Renamed to ...
544         * font/devdvi/TBI: This.
545         * font/devdvi/I: Renamed to ...
546         * font/devdvi/TI: This.
547         * font/devdvi/R: Renamed to ...
548         * font/devdvi/TR: This.
549         * font/devdvi/H: Renamed to ...
550         * font/devdvi/HR: This.
551         * font/devdvi/Makefile.sub (DEVFILES): Updated.
552         * font/devdvi/generate/Makefile (HBI): New rule.
553         (FONTS): Updated.
554         (R, I, B, BI, H): Renamed to ...
555         (TR, TI, TB, TBI, HR): This, respectively.
556         (srcdir): Fixed.
557         * NEWS, src/devices/grodvi/grodvi.man: Updated.
558         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
559         Add `styles' and `family' keywords.
560         * tmac/dvi.tmac: Alias `H' to `HR'.
561         Add some fspecial requests for italic fonts.
562         Add TR and TI as special.
563         Add support for `_' with font CWI.
565         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
566         operator `:'.  Until now, the expression `0:1' would return 2
567         instead of 1.
569 2002-02-25  Werner LEMBERG  <wl@gnu.org>
571         * man/groff_char.man: Added some missing PS glyph names (from the
572         Adobe Glyph List).
573         * font/devps/generate/textmap, font/devps/symbolmap: Add
574         `arrowupdn'.
576         * doc/groff.texinfo: Minor additions and fixes.
577         * man/groff_diff.man: Remove documentation of fp request.  This
578         is already covered in the original troff manual.
579         Updated to be consistent with other doc files.
580         * NEWS: Updated.
582 2002-02-24  Werner LEMBERG  <wl@gnu.org>
584         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
585         TTYDEVDIRS.
586         Define new variable OTHERDEVDIRS (containing `font/devlj4
587         font/devlbp' if not EBCDIC).
588         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
589         (OTHERDEVDIRS): New variable.
590         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
591         * configure: Regenerated.
593         * NEWS, src/devices/grotty/grotty.man: Updated.
595 2002-02-23  Werner LEMBERG  <wl@gnu.org>
597         * src/roff/troff/input.cc (do_overstrike, do_bracket,
598         get_line_arg): Honour input level.
600         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
602         * font/*/*: Implement it in all font files.
603         * font/devps/generate/textmap, font/devps/generate/symbolchars,
604         * font/devps/symbolmap: Updated.
605         * font/devlj4/generate/text.map: Updated.
606         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
607         * font/devdvi/generate/texmi.map: Updated.
609         * font/devutf8/R.proto: Remove all `charXXX' entries.
610         * font/devutf8/NOTES: Updated.
612         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
613         version 4.1.0.
615         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
617         * NEWS, man/groff_char.man: Updated.
619 2002-02-21  Phil Lobbes <phil@perkpartners.com>
621         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
623 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
625         * src/roff/grog/grog.pl: Fix computation of $refer.
627 2002-02-19  Werner LEMBERG  <wl@gnu.org>
629         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
630         `snprintf' and `vsnprintf'.
632         * src/include/htmlindicate.h: Renamed to...
633         * src/include/htmlhint.h: This.
634         * src/include/Makefile.sub: Updated.
635         * src/preproc/eqn/main.cc: Updated.
637 2002-02-18  Werner LEMBERG  <wl@gnu.org>
639         * man/roff.man, man/groff_out.man, man/groff.man,
640         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
641         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
643         * win32-diffs: Updated.
645 2002-02-17  Werner LEMBERG  <wl@gnu.org>
647         * doc/Makefile (clean): Add *.eps.
648         (MEMACROS): Removed.
649         (TFLAG): New variable.
650         (TROFF): Use it.
651         Add -ww.
652         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
653         (.me.dit): Fixed.
654         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
656         * tmac/www.tmac: Use dummy diversion while resetting and disabling
657         `.tl'.
658         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
659         unstripped.
660         * src/roff/troff/troff.man: Fix order of parameter description.
662         * NEWS: Updated.
664 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
666         Simplify image handling for grohtml.
667         Fix <p> bug.
669         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
670         comment out.
671         (html_text::dump_stack): Don't emit newline while debugging.
672         (html_text::do_push) [DEBUGGING]: Print more info.
673         (html_text::check_emit_text): Fix handling of <p>.
674         * src/devices/grohtml/html.h: Updated.
675         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
676         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
677         send its data to stderr also.
678         Update all callers.
679         (simple_output::space_or_newline) [DEBUGGING]: Removed.
680         * src/devices/grohtml/post-html.cc (html_printer::do_links,
681         html_printer::html_printer): Remove `DEBUGGING' conditionals.
683         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
684         Removed.
685         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
686         is_inline_image): Removed.
687         (html_begin_suppress, html_end_suppress): Don't take a parameter.
688         (graphic_start, graphic_end): Removed.
689         * src/include/htmlindicate.h: Updated.
690         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
691         (macroset_template): New global variable.
692         (makeFileName): Use `macroset_template'.
693         (write_end_image): Don't take a parameter.
694         Don't emit newline.
695         (write_start_image: Don't emit newline.
696         (char_buffer::write_upto_newline): Updated.
697         (char_buffer::skip_to_newline): Renamed to ...
698         (char_buffer::skip_until_newline): This.
699         Fix code.
700         (char_buffer::write_file_troff, char_buffer::write_file_html):
701         Simplified.
702         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
703         (removeAllPages): Remove `DEBUGGING' conditionals.
704         (addRegDef, dump_args): New functions.
705         (char_buffer::do_html, char_buffer::do_image): Handle
706         `www-image-template' command line variable.
707         Add more debugging code.
708         (addps4html): Removed.
709         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
711         * src/preproc/eqn/main.cc: Include `ctype.h'.
712         (suppress_html): Removed.
713         (do_file): Updated.
714         (inline_equation): Use `html_begin_suppress' and
715         `html_end_suppress'.
716         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
717         (troff_output::start_picture, troff_output::finish_picture):
718         Updated.
719         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
720         (process_input_file): Updated.
722         * src/roff/troff/div.cc (page_number): Set page number only if the
723         `ps4html' register isn't defined.
724         * src/roff/troff/input.cc (image_no): New external variable.
725         (do_suppress): Use it.
726         * src/roff/troff/node.h (suppress_node::image_id): New member.
727         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
728         (suppress_node::suppress_node): Initialize `image_id' member.
729         (suppress_node::same): Handle `image_id' also.
730         (suppress_node::copy): Updated.
731         (last_image_id): New global variable.
732         (suppress_node::tprint): Use it.
734         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
735         HTML-IMAGE-END.
736         * tmac/pspic.mac (PSPIC): Fix html support.
737         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
738         * tmac/www.tmac (www-image-template): Set up.
739         (HTMLINDEX): Renamed to...
740         (HX): This.
741         (BODYCOLOR): Renamed to...
742         (BCL): This.
743         (BACKGROUND): Renamed to...
744         (BGIMG): This.
745         (URL): Change order of parameters for consistency.
746         (MAILTO): Renamed to...
747         (MTO): This.
748         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
749         (IMG, PIMG, MPIMG): This.
750         (HTML-H-BEGIN, HTML-H-END): Renamed to...
751         (HnS, HnE): This.
752         (LINKS): Renamed to...
753         (LK): This.
754         (LINE): Renamed to...
755         (HR): This.
756         (NO-AUTO-RULE): Renamed to...
757         (NHR): This.
758         (HTML-TL): Renamed to...
759         (HTL): This.
760         (UL-BEGIN, UL-END): Renamed to...
761         (ULS, ULE): This.
762         (DROPCAP): Renamed to...
763         (DC): This.
764         (TS, TE, EQ, EN): Provide default definitions.
765         (www-make-unique-name): Updated.
766         (HTML-IMAGE-INLINE): Fix typo.
767         * tmac/groff_www.man: Updated.
769         * doc/Makefile (homepage.html): Add option -r to grohtml.
770         Use shortened image name.
771         * doc/groff.texinfo: Updated info on grohtml strings and macros.
772         * doc/homepage.ms: Updated and extended.
774 2002-02-14  Werner LEMBERG  <wl@gnu.org>
776         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
778         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
779         SGR_BACK_DEFAULT_COLOR): Replaced with ...
780         (tty_printer::put_color): Use it.
781         (ttr_printer::end_page): Simplify.
783 2002-02-13  Werner LEMBERG  <wl@gnu.org>
785         * tmac/groff_tmac.man: Moved to...
786         * man/groff_tmac.man: This place.
787         * tmac/Makefile.sub, man/Makefile.sub: Updated.
789 2002-02-12  Werner LEMBERG  <wl@gnu.org>
791         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
792         $(COMPILE.c) to not include groff's assert.h.
794         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
795         variable.
796         * NEWS, src/drivers/grotty/grotty.man: Document it.
798 2002-02-11  Werner LEMBERG  <wl@gnu.org>
800         * src/libs/snprintf/snprintf.c: Updated to latest version
801         (2002-02-11).
803         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
804         test whether there is `.]' also.
805         Don't check for spaces after `.['.
806         * src/roff/grog/grog.sh: Do the same.
808 2002-02-10  Werner LEMBERG  <wl@gnu.org>
810         Illegal -> Invalid.
812         * src/libs/libgroff/illegal.cc: Renamed to ...
813         * src/libs/libgroff/invalid.cc: This.
814         (illegal_char_table): Renamed to ...
815         (invalid_char_table): This.
816         * src/libs/libgroff/Makefile.sub: Updated.
817         * win32-diffs: Updated.
819         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
820         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
821         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
822         font::load), src/preproc/eqn/main.cc (read_line, main),
823         src/preproc/eqn/lex.cc (file_input::read_line),
824         src/preproc/pic/lex.cc (file_input::read_line,
825         simple_file_input::get, simple_file_input::peek),
826         src/preproc/pic/main.cc (top_input::get, top_input::peek),
827         src/preproc/pic/pic.man, src/preproc/refer/main.cc
828         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
829         do_bib), src/preproc/tbl/main.cc (table_input::get),
830         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
831         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
832         do_zero_width, read_request, encode_char, ps_get_line,
833         transparent_file, get_char_for_escape_name, transparent_translate,
834         asciify, input_char_description, read_string, set_string),
835         src/roff/troff/env.cc (environment::add_html_tag),
836         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
838         * src/include/lib.h: Updated.
840         * src/preproc/eqn/eqn.cc: Removed.
842         * NEWS: Updated.
844         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
846 2002-02-09  Werner LEMBERG  <wl@gnu.org>
848         * doc/gnu.xpm: New image.
849         * doc/Makefile (DOCS): Add homepage.ps.
850         Add rules for converting xpm->png and xpm->eps.
851         Use `gnu.{xpm,eps}' as image names.
852         * doc/homepage.ms: Updated.
854 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
856         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
857         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
858         Remove calls to `B1' and `B2'
859         (PNG-IMAGE): New macro for inclusion of images in PNG format.
860         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
861         auxiliary variables for MARGIN-PNG-IMAGE.
862         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
863         auxiliary macros for MARGIN-PNG-IMAGE.
864         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
865         the margin.
866         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
867         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
868         (DROPCAP): New macro to produce dropcap characters.
869         (www-do-image): Renamed back to...
870         (HTML-DO-IMAGE): This.
871         Updated all callers.
873         * doc/Makefile (gnubw.eps): Updated.
874         * doc/homepage.ms: Updated.
876 2002-02-08  Werner LEMBERG  <wl@gnu.org>
878         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
879         Added `linethick' to table in section `Style Variables'.
881 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
883         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
885 2002-02-07  Werner LEMBERG  <wl@gnu.org>
887         Adding options -C (compatibility mode) and -c (grotty's old output
888         scheme) to nroff.
890         * src/roff/nroff/nroff.sh: Implement it.
891         Remove `-Wall'.
892         * NEWS, src/roff/nroff/nroff.man: Updated.
894         * PROBLEMS: Document bison 1.32 bug.
896         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
898         * src/roff/troff/node.cc (make_tfont): Define it earlier.
899         * src/roff/troff/div.h: Add prototype for `end_diversions'.
900         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
901         * src/roff/troff/env.h: Add prototype for `title'.
903         Adding EBCDIC support to grotty.
905         * src/devices/grotty/tty.cc (CSI): New macro.
906         (SGR_*, tty_printer::put_color): Use it.
908 2002-02-06  Werner LEMBERG  <wl@gnu.org>
910         Implementing color support in grotty.  The new switch -c activates
911         the old drawing scheme, disabling color at the same time.  The new
912         switch `-i' selects italic instead of underlining (SGR only).
914         * src/devices/grotty/tty.cc (putstring): New define instead of
915         `fputs'.  Updated all callers.
916         (old_drawing_scheme): New global variable.
917         (COLOR_CHANGE): New enum value.
918         (SGR_*): New defines containing color handling escape sequences.
919         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
920         (glyph): New members `back_color_idx' and `fore_color_idx'.
921         (glyph::order): Add COLOR_CHANGE.
922         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
923         `is_underline', `is_bold', `cu_flag', `tty_colors'.
924         New methods `make_underline', `make_bold', `color_to_idx',
925         `change_color', `put_color'.
926         (cu_flag): Moved into `tty_printer' class.
927         (tty_printer::tty_printer): Initialize colors.
928         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
929         tty_printer::draw, tty_printer::end_page): Handle colors also.
930         (main): Add options `-c' and `-i'.
931         (usage): Updated.
932         * NEWS, src/devices/grotty/grotty.man: Updated.
934         * src/include/errarg.h (errarg): Add support for `unsigned int'.
935         * src/libs/libgroff/errarg.c: Implement it.
937         * src/include/printer.h (printer): Add `change_color' method
938         (currently used by grotty only).
939         * src/libs/libdriver/printer.cc: Implement it.
940         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
941         call to `pr->change_color'.
943         * src/roff/troff/node.cc (troff_output_file::fill_color,
944         troff_output_file::glyph_color): Call `do_motion'.
946         * tmac/tty.tmac: Add color definitions.
948         * src/roff/groff/groff.man: Minor fixes.
950 2002-02-05  Bernd Warken  <bwarken@mayn.de>
952         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
953         it.  This is a preparation for future changes.
955 2002-02-05  Werner LEMBERG  <wl@gnu.org>
957         * src/roff/troff/input.cc (process_input_stack): Fix the case
958         where leading spaces are followed by \f or \s; previously, an
959         incorrect space width has been used.
961         * doc/roff.man (quoted_char): Fix argument.
962         (comment): Define string.
964 2002-02-04  Larry Kollar  <kollar@alltel.net>
966         * doc/groff.texinfo: More fixes.
968 2002-02-04  Werner LEMBERG  <wl@gnu.org>
970         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
971         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
972         `restore_compatibility' before `output_string' -- the LINE_STRING
973         register now already contains proper switches from and to
974         compatibility mode.
976         * man/groff_char.man: Add Euro symbol.
977         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
978         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
979         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
980         Other minor fixes.
982         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
983         texinfo->pdf.
984         (.texinfo.html): Add support for texinfo->html.
986 2002-02-03  Werner LEMBERG  <wl@gnu.org>
988         Added three new requests `ds1', `as1', and `ami'.  The former two
989         are equivalent to `ds' and `as' with the difference that
990         compatibility mode is saved on entry, switched off during string
991         expansion, and restored on exit.  The latter is the pendant to `dei'
992         for `am'.
994         (do_define_string): Use `define_mode' and `calling mode'.
995         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
996         end of string, respectively.
997         (define_string, append_string): Use `calling_mode'.
998         (define_nocomp_string, append_nocomp_string,
999         define_string_indirect): New functions.
1000         (init_input_requests): Updated.
1001         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1003         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1004         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1005         mm macro package accesses this string register directly.
1006         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1008         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1009         compatibility mode.
1011 2002-02-02  Larry Kollar  <kollar@alltel.net>
1013         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1015 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1017         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1019 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1021         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1022         * man/groff_out.man: Revised and updated.
1024 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1026         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1027         out the unused `{' and `}' commands.  Undefined by default.
1028         (IntArray): Make `data' private.
1029         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1030         new methods instead.
1031         (skip_line_D, skip_to_end_of_line): New functions.
1032         (get_D_fixed_args): Use `skip_line_D'.
1033         Changed to handle dummy odd arguments by ...
1034         (get_D_fixed_args_odd_dummy): This new function.
1035         (get_D_variable_args): Split some code into ...
1036         (get_possibly_integer_args): This new function.
1037         (send_draw): Use more `const'.
1038         (delete_current_env): New function.
1039         (position_to_end_of_args): Use `size_t'.
1040         Updated.
1041         (send_draw): Updated.
1042         (parse_D_command): Handle `c', `C', and `t' better.
1043         Updated.
1044         (do_file): Updated.
1046 2002-01-29  Werner LEMBERG  <wl@gnu.org>
1048         * NEWS: Revised.
1049         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1050         @Def...ListEnd which replaces @Def...x.  This is necessary to get
1051         proper HTML output -- see the comment in the file for more
1052         information.
1053         Updated all calls.
1055 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
1057         Fixes to make color changes of 2002-01-21 work with grohtml.
1059         * src/devices/grohtml/post-html.cc (style): Updated.
1060         (html_printer): Remove unused methods.
1061         (html_printer::do_font, html_printer::draw, html_printer::set_char,
1062         html_printer::special): Updated.
1063         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1064         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1065         Added some debugging code.
1066         (html_text::start_tag): Updated.
1067         (html_text::do_push): New method.
1068         (html_text::push_para): Call it.
1069         Add method for handling color.
1070         (html_text::do_color): Updated.
1071         (html_text::shutdown): Handle color.
1072         * src/devices/grohtml/html-text.h (tag_definition): New member
1073         `col'.
1074         Updated.
1076 2002-01-28  Werner LEMBERG  <wl@gnu.org>
1078         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1080 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1082         Add two switches -a and -g to control the antialiasing bits for
1083         text and graphics, respectively.
1085         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1086         `-g'.
1087         * src/devices/grohtml/grohtml.man: Document them.
1088         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1089         New macros.
1090         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1091         (setupAntiAlias): New function.
1092         (createAllPages): Updated.
1093         (scanArguments): Handle `-a' and `-g'.
1094         (main): Call `setupAntiAlias'.
1095         * NEWS: Updated.
1097 2002-01-27  Werner LEMBERG  <wl@gnu.org>
1099         * doc/groff.texinfo (Def*): Call index function after deffn.
1101         * tmac/html.tmac: Call `nroff' request.
1103 2002-01-26  Larry Kollar  <kollar@alltel.net>
1105         * tmac/groff_ms.man: Add some omissions.
1107 2002-01-25  Larry Kollar  <kollar@alltel.net>
1109         * tmac/groff_ms.man: Typographical improvements.
1111 2002-01-25  Werner LEMBERG  <wl@gnu.org>
1113         * doc/groff.texinfo: Updated version and copyright.
1114         * src/devices/grops/grops.man: Updated.
1116         * tmac/groff_tmac.man: Fix `ig' macro.
1118         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1119         nroff mode.
1120         Use `.ne' unconditionally everywhere.
1121         (TS): Only insert some vertical space.  Doing a page break is no
1122         longer necessary due to the redefinition of the `ne' request.
1124         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1125         warning for unknown subcommands but parse and pass them to the
1126         device driver.
1128 2002-01-24  Werner LEMBERG  <wl@gnu.org>
1130         * tmac/groff_www.man, NEWS: Fix typos.
1132 2002-01-21  Werner LEMBERG  <wl@gnu.org>
1134         Complete revision of color support:
1136           Adapt programs to the new libdriver/input.cc.
1138           Color spaces are no longer converted to RGB but transferred as-is
1139           in the troff intermediate output format.
1141           Handle default color gracefully.  troff now supports a `default'
1142           color (which can't be changed).
1144           grops will now use the proper color space functions if available.
1146           Update pic.
1148         Note that currently grohtml doesn't handle colors properly.  This
1149         has to be fixed.
1151         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1152         (ui_to_a): New function.
1153         * src/include/lib.h: Updated.
1155         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1156         (color): Simplified; removed all `double' members and methods.
1157         A new array `components' now holds the color parameters.
1158         (color::is_default, color::get_components): New methods.
1159         (color::operator==, color:operator!=): New.
1160         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1161         to make access to the `components' array more comprehensible.
1162         * src/libs/libgroff/color.cc: Implement new color support.
1163         (atoh): Small fixes.
1164         (color::read_encoding): Simplified for new troff intermediate color
1165         output format.
1166         (default_color): New global variable.
1168         * src/roff/troff/input.cc (default_symbol): New global variable.
1169         (lookup_color): Use it.
1170         (default_black): Removed.
1171         (do_glyph_color, do_fill_color): Simplified.
1172         (define_color): Handle default color.
1173         Improve warnings.
1174         (do_if_request): Handle default color.
1175         * src/roff/troff/env.cc (environment::environment): Initialize
1176         colors with `default_color'.
1177         * src/roff/troff/node.cc (troff_output_file::put): Add method
1178         for `unsigned int'.
1179         (troff_output_file::hex): Removed.
1180         (troff_output_file::fill_color, troff_output_file::glyph_color):
1181         Updated to include/color.h and libdriver/input.cc.
1183         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1184         fill color properly (identically to the outline color).  \D'f...'
1185         doesn't work any more.
1186         All function calls to it updated.
1188         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1189         Updated.
1190         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1191         Updated.
1193         * src/devices/grops/ps.cc (ps_output::put_color): New method.
1194         (ps_printer::sbuf_color): Make a real member instead of pointer.
1195         (ps_printer::fill_color, ps_printer::output_color): Removed.
1196         (ps_printer::ps_printer): Updated.
1197         (ps_printer::set_char): Ditto.
1198         (ps_printer::set_color): Use various color schemes.
1199         Use `put_color' method.
1200         (ps_printer::flush_sbuf): Don't set color.
1201         (ps_printer::fill_path): Take `environment' as parameter.
1202         Simplify color handling.
1203         (ps_printer::set_line_thickness): Renamed to ...
1204         (ps_printer::set_line_thickness_and_color): This (and updated).
1205         (ps_printer::set_color): Change second parameter from `complete'
1206         to `fill' which better describes what it does.
1207         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1208         and text in the right order.
1209         Updated.
1210         Remove branches for `f' and `F'; this is handled by
1211         libdriver/input.cc.
1212         * src/devices/grops/ps.h: Updated.
1213         * font/devps/prologue (FL): Redefined.
1214         ({F,C}r,k,g: New color functions (with and without filling).
1216         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1217         * man/groff_diff.man, man/groff.man, man/groff_out.man,
1218         doc/groff.texinfo, NEWS: Updated.
1220 2002-01-20  Bernd Warken  <bwarken@mayn.de>
1222         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
1223         in this file for what has been changed.
1225 2002-01-19  Werner LEMBERG  <wl@gnu.org>
1227         * test-groff: Fix GROFF_FONT_PATH.
1228         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1229         is read before .TH or .Dd is parsed.
1231 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
1233         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1234         quadrant boundaries.
1236 2002-01-18  Werner LEMBERG  <wl@gnu.org>
1238         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
1239         applied last patch.
1241 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
1243         * tmac/doc.common: Initialize %I register for the %I macro to
1244         avoid (harmless) warning.
1245         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1246         when in the SYNOPSIS section.
1248 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
1250         * src/preproc/pic/lex.cc (get_token): Fix typo.
1252 2002-01-17  Werner LEMBERG  <wl@gnu.org>
1254         * devices/grops/ps.cc: Fix incorrectly applied last patch.
1256 2002-01-17  Larry Kollar  <kollar@alltel.net>
1258         * tmac/groff_ms.man: Completely rewritten.
1260 2002-01-16  Werner LEMBERG  <wl@gnu.org>
1262         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1264 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1266         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1267         fill colors.
1268         (ps_printer::draw): Ditto.
1270 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
1272         * tmac/groff_mdoc.man: Minor fixes.
1274 2002-01-13  Werner LEMBERG  <wl@gnu.org>
1276         * man/groff_out.man: Some fixes.
1278 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
1280         * doc/pic.ms: Fix typos.
1282 2002-01-12  Werner LEMBERG  <wl@gnu.org>
1284         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1286 2002-01-10  Werner LEMBERG  <wl@gnu.org>
1288         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1289         symbols.
1290         * NEWS: Updated.
1292 2002-01-09  Bernd Warken  <bwarken@mayn.de>
1294         * man/groff_out.man: Revised.
1295         * man/roff.man: Minor fixes.
1296         * src/roff/troff/troff.man: Some reordering.
1298 2002-01-09  Werner LEMBERG  <wl@gnu.org>
1300         * tmac/an-old.tmac: Add dummy macros for equation support.
1302 2002-01-07  Werner LEMBERG  <wl@gnu.org>
1304         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1306         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
1307         man pages.
1308         * tmac/groff_man.man: Small improvements.
1310 2002-01-07  Bernd Warken  <bwarken@mayn.de>
1312         * man/groff_diff.man: Revised.
1314 2002-01-06  Werner LEMBERG  <wl@gnu.org>
1316         * tmac/www.tmac: Remove extraneous backslash.
1318 2002-01-06  Bernd Warken  <bwarken@mayn.de>
1320         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1322 2002-01-05  Werner LEMBERG  <wl@gnu.org>
1324         Integrated groffer, contributed by Bernd Warken.
1326         * contrib/groffer/*: New.       
1327         * Makefile.in, NEWS: Updated.
1329 2002-01-04  Werner LEMBERG  <wl@gnu.org>
1331         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1332         registers defined in macro packages.
1333         Revising the ms part.
1335 2002-01-04  Larry Kollar  <kollar@alltel.net>
1337         * doc/groff.texinfo: Add documentation for ms macros.
1339 2002-01-02  Werner LEMBERG  <wl@gnu.org>
1341         First step in adding PS support for the Euro symbol.  `eu' is the
1342         official Euro logo, `Eu' is a font-specific glyph variant.
1344         * font/devps/text.enc: Add `Euro' at position 9.
1345         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1346         * font/devps/symbolmap: Regenerated.
1348         * NEWS: Updated.
1350 2002-01-02  Bernd Warken  <bwarken@mayn.de>
1352         * man/roff.man: Revised.
1354 2002-01-01  Bernd Warken  <bwarken@mayn.de>
1356         * src/roff/groff/groff.man: Completely rewritten.
1358 2001-12-31  Werner LEMBERG  <wl@gnu.org>
1360         * doc/Makefile: Updated.
1362 2001-12-30  Werner LEMBERG  <wl@gnu.org>
1364         * tmac/www.tmac: Make all names of internal macros/registers/strings
1365         lowercase, and prepend `www-'.
1366         Other minor changes.
1367         * src/roff/troff/troff.man: Add preprocessor string at BOF.
1369 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
1371         Implement option `-b' in grohtml to set the HTML background colour.
1373         * src/devices/grohtml/post-html.cc (default_background): New global
1374         variable.
1375         (html_printer::html_printer): Initialize `background' to
1376         `default_background'.
1377         (main): Implement option `-b'.
1378         (usage): Updated.
1379         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1380         of `-b' option.
1381         * src/devices/grohtml/grohtml.man: Updated.
1382         * doc/Makefile (.ms.html): Use `-b'.
1383         * tmac/html.tmac: Don't set background color.
1385         Add new grohtml tag `.html-tl'.
1387         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1388         member variable.
1389         (title_desc::title_desc): Updated.
1390         (html_printer::troff_tag): Handle `.html-tl'.
1391         (html_printer::write_title): Use `with_h1'.
1392         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1393         (HTML-TL): New macro.
1395         Add support for unordered lists in HTML.
1397         * tmac/www.tmac (www-level): New auxiliary register.
1398         (www-level1, www-level2, www-level3): New auxiliary strings.
1399         (www-push-level, www-pop-level): New auxiliary macros
1400         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1402         Miscellaneous.
1404         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1405         (DEFAULT_VERTICAL_OFFSET): Removed.
1406         (IMAGE_BOARDER_PIXELS): Set to 0.
1407         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1408         (vertical_offset): Initialize with 0.
1409         (gsPaper): New global variable.
1410         (get_resolution): Scan for and return unsigned int.
1411         (get_papersize): New function to get paper length from devps/DESC.
1412         (determine_vertical_offset): New function.
1413         (createAllPages): Produce gray-level images and use proper page
1414         length.
1415         (createImage): Use `-quiet' option of pnmcrop.
1416         (addZ): Fix passing of `-Z'.
1417         (scanArguments): Fix handling of `-o'.
1418         (main): Call `determine_vertical_offset'.
1419         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1420         code for `l'.
1422         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1423         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1424         glyph descenders properly.
1426         * doc/homepage.ms: Include `gnubw.eps'.
1427         * doc/Makefile (gnubw.eps): New rule.
1428         (homepage.html): Depend on `gnubw.eps'.
1430 2001-12-25  Werner LEMBERG  <wl@gnu.org>
1432         * src/roff/troff/input.cc (default_black): Fix return value.
1434 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
1436         * tmac/doc-common (Dt): Change output of architecture strings.
1437         Do some syntax cleanup.
1438         * tmac/groff_mdoc.man: Updated.
1440 2001-12-23  Werner LEMBERG  <wl@gnu.org>
1442         Adding an `itc' request (input line trap accepting \c).
1444         * src/roff/troff/env.h (environment): New member
1445         `continued_input_trap'.
1446         Make `do_input_trap' a friend function instead of `input_trap'.
1447         * src/roff/troff/env.cc (environment::environment,
1448         environment::copy): Updated.
1449         (environment::newline): Implement it.
1450         (do_input_trap): New function.
1451         (input_trap): Call `do_input_trap'.
1452         (input_trap_continued): New function.
1453         (init_env_requests): Updated.
1454         * src/roff/troff/TODO: Updated.
1456         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1457         `.it'.
1459         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1461 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
1463         * tmac/doc-common, tmac/doc-syms: Small updates.
1465 2001-12-22  Colin Watson  <cjwatson@debian.org>
1467         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1469 2001-12-22  Bernd Warken  <bwarken@mayn.de>
1471         * MANIFEST: New file.
1473 2001-12-22  Werner LEMBERG  <wl@gnu.org>
1475         * src/preproc/grn/grn.man: Updated.
1477 2001-12-22  Solar Designer  <solar@openwall.com>
1479         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1480         (DBRead): Use it.
1482 2001-12-19  Werner LEMBERG  <wl@gnu.org>
1484         Implement a fallback character request `.fchar'.
1486         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1487         (is_fallback): New inline function.
1488         * src/roff/troff/input.cc (do_define_character): New function.
1489         (define_character): Call `do_define_character'.
1490         (define_fallback_character): New function.
1491         (init_input_requests): Add `fchar'.
1492         (charinfo::charinfo): Updated.
1493         (charinfo::set_macro): New argument to set `fallback' flag.
1494         * src/roff/troff/node.cc (make_glyph_node, make_node,
1495         node::add_char): Check `fallback' flag.
1496         * NEWS, man/groff_diff.man, man/groff_man: Updated.
1498 2001-12-16  Werner LEMBERG  <wl@gnu.org>
1500         * groff.texinfo: Document exact search algorithm for glyphs.
1502 2001-12-15  Werner LEMBERG  <wl@gnu.org>
1504         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1505         the left side of $(MANPAGES) rule to make it always non-empty.
1507 2001-12-14  Werner LEMBERG  <wl@gnu.org>
1509         * src/roff/troff/input.cc (default_black): Define default color
1510         `black' if not yet defined.
1512 2001-12-13  Werner LEMBERG  <wl@gnu.org>
1514         Implement new string-valued register `.fn' to return the current
1515         real (internal) font name.
1517         * env.cc (environment::get_font_name_string): New function.
1518         (init_env_requests): Add `.fn' register.
1519         * env.h (environment): Updated.
1520         * node.cc (font_info): Make `get_font_name' a friend.
1521         (get_font_name): New function.
1522         * node.h: Updated.
1524         * man/groff_diff.man, man/groff.man, NEWS: Updated.
1526 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1528         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1530 2001-12-12  Werner LEMBERG  <wl@gnu.org>
1532         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1534 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
1536         * man/groff_diff.man: Adding documentation for \O.
1538 2001-12-10  Werner LEMBERG  <wl@gnu.org>
1540         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1541         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1543 2001-12-09  Werner LEMBERG  <wl@gnu.org>
1545         * man/roff.man: Revised.
1546         * src/roff/groff/groff.man: Replace man page references with a
1547         pointer to roff.man.
1549 2001-12-09  Bernd Warken  <bwarken@mayn.de>
1551         * man/roff.man: Completely rewritten.
1553 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1555         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1557 2001-12-05  Werner LEMBERG  <wl@gnu.org>
1559         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1560         longer used.
1561         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1562         order of initializers.
1563         * NEWS: Updated.
1565 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
1567         * doc/groff.texinfo: Fix documentation of \O.
1569         * src/devices/grohtml/html-text.cc (html_text::do_indent,
1570         html_text::do_table, html_text::do_emittext, html_text::do_para):
1571         Use `const' for first argument.
1572         (html_text::do_table): Use cast.
1573         * src/devices/grohtml/html-text.h: Updated.
1574         * src/devices/grohtml/output.cc (simple_output::put_string): Add
1575         method for `const string &s'.
1576         * src/devices/grohtml/html.h: Updated.
1577         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
1578         (ANCHOR_TEMPLATE): Modified.
1579         (manufacture_headings): New global variable to handle `-h' option.
1580         (is_subsection): Removed.
1581         (char_buffer::add_string): Add `const' to first argument.
1582         Protect against invalid string argument.
1583         Add method for `const string &s'.
1584         (text_glob): Completely redesigned.
1585         (page): Use `const' for strings and remove string length variable.
1586         (page::add_html): Removed.
1587         (page::add_end_encode): New member function.
1588         (to_unicode): Moved upwards.
1589         (title_desc, header_desc): Updated.
1590         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
1591         definition.
1592         (html_printer::is_bold, html_printer::make_bold): New member
1593         functions.
1594         (html_printer::end_of_line): Updated.
1595         (generate_img_src, html_printer::do_auto_image,
1596         html_printer::do_title, html_printer::write_header,
1597         html_printer::determine_header_level, html_printer::do_heading,
1598         html_printer::do_linelength, html_printer::do_pageoffset,
1599         html_printer::do_indentation, html_printer::do_tempindent,
1600         html_printer::do_indentedparagraph, html_printer::do_break,
1601         html_printer::flush_sbuf, get_html_translation,
1602         html_printer::begin_page, html_printer::special): Rewritten to get
1603         rid of static string length limit.
1604         (html_printer::troff_tag): Added `.no-auto-rule'.
1605         (html_printer::flush_globs): Small fix.
1606         (html_printer::determine_space): Don't compute `space_width'.
1607         (html_printer::translate_to_html): Renamed to ...
1608         (html_printer::emit_html): This (with updates).
1609         (html_printer::write_header): Implement `-h' option.
1610         (html_printer::draw): Remove commented-out code.  Handle `F'
1611         command.
1612         (html_printer::add_char_to_sbuf): Removed.
1613         (html_printer::add_to_sbuf): Rewritten.
1614         (html_printer::sbuf_continuation): Fixed.
1615         (html_printer::seen_backwards_escape, reverse,
1616         html_printer::remove_last_char_from_sbuf): Removed.
1617         (char_translate_to_html, str_translate_to_html): Removed.
1618         (html_printer::overstrike): New function member.
1619         (html_printer::set_char): Use it.
1620         (html_printer::do_body): New function member.
1621         (html_printer::~html_printer): Use it.
1622         (main): Handle `-h' option.
1623         (usage): Updated.
1624         * src/devices/grohtml/grohtml.man: Document -h switch.
1626         * src/preproc/html/pre-html.cc: Include searchpath.h
1627         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
1628         (get_resolution): New function.
1629         (checkImageDir): Use `0777' permissions in mkdir()
1630         (write_start_image): Rewritten to use `\O[5...]'.
1631         (createImage, generateImages): Updated.
1632         (main): Handle `F' and `h' options.
1633         Use `get_resolution'.
1635         * src/roff/troff/input.cc (begin, end, image): Removed.
1636         (do_suppress): Take parameter.
1637         Handle modified syntax of `\O'.
1638         (token::next): Updated.
1639         (init_markup_requests): Removed.
1640         (main): Updated.
1642         * src/roff/troff/div.h: Add declaration for begin_page().
1644         * tmac/color-html.tmac: Removed.  Contents moved to...
1645         * tmac/html.tmac: Here.  Set background color.
1646         * tmac/color.tmac: Removed.  Contents moved to...
1647         * tmac/ps.tmac: Here.
1648         * tmac/www.tmac: Remove the title command when generating images
1649         for html.
1650         (NO_AUTO_RULE): New macro.
1651         (HTML_DO_IMAGE): Use revised `\O' escapes.
1652         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
1654 2001-12-02  Werner LEMBERG  <wl@gnu.org>
1656         * tmac/groff_mdoc.man: Fix typo.
1658 2001-12-01  Colin Watson  <cjwatson@debian.org>
1660         * man/roff.man: Fix typo.
1662 2001-11-29  Werner LEMBERG  <wl@gnu.org>
1664         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
1665         stdlib.h.
1667         * src/roff/troff/input.cc (read_draw_node): Emit error message if
1668         more than one argument to \D'f ...'.
1670         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
1672 2001-11-28  Werner LEMBERG  <wl@gnu.org>
1674         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
1675         loaded only once.
1677         * tmac/groff_man.man: Minor cosmetic fix.
1679 2001-11-27  Werner LEMBERG  <wl@gnu.org>
1681         * src/roff/groff/groff.man, tmac/groff_tmac.man,
1682         tmac/groff_www.man: s/mwww/www/.
1684 2001-11-26  Werner LEMBERG  <wl@gnu.org>
1686         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
1687         * configure: Regenerated.
1688         * win32-diffs: Updated.
1690         * tmac/groff_mwww.tmac: Renamed to ...
1691         * tmac/groff_www.tmac: This.
1692         * tmac/mwww.tmac: Removed.
1693         * NEWS, tmac/Makefile.sub: Updated.
1695 2001-11-21  Werner LEMBERG  <wl@gnu.org>
1697         * doc/groff.texinfo: Improve documentation of the `\v' escape.
1698         Fix explanation of `\D' and `rt'.
1700 2001-11-20  Werner LEMBERG  <wl@gnu.org>
1702         * tmac/an-old.tmac (an-header): Set header length equal to page
1703         width.
1704         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
1705         minor fixes.
1706         * NEWS: Small fix.
1708 2001-11-19  Werner LEMBERG  <wl@gnu.org>
1710         * NEWS, man/Makefile.sub: Updated.
1712 2001-11-19  Bernd Warken  <bwarken@mayn.de>
1714         * man/ditroff.man: New file.
1716 2001-11-17  Werner LEMBERG  <wl@gnu.org>
1718         * man/groff_differences.man: Renamed to ...
1719         * man/groff_diff.man: This.  Updated.
1720         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
1722         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
1723         * src/preproc/html/pushback.cc: This.  Updated.
1724         * src/preproc/html/pushbackbuffer.h: Renamed to ...
1725         * src/preproc/html/pushback.h: This.
1726         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
1727         Updated.
1729         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
1730         * src/libs/libgroff/htmlhint.cc: This.
1731         * src/libs/libgroff/Makefile.sub: Updated.
1733         * tmac/an-old.tmac (an-end): Fix page length.
1735 2001-11-16  Werner LEMBERG  <wl@gnu.org>
1737         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
1738         * man/Makefile.sub: Include groff_differences.man.
1739         * VERSION: Set to 1.18.
1740         * REVISION: Set to 0.
1742 2001-11-16  Bernd Warken  <bwarken@mayn.de>
1744         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
1745         the second dot (or ending macro name) to end a macro.
1746         * doc/groff.texinfo: Doc fix.
1748 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
1750         * tmac/doc-common (doc-header): Handle very long document titles
1751         better.
1753 2001-11-16  Werner LEMBERG  <wl@gnu.org>
1755         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
1757 2001-11-15  Werner LEMBERG  <wl@gnu.org>
1759         * src/roff/troff/troff.man: Revised and split into troff.man and...
1760         * man/groff_differences.man: New file.
1761         * NEWS: Updated.
1763 2001-11-13  Werner LEMBERG  <wl@gnu.org>
1765         * tmac/an-old.tmac (TS, TE): New macros for table support.
1767 2001-11-12  Werner LEMBERG  <wl@gnu.org>
1769         * src/include/lib.h: Provide a fix for emx to not include
1770         groff-getopt.h.
1772 2001-10-27  Werner LEMBERG  <wl@gnu.org>
1774         * src/roff/troff/input.cc (substring_macro): Fix computation of
1775         boundary values.
1777 2001-10-20  Werner LEMBERG  <wl@gnu.org>
1779         Undo change from 2001-08-28.
1781         * src/roff/troff/input.cc (have_input): New global variable.
1782         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
1783         in compatibility mode.
1784         (process_input_stack): Use it.
1786 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
1788         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
1789         being handled as end-of-sentence characters,
1791 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1793         * src/roff/troff/input.cc (file_iterator): New members
1794         `suppress_newline_flag' and `seen_escape'.
1795         (file_iterator::next_file): Updated.
1796         (file_iterator::fill): Use it.
1797         (string_iterator): New member `suppress_newline_flag'.
1798         (string_iterator::fill): Set it.
1799         (get_color_element): Use MAX_COLOR_VAL.
1800         * src/roff/troff/env.cc (environment): Remove `need_eol'.
1801         (no_fill): Don't set `env->ignore_next_eol'.
1802         (environment::newline): Handle `eol' tag properly.
1803         Emit `eol.ce'.
1804         (environment::add_html_tag): Set `env->ignore_next_eol'.
1805         Don't handle `.ce'.
1806         * src/roff/troff/env.h (environment): Updated.
1808         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
1809         member function.
1810         (html_printer::outstanding_eol): New member function.
1811         (html_printer::do_title): Use new functions.
1812         (html_printer::troff_tag): Test `id_eol_ce'.
1814 2001-10-10  Werner LEMBERG  <wl@gnu.org>
1816         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
1817         files work with -C also.
1819 2001-10-05  Werner LEMBERG  <wl@gnu.org>
1821         * doc/pic.ms: Minor fix.
1822         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
1823         as a valid command line switch.
1824         * src/devices/grohtml/post-html.cc (main): Ditto.
1825         (usage): Updated.
1826         * src/devices/grohtml/grohtml.man: Updated.
1827         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
1829 2001-10-04  Werner LEMBERG  <wl@gnu.org>
1831         Implementing color support in troff, pic, grops, and grohtml.  These
1832         changes are based on a major patch provided by Gaius Mulley
1833         <gaius@glam.ac.uk>.
1835         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
1836         definitions with both hex values and fractions.
1838         New escapes: \m and \M for drawing and background color,
1839         respectively.  This corresponds to the troff output commands `m'
1840         and `DF'.
1842         groff and troff accept command line switch `-c' to disable color
1843         output (which is automatically disabled in compatibility mode).
1845         New scaling indicator `f' for fractions (1f = 65536u).
1847         New conditional operator `m' to test for defined colors with `if'
1848         and `ie'.
1850         New keywords `color' (or `colour', `colored', `coloured'), `outline'
1851         (or `outlined'), and `shaded' added to pic.
1853         * src/include/color.h: New file.
1854         * src/include/driver.h: Include it.
1855         * src/include/printer.h: Include color.h.
1856         (environment): New members `col' and `fill'.
1857         (printer): Remove `adjust_arc_center' member function.
1858         * src/include/Makefile.sub: Updated.
1860         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
1861         `env.fill'.
1862         Handle `m' and `DF' troff commands.
1863         * src/libs/libgroff/color.cc: New file.
1864         * src/libs/libgroff/Makefile.sub: Updated.
1866         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
1867         (stop): Removed.
1868         (createImage): Fix computation of `y2'.
1869         Use `pnmcrop' also.
1870         (buffer::write_file_html): Remove calls to `stop'.
1872         * src/preproc/pic/common.h (common_output): New abstract function
1873         members `set_color', `reset_color', `get_last_filled', and
1874         `get_outline_color'.
1875         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
1876         (object_spec): Add members `shaded' and `outlined'.
1877         * src/preproc/pic/output.h (output): `command' is now abstract.
1878         New function members `set_color', `reset_color', `get_last_filled',
1879         and `get_outline_color'.
1880         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
1881         `outline[d]', and `shaded'.
1882         * src/preproc/pic/object.cc (output::command): Removed.
1883         (output::set_location): Moved to output.h.
1884         (graphic_object): Add protected members `outline_color' and
1885         `color_fill'.
1886         Add member functions `set_outline_color', `get_outline_color', and
1887         `set_fill_color'.
1888         (closed_object): Add member function `set_fill_color'.
1889         Add member `color_fill'.
1890         (graphic_object::print_text): Use `out->set_color' and
1891         `out->reset_color'.
1892         (box_object::print, ellipse_object::print, circle_object::print,
1893         line_object::print, spline_object::print, arc_object::print): Ditto.
1894         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
1895         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
1896         `SHADED', making them `%left'.
1897         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
1898         * src/preproc/pic/tex.cc (tex_output): New dummy function members
1899         `set_color', `reset_color', `get_last_filled', and
1900         `get_outline_color'.
1901         * src/preproc/pic/troff.cc (simple_output): New abstract function
1902         members `set_color', `reset_color', and `get_last_filled'.
1903         (simple_output::polygon, simple_output::circle,
1904         simple_output::ellipse): Use `get_last_filled'.
1905         (troff_output): New members `last_filled' and `last_outlined'.
1906         New function members `set_color', `reset_color', `get_last_filled',
1907         and `get_outline_color'.
1908         (troff_output::finish_picture): Use `reset_color'.
1909         (troff_output::set_fill): Test `last_filled'.
1910         * src/preproc/pic/pic.man: Updated.
1912         * src/roff/groff/groff.cc (main): Implement `-c' option.
1913         (synopsis, help): Updated.
1914         src/roff/groff/groff.man: Updated.
1916         * src/roff/troff/troff.h: Include color.h.
1917         (warning_type): Add WARN_COLOR.
1918         * src/roff/troff/env.h (environment): New members
1919         `{cur,prev}_{glyph,fill}_color'.
1920         New member functions `get_{prev_,}{glyph,fill}_color'.
1921         * src/roff/troff/env.cc: Initialize and implement them.
1922         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
1923         Replace `NULL' with `0' everywhere for consistency.
1924         (lookup_color, default_black, do_glyph_color, do_fill_color,
1925         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
1926         define_color): New functions.
1927         (token::next): Implement \M and \m escapes.
1928         (do_if_request): Implement `m' operator.
1929         (usage): Updated.
1930         (main): Implement `-c' option.
1931         (init_markup_requests): Add `defcolor' request.
1932         (warning_table): Add `color' warning.
1933         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
1934         classes.
1935         * src/roff/troff/node.cc (troff_output_file): New members
1936         `current_{page,glyph}color'.  New member functions `put_hex',
1937         `glyph_color', and `fill_color'.
1938         (glyph_color_node::*, fill_color_node::*): Implement it.
1939         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
1940         (parse_term): Add support for `f'.
1941         * src/roff/troff/troff.man: Updated.
1943         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
1944         entry for `F'.
1945         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
1946         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
1948         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
1949         (tag_definition): Use `void *' for arg1.
1950         (html_text): New member functions `do_color' and `done_color'.
1951         Use `void *' for second parameter of `push_para' member function.
1952         New `push_para' member function with a single parameter.
1953         Use `char *' for parameter of `issue_table_begin' member funtion.
1954         New `issue_color_begin' member function.
1955         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
1956         COLOR_TAG.
1957         (html_text::issue_color_begin): New function.
1958         (html_text::issue_table_begin): Use `char *' for parameter.
1959         (html_text::start_tag, html_text::shutdown,
1960         html_text::check_emit_text): Updated.
1961         (html_text::push_para): Use `void *' for second parameter.
1962         Add same function with only one parameter.
1963         (html_text::do_*): Updated.
1964         (html_text::do_color, html_text::done_color): New functions.
1965         * src/devices/grohtml/post-html.cc (style): New member `col'.
1966         Mew member `style' with 6 parameters.
1967         (style::style, style::operator==): Updated.
1968         (html_printer::do_font): Use it.
1969         (html_printer::draw): Add dummy entry for `F'.
1970         (html_printer::set_char): Updated.
1971         * src/devices/grohtml/grohtml.man: Updated.
1973         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
1974         trailing zeroes removed.
1975         (ps_printer): New members `sbuf_color', `fill_color', and
1976         `output_color'.
1977         Removed member `fill'.
1978         New member function `set_color'.
1979         (ps_printer::ps_printer, ps_printer::set_char): Updated.
1980         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
1981         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
1983         * tmac/color-html.tmac, tmac/color.tmac: New files.
1984         * tmac/troffrc: Include them.
1985         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
1986         * tmac/Makefile.sub: Updated.
1988         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
1989         man/groff.man: Updated.
1990         * font/devps/prologue.ps: Define FC and CO functions.
1992 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1994         Fix incorrect cropping of images and incorrect handling of special
1995         characters.  Fix handling of file names in \O.
1997         * src/include/geometry.h: New file.
1998         * src/libs/libgroff/geometry.cc: New file.
1999         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2000         to `geometry.cc'.
2001         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2002         initial spaces.
2003         (do_suppress): Updated.
2004         * src/roff/troff/node.cc: Include geometry.h.
2005         (troff_output_file::flush_tbuf): Fixed parameters to
2006         `check_output_limits'.
2007         (troff_output_file::check_charinfo): Ditto.
2008         (troff_output_file::determine_line_limits): Add support for `Da'
2009         and `Dl' commands.
2011         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2012         Add new parameter `is_special' to decode special characters from
2013         escape sequences.
2014         (html_printer::do_title, html_printer::do_heading,
2015         html_printer::do_indentedparagraph,
2016         html_printer::translate_to_html, html_printer::special): Updated.
2018 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2020         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2021         Fix entry for config.h.
2022         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2023         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2024         * src/preproc/eqn/eqn.man: Document -d command line option.
2026 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2028         * man/groff.man: Use
2030           .ev xxx
2031           .na
2032           .nh
2033           <table>
2034           .ev
2036         instead of the old code (`.ad .hy' after the table) to suppress
2037         incorrect hyphenation for grohtml output.
2039 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2041         * man/groff_font.man, man/groff_out.man: Minor fixes.
2043 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2045         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
2046         Arnold Robbins <arnold@skeeve.com>).
2048 2001-09-09  Werner LEMBERG  <wl@gnu.org>
2050         * configure: Regenerated with autoconf 2.52.
2052         * doc/groff.texinfo: Complete revision of indices.
2054 2001-09-07  Werner LEMBERG  <wl@gnu.org>
2056         * doc/Makefile (clean): Updated to delete all indices.
2058 2001-09-05  Werner LEMBERG  <wl@gnu.org>
2060         * src/roff/troff/troff.man: Remove superfluous line.
2062         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2063         given on the command line (or rather, if only the default warnings
2064         are set).
2066 2001-09-03  Werner LEMBERG  <wl@gnu.org>
2068         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2069         use .ne for TTY devices.
2071 2001-08-31  Werner LEMBERG  <wl@gnu.org>
2073         * src/roff/troff/token.h, src/roff/troff/input.cc:
2074         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2076 2001-08-28  Werner LEMBERG  <wl@gnu.org>
2078         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2079         * src/roff/troff/input.cc (token::next): Return
2080         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2081         compatibility mode.
2082         (token::description): Updated.
2083         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2084         (token::add_to_node_list, token::process): Ignore
2085         TOKEN_TRANSPARENT_ESCAPE.
2087 2001-08-27  Werner LEMBERG  <wl@gnu.org>
2089         * tmac/an-old.tmac: Fix `S' string.
2091 2001-08-26  Werner LEMBERG  <wl@gnu.org>
2093         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2095 2001-08-25  Werner LEMBERG  <wl@gnu.org>
2097         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2098         backslashes).
2099         Many other minor fixes.
2101         * configure.ac: Add message at end to inform how to compile
2102         xditview.
2103         * configure: Regenerated.
2105 2001-08-24  Werner LEMBERG  <wl@gnu.org>
2107         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2108         Updated to latest version of libc.
2110 2001-08-23  Werner LEMBERG  <wl@gnu.org>
2112         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2113         Autoconf 2.50 and newer can handle this.
2114         * configure: Regenerated.
2116 2001-08-21  Werner LEMBERG  <wl@gnu.org>
2118         * doc/pic.ms: Fix typo.
2119         * src/preproc/tbl/tbl.man: Document case of global options.
2121 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2123         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2124         handling of `CR' font.
2126 2001-08-20  Werner LEMBERG  <wl@gnu.org>
2128         Use a config.h file.
2130         * src/include/lib.h: Include config.h.
2131         * All C files: Ditto (if necessary).
2132         * All C++ source and header files: Include lib.h first (if
2133         necessary).
2135         * src/include/config.hin: New file (autogenerated by autoheader).
2136         * stamp-h.in: New file.
2137         * configure.ac: Updated.
2138         * aclocal.m4: Add third parameters to AC_DEFINE macros.
2139         (GROFF_ARRAY_DELETE): Simplified.
2140         * Makefile.sub (DISTCLEANFILES): Updated.
2141         Added targets for remaking config.status, config.hin, config.h,
2142         stamp-h.in, and stamp-h.
2143         * configure: Regenerated.
2145 2001-08-19  Werner LEMBERG  <wl@gnu.org>
2147         * NEWS: Updated.
2149 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
2151         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2152         (do_sprintf): Use snprintf().
2154 2001-08-18  Werner LEMBERG  <wl@gnu.org>
2156         * src/libs/snprintf/*: Added an snprintf module written by Mark
2157         Martinec.
2158         * src/libs/libgroff/Makefile.sub: Updated.
2159         * configure.ac: Add test for snprintf().
2160         * Makefile.in: Updated.
2161         * configure: Regenerated.
2163         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2164         uses snprintf().
2166 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
2168         * tmac/doc.tmac (Ex): New implementation.
2169         * tmac/doc-common, tmac/groff_tmac.man: Updated.
2171 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
2173         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2174         argument.
2175         * tmac/groff_tmac.man: Updated.
2177 2001-08-13  Werner LEMBERG  <wl@gnu.org>
2179         * src/preproc/tbl/tbl.man: Minor documentation update.
2181 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2183         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2184         * configure.ac: Add declaration test for gettimeofday().
2185         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2186         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2187         * configure: Regenerated.
2189 2001-08-11  Werner LEMBERG  <wl@gnu.org>
2191         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2192         * configure.ac: Add declaration test for strcasecmp().
2193         * Makefile.in: Updated.
2194         * configure: Regenerated.
2195         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2196         this is necessary because groff's mkstemp.cc is C++.
2197         Add declaration conditionally for strcasecmp().
2199 2001-08-10  Werner LEMBERG  <wl@gnu.org>
2201         Integrated pic2graph, contributed by Eric S. Raymond.
2203         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2204         files.
2205         * Makefile.in, NEWS: Updated.
2207         * src/preproc/tbl/tbl.man: Revised.
2209 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
2211         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2213 2001-08-09  Werner LEMBERG  <wl@gnu.org>
2215         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2216         requests.
2218 2001-08-08  Paul Eggert  <eggert@twinsun.com>
2220         * Makefile.sub (configure): Depend on configure.ac, not
2221         configure.in.
2222         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2224 2001-08-07  Werner LEMBERG  <wl@gnu.org>
2226         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2227         fixes.
2229 2001-08-06  Werner LEMBERG  <wl@gnu.org>
2231         * src/roff/troff/troff.man: Improve documentation of -E option.
2233 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2235         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2236         Simplified.
2238 2001-07-27  Werner LEMBERG  <wl@gnu.org>
2240         * src/preproc/refer/refer.cc: Undo last change.
2241         * src/devices/grohtml/post-html.cc: Ditto.
2243 2001-07-26  Werner LEMBERG  <wl@gnu.org>
2245         * src/preproc/refer/refer.cc: Include `lib.h'.
2246         * src/devices/grohtml/post-html.cc: Ditto.
2248 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
2250         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2251         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2252         * Makefile.in: Comment updated.
2253         * configure: Regenerated.
2255 2001-07-25  Werner LEMBERG  <wl@gnu.org>
2257         * src/preproc/pic/pic.cc: Removed.
2258         * src/preproc/pic/pic_tab.h: Removed.
2259         * src/preproc/refer/label.cc: Removed.
2261         * doc/Makefile (.ms.html): Don't use a file name extension in
2262         argument to grohtml's -I option.
2263         * Makefile.in (dist): Remove CVS directories.
2264         Call `distfiles' target.
2266         * src/devices/grohtml/grohtml.man: Add information about valid
2267         versions of pnmtopng.
2268         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2269         name instead of number.
2271 2001-07-24  Werner LEMBERG  <wl@gnu.org>
2273         * doc/groff.texinfo: Minor fixes.
2275 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
2277         * doc/Makefile (.ms.html): Put image files into a subdirectory.
2278         (clean): Updated.
2280 2001-07-20  Werner LEMBERG  <wl@gnu.org>
2282         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2283         * src/libs/libgroff/mkstemp.cc: New file.
2284         * src/libs/libgroff/mksdir.cc: New file.
2285         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2286         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2287         * src/libs/libgroff/Makefile.sub: Updated.
2288         * src/include/lib.h: Add mksdir() prototype.
2289         * src/include/posix.h: Define S_IXUSR if not yet defined.
2291         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2292         (createAllPages): Use mksdir() instead of current code.
2293         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2294         (main): [!HAVE_MKSTEMP]: Removed.
2296         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2297         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2298         macros.
2299         * configure.ac: Add tests for stdint.h, sys/time.h, and
2300         gettimeofday().
2301         Call new GROFF_xxx macros.
2302         * configure: Regenerated.
2303         * Makefile.in: Comments updated.
2305 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
2307         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2308         instead of current code.
2309         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2310         * src/roff/groff/groff.cc (possible_command::insert_args): New
2311         function.
2312         (main): Use it for predriver handling instead of insert_arg().
2314 2001-07-19  Werner LEMBERG  <wl@gnu.org>
2316         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2317         groff also.
2319         * src/include/posix.h: Define S_IWUSR if not yet defined.
2321 2001-07-18  Werner LEMBERG  <wl@gnu.org>
2323         * NEWS: Updated.
2325 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
2327         * tmac/groff_mdoc.man: Document new -width and -column syntax.
2328         Some other minor fixes.
2329         * tmac/an-old.tmac: Add `AT' and `UC' macros.
2331 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
2333         Replace call to `troff' with `groff -Z' to make it aware of
2334         GROFF_BIN_PATH.
2336         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2337         (troff_command, command_prefix): Removed.
2338         (alterDeviceTo): Use groff.
2339         (addZ): New function.
2340         (char_buffer::do_html): Use it.
2341         (scanArguments): Use TROFF_COMMAND.
2342         (findPrefix): Removed.
2343         (main): Updated.
2344         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2346 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
2348         * doc/pic.ms: Documentation fixes.
2350 2001-07-17  Werner LEMBERG  <wl@gnu.org>
2352         Replace atexit() with global destructor.
2354         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2355         (xtmpfile_list_init): New global structure to deallocate
2356         xtmpfile_list on exit.  Its destructor inherits most code from
2357         remove_tmp_files().
2358         (remove_tmp_files): Deleted.
2359         (add_tmp_file): Simplified.
2361 2001-07-16  Werner LEMBERG  <wl@gnu.org>
2363         Replace strdup() with strsave().
2365         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2366         (set_papersize): Use strsave() and a_delete.
2367         (main): Use strsave().
2368         * src/preproc/html/pre-html.cc (make_message, createAllPages,
2369         removeAllPages): Use strsave() and a_delete.
2371         * configure.ac: Remove test for strdup.
2372         * Makefile.in: Comment updated.
2373         * configure: Regenerated.
2375 2001-07-15  Werner LEMBERG  <wl@gnu.org>
2377         * win32-diffs: Updated.
2379 2001-07-14  Werner LEMBERG  <wl@gnu.org>
2381         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2382         removing the old one.
2383         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2385 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2387         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2389 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
2391         Merge -xwidth into -width.  Add -xwidth functionality to -column
2392         also.
2394         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2395         avoid warning.
2396         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
2397         string immediately following a leading dot starts with a valid mdoc
2398         argument.
2399         Add similar code to the -column branch.
2400         (doc-Bl-usage): Updated.
2401         * groff_mdoc.man: s/-xwidth/-width/.
2403 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
2405         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2406         running into centered or non-formatted text.
2408 2001-07-11  Werner LEMBERG  <wl@gnu.org>
2410         Introduce short and long prefixes to have the selection at run-time
2411         whether there is a 8+3 limit for names of temporary files.
2413         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2414         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2415         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2416         variables.
2417         (temp_init): New global structure to initialize above three
2418         variables.
2419         (xtmptemplate): Use two parameters for long and short prefix.
2420         Simplify code use above three variables.
2421         (xtmpfile): Use long and short prefixes as parameters.
2422         * src/include/lib.h: Updated.
2424         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2425         with ...
2426         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2427         (createAllPages, makeTempFiles): Updated.
2429 2001-07-09  Werner LEMBERG  <wl@gnu.org>
2431         * REVISION: Increased to 3.
2433 Version 1.17.2 released
2434 =======================
2436 2001-07-07  Werner LEMBERG  <wl@gnu.org>
2438         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2439         to size_t.
2441 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2443         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2444         Fix synopsis.
2445         * tmac/groff_mdoc.man: Fix synopsis.
2447 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2449         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2450         Restore `doc-Pa-font'.
2452 2001-07-04  Werner LEMBERG  <wl@gnu.org>
2454         * src/utils/indxbib/dirnamemax.c: Moved to ...
2455         * src/libs/libgroff/maxfilename.cc: Here.
2456         s/dir_name_max/file_name_max/.
2457         Add copyright.
2458         * src/include/lib.h: Add file_name_max.
2459         * src/utils/indxbib/indxbib.cc: Updated.
2460         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2461         Updated.
2463         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2464         as empty.
2465         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2467         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2468         REGION_TEMPLATE): New macros.
2469         (createAllPages, makeTempFiles): Use them.
2470         Include `nonposix.h'.
2471         (html_system): New function.
2472         (createAllPages, createImage): Use it.
2473         Use EXE_EXT.
2475         * tmac/www.tmac: Fix typos.
2477 2001-07-03  Werner LEMBERG  <wl@gnu.org>
2479         * tmac/www.tmac: Disable hyphenation in normal text only if output
2480         device is html.
2481         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2482         * tmac/groff_mwww.man, NEWS: Updated.
2484 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
2486         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2487         image location.
2489 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
2491         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2492         doc-display-ps-stack): Implement font and font size stack for
2493         displays.
2495 2001-07-02  Werner LEMBERG  <wl@gnu.org>
2497         * REVISION: Increased to 2.
2498         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2500         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2501         beginning of a line.
2502         * src/groff/grog/grog.sh: Ditto.
2504 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
2506         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2507         make it portable.
2509 2001-06-27  Werner LEMBERG  <wl@gnu.org>
2511         Fix problems with preprocessor string for `man' program.
2513         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
2514         Updated/added copyright.
2515         Moved Emacs's local variable to identify nroff mode to the end of
2516         the file; add local variable if missing.
2518 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
2520         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2521         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2522         * configure: Regenerated.
2524 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
2526         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2527         * configure: Regenerated.
2529 2001-06-24  Werner LEMBERG  <wl@gnu.org>
2531         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2532         but www.tmac.
2533         * doc/pic.ms: Fix typos.
2535 Version 1.17.1 released
2536 =======================
2538 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
2540         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2541         * configure: Updated.
2543 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
2545         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2546         image names.
2547         * src/roff/troff/dic.cc (blank_line): Add html tag.
2549 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
2551         * src/roff/troff/input.cc (do_suppress): Fix typo.
2553 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
2555         Added two new options (-D and -I) to specify image names and a
2556         subdirectory to place the images in.
2558         Change syntax from \\Ox to \\O[x].
2560         * src/devices/grohtml/post-html.cc (main): Add options.
2561         (usage): Updated.
2562         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2563         Use `NULL' instead of `0' for null string pointers.
2564         (MAX_RETRIES): New macro.
2565         (lengthOfintToStr, intToStr, make_message): New functions.
2566         (makeFileName): Make function static.
2567         Implement -D and -I options.
2568         (checkImageDir): New function.
2569         (write_end_image, write_start_image): Use new syntax of \O.
2570         (createAllPages, removeAllPages): Implement -D and -I options.  Use
2571         make_message().
2572         (createImage): Use make_message().
2573         (addps4html): Add guard for malloc().
2574         (usage, scanArguments): Updated.
2575         (makeTempFiles): Use mkstemp().
2576         (removeTempFiles): Use unlink().
2577         (findPrefix): Add guard for malloc().
2578         (main): Updated.
2579         * src/roff/troff/input.cc (get_delim_file_name): New function to
2580         parse \O.
2581         (do_suppress): Updated to parse new syntax.
2582         * src/devices/grohtml/grohtml.man: Updated.
2583         * tmac/www.tmac: Updated to new syntax.
2585         * NEWS: Updated.
2587 2001-06-15  Werner LEMBERG  <wl@gnu.org>
2589         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
2591         * src/devices/grohtml/grohtml.man: Minor improvements.
2593 2001-06-14  Werner LEMBERG  <wl@gnu.org>
2595         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
2597 2001-06-11  Werner LEMBERG  <wl@gnu.org>
2599         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
2600         line to specify preprocessor options -- mandb 2.3.1 only recognizes
2601         the former.
2602         * src/preproc/grn/grn.man: Add proper '\" string.
2604 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
2606         * test-groff: Don't use PATH but GROFF_BIN_PATH.
2608 2001-06-08  Werner LEMBERG  <wl@gnu.org>
2610         Updated to autoconf 2.50.
2612         * configure.in: Renamed to...
2613         * configure.ac: This.
2614         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
2615         (GROFF_OS390): Updated.
2616         * configure: Regenerated.
2618 2001-05-18  Werner LEMBERG  <wl@gnu.org>
2620         * src/roff/troff/env.c, src/roff/troff/env.h,
2621         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
2622         from 2000-12-21.
2624 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
2626         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
2628 2001-05-16  Werner LEMBERG  <wl@gnu.org>
2630         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
2631         less than or equal zero; set it to 1 then.
2632         * src/roff/troff/node.h (node::node): Initialize `last'.
2634 2001-05-08  Werner LEMBERG  <wl@gnu.org>
2636         * tmac/an-old.tmac: Make predefined strings work in compatibility
2637         mode.
2638         Add troff version guard.
2639         * tmac/doc.tmac: Simplify version guard.
2641 2001-05-07  Werner LEMBERG  <wl@gnu.org>
2643         The .ns and .rs requests are now honoured not only in the top-level
2644         but in all diversions (similar to UNIX troff).
2646         This change is based on a patch from Tadziu Hoffmann
2647         <hoffmann@usm.uni-muenchen.de>.
2649         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
2650         (top_level_diversion): Remove `no_space_mode' member.
2651         * src/roff/troff/div.cc (diversion::diversion,
2652         top_level_diversion::top_level_diversion): Updated.
2653         (macro_diversion::output): Reset `no_space_mode'.
2654         (no_space, restore_spacing): Use `curdiv' unconditionally.
2655         (space_request, blank_line): Check `curdiv->no_space_mode'.
2656         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
2657         `curdiv' unconditionally.
2658         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2659         Updated.
2661 2001-05-06  Werner LEMBERG  <wl@gnu.org>
2663         Added two new requests `de1' and `am1' which are similar to `de' and
2664         `am' with the difference that compatibility mode is saved on entry,
2665         switched off during macro execution, and restored on exit.
2667         * src/roff/troff/input.h: Added two new special characters
2668         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
2669         * src/roff/troff/input.cc (input_iterator): Added two member
2670         functions `save_compatible_flag' and `get_compatible_flag'.
2671         (input_stack): Ditto.
2672         (string_iterator): Ditto.  Also add private member
2673         `saved_compatible_flag'.
2674         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2675         (calling_mode): New enumeration.
2676         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
2677         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
2678         (define_macro, define_indirect_macro, append_macro, ignore): Use
2679         `calling_mode'.
2680         (define_nocomp_macro, append_nocomp_macro): New functions.
2681         (init_input_requests): Updated.
2682         (do_request): Rename local variable `saved_compatible_flag' to
2683         `old_compatible_flag'.
2684         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2686         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
2687         public and trap-invoked macros.  As a consequence, the man macros
2688         work in compatibility mode also.
2690 2001-05-06  Solar Designer  <solar@openwall.com>
2692         * Makefile.in: Use $(mandir).
2694 2001-05-06  Alexios Zavras  <zvr@pobox.com>
2696         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
2698 2001-05-05  Werner LEMBERG  <wl@gnu.org>
2700         Added `.ns' number register: Returns 1 in no-space mode (if in
2701         top-level diversion), 0 otherwise.
2703         * src/roff/troff/div.cc (no_space_mode_reg): New class.
2704         (init_div_requests): Updated.
2705         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2706         Document it.
2708 2001-05-04  Werner LEMBERG  <wl@gnu.org>
2710         * src/roff/nroff/nroff.man: Improved documentation (especially
2711         locales).
2713 2001-05-02  Werner LEMBERG  <wl@gnu.org>
2715         Added `brp' request: This is \p as a request.
2717         * src/roff/troff/env.cc (environment::do_break): Add parameter
2718         `spread'.
2719         (do_break_request): New function (was `break_request').
2720         (break_request): Calls `do_break_request'.
2721         (break_spread_request): New; calls `do_break_request'.
2722         (init_env_requests): Updated.
2723         * src/roff/troff/env.h: Updated.
2724         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2726         * REVISION: Increased to 1.
2727         * win32-diffs: Updated.
2729 2001-05-01  Werner LEMBERG  <wl@gnu.org>
2731         * tmac/an-old.tmac: Fix minor compatibility mode issue.
2732         * tmac/troffrc-end: Make it really work in compatibility mode.
2734 2001-04-27  Werner LEMBERG  <wl@gnu.org>
2736         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
2737         stdlib.h.
2739 2001-04-22  Werner LEMBERG  <wl@gnu.org>
2741         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
2742         latest versions from glibc CVS archive.
2744         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
2745         <c.zeelenberg@hccnet.nl>.
2747 2001-04-21  Werner LEMBERG  <wl@gnu.org>
2749         * configure.in: Move check for mkstemp() to...
2750         * aclocal.m4 (GROFF_MKSTEMP): This new function.
2751         * configure: Regenerated.
2753         * src/include/groff-getopt.h: Don't use variable names in
2754         declarations.
2756         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
2757         * src/devices/grohtml/Makefile.sub,
2758         src/devices/grohtml/post-html.cc: Updated.
2760 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
2762         * configure.in: Add special check for mkstemp().
2763         * src/libs/libgroff/tmpfile.cc: Use it.
2764         * src/utils/indxbib/indxbib.cc: Ditto.
2765         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
2766         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
2767         `const'.
2769 2001-04-20  Bruce Lilly  <blilly@erols.com>
2771         `Version_string' as C++ object was not visible to linker from C
2772         object files.
2773         Add `const' to `Version_string'.
2775         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
2776         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
2777         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
2778         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
2779         (scanArguments), src/preproc/refer/refer.cc (main),
2780         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
2781         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2782         (main), src/devices/grohtml/post-html.cc (main),
2783         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
2784         (main), src/utils/hpftodit/hpftodit.cc (main),
2785         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
2786         (main), src/utils/lkbib/lkbib.cc (main),
2787         src/utils/addftinfo/addftinfo.cc (main): Implement it.
2789         * src/roff/groff/pipeline.c: Add _UWIN.
2790         * src/include/nonposix.h: Ditto.
2792 2001-04-20  Werner LEMBERG  <wl@gnu.org>
2794         * src/include/lib.h: Use HAVE_STRERROR.
2795         * src/roff/groff/pipeline.c: Ditto.
2796         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
2797         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
2798         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
2799         * win32-diffs: Updated.
2800         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
2802 2001-04-19  Werner LEMBERG  <wl@gnu.org>
2804         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
2805         instead of hardwired `"troff"'.
2806         (char_buffer::read_file): Remove unused variables.
2807         (char_buffer::write_file_troff): Ditto.
2808         (char_buffer::write_file_html): Ditto.
2809         (generateImages): Ditto.
2810         (abs): Removed.
2811         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
2813         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
2815         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
2816         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
2817         index_search_item::search1): Ditto.
2818         * src/roff/troff/node.h (width_list): Reorder members.
2819         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
2820         (lookup_warning): Ditto.
2821         (prepend_string): Commented out.
2822         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
2823         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
2824         * src/preproc/tbl/main.cc (process_format): Ditto.
2825         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
2826         compiler warnings.
2827         * src/preproc/pic/pic.cc: Updated.
2828         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
2829         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
2830         * src/preproc/refer/command.cc (execute_command): Ditto.
2831         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
2832         * src/preproc/refer/token.cc (lookup_token): Ditto.
2833         * src/preproc/soelim/soelim.cc: Ditto.
2834         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
2835         (isHexDigit): Commented out.
2836         (pushBackBuffer::isString): Remove unused variable.
2837         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
2838         warning.
2839         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
2840         resource_manager::read_resource_arg, read_one_of, parse_extensions):
2841         Ditto.
2842         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
2843         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
2844         lookup_paper_size): Ditto.
2845         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
2846         (text_glob, element_list): Reorder members.
2847         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
2848         compiler warning.
2849         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
2850         return value to `void'.
2851         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
2852         of initializers.
2853         * src/devices/grohtml/html.h (simple_output::check_newline,
2854         simple_output::space_or_newline, simple_output::enable_newlines):
2855         Add return value.
2856         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
2857         compiler warnings.
2858         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
2859         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
2860         output_ligatures, output_charset, read_map): Ditto.
2861         * src/utils/lookbib/lookbib.cc (main): Ditto.
2862         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
2863         (do_file): Fix typo (`=' -> `==').
2864         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
2865         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
2867 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
2869         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
2870         Fix usage of GROFF_BIN_PATH.
2871         * src/roff/nroff/nroff.man: Updated.
2873 2001-04-18  Werner LEMBERG  <wl@gnu.org>
2875         * NEWS: Fixing typos.
2876         Updated.
2878 Version 1.17 released
2879 =====================
2881 2001-04-17  Werner LEMBERG  <wl@gnu.org>
2883         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
2884         directory, not in $(srcdir).
2886 2001-04-16  Werner LEMBERG  <wl@gnu.org>
2888         * doc/groff.texinfo: More info on conditionals.
2890 2001-04-15  Werner LEMBERG  <wl@gnu.org>
2892         * doc/groff.texinfo: Added some info about groff internals.
2894         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
2895         about missing special character only if the name is non-null.
2897 2001-04-14  Werner LEMBERG  <wl@gnu.org>
2899         Removing the grohtml-old device driver which is now obsolete.
2901         * src/devices/grohtml-old/*: Removed.
2902         * font/devhtml-old/*: Removed.
2903         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
2904         Remove comments.
2905         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
2906         * test-groff (PATH): Updated.
2907         * tmac/Makefile.sub (NORMALFILES): Updated.
2908         * tmac/an-old.tmac: Remove special code for html-old device.
2909         Replace `html-or-html-old' register with `an-html'.
2910         * tmac/eqnrc: Updated.
2911         * tmac/html-old.tmac: Removed.
2912         * tmac/troffrc, tmac/troffrc-end: Updated.
2913         * tmac/www.tmac: Remove special code for html-old device.
2914         Replace `html-or-html-old' register with `www-html'.
2916         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
2917         src/libs/libgroff/htmlindicate.cc (graphic_end),
2918         include/htmlindicate.h, src/preproc/grn/*.cc,
2919         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
2920         single argument for consistency with rest of source code.
2922         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
2924 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
2926         * src/roff/troff/troff.man: Fixing typos.
2928 2001-04-13  Werner LEMBERG  <wl@gnu.org>
2930         * doc/pic.ms: Fixing many font switches.
2931         * doc/groff.texinfo: Fixes, additions.
2932         * MORE.STUFF: Updated.
2934 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
2936         * src/devices/grohtml/grohtml.man: Updated manual page regarding
2937         simple anchor.
2938         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
2939         cropping of images.
2940         (removeTempFiles): New function to tidy up temporary files.
2941         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
2942         Many fixes to do with the new inline suppress node and image regions
2943         are much tighter.
2944         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
2945         (generate_img_src): New function.
2946         (html_printer::do_auto_image): Utilizes it.
2947         (do_heading, do_title): Include inline images within their contents.
2948         (html_printer::begin_page): Tidied up comments that are issued to
2949         the html output file.
2950         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
2951         than courier.
2952         (text_glob::is_br): New method used by do_heading.
2953         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
2954         equivalent diversion.
2955         * src/include/html-strings.h: Altered image tags to reflect the
2956         inline image node.
2957         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
2958         parameter.
2959         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
2960         it is already inside a pic image.  Only emit tags if the argument
2961         `-Tps:html' is present.
2962         * src/preproc/tbl/main.cc: Changes to reflect additional
2963         `html_end_suppress' parameter.
2964         * src/roff/troff/env.cc: Only emit eol tag if a node has been
2965         emitted since the last eol tag was written.
2966         * src/roff/troff/env.h: New boolean `emitted_node'.
2967         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
2968         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
2969         * src/roff/troff/node.cc (check_charinfo): New method. 
2970         (troff_output_file::determine_line_limits): Alterations to limit
2971         checking.
2972         * tmac/www.tmac: Changes to reflect new suppress nodes.
2973           
2974 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
2976         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
2977         Escape the html_glyph in the buffer.
2978         (str_translate_to_html): Output the unescaped escaped_char.
2979         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
2980         `frame=void', not `frame=none'.  Add `border=0'.
2982 2001-04-12  Werner LEMBERG  <wl@gnu.org>
2984         * PROBLEMS: Add some words on how to avoid wrapper macros.
2986 2001-04-11  Blake McBride  <blake@florida-software.com>
2988         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
2990 2001-04-11  Werner LEMBERG  <wl@gnu.org>
2992         * font/devlbp/Makefile.sub (CLEANADD): Set it.
2993         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
2994         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
2995         * Makefile.sub (DISTCLEANFILES): Here.
2997         * libs/libgroff/new.cc: Include `nonposix.h'.
2998         * win32-diffs: Updated.
3000 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3002         Added skeleton macro for defunct macros.
3004         Updated documentation.
3006         When inside displays, an empty input line warning should be
3007         suppressed.  If another macro call is put inside a display,
3008         all subsequent empty lines found in that display caused a
3009         warning to be emitted.
3011         * tmac/doc.tmac (doc-defunct-macro): New macro.
3012         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3013         (doc-restore-global-vars): Fixed typo.
3014         (doc-empty-line): Check the `doc-display-depth' register to
3015         determine whether we are inside display or not.
3017         * tmac/doc-common: Removed `Or' and `Sf' registers.
3018         Moved obsolete `Ds' macro to doc.tmac.
3020         * tmac/groff_mdoc.man: Bump document date.
3021         Document `.Vt' under ``Variable Types''.
3022         Removed documentation for obsolete `.Or' macro.
3024 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3026         * NEWS: Updated.
3027         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3029 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3031         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3032         (usage): Add stream argument. Don't exit.
3033         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3034         Write --version output to stdout, not stderr.
3035         (usage): Add stream argument. Don't exit.
3036         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3037         (usage): Add stream argument. Don't exit.
3038         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3039         constants.
3040         (usage): Add stream argument. Don't exit.
3041         (main): Write --help output to stdout, not stderr.
3042         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3043         (usage): Add stream argument. Don't exit.
3044         * src/devices/grops/ps.cc (main): Accept --help and --version.
3045         (usage): Add stream argument. Don't exit.
3046         * src/devices/grotty/tty.cc (main): Accept --help and --version.
3047         (usage): Add stream argument. Don't exit.
3048         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3049         (main): Accept --help and --version.
3050         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3051         (main): Accept --help and --version.
3052         * src/preproc/html/pre-html.cc (usage): Add stream argument.
3053         (scanArguments): Accept --help and --version.
3054         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3055         (main): Accept --help and --version.
3056         * src/preproc/refer/refer.cc (main): Accept --help and --version.
3057         (usage): Add stream argument. Don't exit.
3058         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3059         exit.
3060         (main): Accept --help and --version.
3061         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3062         (main): Accept --help and --version.
3063         * src/roff/groff/groff.cc (main): Accept --help and --version.
3064         (synopsis): Add stream argument.
3065         (help): Write --help output to stdout, not stderr.
3066         (usage): Add stream argument. Don't exit.
3067         * src/roff/grog/grog.pl: Accept --help and --version.
3068         (help): New sub.
3069         * src/roff/grog/grog.sh: Accept --help and --version.
3070         * src/roff/nroff/nroff.sh: Accept --help and --version.
3071         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3072         (usage): Add stream argument. Don't exit.
3073         (main): Accept --help and --version.
3074         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3075         (usage): New function with stream argument, doesn't exit.
3076         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3077         (usage): New function with stream argument, doesn't exit.
3078         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3079         (usage): Add stream argument. Don't exit.
3080         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3081         (main): Accept --help and --version.
3082         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3083         exit.
3084         (main): Accept --help and --version.
3085         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3086         (main): Accept --help and --version.
3087         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3088         (usage): Add stream argument. Don't exit.
3090 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
3092         Fix indentation in SYNOPSIS.
3094         Updated to include changes of latest BSD mdoc version (basically,
3095         the only change is that `.Fn' and `.Fc' put a final semicolon after
3096         a function declaration in the SYNOPSIS section).
3098         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3099         (doc-in-synopsis-section): New variable.  Updated all related
3100         functions.
3101         (doc-indent-synopsis-active): New register.
3102         (Nd, Fn, Fo): Use it.
3103         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3104         `.Cd' with long argument line produces indented wrapped lines. 
3105         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3106         undesirable line break to be output.
3107         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3108         `.rs'.
3109         (Fn, Fc): Add final `;' to output.
3110         (doc-save-global-vars, doc-restore-global-vars): Updated.
3111         * tmac/doc-common: Remove `Ex' register.
3112         Updated.
3113         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3114         copyright.
3116 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3118         * tmac/doc.tmac (Cd): Simplify code.
3119         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3121 2001-04-06  Werner LEMBERG  <wl@gnu.org>
3123         Implement continuous underlining for nroff mode.  To do that, a new
3124         request in the ditroff language has been added: `x u N' (N is 0
3125         or 1).
3127         \X and \Y are now transparent to end-of-sentence recognition.
3129         * src/include/printer.h (printer): Add `type' parameter to `special'
3130         method.
3131         * src/libs/libdriver/printer.cc (printer::special): Updated.
3132         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3134         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3135         specials of type `p'.
3136         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3137         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3138         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3139         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3140         (glyph::order): New method.
3141         (tty_printer::add_char): Use it.
3142         (tty_printer::special): New method.
3143         (tty_printer::end_page): Implement it.
3145         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3146         * src/roff/troff/node.cc (special_node::special_node): Add parameter
3147         to set `no_init_string'.
3148         (special_node::tprint_start): Use it.
3149         (special_node::same, special_node::copy): Updated.
3150         (special_node::ends_sentence): New method.
3151         (troff_output_file::start_special): Add parameter to include
3152         inititialization of special conditionally.
3154         * src/roff/troff/env.h (environment): New member `underline_spaces'.
3155         * src/roff/troff/env.cc (do_underline_special): New function.
3156         (environment::set_font): Use it.
3157         (do_underline): Use it.  This was `underline()'.
3158         (underline): Call `do_underline()'.
3159         (continuous_underline): New function which calls `do_underline()'.
3160         (environment::newline): Use `do_underline_special()'.
3161         (init_env_requests): Updated.
3163         * NEWS, man/troff_out.man: Updated.
3165 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
3167         * font/devutf8/R.proto: Fix code of 'shc'.
3169 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3171         Many fixes.  Diag lists can now be nested also; additionally,
3172         `-compact' and `-offset' are supported.
3174         * tmac/doc.tmac (doc-have-indent): Replaced with ...
3175         (doc-list-have-indent-stackXXX): A new register stack.
3176         (doc-have-diag-list): Removed.
3177         (Bl): Use `doc-list-have-indent-stackXXX'.
3178         (El): Updated.
3179         (doc-diag-list): Use `doc-compact-list-stackXXX'.
3180         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3181         (doc-set-vertical-and-indent): Ditto.
3182         (doc-next-list-depth): Removed.
3183         (doc-increment-list-stack): Updated.
3184         (doc-decrement-list-stack): Use `doc-list-depth' instead of
3185         `doc-next-list-depth'.
3186         (doc-end-list, doc-end-column-list): Don't use
3187         `doc-increment-list-stack'.
3188         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3189         (doc-save-global-vars, doc-restore-global-vars): Updated.
3190         * tmac/doc-common: Updated.
3191         * tmac/groff_mdoc.man: Updated.
3192         * NEWS: Fix typo.
3194 2001-04-02  Werner LEMBERG  <wl@gnu.org>
3196         * src/devices/grotty/grotty.man: Fix grammatical error.
3198 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
3200         Remove .Ld from mdoc package; replace it with special handling of
3201         `...'.
3203         * tmac/doc-common: Remove `Ld' register.
3204         Uncomment `doc-volume-ds-*' strings.
3205         Remove `doc-operating-system-default'.
3206         (Os): Updated.
3207         * tmac/doc-syms (Ld): Removed.
3208         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3209         `...' specially.
3210         * NEWS: Updated.
3212         * tmac/groff_mdoc.man: Many fixes and updates.
3214 2001-03-29  Werner LEMBERG  <wl@gnu.org>
3216         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
3217         Bond <tkb@tkb.mpl.com>.
3218         * tmac/www.tmac: Save compatibility mode.
3220 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
3222         * tmac/groff_mdoc.man: Many fixes.
3224 2001-03-28  Werner LEMBERG  <wl@gnu.org>
3226         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3227         isn't recognized.
3229 2001-03-27  Werner LEMBERG  <wl@gnu.org>
3231         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3232         diversion.  This fixes overlong tags.
3234 2001-03-26  Werner LEMBERG  <wl@gnu.org>
3236         * doc/groff.texinfo: Fixed and improved documentation of fonts.
3237         * tmac/doc-syms: Fix error messages.
3238         * tmac/an-old.tmac: Remove incorrect double backslashes.
3240 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
3242         * tmac/Makefile.sub: Strip mdoc.local also
3243         * tmac/strip.sed: Fixed.
3245 2001-03-24  Werner LEMBERG  <wl@gnu.org>
3247         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3248         selecting the font size.
3249         * tmac/groff_mdoc.man, NEWS: Document it.
3251 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3253         * src/roff/troff/div.cc (save_vertical_space): Add default argument
3254         to `sv' request.
3255         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3256         argument to restore previous font family.
3257         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3259         * doc/groff.texinfo: More fixes and additions (mainly for font
3260         manipulating commands).
3262         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3263         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
3264         * tmac/Makefile.sub, NEWS: Updated.
3266 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3268         Replaced mdoc implementation.  The new version is `state of the
3269         art', using almost all new features of groff 1.17 -- it won't run
3270         with older versions.
3272         * tmac/doc.tmac: Completely rewritten.
3273         * tmac/doc-common: Ditto.
3274         * tmac/doc-nroff: Ditto.
3275         * tmac/doc-ditroff: Ditto.
3276         * tmac/doc-syms: Ditto.
3277         * tmac/mdoc.local: New file.
3278         * tmac/groff_mdoc.samples.man: Replaced with ...
3279         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3280         * tmac/strip.sed: Updated.
3281         * tmac/Makefile.sub: Updated.
3282         * INSTALL: Updated.
3284         * tmac/groff_man.man: Add `man.local' to the FILES section.
3286 2001-03-22  Werner LEMBERG  <wl@gnu.org>
3288         * doc/groff.texinfo: Added many @noindent.
3289         Replaced @end_Example -> @endExample.
3290         Added info whether registers are r/o.
3291         Many other additions and fixes.
3293 2001-03-21  Werner LEMBERG  <wl@gnu.org>
3295         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3296         in makeinfo of texinfo 4.0) to be used in @Def* macros.
3297         Improved @Def* macros: Now the exact syntax of request, register,
3298         and escapes is shown.
3299         Added macros for parentheses and brackets to be used in @Def*.
3300         Many fixes and improvements of the documentation.
3302 2001-03-20  Werner LEMBERG  <wl@gnu.org>
3304         * doc/groff.texinfo: Added new index: `st' (for strings).
3305         Added macros @Defstr(x).
3306         Added macro @Example (adding @group).
3307         Other minor improvements.
3309 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3311         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3312         `rq' for requests.  `fn' is no longer used.
3313         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3314         Removed @Deffn(x).
3316         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3317         number with name of man page.
3319 2001-03-19  Larry Kollar  <kollar@alltel.net>
3321         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
3322         consistency.
3324 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3326         * man/groff_font.man: Document `prepro', `postpro', and `print'.
3327         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3328         * src/devices/grohtml/grohtml.man: Fixing typos.
3330 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
3332         * tmac/s.tmac (@IP): Pass `.ip' html tag.
3333         * tmac/groff_mwww.man: Remove .LINE macro
3334         * tmac/www.tmac (LINE): Add `.ti'.
3336         * src/devices/grohtml/post-html.cc (html_printer): New member
3337         `indent'.
3338         (html_printer::emit_raw): Use it.
3339         (html_printer::do_linelength): Ditto.
3340         (html_printer::do_pageoffset): Ditto.
3341         (html_printer::do_indentation): Ditto.
3342         (html_printer::do_tempindent): Ditto.
3343         (html_printer::do_break): Ditto.
3344         (html_printer::begin_page): Ditto.
3345         (html_printer::do_indentedparagraph): New function.
3346         (html_printer::troff_tag): Handle `.ip'.
3347         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3348         Add `<td width=...>' handling.
3349         (html_text::do_table): Add parameter.
3350         (html_text::do_indent): Updated.
3351         * src/devices/groohtml/html-text.h: Updated.
3353 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
3355         Introduced simple html tables to implement indentation.
3357         * src/devices/grohtml/html.h (word, word_list): New structures.
3358         (simple_output): Use it.
3359         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3360         (html_printer): Improve indentation handling.
3361         (html_printer::emit_raw): Set `in_table' element.  Handle
3362         indentation if set.
3363         (html_printer::write_header): Move conditional downwards.
3364         Don't allow whitespace in tags.
3365         (html_printer::do_linelength): Handle line length and indentation
3366         conditionally.
3367         (html_printer::do_pageoffset): Handle indentation conditionally.
3368         (html_printer::do_indentation): Ditto.
3369         (html_printer::do_tempindent): New function member.
3370         (html_printer::do_fill): Take care of indentation.
3371         (html_printer::do_flush): Finish table.
3372         (html_printer::do_links): Ditto.
3373         (html_printer::do_break): New function for handling `.br' and `.ti'.
3374         (html_printer::troff_tag): Use it.
3375         Handle `.ti'.
3376         (html_printer::flush_globs): Fix.
3377         (html_printer::flush_page): Finish table.
3378         (html_printer::html_printer): Fix error message.  Set up
3379         `linelength'.
3380         (html_printer::add_to_sbuf): Remove special handling of character
3381         code 255.
3382         (to_unicode): Remove `stop()'.
3383         (html_printer::write_title): Cleanup.
3384         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
3385         (html_printer::~html_printer): Flush text and end the line.
3386         Use `put_string()'.
3387         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3388         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3389         emission of tags.
3390         (html_text::start_tag): Disable newlines.
3391         (html_text::table_is_void): New function.
3392         (html_text::issue_table_begin): Ditto.
3393         (html_text::issue_table_end): Ditto.
3394         (html_text::push_para): Better table handling.
3395         (html_text::do_indent): New function.
3396         (html_text::do_table): Ditto.
3397         (html_text::done_table): Ditto.
3398         (html_text::do_tt): Handle PRE_TAG.
3399         (html_text::is_in_table): New function.
3400         (html_text::check_emit_text): Handle tables.
3401         (html_text::do_emittext): Use `nl()'.
3402         (html_text::do_para): Handle table.
3403         (html_text::remove_def): New function.
3404         * src/devices/grohtml/output.cc (word, word_list): Implement
3405         methods.
3406         (simple_output::end_line): Flush last word.
3407         (simple_output::simple_comment): Ditto.
3408         (simple_output::begin_comment): Recoded.
3409         (simple_output::end_comment): Ditto.
3410         (simple_output::comment_arg): Removed.
3411         (simple_output::check_newline): Improve test and flush last word.
3412         (simple_output::space_or_newline): Improved.
3413         (simple_output::write_newline): Replaced with...
3414         (simple_output::nl): This.
3415         (simple_output::put_raw_char): Flush last word.
3416         (simple_output::check_space): Removed.
3417         (simple_output::put_translated_string): Ditto.
3418         (simple_output::put_string): Simplified.
3419         (simple_output::put_number): Updated.
3420         (simple_output::put_float): Ditto.
3421         (simple_output::put_symbol): Removed.
3422         (simple_output::enable_newlines): Add `check_newline()'.
3423         (simple_output::flush_last_word): New function.
3425         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3426         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3428         * tmac/s.tmac (@PP, @IP): Add html conditional code.
3429         * tmac/an-old.tmac (TP): Ditto.
3431 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
3433         * mdate.sh: Make it POSIX compliant.
3435 2001-03-09  Werner LEMBERG  <wl@gnu.org>
3437         Added the `return' request to end a macro immediately.  It simply
3438         pops iterators from the input stack until a macro iterator is found.
3440         * src/roff/troff/input.cc (input_iterator::is_macro,
3441         macro_iterator::is_macro): New member.
3442         (input_return_boundary): New class to signal an immediate return
3443         to while_request().
3444         (input_stack::add_return_boundary, input_stack::is_return_boundary):
3445         New functions.
3446         (input_stack::clear): Use it.
3447         (input_stack::pop_macro): New function.
3448         (while_request): Use `is_return_boundary()'.
3449         (return_macro_request): New function.
3450         (init_input_requests): Use it.
3452         * src/roff/troff/TODO: Updated.
3453         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3455 2001-03-08  Werner LEMBERG  <wl@gnu.org>
3457         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3458         cleanup.
3460 2001-03-07  Werner LEMBERG  <wl@gnu.org>
3462         Make `\B' more rigid.
3464         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3465         parameter.
3466         (get_number_rigidly): New function.
3467         * src/roff/troff/input.cc (do_expr_test): Use it.
3468         * src/roff/troff/token.h: Updated.
3470         * src/roff/troff/request.h: Fix typo (init_html_request ->
3471         init_markup_request).
3473 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
3475         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
3476         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3477         are now `.begin', `.end', `.image'.
3479         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3480         (html_printer::add_to_sbuf): Changing type of `code' parameter.
3481         Use add_char_to_sbuf().
3482         (to_unicode): New function.
3483         (char_translate_to_html): Changing type of `ch' parameter.
3484         Use `to_unicode()'.
3485         (html_printer::~html_printer): Comment out doctype string.
3486         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3487         instead of `.html-end'.
3488         (write_start_image): Use `.begin' and `.image' instead of
3489         `.html-begin' and `.html-image'.
3490         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3491         (html_begin): Renamed to ...
3492         (begin): This.
3493         (html_end): Renamed to ...
3494         (end): This.
3495         (html_image): Renamed to ...
3496         (image): This.
3497         (init_html_requests): Renamed to ...
3498         (init_markup_requests): This.
3499         * tmac/www.tmac: Updated.
3501 2001-02-28  Bram  <bram@avontuur.org>
3503         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3504         constructor.
3506 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
3508         * doc/meref.me: Fixing some typos.
3510 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3512         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3513         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
3514         * src/roff/troff/node.h: Updated.
3516 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
3518         * tmac/groff_tmac.man: Fix typo.
3520 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3522         Fixing a bug which prevented proper end-of-sentence recognition
3523         between an `unformatted' box and the following text.  As a
3524         consequence, vertical line distances are no longer preserved in
3525         boxes after a call to `.unformat' -- because boxes aren't
3526         line-oriented (contrary to diversions), this doesn't make sense
3527         anyway.
3529         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3530         value.
3531         (vertical_size_node::set_unformat_flag): New method.
3532         * src/roff/troff/node.hh: Updated.
3533         * src/roff/troff/input.cc (word_space_node::reread,
3534         hmotion_node::reread): Reset `unformat' flag after usage.
3535         (unformat_macro): Append only if `set_unformat_flag()' returns
3536         non-zero.
3537         * src/roff/troff/troff.man: Updated.
3539 2001-02-15  Werner LEMBERG  <wl@gnu.org>
3541         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3542         documentation of `asciify' and `unformat' requests.
3544 2001-02-13  Werner LEMBERG  <wl@gnu.org>
3546         Redesigned the `unformat' request.  It is no longer connected with
3547         `asciify' but rather uses new `reread()' methods if the `unformat'
3548         flag is set.  Additionally, the handling of space characters after
3549         unformatting has been fixed so that they retain their width.
3551         * src/roff/troff/node.h (width_list): New structure to store
3552         original widths of spaces.
3553         (node): Added `unformat' member.
3554         Replaced `num_spaces' variable with `orig_width' list.
3555         * src/roff/troff/node.cc (*node::asciify,
3556         asciify_reverse_node_list): Removed `unformat_only' flag and related
3557         code.
3558         (word_space_node::asciify, word_space_node::word_space_node): Use
3559         `orig_width'.
3560         (word_space_node::~word_space_node): New destructor.
3561         (word_space_node::copy): Updated to handle `orig_width'.
3562         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3563         (*node::merge_space): Update `orig_width' list if necessary.
3564         (*node::set_unformat_flag): New methods to set the `unformat' flag.
3565         * src/roff/troff/enc.cc (environment::space_newline): Use
3566         `width_list'.
3567         (environment::space): Added method to handle space width and
3568         sentence space width as parameters.  Use `width_list'.
3569         (environment::make_tab_node): Updated.
3570         * src/roff/troff/env.h: Updated.
3571         * src/roff/troff/input.cc (word_space_node::reread,
3572         unbreakable_space_node::reread, hmotion_node::reread): New methods
3573         to handle nodes specially if `unformat' flag is set.
3574         (do_asciify_macro): Renamed back to ...
3575         (asciify_macro): This.
3576         (unformat_macro): New implementation to simply set the `unformat'
3577         flag.
3579         * MORE.STUFF: Added more info about deroff.
3581 2001-02-08  Werner LEMBERG  <wl@gnu.org>
3583         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3584         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
3585         and `add_self()' methods to avoid hyphenation.  For example, the
3586         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
3587         soft hyphen after `foo'.  Now the hyphen list is correctly
3588         `foo<ignore><ignore>bar'.
3590 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
3592         * tmac/groff_tmac.man: Fix `BIR' macro.
3594 2001-02-04  Werner LEMBERG  <wl@gnu.org>
3596         A new escape sequence `\:', inserting a zero-width break point.
3598         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
3599         * src/roff/troff/input.cc (get_copy, token::next, asciify):
3600         Implement it.
3601         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
3602         method.
3603         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
3604         and `asciify()' methods.
3605         * src/roff/troff/node.cc (space_node::space_node): Updated.
3606         (space_node::asciify): Handle `was_escape_colon'.
3607         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3609         Handle `\~' similar to other comparable requests.
3611         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
3612         label.
3613         (token::next): Move creation of an unbreakable_space_node to...
3614         (token::add_to_node_list): Here.
3616         Fix a bug which sometimes prevented hyphenation of words connected
3617         with `\~' or `\ ' (and other escape sequences handled as
3618         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
3619         (after a call to the `unformat' request).
3621         * src/roff/troff/env.h (environment::possibly_break_line,
3622         environment::hyphenate_line): Introducing `start_here' parameter.
3623         * src/roff/troff/env.cc (environment::space_newline,
3624         environment::space): Use it.
3625         (environment::possibly_break_line, environment::hyphenate_line):
3626         Implement it.
3627         * src/roff/troff/input.cc (process_input_stack): Use it.
3628         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3629         space_char_hmotion_node, overstrike_node): Add
3630         `get_hyphenation_type()' method.
3631         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
3632         if `unformat_only' is active.
3634 2001-01-30  Werner LEMBERG  <wl@gnu.org>
3636         Implemented new read-only number register `.linetabs' which
3637         returns 1 if in line-tabs mode, 0 otherwise.
3639         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
3640         * src/roff/troff/env.cc (get_line_tabs): New function.
3641         (init_env_requests): Use it.
3642         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3644         * VERSION, REVISION: Changing to 1.17.0.
3646 2001-01-28  Werner LEMBERG  <wl@gnu.org>
3648         Fixed a bug which prevented hyphenation of words which are finished
3649         with `\)'.
3651         * src/roff/troff/token.h (token): Add enum type
3652         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
3653         * src/roff/troff/input.cc (token::next, token::description,
3654         get_line_arg, token::add_to_node_list, token::process): Use it.
3656 2001-01-27  Werner LEMBERG  <wl@gnu.org>
3658         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
3659         * src/roff/troff/div.cc (do_divert): Use it.
3661         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
3663 2001-01-25  Werner LEMBERG  <wl@gnu.org>
3665         Adding the `linetabs' request.  If set, tab distances are not
3666         computed relative to the input line but relative to the output line.
3668         * src/roff/troff/env.h (environment): New member `line_tabs'.
3669         * src/roff/troff/env.cc (line_tabs_request): Implement request.
3670         (environment::environment, environment::copy): Updated.
3671         (environment::distance_to_next_tab): Use `line_tabs'.
3672         (init_env_requests): Register request.
3673         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
3674         fixes.
3676 2001-01-24  Werner LEMBERG  <wl@gnu.org>
3678         Introducing a new read-only register `.int' which is set to a
3679         positive value if the last output line is interrupted (i.e., if it
3680         contains `\c').
3682         * src/roff/troff/env.cc (init_env_requests): Add it.
3683         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3685 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
3687         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
3688         * src/preproc/html/pre-html.cc (findPrefix): New function which
3689         generates the troff executable name via the system prefix.
3690         * src/preproc/eqn/main.cc: Modified warning message.
3692 2001-01-23  Werner LEMBERG  <wl@gnu.org>
3694         troff's `box' and `boxa' requests didn't preserve temporary
3695         indentation.
3697         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
3698         `saved_target_text_length' members.
3699         * src/roff/troff/div.cc (do_divert): Use them.
3701         Tabs (but not yet leaders and fields) are now handled correctly by
3702         `asciify' request.
3704         * node.h (hmotion_node): Add field `was_tab'.
3705         * env.cc (environment::make_tab_node): Set it.
3706         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
3708         Added new request `unformat' which will, contrary to `asciify',
3709         preserve font information after unformatting (i.e., only nodes
3710         dealing with horizontal space are converted back to input
3711         characters).
3713         * input.cc (asciify_macro): Renamed to ...
3714         (do_asciify_macro): this, having a new parameter `unformat_only'.
3715         (asciify_macro, unformat_macro): New; using do_asciify_macro.
3716         (init_input_requests): Added `unformat'.
3717         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
3718         parameter to control asciification process.
3719         * node.h (*_node::asciify): Ditto.
3720         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3722 2001-01-20  Werner LEMBERG  <wl@gnu.org>
3724         * doc/groff.texinfo: Minor improvement of `.in' documentation.
3726 2001-01-18  Werner LEMBERG  <wl@gnu.org>
3728         * tmac/ps.tmac: Remove call of psold.tmac.
3729         * tmac/psold.tmac: Comment updated.
3730         * tmac/psnew.tmac: Removed since no longer needed.
3731         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
3733         * font/devutf8/R.proto: Adding `shc' glyph.
3734         * font/devutf8/NOTES: Updated.
3736         * test-groff: Updated.
3738 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3740         First cut of the new html device driver.  Changes to pre-html and
3741         the new grohtml are too numerous to be documented here.
3743         Stuff related to `html' has been renamed to `html-old' and `html2'
3744         stuff has been renamed to `html' (including directories).  The new
3745         html device driver is therefore invoked as `-Thtml'.
3747         Added new `\O' escape to suppress output (needed by html driver).
3749         Added functions and code to pass info about input-level commands
3750         (`.in', `.fl', etc.) to html driver.
3752         Three new functions (.html-begin, .html-end, and .html-image) for
3753         better html handling: `html-begin' will execute the remaining line
3754         if at the outermost nesting level, increasing an internal counter.
3755         `html-end' does the same but decreases the internal counter.
3756         `html_image' puts its arguments into a special node (suppress_node)
3757         to define an image region.
3759         The `output' request has been removed.
3761         * tmac/html-tags.tmac: Removed.
3762         * tmac/arkup.tmac: Updated and renamed to ...
3763         * tmac/www.tmac: New file.
3764         * tmac/markup.tmac Updated and renamed to ...
3765         * tmac/mwww.tmac: New file.
3766         * tmac/Makefile.sub: Updated.
3767         * tmac/an-old.tmac: Updated.
3768         * tmac/eqnrc: Updated.
3769         * tmac/groff_man.man
3770         * tmac/groff_markup.man: Updated and renamed to ...
3771         * tmac/groff_mwww.man: New file.
3772         * tmac/groff_tmac.man: Updated.
3773         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
3774         * tmac/html.tmac: Updated and renamed from html2.tmac.
3775         * tmac/pspic.tmac: Updated html support.
3776         * tmac/s.tmac: Added html output support.
3777         * tmac/troffrc, tmac/troffrc-end: Updated.
3779         * Makefile.in, doc/Makefile: Updated.
3780         * doc/groff.texinfo: Added info about new `\O' escape.
3781         * doc/homepage.ms: Use `MAILTO' macro.
3783         * font/devhtml/DESC.proto: Add `C' font.
3784         * font/devhtml/Makefile.sub: Updated.
3785         * font/devhtml/R.proto: Minor fixes.
3786         * font/devhtml-old/Makefile.sub: Updated.
3788         * src/devices/grohtml-old/Makefile.sub: Updated.
3790         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
3791         method.
3792         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
3793         graphic_start): Add `inline' parameter.  Update.
3794         (html_end_suppress, graphic_end): Update.
3796         * src/include/html-strings.h: New file.
3797         * src/include/htmlindicate.h: Comments updated.
3798         * src/include/printer.h: Updated.
3800         * src/preproc/eqn/main.cc (do_file, main): Updated.
3801         * src/preproc/pic/troff.cc (troff_output::start_picture,
3802         troff_output::finish_picture): Updated.
3803         * src/preproc/tbl/main.cc (process_input_file): Updated.
3805         * src/roff/groff/groff.cc (main): Updated.
3806         Pass device arguments to predrivers also.
3807         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
3808         * src/roff/troff/env.h (environment): Updated.
3809         New elements `need_eol' and `ignore_next_eol' (for html output).
3810         * src/roff/troff/env.cc (environment::environment): Add initializers
3811         for `need_eol' and `ignore_next_eol'.
3812         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
3813         functions.
3814         (point_size, fill, no_fill, center, right_justify, line_length,
3815         indent, temporary_indent, break_request, handle_tab): Use
3816         `add_html_tag()'.
3817         (set_tabs): Use `add_html_tag_tabs()'.
3818         (environment::add_html_tag): Updated.
3819         (environment::do_break): Updated.
3820         * src/roff/troff/div.cc (space_request, flush_output): Use
3821         `environment::add_html_tag()'.
3822         * src/roff/troff/input.cc: Updated.
3823         New variable `html_level' to indicate nested `html-begin' requests.
3824         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
3825         (non_interpreted_char_node, token_node, non_interpreted_node): Add
3826         `force_tprint()' method.
3827         (token::next): Handle `\O'.
3828         (do_suppress): Implement it.
3829         (html_begin, html_end, html_image): New functions.
3830         (init_output_requests): Renamed to ...
3831         (init_html_requests): this.
3832         (main): Use it.
3833         (macro::append_str, macro::append_unsigned, macro::append_int): New
3834         methods.
3835         New variable `output_low_mark_miny' to limit minimal value of y.
3836         (reset_output_registers): Use it.
3837         (output_request): Removed.
3838         (get_output_registers): New function.
3839         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
3840         (*_node): Added `force_tprint()' if necessary.
3841         (special_node): New elements `tf' and `get_tfont()'.
3842         (suppress_node): New class.
3843         * src/roff/troff/node.cc:
3844         New global variables `image_no' and `suppress_start_page'.
3845         (real_output_file): New method `is_on()'.
3846         (troff_output_file): New method `start_special(tfont)'.
3847         (troff_output_file::really_print_line): Use `tprint' conditionally.
3848         (real_output_file::print_line): Updated.
3849         (real_output_file::on): Updated.
3850         (*_node): Added `force_tprint()'.
3851         (special_node::special_node): Initializer updated.
3852         (special_node::same, special_node::copy, special_node::tprint_start):
3853         Updated.
3854         (get_reg_int, get_reg_str): New functions.
3855         (suppress_node::*): New methods.
3856         New global variables last_position, last_image_filename;
3857         (min): New inline function.
3858         * src/roff/troff/reg.h, src/roff/troff/request.h,
3859         src/roff/troff/troff.h: Updated.
3861 2001-01-13  Werner LEMBERG  <wl@gnu.org>
3863         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
3864         documentation of `asciify' request.
3866 2001-01-12  Werner LEMBERG  <wl@gnu.org>
3868         * src/roff/troff/input.cc: Move definition of special characters
3869         like `ESCAPE_TILDE' to ...
3870         * src/roff/troff/input.h: New file.
3871         * src/roff/troff/Makefile.sub (HDRS): Add it.
3873         Extending the .asciify request to `unformat' space characters also.
3875         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
3876         to count input space characters.
3877         Update constructors to take care of it.
3878         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
3879         `ESCAPE_SPACE' instead of normal space.
3880         (word_space_node::asciify): New method.
3881         (unbreakable_space_node::asciify): New method.
3882         (word_space_node::merge_space): New method.
3883         * src/roff/troff/env.cc (environment::space_newline,
3884         environment::space): Add code to initialize `num_spaces' (using the
3885         constructor of `word_space_node').
3886         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3887         Document it.
3889 2001-01-09  Werner LEMBERG  <wl@gnu.org>
3891         * man/groff_char.man: Use table header traps only conditionally.
3893 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
3895         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
3897 2001-01-08  Werner LEMBERG  <wl@gnu.org>
3899         Introducing the `box' and `boxa' requests which are similar to
3900         `di' resp. `da' but omitting a partially filled line (which is
3901         restored after ending the diversion).
3903         * src/roff/troff/div.h (diversion): Add elements to save partially
3904         filled line.
3905         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
3906         partially filled line.
3907         (divert, divert_append): Updated.
3908         (box, box_append): New functions.
3909         (init_div_requests): Use them.
3910         * src/roff/troff/env.h (environment): do_divert() is now a friend.
3911         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3913         * doc/groff.texinfo: Fix documentation of `lf' request.
3915 2000-12-25  Werner LEMBERG  <wl@gnu.org>
3917         * src/roff/troff/troff.man, NEWS: Document `writem' request.
3919 2000-12-21  Werner LEMBERG  <wl@gnu.org>
3921         Ignore `ss' request if in compatibility mode.
3923         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
3924         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
3925         * src/roff/troff/env.cc (space_size): Use it.
3927         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
3928         `ss' request in nroff mode.
3930         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
3931         changes.
3933 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
3935         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
3937 2000-12-13  Werner LEMBERG  <wl@gnu.org>
3939         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
3940         * src/preproc/eqn/neqn.man: Small fixes and additions.
3942 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
3944         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
3945         Fixing typo.
3947         * src/preproc/eqn/neqn.man: New file.
3949         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
3950         negative' warning.
3952         * tmac/e.tmac: Add `T&' macro.
3953         Fix `indent cannot be negative' warning.
3954         * tmac/s.tmac: Fix `indent cannot be negative' warning.
3956 2000-12-07  Werner LEMBERG  <wl@gnu.org>
3958         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
3960 2000-12-06  Werner LEMBERG  <wl@gnu.org>
3962         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
3963         `alloca' symbol .
3965         * MORE.STUFF: Added info about deroff for djgpp.
3967         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
3968         documentation of -rcR switch.
3970 2000-12-03  Werner LEMBERG  <wl@gnu.org>
3972         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
3973         if -rcR=1 (which is now the default in nroff mode), a single, very
3974         long page is created instead of multiple pages: All `ne' and `wh'
3975         requests are put into conditionals; a new macro `an-end' is added to
3976         be called with `em'.
3978         Some other minor cleanups.
3980         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
3982 2000-12-02  Werner LEMBERG  <wl@gnu.org>
3984         Fixing a bug which prevented hyphenation in words followed
3985         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
3987         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
3988         Adding possibly_break_line().
3989         * src/roff/troff/env.h (environment): Make possibly_break_line()
3990         public.
3992         Make `\~' usable in .tr request.
3994         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
3995         (token): Add stretchable_space().
3996         * src/roff/troff/input.cc (token::next, token::delimiter,
3997         token::description, process_input_stack, do_translate,
3998         add_to_node_list, token::process): Use it.
3999         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4000         for adjusting the space.
4001         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4002         for stretchable space.
4003         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4004         (make_node): Add code for stretchable space.
4005         * src/roff/troff/env.cc (environment::add_char): Use it.
4006         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4007         (get_copy, token::next, transparent_translate, asciify): Use it.
4009         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4010         doc/groff.texinfo: Updated.
4011         * man/groff.man: Small reorderings.
4013 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4015         * NEWS: Fixes.
4016         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4017         option.
4018         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4019         `safer_macro_path' to -M option.
4020         * src/roff/troff/troff.man: Fixes.
4022 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4024         Use safer path (except for config files) if -U isn't specified.  Add
4025         a special macro path (without home and current directory) for config
4026         files.  Add home directory to unsafe path for consistency.  Don't
4027         include the home directory in the font path.
4029         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4030         `macro_path'.
4031         * src/include/macropath.h: Add `config_macrp_path'.
4032         * src/libs/libgroff/fontfile.cc: Fix font path.
4033         * src/roff/troff/input.cc (process_startup_file): Use
4034         `config_macro_path'.
4035         (main): Select unsafe path if -U is given.
4037         * src/preproc/eqn/main.cc (main): Fixing search path for
4038         configuration file.
4039         * src/preproc/eqn/eqn.man: Updated.
4041         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4042         Updated.
4044         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4045         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4046         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4047         src/devices/grotty/grotty.man: Updated.
4049         * Makefile.in: Fix comments.
4051 2000-11-17  Werner LEMBERG  <wl@gnu.org>
4053         * tmac/safer.tmac: Empty file added (again) for compatibility
4054         reasons.
4055         * tmac/Makefile.sub: Updated.
4057 2000-11-16  Werner LEMBERG  <wl@gnu.org>
4059         * src/devices/grodvi/dvi.cc (main),
4060         src/devices/grohtml2/post-html.cc (main),
4061         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4062         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4063         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4064         (main), src/preproc/html2/pre-html.cc (main),
4065         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4066         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4067         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4068         (main), src/utils/hpftodit/hpftodit.cc (main),
4069         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4070         (main), src/utils/lookbib/lookbib.cc (main),
4071         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4072         (main): Use stdout for -v.
4073         * src/roff/groff/groff.cc (run_commands),
4074         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4075         to make direct printing to stdout possible.
4076         * src/roff/groff/pipeline.h: Updated.
4078         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4079         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4080         * src/utils/afmtodit/afmtodit.man: Updated.
4082         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4083         (version): New function.
4084         (usage): Updated.
4085         * src/utils/addftinfo/addftinfo.man: Updated.
4087         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4088         Fixing copyright dates.
4090         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4091         replacing it.
4093         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4094         version_string.
4096         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4098 2000-11-15  Werner LEMBERG  <wl@gnu.org>
4100         In all programs, make -v return immediately with exit status 0 to
4101         be compliant with the GNU standard.
4103         * src/devices/grodvi/dvi.cc (main),
4104         src/devices/grohtml2/post-html.cc (main),
4105         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4106         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4107         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4108         (main), src/preproc/html2/pre-html.cc (main),
4109         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4110         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4111         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4112         (main): Implement it.
4113         * NEWS: Updated.
4115         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
4116         and postprocessors to the -v option.
4118         * src/roff/grog/grog.pl: Implement -v.
4119         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4120         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4122         * src/roff/nroff/nroff.sh: Implement -v.
4123         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4124         * src/roff/nroff/nroff.man: Updated.
4125         
4126         * src/preproc/eqn/main.cc (main): Fix comment typo.
4128         * MORE.STUFF: Added info about djgpp port of grap.
4130 2000-11-14  Werner LEMBERG  <wl@gnu.org>
4132         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4133         mode (or rather, implemented non-compatibility mode).
4134         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4136         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4137         replacing it -- we don't find gxditview otherwise.
4138         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4140         * src/preproc/pic/depend: Removed.  Unnecessary.
4142         Implemented dummy keyword `solid' in pic for compatibility with
4143         AT&T pic.
4145         * lex.cc (lookup_keyword): Added `solid'.
4146         * pic.y: Added SOLID with dummy rule.
4147         * pic.cc, pic_tab.h: Regenerated.
4148         * doc/pic.ms: Updated.
4150 2000-11-13  Werner LEMBERG  <wl@gnu.org>
4152         For security reasons, don't use the current directory but the home
4153         directory while searching and scanning troffrc and troffrc-end.
4154         Similarly, replace the current directory with the home directory
4155         in the font path.
4157         * Makefile.in (fontpath, tmacpath): Remove current directory.
4159         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4160         two parameters `add_home' and `add_current'.
4161         (search_path::~search_path, search_path::command_line_dir,
4162         search_path::open_file): Remove tests for `dirs' being zero.
4163         * src/include/searchpath.h: Adjust.
4164         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4165         `safer_macro_path'.
4166         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4168         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4169         * src/roff/troff/input.cc: Use `mac_path', initialized with
4170         `macro_path'.
4171         (process_startup_file): Set `mac_path' to `safer_macro_path'.
4172         * src/roff/troff/env.cc: Use `mac_path'.
4174         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4176         * NEWS, man/roff.man, src/roff/troff/troff.man,
4177         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4178         Updated.
4180 2000-11-12  Werner LEMBERG  <wl@gnu.org>
4182         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4184         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4185         * configure.in: Fix typo in comment.
4186         * configure: Regenerated.
4188         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4189         copyright dates.
4191 2000-11-08  Werner LEMBERG  <wl@gnu.org>
4193         Add system tmac directory (/usr/local/lib/groff/site-tmac).
4195         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4196         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4197         $(systemtmacdir).
4198         Use @libdir@.
4199         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4200         * tmac/Makefile.sub (install_data): Create
4201         $(systemtmacdir) and $(localtmacdir).
4202         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4203         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4204         NEWS, doc/groff.texinfo: Updated and minor fixes.
4206         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4207         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4208         $(systemtmacdir) since the wrapper files are platform-dependent.
4210 2000-11-01  Werner LEMBERG  <wl@gnu.org>
4212         * doc/groff.texinfo: Fix typo.
4214 2000-10-26  Werner LEMBERG  <wl@gnu.org>
4216         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
4217           tmac.doc.old -> doc-old.tmac
4218           tmac.an.old  -> an-old.tmac
4220         * tmac/tmac.*: Moved to ...
4221         * tmac/*.tmac: this.
4222         * tmac/man.local: Fix comment.
4223         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4224         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
4225         Added some `FILES' sections.  More use of @...@ directives.  Other
4226         minor updates.
4227         * arch/djgpp/README, font/devutf8/NOTES: Updated.
4228         * doc/homepage.ms, doc/groff.texinfo: Updated.
4229         * man/groff.man, man/roff.man: Updated.
4230         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4231         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4232         src/devices/grotty/grotty.man: Updated.
4233         * src/preproc/pic/pic.man: Updated.
4234         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4235         instead of -mdoc.old.
4236         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4237         * src/roff/nroff/nroff.man: Updated.
4238         * NEWS: Updated.
4240         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4242         * tmac/mm.diff: Removed -- it has no use now since the mm package
4243         is part of groff.
4245         * tmac/*: Removed trailing spaces.
4247         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4248         the tmac subdirectory also).
4250         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4251         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4252         stuff since it is no longer needed.
4254         * README, PROBLEMS: Updated.
4256 2000-10-25  Werner LEMBERG  <wl@gnu.org>
4258         Invert current behaviour: Search first FOOBAR.tmac, then
4259         tmac.FOOBAR.
4261         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4262         (open_mac_file, macro_source): Implement it.
4263         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4264         doc/groff.texinfo, NEWS: Document it.
4266         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4267         Small documentation improvements.
4269         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4270         subdirectory also).
4272         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4274 2000-10-24  Werner LEMBERG  <wl@gnu.org>
4276         Add local tmac directory (groff/site-tmac).
4278         * Makefile.in: Add $(localtmacdir).
4279         (uninstall_dirs): Add $(localtmacdir).
4280         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4281         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4282         in $(localtmacdir).  Create $(localtmacdir).
4283         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4284         Updated and minor fixes.
4286         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4288         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4290 2000-10-23  Werner LEMBERG  <wl@gnu.org>
4292         Move hyphen.us to tmac directory.
4294         * src/roff/troff/hyphen.us: Removed.
4295         * src/tmac/hyphen.us: Added.
4296         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4298         Change installation structure for data files from .../groff/... to
4299         .../groff/<version><revision>/... to be conform with other GNU
4300         programs.
4302         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4303         doc/Makefile: Implement it.
4304         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4305         * configure: Updated.
4306         * arch/djgpp/README, font/devutf8/NOTES: Use it.
4307         * NEWS: Document it.
4308         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4309         @MACRODIR@ instead of hard-coded directories.
4311 2000-10-22  Werner LEMBERG  <wl@gnu.org>
4313         Implement $GROFF_BIN_PATH environment variable (which defaults to
4314         $bindir) used for child programs of groff and similar wrappers.
4316         * gendefs.sh: Improve documentation.
4317         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4318         src/preproc/eqn/Makefile.sub (neqn),
4319         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4320         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4321         $GROFF_BIN_PATH.
4322         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4323         $GROFF_PATH__ (the latter for communication with troff).
4324         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4325         set.
4326         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4327         doc/groff.texinfo: Document it.
4329         * doc/groff.texinfo: Improve documentation of troff's -a option.
4331 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
4333         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4334         non-intrusive eol marker.
4335         (troff_output_file::determine_line_limits): New function.
4336         (troff_output_file::draw): Use it.
4337         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4338         output_pending_lines() instead of output_line().
4339         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4340         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4341         createImage): Small fixes.
4342         
4343 2000-10-14  Werner LEMBERG  <wl@gnu.org>
4345         Replace tmac.safer with a real secure solution.
4347         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4348         system_request, pipe_output): Disable requests if in safer mode.
4349         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4350         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4351         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4352         doc/groff.texinfo, src/roff/groff/groff.man,
4353         src/roff/troff/troff.man, arch/djgpp/README: Updated.
4355         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4356         (resource_manager::output_prolog): Replace setenv() with putenv().
4358 2000-10-09  Werner LEMBERG  <wl@gnu.org>
4360         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4361         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4362         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4363         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4364         compilation errors with some compilers.  It seems that this code
4365         is no longer necessary -- if yes, it is easy to add some #ifdef's
4366         for that particular old-fashioned compiler.
4368         * MORE.STUFF: Added info about Meta-tbl.
4370         * doc/groff.texinfo: Added more info about `.if "..."..."'.
4372 2000-10-07  Werner LEMBERG  <wl@gnu.org>
4374         Adding a new escape sequence \B'...': If the string between
4375         the delimiters is a valid numeric expression, return the character
4376         `1', and `0' otherwise.  This is an analogon to \A.
4378         * src/roff/troff/input.cc (do_expr_test): Implement it.
4379         (token::next): Use it.
4380         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4382         * tmac/tmac.trace: Made independent from escape character.
4384 2000-10-06  Werner LEMBERG  <wl@gnu.org>
4386         Adding a new request .dei: define indirect.  The first and second
4387         parameter of .dei are taken from string registers instead directly;
4388         this very special request is needed to make tmac.trace independent
4389         from the escape character (which might even be disabled).
4391         * src/roff/troff/input.cc (do_define_macro): Implement it.
4392         (define_macro_indirect): New function.
4393         (init_input_requests): Use it.
4395         Adding two requests .ecs and .ecr: Save and restore the escape
4396         character.  These two requests are needed to make tmac.trace
4397         independent from the escape character (which might even be
4398         disabled).
4400         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4401         Implement it.
4402         (init_input_requests): Use it.
4404         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4406 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
4408         Adding a new option -P and new environment variable GROPS_PROLOGUE
4409         to grops, selecting a different prologue file (minor modifications
4410         by WL).
4412         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4413         src/devices/grops/ps.cc (main): Implement it.
4414         * src/devices/grops/grops.man, NEWS: Document it.
4416 2000-09-22  Werner LEMBERG  <wl@gnu.org>
4418         * INSTALL: Add info about selecting paper format.
4420 2000-09-21  Werner LEMBERG  <wl@gnu.org>
4422         * src/roff/troff/input.cc (main): Fixing compiler warning.
4423         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4424         strings.h from the former to the latter.
4425         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4426         stuff from the former to the latter.
4428 2000-09-11  Werner LEMBERG  <wl@gnu.org>
4430         Implementing two new requests .tm1 and .tmc: The former is similar
4431         to .tm but can output leading spaces; its syntax is similar to
4432         defining a string, i.e., a `"' can be used to mark the beginning of
4433         the string to be written to stderr: `.tm1 " test'.  The latter is
4434         similar to .tm1 but doesn't write out a final newline character.
4436         * src/roff/troff/input.cc (terminal1, terminal_continue,
4437         do_terminal): New functions.
4438         (init_input_requests): Use them.
4439         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4441 2000-09-09  Werner LEMBERG  <wl@gnu.org>
4443         * tmac/groff_mdoc.samples.man: Small fixes.
4445 2000-09-08  Werner LEMBERG  <wl@gnu.org>
4447         * tmac/groff_mdoc.man: Fixing typo.
4449 2000-09-02  Werner LEMBERG  <wl@gnu.org>
4451         Implementing a .nop request which does nothing.
4453         * src/roff/troff/input.cc (nop_request): New function.
4454         (init_input_requests): Use it.
4455         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4457 2000-09-01  Werner LEMBERG  <wl@gnu.org>
4459         * doc/groff.texinfo: Added some comments.
4461 2000-08-30  Werner LEMBERG  <wl@gnu.org>
4463         * src/roff/troff/TODO: Updated.
4465 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4467         * doc/groff.texinfo: Fix comment how to compile the DVI file.
4469 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4471         * font/devps/generate/Makefile (SHELL): Define explicitly to
4472         "/bin/sh", for non-Unix platforms.
4473         (extraclean): Use a more portable "" quoting instead of a
4474         backslash (which doesn't work on DOS/Windows).
4475         
4476         * font/devlj4/generate/Makefile (extraclean): Ditto.
4478         * font/devdvi/generate/Makefile (extraclean): Ditto.
4480 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4482         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4483         src/roff/troff/troff.man: Document Eli's latest changes.
4485 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4487         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4488         macro file names of the form NAME.tmac as well as tmac.NAME.
4490 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4492         * src/include/posix.h: Remove definition of FILENAME_MAX.
4494         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4495         `sys_fatal' and `stop' function().
4497         * test-groff: Updated.
4499 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
4501         Added the new troff command .output <arg> to suppress output (while
4502         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4503         registers (for passing the output dimensions to the output device).
4505         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4506         parameter.
4507         * src/roff/troff/node.h, src/roff/troff/node.cc
4508         (troff_output_file::really_print_line,
4509         ascii_output_file::really_print_line,
4510         supress_output_file::really_print_line): Use `width' parameter.
4511         (troff_output_file::really_on, troff_output_file::really_off,
4512         output_file::on, output_file::off, real_output_file::on,
4513         real_output_file::off, real_output_file::really_on,
4514         real_output_file::really_off): New functions.
4515         (real_output_file:public output_file): New variable `output_on'.
4516         (real_output_file::begin_page, real_output_file::copy_file,
4517         real_output_file::transparent_char, real_output_file::print_line):
4518         Use it.
4519         (real_output_file::print_line): Use check_output_limits.
4520         * src/roff/troff/reg.h, src/roff/troff/request.h,
4521         src/roff/troff/input.cc (assign_registers): New function to remove
4522         two `goto's.
4523         (do_ps_file): Use it.
4524         (check_output_limits, reset_output_registers, output_request,
4525         init_output_requests): New functions.
4526         (init_input_requests): Updated.
4528         Added new grohtml2 device and html2 preprocessor (coding
4529         not yet finished) which will eventually replace grohtml.
4531         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4532         Updated.
4533         * src/include/htmlindicate.h, src/include/htmlindicate
4534         (html_begin_suppress, html_end_suppress): New functions.
4535         * src/preproc/tbl/main.cc: Use it.
4536         * src/roff/groff/groff.cc: Add support for html2 device (which will
4537         automatically invoke the html2 preprocessor).
4538         * src/roff/troff/input.cc (is_html2): New variable.
4539         * src/roff/troff/troff.h, src/roff/troff/env.h,
4540         src/roff/troff/env.cc (environment::add_html_tag): New function
4541         (uses `is_html2').
4542         (environment::do_break): Use it.
4543         * font/devhtml2/*: New files.
4544         * src/devices/grohtml2: New device.
4545         * src/preproc/html2: New preprocessor.
4546         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4548 2000-08-23  Werner LEMBERG  <wl@gnu.org>
4550         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4552 2000-08-22  Werner LEMBERG  <wl@gnu.org>
4554         * src/include/lib.h: Provide a fix for IRIX to not include
4555         groff-getopt.h.
4557 2000-08-18  Werner LEMBERG  <wl@gnu.org>
4559         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4560         since some non-GNU sed programs can't handle null regexps.
4561         * configure, src/preproc/eqn/Makefile.sub,
4562         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4564         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4565         bug (string.h and strings.h are both needed according to latest
4566         POSIX standard).
4568         * MORE.STUFF: Added info about unroff and troffcvt.
4570 2000-08-08  Werner LEMBERG  <wl@gnu.org>
4572         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
4573         used before -ms.
4575         * tmac/tmac.man.old: Remove unused number register.
4577         * tmac.doc: Minor documentation fix.
4579 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4581         * src/roff/groff/pipeline.c (is_system_shell):
4582         Fix typo: "monocased_shell" no longer exists.
4584 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4586         Remove FILENAME_MAX limits.
4588         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
4589         that the argument length is less than FILENAME_MAX.
4590         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
4591         Use struct hack to allocate and free file name.
4592         (struct xtmpfile_list): fname is now part of the structure,
4593         not a pointer to another string.
4595 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
4597         * src/include/posix.h: Add a default value for FILENAME_MAX.
4599 2000-08-06  Paul Eggert  <eggert@twinsun.com>
4601         Add support for new BSD-style man pages (with ".Dd" instead of
4602         ".TH"), so that "groff -man" understands both styles, even
4603         when running "groff -man" on a host whose system man page
4604         macros don't support ".Dd".
4606         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
4607         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
4608         in case the system man macros don't define Dd or TH.
4610         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
4611         * tmac/tmac.an: New one-line file.
4612         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
4614 2000-08-06  Werner LEMBERG  <wl@gnu.org>
4616         * src/roff/troff/troff.man: Fixing typos.
4618 Version 1.16.1 released
4619 =======================
4621 2000-07-31  Werner LEMBERG  <wl@gnu.org>
4623         Preparing release 1.16.1.
4625         * REVISION: Revision number set to 1.
4626         * MORE.STUFF: Added info about port to DOS.
4627         * NEWS, win32-diffs: Updated.
4629         * src/include/nonposix.h: Remove first line -- this file is used
4630         in C also.
4632         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
4633         link to it.
4635 2000-07-30  Werner LEMBERG  <wl@gnu.org>
4637         * doc/texinfo.tex: Update to latest version.
4639 2000-06-28  Paul Eggert  <eggert@twinsun.com>
4641         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
4642         commands that fail.  Don't assume that "export a=b" is valid shell
4643         syntax.  This is needed for Solaris 2.5.1.
4645         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
4646         comment about missing Solaris headers.
4648         * PROBLEMS: Add section about problems with Sun Make and VPATH.
4650 2000-06-25  Werner LEMBERG  <wl@gnu.org>
4652         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
4653         SET_BINARY().
4655         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
4657         * win32-diffs: Updated.
4658         * README.WIN32: Added CRs to make all Windows editors happy.
4660         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
4661         src/roff/groff/pipeline.c).
4663 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
4665         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
4666         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
4668 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
4670         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
4671         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
4672         are binary files.
4673         (main): Support non-Posix systems with several different styles of
4674         slash characters in file names.
4676         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
4677         (main) [SET_BINARY]: Switch stdin into binary mode.
4679         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
4680         (main): Support file names with several possible slash-type
4681         characters, as given by DIR_SEPS[] in nonposix.h.
4682         (main) [__MSDOS__]: If renaming the temporary index file fails
4683         because it has more than one dot in its trunk, replace the dot
4684         with an underscore and try again.
4685         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
4686         Newline.
4687         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
4689         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
4690         (File::File): Open the input file in binary mode.  Strip CR
4691         characters from each CR-LF pair.
4692         (xbasename): Support file names with several possible slash-type
4693         characters, as given by DIR_SEPS[] in nonposix.h.
4695         * src/include/Makefile.sub (HDRS): Add nonposix.h.
4697         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
4698         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
4699         [!_POSIX_VERSION]: Define for traditional Unix systems.
4700         (real_output_file::real_output_file): Remove the MSVC-specific
4701         call to popen, use instead POPEN_WT, appropriately defined on
4702         nonposix.h.  #include nonposix.h.
4703         (real_output_file::~real_output_file): Remove the MSVC-specific
4704         call to pclose, a suitable macro is now defined on nonposix.h.
4705         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
4706         and WEXITSTATUS instead of assuming traditional Unix
4707         interpretation of the status returned by pclose.
4709         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
4710         call to popen, use POPEN_RT instead (appropriately defined on
4711         nonposix.h).  #include nonposix.h.
4712         (ps_bbox_request): Open the PostScript file in binary mode.
4713         Close the file after processing it.
4714         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
4715         nonposix.h.
4717         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
4718         A version of run_pipeline that doesn't use `fork'.
4719         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
4720         (system_shell_name, system_shell_dash_c)
4721         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
4722         the ugliness of testing DOS/Windows file names for equality, and
4723         support both stock shells and ports of Unix shells.
4725         * src/roff/groff/groff.cc: #include nonposix.h.
4726         (BSHELL): Definition moved to nonposix.h.
4727         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
4728         instead of a literal "-c".
4729         (xbasename): Support file names with several possible slash-type
4730         characters, as given by DIR_SEPS[] in nonposix.h.
4731         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
4732         of literal strings.
4734         * src/preproc/soelim/soelim.cc: #include nonposix.h.
4735         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
4737         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
4738         pic_tab.h.
4740         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
4742         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
4743         eqn_tab.h.
4745         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
4747         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
4748         P_tmpdir is defined, use it instead of the literal "/tmp".
4749         (remove_tmp_files, add_tmp_file): New functions.
4750         (xtmpfile): Record temporary files and register an atexit function
4751         to delete them explicitly, instead of relying on the OS to do
4752         that, which doesn't work on non-Unix systems.
4754         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
4755         (search_path::search_path): Use PATH_SEP instead of a literal
4756         colon.
4757         (search_path::command_line_dir): Ditto.
4758         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
4759         to support non-Posix systems.
4761         * src/libs/libbib/search.cc: #include nonposix.h.
4762         (search_list::add_file): Open the file in binary mode.
4764         * src/libs/libbib/linear.cc: #include nonposix.h.
4765         (file_buffer::load): Remove \r characters preceding \n from the
4766         loaded buffer.
4768         * src/libs/libbib/index.cc: #include nonposix.h.
4769         (make_index_search_item): Open index_filename in O_BINARY mode.
4770         (index_search_item_iterator::get_tag): Ditto.  Remove \r
4771         characters before \n characters.
4772         (index_search_item::check_files): Open files in binary mode.
4773         (index_search_item::munge_filename): Support DOS-style file names
4774         with backslashes and drive letters, use IS_ABSOLUTE.
4776         * src/devices/grops/ps.cc: #include nonposix.h.
4777         (main) [SET_BINARY]: Switch stdout to binary mode.
4779         * src/devices/grolj4/lj4.cc: #include nonposix.h.
4780         (main) [SET_BINARY]: Switch stdout to binary mode.
4782         * src/devices/grolbp/lbp.cc: #include nonposix.h
4783         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
4785         * src/devices/grodvi/dvi.cc: #include nonposix.h.
4786         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
4787         nonposix.h).
4788         (main) [SET_BINARY]: Switch stdout to binary mode.
4789         [_MSC_VER]: Remove an explicit call to _setmode.
4791         * src/include/nonposix.h: New file.
4793         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
4794         operation when building with DJGPP.
4795         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
4796         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
4797         ENVSETUP.
4799         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
4800         MS-DOS.
4801         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
4802         etc. can include a semi-colon on DOS/Windows.
4803         (depend.temp): Use depend1.temp instead of depend.temp1, to
4804         prevent files from overerwiting each other on 8+3 filesystems.
4806         * gendef.sh (t): Change definition to work with DOS/Windows.
4808         doc/groff.texinfo: Apart of some typo corrections, I also changed
4809         some index entris, to make them more non-ambiguous, and also put
4810         @ignore around some parts that are not yet written, to allow the
4811         Info output be readable.
4813 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
4815         Replaced specific checks for function declarations with a generic
4816         routine taken from GNU bfd.
4818         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
4819         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
4820         * configure.in: Use it.
4821         * src/devices/grolbp/lbp.cc, src/include/lib.h,
4822         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
4823         src/roff/groff/groff.cc: Use it.
4824         * Makefile.in, configure: Updated.
4826 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
4828         * src/devides/grolbp/lbp.h: Removed unused variables.
4830 2000-05-31  Keith Thompson  <kst@sdsc.edu>
4832         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
4833         strncasecmp().
4835 2000-05-31  Werner LEMBERG  <wl@gnu.org>
4837         * aclocal.m4 (GROFF_SRAND): New function to test the return value
4838         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
4839         * configure.in: Use it.
4840         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
4841         * configure, Makefile.in: Updated.
4843         * configure.in: Add test for strncasecmp().
4844         * src/include/lib.h: Use it.
4846 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
4848         * src/preproc/grn/Makefile.sub: Add MLIB.
4850 2000-05-29  Nix  <nix@esperi.demon.co.uk>
4852         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
4854 2000-05-29  Werner LEMBERG  <wl@gnu.org>
4856         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
4858         * PROBLEMS: Small update.
4860         * src/devices/grolbp/lbp.cc: Various small fixes.
4862 2000-05-28  Keith Thompson  <kst@sdsc.edu>
4864         * src/roff/nroff/nroff.sh: Fix main loop syntax.
4866         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
4868 2000-05-25  Werner LEMBERG  <wl@gnu.org>
4870         * man/roff.man: Removed unused macro.
4872 2000-05-24  Werner LEMBERG  <wl@gnu.org>
4874         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
4875         This is needed e.g. if you do
4876         `make distclean; ./configure; make dist'.
4878 Version 1.16 released
4879 =====================
4881 2000-05-23  Werner LEMBERG  <wl@gnu.org>
4883         Adding font CWI (constant width italic) to devdvi.
4885         * font/devdvi/CWI: New file.
4886         * font/devdvi/generate/Makefile: Add generating rule.
4887         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
4888         tmac/tmac.dvi: Use it.
4889         * NEWS: Announce it.
4891         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
4892         * font/devlj4/generate/Makefile: Cosmetic changes only.
4894         * man/groff.man: Removed most of the redundant description of
4895         special characters (which is in groff_char.man).  Added font
4896         translation CB->CR for devdvi.  Other minor fixes.
4898         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
4899         (registered) symbols.
4901 2000-05-22  Werner LEMBERG  <wl@gnu.org>
4903         * doc/Makefile: Added rule for creating info files.
4905         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
4906         AMS font metrics.
4907         * font/devdvi/generate/Makefile: Fixed dependencies.
4909         * font/devps/*: Regenerated.  Heavy changes for Bookman and
4910         NewCentury Schoolbook!
4911         * font/devps/generate/afmname: Will now run with GNU awk.
4912         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
4913         * font/devps/generate/Makefile: Cosmetic changes only.
4915 2000-05-21  Werner LEMBERG  <wl@gnu.org>
4917         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
4918         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
4919         `.SS' now produces a heading with a smaller size than `.SH'. 
4920         Completely formatted.
4921         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
4923         * man/groff.man: Improved table appearance.  Use of `eo' request
4924         to reduce number of doubled backslashes in macro definitions.
4925         Replacing `\e' with `\(rs'.  Other minor fixes.
4927         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
4928         to have correct line number.
4930         * INSTALL: Small improvement.
4932 2000-05-20  Bernd Warken  <bwarken@mayn.de>
4934         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
4935         WL).
4937 2000-05-19  Bernd Warken  <bwarken@mayn.de>
4939         * man/groff.man: Complete update (with a lot of corrections by WL).
4941 2000-05-18  Werner LEMBERG  <wl@gnu.org>
4943         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
4945         * font/*/*: Implement it.
4946         * man/groff_char.man, NEWS: Document it.
4948         * src/include/unix.h: Removed.  It isn't used.
4950         * doc/groff.texinfo: Slight improvements.
4952 2000-05-17  Werner LEMBERG  <wl@gnu.org>
4954         * README, win32-diffs: Small fixes and improvements.
4956 2000-05-16  Werner LEMBERG  <wl@gnu.org>
4958         * FDL: New file (the Free Documentation License version 1.1).
4960         * doc/groff.texinfo: Added many start-up values for gtroff.
4961         Some structural improvements of the source code.
4963 2000-05-15  Werner LEMBERG  <wl@gnu.org>
4965         * src/roff/troff/input.cc: Added small comment about troffrc-end.
4966         * src/roff/troff/troff.man: Added info about troffrc-end.
4968 2000-05-14  Werner LEMBERG  <wl@gnu.org>
4970         * Makefile.in (EXTRADIRS): Fix typos.
4971         (dist): Handle deletion of old .tar.gz file correctly.
4972         (DISTDIRS): Include all tty output devices.
4974         * doc/groff.texinfo: Adding more cross references; countless other
4975         fixes.
4977 2000-05-13  Werner LEMBERG  <wl@gnu.org>
4979         * MORE.STUFF: Added Robert Marks's utilities.
4981 2000-05-12  Werner LEMBERG  <wl@gnu.org>
4983         Added win32 port contributed by Blake McBride
4984         <blake@florida-software.com>.
4986         * README.WIN32, win32-diffs: New files.
4987         * NEWS: Updated.
4989         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
4990         (tmove, tmove2): Added parentheses to avoid compiler warnings.
4991         (change): Removed unused variables.
4993         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
4994         (savebounds): Changed return value from `int' to `void'.
4995         * src/preproc/grn/hdb.cc: Ditto.
4997         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
4998         final backslash in comment to avoid compiler warning.
5000         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5002         * doc/groff.texinfo: More fixes.
5004 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5006         * tmac/tmac.doc: Documentation fix.
5008 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5010         * doc/groff.texinfo: Reading the source code shows up a lot of
5011         omissions and incorrect data...  More conversion to @Deffn macros.
5013 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5015         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5016         dependency.
5018         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5020 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5022         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5023         improvements.
5025         * doc/groff.texinfo: Extended history section.  More conversion to
5026         @Deffn macros.  More .tr documentation.
5028 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5030         * doc/groff.texinfo: Completed tab section.  Added info about
5031         fields.
5033 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5035         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5037 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5039         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5040         LaTeX 2e).
5041         * NEWS: Document it.
5043         * man/troff.man: Minor optical improvements.
5045 2000-05-03  Werner LEMBERG  <wl@gnu.org>
5047         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5049         * font/*/*: Implement it.
5050         * man/groff_char.man, NEWS: Document it.
5052 2000-05-02  Werner LEMBERG  <wl@gnu.org>
5054         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5055         expansion.
5056         * NEWS: Document the three new man pages.
5058         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5059         * configure: Updated.
5061         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5063 2000-05-01  Werner LEMBERG  <wl@gnu.org>
5065         Added grap support to grog.
5067         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5068         * src/roff/grog/grog.man: Document it.
5070         * doc/groff.texinfo, NEWS: Add info about grap support.
5072         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5073         (with slight fixes by me).
5075         * tmac/groff_tmac.man: New file documenting tmac mechanism.
5076         * tmac/Makefile.sub: Add groff_tmac.man.
5077         * man/roff.man: New file giving overview of roff system.
5078         * man/troff.man: A short reference of troff.
5079         * man/Makefile.sub: Add roff.man and troff.man.
5081 2000-04-30  Werner LEMBERG  <wl@gnu.org>
5083         Added grap support to groff.
5085         * src/roff/groff/groff.cc: Implement it.
5086         * src/roff/groff/groff.man: Document it.
5088         * src/devices/grotty/grotty.man: Add cp1047 device.
5089         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5090         Ditto.
5091         * src/roff/groff/groff.man: Ditto.
5092         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5093         * doc/groff.texinfo: Ditto.
5095         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5096         for cp1047.
5098 2000-04-29  Werner LEMBERG  <wl@gnu.org>
5100         * man/groff_char.man: Add `pc' glyph.
5101         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5102         * tmac/tmac.tty: Add `pc' glyph.
5103         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
5104         we use cp1047 output device.
5106         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5107         there are still hardcoded latin1->unicode values in utf8's font
5108         definition files.
5109         * configure: Updated.
5110         * NEWS: Minor clarification.  Updated.
5112         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
5113         Unix.
5115 2000-04-28  Werner LEMBERG  <wl@gnu.org>
5117         Adding EBCDIC code page 1047.
5119         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5120         font/devcp1047/DESC.proto: New files.
5122         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5123         either ascii/latin1 or cp1047.
5124         * Makefile.in: Use it.
5125         * configure: Updated.
5127         Replacing and/or adding `md' (mathdot) glyph with `pc'
5128         (periodcentered) in all text fonts.
5130         * font/*/*: Change it.
5132 2000-04-27  Werner LEMBERG  <wl@gnu.org>
5134         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5136         * configure.in: Add check for strings.h.
5137         * src/include/driver.h: Use HAVE_STRINGS_H.
5138         * src/devices/grolbp/lpb.cc: Remove string.h.
5140         * src/include/groff-getopt.h: New file.  It will be used instead of
5141         getopt.h (to be included in lib.h) to avoid endless problems with
5142         picky C++ compilers.
5143         * src/include/lib.h: Use groff-getopt.h.
5144         * src/include/Makefile.sub: Updated.
5146         * configure: Updated.
5147         * Makefile.in: Updated.
5149         * NEWS: Mention EBCDIC support.
5151 2000-04-26  Werner LEMBERG  <wl@gnu.org>
5153         * TODO: Some additions.
5155 2000-04-25  Werner LEMBERG  <wl@gnu.org>
5157         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5158         of mso request.
5160 2000-04-23  Werner LEMBERG  <wl@gnu.org>
5162         * src/roff/troff/troff.man: Minor fixes.
5164 2000-04-22  Werner LEMBERG  <wl@gnu.org>
5166         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5167         `.T' string register and the incompatible definition of the `.T'
5168         number register (compared to Unix troff).
5170         * man/groff_char.man: Add some missing characters.
5171         * font/devutf8/NOTES: Update.
5173 2000-04-21  Werner LEMBERG  <wl@gnu.org>
5175         * src/include/htmlindicate.h, src/include/lib.h,
5176         src/include/posix.h: Fix copyright.
5178         * src/include/Makefile.sub: Update.
5180 2000-04-20  Werner LEMBERG  <wl@gnu.org>
5182         * src/roff/troff/input.cc (input_char_description): Removing
5183         superfluous space char.
5185         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5187         * doc/groff.texinfo: Document EBCDIC.
5189 2000-04-19  Werner LEMBERG  <wl@gnu.org>
5191         Introducing `shc' as the glyph name for the soft hyphen character.
5193         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5194         font/devlatin1/R.proto: Use it.
5196         * NEWS: Updated.
5198 2000-04-18  Werner LEMBERG  <wl@gnu.org>
5200         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5201         dependency on ASCII order.
5203 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
5205         * src/libs/libgroff/illegal.c: Added EBCDIC table.
5206         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5208         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5209         to increase portability.
5211 2000-04-15  Werner LEMBERG  <wl@gnu.org>
5213         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5214         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5215         the generic `\n' if under OS/390 Unix.
5217         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5219         * configure: Regenerated.
5221 2000-04-14  Werner LEMBERG  <wl@gnu.org>
5223         * doc/groff.texinfo: More conversions to @Deffn.
5225 2000-04-12  Werner LEMBERG  <wl@gnu.org>
5227         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5228         with `:'.
5230         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5232 2000-04-10  Werner LEMBERG  <wl@gnu.org>
5234         * doc/groff.texinfo: More conversions to @Deffn.
5236 2000-04-08  Werner LEMBERG  <wl@gnu.org>
5238         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5239         Updated to latest version (glibc 2.1.3).
5241 2000-04-07  Werner LEMBERG  <wl@gnu.org>
5243         * doc/Makefile (clean): Include more index files.
5244         Add rule texinfo->dvi.
5246 2000-04-05  Werner LEMBERG  <wl@gnu.org>
5248         * doc/groff.texinfo: Added new index `op' for operators.  More
5249         info on end of sentence characters.  More use of @Deffn.
5251 2000-03-30  Werner LEMBERG  <wl@gnu.org>
5253         * */*.man: Adding a note that a whitespace can be inserted between
5254         a command line option and its parameter -- we are using GNU getopt.
5256         * src/roff/groff/groff.man: Add example of `-m mandoc'.
5258 2000-03-28  Werner LEMBERG  <wl@gnu.org>
5260         Correct anachronism of calling the man macro file with `-man'
5261         instead of `-m man' etc.
5263         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5264         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5265         load tmac.<package>.
5267         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
5269         * NEWS: Updated.
5271         * doc/groff.texinfo: Updated.
5273         * tmac/groff_man.man: Copyright added.
5275 2000-03-27  Werner LEMBERG  <wl@gnu.org>
5277         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5278         typeset the request resp. escape name with a tt font -- due to a
5279         bug in texinfo.tex it is necessary to use the `-e' switch with
5280         texi2dvi.
5282         Improving info about usage of groff units.
5284         Other minor fixes.
5286 2000-03-20  Werner LEMBERG  <wl@gnu.org>
5288         * doc/groff.texinfo: Added section about man macro package
5289         (I've basically taken groff_man.man).  Introducing new indices `ma'
5290         for macros/strings and `gl' for glyph names.  Other minor fixes.
5292         * tmac/groff_man.man: Fixed some typos.
5294 2000-03-19  Werner LEMBERG  <wl@gnu.org>
5296         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5297         Other minor fixes.
5299         * doc/texinfo.tex: New file.
5301 2000-03-18  Werner LEMBERG  <wl@gnu.org>
5303         * doc/groff.texinfo: Improved section on number registers.  Other
5304         minor updates.
5306 2000-03-16  Werner LEMBERG  <wl@gnu.org>
5308         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
5309         synopsis.
5311         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5312         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5313         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5314         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5316         * src/preproc/grn/grn.man: Better synopsis; added copyright.
5318         * src/roff/grog/grog.man: Updated copyright date.
5320 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
5322         * configure.in: Added test for strdup.
5324         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5325         is available.
5327         Replaced dynamic allocation of arrays `[...]' with `new' operator.
5329         Other minor fixes.
5331 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
5333         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5335 2000-03-11  Werner LEMBERG  <wl@gnu.org>
5337         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5338         compilers silent.
5339         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5340         * src/include/lib.h: Remove some spaces.
5342 2000-03-10  Werner LEMBERG  <wl@gnu.org>
5344         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5345         initializers from arguments (some compilers don't like this).
5347 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
5349         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5350         used by pic and eqn to tell grohtml where the graphic regions start
5351         and end.
5352         * src/libs/libgroff/Makefile.sub: Use it.
5353         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5354         graphic_start() and graphic_end() from htmlindicate.cc.
5356 2000-03-09  Werner LEMBERG  <wl@gnu.org>
5358         * tmac/tmac.safer: Will now work correctly in compatibility mode.
5359         * tmac/groff_man.man: More fixes.
5361 2000-03-08  Werner LEMBERG  <wl@gnu.org>
5363         * doc/Makefile: Added texput.log to the `clean' target.
5364         * doc/groff.texinfo: Added info about delimiters for escapes.
5366 2000-03-08  Bernd Warken  <bwarken@mayn.de>
5368         * src/preproc/pic/pic.man: Add info on conversion of pic images to
5369         other graphic formats.
5371 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
5373         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5374         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5375         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5376         files.
5378 2000-03-07  Werner LEMBERG  <wl@gnu.org>
5380         * doc/groff.texinfo: Spelling fixes.
5382 2000-03-06  Werner LEMBERG  <wl@gnu.org>
5384         * tmac/groff_man.man: Completely revised to cover everything in
5385         tmac.an.
5387         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5388         Other minor fixings.
5389         * src/roff/troff/env.cc (environment_copy): Improve error message and
5390         fix itoa->i_to_a.
5391         * src/roff/troff/TODO: Updated.
5393         * doc/Makefile: Bug fixes -- this is still provisional, though...
5395         * tmac/eqnrc: Small fixes.
5397 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
5399         Adding a request `evc' to copy environments.
5401         * src/roff/troff/env.cc (environment::copy, environment_copy):
5402         Implement it.
5403         * src/roff/troff/env.h: Add prototype.
5405 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
5407         Adding strsep() -- Solaris 8 doesn't have it.
5409         * configure.in: Test it.
5410         * src/devices/grolbp/lbp.cc: Add code.
5412 2000-03-05  Werner LEMBERG  <wl@gnu.org>
5414         * src/roff/troff/div.cc (macro_diversion::output,
5415         top_level_diversion::output): Fixing an incompatibility with
5416         original troff: \x'0' updates the .a register also.  Thanks to
5417         <Andries.Brouwer@cwi.nl> for pointing this out.
5418         * doc/groff.texinfo: Document it.
5420         * Makefile.in: Create Makefile.dep if necessary before calling the
5421         submake process to avoid warning about nonexistent file.
5423         * NEWS, PROJECTS: Updated.
5425 2000-03-04  Werner LEMBERG  <wl@gnu.org>
5427         * tmac/troffrc: Add tmac.lbp.
5429 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
5431         * tmac/tmac.lbp: New file.
5432         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5433         command.
5435 2000-03-03  Werner LEMBERG  <wl@gnu.org>
5437         * Makefile.in: Fixing $(subdir).
5439         * README, NEWS: Small fixes.
5441         * test-groff: Adding path to grolbp.
5443         * configure.in: The (new) file src/xditview/Imakefile.in will be
5444         also configured -- it is now possible to build gxditview in a
5445         directory different from $srcdir.
5447 2000-03-02  Blake McBride  <blake@florida-software.com>
5449         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5451         * MORE.STUFF: Added website of bell labs and info about plot2dev.
5453 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
5455         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5456         files.
5458 2000-02-29  Werner LEMBERG  <wl@gnu.org>
5460         Adding GNU getopt to the groff distribution.
5462         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5463         New files.
5464         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5465         * aclocal.a4: Remove GROFF_GETOPT function.
5466         * configure.in, Makefile.in, PROBLEMS: Update.
5467         * src/include/lib.h: Replace getopt tests with getopt.h.
5468         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5470         * doc/groff.texinfo: Further checking/updating.  Adding more index
5471         entries.
5473         * man/groff_out.man: Fix nroff mode activation (for emacs).
5474         * man/groff_font.man: Add missing ligature.
5476 2000-02-28  Werner LEMBERG  <wl@gnu.org>
5478         * doc/groff.texinfo: Further checking/updating.  Adding more index
5479         entries.
5481         * src/devices/grolbp/grolbp.man: Added a comment line at the
5482         beginning of the file (similar to shell scripts) which indicates
5483         that `tbl' should be used as a preprocessor.
5485 2000-02-27  Blake McBride  <blake@florida-software.com>
5487         Adapting groff to MS Visual C++ 6.0 compiler (tested with
5488         Windows NT 4.0).  Uses _MSC_VER define where necessary.
5490         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5491         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5492         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5493         src/include/lib.h, src/libs/libgroff/errarg.cc,
5494         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5495         src/preproc/refer/label.y, src/preproc/refer/label.cc,
5496         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5497         src/roff/troff/div.cc, src/roff/troff/env.cc,
5498         src/roff/troff/input.cc, src/roff/troff/node.cc,
5499         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5500         if_to_a() to avoid name clashes.
5501         * src/include/posix.h: Don't use unistd.h.
5502         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5503         clause for integrating non-Unix xtmpfile() code.
5504         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5505         structure; use "rt" for popen() in pipe_source(); add getpid()
5506         dummy function.
5507         * src/roff/troff/node.cc: Use special versions of popen() in
5508         real_output_file() and pclose() in ~real_output_file().
5510 2000-02-27  Werner LEMBERG  <wl@gnu.org>
5512         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5513         LBP-8 series laser printers).  This code has been contributed by
5514         Francisco Andrés Verdú <pandres@dragonet.es>.
5516         * src/devices/grolbp/*: The grolbp output device.
5517         * font/devlpb/*: The font description files.
5518         * Makefile.in: Add grolpb and devlbp subdirectories.
5520         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5521         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5522         typographic fixes.
5524         * doc/groff.texinfo: Further checking/updating.  Adding more index
5525         entries.
5527         * NEWS: Updated.
5529         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5531         * man/groff_font.man: Adding info about obsolete DESC keywords.
5532         * src/devices/grolj4/grolj4.man: Documenting additional DESC
5533         keywords.
5535 2000-02-26  Werner LEMBERG  <wl@gnu.org>
5537         * src/preproc/grn/grn.man: Added info about the gremlin file format
5538         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5540 2000-02-25  Werner LEMBERG  <wl@gnu.org>
5542         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5543         friends to be non-integer.
5545         * src/preproc/grn/grn.man: Document it.
5547         * doc/groff.texinfo: Further checking/updating.  Adding more index
5548         entries.
5550 2000-02-24  Werner LEMBERG  <wl@gnu.org>
5552         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5553         line thicknesses to be integer multiples of this value.
5555         * src/preproc/grn/grn.man: Commenting out the -s option -- the
5556         corresponding code doesn't work (yet).
5558         * doc/groff.texinfo: Further checking/updating.  Adding more index
5559         entries.
5561 2000-02-23  Werner LEMBERG  <wl@gnu.org>
5563         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5564         specify line thickness instead of base units.  The new default
5565         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5566         thick lines respectively.
5568         Removed unused variable `prevval'.
5570         * src/preproc/grn/grn.man: Updated.
5572 2000-02-22  Werner LEMBERG  <wl@gnu.org>
5574         * src/preproc/grn/main.cc: Slight formatting.
5576         * src/roff/groff/groff.man: Formatting fix.
5577         * src/preproc/grn/grn.man: Ditto.
5579         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
5581         * doc/groff.texinfo: Further checking/updating.
5583 2000-02-21  Werner LEMBERG  <wl@gnu.org>
5585         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5587         * test-groff: Added grn subdir to path.
5589         * doc/groff.texinfo: Some restructing and other small improvements.
5591         * src/roff/groff/groff.cc (help): Fixed info string.
5593 2000-02-20  Werner LEMBERG  <wl@gnu.org>
5595         * doc/meref.me: Fix description of .GS request.
5597         * src/roff/troff/troff.man: Fixing typo.
5599         Adding the `grn' preprocessor for gremlin graphic files.
5601         * src/preproc/grn/*: This is the Berkeley distribution written by
5602         David Slattengren and Barry Roitblat, adapted to groff by Daniel
5603         Senderowicz and Werner Lemberg.
5605         * doc/grnexampl.{me,g}: A sample for grn.
5607         * Makefile.in: Added subdirectory entry for grn.
5609         * src/roff/groff/groff.cc: Added support for grn.  It can be now
5610         called with the switch `-g'.
5612         * src/roff/groff/groff.man: Updated.
5614         * src/roff/grog/grog.{man,pl,sh}: Updated.
5616         * NEWS: Updated.
5618 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
5620         * src/include/lib.h: Added xtmptemplate and made xtmpfile
5621         parametrically polymorphic.
5623         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
5624         and the alterations to xtmpfile.
5625         xtmpfile can be requested to return the filename created
5626         and asked not to unlink the temp file.  The default behaviour
5627         if parameters are absent is exactly the same as before.
5629 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
5631         A new request `length' is available which returns the length of a
5632         string in a number register:
5634         * src/roff/troff/input.cc (length_macro): Implement it.
5635         * src/roff/troff/input.cc (init_input_requests): Register it.
5637 2000-02-11  Werner LEMBERG  <wl@gnu.org>
5639         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
5640         of the `substring' request.
5642         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
5643         request.
5645         * src/roff/troff/TODO, NEWS: Updated.
5647 2000-02-09  Werner LEMBERG  <wl@gnu.org>
5649         * src/roff/groff/groff.man: Added an example.
5651 2000-02-06  Werner LEMBERG  <wl@gnu.org>
5653         I've considerably modified the directory structure of the
5654         distribution to get a more vertical layout.  For example, the number
5655         of top level directories has been reduced from 42 to 6.
5657         As a consequence, many changes, especially to the makefiles, were
5658         necessary:
5660         * The makefile variables `top_builddir' and `top_srcdir' have been
5661         introduced.  Virtually all relative paths have been replaced with
5662         absolute ones using these two variables.
5664         * Dependencies (in the files `Makefile.dep') are no longer part of
5665         the distribution.  Instead, they are created during a `make install'
5666         in the build directory.
5668         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
5669         make `top_srcdir' and `top_builddir' absolute.
5671         Some other changes:
5673         * Man pages no depend on the files `VERSION' and `REVISION'.
5675         * The added shell script `mkinstalldirs' will replace `mkdir' in
5676         almost all cases.
5678         * VERSION: Version number increased to 1.16.
5680 2000-02-04  Werner LEMBERG  <wl@gnu.org>
5682         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
5684         * Makefile.in: Removed $(tmac_m) since it is no longer needed
5685         (after an update of the mm stuff).
5687         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
5689 2000-02-03  Werner LEMBERG  <wl@gnu.org>
5691         The .psbb request will now also accept Mac PS images (i.e. using LF
5692         as the EOL character).
5694         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
5695         (with slight modifications).
5696         * troff/input.cc (do_ps_file): Use it.
5698         * test-groff: Add grohtml and grolj4 output devices to PATH.
5700 2000-01-30  Werner LEMBERG  <wl@gnu.org>
5702         * NEWS, MORE.STUFF: Updated.
5704 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
5706         Add the `srand' command to pic.
5708         * pic/lex.cc, pic/pic.y: Implement it.
5709         * pic/pic.man: Document it.
5710         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
5712 2000-01-30  Werner LEMBERG  <wl@gnu.org>
5714         Add a new request `.psbb'.  This does exactly what the external
5715         program psbb did.  It scans a PostScript image file for a
5716         %%BoundingBox comment and extracts the bounding box values (in
5717         PostScript units) which are then stored in the four new (read-only)
5718         number registers `llx', `lly', `urx', and `ury'.
5720         This will allow the usage of the .PSPIC macro without worrying
5721         about unsafe behaviour of groff, i.e., it will work without the
5722         `-U' switch of groff.
5724         * troff/input.cc: Implement it.
5725         * tmac/tmac.pspic: Use it.
5726         * troff/troff.man, grops/grops.man, NEWS: Document it.
5727         * psbb/*, Makefile.in: Remove it since it is no longer needed.
5729         This is bloody C code simply adapted from psbb.c!  Any improvements
5730         welcome.
5732 2000-01-29  Werner LEMBERG  <wl@gnu.org>
5734         * man/groff_font.man: Minor clarifications.
5736         * NEWS: Updated.
5738 2000-01-28  Werner LEMBERG  <wl@gnu.org>
5740         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
5742 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
5744         * man/groff_font.man: Brought up to date regarding tcommand
5745         extensions.
5746         * libgroff/font.cc: Handle everything after `--' as a comment
5747         in the font files.
5748         * devps/*: Added comment delimiter inside devps font files.
5750 2000-01-28  Werner LEMBERG  <wl@gnu.org>
5752         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
5753         \fC...\fP (which now works as expected).
5755         * troff/troff.man: Fix typo.
5757 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5759         Completed the pass_filenames implementation in troff.
5761         * libdriver/input.cc: Will read the new `F' tcommand.
5762         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
5763         * troff/input.cc: Use it.
5765 2000-01-26  Werner LEMBERG  <wl@gnu.org>
5767         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
5768         font will now be updated even if an invalid font is selected.
5770 2000-01-24  Werner LEMBERG  <wl@gnu.org>
5772         * doc/homepage.ms: Updated for new tmac.arkup.
5774         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
5776         * tmac/tmac.arkup: Cleanup.
5778         Added `\&' to .HTML macro to `leave vertical mode', so to say.
5780         Removed obsolete .LINK macro completely.
5782         The macros .URL, .FTP, and .MAILTO now accept a third argument which
5783         will be immediately appended to the second argument (to be used with
5784         punctuation, for example).
5786         Disabled .CDFTP macro temporarily for security reasons.
5788         * tmac/groff_markup.man: Complete revision for latest changes in
5789         tmac.arkup -- note that it does not yet format correctly with
5790         grohtml :-(
5792 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
5794         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
5795         * devutf8/R.proto: Add mappings for wp, lh, rh.
5796         * devutf8/NOTES: Updated.
5798 2000-01-23  Werner LEMBERG  <wl@gnu.org>
5800         * doc/groff.texinfo: Updated version/copyright info.
5802 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
5804         Added support for two new directives in device descriptions:
5805         `pass_filenames' (to pass the input file name to the output device)
5806         and `use_charnames_in_special' (to support e.g. accented characters
5807         in the `X' request).
5809         * include/font.h, troff/charinfo.h: Declare it.
5811         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
5813         * devhtml/DESC: Use it.
5815         * troff/input.cc: New function encoded_char.
5817         * troff/token.h: Add test for `specialness'.
5819 2000-01-21  Werner LEMBERG  <wl@gnu.org>
5821         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
5822         mistake from the list of files to be installed.
5824 2000-01-18  Werner LEMBERG  <wl@gnu.org>
5826         * README: Added info how to apply patches.
5828 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
5830         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
5832 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5834         * troff/input.cc: Add support for troffrc-end.
5836         * tbl/main.cc: Altered to issue table-start and table-end special
5837         characters if using the html device.
5839         * devhtml/*: Modified font files to incorporate html encoding of
5840         characters.
5842         * tmac/groff_markup.man: New file documenting tmac.arkup.
5844         * tmac/troffrc-end: New file.  This is invoked after all user
5845         specified macros.  Currently used by the html device to include
5846         tmac.html.  Thus no need for users to specify -mhtml anymore.
5848         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
5849         (MAN7): Add groff_markup.man.
5851         * tmac/tmac.an, tmac/tmac.html: Small html updates.
5853         * tmac/troffrc: tmac.arkup will now be called for the html device.
5855         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
5856         extra device specific information about fonts.
5858         * doc/homepage.ms: New file.  It is an example how an HTML home page
5859         could look like with grohtml.
5861         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
5863 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
5865         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
5866         of Im, Re.
5868         * devutf8/NOTES: Updated.
5870 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
5872         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
5873         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
5874         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5875         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
5876         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
5877         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
5878         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
5879         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
5880         warnings.
5882         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
5884 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
5886         grolj4: Paper size will be searched case-insensitively.
5888         * include/lib.h: Add check for strcasecmp().
5889         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
5890         * configure.in: Check for strcasecmp().
5892 2000-01-11  Werner LEMBERG  <wl@gnu.org>
5894         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
5895         `REVISION'.
5897 2000-01-10  Werner LEMBERG  <wl@gnu.org>
5899         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
5900         revision scheme.
5902         Add a new read-only register, `.Y', which contains the groff
5903         revision.
5905         * troff/input.cc (init_input_requests): Define it.
5906         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
5907         * doc/groff.texinfo, troff/troff.man: Document it.
5909         * libgroff/Makefile.sub (version.cc): Add definition of
5910         `Version_string[]', consisting of `<major>.<minor>.<revision>'
5911         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
5912         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
5913         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
5914         troff/input.cc, pfbtops/pfbtops.c: Use it.
5916 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
5918         Add a revision scheme to the groff package.
5920         * REVISION: New file.
5921         * libgroff/Makefile.sub (version.cc): Use it to define
5922         `revision_string[]'.
5923         * grops/psrm.cc: Use revision_string (converted to an unsigned
5924         integer) in constructor of resource_manager.
5926 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
5928         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
5929         files.
5930         * Makefile.in (DEVDIRS): Add devutf8.
5931         * grotty/tty.cc: Include device.h.
5932         (glyph): Change type of `code' to `unsigned int'.
5933         (tty_printer): New field is_utf8.  Constructor takes device argument.
5934         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
5935         (tty_printer::add_char): Change type of first arg to `unsigned int'.
5936         (tty_printer::put_char): New function.
5937         (tty_printer::end_page): Use put_char() instead of ::putchar().
5938         (make_printer): Pass device to tty_printer constructor.
5939         * nroff.sh: Determine default device by calling 'locale'.  As a
5940         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
5941         Recognize UTF-8 locales.
5942         * tmac/eqnrc: Recognize utf8 like latin1.
5943         * tmac/troffrc: Device utf8 needs tmac.tty.
5945 2000-01-07  Werner LEMBERG  <wl@gnu.org>
5947         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
5949 2000-01-07  Paul Eggert  <eggert@twinsun.com>
5951         Add a new predefined writeable number register, `year',
5952         which contains the current year.
5954         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
5955         * tmac/tmac.s: Use it.
5956         * troff/input.cc (init_registers): Initialize it.
5958 2000-01-06  Werner LEMBERG  <wl@gnu.org>
5960         * PROBLEMS: Fixed typo.
5962 2000-01-04  Paul Eggert  <eggert@twinsun.com>
5964         * PROBLEMS: Add Y2k advice for the yr number register.
5966 2000-01-03  Paul Eggert  <eggert@twinsun.com>
5968         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
5970 2000-01-02  Werner LEMBERG  <wl@gnu.org>
5972         * tmac/tmac.arkup: Slight modification of macros to provide better
5973         appearance for non-HTML formats.
5975 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
5977         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
5978         does not automatically translate to malloc(n) on all OSes
5979         (e.g., SunOS) so do it explicitly.  Also, check the returned
5980         value.
5982 2000-01-01  Werner LEMBERG  <wl@gnu.org>
5984         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
5986         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
5987         expects this variable
5989 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
5991         * doc/Makefile: Added instructions to create HTML and text
5992         versions of some files.
5994 1999-12-31  Werner LEMBERG  <wl@gnu.org>
5996         * Updated INSTALL.gen.
5998         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
5999         better resp. correctly with non-HTML devices.
6001 Version 1.15 released
6002 =====================
6004 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6006         * NEWS, VERSION: Changed to 1.15
6008 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6010         * nroff/nroff.man: -S is safer, not safe.
6012         * groff/groff.cc (main): Use `safer', not `safe', in variable
6013         names.  This does not change the behavior.
6015         * troff/input.cc (main): Likewise.
6017         * nroff/nroff.sh: Likewise.
6019         * troff/input.cc (prepend_string): New function.
6020         (main): Prepend -msafer, so that we check macro libraries for
6021         safety.
6023         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6025 Version 1.14 released
6026 =====================
6028 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6030         * NEWS, VERSION: Changed to 1.14.
6032 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6034         * refer/refer.cc: Fixing the last fix.
6036 Version 1.13 released
6037 =====================
6039 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6041         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6042         number disappear.
6044         * NEWS: Updated.
6046         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6048         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6049         document conventions, the version number must be a real.
6051 Version 1.12.1 released
6052 =======================
6054 1999-12-22  Werner LEMBERG  <wl@gnu.org>
6056         * VERSION: Changed to 1.12.1.
6058 1999-12-22  Alan Rooks  <arooks@istar.ca>
6060         * refer/refer.cc (do_file): Slight modification to satisfy the
6061         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6062         UnixWare 7.1.
6064 1999-12-20  Werner LEMBERG  <wl@gnu.org>
6066         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6067         notices.
6069         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6070         list of unsafe requests.
6072         * pic/pic.man: Fixed a typo.
6074         * man/groff_out.man: Fixed a typo.
6076 1999-12-18  Werner LEMBERG  <wl@gnu.org>
6078         * Makefile.in: Doc fixes.
6080 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
6082         * groff/groff.cc: Missing `U' option added to getopt().
6084         * troff/troff.man: Missing `U' option added to synopsis.
6086 Version 1.12 released
6087 =====================
6089 1999-12-14  Werner LEMBERG  <wl@gnu.org>
6091         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6092         to the synopsis.
6094         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6095         with the more appropriate terms `safer' and `unsafe'.
6097         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6098         sys_nerr and sys_errlist[].
6100         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6102         * pic/pic.y, pic/pic.cc: Added check for fmod().
6104 1999-12-13  Werner LEMBERG  <wl@gnu.org>
6106         * VERSION: Changed to 1.12.
6108         Here some patches from various sources; most of them taken from
6109         the Debian distribution.
6111         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6112         tmac/Makefile.sub: New files copied directly from the NetBSD
6113         distribution.  Probably, some additional adaptation later on is
6114         necessary...
6116         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6117         of unsafe requests.
6119         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6120         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6121         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
6122         (`-S') is now the default.
6124         * README, NEWS: Updated.
6126 1999-12-09  Werner LEMBERG  <wl@gnu.org>
6128         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6130         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6132 1999-12-06  Werner LEMBERG  <wl@gnu.org>
6134         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6135         grief than relief today.  Additionally, it is against the GNU
6136         coding standards.
6138         * configure: Recreated.
6140 1999-12-05  Werner LEMBERG  <wl@gnu.org>
6142         * configure.in: Added GROFF_LIBM.
6144         * configure: Recreated.
6146         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6147         necessary.
6149         * Makefile.in: Added definition of $(LIBM).
6151         * Makefile.comm (LIBM): Removed.
6153         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6155 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
6157         * doc/Makefile: Added rule for generation pic.html.
6159         (clean): Files produced by grohtml will be removed also.
6161         * doc/pic.ms: Small fix.
6163         * tmac/tmac.html: Fixed suppression of headers.
6165 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
6167         * tmac/tmac.html: Fixing horizontal arrows.
6169         Turning off hyphenation.
6171         * tmac/tmac.an: Improved support for grohtml; better indentation,
6172         no footers/headers.
6174 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
6176         * tmac/tmac.arkup: Added CDFTP macro
6178         * tmac/tmac.html: All headers are turned off for ms, me, and mm
6179         macros.
6181         * tmac/troffrc: Some additions for HTML stuff.
6183 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
6185         * tmac/tmac.html: Small changes.
6187 1999-09-26  Werner LEMBERG  <wl@gnu.org>
6189         * doc/groff.texinfo: Minor fixes.
6191 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
6193         * devhtml/TR: Changed spacewidth to 3.
6195         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6197         * tmac/tmac.html: Moved markup macros to tmap.arkup.
6199         * tmac/tmac.arkup: New file.
6201         * grohtml/ChangeLog: New file.
6203 1999-09-16  Werner LEMBERG  <wl@gnu.org>
6205         * doc/groff.texinfo (Common Features): Added Copying chapter.
6206         Changed format to @smallbook.
6208 1999-09-15  Werner LEMBERG  <wl@gnu.org>
6210         * NEWS: Added info about groff.texinfo.
6212         * doc/groff.texinfo: Will now compile (using texi2dvi) without
6213         warning messages.
6215 1999-09-14  Werner LEMBERG  <wl@gnu.org>
6217         * groff/groff.man: More updates.
6219 1999-09-13  Werner LEMBERG  <wl@gnu.org>
6221         * doc/groff.texinfo: New file.  This manual is still very
6222         rudimentary.  It has been originally contributed by Trent
6223         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6224         additions by me.
6226         * INSTALL: Added information about the `doc' subdir
6228         * troff/troff.man: Minor fixes.
6230         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6231         reordered options.
6233         * troff/input.cc (usage): Added missing `-ffam' to usage message.
6235         * Makefile.in (dist): groff-$(version).tar.gz must be removed
6236         also, otherwise it is included itself in another call of `make
6237         dist'.
6239         * groff/groff.cc (synopsis): Removed superfluous space.
6241         * PROJECTS, PROBLEMS, NEWS: Updated.
6243         * VERSION: Updated to 1.12beta.
6245         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
6247         * README: Updated: Included documentation about CVS repository,
6248         mailing lists, and daily snapshots.
6250         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6252 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6254         * tmac/tmac.an: If the tag didn't fit into the space that the
6255         macro `TP' specifies, the rest of the tag went into the space for
6256         the next line.
6258 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
6260         * grolj4/lj4.cc: Added duplex printing (option `-d').
6262         * grolj4/grolj4.man: Document duplex printing.
6264 1999-09-12  Werner LEMBERG  <wl@gnu.org>
6266         * doc/Makefile (pic.ps): Fixed rule which caused problems with
6267         non-GNUish sed programs.
6269         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6270         definition.
6272         * configure.in (LIBS): Added `-lc'
6274         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6276         * pic/tex.cc (solid_arc): Casting M_PI to double.
6278         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6280         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6281         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6282         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6284         * groff/groff_man.man: New file.  This manual page was originally
6285         written for the Debian GNU/Linux system by Susan G. Kleinmann
6286         <sgk@debian.org>.
6288         * eqn/list.cc (list_box::compute_metrics,
6289         list_box::compute_sublist_width): Removed variable declaration to
6290         avoid shadowing warnings.
6292         * grops/psrm.cc (resource_manager::process_file): Ditto.
6294         * tfmtodit/tfmtodit.cc (main): Ditto.
6296         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6297         to avoid shadowing warnings.
6299         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6300         shadowing loop variable.
6302         * groff/groff.man, troff/troff.man: Added doc about grohtml.
6304 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
6306         New grohtml frontend to convert groff input to html.
6308         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6310         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6312         * tmac/eqnrc: Added html device.
6314         * tmac/tmac.html: New file.
6316         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6317         (troff_output::start_picture, troff_output::finish_picture),
6318         tbl/main.cc (process_input_file):
6319         Surrounded output with `graphics_start' and `graphics_end' so that
6320         the html driver can identify non-text portions.
6322         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6323         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6324         grotty/tty.ps (tty_printer::set_char): Additional parameter
6325         `name'.
6327         * include/printer.h: Class printer: New function
6328         set_char_and_width; new variables (is_char_named, is_named_set,
6329         named_command, named_char_s, named_char_n) to hold information
6330         about named characters -- needed by the html driver.
6332         * libdriver/printer.cc (printer::set_ascii_char,
6333         printer::set_special_char): Use set_char_and_width.
6335         * devhtml/*: New device files for html driver.
6337         * grohtml/*: New driver grohtml.
6339 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
6341         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6342         default strings.
6344 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
6346         * libgroff/string.cc (search): Small fix to test against NULL
6347         pointer.
6349 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
6351         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6352         \b'abc') were stacked in reverse order when processed in a
6353         diversion.
6355         * troff/node.h: Added `*last' to struct `node' to make the above
6356         fix work.
6358         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6359         The default scale for the 'f' and 't' graphics functions were 'm'
6360         rather than 'u' (i.e., no scaling).
6362 1999-09-11  Peter Miller  <peterm@jna.com.au>
6364         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6365         do_file), soelim/soelim.man: Added `-I file' option to soelim,
6366         defining include paths.
6368         * soelim/soelim.cc (include_path_append): New function.
6370 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
6372         * tbl/main.cc (process_options): Unix (at least Documenter's
6373         Workbench) tbl allows arbitrary non-alpha characters between
6374         options.
6376 1999-09-11  Paul Eggert  <eggert@twinsun.com>
6378         Y2k fixes.  Don't assume that the current year precedes 2000.
6380         * doc/meref.me: Add \n(y2, \n(y4.
6382         * tmac/doc-common (Yr): New number register.
6383         (Dd): Don't assume current year precedes 2000.
6385         * tmac/tmac.e (td): Likewise.
6386         (y2, y4): New number registers.
6388         * pic/pic.man: Update reference for pic paper to May, 1991
6389         version.
6391 1999-09-11  Werner LEMBERG  <wl@gnu.org>
6393         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6394         Removed quotation marks which prevented correct expansion of
6395         $(tmac_wrap).
6397         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6399 1999-09-10  Werner LEMBERG  <wl@gnu.org>
6401         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6402         `config.cache'.
6404         * Removed configure.old.
6406 1999-08-31  Werner LEMBERG  <wl@gnu.org>
6408         * VERSION: Updated to 1.11.1
6410 1999-05-27  Werner LEMBERG  <wl@gnu.org>
6412         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6414         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6415         added quotations around $(tmac_wrap) to avoid syntax error if
6416         variable is empty.
6418         * configure: Newly generated using autoconf 2.13.
6420         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6422 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
6424         * README, PROJECTS, NEWS, INSTALL, VERSION, 
6425         doc/Makefile. doc/pic.ms, groff/groff.man:
6426         Prepare for 1.11 release.  No code changes.
6427         Documentation for pic added (doc/pic.ms).
6429 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
6431         * Version 1.10 released.
6433 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
6435         * afmtodit/afmtodit.pl: Avoid comment on first line.
6437 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
6439         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6440         * configure.in: Call it.
6442         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6443         (distfiles): Doesn't depend on config.log or config.cache.
6445 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
6447         * grog/grog.sh: Use print "" rather than print in END rule.
6449 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
6451         * tbl/main.cc (process_data): Don't give error for excess data
6452         entries that are comments.
6454 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
6456         * tbl/main.cc (process_data): Fix case where new for-scope rules
6457         silently change meaning of code.
6459 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
6461         * troff/env.cc (hyphenate): Loop over all consecutive sequences
6462         of non-zero hyphenation codes.
6464 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
6466         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6468 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
6470         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6472 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
6474         * tmac/tmac.andoc: Make it work in compatibility mode.
6476         * refer/token.h (token_info::is_range_sep): New function.
6477         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6478         * refer/ref.cc (reference::output): More sophisticated check for
6479         multiple pages.
6481         * devps/prologue.ps (MANUAL): New procedure.
6482         * grops/ps.cc (main): New -m option.
6483         (usage): Include -m.
6484         (ps_printer::~ps_printer): Implement -m.
6486         * aclocal.m4 (GROFF_G): New macro.
6487         * configure.in: Call it.
6488         * Makefile.in (g): Provided by configure.
6490         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6492         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
6493         translations.
6495         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6496         (tmac_m, tmac_s): Deleted.
6497         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6498         tmac_s_prefix): New variables.
6499         (MDEFINES): Change accordingly.
6500         * Makefile.comm (.man.n): Use new TMAC_* variables.
6501         * configure.in (GROFF_TMAC): Call.
6502         * aclocal.m4 (GROFF_TMAC): Define.
6503         * tmac/Makefile.sub (stamp_wrap): New target.
6504         (install_data, uninstall_sub): Handle macro wrapping.
6506 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
6508         * tbl/main.cc (main): Ignore -T option.
6510 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
6512         * devlj4/generate/special.map: Add definition of \(nb.
6514         * tmac/tmac.dvi: Add definition of \(nb.
6516         * troff/dictionary.c (dictionary::dictionary): association::v gets
6517         initialized by association::association.
6519         * tmac/Makefile.sub: Avoid using temporary files when installing.
6521         * troff/env.cc (environment::set_font): Make bad font number a
6522         warning.
6524         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6526         * Makefile.in (datadir): Use share rather than lib.
6528         * groff/groff.cc (basename): Rename to xbasename.
6530 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
6532         * Makefile (CCLIBS): Don't use.
6533         * Makefile.ccpg: Likewise.
6535         * acgroff.m4: Rename to...
6536         * aclocal.m4: Modify extensively for autoconf 2.
6537         * configure.in: Likewise.
6538         * Makefile.in: Likewise.
6540         * groff/pipeline.c (const): Declare as empty if __STDC__ not
6541         defined.
6542         (xstrsignal): Check for definition of NSIG. Conditionalize
6543         on SYS_SIGLIST_DECLARED.  Make return type const.
6545 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
6547         * troff/input.cc (interpolate_macro): Rephrase missing space
6548         warning.
6550 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
6552         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6553         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6554         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6555         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6556         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6557         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6558         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6559         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6560         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6561         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6562         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6563         Fix 'for' scoping.
6565 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
6567         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
6568         string_iterator.
6569         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
6570         file.
6571         (macro_iterator::macro_iterator): Add additional argument.
6573 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
6575         * troff/div.cc (vertical_size::vertical_size): In place of integer
6576         specifying line spacing use cunits specifying post vertical
6577         space.
6578         (macro_diversion::output, top_level_diversion::output): Likewise.
6579         * troff/div.h: Change declarations accordingly.
6580         * troff/env.cc (pending_output_line): Replace ls field by post_vs
6581         field.
6582         (pending_output_line::pending_output_line,
6583         pending_output_line::output, environment::output,
6584         environment::output_line, environment::output_title,
6585         environment::hyphenate_line):  In place of
6586         integer specifying line spacing use cunits specifying post vertical
6587         space.
6588         (environment::environment): Add post_vertical_spacing and
6589         prev_post_vertical_spacing arguments.
6590         (environment::get_post_vertical_spacing): New function.
6591         (environment::total_post_vertical_spacing): New function.
6592         (environment::post_vertical_spacing): New function.
6593         (init_env_requests): Initialize pvs request and .pvs register.
6594         * troff/env.h: Change declarations.
6596 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
6598         * tmac/tmac.pspic: Immediately remove the temporary file.
6600 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
6602         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
6603         height is specified.
6605 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
6607         * tbl/table.c (struct vertical rule, class table_entry): Use int
6608         not short for start_row and end_row.
6610 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
6612         * troff/input.cc (trapping_blank_line, blank_line_macro): New
6613         functions.
6614         (diverted_space_node::reread, process_input_stack): Call
6615         trapping_blank_line() rather than blank_line().
6616         (init_input_requests): Bind "blm" to blank_line_macro().
6618         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
6620 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
6622         * troff/env.cc (environment::possibly_break_line): Require that
6623         width total excluding width of final space node be greater than
6624         the target text length.
6626 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
6628         * troff/node.cc (kern_pair_node::vertical_extent): New function.
6630 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
6632         * troff/node.cc (charinfo_node): New class.
6633         (glyph_node, composite_node): Derive from charinfo_node.  Change
6634         member functions accordingly.
6636 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
6638         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
6640 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
6642         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
6644         * devps/generate/textmap (notsubset): Add.
6646         * tmac/tmac.a4: New file.
6648 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
6650         * pic/main.cc (had_parse_error): New variable.
6651         (do_picture, do_whole_file): Set had_parse_error if yyparse()
6652         returns non-zero.
6653         (main): Return 1 if had_parse_error is true.
6655 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
6657         * grolj4/lj4.cc (main): Avoid use of strtoul.
6659 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
6661         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
6662         iso_8859_1 or $LESSCHARSET is latin1.
6664 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
6666         * hpftodit: New directory.
6667         * Makefile.in (CCPROGDIRS): Add hpftodit.
6668         * devlj4/generate: New directory.
6670 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
6672         * configure.in: Don't use AC_VFORK.
6673         * groff/pipeline.c (run_pipeline): Use fork() always.
6675 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
6677         * grops/ps.cc (main): Use %1 not %s in error message for -w.
6679         * Makefile.in (CCPROGDIRS): Add grolj4.
6680         (DEVDIRS): Add devlj4.
6681         * grolj4, devlj4: New directories.
6682         * tmac/troffrc: Handle lj4.
6683         * tmac/tmac.lj4: New file.
6685 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
6687         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
6689 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
6691         * troff/input.cc (do_if_request): At end of second string, switch
6692         environments before getting next token.
6694 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
6696         * devps/psstrip.sed: Split rule that strips whitespace on either
6697         side of delimiters.
6699 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
6701         * troff/node.h (font_family::make_definition): Add return value to
6702         declaration.  * troff/symbol.h (symbol::operator==,
6703         symbol::operator!=): Likewise.
6705 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
6707         * groff/groff.cc (main, help, synopsis): Handle -S.
6708         (possible_command::insert_arg): New function.
6710         * tmac/tmac.safer: New file.
6711         * tmac/msafer.man: New file.
6712         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
6714 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
6716         * pic/pic.h, pic/main.cc (safer_flag): New variable.
6717         * pic/pic.y (placeless_element): Avoid unsafe operations if
6718         `safer_flag' is set.
6719         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
6721 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
6723         * eqn/lex.cc (get_token): Put call to add_context() in block to
6724         work around Sun C++ 4.0 bug.
6726         * include/stringclass.h (operator +): Use ?: instead of `if' to
6727         work around Sun C++ 4.0 bug.
6729 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
6731         * tbl/main.cc (process_format): Accept - as a synonym for the _
6732         key letter.
6734         * libbib/index.cc (minus_one): Don't declare as const.
6736 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
6738         * troff/input.cc (get_char_for_escape_name): Push back a newline.
6740 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
6742         * troff/input.cc (write_macro_request): New function.
6743         (init_input_requests): Bind write_macro_request to writem.
6745 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
6747         * tmac/tmac.s (@EN): Turn filling back on even if there was no
6748         equation.
6750         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
6752         * tmac/tmac.s (@TS): Renamed from TS.
6753         (TS): Call LP then TS again.
6754         (cov*ab-init): Alias @TS to TS.
6756         * tmac/tmac.s: Allow QP or RS to initialize.
6758         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
6759         Move initializations of PS and LL here.
6760         (par@init): Don't initialize HY.  Avoid changing environment 0.
6761         (par*env-init): Don't all par@reset.
6763 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
6765         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
6767 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
6769         * Makefile.in (MDEFINES): Add LDFLAGS.
6770         (LDFLAGS): Add definition line.
6772 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
6774         * troff/input.cc (get_optional_char): Split off error check into...
6775         (check_missing_character): New function.
6776         * troff/token.h: Declare it.
6777         * troff/env.cc (margin_character): Don't call get_optional_char.
6778         Only call tok.next() after making the node.
6780         * include/lib.h (getopt): Make 2nd argument char *const *.
6782 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
6784         * nroff/conftest.sh: Deleted.
6786 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
6788         * pic/make-dos-dist: Deleted.
6790 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
6792         * devps/psstrip.sed: Strip comments before stripping trailing
6793         white space.
6795 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
6797         * Version 1.09 released.
6799 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
6801         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
6803 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
6805         * libgroff/font.cc (font::load_desc): Fix typo in error message.
6807 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
6809         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
6810         about returning without a value.
6812         * troff/charinfo.h (charinfo::get_special_translation): Cast
6813         TRANSLATE_NONE to int.
6815         * refer/token.cc (lookup_token, store_token): Remove bogus loop
6816         test.  Fix test so that it works with n unsigned.
6818         * pic/pic.y (defaults_table): Fully bracket initializer.
6819         * pic/lex.cc (lookup_keyword): Likewise.
6820         * eqn/lex.cc (token_table, def_table): Likewise.
6821         * eqn/box.cc (param_table): Likewise.
6822         * troff/input.cc (warning_table): Likewise.
6823         * libgroff/font.cc (table): Likewise.
6824         * grops/ps.cc (ps_printer::special): Likewise.
6825         * grops/psrm.cc (resource_manager::process_file): Likewise.
6826         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
6827         * refer/command.cc (command_table): Likewise.
6828         * addftinfo/addftinfo.cc (param_table): Likewise.
6830         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
6831         about temp's being unused.
6832         (unused): New function.
6834         * groff/pipeline.cc: Declare c_fatal.
6836         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
6837         uchar.
6839         * libbib/index.cc (index_search_item::load): Prevent compiler
6840         warnings about fd_closer's being unused.
6841         (unused): New function.
6843 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
6845         * troff/input.cc (copy_mode_error): Make `prefix' static.
6846         Fix typo.
6848         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
6849         defined.
6850         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
6851         HAVE_CC_OSFCN_H and modify accordingly.
6853         * troff/input.cc (init_charset_table): radicalex overlaps
6854         horizontally.
6856         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
6857         udodo!hans@relay.NL.net).
6858         * groff/configure.in: Call it.
6860         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
6861         * groff/configure.in: Call it.
6862         * include/lib.h: Conditionalize declaration of pclose.
6864         * troff/div.cc (last_page_number): New global variable.
6865         (top_level_diversion::begin_page): Exit if we just printed the
6866         last page.
6867         * troff/div.h (last_page_number): Declare it.
6868         * troff/input.cc (parse_output_page_list): Set last_page_number.
6870         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
6871         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
6872         tmac/tmac.X: Likewise.
6873         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
6874         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
6876 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
6878         * tmac/doc-ditroff (hK): Remove groff specific code which
6879         prevented page-breaks between separate manual entries.  If this is
6880         the first page, don't set the page number to 1.
6882         * acgroff.m4 (GROFF_POSIX): New macro.
6883         * configure.in: Use it.
6885         * troff/node.cc (class real_output_file,
6886         real_output_file::real_output_file,
6887         real_output_file::~real_output_file): Conditionalize use of
6888         popen/pclose on POPEN_MISSING.
6889         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
6890         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
6891         (pipe_source): Similarily.
6893         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
6895         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
6896         presence of declarations by trying to compile example with
6897         conflicting declarations.  (gcc only gives a warning for missing
6898         declarations.)
6900 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
6902         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
6903         (from Ulrich Lauther).
6905 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
6907         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
6909 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
6911         * indxbib/indxbib.cc (write_hash_table): Add code for case where
6912         pointers and ints have different sizes.
6914 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
6916         * tmac/tmac.s (par*env-init): Call par@reset.
6918 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
6920         * tmac/tmac.s (@IP): Switch to a new environment when diverting
6921         tag.
6922         (par*push-tag-env, par*pop-tag-env): New macros.
6924 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
6926         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
6927         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
6929         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
6930         comment.  Include <time.h>.
6932 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
6934         * grops/ps.cc (is_small_h, is_small_v): Deleted.
6935         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
6936         lines.
6938 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
6940         * troff/input.cc (read_request): Only print a prompt if reading
6941         from the terminal.  Also clearerr on EOF if reading from the
6942         terminal.  Declare isatty.
6944 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
6946         * refer/label.y: Rename map_t to map_func and extractor_t to
6947         extractor_func.
6949 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
6951         * include/assert.h: Don't use volatile.
6952         * libgroff/assert.cc: Likewise.
6954 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
6956         * troff/input.cc (abort_request): Look at character in tok before
6957         calling get_copy().
6959 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
6961         * troff/troff.h (NO_RETURN): Deleted.
6962         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
6963         * troff/input.cc (exit_troff): Likewise
6965         * Makefile.in: Remove `Making ...' messages since GNU make now
6966         gives these. 
6968         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
6970 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
6972         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
6973         to constant 1 inch.
6975 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
6977         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
6979 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
6981         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
6982         MARK_REG if there was no left delimiter.
6984 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
6986         * pic/troff.cc (troff_output::text): Set line thickness to
6987         relative before outputting text.
6989         * tmac/tmac.e (@k): Don't zero ?T.
6990         ((z): Likewise.
6992 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
6994         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
6996 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
6998         * troff/input.cc (decode_args): Warn about unquoted tabs (from
6999         Paul Eggert).
7001 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7003         * troff/input.cc (ignoring): New variable.
7004         (ignore): Set ignoring during call to do_define_macro.
7005         (do_define_macro): Clear ignoring before interpolating terminating
7006         macro.
7007         (copy_mode_error): New function.
7008         (get_char_for_escape_name, read_long_escape_name,
7009         interpolate_arg): Use copy_mode_error.
7010         (warning_table): Add WARN_IG.
7011         * troff/troff.h (WARN_IG): Declare.
7012         (WARN_TOTAL): Change accordingly.
7014         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7015         * groff/groff.cc (strsignal): Delete declaration.
7017 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7019         * troff/div.cc (page_offset): Use 'm' as default scaling.
7021 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7023         * nroff/nroff.sh: Ignore -u.
7025 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7027         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7029 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7031         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7032         drawing box.
7033         (B2): With -Tascii, leave additional vertical space before
7034         and after. Ensure that the left and right indent is restored to
7035         what it was even if the point size changes.  Don't call
7036         par@finish. Change the indent, line length and title length
7037         directly.  With -Tascii, make the width of the box 1n less.
7038         (B1): Remember 1n at the current point size.  Don't call
7039         par@reset.  Change the indent, line length and title length
7040         directly.  Ensure that the temporary indent is preserved.
7041         (par*box-mark-top): Turn off no spacing mode.
7043 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7045         * Makefile.in (dist): Use .gz suffix.
7047 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
7049         * troff/input.cc (main): Add return 0.
7050         * pic/main.cc (main): Use return instead of exit.
7051         * tbl/main.cc (main): Likewise.
7052         * eqn/main.cc (main): Likewise.
7053         * grops/ps.cc (main): Likewise.
7054         * grotty/tty.cc (main): Likewise.
7055         * groff/groff.cc (main): Likewise.
7056         * grodvi/dvi.cc (main): Likewise.
7057         * refer/refer.cc (main): Likewise.
7058         * indxbib/indxbib.cc (main): Likewise.
7059         * lkbib/lkbib.cc (main): Likewise.
7060         * soelim/soelim.cc (main): Likewise.
7061         * addftinfo/addftinfo.cc (main): Likewise.
7062         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7063         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7065         * troff/token.h (process_input_stack): Don't declare as static.
7066         * troff/input.cc: Likewise.
7068         * troff/node.c (invalidate_fontno): Make it a static member of
7069         class font_family.  Change callers.
7070         * troff/node.c: Change declaration.
7072         * tbl/main.cc (struct input_entry_format): Add explicit public
7073         specifier.
7074         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7075         struct double_hline_stuff): Likewise.
7076         * tbl/table.h (struct entry_format): Likewise.
7077         * pic/object.h (struct saved_state): Likewise.
7079         * include/stringclass.h: Add forward declarations of friend
7080         functions that are later declared as inline.  Don't include inline
7081         specifier in friend declaration.
7083         * libgroff/lib.h: Declare popen and pclose.
7084         * acgroff.m4 (GROFF_POPEN): New macro.
7085         * configure.in: Call it.
7087         * include/lib.h (PI): New constant. Undef first if necessary.
7088         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7089         * grops/ps.cc (degrees, radians): Likewise.
7090         * libgroff/font.cc (font::get_skew): Likewise.
7092         * grops/ps.cc (is_ascii): New function.
7093         (ps_output::put_string): Use is_ascii.  Use csprint rather than
7094         isprint.
7095         (ps_printer::define_encoding): Use csspace.
7096         * libgroff/strtol.c (ISASCII): New macro.
7097         (strtol): Cast arguments to is*() and tolower() to unsigned char.
7098         Use ISASCII rather than isascii.
7099         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7100         * libgroff/cset.cc: Likewise.
7101         * libdriver/input.cc: Include cset.h.
7102         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7103         than isdigit().
7105         * refer/refer.cc (main): Use %ld rather than %d for longs.
7107         * libbib/index.cc (index_search_item_iterator::get_tag): Use
7108         S_ISREG macro.
7110         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7112 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
7114         * troff/input.cc (hyphenation_code): Skip white space between
7115         char/code pairs.
7117 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
7119         * tbl/table.h (table::entry_list_tailp): New member.
7120         (table::table): Initialize it.
7121         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7122         behaviour.
7124 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
7126         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7127         with negative horizontal positions. Remove casts of glyph::hpos to
7128         int.
7129         (USHRT_MAX): Delete definition.
7130         (SHRT_MAX, SHRT_MIN): New definitions.
7131         (glyph::hpos): Change type to short.
7132         (tty_printer::end_page): Output multiple backspaces if necessary.
7133          Remove casts of glyph::hpos to int.
7134         
7135 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
7137         * tmac/tmac.s (@RT): New definition.
7139 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
7141         * refer/refer.cc (do_file): Make sure current_filename is set when
7142         filename is "-".
7144         * pic/common.cc (common_output::dot_line): Handle zero length
7145         lines.
7147 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
7149         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7150         (par@init): Initialize \n[HY].
7152 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
7154         * troff/dictionary.cc (dictionary::remove): Continue when
7155         r < j < i.
7157 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
7159         * Makefile.com (.y.cc): Avoid ending up with two versions of
7160         $(YTABH).
7162 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
7164         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7165         (\(,C): Likewise.  Also fix typo.
7167 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
7169         * lib.h: Delete extraneous semi-colon.
7171         * Add pso request: `so' from a pipe.
7172         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7173         (file_iterator::close): New function.
7174         (file_iterator::~file_iterator, file_iterator::next_file): Use
7175         file_iterator::close.
7176         (file_iterator::backtrace): Say `process' rather than `file' when
7177         the stream is popened.
7178         (pipe_source): New function.
7179         (init_input_requests): Bind ".pso" to pipe_source.
7181 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
7183         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7185         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
7186         digits in lower case.
7188 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
7190         * Version 1.08 released.
7192         * Makefile.in (dist): Insert || true after ln -s commands that
7193         might fail.
7195         * mm: Update to mm 1.16.
7197         * acgroff.m4 (GROFF_CSH_HACK): New macro.
7198         * configure.in: Call GROFF_CSH_HACK.  Substitute for
7199         SH_SCRIPT_SED_CMD.
7200         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
7201         MDEFINES.
7202         * nroff/Makefile.sub (nroff): New target.
7203         (install_data): Install nroff.
7204         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7205         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7207 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
7209         * eqn/Makefile.sub (neqn): Add chmod +x.
7211         * grog/Makefile.sub (grog): Remove spurious semi-colon.
7213 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
7215         * troff/input.cc (string_iterator::string_iterator()): Initialize
7216         lineno and count.
7218 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
7220         * troff/div.cc (macro_diversion::space,
7221         top_level_diversion::space): Don't set high_water_mark.
7222         (macro_diversion::output, top_level_diversion::output): Don't
7223         include post line space in high water mark.
7225 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
7227         * eqn/eqn.y: Don't define YYDEBUG.
7228         * pic/pic.y: Likewise.
7230 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
7232         * tmac/tmac.e ([3): Add space after comma following editors.
7233         Change double spaces to single spaces.
7234         ([4): Change double spaces to single spaces.
7236         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7237         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7238         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7239         after %!PS-Adobe- (for Newsprint).
7241         * troff/div.cc (top_level_diversion::begin_page): When
7242         before_first_page is 1, set page_number to 1.
7244 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
7246         * eqn/box.cc (box::top_level): Protect equation with \&.
7248 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
7250         * groff/groff.cc (possible_command::set_name): Delete old name.
7252         * groff/groff.cc (possible_command::~possible_command): Use
7253         a_delete.
7255         * troff/node.cc (troff_output_file::begun_page): New member.
7256         (troff_output_file::troff_output_file): Initialize it.
7257         (troff_output_file::really_begin_page): Only output V command if a
7258         page has been begun.
7260         * pic/pic.y (placeless_element): Delete argument to PRINT after
7261         use.
7263 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
7265         * Make wrapman work.
7266         * troff/div.h (class top_level_diversion): Replace
7267         first_page_begun by before_first_page (with opposite sense).
7268         * Change first_page_begun to before_first_page inverting sense.
7269         * troff/div.cc (class nl_reg): New class.
7270         (init_div_requests): Use class nl_reg for \n(nl.
7271         (top_level_diversion::begin_page): Don't call
7272         output_file::begin_page if before_first_page is 2;
7273         reset before_first_page afterwards.  If have_next_page_number is
7274         false, then always increment page_number.
7275         * tmac/tmac.an: Set traps within TH rather than at the top-level.
7276         Restore compatibility mode after loading, and then disable
7277         compatibility mode in TH.
7279 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
7281         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7282         past last line.
7283         * troff/node.h (output_file::trailer): Declare.
7284         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7285         * troff/node.cc (output_file::trailer): New function.
7286         (troff_output_file::~troff_output_file): Move most code into...
7287         (troff_output_file::trailer): New function.
7288         (class troff_output_file): Delete page_length member. Declare
7289         trailer().
7290         (troff_output_file::really_begin_page): Use current page length
7291         for final V command.
7293         * tbl/main.cc (struct options): New decimal_point_char member.
7294         (options::options): Initialize this.
7295         (process_options): Implement decimalpoint option.
7296         (process_data): Pass decimal_point_char option to table::table.
7297         * tbl/table.h (class table): New decimal_point_char member.
7298         (table::table): Add additional argument.
7299         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7300         second argument specifying decimal point character.  Use this
7301         instead of '.'.
7302         (table::table): Initialize decimal_point_char.
7303         (table::add_entry): Change call to find_dot.
7305         * troff/input.cc (get_copy, token::next): Implement \V.
7306         (interpolate_environment_variable): New function.
7308 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
7310         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7311         * pic/pic.y: Likewise.
7313         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7314         Add casts to int.
7315         * refer/ref.cc (reference::insert_field, reference::delete_field):
7316         Likewise.
7317         * troff/number.cc (parse_term): Likewise.
7319         * acgroff.m4 (GROFF_PROG_YACC): New macro.
7320         * configure.in: Use GROFF_PROG_YACC.
7322         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7323         and g++.
7324         * Makefile.in (OPTIMIZE): New define.
7325         (DEBUG): Empty by default.
7326         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7328         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7329         (GROFF_ARRAY_DELETE): Likewise.
7330         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7332         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7334         * devps/psstrip.sed: Use different delimiter on last line (so that
7335         it works with BSD 4.4 sed.)
7337 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
7339         * devps/psstrip.sed: Delete comments.
7341         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7342         optind, opterr, optarg.
7343         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7344         opterr, optarg.
7346 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
7348         * Makefile.in (check): Dummy target.
7350 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
7352         * Version 1.07 released.
7354         * Integrate mm 1.11.
7356         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7357         where start_col was meant.
7359 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
7361         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7363 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
7365         * troff/input.cc (token::next): Make \z\o'...' and similar things
7366         work.
7368         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7369         constants.
7370         (environment): Add margin_character_flags member.
7371         * env.cc (environment::environment(symbol),
7372         environment::environment(const environment *): Initialize
7373         margin_character_flags.
7374         (margin_character): Rewrite.
7375         (environment::output_line): Add a margin character if
7376         margin_character_flags is non-zero.  Turn off the
7377         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
7378         zero, use margin_character_node without copying and then set
7379         margin_character_node to 0.
7381         * devps/DESC.in: Change minimum size to 1000.
7383 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
7385         * troff/symbol.h (symbol::hash): Change return type to unsigned
7386         long.
7387         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7388         Add casts to int.
7390         * test-groff: Use -r rather than -x.
7392         * grops/psfig.diff: Include in distribution again.
7394 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
7396         * Makefile.in (dist): Use gzip.
7398 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
7400         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7401         unistd.h as well as in stdlib.h.
7402         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7403         defined; otherwise include <sys/types.h> and <unistd.h> if
7404         UNISTD_H_DECLARES_GETOPT is defined.
7406         * configure.in: use builtin(include, ... rather than include(...
7407         * configure: Regenerate with autoconf 1.3.
7409         * libdriver/print.cc (printer::adjust_arc_center): Use new
7410         algorithm suggested by Andy Fyfe.
7412         * libdriver/printer.cc (printer::adjust_arc_center): New function.
7413         * include/printer.h: Declare this.
7414         * grops/ps.cc (ps_printer::draw): Use it.
7415         * grodvi/dvi.cc (dvi_printer::draw): Use it.
7417 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
7419         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7421 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
7423         * eqn/main.cc (main): Handle "eqn -".
7425 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
7427         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7429         * mm: Integrate version 1.08.
7431         * pic/troff.cc (troff_output::finish_picture): Set
7432         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7433         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7434         if it's not defined. Check whether the register is non-zero rather
7435         than whether it's not defined.
7436         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7438         * indxbib/indxbib.cc: Move all signal handling into...
7439         * indxbib/signal.c: New file.
7440         * configure.in: Call AC_RETSIGTYPE.
7442         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7443         * configure.in: Call GROFF_STRUCT_EXCEPTION.
7444         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7446         * troff/input.cc (token::token, token::operator=): Work round SGI
7447         C++ bug.
7448         * pic/object.cc (position::position): Likewise.
7450 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
7452         * pic/pic.h: Move declaration of hypot().
7454 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
7456         * pic/pic.h: Declare hypot().
7458         * pic/pic.h: Define M_PI if necessary.
7460 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
7462         * tmac/tmac.e (re): Add alternative version that doesn't use groff
7463         `.ta T' feature.
7465         * devps/prologue.ps (RE): Handle the possibility that the old font
7466         doesn't have a FontName entry.
7468 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
7470         * tmac/tmac.e (fam): Redefine to set family in environment 2.
7471         (@C): Use @fam not fam.
7473 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
7475         * lookbib/lookbib.cc (main): Change type of start to const char *.
7476         * lkbib/lkbib.cc (main): Likewise.
7478         * eqn/lex.cc (definition::definition): Don't use member
7479         initializer syntax for members of anonymous unions.
7481         * troff/input.cc (input_stack::backtrace): Change type of to const
7482         char *.
7484 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
7486         * include/stringclass.h (class string): Declare inline friend
7487         functions as inline in class declaration.
7488         * troff/hvunits.h (class hunits, class vunits): Likewise.
7489         * include/refid.h (class reference_id): Likewise
7490         * troff/troff.h (points_to_units(units), scale(units, double)):
7491         Delete declarations.
7492         * libdriver/input.cc (get_char): Delete declaration.
7493         * include/lib.h: Change 2nd argument of getopt from const char **
7494         to char **.
7495         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7496         char **' before assigning to a `const char **'.
7497         * tbl/table.cc: Delete extra declarations of prints().
7499 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
7501         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7502         char **' before assigning to a `const char **'.
7504         * libgroff/errarg.cc (errarg::errarg): Don't use member
7505         initializer syntax for members of anonymous unions.
7507 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
7509         * mm: Integrate version 1.07.
7511 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
7513         * troff/input.c (translate2): Rename to
7514         (translate_no_transparent).
7515         (init_input_requests): Rename tr2 to trnt.
7517 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
7519         * troff/charinfo.h (class charinfo): Add transparent_translate field.
7520         (charinfo::set_translation, charinfo::set_special_translation):
7521         Add second argument that specifies value for
7522         transparent_translate.
7523         (charinfo::get_translation, charinfo::get_special_translation):
7524         Add optional second argument that specifies whether translation is
7525         being used for transparent throughput.
7526         * troff/input.cc (charinfo::set_translation,
7527         charinfo::set_special_translation): Handle second argument.
7528         (charinfo::charinfo): Initialize transparent_translate.
7529         (translate): Split main part off into
7530         (do_translate): New function.  Pass argument saying whether
7531         translation applies to transparent throughput.
7532         (translate2): New request.
7533         (init_input_requests): Bind translate2 to `tr2'.
7535 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
7537         * tbl/table.h (class table): Add `nokeep' flag.
7538         * tbl/main.cc (process_options): Handle `nokeep' option.
7539         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7540         table::do_bottom): Don't output keep/release macro definitions or
7541         calls when `nokeep' option has been specified.
7543 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
7545         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7547 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
7549         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7550         block_entry::divert, alphabetic_block_entry::divert): Add extra
7551         argument giving column separation.
7552         (table::compute_widths): Pass column separation to
7553         table_entry::divert().
7554         (block_entry::do_divert): If an entry spans multiple columns and a
7555         minimumum width has been specified for each column, then set the
7556         line length to the sum of the widths (plus possibly the column
7557         separations).
7559         * troff/input.cc (set_escape_char): Don't set the escape_char
7560         until after calling has_arg().
7562 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
7564         * tbl/table.cc (table::do_top): Add missing \s0 for double box
7565         case.
7567         * tbl/table.cc (table::print_double_hline): Avoid extra new line
7568         in case where r > nrows - 1.
7570         * tbl/table.cc (BODY_HEIGHT): Deleted.
7571         (LINE_SEP): New definition.
7572         (table::print_single_hline, table::print_double_hline,
7573         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
7574         table::do_row, table::do_top): Use LINE_SEP space before a line
7575         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
7577         * tbl/table.cc (text_entry::print_contents): New function.
7578         (text_string_name, right_text_string_name): Deleted.
7579         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
7580         (simple_text_entry::do_width, numeric_text_entry::do_width,
7581         alphabetic_text_entry::do_width): Don't store the contents of the
7582         entry in a string.
7583         (left_text_entry::simple_print, right_text_entry::simple_print,
7584         center_text_entry::simple_print,
7585         alphabetic_text_entry::simple_print,
7586         numeric_text_entry::simple_print): Print the entry directly
7587         instead of using the stored string.
7589 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
7591         * devps/Makefile: Strip PostScript files.
7592         * devps/prologue: Rename to...
7593         * devps/prologue.ps.
7594         * devps/psstrip.sed: New file.
7595         * devps/download: Use .pfa rather than .ps for installed versions
7596         of fonts.
7598 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
7600         * troff/env.cc (input_trap): Give a warning if the argument is out
7601         of range.
7603         * troff/env.cc (adjust): Treat negative argument as missing. Round
7604         argument > 5 down to 5.
7606         * troff/env.cc (center, right_justify): Make negative argument zero.
7608         * troff/div.cc (page_offset, vertical_position_traps): Treat
7609         invalid argument as missing.
7610         * troff/env.cc (line_spacing, line_length, title_length, indent,
7611         underline, hyphen_line_max_request, control_char,
7612         no_break_control_char, widow_control_request, adjust, input_trap,
7613         point_size): Likewise.
7614         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
7615         constant_space): Likewise.
7616         * troff/input.cc (compatible, shift, warn_request,
7617         set_escape_char): Likewise.
7619         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
7620         * tbl/table.cc (table::table): Likewise.
7622         * Makefile.dev (install_dev): depends on $(DEVFILES).
7624 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
7626         * devX75, devX75-12, devX100, devX100-12: New directories.
7627         * Makefile.in: Add these to DEVDIRS.
7629         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
7630         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
7631         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
7632         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
7633         targets.
7634         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
7635         (uninstall): New target.
7636         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
7637         uninstall_prog, uninstall_dev): New targets.
7639         * troff/div.cc (return_request): Treat an invalid argument as
7640         missing.
7642 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
7644         * tmac/tmac.e ((f): Set up the environment even when there's a
7645         current diversion.  Transperently throughput a call to @N.
7646         (@N): New macro.
7648 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
7650         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
7651         up to vertical resolution.
7653         * tbl/table.cc (table::do_row): Change row number after printing
7654         stuff list.
7656         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
7658 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
7660         * Rename CHANGES to NEWS.
7662 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
7664         * libgroff/new.cc (operator new): Avoid calling malloc(0).
7666 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
7668         * man.ultrix: Removed.
7670 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
7672         * Makefile.comm (extraclean): Delete files whose names begin with
7673         `='.
7675         * pic/troff.cc (troff_output::text): Fix typo in implementation of
7676         aligned text.
7678 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
7680         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
7681         * troff/div.cc (page_length, need_space, space_request): Treat
7682         invalid optional argument as missing.
7683         * troff/env.cc (number_lines): If the first argument is present
7684         but not a number, turn on line numbering, don't change the next
7685         line number and parse the remaining arguments.
7687         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
7689 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
7691         * eqn/box.h: Change declaration accordingly.
7692         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
7693         the specified size was bad but don't give an error.  Check for
7694         overflow.
7695         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
7696         * eqn/lex (do_size): Likewise.
7698 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
7700         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
7701         compatible headers.
7703 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
7705         * tbl/table.cc (table::init_output): Improve error message when
7706         table won't fit on one page.
7708 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
7710         * pic/troff.cc (troff_output::start_picture): Generate line
7711         containing a horizontal motion equal to the width of the picture.
7713         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
7714         using GROFF_COMMAND_PREFIX environment variable.
7716 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
7718         * mdate.sh: Use $NF rather than $(NF).
7720 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
7722         * pic/main.cc (main):  Use %1 not %c in argument to warning.
7724         * eqn/main.cc (main): Output code to check that geqn was given the
7725         correct -T option.
7727 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
7729         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
7730         `ln -s ../Makefile .; make; rm -f Makefile'.
7732         * troff/hyphen: Rename to...
7733         * troff/hyphen.us:
7734         * troff/input.cc (main): Delete -H option. Don't call
7735         read_hyphen_file().
7736         * troff/env.cc: Include searchpath.h and macropath.h.
7737         (exception_dictionary): Deleted.
7738         (ht): Deleted.
7739         (read_hyphen_file): Deleted.
7740         (hyphenation_language): New struct.
7741         (class trie, class hyphen_trie): Move declarations up.
7742         (trie_node::~trie_node): Deleted.
7743         (trie::delete_trie_node): New function.
7744         (trie::do_delete): New pure virtual function.
7745         (hyphen_trie::do_delete): New function.
7746         (trie::~trie): New function.
7747         (hyphen_trie::~hyphen_trie): New function.
7748         (trie::clear): No need to chcek that tp is not 0.
7749         (current_language, language_dictionary): New variables.
7750         (hyphen_word): Give an error if no current language.  Use
7751         exceptions dictionary in current language.
7752         (hyphen_trie::read_patterns_file): Find file using macro_path.
7753         Allow comments (starting with %) in patterns file.  Don't make it
7754         a fatal error if the file can't be found.
7755         (hyphenate): Return if no current language.  Get the exceptions
7756         dictionary and the hyphenation patterns from the current language.
7757         (set_hyphenation_language): New variable.
7758         (hyphenation_patterns_file): New function.
7759         (hyphenation_language_reg): New class.
7760         (hyphenation_language_reg::get_string): New function.
7761         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
7762         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
7763         register.
7764         * groff/groff.cc (main, help, synopsis): Delete -H option.
7765         * include/Makefile.sub: Don't define HYPHENFILE.
7766         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
7767         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
7768         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
7769         hyphenation patterns.
7771 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
7773         * eqn/neqn.sh: New file.
7774         * eqn/Makefile.sub: Handle neqn.sh.
7776         * eqn/eqn.h: Declare `nroff' variable.
7777         * eqn/box.cc (param_table): Add `nroff' param.
7778         (nroff): Define it.
7779         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
7780         variable.
7781         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
7783         * troff/troff.h (WARN_FONT): New warning.
7784         (WARN_TOTAL): Change accordingly.
7785         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
7786         (warning_table): Add WARN_FONT.
7787         * troff/node.cc (mount_font_no_translate): Pass argument to
7788         font::load_font.  If this is non-zero, give a warning.
7789         Don't give an error message when accessing a font that has already
7790         been found to be invalid.
7791         * include/font.h (font::load, font::load_font): Add additional
7792         optional argument which suppresses error message if the font is
7793         not found.
7794         * libgroff/font.cc (font::load_font): Handle additional argument.
7795         (font::load): Add additional argument. If this is non-null, set it
7796         to 1 and don't give error message.
7798         * include/printer.h (printer::end_page): Add argument giving
7799         length of page.
7800         * libdriver/input.cc (do_file): Pass this.
7801         * grops/ps.cc (ps_printer::end_page): Add argument.
7802         * grodvi/dvi.cc (dvi_printer::end_page,
7803         draw_dvi_printer::end_page): Add argument.
7804         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
7805         columns_per_page members. New member nlines.
7806         (DEFAULT_LINES_PER_PAGE): Deleted.
7807         (tty_printer::tty_printer): Don't compute lines_per_page from
7808         font::paperlength. Don't compute columns_per_page from
7809         font::paperwidth.
7810         (tty_printer::add_char): Don't check horizontal position against
7811         columns_per_page. Grow glyphs vector if neccessary.
7812         (tty_printer::end_page): Add argument giving page_length in units.
7813         Discard lines past end of page.
7815 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
7817         * tmac/tmac.tty-char: Fix definition of \(/l.
7819         * tmac/tmac.X: Define \(en.
7821 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
7823         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
7824         lpq, then use lp rather than lpr.
7826         * tmac/tmac.s (par@reset): Don't call `ad'.
7827         (par*env-init): Call `ad'.
7829 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
7831         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
7832         date.
7834         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
7835         * indxbib/indxbib.cc: Likewise.
7837 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
7839         * libgroff/putenv.c: New file.
7840         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
7841         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
7842         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
7843         stdlib.h with AC_HAVE_HEADERS.
7845 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
7847         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
7848         does not exist.
7850 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
7852         * eqn/box.cc (gsize): Make it an int.
7853         (set_gsize): Parse argument handling increment or decrement.
7854         (box::top_level): Convert gsize to a string.
7856         * troff/input.cc (exit_troff): Make buf unsigned char [].
7857         Call to make_temp_iterator casts buf to char*.
7859         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
7861         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
7862         * Makefile.cpg (depend.temp): Likewise.
7864         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
7866         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
7868 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
7870         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
7872 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
7874         * Version 1.06 released.
7876         * Integrate mm 1.04.
7878 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
7880         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
7882 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
7884         * afmtodit/afmtodit.pl: Add -n option that disables generation of
7885         ligatures command.
7886         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
7887         afmtodit. Regenerate.
7889         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
7890         @f back past the current position.
7892         * tmac/tmac.e: Change calls to @R so that comments are not part of
7893         arguments.
7895 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
7897         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
7899         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
7900         check that we can link a call to a function declared in <stdio.h>.
7901         (GROFF_UNISTD_H): New macro.
7902         * configure.in: Call it.
7903         * Makefile.in: Document it.
7904         * include/posix.h: New file.
7905         * troff/troff.h: Don't include <osfcn.h>
7906         * troff/input.cc: Include posix.h.
7907         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
7908         osfcn.h.
7909         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
7910         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
7911         <fcntl.h>.
7912         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
7913         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
7914         * libbib/search.cc (O_RDONLY): Delete definition.
7915         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
7916         Don't include <osfcn.h>.
7918         * acgroff.m4 (GROFF_TIME_T): New macro.
7919         * configure.in: Call it.
7920         * Makefile.in: Document it.
7922         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
7923         * configure.in: Call it.
7924         * Makefile.in: Document -DTRADITIONAL_CPP.
7925         * include/ptable.h: Don't include generic.h.
7926         (name2): Define it.
7928         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
7929         Afterwards remove [T1 and [T2.
7930         (ref*spec!0, ref*spec!2): Use T1 rather than T.
7931         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
7932         (ref*add-T2): Renamed from ref*add-T.
7933         (ref*add-T1): New macro.
7935 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
7937         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
7939         * libbib/index.cc: Include <fcntl.h>.
7940         (O_RDONLY): Define if necessary.
7941         (make_index_search_item, index_search_item_iterator::get_tag,
7942         index_search_item::check_files): Use O_RDONLY.
7943         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
7944         (O_RDONLY): Define if necessary.
7945         (search_list::add_file): Use O_RDONLY.
7946         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
7947         <sys/stat.h>.
7948         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
7949         (main): Use these.
7951         * libbib/index.cc (S_ISREG): Define it if necessary.
7952         (index_search_item::load): Use S_ISREG.
7954         * include/driver.h: Include <errno.h>.
7956 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
7958         * eqn/box.cc (body_height): Increase default value to 85.
7959         (body_depth): Increase default value to 35.
7961 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
7963         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
7964         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
7965         protected from expansion with \E.
7967         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
7969         * Makefile (Makefile): New target.
7971         * Makefile.sub (configure, distfiles): New targets.
7973         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
7974         construct.
7976 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
7978         * eqn/box.cc (param_table): Add body_height and body_depth.
7980         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
7982 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
7984         * psbb/Makefile.sub: Don't link with libgroff.a.
7986         * acgroff.m4 (GROFF_PUTENV): New macro.
7987         * configure.in: Call GROFF_PUTENV.
7988         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
7989         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
7990         is defined.
7992         * troff/env.cc (distribute_space): Rename force_forward argument
7993         to force_reverse.  Reverse the list if force_reverse is true.
7995 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
7997         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
7999         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8000         height or depth to be negative.  Guard against SUP_RAISE quantity
8001         being negative.
8003 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8005         * devps/generate/textmap: Add `an' (arrowhorizex).
8006         * tmac/tmac.ps: \(an overlaps horizontally.
8007         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8009         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8010         * devps/textmap: Add arrowvertex.
8011         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8012         updownarrow delimiters.
8013         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8015         * tbl/table.cc (simple_entry::position_vertically,
8016         block_entry::position_vertically):  For a centered entry, perform
8017         the motion in two stages.
8019         * refer/refer.cc (split_punct): Don't call lookup_token if there
8020         is no token.
8022 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8024         * troff/input.cc (token::next): Delete token_node after copying
8025         token.
8027         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8028         cur_point_size.
8030         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8032         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8034 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8036         * grops/ps.cc (usage): -b option takes an argument.
8038         * devps/prologue (PLG): New procedure.
8039         * grops/ps.cc (main, usage): New -g option.
8040         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8041         length using PLG.
8043 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8045         * include/cset.h: Include <limits.h> if we have it.
8047         * libgroff/illegal.cc: New file.
8048         * include/lib.h (illegal_input_char): Use table.
8049         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8050         * pic/lex.cc (ARG1): Renumber to 14.
8051         * eqn/lex.cc (ARG1: Likewise.
8053         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8054         (eg 1.05.90) correctly.
8056 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
8058         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8059         Rename $r and $R registers to $v and $V.
8060         ($r, $R): Initialize to 0.
8061         (@v, @V): New macros.
8062         (sz): Call @v.
8063         (@M): Call @V.
8065         * troff/input.cc (main, usage): Add -R option that says not to
8066         load troffrc.
8067         * eqn/main.cc (main, usage): Rename -n to -R.
8069 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
8071         * devps/DESC.in: Leave font positions 5-9 blank.
8072         * devdvi/DESC.in: Likewise.
8074         * grog/grog.pl: Handle `.PS <file' correctly.
8076         * troff/input.cc (input_stack::push): Improve error message when
8077         input stack limit exceeded.
8079 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
8081         * refer/refer.cc (main): Fix typo in handling of `a' option.
8083         * refer/refer.cc (do_bib): In state START after a newline remain
8084         in state START.
8086         * groff/groff.sh: Deleted.
8087         * groff/Makefile.sub: Delete handling of groff.sh.
8089         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8090         to determine whether to use \X'ps:...'.
8091         * tmac/troffrc: Set 0p register to 0.
8092         * tmac/tmac.ps: Set 0p register to 1.
8094         * groff/groff.cc: Support -X option. Give warning for -TXps and
8095         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8096         * tmac/troffrc: Support -r.X=1.
8098         * pic/troff.cc (troff_output::dot): Don't test
8099         zero_length_line_flag.
8101 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
8103         * include/lib.h: Declare getopt() and friends unless
8104         STDLIB_H_DECLARES_GETOPT is defined.
8106         * doc/chars.tr: Delete.
8107         * man/groff_char.man: New file.
8109 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
8111         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8112         user has changed register format.
8114 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
8116         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
8117         `postpro' command in DESC file.  Get spooler command from `print'
8118         command in DESC file.  Execute spooler command with /bin/sh.
8120         * groff/groff.cc: Split Unix-specific parts into...
8121         * groff/pipeline.c: New file.
8123         * LICENSE: Delete.
8124         * COPYING: New file.
8125         * all files: Update copyright notices.
8127         * Rearrange files.  Redo Makefiles.  Use autoconf.
8129 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
8131         * troff/input.c (charinfo_to_node_list): Interpret character
8132         definition with escape_char of `\'.
8134 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
8136         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8137         Define INT_DIGITS as big enough for 64-bit integer.
8138         * lib/strtol.c: Don't include lib.h.
8139         * lib/lib.h: Delete ifdef __cplusplus stuff.
8141 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
8143         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
8144         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
8145         get DESC from current directory.
8147 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
8149         * tbl/main.c (main): Always reset the line number when reading
8150         from stdin.
8152         * tbl/table.c (table::print_single_hline, table::print_double_hline,
8153         table::define_bottom_macro, table::do_row, table::do_top): Round
8154         vertical spacing up to vertical resolution.
8156 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
8158         * ps/ps.h (enum resource_type): Avoid comma at end of
8159         enumerator-list.
8160         * dvi/dvi.c (class dvi_printer): Likewise.
8161         * dvi/tfmtodit.c (gf::load): Likewise.
8162         * refer/label.y (struct expression): Likewise.
8163         * refer/refer.c (class label_processing_state): Likewise.
8164         * refer/indxbib.c (do_file): Likewise.
8165         * troff/troff.c (enum warning_type): Likewise.
8166         * tbl/main.c (process_data): Likewise.
8167         * troff/charinfo.h (class charinfo):
8169 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
8171         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
8173 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
8175         * groff.c: Move to new groff subdirectory.
8176         * groff/Makefile: New file.
8177         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8179         * man/mdate.sh: Use ls -L if supported.
8181         * Consolidate all header files produced by gendef into lib/defs.h.
8182         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8183         Don't include path.h.
8184         * lib/Makefile (path.h): Don't generate.
8185         * troff/input.c: Include defs.h. Don't include config.h.
8186         * troff/Makefile (config.h): Don't generate.
8187         * refer/index.h: Don't include suffix.h.
8188         * refer/index.c: Include defs.h.
8189         * refer/indxbib.c: Include defs.h.
8190         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8191         defs.h.
8192         * refer/Makefile (suffix.h, path.h): Don't generate.
8193         * groff.c: Don't include config.h. Include defs.h.
8194         * Makefile (config.h): Don't generate.
8195         (lib/defs.h): Generate.
8196         (topclean): Remove lib/defs.h.
8198 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
8200         * lib/malloc.c, lib/getpagesize.h: Deleted.
8201         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
8202         related stuff.
8203         * lib/Makefile: Delete malloc-related stuff.
8204         * lib/new.c: Workaround COOKIE_BUG if necessary.
8206         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
8207         needed header files directly.
8208         * refer/refer.h: Omit definition of DEFAULT_INDEX.
8209         * Makefile: Include definition of DEFAULT_INDEX in path.h.
8211 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
8213         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8214         argument.
8215         * lib/font (font::load_desc, font::load): Don't split argument of
8216         unknown command.
8217         (font::handle_unknown_font_command): Change type.
8218         * ps/ps.c (ps_font::handle_unknown_font_command,
8219         handle_unknown_desc_command): Change type.
8220         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8222 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
8224         * lib/font.h (font::handle_unknown_font_command): Add file and
8225         line arguments.
8226         * lib/font.c (font::handle_unknown_font_command):
8227         * ps/ps.c (ps_font::handle_unknown_font_command):
8228         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8229         lineno arguments.  Use _with_file_and_line functions for error
8230         reporting.
8232         * lib/fontfile.c (font::unknown_desc_command_handler): New static
8233         data member.
8234         * lib/font.c (font::set_unknown_desc_command_handler): New
8235         function.
8236         (font::load_desc): For unknown commands, call
8237         unknown_desc_command_handler if not null.
8238         * lib/font.h (class font): Declare them.
8239         (FONT_COMMAND_HANDLER): New typedef.
8240         * ps/ps.c (handle_unknown_desc_command): New function.
8241         (main): Set bflag if we had a -b option. Call
8242         font::set_unknown_desc_command_handler.
8243         (broken.h): Don't include.
8244         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
8245         submake 
8246         * ps/devps/Makefile: Add `broken' command to DESC file using
8247         BROKEN_SPOOLER_FLAGS.
8249         * macros/tmac.e ([, ]): Add as synonyms for { and }.
8251         * macros/tmac.e ($p): Only exdent if \$3 > 0.
8253         * macros/tmac.e (@R, @S): New macros.
8254         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8255         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8256         Declare $H, $[0-9], .. macros with @S.
8257         Declare |0, |1, |2, |3 strings with @S.
8259         * macros/tmac.e (@S): Rename to @U.
8261         * macros/tmac.e (@z): Define @b and bp as empty instead of
8262         deleting them,
8264         * macros/tmac.e (@m): Deleted.
8265         (@h): Don't call @m.
8266         (@z): Don't set @m trap.
8268         * macros/tmac.e ($h, $f): Define |z as empty string.
8270         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8271         (@q): Likewise.
8273         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8274         removing them.
8275         ()f): Likewise for * register.
8277         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8278         argument is missing, don't change $R.  Call sr with three
8279         arguments when initializing.
8281 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
8283         * macros/tmac.e (sr): New macro.
8284         Initialize $r and $R using sr.
8286         * macros/tmac.e (,): Delete \*(#[.
8288         * troff/env.c (set_tabs): Read the tab type even if the position
8289         is bad.  Allow the position of the first tab stop to be negative.
8291 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
8293         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8294         _POSIX_VERSION.
8295         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8296         rather than -DPATHCONF_MISSING.
8297         * Makefile: Get rid of PATHCONF_MISSING.
8299         * refer/map.c: New file.
8300         * refer/index.c: Interface to mmap through map.c.  Rename map_size
8301         to map_len.
8302         * refer/Makefile: Handle map.c.
8303         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8305 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
8307         * Makefile: RANLIB should be `true' if there is no ranlib.
8308         * lib/Makefile (libgroff.a): Simplify.
8309         * driver/Makefile (libdriver.a): Simplify.
8311         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8312         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
8313         defined.
8315 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
8317         * troff/env.c (compare_ranges): Declare as extern "C".
8319         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8321         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8323 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
8325         * pic/troff.c (troff_output::text): Merge in grops_output::text,
8326         but conditionalize use of \X based on \*(.T.
8327         (grops_output::*): Deleted.
8328         * pic/output.h: Delete declaration of make_grops_output.
8329         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
8330         by default. -n sets it to 0.
8331         (usage): Corresponding changes.
8332         * groff.c (main): Don't pass -x or -p to pic.
8333         * groff.sh: Likewise.
8335         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8336         to be non-zero.
8338         * ps/devps/afmtodit: Change calculation of asc_boundary and
8339         desc_boundary.  Make these bounds inclusive.
8340         * ps/devps: Regenerate font files.
8342 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
8344         * macros/tmac.latin1: New file.
8345         * macros/tmac.tty-char: Use tmac.latin1.
8346         (tmac.tty-tr): Deleted.
8347         * macros/Makefile: Install tmac.latin1.
8348         * macros/tmac.dvi: Use tmac.latin1.
8349         * macros/troffrc: Translate \[char160] onto no-break space here.
8350         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8352 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
8354         * macros/tmac.Xps: Use `do' request.
8356         * macros/tmac.ps: Use `do' request.
8358         * macros/tmac.e (@C): Use `do' request.
8360         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8361         * macros/Makefile: Install tmac.X*.
8363         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8364         * tty/Makefile: Don't install tmac.tty*.
8365         * macros/Makefile: Install tmac.tty*.
8367         * dvi/tmac.dvi: Move to macros.
8368         * dvi/Makefile: Don't install tmac.dvi.
8369         * macros/Makefile: Install tmac.dvi.
8371         * ps/tmac.ps*: Move to macros.
8372         * ps/Makefile: Don't install tmac.ps*.
8373         * macros/Makefile: Install tmac.ps*.
8375         * eqn/box.c: Provide draw_lines parameter corresponding to -D
8376         option.
8377         * macros/eqnrc: Set draw_lines parameter based on device.
8378         * groff.c: Don't pass -D flag to eqn.
8379         * groff.sh: Likewise.
8380         * eqn/main.c: Warn about use of -D.
8382         * troff/input.c (process_startup_file): New function.
8383         (main): Call process_startup_file().
8384         * macros/troffrc: New file.
8385         * macros/Makefile: Install troffrc.
8386         * groff.c (main): Don't pass extra -m option to troff. For a 
8387         pseudo device pass the name of the pseudo device to troff using
8388         -d.
8389         * groff.sh: Likewise.
8390         * groff.c (possible_command::prepend_arg): Deleted.
8392         * troff/input.c (do_request): New function.
8393         (init_input_requests): Bind "do" to do_request.
8395         * eqn/main.c (main): Instead of loading eqnchar from device directory,
8396         load eqnrc from macro directory.
8397         * macros/eqnrc: New file.
8398         * macros/Makefile: Install eqnrc.
8399         * ps/devps/eqnchar: Deleted.
8400         * ps/devps/Makefile: Don't install eqnchar.
8401         * dvi/devdvi/eqnchar: Deleted.
8402         * dvi/devdvi/Makefile: Don't install eqnchar.
8403         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8404         variable optM.
8406         * lib/device.[ch]: New files.
8407         * lib/font.h (font::set_device_name, font::get_device_name):
8408         Deleted.
8409         * lib/fontfile.c: Use device.h.
8410         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8411         * troff/input.c: Delete definition of `device'.
8412         (main): Don't initialize device.
8413         * troff/troff.h: Include device.h rather than declaring device.
8414         * troff/Makefile: No need to handle DEVICE.
8415         * driver/input.c: Include device.h. Don't use
8416         font::{set,get}_device_name.
8417         * groff.c, Makefile: Rename device.h to config.h.
8418         * groff.c: Use library device variable.
8419         * eqn/main.c: Use library device variable.
8420         * eqn/Makefile: No need to handle DEVICE.
8422         * lib/searchpath.[ch]: New files.
8423         * lib/Makefile: Handle searchpath.[ch].
8424         * troff/input.c (open_file, init_dirs): Deleted.
8425         (macro_dirs): Deleted.
8426         (open_mac_file, macro_source): Use class search_path.
8427         (add_string, struct string_list): Move definition.
8428         (main): Change -M option to use macro_path. Delete call to
8429         init_dirs().
8430         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8431         Rewrite to use class search_path.
8432         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8433         * lib/Makefile: fontfile.c depends on searchpath.h.
8434         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8435         MACROPATH.
8436         * lib/macropath.[ch]: New files.
8437         * troff/Makefile: No need to handle MACROPATH.
8439         * troff/input.c: Delete DUMP code.
8440         * lib/fontfile.c, lib/font.h: Delete
8441         font::forget_command_line_font_dirs.
8443         * troff/input.c (push_token): New function.
8444         (handle_first_page_transition): Use push_token().
8445         (process_input_stack): Change handling of a space at the beginning
8446         of the line.
8448 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
8450         * troff/input.c (font_dirs): Delete unused variable.
8452         * eqn/lex.c (do_set): Correct error messages.
8454 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
8456         * troff/input.c (do_define_string): Allow the string name to be
8457         followed immediately by a tab.
8458         (define_character): Likewise.
8460 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
8462         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8463         be negative.
8465         * troff/input.c (input_iterator::is_file): New virtual function.
8466         (file_iterator::is_file): New function.
8467         (input_stack::end_file): New function.
8468         (input_stack::next_file): Handle the situation where there is no
8469         file on the input stack correctly.  Avoid making two passes over
8470         the input stack.
8471         (next_file): Make the filename optional; in this case call
8472         input_stack::end_file().
8474 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
8476         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8477         produce a real _ charater when the current font is CW and _
8478         otherwise.
8480         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8481         expression to work around gcc 2.2 bug.
8483 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
8485         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8487         * troff/env.c (environment::add_padding): New function.
8488         (environment::add_char): Use add_padding().
8489         (environment::space): Likewise.
8490         (environment::wrap_up_field): Add some padding if there is none
8491         and there's no current tab.
8492         * troff/env.h: Declare environment::add_padding.
8494 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
8496         * pic/pic.y: undef fmod and rand before declaring them.
8498 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
8500         * troff/input.c (main): If the DESC file specifies a font name of
8501         0, then leave the corresponding font position empty.
8503         * nroff.sh: New file.
8504         * Makefile (install.nobin): Install nroff.sh.
8506         * tty/devlatin1/R.proto: Add ao as synonym for de.
8507         * tty/tmac.tty-char: Define ao as o.
8509         * tty/dev{ascii,latin1}/R.proto: Add aq.
8510         * tty/tmac.tty-char: Delete definition of aq.
8512 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
8514         * troff/input.c (init_charset_table): Don't translate 0240.
8515         * ps/tmac.ps: Translate char160 to space.
8516         * dvi/tmac.dvi: Likewise.
8517         * tty/tmac.tty: Likewise.
8519 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
8521         * dvi/tmac.dvi: Add support for all Latin-1 characters.
8523         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8524         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8525         \(oe, \(r?, \(r!.
8527         * tty/tmac.tty-char: Add \(ah.
8529         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8530         No need to define \(FM and \(!/. Conditionalize all character
8531         definitions.
8533         * ps/devps/lgreekmap: Add +h, +f, +p.
8535         * ps/tmac.psnew: New file.
8536         * ps/Makefile: Install tmac.psnew.
8538         * troff/input.c (charinfo_to_node_list): Don't ever interpret
8539         character definitions in compatible mode.
8541         * troff/input.c (remove_character): New function.
8542         (init_input_requests): Bind remove_character to "rchar".
8544         * ps/tmac.psold: New file.
8545         * ps/Makefile: Install tmac.psold.
8546         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8547         characters into tmac.psold.  Make these definitions unconditional.
8549         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8551         * ps/tmac.ps: Don't define \('c and \('C.
8553         * ps/devps/textmap: Move Greek characters to...
8554         * ps/devps/symbolchars:
8556 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
8558         * ps/devps/text.enc: Add quotesingle.
8559         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8560         * tty/tmac.tty-char: Likewise.
8561         * dvi/devdvi/texmi.map: Add +h, +f, +p.
8562         * dvi/devdvi/texi.map: Add Fn.
8563         * dvi/devdvi/msam.map: Add lz.
8564         * dvi/tmac.dvi: Handle Bq, bq, aq.
8566         * pic/lex.c (get_token): Recognize 'th.
8567         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
8569 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
8571         * ps/devps/textmap: Move di, mu, +- to...
8572         * ps/devps/symbolchars:
8574         * macros/tmac.s (@XS): Don't call par@reset or fi.
8575         (XA): Call LP. Turn off adjustment. Reduce line length.
8577         * macros/tmac.s: Initially alias XS to LP.
8578         (XS): Rename to @XS.
8579         (cov*ab-init): Alias XS to @XS.
8581 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
8583         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
8584         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
8585         (token::is_size, token::changes_env): Deleted.
8586         * troff/number.c (parse_term): No need to process \s explicitly.
8587         Call tok.next() only after scale indicator has been processed.
8588         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
8589         \f etc explicitly.
8590         (token::next): Handle \s, \f, \S, \H immediately rather than
8591         returning them as tokens.
8592         (token::operator==, token::description, token::add_to_node_list,
8593         token::process): Remove handling of deleted tokens.
8595         * troff/env.c (environment::add_char): When adding padding
8596         indicator character, call start_line() if necessary.
8598 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
8600         * ps/devps/afmtodit: Don't output 0 kerns.
8602         * ps/devps/afmtodit: Remove directory from name of encoding in
8603         font description file.
8605         * ps/devps/afmtodit: Improve error messages.
8607         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
8609         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
8610         * ps/devps/FontMakefile: Deleted.
8611         * ps/devps/afmname: New file.
8613         * ps/devps/symbol.sed: New file.
8614         * ps/devps/symbol.diff: Deleted.
8615         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
8616         Generate zapfdr.afm from zapfd.afm.
8618         * tty/tmac.tty (tty-char): Prefix definition with ".
8620         * macros/tmac.an (TP): Don't start a diversion if one has already
8621         been started.
8623         * tty/tmac.tty-char: Add Latin-1 characters.
8625         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
8627 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
8629         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
8630         Move declaration of struct horizontal_span.
8632         * tbl/table.c (table::table): Initialize span_list.
8633         (table::~table): Delete span_list.
8635         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
8637         * ps/devps/Makefile: Avoid dependency on GNU make.
8639         * ps/tmac.ps: Check that character does not already exist before
8640         defining it.
8642         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
8643         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
8644         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
8645         files.
8647         * tty/tmac.tty-char: New file.
8648         * tty/Makefile: Install tmac.tty-char.
8649         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
8650         tmac.tty-char.
8652         * tty/tmac.tty: Fix definition of \(34.
8654         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
8655         bracket-drawing characters onto |. Add *o.
8657         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
8658         only if current_field.
8660         * troff/dictionary.c (dictionary::lookup): Free old_table after
8661         rehashing. 
8663 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
8665         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
8666         whose glyphs are identical to glyphs of some Roman character.
8668         * tty/devlatin1/R.proto (bu): Deleted.
8669         * tty/devascii/R.proto (bu): Deleted.
8670         * tty/tmac.tty: Add definition of \(bu.
8672         * eqn/main.c (do_file): Pass FILE as argument.
8673         (main): Automatically load eqnchar.  New options -F and -n.
8674         Pass do_file an opened FILE.
8675         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
8676         No need to include font.h.
8677         * groff.sh: Likewise.  Don't need to use - for standard input.
8678         Prefix files with -- if first file starts with -.
8680         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
8682         * troff/env.c (environment::possibly_break_line): Don't set line
8683         to 0 across call to output_line().  Don't call output_line() until
8684         after discarding nodes after break.
8686 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
8688         * request.h (macro::empty): Declare it.
8689         * input.c (macro::empty): New method.
8690         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
8691         macro is empty.
8693 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
8695         * troff/env.c (environment::start_field): Decrement space_total
8696         when a space is frozen.
8698 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
8700         * macros/tmac.an (R): Delete macro.
8702         * troff/input.c (get_copy, token::next): Support \# (like \" but
8703         newline is ignored).
8705         * troff/input.c (token::next): Fix error message in 'Y' case.
8707 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
8709         * eqn/delim.c (define_extensible_string): Recognize any prefix of
8710         a delimiter name.
8712 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
8714         * c++test.c: Include <osfcn.h>.
8716         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
8717         <errno.h> doesn't.
8719 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
8721         * tbl/table.c (table::divide_span): Don't count column separation
8722         if expand was specified.
8724         * tbl/main.c (process_format): Don't ignore width specs in
8725         continued format.  Give warning for changing equal widths or
8726         column separation in continued format.
8727         (process_data): Set column separation, minimum width, equal
8728         columns at end of table.
8730 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
8732         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
8733         node::add_discretionary_hyphen): Use soft_hyphen_char.
8734         (set_soft_hyphen_char): New function.
8735         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
8737         * Makefile (c++tested): Give more helpful message if test fails.
8739 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
8741         * troff/input.c (init_charset_table): Translate 0240 to
8742         an unbreakable space.
8744         * troff/token.h (token::hyphen_indicator): New function.
8745         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
8746         translation.
8747         * troff/input.c (translate): Allow translation to \%.
8748         * troff/node.c (node::add_char): Handle
8749         TRANSLATE_HYPHEN_INDICATOR.     
8750         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
8752         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
8753         for \(hy.
8755         * tty/devlatin1/R.proto: \(hy and - should print as 055.
8757 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
8759         * groff.c (run_commands): If the last command gets a SIGPIPE send
8760         a SIGPIPE to all children than haven't yet terminated.  When
8761         command terminates, set pid field to -1.
8763 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
8765         * groff.c (main): Pass an appropriate -filename option to gxditview.
8767 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
8769         * Makefile.bd (install): Remove existing program before copying.
8771         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
8772         programs which have Unix counterparts to be installed with
8773         user-specified prefix.
8775         * troff/input.c (exit_troff): Don't check if exit_started.
8776         (exit_request): Don't call exit_troff if exit_started.
8778         * Makefile.bd (install.mm): Rename to install.dwbmm.
8780 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
8782         * driver/input.c (do_file): Add missing break for '#' case.
8784 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
8786         * troff/input.c (input_stack::clear):  Clear past any boundaries and
8787         then add the boundaries back.
8789         * troff/input.c (exit_troff): Return immediately if already
8790         exiting.
8792         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
8793         end macro.
8794         (pg*end-page): If the text has ended and there are no more
8795         footnotes or keeps, exit.
8797         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
8799         * troff/input.c (init_charset_table): Make \(rq transparent by
8800         default.
8802         * macros/tmac.an: Define lq and rq strings.
8804         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
8806 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
8808         * troff/env.c (environment::final_break): New function.
8809         (environment::newline): Set prev_line_interrupted to 2 if
8810         exit_started.
8811         * troff/env.h: Declare environment::final_break.
8812         * troff/input.c (exit_troff): Call environment::final_break()
8813         instead of environment::do_break().
8815         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
8816         doesn't already exist.
8817         * macros/man.local: New file.
8818         * macros/tmac.an: Load man.local.
8819         * macros/man.ultrix: New file.
8821 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
8823         * troff/input.c (exit_groff): Rename to...
8824         (exit_troff): New function.
8826         * troff/div.c (exit_started, done_end_macro,
8827         seen_last_page_ejector): New global variables.
8828         (began_page_in_end_macro): New static variable.
8829         (exit_flag): Deleted.
8830         (top_level_diversion::top_level_diversion): Initialize
8831         last_page_count.
8832         (top_level_diversion): More elaborate test for whether
8833         cleanup_and_exit() should be called.
8834         Set began_page_in_end_macro if the end macro isn't yet finished.
8835         * troff/div.h (top_level_diversion::last_page_count): New data
8836         member.
8837         (top_level_diversion::set_last_page): New function.
8838         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
8839         * troff/env.c (do_break): Zero prev_line_interrupted.
8840         * troff/input.c (exit_flag): Delete declaration.
8841         (LAST_PAGE_EJECTOR): New magic cookie.
8842         (token::next): Handle LAST_PAGE_EJECTOR.
8843         (exit_groff): Set exit_started and done_end_macro instead of
8844         exit_flag.  Call top_level_diversion::set_last_page.  Push a
8845         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
8846         another ejection after setting seen_last_page_ejector.
8848 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
8850         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
8852         * macros/tmac.e (TH): Make sure there's room for the initial
8853         header.
8855         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
8856         Set FVS in points rather than units.
8858 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
8860         * troff/div.c (top_level_diversion::add_trap): Don't consider the
8861         position of empty slots.
8863 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
8865         * ps/devps/S: Fix height and depth of parenrightex.
8866         * ps/devps/symbol.diff: Regenerate.
8868 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
8870         * tmac.e (u): Do underlining as in -mgs.
8872 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
8874         * tty/tty.c (tty_printer::end_page): If overstriking is
8875         suppressed, still turn overstruck horizontal and vertical lines
8876         into +.
8878         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
8879         2.1.
8881         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
8883 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
8885         * Version 1.05 released.
8887 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
8889         * tty/tty.c: Instead of keeping an array of glyphs and then
8890         sorting it, keep a ordered linked list of glyphs for each line.
8892         * driver/driver.h: Include stddef.h.
8894         * tty/tty.c (compare_glyph):
8895         * refer/refer.c (rcompare):
8896         * troff/env.c (compare_ranges): Arguments of qsort comparison
8897         function should be const void *.
8899         * troff/number.c (parse_term):
8900         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
8901         switch statement.
8903         * refer/label.y (consider_authors): Don't access variables
8904         constructed under a condition outside that condition: put braces
8905         round for statement containing declaration; redeclare use of same
8906         variable later.
8908         * pic/pic.y (text_expr): Delete production that allows
8909         parenthesised text_expr.
8910         (expr): Allow a conditional_expr to appear in parentheses.
8911         (conditional_expr): Rename to any_expr.
8913         * mm: Install new version 1.01 from jh.
8915         * lib/font.c (font::get_width): Cache scaled widths.
8916         (font::font): Initialize widths_cache.
8917         (font::~font): Destroy widths_cache.
8918         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
8920 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
8922         * c++test.c, c++test.ref: New files.
8923         * Makefile: Check that the C++ compiler works.
8925         * ps/tmac.pspic (PSPIC): Do a break.
8927         * ps/tmac.ps: Move definition of PSPIC into...
8928         * ps/tmac.pspic: New file.
8929         (PSPIC): Draw box around picture, but make it invisible to grops.
8930         * ps/tmac.ps: Load tmac.pspic.
8931         * ps/Makefile: Install tmac.pspic.
8933 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
8935         * lib/font.c (scale_round): If n is negative,
8936         subtract .5 before truncating floating point result.
8938         * lib/fontfile.c: Include <errno.h>.
8940 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
8942         * driver/input.c (get_char): Inline. Don't update current_lineno.
8943         Change callers to up date current_lineno if necessary.
8944         Use get_char() instead of getc(current_file).
8946 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
8948         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
8950 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
8952         * tty/tty.c (tmac.tty): Define \(rg as (R).
8954 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
8956         * lib/lib.h: New define a_delete.
8957         * Use a_delete instead of delete when deleting an array of objects
8958         without destructors.
8960         * lib/lib.h: Rename adelete to ad_delete.
8961         * Change uses of adelete.
8963 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
8965         * eqn/eqn.y: Include lib.h.
8967         * troff/node.c (grow_font_table): Delete old_font_table.
8969         * mm: Install new version from jh.
8971 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
8973         * tbl/table.h (format_type): Make global instead of local to class
8974         entry_format.  Prefix enumerators with FORMAT_.
8975         * tbl/table.c, tbl/main.c: Corresponding changes.
8976         * refer/token.h (token_type): Make global.  Prefix enumerators
8977         with TOKEN_.
8978         * refer/token.[ch]: Corresponding changes.
8979         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
8981         * troff/div.c (node::set_vertical_size): Don't name argument.
8983 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
8985         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
8986         * lib/lib.h: Define adelete accordingly.
8987         * pic/object.c (graphic_object::graphic_object):
8988         * tbl/main.c (format::~format):
8989         * tbl/table.c (table::~table):
8990         * refer/ref.c (reference::~reference, reference::merge,
8991         reference::insert_field, reference::delete_field): Use adelete.
8993         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
8994         * refer/token.h:
8995         * tbl/table.h: Corresponding changes.
8997         * common.c (common_output::dashed_arc, common_output::dotted_arc):
8998         Ensure total_angle is positive.
9000 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9002         * refer/ref.c (reference::merge, reference::insert_field,
9003         reference::delete_field): Avoid delete[0].
9005         * refer/token.c (init_special_chars): Move calls to cmupper
9006         outside calls to init_two_char_letter to work around bug in gcc
9007         2.0.
9009 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9011         * lib/new.c (operator new): Use __builtin_new for g++.
9013         * pic/object.c (graphic_object::~graphic_object):  Don't use
9014         delete [] on 0.
9016         * pic/object.c (output::compute_scale): Initialize max_width and
9017         max_height.
9019 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9021         * troff/input.c (write_request): Call fflush.
9023         * troff/node.h (class composite_node): Move declaration to node.c
9024         * troff/input.c (charinfo_to_node): Rename to ...
9025         (charinfo_to_node_list): Return node list rather than composite
9026         node.
9027         * troff/node.c (make_composite_node): New function.
9028         (make_node, add_char): Call make_composite_node instead of
9029         charinfo_to_node.
9030         (class composite_node): Add a tfont * member.  Delete font_size
9031         member.
9032         (composite_node::composite_node, composite_node::copy,
9033         composite_node::size): Corresponding changes.
9034         (composite_node::tprint): Provide constant spacing, emboldening
9035         and track kerning as specified in tfont.
9036         (composite_node::width): Change width calculation accordingly.
9037         * troff/env.h (environment::composite): New member.
9038         (environment::is_composite, environment::set_composite): New
9039         functions.
9040         * troff/env.c (environment::environment): Initialize composite.
9041         * troff/input.c (charinfo_to_node): Call
9042         environment::set_composite.
9043         * troff/node.c (make_composite_node, make_glyph_node): Use the
9044         plain version of the tfont if the environment is composite.
9046         * troff/node.c (font_info::get_space_width): Additional argument
9047         giving space_size.  Handle constant space correctly. Scale by
9048         space_size unless constant spaced.
9049         (env_sentence_space_width): New function.
9050         * troff/node.h: Declare it.
9051         * troff/env.h (environment::get_space_size,
9052         environment::get_sentence_space_size,
9053         environment::get_narrow_space_width,
9054         environment::get_half_narrow_space_width): Make inline.
9055         (environment::get_space_width): Make inline.  Just call
9056         env_space_width.
9057         * troff/env.c: Delete definitions for funtions made inline.
9058         (environment::space_newline, environment::space): Use
9059         env_sentence_space_width(). Don't scale by space_size.
9060         * troff/node.h: Move declarations of env*space_width() functions
9061         into env.h.
9063 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
9065         * macros/tmac.s (PS): Don't try to set negative indent.
9067 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
9069         * pic/pic.y: Fix min function.
9071 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
9073         * man/mdate.sh: Clear LANGUAGE.
9075 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
9077         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9078         * pic/lex.c: New COMMAND keyword.
9079         * pic/pic.y (print_args, print_arg): New rules.
9080         (placeless_element): Use print_args for PRINT.
9081         New COMMAND element.
9083 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
9085         * troff/input.c (terminal): Handle missing argument correctly.
9087         * pic/pic.y (text_expr): New rule.
9089         * pic/pic.y: Implement := operator.
9091 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
9093         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9094         mdoc.
9096 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
9098         * ps/devps/dingbatsrmap: Include this in the distribution.
9100         * macros/tmac.doc: Replace with new version from 2nd Networking
9101         Release. Fix loading of doc-* files.
9102         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9103         * macros/tmac.doc.old: New file.  Apply fixes that had been
9104         applied to old tmac.doc.
9105         * macros/tmac.andoc: Check that we're running under groff.
9106         * macros/Makefile: Rework.
9108 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
9110         * tbl/table.h (format_type): 
9111         * refer/token.h (token_type): If NESTED_TYPES is defined, use
9112         typedef to make these types visible at file scope.
9113         * Makefile: Add NESTED_TYPES configuration option.
9115         * troff/div.c (mark): At the top level use the value of
9116         nl_reg_contents rather than the current vertical position.
9118 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
9120         * tty/tty.c: Implement \D for horizontal or vertical lines.
9121         (tty_printer::set_char): Use vec_used+2 as serial number.
9122         Don't allow size of vector to exceed USHRT_MAX-2.
9123         Split off part into...
9124         (tty_printer::add_char): New function.
9125         (tty_printer::draw): New function.
9126         (compare_glyph): Handle equal serial numbers.
9127         (tty_printer::end_page): Handle overstruck characters from \D.
9128         (main, usage): Implement -d option.
9130 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
9132         * tbl/main.c (process_format):
9133         * eqn/text.c (split_text):
9134         * troff/input.c (token::next): Use inner block for declarations
9135         with initializers in switch statement.
9137 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
9139         * pic/common.c (common_output::dash_line): Cope with zero-length
9140         lines.
9142 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
9144         * Version 1.04 released.
9146 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
9148         * macros/tmac.an (TH): Define a macro an-init to define variables
9149         based on command line arguments.
9150         (an-header): Call it.
9152 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
9154         * Makefile (install.mm): Rename to install.dwbmm.
9156         * Makefile: Integrate mm.
9157         * mm: New directory.
9159 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
9161         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9162         <sys/types.h>.
9164         * pic/troff.c (troff_output::simple_spline,
9165         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9166         shadowing parameter.
9168         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9170         * lib/ptable.h: Add explicit casts when converting from unsigned
9171         long to unsigned.
9173         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9174         * dvi/devdvi/Makefile: Install SA, SB.
9176         * refer/indxbib.c: Add declaration of mktemp.
9178         * refer/lookbib.c: Add declaration of isatty.
9180 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
9182         * pic/lex.c (interpolate_macro_with_args):  While collecting
9183         arguments, keep track of whether we're in a string.
9185 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
9187         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9188         down with \v, so as to avoid problems with top of page trap
9189         setting no space mode.
9191 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
9193         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9195 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
9197         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9198         Improve error message.
9200 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
9202         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9203         printf("%03o");
9205 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
9207         * groff.c (possible_command::execp): Always use _exit() after a
9208         failed exec.
9210         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9211         NO_SYS_WAIT_H   configuration options.
9212         * groff.c: Use these options.  Use POSIX-style macros to extract
9213         fields from the status returned by wait().
9215 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
9217         * tbl/table.c (table::compute_separation_factor): Allow the
9218         separation factor to drop to 0.
9220 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
9222         * refer/search.c: Include <errno.h>.
9224 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
9226         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9228         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9229         C++. 
9231         * pic/lex.c (input_stack::bol): Move definition out of class body.
9233         * pic/main.c: On MSDOS munge argv[0].
9235         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9237         * lib/ptable.c (hash_string): Use unsigned long rather than
9238         unsigned.
9239         (next_ptable_size): Use unsigned rather than int.  Give an error
9240         message if we've hit the largest table size.
9241         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
9242         table size.
9244         * pic/object.h (object_spec): Make flags unsigned long.  Declare
9245         flags as const unisgned long rather than as enums.
9247         * pic/output.c: Deleted.
9249         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9251         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9252         Add additional argument.
9253         (line_entry::note_double_vrule_on_{left,right}): Set value of
9254         douvle_vrule_on_{right,left} flag according to argument.
9255         (simple_line_entry::simple_print,
9256         simple_line_entry::double_line_print): If adjacent to double vrule
9257         on a corner extend rather than shorten the rule by half the double
9258         vrule sep.
9260         * troff/number.c (parse_term): In checking for overflow, handle the
9261         case where the current horizontal position is negative.
9263 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
9265         * pic/object.c (draw_arrow): Check for object having zero length.
9267 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
9269         * eqn/main.c (do_file): Split off inline equation handling into...
9270         (inline_equation): New function.  Search for starting delimiter
9271         using...
9272         (delim_search): New function. Don't recognize a delimiter that
9273         occurs in the name of an escape sequence, number register, string
9274         etc.
9276 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
9278         * eqn/delim.c (delim_box::compute_metrics): Don't call
9279         define_extensible_string if left is 0.
9280         (delim_box::output):  Don't print the left delimiter if left is 0.
9281         (delim_box::debug_print): Check for left == 0 before calling printf.
9283 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
9285         * troff/Makefile (majorminor.c): Include only digits in
9286         minor_version.
9288 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
9290         * refer/dirnamemax.c: new file.
9291         * refer/genlimits.c: Deleted.
9292         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9293         Don't check path length.
9294         * refer/Makefile: Add dir_name_max.o; delete genlimits.
9295         * Makefile: Add PATHCONF_MISSING option.
9297         * refer/indxbib.c (get_cwd): New function.
9298         (main): Use get_cwd().
9299         * lib/getcwd.c: New file.
9300         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9301         GETCWD in SUBFLAGS.
9302         * lib/Makefile: Compile getcwd.o.
9304         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9305         userdict.
9307         * refer/indxbib.c (main): Check success of mktemp.
9309         * lib/tmpfile.c: New file.
9310         * lib/Makefile: Add tmpfile.c.
9311         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9312         * ps/ps.h: Delete declaration of mktemp().
9313         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9314         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9315         * driver/driver.h: No need now to include errno.h.
9317         * everywhere: Set errno to 0 before calling fopen().
9319         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9320         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9321         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9323 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
9325         * troff/env.h (translate_space_to_dummy): Declare it.
9326         * troff/env.c (environment::space_newline, environment::space):
9327         If translate_space_to_dummy is set then make the width of spaces 0.
9328         * troff/input.c (translate): If the second character of a
9329         translation is a space, translate to unbreakable space.  If the
9330         first character is a space, set or clear translate_space_to_dummy
9331         according to whether the second character is \&.  Weird!
9333 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
9335         * groff.c (run_commands): Don't use non-zero exit code because a
9336         command gets SIGPIPE.
9338         * groff.c, groff.sh: Use -mXps with -TXps.
9340         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9341         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9342         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9343         (ps_printer::special): New specials invis and endinvis.
9344         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9345         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
9346         (ps_printer::end_page): Check that invis_count == 0.
9347         (ps_printer::invis_count): New member.
9348         (ps_printer::ps_printer): Initialize invis_count to 0.
9350         * troff/env.c (environment::hyphenate_line): Hyphenation
9351         indicator at beginning of word inhibits splitting after -, \(em
9352         etc.
9354         * pic/pic.y (element): Allow another element to follow } without
9355         any intervening separator.
9357 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
9359         * pic/lex.c (get_delimited): Allow tabs before delimiter.
9361 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
9363         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
9364         declaration of wait() in header files.
9365         * Makefile: Get rid of -DHAVE_UNION_WAIT.
9367         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9369         * lib/lib.h: Declare return type of strerror as char *.
9371         * man/Makefile: Add g flag to sed substitutions.
9372         * Makefile (shgroff, bindist): Likewise.
9374 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
9376         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9377         * ps/devps/prologue (PBEGIN): Define showpage after pushing
9378         userdict.
9380 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
9382         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9383         userdict.
9385 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
9387         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9388         group.
9390 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
9392         * troff/input.c (define_number_reg):  If currently undefined,
9393         don't define it if the argument is an invalid expression.
9395         * Makefile: Ignore return value of `if' commands without `else'
9396         parts.
9398         * Makefile: Split up CPPDEFINES into a series of separate
9399         configuration options.
9401         * troff/input.c (init_registers): Use time_t instead of long
9402         unless LONG_FOR_TIME_T is defined.  Use returned result rather
9403         than passing pointer.
9404         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9406         * lib/Makefile (fontpath.h): Use gendef.
9408 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
9410         * troff/input.c (input_iterator::shift): Delete argument name.
9411         * troff/node.c (suppress_output_file::really_begin_page,
9412         suppress_output_file::really_transparent_char, node::ascii_print,
9413         node::tprint): Delete names of unused arguments.
9415 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
9417         * refer/label.y (string):  Pass $4 to command_error.
9419 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
9421         * Version 1.03 released.
9423 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
9425         * Makefile: Pass definition of SHELL in SUBFLAGS.
9427         * gendef: New file.
9428         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9429         ps/Makefile: Use gendef to construct header files that are
9430         constructed from the Makefile.
9432         * macros/Makefile: make all should build stripped version of tmac.e.
9434         * refer/Makefile (clean): Remove y.output.
9436 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
9438         * ps/pfbtops.c (main): Add -v option which prints out a version
9439         number.
9440         * ps/Makefile (pfbtops): Link with libgroff.a.
9442 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
9444         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9445         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9447         * refer/lkbib.c (main): Always terminate reference with blank
9448         line.
9449         * refer/lookbib.c (main): Likewise.
9451         * refer/linear.c (file_buffer::load): Check that the file is not a
9452         binary file.
9454         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9455         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9456         Delete second inclusion of <sys/param.h>.
9458 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
9460         * troff/token.h (token::special): Deleted.
9462         * tbl/main.c (process_format): Rework so that opt->tab_char is
9463         recognized only when appropriate.
9465         * ps/Makefile (clean): Remove pfbtops.
9467 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
9469         * lib/font.c (text_file::next): Don't return if we have got a
9470         blank line.
9472 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
9474         * refer/refer.c (store_reference): Get hash code from old_table[i]
9475         when rehashing the table.
9477 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
9479         * eqn/box.c (box::top_level): Save size and prev size using \R and
9480         restore it afterwards. Set the size to the size at the beginning
9481         of the line.
9482         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9483         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9485         * refer/Makefile (limits.h): Use ./genlimits.
9487 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
9489         * refer/index.c: Delete declarations of stat() and fstat().
9491 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
9493         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9495 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
9497         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9499 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
9501         * troff/input.c (token::get_char): Handle \e.
9503         * refer/linear.c: Delete declarations of fstat() and stat().
9505 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
9507         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9508         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9510 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
9512         * troff/input.c (do_define_macro): Improve error handling for end
9513         of file while defining macro.
9515 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
9517         * eqn/box.h: Fix declaration of set_gsize.
9518         * eqn/box.c (set_gsize): Make argument const char *.
9519         (gsize): Declare as char *.
9520         * eqn/main.c (main): Don't convert gsize to int.
9521         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9523         * Version 1.02 released.
9525 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
9527         * macros/tmac.andoc: New file.
9528         * macros/Makefile: Install tmac.andoc.
9530         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9531         operator new and delete on OP_DELETE_BROKEN not being defined.
9532         * Makefile: Mention OP_DELETE_BROKEN.
9534 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
9536         * Makefile (bindist): Pass SUBFLAGS.
9538 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
9540         * Makefile, groff.c: Pass definitions to groff.c via device.h.
9542         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9543         parameter.
9545         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9547         * ps/ps.h, ps/psrm.c: Make comment_table and
9548         header_comment_table local to resource_manager::process_file.
9550         * groff.sh: With -TXps pass -printCommand option to gxditview.
9552         * groff.c (possible_command::print): Implement using
9553         append_arg_to_string.
9555         * xditview: Merge in new implementation with own ChangeLog.
9557 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
9559         * groff.c (main): Implement PRINT_OPTION.
9560         (append_arg_to_string): New command.
9561         (device_table): Set PRINT_OPTION flag for Xps.
9563 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
9565         * troff/groff.h: Rename to troff.h.
9567         * pic/lex.c (lookup_keyword, docmp): New functions.
9568         (get_token): Use new lookup_keyword.
9569         Don't include key.h.
9570         * pic/key.[ch], pic/pic.gperf: Deleted.
9571         * pic/Makefile: Remove gperf stuff.
9573         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
9574         into output.h.
9575         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
9577         * troff/Makefile, troff/node.c: Move definition of
9578         STORE_WIDTH into node.c.
9580         * etc/grog.pl, etc/grog.sh: Support -mdoc.
9582 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
9584         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
9585         dvi/devdvi/texb.map: Add lq and rq.
9586         dvi/devdvi: Regenerate fonts.
9587         * ps/devps/textmap: Add lq and rq.
9588         * ps/devps: Regenerate fonts.
9589         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
9590         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
9592         * pic/object.c (position_rectangle): When checking radius
9593         cope with possiblity that width or height is negative.
9594         (box_object::box_object): Have separate xrad and yrad with
9595         signs matching signs of dim components.
9596         (box_object::{north,south}_{east,west}): Use xrad and yrad.
9597         (box_object::print): With rounded boxes use absolute values
9598         for dim and rad arguments.
9600         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
9601         in fontpath.h.
9603         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
9605         * various files: Add explicit destructors to keep Saber CC +d
9606         happy.
9608 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
9610         * eqn/box.c (box::top_level): Restore fonts correctly after
9611         font changes in line containing inline equation.  Also
9612         restore previous font as well as current font.
9613         * eqn/pbox.h: Define necessary string and register names.
9615         * troff/input.c (token::next): Case 'R' calls do_register.
9616         (do_register): New function.
9618 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
9620         * groff.c, groff.sh: Support Xps device.  Allow each device
9621         to have a pseudo_name and a real_name.
9623         * groff.c (run_commands): Don't print `Broken pipe' messages.
9625         * ps/pfbtops.c: New file.
9626         * ps/Makefile: Add pfbtops.
9628         * troff/number.c (parse_term): Improved error message.
9630 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
9632         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
9634         * Makefile: Integrate refer.
9635         * refer: New directory.
9636         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
9637         man/lkbib.man: New files.
9638         * man/Makefile: Support refer man pages.
9640         * lib/lib.h: Declare is_prime.
9641         * lib/prime.c: New file.
9643         * troff/input.c (macro_source): New function.
9644         (init_input_requests): Bind "mso" to macro_source.
9646         * troff/env.c (environment::possibly_break_line): Maintain
9647         pointer to pointer to node to be split in ndp so as to avoid
9648         using address of freed node.
9650         * troff/env.c (environment::hyphenate_line): Maintain pointer to
9651         pointer to first node to be hyphenated in startp so as to
9652         avoid using address of freed node.
9654         * troff/env.c (class trie, class hyphen_trie): Make the
9655         elements of the trie be of type char not unsigned char.
9656         Declare arguments to be const char* instead of unsigned char *.
9657         
9658         * troff/env.c (hyphenate): Initialize hbuf[0].
9660         * troff/input.c (set_string): Declare p to be char * and cast
9661         *p to unsigned char when necessary.
9663         * troff/input.c (do_define_macro): Declare s to be const
9664         char*. Cast element to unisgned char when necessary, Declare
9665         d to be an int.  Handle EOF better.
9667         * troff/Makefile, troff/input.c: Different scheme for passing
9668         definitions of MACROPATH, HYPHENFILE and DEVICE.
9670 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
9672         * tty/devascii/R.proto: Delete entry for em.
9673         * tty/devlatin1/R.proto: Likewise.
9675 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
9677         * troff/input.c (translate): Stop when we get a space. Treat eof
9678         like newline.
9680         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
9682 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
9684         * tbl/main.c (process_format): A font name following a `f'
9685         modifier that starts with a digit can be only one character long.
9686         Also deal with EOF on the second character of the font name.
9688 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
9690         * troff/input.c (token::next): Turn \~ into an
9691         unbreakable_space_node.
9692         * troff/node.c (unbreakable_space_node): New class.
9693         * troff/node.h: Declare it.
9695 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
9697         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
9698         it's >= 0, before outputting it as a single byte.
9700 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
9702         * lib/font.c: Make font_char_metric::code an int.
9703         (font::get_code): Change return type to int.
9704         (font::load): Allow code to be arbitrary integer.
9705         * lib/font.h (font::get_code): Change return type to int.
9706         (font::number_to_index): Change argument type to int.
9707         * troff/input.c (token::next):  In case 'N', allow any value.
9708         Store value in token::val.
9709         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
9710         (token::get_char, token::add_to_node_list, token::process): Get
9711         number from val.
9712         (charinfo::set_number): Change argument to int.
9713         (charinfo::get_number):  Require that NUMBERED flag be set.
9714         (get_charinfo_by_number): Store numbered characters not between 0
9715         and 255 in a dictionary.
9716         * troff/charinfo.h (get_charinfo_by_number): Change argument type
9717         to int.
9718         (charinfo::number): Change type to int.
9719         (charinfo::set_number): Change type of set_number to int.
9720         * troff/node.c (troff_output_file::put_char_width,
9721         troff_output_file::put_char): Test whether character is numbered
9722         using charinfo::numbered().
9723         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
9724         values of num.
9725         * lib/nametoindex.c: New implementation to cope with arbitrary
9726         number characters.
9728         * troff/input.c (token::operator==): Test val for
9729         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
9730         TOKEN_SIZE.
9732         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
9733         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
9735 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
9737         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
9738         variable.
9740         * all Makefiles: rm targets of cp and >.
9742         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
9743         it.
9745         * eqn/lex.c (def_table): Add dollar.
9747 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
9749         * troff/input.c (do_width): Push back newline before closing delim
9750         like do_bracket.
9752 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
9754         * groff.c (possible_command::prepend_arg): New function.
9755         (main): Prepend device -m option.
9756         * groff.sh: Put device -m options before command-line options.
9758 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
9760         * macros/tmac.an (IP): Quote argument to TP.
9762         * ps/ps.c (main): New option -b, which sets...
9763         (broken_flags): New variable.
9764         (ps_printer::~ps_printer): Incorporate the setup section in the
9765         prolog if (broken_flags & NO_SETUP_SECTION).
9766         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
9767         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
9768         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
9769         ps_printer::print_needed_font_comment,
9770         ps_printer::print_supplied_font_comment,
9771         ps_printer::print_include_font_comments,
9772         ps_printer::lookup_doc_font, ps_printer::download_fonts,
9773         ps_printer::read_download_file, read_document_fonts, add_font,
9774         skip_line, parse_fonts_arg, document_font::document_font,
9775         document_font::~document_font, document_font::download,
9776         ps_output::include_file):  Deleted.
9777         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
9778         rather than %!PS-Adobe-2.0.  Make calls to
9779         resource_manager::need_font for each font that we used. Replace
9780         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
9781         print_supplied_font_comment, print_needed_font_comment by call to
9782         resource_manager::print_header_comments. Output %%Orientation
9783         comment. Output %%Requirements: numcopies comment if ncopies > 1.
9784         Don't output the prolog directly.  Instead call
9785         resource_manager::output_prolog.  Only define #copies when ncopies
9786         > 1.  Delete calls to print_include_font_comments  and
9787         download_fonts.  Add call to resource_manager::document_setup.
9788         (ps_printer::do_file): Call resource_manager::import_file instead
9789         of including it ourselves.
9790         (ps_printer::do_import): Likewise.  Also don't call
9791         merge_import_fonts. Push userdict on the dictionary stack before
9792         and pop it afterwards.
9793         Move declaration of ps_output into ps.h.
9794         * ps/psrm.c: New file implementing resource_manager class.
9795         * ps/ps.h: New file declaring ps_output and resource_manager
9796         classes.
9797         * ps/devps/zapfdr.ps:
9798         * ps/devps/symbolsl.ps:
9799         * ps/devps/prologue:  Use 3.0 conventions.
9800         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
9801         Add default definition of BROKEN_SPOOLER_FLAGS.
9802         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
9803         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
9805 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
9807         * etc/grog.pl: New file.
9808         * Makefile (GROG): New variable.
9809         Add GROG to SUBFLAGS.
9810         * etc/Makefile (GROG): New variable.
9811         (install.nobin): Install $(GROG) rather than grog.sh.
9813 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
9815         * eqn/special.c (special_box::compute_metrics): Make the input and
9816         output strings the same.  Get the new height and depth from the
9817         predefined height and depth registers.  Also make subscript kern
9818         and skew available.
9819         (special_box::compute_subscript_kern, special_box::compute_skew):
9820         New functions.
9822         * eqn/box.c (pointer_box::compute_skew,
9823         simple_box::compute_metrics, box::top_level)
9824         * eqn/text.c (prime_box::compute_metrics,
9825         prime_box::comput_subscript_kern)
9826         * eqn/limit.c (limit_box::compute_metrics):
9827         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
9828         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
9829         negative numbers in `nr' requests with a leading 0.
9831 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
9833         * eqn/special.c: New file.
9834         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
9835         Add new rule for simple.
9836         * eqn/lex.c (token_table): Add SPECIAL.
9837         * eqn/box.h: Declare make_special_box.
9838         * eqn/Makefile: Add special.[co].
9840 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
9842         * ps/devps/prologue: Possibly set packing to true while defining.
9843         Create grops dictionary here.  Initialize local variables before
9844         defining procedures.
9845         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
9846         the dictionary stack. Set strokeadjust and overprint to false if
9847         the relevant operators are defined.
9848         (PEND): New procedure.
9849         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
9850         prologue.  Do everything else in the setup section.
9851         (ps_printer::do_import): Just call PBEGIN and PEND around the
9852         picture. Also push userdict before, and pop it afterwards.
9854 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
9856         * troff/node.c (bracket_node::tprint): Brackets were being printed
9857         1m too low.
9859         * macros/tmac.an (SH, SS): Set fill mode.
9861 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
9863         * troff/div.c (top_level_diversion::begin_page): Set
9864         high_water_mark to 0.
9866 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
9868         * man/mdate.sh: New file.
9869         * man/mdate.c: Deleted.
9870         * man/Makefile: Use mdate.sh instead of mdate.
9871         (mdate): Deleted.
9873         * eqn/lex.c (do_gsize): Supply missing argument to error message.
9875 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
9877         * man/mdate.c: New file.
9878         * man/*.man: Replace modification date by @MDATE@.
9879         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
9880         (mdate): New target.
9882         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
9883         Remove illegal input characters.
9885 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
9887         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
9889 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
9891         * troff/div.c (begin_page): Change behaviour when
9892         !first_page_begun and !break_flag.
9894         * troff/input.c (do_name_test): Return 0 if argument is empty.
9896         * troff/input.c (read_long_escape_name): Require closing ] to be
9897         at same input level as opening [.
9899         * troff/input.c (read_increment_and_escape_name): New function.
9900         (get_copy, process_input_stack): Use this for \n.
9902 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
9904         * troff/div.c (top_level_diversion::begin_page): Ignore the
9905         current value of page_number if !first_page_begun.
9907         * groff.c (main): Fix declaration of buf.
9909         * troff/input.c (do_name_test): New function.
9910         (token::next): Implement \A.
9911         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
9912         (token::description, token::add_to_node_list, token::process):
9913         Handle TOKEN_ESCAPE.
9914         * troff/token.h: New token TOKEN_ESCAPE.
9916 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
9918         * pic/main.c (do_picture): Allow space before and after filename
9919         following `<'.  Check that the filename is not empty.
9921 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
9923         * Version 1.01 released. 
9925         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
9927         * dvi/tmac.dvi: ftr HR to H.
9929         * macros/tmac.e: Round up computation of $r.
9931         * xditview/tmac.X:  Don't give up completely in compatibility mode.
9932         Use \n(.s instead of \n[.s].
9934         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
9935         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
9936         Add u to factors inside \s[...]. Rename frac to dvi-frac.
9937         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
9938         short names in the char definitions.
9940         * ps/tmac.ps: Don't give up completely in compatibility mode.
9941         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
9942         quote in front of \n(.s. Add u to factors inside \s[...].
9944 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
9946         * tty/tmac.tty: Call the nroff request.
9948         * macros/tmac.e ((x, )x):  Better definitions that work properly
9949         in a diversion.
9950         (@0, @1): Helper macros for (x.
9952         * macros/tmac.e ($s, hl): Use \l rather than \D.
9954         * tty/tmac.tty: Make it work better in compatibility mode.
9955         (pchar): Rename to tty-char.
9957         * macros/tmac.e (@E): New macro.
9958         (r, i, b, rb, bi): Use @E.
9960         * macros/tmac.e (@F): Don't use (;...) syntax.
9962         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
9963         it was modified for groff.
9965         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
9967         * macros/tmac.e (<., .>): Removed.
9968         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
9970         * macros/tmac.e: Remove check that groff is being used.
9972         * macros/tmac.e (@C): Change families only if using groff; turn
9973         compatibility mode off while changing familes. Save compatibility
9974         mode before changing families and restore it afterwards.
9976         * macros/tmac.e (@h): Remove test for offset + line length.
9978         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
9979         (lo, th, ac): Define to call @S instead of using als.
9981         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
9982         the ratio of the vertical spacing to the point size in units
9983         expressed as a percentage.  Use these instead of $10r and $10R,
9984         Delete $10r and $10R.
9986         * lib/font.c (font::load): In default computation of space_width,
9987         divide by sizescale.  Use scale_round.
9989         * macros/tmac.an (TP): Don't call `nf'.
9990         (an-do-tag): Don't call `fi'.
9992 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
9994         * troff/input.c (process_input_stack): Handle the case where
9995         spaces at the beginning of an input line are followed by a
9996         newline.
9998 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10000         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10001         * groff.sh: Use pic -x with the dvi device.
10003         * dvi/devdvi/FontMakefile (H): Don't use -s.
10005         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10006         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10007         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10008         in FONTS.
10010 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10012         * ps/psfig.diff: New file.
10013         * ps/tmac.psfig: New file.
10015 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10017         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10018         (]-): Don't call ref*do-tl.
10020         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10022         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10023         (fn@do-FS): Rename to fn*do-FS.
10025         * troff/input.c (transparent_translate): New function.
10026         (process_input_stack): Apply transparent_translate before calling
10027         diversion::transparent_output(unsigned char).
10029 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10031         * troff/input.c (do_define_macro): Define the macro before calling
10032         skip_line.
10034         * xditview/Makefile: Add DEVICES variable.  Change install target
10035         to use this.
10037 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10039         * groff.c (run_commands): Handle the possibility that there are
10040         child processes other than those forked by us.
10042 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10044         * lib/string.c (string::append): New function.
10045         * lib/stringclass.h: Declare it.
10047 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
10049         * eqn/main.c (main): New option -N which sets
10050         no_newline_in_delim_flag. 
10051         (do_file): If no_newline_in_delim_flag is set don't allow newlines
10052         in delimiters.
10053         * groff.c (main): Pass -N on to eqn.
10054         (help, synopsis): Mention -N.
10055         * groff.sh: Implement -N.
10057 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
10059         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10060         (]-): Call ref*do-tl if ref*need-tl is non-zero.
10061         (XP): Allow as initializer.
10063 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
10065         * troff/env.c (environment::wrap_up_field): If field_spaces are
10066         non-zero and we have a current_tab, subtract padding from
10067         tab_distance.  If this makes tab_distance <= 0, use the next tab
10068         stop instead.  If there isn't any next tab or it's a left tab,
10069         wrap up the current tab.
10070         (environment::start_field): Initialize tab_precedes_field.
10071         (environment::wrap_up_tab): If there's a current field, update
10072         pre_field_width, field_distance and tab_precedes_field.
10073         * troff/env.h (environment::tab_precedes_field): New member.
10075 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
10077         * ps/ps.c (ps_printer::do_file): New function.
10078         (ps_printer::special): Bind to `file' special.
10079         (ps_printer::do_exec): Set ndefined_styles to 0.
10081 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
10083         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10084         Avoid stripping first character from the start of unrecognized
10085         escapes.  Use lex_error instead of error to report errors.
10086         * eqn/lex.c (get_token): Rework handling of escapes.
10087         (lex_error): Move declaration into...
10088         * eqn/eqn.h.
10090         * xditview/xditview.c (main): Make -page option work.
10092         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10094 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
10096         * macros/tmac.s (B2): Correct size of box.
10098 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
10100         * macros/tmac.s (B2): Postpone drawing the box until in the
10101         top-level diversion.
10103         * tty/tmac.tty: Add font translations for C, CR, CW.
10105         * groff.c (synopsis, help): Document -i.
10106         * groff.sh: Implement -i.
10108         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10109         Simplify the construction of SN.
10111         * troff/number.c (parse_term): Give `|' a higher precedence.
10112         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10113         accordingly.
10115         * macros/tmac.s (B2): Use par@finish instead of par@reset.
10117 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
10119         * lib/string.c (string::move): New function.
10120         * lib/stringclass.h: Declare it.
10122 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
10124         * troff/env.c (distribute_space): Add optional argument
10125         `force_forward'.
10126         (environment::wrap_up_field): Call distribute_space with
10127         `force_forward' argument of 1.
10129 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
10131         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10132         Inline it.  Move reallocation into...
10133         (string::grow1): New function.
10134         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10135         dependencies to include library header files.
10136         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10138 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
10140         * macros/tmac.s (@NH): Use the same number registers than -ms does
10141         for the heading level counters.  Use the same string that -ms does
10142         for the number for this heading.
10144 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
10146         * lib/new.c (operator new): Cast result of malloc to char *.
10148         * troff/input.c (spring_trap, lookup_request): Add assert that nm
10149         is not null.
10151 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
10153         * groff.c (main): Support -i.
10155 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
10157         * pic/pic.h: Include <osfcn.h>.
10159         * ps/ps.c: Add declaration of mktemp.
10161         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10162         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10163         argument as union wait *.
10164         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10165         argument to union wait *.
10167 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
10169         * tty/tmac.tty: Add definition of \(co.
10171         * pic/object.c (make_arc): Only increase radius when radius
10172         strictly less than d.
10173         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10174         more than once.
10176         * troff/env.c (environment::environment(symbol),
10177         environment::environment(const environment *)):  Initialize
10178         input_trap_count.
10180 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
10182         * tbl/main.c (main): Add exit(0).
10184         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10186         * pic/main.c (main):
10187         * eqn/main.c (main):
10188         * tbl/main.c (main):
10189         * etc/soelim.c (main):
10190         * driver/printer.c (printer::~printer):
10191         * troff/node.c (real_output_file::~real_output_file,
10192         real_output_file::flush):  Check for errors on stdout.
10194         * most files: Add 1991 to copyright notice.
10196         * macros/tmac.s: Don't test \n(.x and \n(.y.
10198         * troff/input.c (token::next): Rename `escape_char' label to
10199         `handle_escape_char' and `normal_char' label to
10200         `handle_normal_char'.
10202 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
10204         * groff.c (main, synopsis, help): Support -a option.
10205         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
10206         to trflags while parsing options.
10208 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
10210         * troff/number.c (parse_term): With `m', `M' and `n' scale
10211         indicators, convert scale factor to hunits before scaling.
10213 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
10215         * lib/font.c (scale_round): Better test for overflow when n is
10216         negative.
10218 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
10220         * tbl/main.c (process_format): Add second argument of type
10221         options*. Change callers.  Allow opt->tab_char as well as '\t'
10222         between format items.
10224 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
10226         * macros/tmac.an (PD): With no arguments, make sure register PD is
10227         at least \n[.V].
10228         (TH): Call PD with no argument, instead of setting register PD
10229         directly.
10231 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
10233         * Version 1.00 released.
10235 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
10237         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10239         * dvi/devdvi/DESC: Mount CW instead of CR.
10241         * dvi/tmac.dvi: Add definition of \(tm.
10243         * dvi/devdvi/texsy.map: Add lh, and rh.
10244         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10245         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10247         * dvi/devdvi/FontMakefile: Generate H from cmss10.
10248         * dvi/devdvi/Makefile: Install H.
10249         * dvi/devdvi/H: New file.
10251 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
10253         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10254         be 0.
10256 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
10258         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10260         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10262         * macros/tmac.s (@EN): Handle the case where the equation is empty
10263         but the label is not.
10265 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
10267         * troff/groff.h: New warning category WARN_SPACE.
10268         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10269         WARN_SPACE to warning_table.
10270         (interpolate_macro): Give a warning of type WARN_SPACE if the name
10271         is longer than two characters and is not defined, but the first
10272         two characters do make a defined name.
10274         * PROBLEMS: New file.
10276         * CHANGES: New file.
10277         * README-0.6, README-1.00: Deleted.
10279         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10280         * xditview/devX75/Makefile: Make devX75-12.
10281         * xditview/devX100/Makefile: Make devX100-12.
10283         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10284         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10286 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
10288         * README-0.7: Rename to README-1.00.
10290         * macros/tmac.pic: New file.
10291         * macros/Makefile (install.nobin): Install tmac.pic.
10293 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
10295         * troff/env.c (hyphen_word): Correct the test for whether the
10296         token is a hyphen.  Reset npos to 0.
10298         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10300 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
10302         * macros/tmac.s (ds*common-end): Call par*reset.
10303         (PE): Likewise.
10304         (par@reset-indent): Deleted.
10306         * macros/tmac.s (@IP): Divert the label.
10308 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
10310         * xditview/draw.c (setGC): Use a line width of .1m rather than
10311         .04m by default; round rather than truncate value.
10313         * tbl/table.c (class empty_entry): New class.
10314         (empty_entry::empty_entry, empty_entry::line_type): New functions.
10315         (table::add_entry): Represent empty entries by objects of type
10316         empty_entry.
10317         (table_entry::line_type): Return -1.
10318         (table::determine_row_type): Ignore entries with line_type 0.
10319         Treat type -1 as non-lines.
10321 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
10323         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10324         macros/tmac.s: Rename \(-d to \(Sd.
10326 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
10328         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10329         * xditview/libXdvi/DviChar.c: Likewise.
10330         * dvi/devdvi/texsy.map: Add `<<', `>>'.
10332 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
10334         * troff/div.c (top_level_diversion::begin_page): Call
10335         init_output() if the_output is 0.
10337 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
10339         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10340         ESCAPE_c.
10341         (get_copy): Turn \E into ESCAPE_E.
10342         (token::process, asciify): Handle ESCAPE_E.
10344         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10345         (RD): New macro.
10346         (DS): Implement `.DS R'.
10348 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
10350         * macros/tmac.s (FS): New macro.
10352         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10354         * macros/tmac.s (cov*tl-init): Remove after first execution
10355         instead of aliasing to @nop.  Call top of page macro explicitly
10356         instead of setting trap; call @init first.  Set pg@top as top of
10357         page macro.
10358         (cov*auto-init): Deleted.  Set cov*tl-init instead of
10359         cov*auto-init as top of page trap. 
10360         (TL, LP): Do a break instead of calling cov*tl-init.
10361         (cov*print): With RP format but no TL, alias FS and FE to @FS and
10362         @FE; in this case also give a warning and always start another
10363         page. No need to set pg@top here.
10364         (cov*tl-init): Rename to cov*first-page-init.
10366         * macros/tmac.s (RP): Do `.pn 0'.
10367         (cov*tl-init): With RP format don't do `.pn 0'.
10369         * macros/tmac.s (pg@cs-top): Set no space mode.
10371         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10372         (cov*ab-init): Alias TL, AU and AI to these.
10374 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
10376         * macros/tmac.s (@EQ): Move the space before the equation into @EN
10377         (@EN): Do nothing unless \n[dl] is > 0.
10379 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
10381         * pic/object.c (ellipse_object::radius): New function.
10383         * VERSION: Change version to 0.7.
10385         * tbl/table.c (block_entry::do_divert): Declare return type as
10386         void.
10387         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10389 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
10391         * troff/column.c: New file.
10392         * troff/Makefile: Corresponding changes.
10394         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
10395         Friend of vunits.
10397         * troff/div.c (top_level_diversion::space): If the space causes
10398         the first-page transition and springs a trap, truncate the space
10399         to 0.
10401 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
10403         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10404         the document.
10406         * pic/troff.c (troff_output::line_thickness,
10407         troff_output::set_fill): Do a horizontal motion to compensate for
10408         the width of the \D escape sequence.
10410 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
10412         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10413         (not X75).
10415         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
10416         to printf.
10418         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10419         Supply empty definition.
10420         (text_entry::simple_print, simple_text_entry::simple_print):
10421         Delete declarations.
10422         (table::add_entry): Represent empty entries by objects of type
10423         `simple_entry'.
10425 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
10427         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10429         * tbl/table.c (left_text_entry::add_tab): New function.
10431         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
10432         initialize like LP.
10434 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
10436         * troff/env.c (environment::start_field): Give an error message if
10437         there is no next tab.
10439 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
10441         * troff/env.c (hyphenate): Skip initial elements with zero
10442         hyphenation code.
10444         * macros/tmac.s (par@init): Keep VS in points rather than units.
10446 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
10448         * pic/main.c (main): Implement `-c' option.
10449         * pic/output.h: Declare make_tpic_output().
10450         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10451         protected.
10452         (tpic_output): New class.
10453         (tpic_output::tpic_output, tpic_output::set_pen_size,
10454         tpic_output::command, make_tpic_output): New functions.
10456 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
10458         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
10459         if they're not already defined.
10460         * tbl/table.c (init_output): Don't test \n(.g.
10462         * troff/input.c (do_if_request): Delete `g' condition. Recognize
10463         `d', `r' and `c' conditions even in compatibility mode.
10465 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
10467         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10468         box.
10470 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
10472         * troff/env.h (environment::prev_line_interrupted): New member.
10473         (environment::get_prev_line_interrupted): New function.
10474         * troff/env.c (environment::newline): Set prev_line_interrupted.
10475         (environment::environment(const environment *),
10476         environment::environment(symbol)): Initialize
10477         prev_line_interrupted.
10478         * troff/input.c (process_input_stack): Don't give special
10479         treatment to space and newline at the beginning of the line if the
10480         previous line was interrupted.
10482 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
10484         * eqn/eqn.y: Disallow PRIME by itself.
10485         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10486         PRIME.
10487         (def_table): Remove definition of '.  Define prime to be `.
10489         * eqn/eqn.y: Split off part of rule `script' into a new rule
10490         `nonsup'.
10492 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
10494         * macros/tmac.s ({, }): New string aliases.
10496 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
10498         * README-0.7: New file.
10500 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
10502         * macros/tmac.s: New file.
10503         * man/groff_ms.man: New file.
10504         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10505         * Makefile.bd: Similarily.
10506         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10507         definition of TMAC_S.
10508         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10509         * macros/TODO: New file.
10511 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
10513         * troff/env.c (right_justify): New function.
10514         (init_env_requests): Bind this to request "rj".
10515         (center_lines): Set right_justify_lines to 0. If we get a bad
10516         integer, center 1 line.
10517         (environment::environment(symbol), environment::environment(const
10518         environment *)): Initialize right_justify_lines.
10519         (environment::get_right_justify_lines): New function.
10520         (init_env_requests): Bind this to number_register ".rj".
10522         * troff/env.c (environment::choose_breakpoint): Implement
10523         hyphenation_margin and hyphenation_space.
10524         (environment::get_hyphenation_space,
10525         environment::get_hyphenation_margin): New functions.
10526         (init_env_requests): Bind these to .hys and .hym.
10527         (hyphenation_space_request, hyphenation_margin_request): New
10528         functions
10529         (init_env_requests): Bind these to hys and hym.
10530         (environment::environment(symbol), environment::environment(const
10531         environment *)): Initialize hyphenation_margin and
10532         hyphenation_space.
10533         * troff/env.h: Corresponding changes to class environment.
10535 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
10537         * troff/div.c (blank_line): Always do a break.
10539         * eqn/box.c (do_text): Turn off escapes while appending text to
10540         string.
10542 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
10544         * troff/input.c (while_break_request, while_continue_request): New
10545         functions.
10546         (init_input_requests): Bind these to "break" and "continue".
10547         (while_depth, while_break_flag): New variables.
10548         (while_request): Update while_depth.  Break out of loop if
10549         while_break_flag is set.
10551 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
10553         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10554         rather than 0.
10556 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
10558         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
10560         * stringify: New file.
10561         * Makefile (groff.o): Use stringify.
10563         * xditview/tmac.X: Remove definition of \(rn.
10564         * xditview/libXdvi/DviChar.c: Remove radicalex from
10565         Adobe_symbol_map.
10567 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
10569         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
10570         (alphabetic_block_entry::alphabetic_block_entry,
10571         alphabetic_block_entry::divert, alphabetic_block_entry::print):
10572         New functions.
10573         (block_entry::divert): Split off body into ...
10574         (block_entry::do_divert): If the block is alphabetic, subtract 2n
10575         from the line length; also update the span width to dl+2n, and the
10576         alphabetic span width to dl.
10578         * driver/input.c (do_file):  While reading argument to D command,
10579         when expanding buffer, multiply szp by sizeof(int) rather than 2
10580         in the argument to memcpy.
10582         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
10583         width of alphabetic columns.
10585 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
10587         * troff/node.c (lookup_family): Supply second argument to lookup.
10589         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
10590         search, return immediately if v is 0.
10592         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
10593         (troff_output::start_picture): Set this reg.
10594         (troff_output::end_picture): Remove this reg
10595         * eqn/box.c (box::extra_space): Don't produce `\x's if
10596         EQN_NO_EXTRA_SPACE_REG is defined.
10598         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
10599         * eqn/text.c (split_text): Map ' to \(fm when it's the first
10600         character.
10602 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
10604         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
10605         requests.
10607         * troff/div.c (top_level_diversion::top_level_diversion):
10608         Initialize page_number to 0.
10610 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
10612         * groff/troff (environment::environment(const environment *)):
10613         Initialize name to e->name, rather than "anonymous".
10615 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
10617         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
10618         requested_page.  Split middle part into ...
10619         (FindPage): New function.
10620         (SetValues): If we don't yet know the last page, and the requested
10621         page is greater than the current page, call FindPage.
10622         Update the font_map_string before doing this.
10624         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
10625         Translate \(lh and \(rh into left and right double arrows.
10627         * troff/node.c (class hyphen_inhibitor_node): New class.
10628         (hyphen_inhibitor_node::hyphen_inhibitor_node,
10629         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
10630         hyphen_inhibitor_node::type,
10631         hyphen_inhibitor_node::get_hyphenation_type): New functions.
10632         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
10633         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
10634         word.
10636 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
10638         * troff/node.h (dummy_node::get_hyphenation_type,
10639         transparent_dummy_node::get_hyphenation_type):  Declare them.
10640         * troff/node.c: (dummy_node::get_hyphenation_type,
10641         transparent_dummy_node::get_hyphenation_type): New functions.
10643 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
10645         * xditview/libXdvi/draw.c: If M_PI not defined after including
10646         math.h, then define it.
10648         * xditview/Makefile: Add definition of AR. Pass it to the submake
10649         in libXdvi.
10650         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
10652 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
10654         * troff/dictionary.h (object_dictionary::alias): Declare return
10655         value as int.
10656         * troff/dictionary.c (object_dictionary::alias): Return non-zero
10657         if the old name was defined.
10658         * troff/input.c (alias_macro): Give a warning if the old name was
10659         not defined.
10660         * troff/reg.c (alias_reg): Likewise.
10662 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
10664         * troff/input.c (token::next): Delete implementation of \R.
10666         * macros/Makefile: Strip comments from tmac.e while installing it.
10668         * troff/input.c: New variable `nroff_mode'.
10669         (troff_request, nroff_request): New functions.
10670         (init_input_requests): Bind `troff' and `nroff' to troff_request
10671         and nroff_request.
10672         (do_if_request): Compute results of t and n conditions from
10673         nroff_mode.
10675         * text/text.c (split_text): Fix typo in >=.
10677         * eqn/lex.c: Add definition of `==' to def_table.
10679 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
10681         * pic/tex.c (tex_output::start_picture): Change the definitions of
10682         \graph and \graphtemp so that they work properly with Plain TeX.
10684         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
10685         argument to `ar' is not less than the first.
10687         * pic/pic.y: Allow a comma between elements of the variable list
10688         in the argument to `reset'.
10690         * pic/object.c (arc_object::arc_object): Fix computation of
10691         radius.
10693         * eqn/main.c (main): Add exit(0).
10695 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
10697         * troff/div.c (begin_page): Test no_space_mode after doing the
10698         break, but still push the page ejector cookie before doing the
10699         break.  Also set the next page number after doing the break.
10700         
10701         * xditview/xditview.c (NewFile): Don't set the title and icon name
10702         if this is the first file and its name is `-'.
10703         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
10704         the X75 and X100 devices.
10705         (main): If a device has the XT_OPTION flag set and there's exactly
10706         one file argument, pass the driver -xrm and -title options to set
10707         the icon name and window title to the name of the file.
10709         * troff/env.c (environment_switch): If there was an argument but
10710         it wasn't a valid number or name, then pop an environment but
10711         don't give an error message on underflow.
10713         * troff/number.c (start_number): Correct spelling in error message.
10715         * troff/input.c (token::delimiter): Don't print an error message
10716         if err is false.
10718         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
10719         ParseDrawFunction if dw->display_enable is true.
10721 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
10723         * pic/pic.y: Parse text positioning like normal attributes, so as
10724         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
10725         positioning attribute.
10727 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
10729         * tbl/main.c (process_data): When in state START while reading a
10730         text block, don't change to state MIDDLE if c is a newline.
10732 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
10734         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
10735         so as to avoid shadowing parameter.
10737 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
10739         * tbl/table.c (trim_space): Deleted.
10740         (table::add_entry): Don't call trim_space.
10742 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
10744         * VERSION: Change version to 0.6.
10746         * troff/number.c (parse_expr): Make == work.
10748 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
10750         * man/grog.man: New file.
10751         * man/Makefile: Add grog.n to MAN1PAGES.
10752         * etc/grog.sh: New file.
10753         * etc/Makefile: Install grog.sh as grog.
10755 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
10757         * troff/input.c (token::next): Implement \E.
10759 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
10761         * xditview/tmac.X: Change font translations to match tmac.ps.
10763         * troff/input.c (non_empty_name_warning): Don't give a warning if
10764         `\{' terminates the name.
10766 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
10768         * ps/devps/symbol.diff: New file.
10769         * ps/devps/FontMakefile: Mention symbol.diff.
10771 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
10773         * troff/node.c (font_position): Use get_long_name to read the
10774         external_name.
10776         * troff/env.c (environment_switch): If we get a number that's < 0
10777         or >= NENVIRONMENTS, treat it like a name.
10778         Change NENVIRONMENTS to 10.
10780         * troff/groff.h: Remove definition of FONTS_MAX.
10781         * troff/node.h (class font_family): Make map a pointer instead of
10782         an array. Add a map_size member. Make it a class. Make nm const
10783         and public. Make invalidate_fontno a friend.
10784         * troff/node.c: Define font_table_size. Make font_info a pointer
10785         rather than an array.
10786         (class troff_output_file): Allocate font_position dynamically. Add
10787         nfont_positions member.
10788         (troff_output_file::set_font): Grow font_position if necessary.
10789         (troff_output_file::~troff_output_file): Delete font_position.
10790         (troff_output_file::troff_output_file): Allocate font_position.
10791         (grow_font_table): New function.
10792         (troff_output_file::really_begin_page,
10793         troff_output_file:really_copy_page): Use nfont_positions rather
10794         than FONTS_MAX.
10795         (mount_font_no_translate, mount_style): Call grow_font_table if
10796         necessary.
10797         (font_family::font_family): Allocate map.
10798         (font_family::make_definite): Grow map if necessary. Use
10799         font_table_size instead of FONTS_MAX.
10800         (font_family::~font_family): New function.
10801         (invalidate_fontno): Use font_family::map_size.
10802         (get_fontno, env_space_width, env_half_narrow_space_width,
10803         env_narrow_space_width, symbol_fotno, is_good_fontno,
10804         get_bold_fontno, make_glyph_node): Use font_table_size rather than
10805         FONTS_MAX.
10806         (next_available_font_position): Never return 0.
10808 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
10810         * ps/tmac.ps: Add font translations for compatibility with dpost.
10812 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
10814         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
10815         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
10816         Move definitions baseline_sep, shift_down, column_sep,
10817         matrix_side_sep into...
10818         * eqn/box.c: Add them to param_table.
10819         * eqn/pbox.h: Add declarations to pbox.h.
10821         * troff/input.c (set_string): Cast value to unsigned char *.
10823         * troff/token.h (process_input_stack): Declare it static before
10824         declaring it a friend.
10826 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
10828         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
10829         and bottom.
10830         * dvi/devdvi/EX: Regenerate.
10832         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
10833         transparent.
10835 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
10837         * eqn/lex.c: In defaults_table, make definition of `dot' call
10838         `dot_def'.  Don't explicitly make it roman.  Similarily for other
10839         accents.
10841         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
10842         argument.
10843         (for_input::get, for_input::peek): Use this.
10844         (do_for): Add by_is_multiplicative argument.
10845         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
10846         Change semantic value of optional_by to be a double plus a flag
10847         saying whethet the by clause is multiplicative.
10849         * eqn/lex.c (get_delimited_text): Remember location of start of
10850         definition.  Improve error handling when EOF is encountered.
10852         * lib/font.h: Rename handle_x_command to
10853         handle_unknown_font_command.
10854         * lib/font.c (font::load): Call handle_unknown_font_command for
10855         any unknown command in the font description file.  Don't call
10856         handle_x_command. Include the name of the command in the argv.
10857         Improve message for unknown command after kernpairs or charset
10858         command.
10859         * ps/ps.c (ps_font::handle_x_command): Rename to
10860         handle_unknown_font_command.  Remove message about `x download'
10861         command.  Give error message for wrong number of arguments.
10862         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
10863         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
10864         handle_unknown_font_command. Give an error message for wrong
10865         number of arguments.  Rename design_size to designsize.
10866         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
10867         checksum', `designsize' instead of `design_size'.
10869 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
10871         * eqn/*.[chy]: Change underaccent to uaccent.
10873         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
10874         give it the same precedence as ACCENT.
10875         * eqn/other.c (make_underaccent_box): New function.
10876         * eqn/box.h: Declare it.
10877         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
10878         def_table.
10880 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
10882         * pic/pic.y (reset_all): New function. Called in rule for RESET.
10883         (parse_init): Call reset_all.
10884         (define_variable): When defining scale reset only those
10885         pre-defined variables that are scaled.
10886         (defaults_table): Add `scale' as non-scaled value.
10888         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
10889         together with the text; allow any number of positioning words;
10890         allow center as a positioning word.
10892         * pic/object.c (output::compute_scale): Get picture maximum height
10893         and width from variables called maxpswid and maxpsht.
10894         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
10896 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
10898         * pic/object.c (object_spec::make_text): Multiply textht by number
10899         of text items.
10901         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
10902         occur.
10903         (do_sprintf): New function.
10904         (pic.gperf): Add sprintf token.
10905         (text, sprintf): New rules.
10907         * pic/pic.y: `rand()' with no arguments returns a random number
10908         in the range [0,1).
10910         * pic/pic.y: Allow a bare expression to be an attribute: change
10911         precedences to support this.  Change optional_ordinal rule to
10912         optional_ordinal_last to avoid reduce/reduce conflict.
10913         * pic/object.c (object_spec::object_spec): Initialize direction.
10915         * pic/pic.y: Implement ^ operator meaning exponentiation.
10917         * troff/node.h: Add default argument to mount_font.
10918         * troff/node.c (font_position): Read an optional third argument
10919         giving the external_name.
10920         (mount_font): Add optional argument giving the external_name.
10921         (mount_font_not_translate): Have additional argument giving
10922         external name.  Use this name to load the font.  Pass both names
10923         to font_info::font_info.
10924         (font_info::font_info): Have additional argument giving
10925         external_name.
10926         (class tfont): New member external_name.
10927         (font_info::get_tfont): Use external name to construct tfont_spec.
10929 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
10931         * eqn/lex.c (init_table): Add argument giving device.  Define
10932         name of device to be "1".
10933         (do_ifdef): Counts as true if the argument has been defined with
10934         `define'.
10935         * eqn/main.c (main): Call init_table with device argument. Make
10936         device local to main.
10937         * eqn/eqn.h: Change declaration of init_table. Remove declaration
10938         of device.
10940         * pic/lex.c (get_delimited): Allow text to be delimited by
10941         matching {}s.  Don't recognize ending delimiter within a string.
10943         * troff/input.c (get_delim_name): New function.
10944         (token::next): Implement \C.
10946         * lib/font.c (font::load): Grok ---.  Add an alias for each
10947         character based on its code.
10948         (font::get_code_width): Deleted.
10949         * lib/font.h (class font): Declare font::number_to_index().
10950         Remove declaration of font::get_code_width.
10951         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
10952         to indices of named characters.
10953         (font::number_to_index): New function.
10954         * troff/input.c (font::number_to_index): New function.
10955         (get_charinfo_by_number, charinfo::get_number,
10956         charinfo::set_number): New functions.
10957         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
10958         (token::process, token::description, token::get_char,
10959         token::add_to_node_list, token::operator==): Handle
10960         TOKEN_NUMBERED_CHAR.
10961         * troff/charinfo.h: Declare get_charinfo_by_number,
10962         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
10963         charinfo class.
10964         (charinfo::numbered): New function.
10965         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
10966         * troff/env.h (class environment): Remove declaration of ...
10967         * troff/env.c (environment::make_numbered_char_node): Deleted.
10968         * troff/node.c (make_numbered_node): Deleted.
10969         (class numbered_glyph_node): Remove.
10970         (troff_output_file::put_char_width, troff_output_file::put_char):
10971         Handle numbered chars.
10972         (troff_output_file::numbered_char): Removed.
10973         (tfont::get_code_width): Removed.
10974         (make_glyph_node): Don't search special fonts for numbered
10975         characters.
10976         * troff/node.h: Remove declaration of make_numbered_node.
10977         * driver/input.c (do_file): Handle N command.
10978         * driver/printer.h: Add declaration of ...
10979         * driver/printer.c (printer::set_numbered_char): New function.
10980         * dvi/tfmtodit.c (main): Generate unnamed entries.
10981         * ps/devps/afmtodit: Likewise.
10982         * xditview/xtotroff.c (MapFont): Likewise.
10983         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
10985         * tbl/main.c (process_format): If multiple widths are specified
10986         for a column but all the widths are the same, don't give an error
10987         message.
10989         * tbl/table.c (table::do_row): If the current row is all lines and
10990         the stuff doesn't contains a line, mark the top of the row after
10991         printing stuff before the row.  If the current row is not all
10992         lines and the stuff doesn't contain a line, don't unnecessarily
10993         mark the top of the row before printing the stuff.
10994         
10995 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
10997         * troff/groff.h: Remove MAX_PATH.
10998         * troff/input.c (open_file): Dynamically allocate space for the
10999         path.
11000         (open_mac_file, process_macro_file): Corresponding changes.
11002 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11004         * troff/node.h (class output_file): Make copy_file pure.  Add
11005         vspace method ifdef COLUMN. Add is_printing method.
11006         * troff/node.c: Add class printing_reg. Add class
11007         real_output_file. Derive other output_file classes from
11008         real_output_file; in these classes rename begin_page to
11009         really_begin_page, print_line to really_print_line, copy_file to
11010         really_copy_file, transparent_char to really_transparent_char.
11011         Move output_file::flush to real_output_file. Add printing member
11012         to class output_file.
11013         * troff/div.h: Remove printing member from top_level_diversion.
11014         Add vspace member function to class diversion ifdef COLUMN. Add
11015         some declarations ifdef COLUMN.
11016         * troff/div.c (top_level_diversion::copy_file,
11017         top_level_diversion::transparent_output,
11018         top_level_diversion::output): Don't test printing member before
11019         output.
11020         * troff/input.c: Handle initial variable_space_request ifdef
11021         COLUMN.
11022         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11023         but comment it out.
11025 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11027         * troff/div.c (diversion::need): Make any space forced.  If we
11028         sprung a trap, set truncated_space to minus the distance to the
11029         trap and set needed_space to the amount that was needed.
11030         (top_level_diversion::space): A forced space turns no_space_mode
11031         off.
11032         (class constant_vunits_reg): New class.
11033         (init_div_requests): Implement number registers .trunc and .ne
11034         using constant_vunits_reg.
11035         (class truncated_space_reg): Deleted.   
11037         * troff/div.h: Don't have a no_space_mode member in diversion.
11038         Instead have it in top_level_diversion.
11039         * troff/div.c (diversion::diversion): Don't initialize
11040         no_space_mode.
11041         (top_level_diversion::top_level_diversion): Initialize
11042         no_space_mode.
11043         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11044         (macro_diversion::output): Don't clear no_space_mode.
11046         * troff/input.c (diverted_space_node::reread): Don't call
11047         environment::do_break.  In fill mode, act like a blank line.
11048         (diverted_copy_file_node::reread): Don't call
11049         environment::do_break.
11051         * troff/div.c (blank_line): New function.
11052         * troff/div.h: Declare it.
11053         * troff/input.c (process_input_stack): Call it.
11055         * troff/div.c (truncated_space_reg::get_string): New function.
11056         (init_div_requests): Bind to .trunc.
11057         (space_request, top_level_diversion::space,
11058         top_level_diversion::output, macro_diversion::space,
11059         macro_diversion::output): Update truncated_space.
11060         (macro_diversion::output): Redo calculations when trap sprung.
11061         (macro_diversion::output, macro_diversion::space): No need for
11062         trap_flag.
11064         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11065         after truncating post line spacing.
11067 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
11069         * ps/devps/prologue (MF, SF): Make them work even if setfont is
11070         defined as a procedure rather than as an operator.
11072 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
11074         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11076 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
11078         * troff/div.c (top_level_diversion::output): Merge
11079         output_file::print_line and output_file::end_of_line member
11080         functions.
11081         * troff/div.h (class output_file):
11082         * troff/node.c (troff_output_file::print_line,
11083         troff_output_file::end_of_line, output_file::end_of_line,
11084         ascii_output_file::print_line, suppress_output_file::print_line):
11085         Corresponding changes.  
11087 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
11089         * troff/input.c (token::next): Don't give a warning for `\.'.
11091         * troff/env.c (environment::get_center_lines): New function.
11092         (init_env_requests): Bind number register .ce to it.
11093         * troff/env.h: Declare it.
11094         * tbl/table.c (table::init_output): Define reset macro to restore
11095         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
11096         Then do .ce 0.
11097         (table::print): If center option not given, then imply center
11098         option if SAVED_CENTER_REG > 0.
11100 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
11102         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11103         Troff.ps from DOWNLOAD.
11104         
11105         * troff/Makefile: Change comment in DEFINES to avoid confusing
11106         System V make.
11108         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11109         code.  Don't try to catch errors with stopped.
11110         (check_line_lengths): New function.
11111         * ps/devps/prologue (EXEC): Deleted.
11112         (EBEGIN, EEND): New procedures.
11114 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
11116         * troff/input.c: Include request.h before node.h.
11117         * troff/node.c: Likewise.
11118         * troff/env.c: Likewise.
11119         * troff/div.c: Likewise.
11120         * troff/node.h (class special_node): Store argument as a macro
11121         rather than a char *.
11122         * troff/node.c (special_node::special_node, special_node::copy):
11123         Grok this.
11124         (special_node::~special_node): Deleted.
11125         (special_node::tprint): Deleted.
11126         (special_node::tprint_start, special_node::tprint_end,
11127         special_node::tprint_char): New functions.
11128         (troff_output_file::special): Deleted.
11129         (troff_output_file::start_special, troff_output_file::end_special,
11130         troff_output_file::special_char): New functions.
11131         * troff/input.c (special_node::tprint): New function.
11132         (do_special): Use macro not char *.
11133         (do_transparent_macro): Deleted.
11134         (token::next): Don't call do_transparent_macro.
11136         * troff/input.c (token::next): Add 'Y' case.
11137         (do_transparent_macro): New function.
11138         * troff/node.c (troff_output_file::special): Handle newlines with
11139         argument using new continuation convention.
11140         * driver/input.c (get_string): Cope with continuation convention.
11141         (do_file): Don't call skip_line after calling get_string(1).
11142         * ps/ps.c (ps_printer::special, ps_printer::do_import,
11143         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11144         arg.
11145         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11146         with +.
11148 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
11150         * troff/input.c (asciify): By default, illegal input characters
11151         should return empty string.
11153         * troff/input.c (copy_file): Handle first page transition like title.
11154         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11156         * troff/input.c (token::next): Improve error message for EOF after
11157         escape character.
11158         (input_char_description): New function.
11159         (get_char_for_escape_name): Use input_char_description.
11160         (token::next): Warn about unrecognized escape sequences.
11161         (warning_table): Add WARN_ESCAPE.
11162         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11163         accordingly.
11165         * troff/token.h: Remove declaration of process_input_stack.
11167         * troff/input.c: Remove declaration of init_hyphen_requests.
11168         * troff/request.h: Correct spelling in declaration of same.
11170         * troff/input.c (token::next): Check whether escape_char is 0.
11172 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
11174         * groff.c (main, usage, help): Implement -P and -L options.
11175         * groff.sh: Likewise.
11177         * troff/input.c (token::next): Use some gotos to avoid code
11178         duplication.
11180         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11181         Avoid calling symbol::symbol if name empty.
11183 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
11185         * troff/input.c (init_input_requests): Make \n(.x return the major
11186         version number and \n(.y return the minor version number.
11187         * troff/Makefile: Construct file majorminor.c defining
11188         major_version and minor_version automatically from ../VERSION.
11190         * troff/node.c (class glyph_node): Make operator new and operator
11191         delete public.
11192         (class ligature_node): Similarily.
11194         * troff/input.c (operator==(const macro &, const macro &)): New
11195         function.
11196         (non_interpreted_node::same): Use this.
11197         (string_iterator::string_iterator): Make macro& argument const.
11199         * troff/input.c (input_iterator::get): New function. Don't make
11200         asciify_macro or class non_interpreted_node friends of class
11201         input_iterator.
11202         (non_interpreted_node::interpret): Use input_iterator::get.
11203         (asciify_macro): Likewise.
11205         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11206         ~non_interpreted_node): Deleted.
11207         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11208         Deleted.
11210         * troff/symbol.h: Make all symbol member functions const.
11212         * lib/strtol.c: New file.
11213         * lib/Makefile: Add strtol.c.
11214         * Makefile: Define STRTOL as strtol.o to include strtol in
11215         libgroff.a.
11217 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
11219         * pic/troff.c (troff_output::simple_circle): Divide by scale.
11221 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
11223         * troff/input.c (do_special): Use input_level.
11225         * troff/token.h (TOKEN_BACKSPACE): New token.
11226         (token::backspace): New function.
11227         * troff/input.c (token::description, token::next, token::process):
11228         Grok TOKEN_BACKSPACE.
11229         (do_special): Turn TOKEN_BACKSPACE back into \b.
11231         * troff/token.h (token::leader): New function.
11232         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11234         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11236         * troff/input.c (do_special): Use token::description in error
11237         message.
11239 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
11241         * troff/input.c (decode_args): Combine quoted and
11242         quote_input_level variables. Make it a for (;;) loop.
11244         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11246         * troff/input.c (read_long_escape_name): The test for whether to
11247         expand buffer was off by 1.
11248         (read_string): Similarily.
11250 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
11252         * troff/input.c: Use `const int' rather than `static const int'.
11254         * troff/div.h (diversion::copy_file): Declare as pure virtual.
11255         (macro_diversion::copy_file): New function.
11256         * troff/node.h: New class diverted_copy_file_node.
11257         * troff/node.c: Implement it.
11258         * troff/input.c (copy_file): Use diversion::copy_file. Handle
11259         first page transition by pushing a diverted_copy_file_node.
11260         * troff/input.c (token::next, process_input_stack): Don't handle
11261         COPY_FILE_REQUEST.
11263 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
11265         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11266         whether space widths need adjusting.
11268         * troff/charinfo.h: Generalize translated_to_space to
11269         special_translation so as to allow translation to \&.
11270         * troff/input.c (translate): Allow translation to \&.
11271         (charinfo::*): Corresponding changes.
11272         * troff/node.c (make_node, node::add_char): Corresponding changes.
11273         * troff/node.h (dummy_node::dummy_node): Allow optional first
11274         argument.
11276         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11277         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11278         TOKEN_REQUEST.
11279         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11280         TOKEN_REQUEST with an argument of TITLE_REQUEST.
11281         (token::process): Grok that.
11282         * troff/input.c (copy_file): Handle first page transition like
11283         title by pushing a COPY_FILE_REQUEST cookie.
11284         (token::next, process_input_stack): Grok that.
11285         * troff/node.h (output_file::copy_file): Add x and y arguments.
11286         Make it non-pure.
11287         * troff/div.c (top_level_diversion::copy_file): Supply them.
11288         * troff/node.c (troff_output_file::copy_file): Add x and y
11289         arguments; moveto specified position.  Invalidate font_position
11290         array after copying file.
11291         (output_file::copy_file): New function.
11292         (suppressed_output_file::copy_file, ascii_output::copy_file):
11293         Removed.
11294         * troff/input.c (transparent_file): New function.
11295         (init_input_requests): Bind to "trf".
11296         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11297         (process_input_stack): Likewise.
11299         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11301         * troff/node.c (init_node_requests): New number registers .kern
11302         pointing to global_kern_mode, and .lg pointing to
11303         global_ligature_mode.
11305         * troff/node.c (ligature): Don't change it if we get a bad
11306         integer.
11308         * troff/input.c (do_define_string): Don't strip tabs.
11310         * troff/input.c (asciify_macro): Make the string_iterator auto.
11312         * troff/node.c (init_font_requests): Rename to...
11313         (init_node_requests):
11314         * troff/node.h: Change declaration.
11315         * troff/input.c (main): Change call.
11317         * troff/input.c (node::reread, diverted_space_node::reread): New
11318         methods.
11319         (process_input_stack): Call reread rather than
11320         get_diverted_space_node.
11321         * troff/node.c (node::get_diverted_space_node,
11322         diverted_space_node::get_diverted_space_node): Removed.
11323         * troff/node.h: Declare reread methods instead of
11324         get_diverted_space_node methods. Make `n' member private.
11325         * troff/input.c: (token::diverted_space): Removed.
11326         * troff/token.h: Removed declaration.
11327         
11329 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
11331         * eqn/script.c (script_box::compute_metrics): Don't let
11332         SUP_RAISE_FORMAT become negative.
11334         * tbl/table.c (table::do_row): Entries that don't end in the
11335         this row shouldn't make the row non-blank.
11336         
11337         * tbl/table.c (table::make_columns_equal): Only set the width of
11338         columns which are marked as equal.
11339         
11340         * tbl/main.c (process_data): Before issuing excess data error,
11341         if last character was a newline unget it; then get it again after
11342         the error.  Also include the contents of the entry in the message.
11344         * groff.c: New file.
11345         * Makefile: Build groff from groff.c.  Make it possible to use
11346         either groff.sh or groff.c as groff.
11347         * Makefile.bd: Similarily.
11349 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
11351         * groff.sh: Don't delay expansion of $@ in assignment to files.
11352         Remove occurrences of \".
11354 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
11356         * all Makefiles: Simplify and rearrange.
11358         * Makefile: Handle fmod like malloc.
11359         * lib/Makefile: Similarily.
11360         * lib/fmod.c: Remove #ifdef NEED_FMOD.
11362         * Makefile: Rename OPTIMISE to OPTIMIZE.
11364         * groff.sh: Remove assignment to PATH.
11365         * Makefile: Remove SHPATH variable.
11366         * Makefile.bd: Similarily.
11368         * groff.sh: Add -V option to print the pipeline instead of
11369         executing it.
11371 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
11373         * lib/font.c: Split off file searching into ...
11374         * lib/fontfile.c: New file.
11376         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11378 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
11380         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11381         Also change misleading comment.
11382         (table::do_vspan): Change similarily misleading comment.
11383         * tbl/main.c (process_data): A format row with an explicit `s'
11384         uses up a data line, even if all the other columns are `_' or `='.
11386         * troff/input.c (token::description): Fix description of
11387         TOKEN_DUMMY and TOKEN_EMPTY.
11389 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
11391         * groff.sh: Fix description of -Z in help message.
11393 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
11395         * pic/object.c (object_spec::make_object): Allow negative and zero
11396         line thicknesses.
11397         * pic/pic.y: Give linethick default value of -1.0.
11398         * pic/troff.c (troff_output::troff_output): Initialize
11399         last_line_thickness to BAD_THICKNESS.
11400         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11401         (troff_output::line_thickness): Canonicalize negative thicknesses
11402         to RELATIVE_THICKNESS.
11403         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11404         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11405         to -1.0.
11406         (tex_output::start_picture): Set pen_size to -2.0.
11408         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11409         0, then use 0 linewidth.
11410         (ps_printer::ps_printer): Initialize line_thickness to -1.
11412         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11414         * ps/devps/symbolchars: Remove `or'.
11415         * ps/tmac.ps: Implement \(or with .char.
11417         * ps/devps/symbolchars: Move most characters into textmap.
11418         * ps/devps/textmap: Add names for troff bracket characters. Remove
11419         ul, ru, br, bv.
11421         * ps/devps/TSymbol.ps: Removed.
11422         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11423         * ps/tmac.ps: Do with .char what TSymbol did.
11424         * ps/devps/download: Remove TSymbol.
11426         * ps/devps/T: Removed.
11427         * ps/devps/Troff.ps: Removed.
11428         * ps/devps/Troff.afm: Removed.
11429         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11430         * ps/devps/download: Remove Troff.
11431         * ps/devps/FontMakefile: Remove T target.
11432         * ps/devps/DESC-A4: Remove T from font list.
11433         * ps/devps/DESC-letter: Likewise.
11435         * troff/input.c (macro_to_node): Rename to ...
11436         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
11437         character's definition while processing it.
11438         * troff/node.c (node::add_char, make_node): Change calls to
11439         macro_to_node accordingly.
11441         * troff/input.c (token::next): Translate \_ to \(ul.
11443         * tty/devascii/R.proto: Add `|'.
11444         * tty/devlatin1/R.proto: Likewise.
11446 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
11448         * man: Put the version number in all the man pages.
11450 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
11452         * Makefile.bd: New file.
11453         * README.bd: New file.
11455         * VERSION: New file.
11456         * lib/version.c: Removed.
11457         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11458         in clean target.
11460         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11461         environment variable.
11463         * all Makefiles: Split install target into install.bin for
11464         binaries, and install.nobin for everything else.
11465         * Makefile: Add bindist target.
11467         * man/afmtodit.man: New file.
11468         * man/Makefile: Add afmtodit.n to MAN1PAGES.
11469         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11470         in BINDIR.
11471         * ps/Makefile: Pass BINDIR to make install in devps.
11473         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11474         the space character.
11476         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11478 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
11480         * ps/ps.c: Redo font downloading.
11481         * ps/devps/download: New file.
11482         * ps/devps/Makefile: Add download to DEVICEFILES.
11483         * ps/devps/afmtodit: Remove -d option.
11484         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11485         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11486         * ps/devps/zapfdr.ps: Likewise.
11487         * ps/devps/TSymbol.ps: Likewise.
11489 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
11491         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11493 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
11495         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11496         then strip the first line if it starts with %.
11497         * Makefile: Add a comment about this.
11499         * man/tfmtodit.man: New file.
11500         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11501         * dvi/Makefile: Install tfmtodit in BINDIR.
11503         * dvi/tfmtodit.c (usage): Mention -v option.
11505 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
11507         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11508         * troff/node.c (troff_output_file::transparent_char): Don't call
11509         flush_tbuf.
11511         * eqn: Add check_tabs method to most box classes.
11512         * eqn/box.c (box::top_level): Call check_tabs.
11514         * eqn/script.c (script_box::output): Use \Z.
11515         * eqn/limit.c (limit_box::output): Use \Z.
11517         * eqn/box.c (box::top_level): Use itoa.
11519 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
11521         * dvi/tmac.dvi: Add font translations for CR, C, TT.
11522         * dvi/devdvi/Makefile: Don't make links to CW.
11524         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11525         HX, HD.
11526         * xditview/tmac.X: Likewise.
11528         * troff/node.c: Add font translation feature.
11529         (get_font_translation): New function.
11530         (symbol_fontno): Translate the font name.
11531         (mount_font_no_translate): Rename to mount_font to this.
11532         (mount_font): New function.
11533         (font_family::make_definite): Call mount_font_no_translate instead
11534         of mount_font.
11535         (mount_style): Translate the font name.
11536         (font_translate): New function.
11537         (init_font_requests): Bind "ftr" to font_translate.
11539         * ps/devps/prologue (SN): New procedure that rounds a position to
11540         the nearest (pixel + (.25,.25)).
11541         (DL): Use SN to round endpoints.
11543         * lib/version.c: Changed version to 0.5.
11545 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
11547         * Makefile: Move definition of PAGE to the very beginning, so that
11548         people are less likely to miss it.
11550 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
11552         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11554         * troff/env.c (environment::choose_breakpoint): Make `can't find
11555         breakpoint' error a warning of type WARN_BREAK.  Change message to
11556         `can't break line'.
11557         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11558         code 040000.
11559         * troff/input.c: Add WARN_BREAK to warning_table.  Include
11560         WARN_BREAK in DEFAULT_WARNING_MASK.
11562         * tty/tmac.tty: Add definition of \(+-.
11564         * groff.sh: Remove `--' option to set command.
11566         * dvi/devdvi/texsy.map: Remove duplicate md entry.
11568         * ps/devps/eqnchar: Better definition of cdot using md.
11569         * dvi/devdvi/eqnchar:  Likewise.
11570         * xditview/devX100/eqnchar:  Likewise.
11571         * xditview/devX75/eqnchar: Likewise.
11572         * eqn/lex.c: Add definition of cdot.
11574 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
11576         * troff/input.c (get_optional_char): New function.
11577         * troff/input.c (set_page_character): Use get_optional_char(),
11578         rather than has_arg() and tok.get_char(1).
11579         * troff/env.c (tab_character, leader_character, hyphen_char,
11580         field_characters): Likewise.
11581         (margin_character): Likewise.  Also always delete the
11582         margin_character_node.
11584         * troff/input.c (token::get_char): Use token::description.
11586         * troff/input.c (has_arg): Don't skip over tab and \}.
11587         * troff/number.c (start_number): Give a warning if the number
11588         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
11590 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
11592         * troff/input.c (empty_name_warning, non_empty_name_warning): New
11593         functions.
11594         (get_name, get_long_name): Use these.  Rename `warn' argument to
11595         `required'.
11597         * troff/node.c (get_fontno): Test that the symbol is not null.
11599         * troff/input.c (token::description): New function.
11600         * troff/number.c (parse_term): Use token::description in `numeric
11601         expression expected' message.
11602         * troff/groff.h: Add WARN_MISSING.
11603         * troff/number.c (start_number): New function.
11604         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
11605         get_incr_number): Use start_number().
11606         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
11607         default.
11608         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
11609         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
11610         token::descripion.
11611         * troff/input.c (token::get_char): Use WARN_MISSING.
11612         * troff/input.c (token::delimiter): Use token::description.
11613         * troff/env.c (environment_switch): Back out Aug 3 change.
11614         * troff/input.c (has_arg): Skip over \}s and tabs but give a
11615         warning.
11616         * troff/token.h (token::tab): New function.
11617         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
11618         * troff/reg.c (alter_format): Likewise.
11619         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
11621 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
11623         * troff (most files): Redo warnings. Divide warnings into various
11624         categories; warning() has an additional first argument indicating
11625         the category it falls into.
11626         * troff/input.c (main): -w now takes an argument. New option -W.
11627         (enable_warning, disable_warning): New functions.
11629         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
11630         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
11632 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
11634         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
11635         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
11636         * xditview/devX75/eqnchar: Likewise.
11637         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
11639         * eqn/other.c: When bar or over applies to a single character
11640         don't produce an overline_box or an underline_box. Instead produce
11641         an accent_box or an underaccent_box, with the accent a line
11642         whose width is accent_width.  New classes underaccent_box,
11643         overline_char_box and underline_char_box.
11644         * eqn/box.h: Move overline_box, underline_box, accent_box class
11645         declarations into eqn/other.c. Add declarations of
11646         make_underline_box, make_overline_box, make_accent_box.
11647         * eqn/eqn.y: Call make_overline_box, make_underline_box
11648         make_accent_box instead of constructors.
11649         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
11651         * eqn/other.c: Add accent_box::~accent_box.
11652         * eqn/box.h: Declare it.
11654         * groff.sh: With -Tps, use eqn -D.
11656         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
11657         rather than \l.
11658         (underline_box::output): Similarily.
11659         (accent_box::output): Use \Z.
11661         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
11662         bit smaller.)
11664 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
11666         * troff/div.c (top_level_diversion::transparent_output(unsigned
11667         char)): Use asciify.
11668         * troff/input.c (asciify): Don't make it static.
11669         * troff/token.h (asciify): Declare it.
11670         
11671         * troff/input.c (get_name, get_long_name, token::get_char,
11672         token::delimiter): Add an extra default argument which says
11673         whether a warning should be printed.
11674         * troff: Pass a non-zero argument to one of these rather than
11675         printing a warning directly.
11677 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
11679         * troff: Consistently use symbol::is_null.
11681         * troff/dictionary.h: Move some inline functions into
11682         dictionary.c.
11684         * troff/request.h: Move inline functions into input.c.
11685         (request_or_macro::invoke): Make it pure.
11687         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
11688         * troff/input.c (init_input_requests): Use class constant_int_reg.
11689         (class compatible_reg): Deleted.
11690         * troff/div.c (init_div_requests): Use class constant_int_reg.
11691         (class last_post_line_extra_space_reg): Deleted.
11693         * troff/env.c (tab_character): Don't change the tab character if
11694         we get an invalid argument.
11695         (hyphen_char): Similarily.
11697         * troff/reg.c (alter_format): Check that nm is not null.
11699         * Makefile, groff.sh: Make it possible to customize the commands
11700         used for printing PostScript and dvi files. Also make it possible
11701         to customize the path used by groff.sh.
11703         * eqn/eqn.y: Make `left' right associative.
11705 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
11707         * pic/pic.h: Added definition of M_SQRT2 for those systems that
11708         don't have it.
11710         * pic/pic.h: Removed definition of INT_MAX.
11712         * troff/node.c (italic_corrected_node::vertical_extent): Omit
11713         `return'.
11715         * troff/input.c (token::next):  Handle \R like \n.
11717 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
11719         * ps/tmac.pc (PSPIC): Simplify.
11721         * troff/env.c (tab_stops::to_string):
11722         * pic/pic.y (object_type_name):
11723         * pic/troff.c (simple_output::line):
11724         * pic/tex.c (tex_output::spline):
11725         * pic/object.c (object_spec::make_object):
11726         * tbl/main.c (process_data):  Add cases to switch statements to
11727         avoid cfront warnings. (Some of these are spurious, since the
11728         switch already has a default case.)
11730         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
11731         `ps-'.  Don't test systat; instead check number of arguments to
11732         ps-bb.
11734 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
11736         * macros/tmac.e: Do not decrease the page offset by 0.5i.
11738         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
11739         Unlink the file as soon as we have opened it, so that we don't
11740         have to bother with signal handlers.
11741         (handler): Deleted.
11742         (fatal_error_exit): Deleted.
11743         (main): Don't call signal.
11745         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
11746         can be ignored.
11747         * dvi/devdvi/Makefile: Use the -k option with S and MI.
11749         * pic/pic.y:  If there is a label, or an nth construction before
11750         the first `.' in the argument to `with', ignore it and generate a
11751         warning.
11752         * pic/lex.c (lex_warning): New function.
11754         * tbl/table.c (table::init_output): In section keep and release
11755         macro, use 0 indent when diverting and the correct indent when
11756         rereading.
11758         * troff/input.c (interpolate_number_format): Do not interpolate
11759         anything if the number register is not defined.
11761         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
11763 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
11765         * ps/devps/prologue (PICTURE): Set components of graphics state to
11766         their default values.
11768         * ps/devps/text.enc: Add trademark
11769         * ps/devps/textmap: Add names for club, spade, heart, diamond,
11770         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
11771         * ps/devps/symbolchars: Add names for summation and product.
11773         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
11774         suchthat. Add pp. Add upper-case letters.
11776         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
11777         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
11778         Upsilon.
11780         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
11781         rA (right angle bracket) to ra.  Introduce names for double-headed
11782         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
11783         * ps/devps/textmap: Likewise for ps device.
11784         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
11785         * tty/devascii/R.proto: Rename lA to la and rA to ra.
11786         * tty/devascii/R.proto: Likewise.
11787         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
11788         \(uA, \(dA.
11789         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
11791         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
11793         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
11794         def_table.
11796 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
11798         * troff/div.c (when_request): Use symbol::is_null rather than
11799         has_arg to determine whether we have an argument.
11800         (change_trap): Remove the trap if we get an invalid number. Give
11801         an error if we don't get at least the macro name.
11802         (diversion_trap): Remove trap if we get an invalid name or number.
11804         * troff/env.c (environment_switch): Pop if we get an invalid
11805         symbol or numeric expression.
11807         * troff/input.c (do_define_macro):  If EOF is encoutered while
11808         defining the macro, do tok.next() before returning.
11810         * troff/token.h (has_arg): Move definition from here, to ...
11811         * troff/input.c (has_arg): ... here
11813         * troff/env.c (space_size): Do nothing if we get an invalid argument.
11814         * troff/input.c (shift): Likewise.
11816         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
11817         for `.c'.
11819         * pic/troff.c (troff_output::start_picture):  Comment out calls to
11820         `..'.
11822         * eqn/main.c (do_file): Subtract 1 from current_lineno if
11823         interpret_lf_args succeeds.
11825         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
11826         \\.  This avoids problems with \$N.
11828         * groff.sh: Pass -C to preprocessors.
11830         * lib/lf.c (interpret_lf_args):  Be more flexible.
11832         * tbl/main.c (main): Add -C option.
11833         (table_input::get): Do not recognize TE if followed by character
11834         other than a space or newline unless -C option given.
11835         (process_input_file): Likewise for lf, TS.
11836         (process_data): Likewise for lf in text blocks.
11838         * eqn/main.c (main): Add -C option.
11839         (do_file): Don't recognize EQ, EN or lf if followed by character
11840         other than space or newline unless -C option given.
11841         * eqn/lex.c (file_input::read_line): Similarily.
11842         * eqn/eqn.h: Declare compatible_flag.
11844         * etc/soelim.c (main): Add -C option.
11845         (interpret_lf_args): Use version in libgroff.
11846         (do_file):
11848         * pic/main.c (main): Add -C option, which sets compatible_flag.
11849         (top_input::get), (top_input::peek):  If -C option not given,
11850         do not recognize .PS/.PE/.PF/.lf if followed by a character
11851         other than space or newline.
11852         * pic/lex.c (file_input::read_line): Similarily.
11853         * pic/pic.h: Add declaration of compatible_flag.
11855 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
11857         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
11859         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
11860         derived from node.  New class space_char_hmotion_node.
11861         * troff/input.c (asciify_macro): New function.
11862         * troff/input.c (init_input_requests): New request `asciify' bound
11863         to asciify_macro.
11864         * macros/mm.diff: New file.
11865         * Makefile:  In install.mm target use `patch' to apply
11866         macros/mm.diff.
11868         * troff/input.c (macro::print_size): Just print the size in bytes.
11870         * troff/div.c (return_request): Correct the argument
11871         interpretation.
11873 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
11875         * troff/node.h (class composite_node): Add sz member.
11876         * troff/node.c (composite_node::size): Return sz.
11877         * troff/input.c (macro_to_node):  Use the initial size in the
11878         environment as the size of the composite_node.
11880         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
11881         default.
11883 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
11885         * troff/div.c (change_trap): If we get a bad number expression,
11886         do nothing.
11888 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
11890         * lib/matherr.c (matherr): Define this only if math.h defines
11891         TLOSS.
11893 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
11895         * troff/div.c (macro_diversion::distance_to_next_trap): If there
11896         no diversion trap return vunits(INT_MAX - vresolution).
11898 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
11900         * troff/input.c (do_zero_width): New implementation that doesn't
11901         use a temporary environment. Use instead:
11902         (token::add_to_node_list): New function.
11903         * troff/env.c (environment::get_prev_char_height),
11904         (environment::get_prev_char_height),
11905         (environment::get_prev_char_skew): New functions.
11906         (environment::get_prev_char): New function.
11907         (environment::get_prev_char_width): Change to use get_prev_char.
11908         (init_env_request): Implement new registers .cht, .cdp, .csk.
11909         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
11910         \Z being processed in a separate environment.
11912 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
11914         * tbl/table.c: Removed TABLE_BOTTOM_REG.
11916         * tbl/table.c (table::init_output): In the section release macro,
11917         give a warning message if the section won't fit on one page.
11919         * tbl/table.c (table::do_top): Emit table keep only if table is
11920         boxed.
11921         (table::do_bottom): Likewise for table release.
11922         (table::table), (table::add_vertical_rule):  Remove reference to
11923         keep member.
11924         * tbl/table.h: Remove keep member.
11926         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
11927         SECTION_RELEASE_MACRO, if there's not enough space before the next
11928         trap to output the diversion, call T# ourselves, set
11929         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
11930         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
11931         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
11932         vertical position and return to it before turning traps on again.
11933         
11934 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
11936         * troff/node.c, troff/node.h: In classes derived from node,
11937         replace prev_char_width method by last_char_node method.
11938         * troff/env.c (environment::get_prev_char_width): Use
11939         node::last_char_node rather than node::get_prev_char_width.
11941         * Makefile: Added comment about -fno-inline on 68030-based
11942         Apollos.
11944         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
11945         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
11946         expressions using sizeof to int.
11947         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
11949         * macros/tmac.e (TS):  Don't move @f back past the current
11950         position.
11952 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
11954         * ps/ps.c (main): Buffer stderr.
11955         * dvi/dvi.c (main): Likewise.
11956         * tty/tty.c (main): Likewise.
11958         * ps/ps.c (ps_printer::do_import): Improve error handling.
11960         * troff/input.c (abort_request): Use asciify.
11962         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
11963         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
11964         type of first argument int rather than char.  This works around a
11965         bug on the 68030 based Apollo using g++ 1.37.1.
11967         * tbl/table.h (class table): Add `keep' member.
11968         * tbl/table.c (table::table): Initialize `keep'.
11969         (table::add_vertical_rule): Set `keep' to 1.
11970         (table::do_top): Only emit table keep macro is `keep' is non-zero.
11971         (table::do_bottom): Likewise for table release macro.
11972         (table::do_row): Emit section keep macro even if the row is 0.
11974 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
11976         * macros/tmac.e (@C): Preserve the font family across the change
11977         in environments.
11979 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
11981         * lib/font.c: Initialize font::hor and font::vert to 1.
11982         (font::load_desc): Check the values of font::hor and font::vert.
11984         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
11985         be included in a C compilation.
11986         (iftoa): Use INT_DIGITS. Include lib.h.
11987         (itoa): Likewise.
11988         (as_string): Likewise.
11989         * tbl/table.c: Removed definition of INT_DIGITS.
11990         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
11991         * troff/input.c (input_input_requests): Likewise.
11992         * ps/ps.c (make_encoding_name): Likewise.
11993         (ps_printer::set_style): Likewise.
11994         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
11996         * tty/devascii/R.proto: Map fm onto '.
11997         * tty/devlatin1/R.proto: Likewise.
11999 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12001         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12002         argument to \w is at a different input level.
12004         * tbl/table.c (table::init_output): Define a new macro
12005         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12006         transparently outputs itself.
12007         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12008         vpt.
12009         (table::do_row): Likewise.
12011         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12012         TRANSPARENT_STRING_NAME.
12014         * tbl/table.c (table::init_output): In the table release macro
12015         print an error message and don't produce any output if after
12016         issuing the need request the table still will not fit.  Also
12017         remove the diversion after bringing it back.
12019         * tbl/table.c (table::init_output): Define a new macro
12020         REPEATED_MARK_MACRO, like mk but if in a diversion also
12021         transparently outputs itself.
12022         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12023         is necessary because .TH might not call .T#.
12024         (table::do_top): Likewise TOP_REG.
12025         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12026         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12027         table header might contain just the two top rules.
12029 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12031         * troff/div.c: Implement new request `ptr' to print all traps.
12033         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12034         init_string_env_reg.
12035         * troff/env.c (class tab_reg): Deleted.
12037 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12039         * troff/div.c: New number register .pn returns the number of the
12040         next page as set by the pn request.
12042         * macros/tmac.an: Redid headers and footers.  Number each manual
12043         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12044         optional 5th argument to .TH which specifies the manual name and
12045         appears in the center of the header.  Understand the X, P and D
12046         registers like Sun.
12048 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
12050         * troff/env.c (init_env_requests): New number register `.lt' to
12051         return the title length.
12053         * troff/node.h (class transparent_dummy_node): New class.
12054         * troff/node.c (class transparent_dummy_node): Provide member
12055         functions. 
12056         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12057         than a dummy_node.
12059         * troff/input.c (token::next): New escape sequence \).
12060         * troff/input.c (get_copy): Recognize \) in copy mode.
12062         * troff/input.c (input_stack::clear): New function.
12063         * troff/input.c (exit_request): Use input_stack::clear.
12065         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12066         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12068         * troff/env.c: Move set_page_character to input.c.  Move
12069         page_character to input.c also.
12070         * troff/env.c (title): Split off the reading of the parts of the
12071         title into read_title_parts.
12072         * troff/input.c (read_title_parts): New function.  Check the
12073         input_level when testing whether a token matches the delimiter.
12075         * troff/input.c (exit_request): New function.
12076         * troff/input.c (init_input_requests): Bind ex request to
12077         exit_request rather than exit_groff.
12079         * troff/input.c (exit_groff): Call tok.next() before
12080         process_input_stack().
12082 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
12084         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12085         * troff/env.h: ditto.
12086         * troff/input.c: ditto.
12088         * troff/env.c (environment::is_empty): Test pending_lines.
12090         * troff/env.c (environment::have_pending_lines): Removed.
12092         * troff/input.c: Add request to flush pending lines from the
12093         environment.
12095         * troff/env.c, troff/env.h: Add automatic widow control feature.
12097         * troff/input.c (exit_groff):  Do process_input_stack() after
12098         do_break() but before setting exit_flag to 2.
12100         * troff/input.c: Remove FLUSH_PENDING_LINES and
12101         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12102         environment after END_TRAP token seen, but only if there aren't
12103         any more traps still unfinished.
12104         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12106 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
12108         * troff/env.c: Rename the `retain_size' member of class
12109         pending_output_line to `no_fill'.
12111         * troff/env.c (title): When the line is output, make the
12112         retain_size argument !fill.
12114         * troff/node.h: Add `hyphenated' member to struct breakpoint.
12115         * troff/node.c (space_node::get_breakpoints),
12116         (dbreak_node::get_breakpoints):  Fill this in.
12117         * troff/env.c:  Allow specification of maximum number of
12118         consecutive hyphenated lines.
12120         * troff/env.c (environment::is_empty): Add test for !current_tab.
12122 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
12124         * troff/env.c (environment::hyphenate_line): Don't completely give
12125         up if the word is not to be hyphenated; continue so that breaks
12126         can be made at break_char_node's.
12128         * lib/lib.h: Only define INT_MAX if it's not already defined;
12129         undef INT_MIN if it's already defined.
12131         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12133         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12134         This works around a bug in AT&T C++ 2.0 used with an ANSI C
12135         compiler.
12136         
12137         * macros/tmac.an (an-header): Set no-space mode.
12139         * macros/tmac.an (TH): Start a new page if necessary.
12141         * Started using ChangeLog at version 0.4.
12143 Local Variables:
12144 version-control: never
12145 coding: latin-1
12146 End: