* man/groff_char.man: Check `ECFONTS' register.
[s-roff.git] / ChangeLog
blob3735d962382206c264e72ecbe206d4fec718f9f6
1 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3         Add EC and TC fonts to devdvi.
5         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6         * font/devdvi/generate/cork.map: Renamed to...
7         * font/devdvi/generate/ec.map: This.
8         Remove entry for `aq'.
9         * font/devdvi/generate/tc.map: New file.
10         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
11         EC and TC fonts.
12         (FONTS): Updated.
13         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
14         * font/devdvi/Makefile.sub (DEVFILES): Updated.
15         * tmac/ec.tmac: New file.
16         * tmac/Makefile.sub (NORMALFILES): Updated.
17         * NEWS, src/devices/grodvi/grodvi.man: Updated.
18         * man/groff_char.man: Check `ECFONTS' register.
20         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
22 2002-02-26  Werner LEMBERG  <wl@gnu.org>
24         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
25         * font/devdvi/generate/cork.map: Add 'y and 'Y.
26         * font/devdvi/*: Updated.
27         * tmac/dvi.tmac: Formatting.
29         Add font `HBI' for the dvi output.
30         Add support for font families `T' and `H'.
32         * font/devdvi/HBI: New file.
33         * font/devdvi/B: Renamed to ...
34         * font/devdvi/TB: This.
35         * font/devdvi/BI: Renamed to ...
36         * font/devdvi/TBI: This.
37         * font/devdvi/I: Renamed to ...
38         * font/devdvi/TI: This.
39         * font/devdvi/R: Renamed to ...
40         * font/devdvi/TR: This.
41         * font/devdvi/H: Renamed to ...
42         * font/devdvi/HR: This.
43         * font/devdvi/Makefile.sub (DEVFILES): Updated.
44         * font/devdvi/generate/Makefile (HBI): New rule.
45         (FONTS): Updated.
46         (R, I, B, BI, H): Renamed to ...
47         (TR, TI, TB, TBI, HR): This, respectively.
48         (srcdir): Fixed.
49         * NEWS, src/devices/grodvi/grodvi.man: Updated.
50         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
51         Add `styles' and `family' keywords.
52         * tmac/dvi.tmac: Alias `H' to `HR'.
53         Add some fspecial requests for italic fonts.
54         Add TR and TI as special.
55         Add support for `_' with font CWI.
57         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
58         operator `:'.  Until now, the expression `0:1' would return 2
59         instead of 1.
61 2002-02-25  Werner LEMBERG  <wl@gnu.org>
63         * man/groff_char.man: Added some missing PS glyph names (from the
64         Adobe Glyph List).
65         * font/devps/generate/textmap, font/devps/symbolmap: Add
66         `arrowupdn'.
68         * doc/groff.texinfo: Minor additions and fixes.
69         * man/groff_diff.man: Remove documentation of fp request.  This
70         is already covered in the original troff manual.
71         Updated to be consistent with other doc files.
72         * NEWS: Updated.
74 2002-02-24  Werner LEMBERG  <wl@gnu.org>
76         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
77         TTYDEVDIRS.
78         Define new variable OTHERDEVDIRS (containing `font/devlj4
79         font/devlbp' if not EBCDIC).
80         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
81         (OTHERDEVDIRS): New variable.
82         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
83         * configure: Regenerated.
85         * NEWS, src/devices/grotty/grotty.man: Updated.
87 2002-02-23  Werner LEMBERG  <wl@gnu.org>
89         * src/roff/troff/input.cc (do_overstrike, do_bracket,
90         get_line_arg): Honour input level.
92         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
94         * font/*/*: Implement it in all font files.
95         * font/devps/generate/textmap, font/devps/generate/symbolchars,
96         * font/devps/symbolmap: Updated.
97         * font/devlj4/generate/text.map: Updated.
98         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
99         * font/devdvi/generate/texmi.map: Updated.
101         * font/devutf8/R.proto: Remove all `charXXX' entries.
102         * font/devutf8/NOTES: Updated.
104         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
105         version 4.1.0.
107         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
109         * NEWS, man/groff_char.man: Updated.
111 2002-02-21  Phil Lobbes <phil@perkpartners.com>
113         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
115 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
117         * src/roff/grog/grog.pl: Fix computation of $refer.
119 2002-02-19  Werner LEMBERG  <wl@gnu.org>
121         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
122         `snprintf' and `vsnprintf'.
124         * src/include/htmlindicate.h: Renamed to...
125         * src/include/htmlhint.h: This.
126         * src/include/Makefile.sub: Updated.
127         * src/preproc/eqn/main.cc: Updated.
129 2002-02-18  Werner LEMBERG  <wl@gnu.org>
131         * man/roff.man, man/groff_out.man, man/groff.man,
132         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
133         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
135         * win32-diffs: Updated.
137 2002-02-17  Werner LEMBERG  <wl@gnu.org>
139         * doc/Makefile (clean): Add *.eps.
140         (MEMACROS): Removed.
141         (TFLAG): New variable.
142         (TROFF): Use it.
143         Add -ww.
144         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
145         (.me.dit): Fixed.
146         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
148         * tmac/www.tmac: Use dummy diversion while resetting and disabling
149         `.tl'.
150         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
151         unstripped.
152         * src/roff/troff/troff.man: Fix order of parameter description.
154         * NEWS: Updated.
156 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
158         Simplify image handling for grohtml.
159         Fix <p> bug.
161         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
162         comment out.
163         (html_text::dump_stack): Don't emit newline while debugging.
164         (html_text::do_push) [DEBUGGING]: Print more info.
165         (html_text::check_emit_text): Fix handling of <p>.
166         * src/devices/grohtml/html.h: Updated.
167         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
168         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
169         send its data to stderr also.
170         Update all callers.
171         (simple_output::space_or_newline) [DEBUGGING]: Removed.
172         * src/devices/grohtml/post-html.cc (html_printer::do_links,
173         html_printer::html_printer): Remove `DEBUGGING' conditionals.
175         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
176         Removed.
177         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
178         is_inline_image): Removed.
179         (html_begin_suppress, html_end_suppress): Don't take a parameter.
180         (graphic_start, graphic_end): Removed.
181         * src/include/htmlindicate.h: Updated.
182         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
183         (macroset_template): New global variable.
184         (makeFileName): Use `macroset_template'.
185         (write_end_image): Don't take a parameter.
186         Don't emit newline.
187         (write_start_image: Don't emit newline.
188         (char_buffer::write_upto_newline): Updated.
189         (char_buffer::skip_to_newline): Renamed to ...
190         (char_buffer::skip_until_newline): This.
191         Fix code.
192         (char_buffer::write_file_troff, char_buffer::write_file_html):
193         Simplified.
194         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
195         (removeAllPages): Remove `DEBUGGING' conditionals.
196         (addRegDef, dump_args): New functions.
197         (char_buffer::do_html, char_buffer::do_image): Handle
198         `www-image-template' command line variable.
199         Add more debugging code.
200         (addps4html): Removed.
201         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
203         * src/preproc/eqn/main.cc: Include `ctype.h'.
204         (suppress_html): Removed.
205         (do_file): Updated.
206         (inline_equation): Use `html_begin_suppress' and
207         `html_end_suppress'.
208         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
209         (troff_output::start_picture, troff_output::finish_picture):
210         Updated.
211         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
212         (process_input_file): Updated.
214         * src/roff/troff/div.cc (page_number): Set page number only if the
215         `ps4html' register isn't defined.
216         * src/roff/troff/input.cc (image_no): New external variable.
217         (do_suppress): Use it.
218         * src/roff/troff/node.h (suppress_node::image_id): New member.
219         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
220         (suppress_node::suppress_node): Initialize `image_id' member.
221         (suppress_node::same): Handle `image_id' also.
222         (suppress_node::copy): Updated.
223         (last_image_id): New global variable.
224         (suppress_node::tprint): Use it.
226         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
227         HTML-IMAGE-END.
228         * tmac/pspic.mac (PSPIC): Fix html support.
229         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
230         * tmac/www.tmac (www-image-template): Set up.
231         (HTMLINDEX): Renamed to...
232         (HX): This.
233         (BODYCOLOR): Renamed to...
234         (BCL): This.
235         (BACKGROUND): Renamed to...
236         (BGIMG): This.
237         (URL): Change order of parameters for consistency.
238         (MAILTO): Renamed to...
239         (MTO): This.
240         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
241         (IMG, PIMG, MPIMG): This.
242         (HTML-H-BEGIN, HTML-H-END): Renamed to...
243         (HnS, HnE): This.
244         (LINKS): Renamed to...
245         (LK): This.
246         (LINE): Renamed to...
247         (HR): This.
248         (NO-AUTO-RULE): Renamed to...
249         (NHR): This.
250         (HTML-TL): Renamed to...
251         (HTL): This.
252         (UL-BEGIN, UL-END): Renamed to...
253         (ULS, ULE): This.
254         (DROPCAP): Renamed to...
255         (DC): This.
256         (TS, TE, EQ, EN): Provide default definitions.
257         (www-make-unique-name): Updated.
258         (HTML-IMAGE-INLINE): Fix typo.
259         * tmac/groff_www.man: Updated.
261         * doc/Makefile (homepage.html): Add option -r to grohtml.
262         Use shortened image name.
263         * doc/groff.texinfo: Updated info on grohtml strings and macros.
264         * doc/homepage.ms: Updated and extended.
266 2002-02-14  Werner LEMBERG  <wl@gnu.org>
268         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
270         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
271         SGR_BACK_DEFAULT_COLOR): Replaced with ...
272         (tty_printer::put_color): Use it.
273         (ttr_printer::end_page): Simplify.
275 2002-02-13  Werner LEMBERG  <wl@gnu.org>
277         * tmac/groff_tmac.man: Moved to...
278         * man/groff_tmac.man: This place.
279         * tmac/Makefile.sub, man/Makefile.sub: Updated.
281 2002-02-12  Werner LEMBERG  <wl@gnu.org>
283         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
284         $(COMPILE.c) to not include groff's assert.h.
286         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
287         variable.
288         * NEWS, src/drivers/grotty/grotty.man: Document it.
290 2002-02-11  Werner LEMBERG  <wl@gnu.org>
292         * src/libs/snprintf/snprintf.c: Updated to latest version
293         (2002-02-11).
295         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
296         test whether there is `.]' also.
297         Don't check for spaces after `.['.
298         * src/roff/grog/grog.sh: Do the same.
300 2002-02-10  Werner LEMBERG  <wl@gnu.org>
302         Illegal -> Invalid.
304         * src/libs/libgroff/illegal.cc: Renamed to ...
305         * src/libs/libgroff/invalid.cc: This.
306         (illegal_char_table): Renamed to ...
307         (invalid_char_table): This.
308         * src/libs/libgroff/Makefile.sub: Updated.
309         * win32-diffs: Updated.
311         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
312         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
313         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
314         font::load), src/preproc/eqn/main.cc (read_line, main),
315         src/preproc/eqn/lex.cc (file_input::read_line),
316         src/preproc/pic/lex.cc (file_input::read_line,
317         simple_file_input::get, simple_file_input::peek),
318         src/preproc/pic/main.cc (top_input::get, top_input::peek),
319         src/preproc/pic/pic.man, src/preproc/refer/main.cc
320         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
321         do_bib), src/preproc/tbl/main.cc (table_input::get),
322         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
323         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
324         do_zero_width, read_request, encode_char, ps_get_line,
325         transparent_file, get_char_for_escape_name, transparent_translate,
326         asciify, input_char_description, read_string, set_string),
327         src/roff/troff/env.cc (environment::add_html_tag),
328         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
330         * src/include/lib.h: Updated.
332         * src/preproc/eqn/eqn.cc: Removed.
334         * NEWS: Updated.
336         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
338 2002-02-09  Werner LEMBERG  <wl@gnu.org>
340         * doc/gnu.xpm: New image.
341         * doc/Makefile (DOCS): Add homepage.ps.
342         Add rules for converting xpm->png and xpm->eps.
343         Use `gnu.{xpm,eps}' as image names.
344         * doc/homepage.ms: Updated.
346 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
348         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
349         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
350         Remove calls to `B1' and `B2'
351         (PNG-IMAGE): New macro for inclusion of images in PNG format.
352         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
353         auxiliary variables for MARGIN-PNG-IMAGE.
354         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
355         auxiliary macros for MARGIN-PNG-IMAGE.
356         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
357         the margin.
358         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
359         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
360         (DROPCAP): New macro to produce dropcap characters.
361         (www-do-image): Renamed back to...
362         (HTML-DO-IMAGE): This.
363         Updated all callers.
365         * doc/Makefile (gnubw.eps): Updated.
366         * doc/homepage.ms: Updated.
368 2002-02-08  Werner LEMBERG  <wl@gnu.org>
370         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
371         Added `linethick' to table in section `Style Variables'.
373 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
375         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
377 2002-02-07  Werner LEMBERG  <wl@gnu.org>
379         Adding options -C (compatibility mode) and -c (grotty's old output
380         scheme) to nroff.
382         * src/roff/nroff/nroff.sh: Implement it.
383         Remove `-Wall'.
384         * NEWS, src/roff/nroff/nroff.man: Updated.
386         * PROBLEMS: Document bison 1.32 bug.
388         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
390         * src/roff/troff/node.cc (make_tfont): Define it earlier.
391         * src/roff/troff/div.h: Add prototype for `end_diversions'.
392         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
393         * src/roff/troff/env.h: Add prototype for `title'.
395         Adding EBCDIC support to grotty.
397         * src/devices/grotty/tty.cc (CSI): New macro.
398         (SGR_*, tty_printer::put_color): Use it.
400 2002-02-06  Werner LEMBERG  <wl@gnu.org>
402         Implementing color support in grotty.  The new switch -c activates
403         the old drawing scheme, disabling color at the same time.  The new
404         switch `-i' selects italic instead of underlining (SGR only).
406         * src/devices/grotty/tty.cc (putstring): New define instead of
407         `fputs'.  Updated all callers.
408         (old_drawing_scheme): New global variable.
409         (COLOR_CHANGE): New enum value.
410         (SGR_*): New defines containing color handling escape sequences.
411         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
412         (glyph): New members `back_color_idx' and `fore_color_idx'.
413         (glyph::order): Add COLOR_CHANGE.
414         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
415         `is_underline', `is_bold', `cu_flag', `tty_colors'.
416         New methods `make_underline', `make_bold', `color_to_idx',
417         `change_color', `put_color'.
418         (cu_flag): Moved into `tty_printer' class.
419         (tty_printer::tty_printer): Initialize colors.
420         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
421         tty_printer::draw, tty_printer::end_page): Handle colors also.
422         (main): Add options `-c' and `-i'.
423         (usage): Updated.
424         * NEWS, src/devices/grotty/grotty.man: Updated.
426         * src/include/errarg.h (errarg): Add support for `unsigned int'.
427         * src/libs/libgroff/errarg.c: Implement it.
429         * src/include/printer.h (printer): Add `change_color' method
430         (currently used by grotty only).
431         * src/libs/libdriver/printer.cc: Implement it.
432         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
433         call to `pr->change_color'.
435         * src/roff/troff/node.cc (troff_output_file::fill_color,
436         troff_output_file::glyph_color): Call `do_motion'.
438         * tmac/tty.tmac: Add color definitions.
440         * src/roff/groff/groff.man: Minor fixes.
442 2002-02-05  Bernd Warken  <bwarken@mayn.de>
444         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
445         it.  This is a preparation for future changes.
447 2002-02-05  Werner LEMBERG  <wl@gnu.org>
449         * src/roff/troff/input.cc (process_input_stack): Fix the case
450         where leading spaces are followed by \f or \s; previously, an
451         incorrect space width has been used.
453         * doc/roff.man (quoted_char): Fix argument.
454         (comment): Define string.
456 2002-02-04  Larry Kollar  <kollar@alltel.net>
458         * doc/groff.texinfo: More fixes.
460 2002-02-04  Werner LEMBERG  <wl@gnu.org>
462         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
463         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
464         `restore_compatibility' before `output_string' -- the LINE_STRING
465         register now already contains proper switches from and to
466         compatibility mode.
468         * man/groff_char.man: Add Euro symbol.
469         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
470         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
471         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
472         Other minor fixes.
474         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
475         texinfo->pdf.
476         (.texinfo.html): Add support for texinfo->html.
478 2002-02-03  Werner LEMBERG  <wl@gnu.org>
480         Added three new requests `ds1', `as1', and `ami'.  The former two
481         are equivalent to `ds' and `as' with the difference that
482         compatibility mode is saved on entry, switched off during string
483         expansion, and restored on exit.  The latter is the pendant to `dei'
484         for `am'.
486         (do_define_string): Use `define_mode' and `calling mode'.
487         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
488         end of string, respectively.
489         (define_string, append_string): Use `calling_mode'.
490         (define_nocomp_string, append_nocomp_string,
491         define_string_indirect): New functions.
492         (init_input_requests): Updated.
493         * NEWS, man/groff_diff.man, man/groff.man: Document it.
495         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
496         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
497         mm macro package accesses this string register directly.
498         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
500         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
501         compatibility mode.
503 2002-02-02  Larry Kollar  <kollar@alltel.net>
505         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
507 2002-01-31  Werner LEMBERG  <wl@gnu.org>
509         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
511 2002-01-31  Bernd Warken  <bwarken@mayn.de>
513         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
514         * man/groff_out.man: Revised and updated.
516 2002-01-30  Bernd Warken  <bwarken@mayn.de>
518         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
519         out the unused `{' and `}' commands.  Undefined by default.
520         (IntArray): Make `data' private.
521         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
522         new methods instead.
523         (skip_line_D, skip_to_end_of_line): New functions.
524         (get_D_fixed_args): Use `skip_line_D'.
525         Changed to handle dummy odd arguments by ...
526         (get_D_fixed_args_odd_dummy): This new function.
527         (get_D_variable_args): Split some code into ...
528         (get_possibly_integer_args): This new function.
529         (send_draw): Use more `const'.
530         (delete_current_env): New function.
531         (position_to_end_of_args): Use `size_t'.
532         Updated.
533         (send_draw): Updated.
534         (parse_D_command): Handle `c', `C', and `t' better.
535         Updated.
536         (do_file): Updated.
538 2002-01-29  Werner LEMBERG  <wl@gnu.org>
540         * NEWS: Revised.
541         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
542         @Def...ListEnd which replaces @Def...x.  This is necessary to get
543         proper HTML output -- see the comment in the file for more
544         information.
545         Updated all calls.
547 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
549         Fixes to make color changes of 2002-01-21 work with grohtml.
551         * src/devices/grohtml/post-html.cc (style): Updated.
552         (html_printer): Remove unused methods.
553         (html_printer::do_font, html_printer::draw, html_printer::set_char,
554         html_printer::special): Updated.
555         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
556         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
557         Added some debugging code.
558         (html_text::start_tag): Updated.
559         (html_text::do_push): New method.
560         (html_text::push_para): Call it.
561         Add method for handling color.
562         (html_text::do_color): Updated.
563         (html_text::shutdown): Handle color.
564         * src/devices/grohtml/html-text.h (tag_definition): New member
565         `col'.
566         Updated.
568 2002-01-28  Werner LEMBERG  <wl@gnu.org>
570         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
572 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
574         Add two switches -a and -g to control the antialiasing bits for
575         text and graphics, respectively.
577         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
578         `-g'.
579         * src/devices/grohtml/grohtml.man: Document them.
580         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
581         New macros.
582         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
583         (setupAntiAlias): New function.
584         (createAllPages): Updated.
585         (scanArguments): Handle `-a' and `-g'.
586         (main): Call `setupAntiAlias'.
587         * NEWS: Updated.
589 2002-01-27  Werner LEMBERG  <wl@gnu.org>
591         * doc/groff.texinfo (Def*): Call index function after deffn.
593         * tmac/html.tmac: Call `nroff' request.
595 2002-01-26  Larry Kollar  <kollar@alltel.net>
597         * tmac/groff_ms.man: Add some omissions.
599 2002-01-25  Larry Kollar  <kollar@alltel.net>
601         * tmac/groff_ms.man: Typographical improvements.
603 2002-01-25  Werner LEMBERG  <wl@gnu.org>
605         * doc/groff.texinfo: Updated version and copyright.
606         * src/devices/grops/grops.man: Updated.
608         * tmac/groff_tmac.man: Fix `ig' macro.
610         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
611         nroff mode.
612         Use `.ne' unconditionally everywhere.
613         (TS): Only insert some vertical space.  Doing a page break is no
614         longer necessary due to the redefinition of the `ne' request.
616         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
617         warning for unknown subcommands but parse and pass them to the
618         device driver.
620 2002-01-24  Werner LEMBERG  <wl@gnu.org>
622         * tmac/groff_www.man, NEWS: Fix typos.
624 2002-01-21  Werner LEMBERG  <wl@gnu.org>
626         Complete revision of color support:
628           Adapt programs to the new libdriver/input.cc.
630           Color spaces are no longer converted to RGB but transferred as-is
631           in the troff intermediate output format.
633           Handle default color gracefully.  troff now supports a `default'
634           color (which can't be changed).
636           grops will now use the proper color space functions if available.
638           Update pic.
640         Note that currently grohtml doesn't handle colors properly.  This
641         has to be fixed.
643         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
644         (ui_to_a): New function.
645         * src/include/lib.h: Updated.
647         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
648         (color): Simplified; removed all `double' members and methods.
649         A new array `components' now holds the color parameters.
650         (color::is_default, color::get_components): New methods.
651         (color::operator==, color:operator!=): New.
652         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
653         to make access to the `components' array more comprehensible.
654         * src/libs/libgroff/color.cc: Implement new color support.
655         (atoh): Small fixes.
656         (color::read_encoding): Simplified for new troff intermediate color
657         output format.
658         (default_color): New global variable.
660         * src/roff/troff/input.cc (default_symbol): New global variable.
661         (lookup_color): Use it.
662         (default_black): Removed.
663         (do_glyph_color, do_fill_color): Simplified.
664         (define_color): Handle default color.
665         Improve warnings.
666         (do_if_request): Handle default color.
667         * src/roff/troff/env.cc (environment::environment): Initialize
668         colors with `default_color'.
669         * src/roff/troff/node.cc (troff_output_file::put): Add method
670         for `unsigned int'.
671         (troff_output_file::hex): Removed.
672         (troff_output_file::fill_color, troff_output_file::glyph_color):
673         Updated to include/color.h and libdriver/input.cc.
675         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
676         fill color properly (identically to the outline color).  \D'f...'
677         doesn't work any more.
678         All function calls to it updated.
680         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
681         Updated.
682         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
683         Updated.
685         * src/devices/grops/ps.cc (ps_output::put_color): New method.
686         (ps_printer::sbuf_color): Make a real member instead of pointer.
687         (ps_printer::fill_color, ps_printer::output_color): Removed.
688         (ps_printer::ps_printer): Updated.
689         (ps_printer::set_char): Ditto.
690         (ps_printer::set_color): Use various color schemes.
691         Use `put_color' method.
692         (ps_printer::flush_sbuf): Don't set color.
693         (ps_printer::fill_path): Take `environment' as parameter.
694         Simplify color handling.
695         (ps_printer::set_line_thickness): Renamed to ...
696         (ps_printer::set_line_thickness_and_color): This (and updated).
697         (ps_printer::set_color): Change second parameter from `complete'
698         to `fill' which better describes what it does.
699         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
700         and text in the right order.
701         Updated.
702         Remove branches for `f' and `F'; this is handled by
703         libdriver/input.cc.
704         * src/devices/grops/ps.h: Updated.
705         * font/devps/prologue (FL): Redefined.
706         ({F,C}r,k,g: New color functions (with and without filling).
708         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
709         * man/groff_diff.man, man/groff.man, man/groff_out.man,
710         doc/groff.texinfo, NEWS: Updated.
712 2002-01-20  Bernd Warken  <bwarken@mayn.de>
714         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
715         in this file for what has been changed.
717 2002-01-19  Werner LEMBERG  <wl@gnu.org>
719         * test-groff: Fix GROFF_FONT_PATH.
720         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
721         is read before .TH or .Dd is parsed.
723 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
725         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
726         quadrant boundaries.
728 2002-01-18  Werner LEMBERG  <wl@gnu.org>
730         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
731         applied last patch.
733 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
735         * tmac/doc.common: Initialize %I register for the %I macro to
736         avoid (harmless) warning.
737         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
738         when in the SYNOPSIS section.
740 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
742         * src/preproc/pic/lex.cc (get_token): Fix typo.
744 2002-01-17  Werner LEMBERG  <wl@gnu.org>
746         * devices/grops/ps.cc: Fix incorrectly applied last patch.
748 2002-01-17  Larry Kollar  <kollar@alltel.net>
750         * tmac/groff_ms.man: Completely rewritten.
752 2002-01-16  Werner LEMBERG  <wl@gnu.org>
754         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
756 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
758         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
759         fill colors.
760         (ps_printer::draw): Ditto.
762 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
764         * tmac/groff_mdoc.man: Minor fixes.
766 2002-01-13  Werner LEMBERG  <wl@gnu.org>
768         * man/groff_out.man: Some fixes.
770 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
772         * doc/pic.ms: Fix typos.
774 2002-01-12  Werner LEMBERG  <wl@gnu.org>
776         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
778 2002-01-10  Werner LEMBERG  <wl@gnu.org>
780         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
781         symbols.
782         * NEWS: Updated.
784 2002-01-09  Bernd Warken  <bwarken@mayn.de>
786         * man/groff_out.man: Revised.
787         * man/roff.man: Minor fixes.
788         * src/roff/troff/troff.man: Some reordering.
790 2002-01-09  Werner LEMBERG  <wl@gnu.org>
792         * tmac/an-old.tmac: Add dummy macros for equation support.
794 2002-01-07  Werner LEMBERG  <wl@gnu.org>
796         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
798         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
799         man pages.
800         * tmac/groff_man.man: Small improvements.
802 2002-01-07  Bernd Warken  <bwarken@mayn.de>
804         * man/groff_diff.man: Revised.
806 2002-01-06  Werner LEMBERG  <wl@gnu.org>
808         * tmac/www.tmac: Remove extraneous backslash.
810 2002-01-06  Bernd Warken  <bwarken@mayn.de>
812         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
814 2002-01-05  Werner LEMBERG  <wl@gnu.org>
816         Integrated groffer, contributed by Bernd Warken.
818         * contrib/groffer/*: New.       
819         * Makefile.in, NEWS: Updated.
821 2002-01-04  Werner LEMBERG  <wl@gnu.org>
823         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
824         registers defined in macro packages.
825         Revising the ms part.
827 2002-01-04  Larry Kollar  <kollar@alltel.net>
829         * doc/groff.texinfo: Add documentation for ms macros.
831 2002-01-02  Werner LEMBERG  <wl@gnu.org>
833         First step in adding PS support for the Euro symbol.  `eu' is the
834         official Euro logo, `Eu' is a font-specific glyph variant.
836         * font/devps/text.enc: Add `Euro' at position 9.
837         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
838         * font/devps/symbolmap: Regenerated.
840         * NEWS: Updated.
842 2002-01-02  Bernd Warken  <bwarken@mayn.de>
844         * man/roff.man: Revised.
846 2002-01-01  Bernd Warken  <bwarken@mayn.de>
848         * src/roff/groff/groff.man: Completely rewritten.
850 2001-12-31  Werner LEMBERG  <wl@gnu.org>
852         * doc/Makefile: Updated.
854 2001-12-30  Werner LEMBERG  <wl@gnu.org>
856         * tmac/www.tmac: Make all names of internal macros/registers/strings
857         lowercase, and prepend `www-'.
858         Other minor changes.
859         * src/roff/troff/troff.man: Add preprocessor string at BOF.
861 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
863         Implement option `-b' in grohtml to set the HTML background colour.
865         * src/devices/grohtml/post-html.cc (default_background): New global
866         variable.
867         (html_printer::html_printer): Initialize `background' to
868         `default_background'.
869         (main): Implement option `-b'.
870         (usage): Updated.
871         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
872         of `-b' option.
873         * src/devices/grohtml/grohtml.man: Updated.
874         * doc/Makefile (.ms.html): Use `-b'.
875         * tmac/html.tmac: Don't set background color.
877         Add new grohtml tag `.html-tl'.
879         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
880         member variable.
881         (title_desc::title_desc): Updated.
882         (html_printer::troff_tag): Handle `.html-tl'.
883         (html_printer::write_title): Use `with_h1'.
884         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
885         (HTML-TL): New macro.
887         Add support for unordered lists in HTML.
889         * tmac/www.tmac (www-level): New auxiliary register.
890         (www-level1, www-level2, www-level3): New auxiliary strings.
891         (www-push-level, www-pop-level): New auxiliary macros
892         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
894         Miscellaneous.
896         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
897         (DEFAULT_VERTICAL_OFFSET): Removed.
898         (IMAGE_BOARDER_PIXELS): Set to 0.
899         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
900         (vertical_offset): Initialize with 0.
901         (gsPaper): New global variable.
902         (get_resolution): Scan for and return unsigned int.
903         (get_papersize): New function to get paper length from devps/DESC.
904         (determine_vertical_offset): New function.
905         (createAllPages): Produce gray-level images and use proper page
906         length.
907         (createImage): Use `-quiet' option of pnmcrop.
908         (addZ): Fix passing of `-Z'.
909         (scanArguments): Fix handling of `-o'.
910         (main): Call `determine_vertical_offset'.
911         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
912         code for `l'.
914         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
915         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
916         glyph descenders properly.
918         * doc/homepage.ms: Include `gnubw.eps'.
919         * doc/Makefile (gnubw.eps): New rule.
920         (homepage.html): Depend on `gnubw.eps'.
922 2001-12-25  Werner LEMBERG  <wl@gnu.org>
924         * src/roff/troff/input.cc (default_black): Fix return value.
926 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
928         * tmac/doc-common (Dt): Change output of architecture strings.
929         Do some syntax cleanup.
930         * tmac/groff_mdoc.man: Updated.
932 2001-12-23  Werner LEMBERG  <wl@gnu.org>
934         Adding an `itc' request (input line trap accepting \c).
936         * src/roff/troff/env.h (environment): New member
937         `continued_input_trap'.
938         Make `do_input_trap' a friend function instead of `input_trap'.
939         * src/roff/troff/env.cc (environment::environment,
940         environment::copy): Updated.
941         (environment::newline): Implement it.
942         (do_input_trap): New function.
943         (input_trap): Call `do_input_trap'.
944         (input_trap_continued): New function.
945         (init_env_requests): Updated.
946         * src/roff/troff/TODO: Updated.
948         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
949         `.it'.
951         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
953 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
955         * tmac/doc-common, tmac/doc-syms: Small updates.
957 2001-12-22  Colin Watson  <cjwatson@debian.org>
959         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
961 2001-12-22  Bernd Warken  <bwarken@mayn.de>
963         * MANIFEST: New file.
965 2001-12-22  Werner LEMBERG  <wl@gnu.org>
967         * src/preproc/grn/grn.man: Updated.
969 2001-12-22  Solar Designer  <solar@openwall.com>
971         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
972         (DBRead): Use it.
974 2001-12-19  Werner LEMBERG  <wl@gnu.org>
976         Implement a fallback character request `.fchar'.
978         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
979         (is_fallback): New inline function.
980         * src/roff/troff/input.cc (do_define_character): New function.
981         (define_character): Call `do_define_character'.
982         (define_fallback_character): New function.
983         (init_input_requests): Add `fchar'.
984         (charinfo::charinfo): Updated.
985         (charinfo::set_macro): New argument to set `fallback' flag.
986         * src/roff/troff/node.cc (make_glyph_node, make_node,
987         node::add_char): Check `fallback' flag.
988         * NEWS, man/groff_diff.man, man/groff_man: Updated.
990 2001-12-16  Werner LEMBERG  <wl@gnu.org>
992         * groff.texinfo: Document exact search algorithm for glyphs.
994 2001-12-15  Werner LEMBERG  <wl@gnu.org>
996         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
997         the left side of $(MANPAGES) rule to make it always non-empty.
999 2001-12-14  Werner LEMBERG  <wl@gnu.org>
1001         * src/roff/troff/input.cc (default_black): Define default color
1002         `black' if not yet defined.
1004 2001-12-13  Werner LEMBERG  <wl@gnu.org>
1006         Implement new string-valued register `.fn' to return the current
1007         real (internal) font name.
1009         * env.cc (environment::get_font_name_string): New function.
1010         (init_env_requests): Add `.fn' register.
1011         * env.h (environment): Updated.
1012         * node.cc (font_info): Make `get_font_name' a friend.
1013         (get_font_name): New function.
1014         * node.h: Updated.
1016         * man/groff_diff.man, man/groff.man, NEWS: Updated.
1018 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1020         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1022 2001-12-12  Werner LEMBERG  <wl@gnu.org>
1024         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1026 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
1028         * man/groff_diff.man: Adding documentation for \O.
1030 2001-12-10  Werner LEMBERG  <wl@gnu.org>
1032         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1033         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1035 2001-12-09  Werner LEMBERG  <wl@gnu.org>
1037         * man/roff.man: Revised.
1038         * src/roff/groff/groff.man: Replace man page references with a
1039         pointer to roff.man.
1041 2001-12-09  Bernd Warken  <bwarken@mayn.de>
1043         * man/roff.man: Completely rewritten.
1045 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1047         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1049 2001-12-05  Werner LEMBERG  <wl@gnu.org>
1051         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1052         longer used.
1053         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1054         order of initializers.
1055         * NEWS: Updated.
1057 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
1059         * doc/groff.texinfo: Fix documentation of \O.
1061         * src/devices/grohtml/html-text.cc (html_text::do_indent,
1062         html_text::do_table, html_text::do_emittext, html_text::do_para):
1063         Use `const' for first argument.
1064         (html_text::do_table): Use cast.
1065         * src/devices/grohtml/html-text.h: Updated.
1066         * src/devices/grohtml/output.cc (simple_output::put_string): Add
1067         method for `const string &s'.
1068         * src/devices/grohtml/html.h: Updated.
1069         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
1070         (ANCHOR_TEMPLATE): Modified.
1071         (manufacture_headings): New global variable to handle `-h' option.
1072         (is_subsection): Removed.
1073         (char_buffer::add_string): Add `const' to first argument.
1074         Protect against invalid string argument.
1075         Add method for `const string &s'.
1076         (text_glob): Completely redesigned.
1077         (page): Use `const' for strings and remove string length variable.
1078         (page::add_html): Removed.
1079         (page::add_end_encode): New member function.
1080         (to_unicode): Moved upwards.
1081         (title_desc, header_desc): Updated.
1082         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
1083         definition.
1084         (html_printer::is_bold, html_printer::make_bold): New member
1085         functions.
1086         (html_printer::end_of_line): Updated.
1087         (generate_img_src, html_printer::do_auto_image,
1088         html_printer::do_title, html_printer::write_header,
1089         html_printer::determine_header_level, html_printer::do_heading,
1090         html_printer::do_linelength, html_printer::do_pageoffset,
1091         html_printer::do_indentation, html_printer::do_tempindent,
1092         html_printer::do_indentedparagraph, html_printer::do_break,
1093         html_printer::flush_sbuf, get_html_translation,
1094         html_printer::begin_page, html_printer::special): Rewritten to get
1095         rid of static string length limit.
1096         (html_printer::troff_tag): Added `.no-auto-rule'.
1097         (html_printer::flush_globs): Small fix.
1098         (html_printer::determine_space): Don't compute `space_width'.
1099         (html_printer::translate_to_html): Renamed to ...
1100         (html_printer::emit_html): This (with updates).
1101         (html_printer::write_header): Implement `-h' option.
1102         (html_printer::draw): Remove commented-out code.  Handle `F'
1103         command.
1104         (html_printer::add_char_to_sbuf): Removed.
1105         (html_printer::add_to_sbuf): Rewritten.
1106         (html_printer::sbuf_continuation): Fixed.
1107         (html_printer::seen_backwards_escape, reverse,
1108         html_printer::remove_last_char_from_sbuf): Removed.
1109         (char_translate_to_html, str_translate_to_html): Removed.
1110         (html_printer::overstrike): New function member.
1111         (html_printer::set_char): Use it.
1112         (html_printer::do_body): New function member.
1113         (html_printer::~html_printer): Use it.
1114         (main): Handle `-h' option.
1115         (usage): Updated.
1116         * src/devices/grohtml/grohtml.man: Document -h switch.
1118         * src/preproc/html/pre-html.cc: Include searchpath.h
1119         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
1120         (get_resolution): New function.
1121         (checkImageDir): Use `0777' permissions in mkdir()
1122         (write_start_image): Rewritten to use `\O[5...]'.
1123         (createImage, generateImages): Updated.
1124         (main): Handle `F' and `h' options.
1125         Use `get_resolution'.
1127         * src/roff/troff/input.cc (begin, end, image): Removed.
1128         (do_suppress): Take parameter.
1129         Handle modified syntax of `\O'.
1130         (token::next): Updated.
1131         (init_markup_requests): Removed.
1132         (main): Updated.
1134         * src/roff/troff/div.h: Add declaration for begin_page().
1136         * tmac/color-html.tmac: Removed.  Contents moved to...
1137         * tmac/html.tmac: Here.  Set background color.
1138         * tmac/color.tmac: Removed.  Contents moved to...
1139         * tmac/ps.tmac: Here.
1140         * tmac/www.tmac: Remove the title command when generating images
1141         for html.
1142         (NO_AUTO_RULE): New macro.
1143         (HTML_DO_IMAGE): Use revised `\O' escapes.
1144         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
1146 2001-12-02  Werner LEMBERG  <wl@gnu.org>
1148         * tmac/groff_mdoc.man: Fix typo.
1150 2001-12-01  Colin Watson  <cjwatson@debian.org>
1152         * man/roff.man: Fix typo.
1154 2001-11-29  Werner LEMBERG  <wl@gnu.org>
1156         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
1157         stdlib.h.
1159         * src/roff/troff/input.cc (read_draw_node): Emit error message if
1160         more than one argument to \D'f ...'.
1162         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
1164 2001-11-28  Werner LEMBERG  <wl@gnu.org>
1166         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
1167         loaded only once.
1169         * tmac/groff_man.man: Minor cosmetic fix.
1171 2001-11-27  Werner LEMBERG  <wl@gnu.org>
1173         * src/roff/groff/groff.man, tmac/groff_tmac.man,
1174         tmac/groff_www.man: s/mwww/www/.
1176 2001-11-26  Werner LEMBERG  <wl@gnu.org>
1178         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
1179         * configure: Regenerated.
1180         * win32-diffs: Updated.
1182         * tmac/groff_mwww.tmac: Renamed to ...
1183         * tmac/groff_www.tmac: This.
1184         * tmac/mwww.tmac: Removed.
1185         * NEWS, tmac/Makefile.sub: Updated.
1187 2001-11-21  Werner LEMBERG  <wl@gnu.org>
1189         * doc/groff.texinfo: Improve documentation of the `\v' escape.
1190         Fix explanation of `\D' and `rt'.
1192 2001-11-20  Werner LEMBERG  <wl@gnu.org>
1194         * tmac/an-old.tmac (an-header): Set header length equal to page
1195         width.
1196         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
1197         minor fixes.
1198         * NEWS: Small fix.
1200 2001-11-19  Werner LEMBERG  <wl@gnu.org>
1202         * NEWS, man/Makefile.sub: Updated.
1204 2001-11-19  Bernd Warken  <bwarken@mayn.de>
1206         * man/ditroff.man: New file.
1208 2001-11-17  Werner LEMBERG  <wl@gnu.org>
1210         * man/groff_differences.man: Renamed to ...
1211         * man/groff_diff.man: This.  Updated.
1212         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
1214         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
1215         * src/preproc/html/pushback.cc: This.  Updated.
1216         * src/preproc/html/pushbackbuffer.h: Renamed to ...
1217         * src/preproc/html/pushback.h: This.
1218         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
1219         Updated.
1221         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
1222         * src/libs/libgroff/htmlhint.cc: This.
1223         * src/libs/libgroff/Makefile.sub: Updated.
1225         * tmac/an-old.tmac (an-end): Fix page length.
1227 2001-11-16  Werner LEMBERG  <wl@gnu.org>
1229         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
1230         * man/Makefile.sub: Include groff_differences.man.
1231         * VERSION: Set to 1.18.
1232         * REVISION: Set to 0.
1234 2001-11-16  Bernd Warken  <bwarken@mayn.de>
1236         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
1237         the second dot (or ending macro name) to end a macro.
1238         * doc/groff.texinfo: Doc fix.
1240 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
1242         * tmac/doc-common (doc-header): Handle very long document titles
1243         better.
1245 2001-11-16  Werner LEMBERG  <wl@gnu.org>
1247         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
1249 2001-11-15  Werner LEMBERG  <wl@gnu.org>
1251         * src/roff/troff/troff.man: Revised and split into troff.man and...
1252         * man/groff_differences.man: New file.
1253         * NEWS: Updated.
1255 2001-11-13  Werner LEMBERG  <wl@gnu.org>
1257         * tmac/an-old.tmac (TS, TE): New macros for table support.
1259 2001-11-12  Werner LEMBERG  <wl@gnu.org>
1261         * src/include/lib.h: Provide a fix for emx to not include
1262         groff-getopt.h.
1264 2001-10-27  Werner LEMBERG  <wl@gnu.org>
1266         * src/roff/troff/input.cc (substring_macro): Fix computation of
1267         boundary values.
1269 2001-10-20  Werner LEMBERG  <wl@gnu.org>
1271         Undo change from 2001-08-28.
1273         * src/roff/troff/input.cc (have_input): New global variable.
1274         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
1275         in compatibility mode.
1276         (process_input_stack): Use it.
1278 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
1280         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
1281         being handled as end-of-sentence characters,
1283 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
1285         * src/roff/troff/input.cc (file_iterator): New members
1286         `suppress_newline_flag' and `seen_escape'.
1287         (file_iterator::next_file): Updated.
1288         (file_iterator::fill): Use it.
1289         (string_iterator): New member `suppress_newline_flag'.
1290         (string_iterator::fill): Set it.
1291         (get_color_element): Use MAX_COLOR_VAL.
1292         * src/roff/troff/env.cc (environment): Remove `need_eol'.
1293         (no_fill): Don't set `env->ignore_next_eol'.
1294         (environment::newline): Handle `eol' tag properly.
1295         Emit `eol.ce'.
1296         (environment::add_html_tag): Set `env->ignore_next_eol'.
1297         Don't handle `.ce'.
1298         * src/roff/troff/env.h (environment): Updated.
1300         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
1301         member function.
1302         (html_printer::outstanding_eol): New member function.
1303         (html_printer::do_title): Use new functions.
1304         (html_printer::troff_tag): Test `id_eol_ce'.
1306 2001-10-10  Werner LEMBERG  <wl@gnu.org>
1308         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
1309         files work with -C also.
1311 2001-10-05  Werner LEMBERG  <wl@gnu.org>
1313         * doc/pic.ms: Minor fix.
1314         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
1315         as a valid command line switch.
1316         * src/devices/grohtml/post-html.cc (main): Ditto.
1317         (usage): Updated.
1318         * src/devices/grohtml/grohtml.man: Updated.
1319         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
1321 2001-10-04  Werner LEMBERG  <wl@gnu.org>
1323         Implementing color support in troff, pic, grops, and grohtml.  These
1324         changes are based on a major patch provided by Gaius Mulley
1325         <gaius@glam.ac.uk>.
1327         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
1328         definitions with both hex values and fractions.
1330         New escapes: \m and \M for drawing and background color,
1331         respectively.  This corresponds to the troff output commands `m'
1332         and `DF'.
1334         groff and troff accept command line switch `-c' to disable color
1335         output (which is automatically disabled in compatibility mode).
1337         New scaling indicator `f' for fractions (1f = 65536u).
1339         New conditional operator `m' to test for defined colors with `if'
1340         and `ie'.
1342         New keywords `color' (or `colour', `colored', `coloured'), `outline'
1343         (or `outlined'), and `shaded' added to pic.
1345         * src/include/color.h: New file.
1346         * src/include/driver.h: Include it.
1347         * src/include/printer.h: Include color.h.
1348         (environment): New members `col' and `fill'.
1349         (printer): Remove `adjust_arc_center' member function.
1350         * src/include/Makefile.sub: Updated.
1352         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
1353         `env.fill'.
1354         Handle `m' and `DF' troff commands.
1355         * src/libs/libgroff/color.cc: New file.
1356         * src/libs/libgroff/Makefile.sub: Updated.
1358         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
1359         (stop): Removed.
1360         (createImage): Fix computation of `y2'.
1361         Use `pnmcrop' also.
1362         (buffer::write_file_html): Remove calls to `stop'.
1364         * src/preproc/pic/common.h (common_output): New abstract function
1365         members `set_color', `reset_color', `get_last_filled', and
1366         `get_outline_color'.
1367         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
1368         (object_spec): Add members `shaded' and `outlined'.
1369         * src/preproc/pic/output.h (output): `command' is now abstract.
1370         New function members `set_color', `reset_color', `get_last_filled',
1371         and `get_outline_color'.
1372         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
1373         `outline[d]', and `shaded'.
1374         * src/preproc/pic/object.cc (output::command): Removed.
1375         (output::set_location): Moved to output.h.
1376         (graphic_object): Add protected members `outline_color' and
1377         `color_fill'.
1378         Add member functions `set_outline_color', `get_outline_color', and
1379         `set_fill_color'.
1380         (closed_object): Add member function `set_fill_color'.
1381         Add member `color_fill'.
1382         (graphic_object::print_text): Use `out->set_color' and
1383         `out->reset_color'.
1384         (box_object::print, ellipse_object::print, circle_object::print,
1385         line_object::print, spline_object::print, arc_object::print): Ditto.
1386         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
1387         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
1388         `SHADED', making them `%left'.
1389         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
1390         * src/preproc/pic/tex.cc (tex_output): New dummy function members
1391         `set_color', `reset_color', `get_last_filled', and
1392         `get_outline_color'.
1393         * src/preproc/pic/troff.cc (simple_output): New abstract function
1394         members `set_color', `reset_color', and `get_last_filled'.
1395         (simple_output::polygon, simple_output::circle,
1396         simple_output::ellipse): Use `get_last_filled'.
1397         (troff_output): New members `last_filled' and `last_outlined'.
1398         New function members `set_color', `reset_color', `get_last_filled',
1399         and `get_outline_color'.
1400         (troff_output::finish_picture): Use `reset_color'.
1401         (troff_output::set_fill): Test `last_filled'.
1402         * src/preproc/pic/pic.man: Updated.
1404         * src/roff/groff/groff.cc (main): Implement `-c' option.
1405         (synopsis, help): Updated.
1406         src/roff/groff/groff.man: Updated.
1408         * src/roff/troff/troff.h: Include color.h.
1409         (warning_type): Add WARN_COLOR.
1410         * src/roff/troff/env.h (environment): New members
1411         `{cur,prev}_{glyph,fill}_color'.
1412         New member functions `get_{prev_,}{glyph,fill}_color'.
1413         * src/roff/troff/env.cc: Initialize and implement them.
1414         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
1415         Replace `NULL' with `0' everywhere for consistency.
1416         (lookup_color, default_black, do_glyph_color, do_fill_color,
1417         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
1418         define_color): New functions.
1419         (token::next): Implement \M and \m escapes.
1420         (do_if_request): Implement `m' operator.
1421         (usage): Updated.
1422         (main): Implement `-c' option.
1423         (init_markup_requests): Add `defcolor' request.
1424         (warning_table): Add `color' warning.
1425         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
1426         classes.
1427         * src/roff/troff/node.cc (troff_output_file): New members
1428         `current_{page,glyph}color'.  New member functions `put_hex',
1429         `glyph_color', and `fill_color'.
1430         (glyph_color_node::*, fill_color_node::*): Implement it.
1431         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
1432         (parse_term): Add support for `f'.
1433         * src/roff/troff/troff.man: Updated.
1435         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
1436         entry for `F'.
1437         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
1438         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
1440         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
1441         (tag_definition): Use `void *' for arg1.
1442         (html_text): New member functions `do_color' and `done_color'.
1443         Use `void *' for second parameter of `push_para' member function.
1444         New `push_para' member function with a single parameter.
1445         Use `char *' for parameter of `issue_table_begin' member funtion.
1446         New `issue_color_begin' member function.
1447         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
1448         COLOR_TAG.
1449         (html_text::issue_color_begin): New function.
1450         (html_text::issue_table_begin): Use `char *' for parameter.
1451         (html_text::start_tag, html_text::shutdown,
1452         html_text::check_emit_text): Updated.
1453         (html_text::push_para): Use `void *' for second parameter.
1454         Add same function with only one parameter.
1455         (html_text::do_*): Updated.
1456         (html_text::do_color, html_text::done_color): New functions.
1457         * src/devices/grohtml/post-html.cc (style): New member `col'.
1458         Mew member `style' with 6 parameters.
1459         (style::style, style::operator==): Updated.
1460         (html_printer::do_font): Use it.
1461         (html_printer::draw): Add dummy entry for `F'.
1462         (html_printer::set_char): Updated.
1463         * src/devices/grohtml/grohtml.man: Updated.
1465         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
1466         trailing zeroes removed.
1467         (ps_printer): New members `sbuf_color', `fill_color', and
1468         `output_color'.
1469         Removed member `fill'.
1470         New member function `set_color'.
1471         (ps_printer::ps_printer, ps_printer::set_char): Updated.
1472         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
1473         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
1475         * tmac/color-html.tmac, tmac/color.tmac: New files.
1476         * tmac/troffrc: Include them.
1477         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
1478         * tmac/Makefile.sub: Updated.
1480         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
1481         man/groff.man: Updated.
1482         * font/devps/prologue.ps: Define FC and CO functions.
1484 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1486         Fix incorrect cropping of images and incorrect handling of special
1487         characters.  Fix handling of file names in \O.
1489         * src/include/geometry.h: New file.
1490         * src/libs/libgroff/geometry.cc: New file.
1491         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
1492         to `geometry.cc'.
1493         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
1494         initial spaces.
1495         (do_suppress): Updated.
1496         * src/roff/troff/node.cc: Include geometry.h.
1497         (troff_output_file::flush_tbuf): Fixed parameters to
1498         `check_output_limits'.
1499         (troff_output_file::check_charinfo): Ditto.
1500         (troff_output_file::determine_line_limits): Add support for `Da'
1501         and `Dl' commands.
1503         * src/devices/grohtml/post-html.cc (str_translate_to_html):
1504         Add new parameter `is_special' to decode special characters from
1505         escape sequences.
1506         (html_printer::do_title, html_printer::do_heading,
1507         html_printer::do_indentedparagraph,
1508         html_printer::translate_to_html, html_printer::special): Updated.
1510 2001-10-03  Werner LEMBERG  <wl@gnu.org>
1512         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
1513         Fix entry for config.h.
1514         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
1515         * tmac/troffrc: Translate nonbreakable space character to `\~'.
1516         * src/preproc/eqn/eqn.man: Document -d command line option.
1518 2001-09-27  Werner LEMBERG  <wl@gnu.org>
1520         * man/groff.man: Use
1522           .ev xxx
1523           .na
1524           .nh
1525           <table>
1526           .ev
1528         instead of the old code (`.ad .hy' after the table) to suppress
1529         incorrect hyphenation for grohtml output.
1531 2001-09-22  Werner LEMBERG  <wl@gnu.org>
1533         * man/groff_font.man, man/groff_out.man: Minor fixes.
1535 2001-09-20  Werner LEMBERG  <wl@gnu.org>
1537         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
1538         Arnold Robbins <arnold@skeeve.com>).
1540 2001-09-09  Werner LEMBERG  <wl@gnu.org>
1542         * configure: Regenerated with autoconf 2.52.
1544         * doc/groff.texinfo: Complete revision of indices.
1546 2001-09-07  Werner LEMBERG  <wl@gnu.org>
1548         * doc/Makefile (clean): Updated to delete all indices.
1550 2001-09-05  Werner LEMBERG  <wl@gnu.org>
1552         * src/roff/troff/troff.man: Remove superfluous line.
1554         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
1555         given on the command line (or rather, if only the default warnings
1556         are set).
1558 2001-09-03  Werner LEMBERG  <wl@gnu.org>
1560         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
1561         use .ne for TTY devices.
1563 2001-08-31  Werner LEMBERG  <wl@gnu.org>
1565         * src/roff/troff/token.h, src/roff/troff/input.cc:
1566         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
1568 2001-08-28  Werner LEMBERG  <wl@gnu.org>
1570         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
1571         * src/roff/troff/input.cc (token::next): Return
1572         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
1573         compatibility mode.
1574         (token::description): Updated.
1575         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
1576         (token::add_to_node_list, token::process): Ignore
1577         TOKEN_TRANSPARENT_ESCAPE.
1579 2001-08-27  Werner LEMBERG  <wl@gnu.org>
1581         * tmac/an-old.tmac: Fix `S' string.
1583 2001-08-26  Werner LEMBERG  <wl@gnu.org>
1585         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
1587 2001-08-25  Werner LEMBERG  <wl@gnu.org>
1589         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
1590         backslashes).
1591         Many other minor fixes.
1593         * configure.ac: Add message at end to inform how to compile
1594         xditview.
1595         * configure: Regenerated.
1597 2001-08-24  Werner LEMBERG  <wl@gnu.org>
1599         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
1600         Updated to latest version of libc.
1602 2001-08-23  Werner LEMBERG  <wl@gnu.org>
1604         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
1605         Autoconf 2.50 and newer can handle this.
1606         * configure: Regenerated.
1608 2001-08-21  Werner LEMBERG  <wl@gnu.org>
1610         * doc/pic.ms: Fix typo.
1611         * src/preproc/tbl/tbl.man: Document case of global options.
1613 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
1615         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
1616         handling of `CR' font.
1618 2001-08-20  Werner LEMBERG  <wl@gnu.org>
1620         Use a config.h file.
1622         * src/include/lib.h: Include config.h.
1623         * All C files: Ditto (if necessary).
1624         * All C++ source and header files: Include lib.h first (if
1625         necessary).
1627         * src/include/config.hin: New file (autogenerated by autoheader).
1628         * stamp-h.in: New file.
1629         * configure.ac: Updated.
1630         * aclocal.m4: Add third parameters to AC_DEFINE macros.
1631         (GROFF_ARRAY_DELETE): Simplified.
1632         * Makefile.sub (DISTCLEANFILES): Updated.
1633         Added targets for remaking config.status, config.hin, config.h,
1634         stamp-h.in, and stamp-h.
1635         * configure: Regenerated.
1637 2001-08-19  Werner LEMBERG  <wl@gnu.org>
1639         * NEWS: Updated.
1641 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
1643         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
1644         (do_sprintf): Use snprintf().
1646 2001-08-18  Werner LEMBERG  <wl@gnu.org>
1648         * src/libs/snprintf/*: Added an snprintf module written by Mark
1649         Martinec.
1650         * src/libs/libgroff/Makefile.sub: Updated.
1651         * configure.ac: Add test for snprintf().
1652         * Makefile.in: Updated.
1653         * configure: Regenerated.
1655         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
1656         uses snprintf().
1658 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
1660         * tmac/doc.tmac (Ex): New implementation.
1661         * tmac/doc-common, tmac/groff_tmac.man: Updated.
1663 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
1665         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
1666         argument.
1667         * tmac/groff_tmac.man: Updated.
1669 2001-08-13  Werner LEMBERG  <wl@gnu.org>
1671         * src/preproc/tbl/tbl.man: Minor documentation update.
1673 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1675         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
1676         * configure.ac: Add declaration test for gettimeofday().
1677         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
1678         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
1679         * configure: Regenerated.
1681 2001-08-11  Werner LEMBERG  <wl@gnu.org>
1683         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
1684         * configure.ac: Add declaration test for strcasecmp().
1685         * Makefile.in: Updated.
1686         * configure: Regenerated.
1687         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
1688         this is necessary because groff's mkstemp.cc is C++.
1689         Add declaration conditionally for strcasecmp().
1691 2001-08-10  Werner LEMBERG  <wl@gnu.org>
1693         Integrated pic2graph, contributed by Eric S. Raymond.
1695         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
1696         files.
1697         * Makefile.in, NEWS: Updated.
1699         * src/preproc/tbl/tbl.man: Revised.
1701 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
1703         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
1705 2001-08-09  Werner LEMBERG  <wl@gnu.org>
1707         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
1708         requests.
1710 2001-08-08  Paul Eggert  <eggert@twinsun.com>
1712         * Makefile.sub (configure): Depend on configure.ac, not
1713         configure.in.
1714         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
1716 2001-08-07  Werner LEMBERG  <wl@gnu.org>
1718         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
1719         fixes.
1721 2001-08-06  Werner LEMBERG  <wl@gnu.org>
1723         * src/roff/troff/troff.man: Improve documentation of -E option.
1725 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1727         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
1728         Simplified.
1730 2001-07-27  Werner LEMBERG  <wl@gnu.org>
1732         * src/preproc/refer/refer.cc: Undo last change.
1733         * src/devices/grohtml/post-html.cc: Ditto.
1735 2001-07-26  Werner LEMBERG  <wl@gnu.org>
1737         * src/preproc/refer/refer.cc: Include `lib.h'.
1738         * src/devices/grohtml/post-html.cc: Ditto.
1740 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
1742         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
1743         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
1744         * Makefile.in: Comment updated.
1745         * configure: Regenerated.
1747 2001-07-25  Werner LEMBERG  <wl@gnu.org>
1749         * src/preproc/pic/pic.cc: Removed.
1750         * src/preproc/pic/pic_tab.h: Removed.
1751         * src/preproc/refer/label.cc: Removed.
1753         * doc/Makefile (.ms.html): Don't use a file name extension in
1754         argument to grohtml's -I option.
1755         * Makefile.in (dist): Remove CVS directories.
1756         Call `distfiles' target.
1758         * src/devices/grohtml/grohtml.man: Add information about valid
1759         versions of pnmtopng.
1760         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
1761         name instead of number.
1763 2001-07-24  Werner LEMBERG  <wl@gnu.org>
1765         * doc/groff.texinfo: Minor fixes.
1767 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
1769         * doc/Makefile (.ms.html): Put image files into a subdirectory.
1770         (clean): Updated.
1772 2001-07-20  Werner LEMBERG  <wl@gnu.org>
1774         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
1775         * src/libs/libgroff/mkstemp.cc: New file.
1776         * src/libs/libgroff/mksdir.cc: New file.
1777         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
1778         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
1779         * src/libs/libgroff/Makefile.sub: Updated.
1780         * src/include/lib.h: Add mksdir() prototype.
1781         * src/include/posix.h: Define S_IXUSR if not yet defined.
1783         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
1784         (createAllPages): Use mksdir() instead of current code.
1785         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
1786         (main): [!HAVE_MKSTEMP]: Removed.
1788         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
1789         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
1790         macros.
1791         * configure.ac: Add tests for stdint.h, sys/time.h, and
1792         gettimeofday().
1793         Call new GROFF_xxx macros.
1794         * configure: Regenerated.
1795         * Makefile.in: Comments updated.
1797 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
1799         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
1800         instead of current code.
1801         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
1802         * src/roff/groff/groff.cc (possible_command::insert_args): New
1803         function.
1804         (main): Use it for predriver handling instead of insert_arg().
1806 2001-07-19  Werner LEMBERG  <wl@gnu.org>
1808         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
1809         groff also.
1811         * src/include/posix.h: Define S_IWUSR if not yet defined.
1813 2001-07-18  Werner LEMBERG  <wl@gnu.org>
1815         * NEWS: Updated.
1817 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
1819         * tmac/groff_mdoc.man: Document new -width and -column syntax.
1820         Some other minor fixes.
1821         * tmac/an-old.tmac: Add `AT' and `UC' macros.
1823 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
1825         Replace call to `troff' with `groff -Z' to make it aware of
1826         GROFF_BIN_PATH.
1828         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
1829         (troff_command, command_prefix): Removed.
1830         (alterDeviceTo): Use groff.
1831         (addZ): New function.
1832         (char_buffer::do_html): Use it.
1833         (scanArguments): Use TROFF_COMMAND.
1834         (findPrefix): Removed.
1835         (main): Updated.
1836         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
1838 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
1840         * doc/pic.ms: Documentation fixes.
1842 2001-07-17  Werner LEMBERG  <wl@gnu.org>
1844         Replace atexit() with global destructor.
1846         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
1847         (xtmpfile_list_init): New global structure to deallocate
1848         xtmpfile_list on exit.  Its destructor inherits most code from
1849         remove_tmp_files().
1850         (remove_tmp_files): Deleted.
1851         (add_tmp_file): Simplified.
1853 2001-07-16  Werner LEMBERG  <wl@gnu.org>
1855         Replace strdup() with strsave().
1857         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
1858         (set_papersize): Use strsave() and a_delete.
1859         (main): Use strsave().
1860         * src/preproc/html/pre-html.cc (make_message, createAllPages,
1861         removeAllPages): Use strsave() and a_delete.
1863         * configure.ac: Remove test for strdup.
1864         * Makefile.in: Comment updated.
1865         * configure: Regenerated.
1867 2001-07-15  Werner LEMBERG  <wl@gnu.org>
1869         * win32-diffs: Updated.
1871 2001-07-14  Werner LEMBERG  <wl@gnu.org>
1873         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
1874         removing the old one.
1875         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
1877 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1879         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
1881 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
1883         Merge -xwidth into -width.  Add -xwidth functionality to -column
1884         also.
1886         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
1887         avoid warning.
1888         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
1889         string immediately following a leading dot starts with a valid mdoc
1890         argument.
1891         Add similar code to the -column branch.
1892         (doc-Bl-usage): Updated.
1893         * groff_mdoc.man: s/-xwidth/-width/.
1895 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
1897         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
1898         running into centered or non-formatted text.
1900 2001-07-11  Werner LEMBERG  <wl@gnu.org>
1902         Introduce short and long prefixes to have the selection at run-time
1903         whether there is a 8+3 limit for names of temporary files.
1905         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
1906         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
1907         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
1908         variables.
1909         (temp_init): New global structure to initialize above three
1910         variables.
1911         (xtmptemplate): Use two parameters for long and short prefix.
1912         Simplify code use above three variables.
1913         (xtmpfile): Use long and short prefixes as parameters.
1914         * src/include/lib.h: Updated.
1916         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
1917         with ...
1918         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
1919         (createAllPages, makeTempFiles): Updated.
1921 2001-07-09  Werner LEMBERG  <wl@gnu.org>
1923         * REVISION: Increased to 3.
1925 Version 1.17.2 released
1926 =======================
1928 2001-07-07  Werner LEMBERG  <wl@gnu.org>
1930         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
1931         to size_t.
1933 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
1935         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
1936         Fix synopsis.
1937         * tmac/groff_mdoc.man: Fix synopsis.
1939 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
1941         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
1942         Restore `doc-Pa-font'.
1944 2001-07-04  Werner LEMBERG  <wl@gnu.org>
1946         * src/utils/indxbib/dirnamemax.c: Moved to ...
1947         * src/libs/libgroff/maxfilename.cc: Here.
1948         s/dir_name_max/file_name_max/.
1949         Add copyright.
1950         * src/include/lib.h: Add file_name_max.
1951         * src/utils/indxbib/indxbib.cc: Updated.
1952         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
1953         Updated.
1955         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
1956         as empty.
1957         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
1959         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
1960         REGION_TEMPLATE): New macros.
1961         (createAllPages, makeTempFiles): Use them.
1962         Include `nonposix.h'.
1963         (html_system): New function.
1964         (createAllPages, createImage): Use it.
1965         Use EXE_EXT.
1967         * tmac/www.tmac: Fix typos.
1969 2001-07-03  Werner LEMBERG  <wl@gnu.org>
1971         * tmac/www.tmac: Disable hyphenation in normal text only if output
1972         device is html.
1973         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
1974         * tmac/groff_mwww.man, NEWS: Updated.
1976 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
1978         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
1979         image location.
1981 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
1983         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
1984         doc-display-ps-stack): Implement font and font size stack for
1985         displays.
1987 2001-07-02  Werner LEMBERG  <wl@gnu.org>
1989         * REVISION: Increased to 2.
1990         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
1992         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
1993         beginning of a line.
1994         * src/groff/grog/grog.sh: Ditto.
1996 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
1998         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
1999         make it portable.
2001 2001-06-27  Werner LEMBERG  <wl@gnu.org>
2003         Fix problems with preprocessor string for `man' program.
2005         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
2006         Updated/added copyright.
2007         Moved Emacs's local variable to identify nroff mode to the end of
2008         the file; add local variable if missing.
2010 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
2012         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2013         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2014         * configure: Regenerated.
2016 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
2018         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2019         * configure: Regenerated.
2021 2001-06-24  Werner LEMBERG  <wl@gnu.org>
2023         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2024         but www.tmac.
2025         * doc/pic.ms: Fix typos.
2027 Version 1.17.1 released
2028 =======================
2030 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
2032         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2033         * configure: Updated.
2035 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
2037         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2038         image names.
2039         * src/roff/troff/dic.cc (blank_line): Add html tag.
2041 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
2043         * src/roff/troff/input.cc (do_suppress): Fix typo.
2045 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
2047         Added two new options (-D and -I) to specify image names and a
2048         subdirectory to place the images in.
2050         Change syntax from \\Ox to \\O[x].
2052         * src/devices/grohtml/post-html.cc (main): Add options.
2053         (usage): Updated.
2054         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2055         Use `NULL' instead of `0' for null string pointers.
2056         (MAX_RETRIES): New macro.
2057         (lengthOfintToStr, intToStr, make_message): New functions.
2058         (makeFileName): Make function static.
2059         Implement -D and -I options.
2060         (checkImageDir): New function.
2061         (write_end_image, write_start_image): Use new syntax of \O.
2062         (createAllPages, removeAllPages): Implement -D and -I options.  Use
2063         make_message().
2064         (createImage): Use make_message().
2065         (addps4html): Add guard for malloc().
2066         (usage, scanArguments): Updated.
2067         (makeTempFiles): Use mkstemp().
2068         (removeTempFiles): Use unlink().
2069         (findPrefix): Add guard for malloc().
2070         (main): Updated.
2071         * src/roff/troff/input.cc (get_delim_file_name): New function to
2072         parse \O.
2073         (do_suppress): Updated to parse new syntax.
2074         * src/devices/grohtml/grohtml.man: Updated.
2075         * tmac/www.tmac: Updated to new syntax.
2077         * NEWS: Updated.
2079 2001-06-15  Werner LEMBERG  <wl@gnu.org>
2081         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
2083         * src/devices/grohtml/grohtml.man: Minor improvements.
2085 2001-06-14  Werner LEMBERG  <wl@gnu.org>
2087         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
2089 2001-06-11  Werner LEMBERG  <wl@gnu.org>
2091         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
2092         line to specify preprocessor options -- mandb 2.3.1 only recognizes
2093         the former.
2094         * src/preproc/grn/grn.man: Add proper '\" string.
2096 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
2098         * test-groff: Don't use PATH but GROFF_BIN_PATH.
2100 2001-06-08  Werner LEMBERG  <wl@gnu.org>
2102         Updated to autoconf 2.50.
2104         * configure.in: Renamed to...
2105         * configure.ac: This.
2106         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
2107         (GROFF_OS390): Updated.
2108         * configure: Regenerated.
2110 2001-05-18  Werner LEMBERG  <wl@gnu.org>
2112         * src/roff/troff/env.c, src/roff/troff/env.h,
2113         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
2114         from 2000-12-21.
2116 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
2118         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
2120 2001-05-16  Werner LEMBERG  <wl@gnu.org>
2122         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
2123         less than or equal zero; set it to 1 then.
2124         * src/roff/troff/node.h (node::node): Initialize `last'.
2126 2001-05-08  Werner LEMBERG  <wl@gnu.org>
2128         * tmac/an-old.tmac: Make predefined strings work in compatibility
2129         mode.
2130         Add troff version guard.
2131         * tmac/doc.tmac: Simplify version guard.
2133 2001-05-07  Werner LEMBERG  <wl@gnu.org>
2135         The .ns and .rs requests are now honoured not only in the top-level
2136         but in all diversions (similar to UNIX troff).
2138         This change is based on a patch from Tadziu Hoffmann
2139         <hoffmann@usm.uni-muenchen.de>.
2141         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
2142         (top_level_diversion): Remove `no_space_mode' member.
2143         * src/roff/troff/div.cc (diversion::diversion,
2144         top_level_diversion::top_level_diversion): Updated.
2145         (macro_diversion::output): Reset `no_space_mode'.
2146         (no_space, restore_spacing): Use `curdiv' unconditionally.
2147         (space_request, blank_line): Check `curdiv->no_space_mode'.
2148         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
2149         `curdiv' unconditionally.
2150         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2151         Updated.
2153 2001-05-06  Werner LEMBERG  <wl@gnu.org>
2155         Added two new requests `de1' and `am1' which are similar to `de' and
2156         `am' with the difference that compatibility mode is saved on entry,
2157         switched off during macro execution, and restored on exit.
2159         * src/roff/troff/input.h: Added two new special characters
2160         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
2161         * src/roff/troff/input.cc (input_iterator): Added two member
2162         functions `save_compatible_flag' and `get_compatible_flag'.
2163         (input_stack): Ditto.
2164         (string_iterator): Ditto.  Also add private member
2165         `saved_compatible_flag'.
2166         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2167         (calling_mode): New enumeration.
2168         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
2169         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
2170         (define_macro, define_indirect_macro, append_macro, ignore): Use
2171         `calling_mode'.
2172         (define_nocomp_macro, append_nocomp_macro): New functions.
2173         (init_input_requests): Updated.
2174         (do_request): Rename local variable `saved_compatible_flag' to
2175         `old_compatible_flag'.
2176         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2178         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
2179         public and trap-invoked macros.  As a consequence, the man macros
2180         work in compatibility mode also.
2182 2001-05-06  Solar Designer  <solar@openwall.com>
2184         * Makefile.in: Use $(mandir).
2186 2001-05-06  Alexios Zavras  <zvr@pobox.com>
2188         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
2190 2001-05-05  Werner LEMBERG  <wl@gnu.org>
2192         Added `.ns' number register: Returns 1 in no-space mode (if in
2193         top-level diversion), 0 otherwise.
2195         * src/roff/troff/div.cc (no_space_mode_reg): New class.
2196         (init_div_requests): Updated.
2197         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
2198         Document it.
2200 2001-05-04  Werner LEMBERG  <wl@gnu.org>
2202         * src/roff/nroff/nroff.man: Improved documentation (especially
2203         locales).
2205 2001-05-02  Werner LEMBERG  <wl@gnu.org>
2207         Added `brp' request: This is \p as a request.
2209         * src/roff/troff/env.cc (environment::do_break): Add parameter
2210         `spread'.
2211         (do_break_request): New function (was `break_request').
2212         (break_request): Calls `do_break_request'.
2213         (break_spread_request): New; calls `do_break_request'.
2214         (init_env_requests): Updated.
2215         * src/roff/troff/env.h: Updated.
2216         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2218         * REVISION: Increased to 1.
2219         * win32-diffs: Updated.
2221 2001-05-01  Werner LEMBERG  <wl@gnu.org>
2223         * tmac/an-old.tmac: Fix minor compatibility mode issue.
2224         * tmac/troffrc-end: Make it really work in compatibility mode.
2226 2001-04-27  Werner LEMBERG  <wl@gnu.org>
2228         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
2229         stdlib.h.
2231 2001-04-22  Werner LEMBERG  <wl@gnu.org>
2233         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
2234         latest versions from glibc CVS archive.
2236         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
2237         <c.zeelenberg@hccnet.nl>.
2239 2001-04-21  Werner LEMBERG  <wl@gnu.org>
2241         * configure.in: Move check for mkstemp() to...
2242         * aclocal.m4 (GROFF_MKSTEMP): This new function.
2243         * configure: Regenerated.
2245         * src/include/groff-getopt.h: Don't use variable names in
2246         declarations.
2248         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
2249         * src/devices/grohtml/Makefile.sub,
2250         src/devices/grohtml/post-html.cc: Updated.
2252 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
2254         * configure.in: Add special check for mkstemp().
2255         * src/libs/libgroff/tmpfile.cc: Use it.
2256         * src/utils/indxbib/indxbib.cc: Ditto.
2257         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
2258         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
2259         `const'.
2261 2001-04-20  Bruce Lilly  <blilly@erols.com>
2263         `Version_string' as C++ object was not visible to linker from C
2264         object files.
2265         Add `const' to `Version_string'.
2267         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
2268         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
2269         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
2270         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
2271         (scanArguments), src/preproc/refer/refer.cc (main),
2272         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
2273         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
2274         (main), src/devices/grohtml/post-html.cc (main),
2275         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
2276         (main), src/utils/hpftodit/hpftodit.cc (main),
2277         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
2278         (main), src/utils/lkbib/lkbib.cc (main),
2279         src/utils/addftinfo/addftinfo.cc (main): Implement it.
2281         * src/roff/groff/pipeline.c: Add _UWIN.
2282         * src/include/nonposix.h: Ditto.
2284 2001-04-20  Werner LEMBERG  <wl@gnu.org>
2286         * src/include/lib.h: Use HAVE_STRERROR.
2287         * src/roff/groff/pipeline.c: Ditto.
2288         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
2289         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
2290         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
2291         * win32-diffs: Updated.
2292         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
2294 2001-04-19  Werner LEMBERG  <wl@gnu.org>
2296         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
2297         instead of hardwired `"troff"'.
2298         (char_buffer::read_file): Remove unused variables.
2299         (char_buffer::write_file_troff): Ditto.
2300         (char_buffer::write_file_html): Ditto.
2301         (generateImages): Ditto.
2302         (abs): Removed.
2303         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
2305         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
2307         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
2308         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
2309         index_search_item::search1): Ditto.
2310         * src/roff/troff/node.h (width_list): Reorder members.
2311         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
2312         (lookup_warning): Ditto.
2313         (prepend_string): Commented out.
2314         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
2315         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
2316         * src/preproc/tbl/main.cc (process_format): Ditto.
2317         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
2318         compiler warnings.
2319         * src/preproc/pic/pic.cc: Updated.
2320         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
2321         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
2322         * src/preproc/refer/command.cc (execute_command): Ditto.
2323         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
2324         * src/preproc/refer/token.cc (lookup_token): Ditto.
2325         * src/preproc/soelim/soelim.cc: Ditto.
2326         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
2327         (isHexDigit): Commented out.
2328         (pushBackBuffer::isString): Remove unused variable.
2329         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
2330         warning.
2331         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
2332         resource_manager::read_resource_arg, read_one_of, parse_extensions):
2333         Ditto.
2334         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
2335         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
2336         lookup_paper_size): Ditto.
2337         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
2338         (text_glob, element_list): Reorder members.
2339         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
2340         compiler warning.
2341         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
2342         return value to `void'.
2343         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
2344         of initializers.
2345         * src/devices/grohtml/html.h (simple_output::check_newline,
2346         simple_output::space_or_newline, simple_output::enable_newlines):
2347         Add return value.
2348         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
2349         compiler warnings.
2350         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
2351         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
2352         output_ligatures, output_charset, read_map): Ditto.
2353         * src/utils/lookbib/lookbib.cc (main): Ditto.
2354         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
2355         (do_file): Fix typo (`=' -> `==').
2356         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
2357         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
2359 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
2361         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
2362         Fix usage of GROFF_BIN_PATH.
2363         * src/roff/nroff/nroff.man: Updated.
2365 2001-04-18  Werner LEMBERG  <wl@gnu.org>
2367         * NEWS: Fixing typos.
2368         Updated.
2370 Version 1.17 released
2371 =====================
2373 2001-04-17  Werner LEMBERG  <wl@gnu.org>
2375         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
2376         directory, not in $(srcdir).
2378 2001-04-16  Werner LEMBERG  <wl@gnu.org>
2380         * doc/groff.texinfo: More info on conditionals.
2382 2001-04-15  Werner LEMBERG  <wl@gnu.org>
2384         * doc/groff.texinfo: Added some info about groff internals.
2386         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
2387         about missing special character only if the name is non-null.
2389 2001-04-14  Werner LEMBERG  <wl@gnu.org>
2391         Removing the grohtml-old device driver which is now obsolete.
2393         * src/devices/grohtml-old/*: Removed.
2394         * font/devhtml-old/*: Removed.
2395         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
2396         Remove comments.
2397         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
2398         * test-groff (PATH): Updated.
2399         * tmac/Makefile.sub (NORMALFILES): Updated.
2400         * tmac/an-old.tmac: Remove special code for html-old device.
2401         Replace `html-or-html-old' register with `an-html'.
2402         * tmac/eqnrc: Updated.
2403         * tmac/html-old.tmac: Removed.
2404         * tmac/troffrc, tmac/troffrc-end: Updated.
2405         * tmac/www.tmac: Remove special code for html-old device.
2406         Replace `html-or-html-old' register with `www-html'.
2408         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
2409         src/libs/libgroff/htmlindicate.cc (graphic_end),
2410         include/htmlindicate.h, src/preproc/grn/*.cc,
2411         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
2412         single argument for consistency with rest of source code.
2414         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
2416 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
2418         * src/roff/troff/troff.man: Fixing typos.
2420 2001-04-13  Werner LEMBERG  <wl@gnu.org>
2422         * doc/pic.ms: Fixing many font switches.
2423         * doc/groff.texinfo: Fixes, additions.
2424         * MORE.STUFF: Updated.
2426 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
2428         * src/devices/grohtml/grohtml.man: Updated manual page regarding
2429         simple anchor.
2430         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
2431         cropping of images.
2432         (removeTempFiles): New function to tidy up temporary files.
2433         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
2434         Many fixes to do with the new inline suppress node and image regions
2435         are much tighter.
2436         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
2437         (generate_img_src): New function.
2438         (html_printer::do_auto_image): Utilizes it.
2439         (do_heading, do_title): Include inline images within their contents.
2440         (html_printer::begin_page): Tidied up comments that are issued to
2441         the html output file.
2442         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
2443         than courier.
2444         (text_glob::is_br): New method used by do_heading.
2445         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
2446         equivalent diversion.
2447         * src/include/html-strings.h: Altered image tags to reflect the
2448         inline image node.
2449         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
2450         parameter.
2451         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
2452         it is already inside a pic image.  Only emit tags if the argument
2453         `-Tps:html' is present.
2454         * src/preproc/tbl/main.cc: Changes to reflect additional
2455         `html_end_suppress' parameter.
2456         * src/roff/troff/env.cc: Only emit eol tag if a node has been
2457         emitted since the last eol tag was written.
2458         * src/roff/troff/env.h: New boolean `emitted_node'.
2459         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
2460         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
2461         * src/roff/troff/node.cc (check_charinfo): New method. 
2462         (troff_output_file::determine_line_limits): Alterations to limit
2463         checking.
2464         * tmac/www.tmac: Changes to reflect new suppress nodes.
2465           
2466 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
2468         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
2469         Escape the html_glyph in the buffer.
2470         (str_translate_to_html): Output the unescaped escaped_char.
2471         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
2472         `frame=void', not `frame=none'.  Add `border=0'.
2474 2001-04-12  Werner LEMBERG  <wl@gnu.org>
2476         * PROBLEMS: Add some words on how to avoid wrapper macros.
2478 2001-04-11  Blake McBride  <blake@florida-software.com>
2480         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
2482 2001-04-11  Werner LEMBERG  <wl@gnu.org>
2484         * font/devlbp/Makefile.sub (CLEANADD): Set it.
2485         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
2486         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
2487         * Makefile.sub (DISTCLEANFILES): Here.
2489         * libs/libgroff/new.cc: Include `nonposix.h'.
2490         * win32-diffs: Updated.
2492 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
2494         Added skeleton macro for defunct macros.
2496         Updated documentation.
2498         When inside displays, an empty input line warning should be
2499         suppressed.  If another macro call is put inside a display,
2500         all subsequent empty lines found in that display caused a
2501         warning to be emitted.
2503         * tmac/doc.tmac (doc-defunct-macro): New macro.
2504         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
2505         (doc-restore-global-vars): Fixed typo.
2506         (doc-empty-line): Check the `doc-display-depth' register to
2507         determine whether we are inside display or not.
2509         * tmac/doc-common: Removed `Or' and `Sf' registers.
2510         Moved obsolete `Ds' macro to doc.tmac.
2512         * tmac/groff_mdoc.man: Bump document date.
2513         Document `.Vt' under ``Variable Types''.
2514         Removed documentation for obsolete `.Or' macro.
2516 2001-04-10  Werner LEMBERG  <wl@gnu.org>
2518         * NEWS: Updated.
2519         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
2521 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
2523         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
2524         (usage): Add stream argument. Don't exit.
2525         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
2526         Write --version output to stdout, not stderr.
2527         (usage): Add stream argument. Don't exit.
2528         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
2529         (usage): Add stream argument. Don't exit.
2530         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
2531         constants.
2532         (usage): Add stream argument. Don't exit.
2533         (main): Write --help output to stdout, not stderr.
2534         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
2535         (usage): Add stream argument. Don't exit.
2536         * src/devices/grops/ps.cc (main): Accept --help and --version.
2537         (usage): Add stream argument. Don't exit.
2538         * src/devices/grotty/tty.cc (main): Accept --help and --version.
2539         (usage): Add stream argument. Don't exit.
2540         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
2541         (main): Accept --help and --version.
2542         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
2543         (main): Accept --help and --version.
2544         * src/preproc/html/pre-html.cc (usage): Add stream argument.
2545         (scanArguments): Accept --help and --version.
2546         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
2547         (main): Accept --help and --version.
2548         * src/preproc/refer/refer.cc (main): Accept --help and --version.
2549         (usage): Add stream argument. Don't exit.
2550         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
2551         exit.
2552         (main): Accept --help and --version.
2553         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
2554         (main): Accept --help and --version.
2555         * src/roff/groff/groff.cc (main): Accept --help and --version.
2556         (synopsis): Add stream argument.
2557         (help): Write --help output to stdout, not stderr.
2558         (usage): Add stream argument. Don't exit.
2559         * src/roff/grog/grog.pl: Accept --help and --version.
2560         (help): New sub.
2561         * src/roff/grog/grog.sh: Accept --help and --version.
2562         * src/roff/nroff/nroff.sh: Accept --help and --version.
2563         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
2564         (usage): Add stream argument. Don't exit.
2565         (main): Accept --help and --version.
2566         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
2567         (usage): New function with stream argument, doesn't exit.
2568         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
2569         (usage): New function with stream argument, doesn't exit.
2570         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
2571         (usage): Add stream argument. Don't exit.
2572         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
2573         (main): Accept --help and --version.
2574         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
2575         exit.
2576         (main): Accept --help and --version.
2577         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
2578         (main): Accept --help and --version.
2579         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
2580         (usage): Add stream argument. Don't exit.
2582 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
2584         Fix indentation in SYNOPSIS.
2586         Updated to include changes of latest BSD mdoc version (basically,
2587         the only change is that `.Fn' and `.Fc' put a final semicolon after
2588         a function declaration in the SYNOPSIS section).
2590         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
2591         (doc-in-synopsis-section): New variable.  Updated all related
2592         functions.
2593         (doc-indent-synopsis-active): New register.
2594         (Nd, Fn, Fo): Use it.
2595         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
2596         `.Cd' with long argument line produces indented wrapped lines. 
2597         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
2598         undesirable line break to be output.
2599         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
2600         `.rs'.
2601         (Fn, Fc): Add final `;' to output.
2602         (doc-save-global-vars, doc-restore-global-vars): Updated.
2603         * tmac/doc-common: Remove `Ex' register.
2604         Updated.
2605         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
2606         copyright.
2608 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
2610         * tmac/doc.tmac (Cd): Simplify code.
2611         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
2613 2001-04-06  Werner LEMBERG  <wl@gnu.org>
2615         Implement continuous underlining for nroff mode.  To do that, a new
2616         request in the ditroff language has been added: `x u N' (N is 0
2617         or 1).
2619         \X and \Y are now transparent to end-of-sentence recognition.
2621         * src/include/printer.h (printer): Add `type' parameter to `special'
2622         method.
2623         * src/libs/libdriver/printer.cc (printer::special): Updated.
2624         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
2626         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
2627         specials of type `p'.
2628         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
2629         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
2630         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
2631         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
2632         (glyph::order): New method.
2633         (tty_printer::add_char): Use it.
2634         (tty_printer::special): New method.
2635         (tty_printer::end_page): Implement it.
2637         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
2638         * src/roff/troff/node.cc (special_node::special_node): Add parameter
2639         to set `no_init_string'.
2640         (special_node::tprint_start): Use it.
2641         (special_node::same, special_node::copy): Updated.
2642         (special_node::ends_sentence): New method.
2643         (troff_output_file::start_special): Add parameter to include
2644         inititialization of special conditionally.
2646         * src/roff/troff/env.h (environment): New member `underline_spaces'.
2647         * src/roff/troff/env.cc (do_underline_special): New function.
2648         (environment::set_font): Use it.
2649         (do_underline): Use it.  This was `underline()'.
2650         (underline): Call `do_underline()'.
2651         (continuous_underline): New function which calls `do_underline()'.
2652         (environment::newline): Use `do_underline_special()'.
2653         (init_env_requests): Updated.
2655         * NEWS, man/troff_out.man: Updated.
2657 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
2659         * font/devutf8/R.proto: Fix code of 'shc'.
2661 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
2663         Many fixes.  Diag lists can now be nested also; additionally,
2664         `-compact' and `-offset' are supported.
2666         * tmac/doc.tmac (doc-have-indent): Replaced with ...
2667         (doc-list-have-indent-stackXXX): A new register stack.
2668         (doc-have-diag-list): Removed.
2669         (Bl): Use `doc-list-have-indent-stackXXX'.
2670         (El): Updated.
2671         (doc-diag-list): Use `doc-compact-list-stackXXX'.
2672         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
2673         (doc-set-vertical-and-indent): Ditto.
2674         (doc-next-list-depth): Removed.
2675         (doc-increment-list-stack): Updated.
2676         (doc-decrement-list-stack): Use `doc-list-depth' instead of
2677         `doc-next-list-depth'.
2678         (doc-end-list, doc-end-column-list): Don't use
2679         `doc-increment-list-stack'.
2680         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
2681         (doc-save-global-vars, doc-restore-global-vars): Updated.
2682         * tmac/doc-common: Updated.
2683         * tmac/groff_mdoc.man: Updated.
2684         * NEWS: Fix typo.
2686 2001-04-02  Werner LEMBERG  <wl@gnu.org>
2688         * src/devices/grotty/grotty.man: Fix grammatical error.
2690 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
2692         Remove .Ld from mdoc package; replace it with special handling of
2693         `...'.
2695         * tmac/doc-common: Remove `Ld' register.
2696         Uncomment `doc-volume-ds-*' strings.
2697         Remove `doc-operating-system-default'.
2698         (Os): Updated.
2699         * tmac/doc-syms (Ld): Removed.
2700         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
2701         `...' specially.
2702         * NEWS: Updated.
2704         * tmac/groff_mdoc.man: Many fixes and updates.
2706 2001-03-29  Werner LEMBERG  <wl@gnu.org>
2708         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
2709         Bond <tkb@tkb.mpl.com>.
2710         * tmac/www.tmac: Save compatibility mode.
2712 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
2714         * tmac/groff_mdoc.man: Many fixes.
2716 2001-03-28  Werner LEMBERG  <wl@gnu.org>
2718         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
2719         isn't recognized.
2721 2001-03-27  Werner LEMBERG  <wl@gnu.org>
2723         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
2724         diversion.  This fixes overlong tags.
2726 2001-03-26  Werner LEMBERG  <wl@gnu.org>
2728         * doc/groff.texinfo: Fixed and improved documentation of fonts.
2729         * tmac/doc-syms: Fix error messages.
2730         * tmac/an-old.tmac: Remove incorrect double backslashes.
2732 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
2734         * tmac/Makefile.sub: Strip mdoc.local also
2735         * tmac/strip.sed: Fixed.
2737 2001-03-24  Werner LEMBERG  <wl@gnu.org>
2739         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
2740         selecting the font size.
2741         * tmac/groff_mdoc.man, NEWS: Document it.
2743 2001-03-23  Werner LEMBERG  <wl@gnu.org>
2745         * src/roff/troff/div.cc (save_vertical_space): Add default argument
2746         to `sv' request.
2747         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
2748         argument to restore previous font family.
2749         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
2751         * doc/groff.texinfo: More fixes and additions (mainly for font
2752         manipulating commands).
2754         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
2755         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
2756         * tmac/Makefile.sub, NEWS: Updated.
2758 2001-03-23  Werner LEMBERG  <wl@gnu.org>
2760         Replaced mdoc implementation.  The new version is `state of the
2761         art', using almost all new features of groff 1.17 -- it won't run
2762         with older versions.
2764         * tmac/doc.tmac: Completely rewritten.
2765         * tmac/doc-common: Ditto.
2766         * tmac/doc-nroff: Ditto.
2767         * tmac/doc-ditroff: Ditto.
2768         * tmac/doc-syms: Ditto.
2769         * tmac/mdoc.local: New file.
2770         * tmac/groff_mdoc.samples.man: Replaced with ...
2771         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
2772         * tmac/strip.sed: Updated.
2773         * tmac/Makefile.sub: Updated.
2774         * INSTALL: Updated.
2776         * tmac/groff_man.man: Add `man.local' to the FILES section.
2778 2001-03-22  Werner LEMBERG  <wl@gnu.org>
2780         * doc/groff.texinfo: Added many @noindent.
2781         Replaced @end_Example -> @endExample.
2782         Added info whether registers are r/o.
2783         Many other additions and fixes.
2785 2001-03-21  Werner LEMBERG  <wl@gnu.org>
2787         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
2788         in makeinfo of texinfo 4.0) to be used in @Def* macros.
2789         Improved @Def* macros: Now the exact syntax of request, register,
2790         and escapes is shown.
2791         Added macros for parentheses and brackets to be used in @Def*.
2792         Many fixes and improvements of the documentation.
2794 2001-03-20  Werner LEMBERG  <wl@gnu.org>
2796         * doc/groff.texinfo: Added new index: `st' (for strings).
2797         Added macros @Defstr(x).
2798         Added macro @Example (adding @group).
2799         Other minor improvements.
2801 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2803         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
2804         `rq' for requests.  `fn' is no longer used.
2805         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
2806         Removed @Deffn(x).
2808         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
2809         number with name of man page.
2811 2001-03-19  Larry Kollar  <kollar@alltel.net>
2813         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
2814         consistency.
2816 2001-03-19  Werner LEMBERG  <wl@gnu.org>
2818         * man/groff_font.man: Document `prepro', `postpro', and `print'.
2819         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
2820         * src/devices/grohtml/grohtml.man: Fixing typos.
2822 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
2824         * tmac/s.tmac (@IP): Pass `.ip' html tag.
2825         * tmac/groff_mwww.man: Remove .LINE macro
2826         * tmac/www.tmac (LINE): Add `.ti'.
2828         * src/devices/grohtml/post-html.cc (html_printer): New member
2829         `indent'.
2830         (html_printer::emit_raw): Use it.
2831         (html_printer::do_linelength): Ditto.
2832         (html_printer::do_pageoffset): Ditto.
2833         (html_printer::do_indentation): Ditto.
2834         (html_printer::do_tempindent): Ditto.
2835         (html_printer::do_break): Ditto.
2836         (html_printer::begin_page): Ditto.
2837         (html_printer::do_indentedparagraph): New function.
2838         (html_printer::troff_tag): Handle `.ip'.
2839         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
2840         Add `<td width=...>' handling.
2841         (html_text::do_table): Add parameter.
2842         (html_text::do_indent): Updated.
2843         * src/devices/groohtml/html-text.h: Updated.
2845 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
2847         Introduced simple html tables to implement indentation.
2849         * src/devices/grohtml/html.h (word, word_list): New structures.
2850         (simple_output): Use it.
2851         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
2852         (html_printer): Improve indentation handling.
2853         (html_printer::emit_raw): Set `in_table' element.  Handle
2854         indentation if set.
2855         (html_printer::write_header): Move conditional downwards.
2856         Don't allow whitespace in tags.
2857         (html_printer::do_linelength): Handle line length and indentation
2858         conditionally.
2859         (html_printer::do_pageoffset): Handle indentation conditionally.
2860         (html_printer::do_indentation): Ditto.
2861         (html_printer::do_tempindent): New function member.
2862         (html_printer::do_fill): Take care of indentation.
2863         (html_printer::do_flush): Finish table.
2864         (html_printer::do_links): Ditto.
2865         (html_printer::do_break): New function for handling `.br' and `.ti'.
2866         (html_printer::troff_tag): Use it.
2867         Handle `.ti'.
2868         (html_printer::flush_globs): Fix.
2869         (html_printer::flush_page): Finish table.
2870         (html_printer::html_printer): Fix error message.  Set up
2871         `linelength'.
2872         (html_printer::add_to_sbuf): Remove special handling of character
2873         code 255.
2874         (to_unicode): Remove `stop()'.
2875         (html_printer::write_title): Cleanup.
2876         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
2877         (html_printer::~html_printer): Flush text and end the line.
2878         Use `put_string()'.
2879         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
2880         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
2881         emission of tags.
2882         (html_text::start_tag): Disable newlines.
2883         (html_text::table_is_void): New function.
2884         (html_text::issue_table_begin): Ditto.
2885         (html_text::issue_table_end): Ditto.
2886         (html_text::push_para): Better table handling.
2887         (html_text::do_indent): New function.
2888         (html_text::do_table): Ditto.
2889         (html_text::done_table): Ditto.
2890         (html_text::do_tt): Handle PRE_TAG.
2891         (html_text::is_in_table): New function.
2892         (html_text::check_emit_text): Handle tables.
2893         (html_text::do_emittext): Use `nl()'.
2894         (html_text::do_para): Handle table.
2895         (html_text::remove_def): New function.
2896         * src/devices/grohtml/output.cc (word, word_list): Implement
2897         methods.
2898         (simple_output::end_line): Flush last word.
2899         (simple_output::simple_comment): Ditto.
2900         (simple_output::begin_comment): Recoded.
2901         (simple_output::end_comment): Ditto.
2902         (simple_output::comment_arg): Removed.
2903         (simple_output::check_newline): Improve test and flush last word.
2904         (simple_output::space_or_newline): Improved.
2905         (simple_output::write_newline): Replaced with...
2906         (simple_output::nl): This.
2907         (simple_output::put_raw_char): Flush last word.
2908         (simple_output::check_space): Removed.
2909         (simple_output::put_translated_string): Ditto.
2910         (simple_output::put_string): Simplified.
2911         (simple_output::put_number): Updated.
2912         (simple_output::put_float): Ditto.
2913         (simple_output::put_symbol): Removed.
2914         (simple_output::enable_newlines): Add `check_newline()'.
2915         (simple_output::flush_last_word): New function.
2917         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
2918         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
2920         * tmac/s.tmac (@PP, @IP): Add html conditional code.
2921         * tmac/an-old.tmac (TP): Ditto.
2923 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
2925         * mdate.sh: Make it POSIX compliant.
2927 2001-03-09  Werner LEMBERG  <wl@gnu.org>
2929         Added the `return' request to end a macro immediately.  It simply
2930         pops iterators from the input stack until a macro iterator is found.
2932         * src/roff/troff/input.cc (input_iterator::is_macro,
2933         macro_iterator::is_macro): New member.
2934         (input_return_boundary): New class to signal an immediate return
2935         to while_request().
2936         (input_stack::add_return_boundary, input_stack::is_return_boundary):
2937         New functions.
2938         (input_stack::clear): Use it.
2939         (input_stack::pop_macro): New function.
2940         (while_request): Use `is_return_boundary()'.
2941         (return_macro_request): New function.
2942         (init_input_requests): Use it.
2944         * src/roff/troff/TODO: Updated.
2945         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
2947 2001-03-08  Werner LEMBERG  <wl@gnu.org>
2949         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
2950         cleanup.
2952 2001-03-07  Werner LEMBERG  <wl@gnu.org>
2954         Make `\B' more rigid.
2956         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
2957         parameter.
2958         (get_number_rigidly): New function.
2959         * src/roff/troff/input.cc (do_expr_test): Use it.
2960         * src/roff/troff/token.h: Updated.
2962         * src/roff/troff/request.h: Fix typo (init_html_request ->
2963         init_markup_request).
2965 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
2967         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
2968         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
2969         are now `.begin', `.end', `.image'.
2971         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
2972         (html_printer::add_to_sbuf): Changing type of `code' parameter.
2973         Use add_char_to_sbuf().
2974         (to_unicode): New function.
2975         (char_translate_to_html): Changing type of `ch' parameter.
2976         Use `to_unicode()'.
2977         (html_printer::~html_printer): Comment out doctype string.
2978         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
2979         instead of `.html-end'.
2980         (write_start_image): Use `.begin' and `.image' instead of
2981         `.html-begin' and `.html-image'.
2982         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
2983         (html_begin): Renamed to ...
2984         (begin): This.
2985         (html_end): Renamed to ...
2986         (end): This.
2987         (html_image): Renamed to ...
2988         (image): This.
2989         (init_html_requests): Renamed to ...
2990         (init_markup_requests): This.
2991         * tmac/www.tmac: Updated.
2993 2001-02-28  Bram  <bram@avontuur.org>
2995         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
2996         constructor.
2998 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
3000         * doc/meref.me: Fixing some typos.
3002 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3004         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3005         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
3006         * src/roff/troff/node.h: Updated.
3008 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
3010         * tmac/groff_tmac.man: Fix typo.
3012 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3014         Fixing a bug which prevented proper end-of-sentence recognition
3015         between an `unformatted' box and the following text.  As a
3016         consequence, vertical line distances are no longer preserved in
3017         boxes after a call to `.unformat' -- because boxes aren't
3018         line-oriented (contrary to diversions), this doesn't make sense
3019         anyway.
3021         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3022         value.
3023         (vertical_size_node::set_unformat_flag): New method.
3024         * src/roff/troff/node.hh: Updated.
3025         * src/roff/troff/input.cc (word_space_node::reread,
3026         hmotion_node::reread): Reset `unformat' flag after usage.
3027         (unformat_macro): Append only if `set_unformat_flag()' returns
3028         non-zero.
3029         * src/roff/troff/troff.man: Updated.
3031 2001-02-15  Werner LEMBERG  <wl@gnu.org>
3033         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3034         documentation of `asciify' and `unformat' requests.
3036 2001-02-13  Werner LEMBERG  <wl@gnu.org>
3038         Redesigned the `unformat' request.  It is no longer connected with
3039         `asciify' but rather uses new `reread()' methods if the `unformat'
3040         flag is set.  Additionally, the handling of space characters after
3041         unformatting has been fixed so that they retain their width.
3043         * src/roff/troff/node.h (width_list): New structure to store
3044         original widths of spaces.
3045         (node): Added `unformat' member.
3046         Replaced `num_spaces' variable with `orig_width' list.
3047         * src/roff/troff/node.cc (*node::asciify,
3048         asciify_reverse_node_list): Removed `unformat_only' flag and related
3049         code.
3050         (word_space_node::asciify, word_space_node::word_space_node): Use
3051         `orig_width'.
3052         (word_space_node::~word_space_node): New destructor.
3053         (word_space_node::copy): Updated to handle `orig_width'.
3054         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3055         (*node::merge_space): Update `orig_width' list if necessary.
3056         (*node::set_unformat_flag): New methods to set the `unformat' flag.
3057         * src/roff/troff/enc.cc (environment::space_newline): Use
3058         `width_list'.
3059         (environment::space): Added method to handle space width and
3060         sentence space width as parameters.  Use `width_list'.
3061         (environment::make_tab_node): Updated.
3062         * src/roff/troff/env.h: Updated.
3063         * src/roff/troff/input.cc (word_space_node::reread,
3064         unbreakable_space_node::reread, hmotion_node::reread): New methods
3065         to handle nodes specially if `unformat' flag is set.
3066         (do_asciify_macro): Renamed back to ...
3067         (asciify_macro): This.
3068         (unformat_macro): New implementation to simply set the `unformat'
3069         flag.
3071         * MORE.STUFF: Added more info about deroff.
3073 2001-02-08  Werner LEMBERG  <wl@gnu.org>
3075         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3076         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
3077         and `add_self()' methods to avoid hyphenation.  For example, the
3078         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
3079         soft hyphen after `foo'.  Now the hyphen list is correctly
3080         `foo<ignore><ignore>bar'.
3082 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
3084         * tmac/groff_tmac.man: Fix `BIR' macro.
3086 2001-02-04  Werner LEMBERG  <wl@gnu.org>
3088         A new escape sequence `\:', inserting a zero-width break point.
3090         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
3091         * src/roff/troff/input.cc (get_copy, token::next, asciify):
3092         Implement it.
3093         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
3094         method.
3095         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
3096         and `asciify()' methods.
3097         * src/roff/troff/node.cc (space_node::space_node): Updated.
3098         (space_node::asciify): Handle `was_escape_colon'.
3099         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3101         Handle `\~' similar to other comparable requests.
3103         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
3104         label.
3105         (token::next): Move creation of an unbreakable_space_node to...
3106         (token::add_to_node_list): Here.
3108         Fix a bug which sometimes prevented hyphenation of words connected
3109         with `\~' or `\ ' (and other escape sequences handled as
3110         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
3111         (after a call to the `unformat' request).
3113         * src/roff/troff/env.h (environment::possibly_break_line,
3114         environment::hyphenate_line): Introducing `start_here' parameter.
3115         * src/roff/troff/env.cc (environment::space_newline,
3116         environment::space): Use it.
3117         (environment::possibly_break_line, environment::hyphenate_line):
3118         Implement it.
3119         * src/roff/troff/input.cc (process_input_stack): Use it.
3120         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3121         space_char_hmotion_node, overstrike_node): Add
3122         `get_hyphenation_type()' method.
3123         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
3124         if `unformat_only' is active.
3126 2001-01-30  Werner LEMBERG  <wl@gnu.org>
3128         Implemented new read-only number register `.linetabs' which
3129         returns 1 if in line-tabs mode, 0 otherwise.
3131         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
3132         * src/roff/troff/env.cc (get_line_tabs): New function.
3133         (init_env_requests): Use it.
3134         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3136         * VERSION, REVISION: Changing to 1.17.0.
3138 2001-01-28  Werner LEMBERG  <wl@gnu.org>
3140         Fixed a bug which prevented hyphenation of words which are finished
3141         with `\)'.
3143         * src/roff/troff/token.h (token): Add enum type
3144         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
3145         * src/roff/troff/input.cc (token::next, token::description,
3146         get_line_arg, token::add_to_node_list, token::process): Use it.
3148 2001-01-27  Werner LEMBERG  <wl@gnu.org>
3150         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
3151         * src/roff/troff/div.cc (do_divert): Use it.
3153         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
3155 2001-01-25  Werner LEMBERG  <wl@gnu.org>
3157         Adding the `linetabs' request.  If set, tab distances are not
3158         computed relative to the input line but relative to the output line.
3160         * src/roff/troff/env.h (environment): New member `line_tabs'.
3161         * src/roff/troff/env.cc (line_tabs_request): Implement request.
3162         (environment::environment, environment::copy): Updated.
3163         (environment::distance_to_next_tab): Use `line_tabs'.
3164         (init_env_requests): Register request.
3165         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
3166         fixes.
3168 2001-01-24  Werner LEMBERG  <wl@gnu.org>
3170         Introducing a new read-only register `.int' which is set to a
3171         positive value if the last output line is interrupted (i.e., if it
3172         contains `\c').
3174         * src/roff/troff/env.cc (init_env_requests): Add it.
3175         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3177 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
3179         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
3180         * src/preproc/html/pre-html.cc (findPrefix): New function which
3181         generates the troff executable name via the system prefix.
3182         * src/preproc/eqn/main.cc: Modified warning message.
3184 2001-01-23  Werner LEMBERG  <wl@gnu.org>
3186         troff's `box' and `boxa' requests didn't preserve temporary
3187         indentation.
3189         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
3190         `saved_target_text_length' members.
3191         * src/roff/troff/div.cc (do_divert): Use them.
3193         Tabs (but not yet leaders and fields) are now handled correctly by
3194         `asciify' request.
3196         * node.h (hmotion_node): Add field `was_tab'.
3197         * env.cc (environment::make_tab_node): Set it.
3198         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
3200         Added new request `unformat' which will, contrary to `asciify',
3201         preserve font information after unformatting (i.e., only nodes
3202         dealing with horizontal space are converted back to input
3203         characters).
3205         * input.cc (asciify_macro): Renamed to ...
3206         (do_asciify_macro): this, having a new parameter `unformat_only'.
3207         (asciify_macro, unformat_macro): New; using do_asciify_macro.
3208         (init_input_requests): Added `unformat'.
3209         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
3210         parameter to control asciification process.
3211         * node.h (*_node::asciify): Ditto.
3212         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3214 2001-01-20  Werner LEMBERG  <wl@gnu.org>
3216         * doc/groff.texinfo: Minor improvement of `.in' documentation.
3218 2001-01-18  Werner LEMBERG  <wl@gnu.org>
3220         * tmac/ps.tmac: Remove call of psold.tmac.
3221         * tmac/psold.tmac: Comment updated.
3222         * tmac/psnew.tmac: Removed since no longer needed.
3223         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
3225         * font/devutf8/R.proto: Adding `shc' glyph.
3226         * font/devutf8/NOTES: Updated.
3228         * test-groff: Updated.
3230 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
3232         First cut of the new html device driver.  Changes to pre-html and
3233         the new grohtml are too numerous to be documented here.
3235         Stuff related to `html' has been renamed to `html-old' and `html2'
3236         stuff has been renamed to `html' (including directories).  The new
3237         html device driver is therefore invoked as `-Thtml'.
3239         Added new `\O' escape to suppress output (needed by html driver).
3241         Added functions and code to pass info about input-level commands
3242         (`.in', `.fl', etc.) to html driver.
3244         Three new functions (.html-begin, .html-end, and .html-image) for
3245         better html handling: `html-begin' will execute the remaining line
3246         if at the outermost nesting level, increasing an internal counter.
3247         `html-end' does the same but decreases the internal counter.
3248         `html_image' puts its arguments into a special node (suppress_node)
3249         to define an image region.
3251         The `output' request has been removed.
3253         * tmac/html-tags.tmac: Removed.
3254         * tmac/arkup.tmac: Updated and renamed to ...
3255         * tmac/www.tmac: New file.
3256         * tmac/markup.tmac Updated and renamed to ...
3257         * tmac/mwww.tmac: New file.
3258         * tmac/Makefile.sub: Updated.
3259         * tmac/an-old.tmac: Updated.
3260         * tmac/eqnrc: Updated.
3261         * tmac/groff_man.man
3262         * tmac/groff_markup.man: Updated and renamed to ...
3263         * tmac/groff_mwww.man: New file.
3264         * tmac/groff_tmac.man: Updated.
3265         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
3266         * tmac/html.tmac: Updated and renamed from html2.tmac.
3267         * tmac/pspic.tmac: Updated html support.
3268         * tmac/s.tmac: Added html output support.
3269         * tmac/troffrc, tmac/troffrc-end: Updated.
3271         * Makefile.in, doc/Makefile: Updated.
3272         * doc/groff.texinfo: Added info about new `\O' escape.
3273         * doc/homepage.ms: Use `MAILTO' macro.
3275         * font/devhtml/DESC.proto: Add `C' font.
3276         * font/devhtml/Makefile.sub: Updated.
3277         * font/devhtml/R.proto: Minor fixes.
3278         * font/devhtml-old/Makefile.sub: Updated.
3280         * src/devices/grohtml-old/Makefile.sub: Updated.
3282         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
3283         method.
3284         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
3285         graphic_start): Add `inline' parameter.  Update.
3286         (html_end_suppress, graphic_end): Update.
3288         * src/include/html-strings.h: New file.
3289         * src/include/htmlindicate.h: Comments updated.
3290         * src/include/printer.h: Updated.
3292         * src/preproc/eqn/main.cc (do_file, main): Updated.
3293         * src/preproc/pic/troff.cc (troff_output::start_picture,
3294         troff_output::finish_picture): Updated.
3295         * src/preproc/tbl/main.cc (process_input_file): Updated.
3297         * src/roff/groff/groff.cc (main): Updated.
3298         Pass device arguments to predrivers also.
3299         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
3300         * src/roff/troff/env.h (environment): Updated.
3301         New elements `need_eol' and `ignore_next_eol' (for html output).
3302         * src/roff/troff/env.cc (environment::environment): Add initializers
3303         for `need_eol' and `ignore_next_eol'.
3304         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
3305         functions.
3306         (point_size, fill, no_fill, center, right_justify, line_length,
3307         indent, temporary_indent, break_request, handle_tab): Use
3308         `add_html_tag()'.
3309         (set_tabs): Use `add_html_tag_tabs()'.
3310         (environment::add_html_tag): Updated.
3311         (environment::do_break): Updated.
3312         * src/roff/troff/div.cc (space_request, flush_output): Use
3313         `environment::add_html_tag()'.
3314         * src/roff/troff/input.cc: Updated.
3315         New variable `html_level' to indicate nested `html-begin' requests.
3316         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
3317         (non_interpreted_char_node, token_node, non_interpreted_node): Add
3318         `force_tprint()' method.
3319         (token::next): Handle `\O'.
3320         (do_suppress): Implement it.
3321         (html_begin, html_end, html_image): New functions.
3322         (init_output_requests): Renamed to ...
3323         (init_html_requests): this.
3324         (main): Use it.
3325         (macro::append_str, macro::append_unsigned, macro::append_int): New
3326         methods.
3327         New variable `output_low_mark_miny' to limit minimal value of y.
3328         (reset_output_registers): Use it.
3329         (output_request): Removed.
3330         (get_output_registers): New function.
3331         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
3332         (*_node): Added `force_tprint()' if necessary.
3333         (special_node): New elements `tf' and `get_tfont()'.
3334         (suppress_node): New class.
3335         * src/roff/troff/node.cc:
3336         New global variables `image_no' and `suppress_start_page'.
3337         (real_output_file): New method `is_on()'.
3338         (troff_output_file): New method `start_special(tfont)'.
3339         (troff_output_file::really_print_line): Use `tprint' conditionally.
3340         (real_output_file::print_line): Updated.
3341         (real_output_file::on): Updated.
3342         (*_node): Added `force_tprint()'.
3343         (special_node::special_node): Initializer updated.
3344         (special_node::same, special_node::copy, special_node::tprint_start):
3345         Updated.
3346         (get_reg_int, get_reg_str): New functions.
3347         (suppress_node::*): New methods.
3348         New global variables last_position, last_image_filename;
3349         (min): New inline function.
3350         * src/roff/troff/reg.h, src/roff/troff/request.h,
3351         src/roff/troff/troff.h: Updated.
3353 2001-01-13  Werner LEMBERG  <wl@gnu.org>
3355         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
3356         documentation of `asciify' request.
3358 2001-01-12  Werner LEMBERG  <wl@gnu.org>
3360         * src/roff/troff/input.cc: Move definition of special characters
3361         like `ESCAPE_TILDE' to ...
3362         * src/roff/troff/input.h: New file.
3363         * src/roff/troff/Makefile.sub (HDRS): Add it.
3365         Extending the .asciify request to `unformat' space characters also.
3367         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
3368         to count input space characters.
3369         Update constructors to take care of it.
3370         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
3371         `ESCAPE_SPACE' instead of normal space.
3372         (word_space_node::asciify): New method.
3373         (unbreakable_space_node::asciify): New method.
3374         (word_space_node::merge_space): New method.
3375         * src/roff/troff/env.cc (environment::space_newline,
3376         environment::space): Add code to initialize `num_spaces' (using the
3377         constructor of `word_space_node').
3378         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3379         Document it.
3381 2001-01-09  Werner LEMBERG  <wl@gnu.org>
3383         * man/groff_char.man: Use table header traps only conditionally.
3385 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
3387         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
3389 2001-01-08  Werner LEMBERG  <wl@gnu.org>
3391         Introducing the `box' and `boxa' requests which are similar to
3392         `di' resp. `da' but omitting a partially filled line (which is
3393         restored after ending the diversion).
3395         * src/roff/troff/div.h (diversion): Add elements to save partially
3396         filled line.
3397         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
3398         partially filled line.
3399         (divert, divert_append): Updated.
3400         (box, box_append): New functions.
3401         (init_div_requests): Use them.
3402         * src/roff/troff/env.h (environment): do_divert() is now a friend.
3403         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3405         * doc/groff.texinfo: Fix documentation of `lf' request.
3407 2000-12-25  Werner LEMBERG  <wl@gnu.org>
3409         * src/roff/troff/troff.man, NEWS: Document `writem' request.
3411 2000-12-21  Werner LEMBERG  <wl@gnu.org>
3413         Ignore `ss' request if in compatibility mode.
3415         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
3416         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
3417         * src/roff/troff/env.cc (space_size): Use it.
3419         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
3420         `ss' request in nroff mode.
3422         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
3423         changes.
3425 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
3427         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
3429 2000-12-13  Werner LEMBERG  <wl@gnu.org>
3431         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
3432         * src/preproc/eqn/neqn.man: Small fixes and additions.
3434 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
3436         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
3437         Fixing typo.
3439         * src/preproc/eqn/neqn.man: New file.
3441         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
3442         negative' warning.
3444         * tmac/e.tmac: Add `T&' macro.
3445         Fix `indent cannot be negative' warning.
3446         * tmac/s.tmac: Fix `indent cannot be negative' warning.
3448 2000-12-07  Werner LEMBERG  <wl@gnu.org>
3450         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
3452 2000-12-06  Werner LEMBERG  <wl@gnu.org>
3454         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
3455         `alloca' symbol .
3457         * MORE.STUFF: Added info about deroff for djgpp.
3459         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
3460         documentation of -rcR switch.
3462 2000-12-03  Werner LEMBERG  <wl@gnu.org>
3464         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
3465         if -rcR=1 (which is now the default in nroff mode), a single, very
3466         long page is created instead of multiple pages: All `ne' and `wh'
3467         requests are put into conditionals; a new macro `an-end' is added to
3468         be called with `em'.
3470         Some other minor cleanups.
3472         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
3474 2000-12-02  Werner LEMBERG  <wl@gnu.org>
3476         Fixing a bug which prevented hyphenation in words followed
3477         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
3479         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
3480         Adding possibly_break_line().
3481         * src/roff/troff/env.h (environment): Make possibly_break_line()
3482         public.
3484         Make `\~' usable in .tr request.
3486         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
3487         (token): Add stretchable_space().
3488         * src/roff/troff/input.cc (token::next, token::delimiter,
3489         token::description, process_input_stack, do_translate,
3490         add_to_node_list, token::process): Use it.
3491         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
3492         for adjusting the space.
3493         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
3494         for stretchable space.
3495         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
3496         (make_node): Add code for stretchable space.
3497         * src/roff/troff/env.cc (environment::add_char): Use it.
3498         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
3499         (get_copy, token::next, transparent_translate, asciify): Use it.
3501         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
3502         doc/groff.texinfo: Updated.
3503         * man/groff.man: Small reorderings.
3505 2000-11-23  Werner LEMBERG  <wl@gnu.org>
3507         * NEWS: Fixes.
3508         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
3509         option.
3510         * src/roff/troff/input.cc (main): Add `config_macro_path' and
3511         `safer_macro_path' to -M option.
3512         * src/roff/troff/troff.man: Fixes.
3514 2000-11-22  Werner LEMBERG  <wl@gnu.org>
3516         Use safer path (except for config files) if -U isn't specified.  Add
3517         a special macro path (without home and current directory) for config
3518         files.  Add home directory to unsafe path for consistency.  Don't
3519         include the home directory in the font path.
3521         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
3522         `macro_path'.
3523         * src/include/macropath.h: Add `config_macrp_path'.
3524         * src/libs/libgroff/fontfile.cc: Fix font path.
3525         * src/roff/troff/input.cc (process_startup_file): Use
3526         `config_macro_path'.
3527         (main): Select unsafe path if -U is given.
3529         * src/preproc/eqn/main.cc (main): Fixing search path for
3530         configuration file.
3531         * src/preproc/eqn/eqn.man: Updated.
3533         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
3534         Updated.
3536         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
3537         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
3538         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
3539         src/devices/grotty/grotty.man: Updated.
3541         * Makefile.in: Fix comments.
3543 2000-11-17  Werner LEMBERG  <wl@gnu.org>
3545         * tmac/safer.tmac: Empty file added (again) for compatibility
3546         reasons.
3547         * tmac/Makefile.sub: Updated.
3549 2000-11-16  Werner LEMBERG  <wl@gnu.org>
3551         * src/devices/grodvi/dvi.cc (main),
3552         src/devices/grohtml2/post-html.cc (main),
3553         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3554         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3555         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
3556         (main), src/preproc/html2/pre-html.cc (main),
3557         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
3558         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
3559         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
3560         (main), src/utils/hpftodit/hpftodit.cc (main),
3561         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
3562         (main), src/utils/lookbib/lookbib.cc (main),
3563         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
3564         (main): Use stdout for -v.
3565         * src/roff/groff/groff.cc (run_commands),
3566         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
3567         to make direct printing to stdout possible.
3568         * src/roff/groff/pipeline.h: Updated.
3570         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
3571         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
3572         * src/utils/afmtodit/afmtodit.man: Updated.
3574         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
3575         (version): New function.
3576         (usage): Updated.
3577         * src/utils/addftinfo/addftinfo.man: Updated.
3579         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
3580         Fixing copyright dates.
3582         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
3583         replacing it.
3585         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
3586         version_string.
3588         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
3590 2000-11-15  Werner LEMBERG  <wl@gnu.org>
3592         In all programs, make -v return immediately with exit status 0 to
3593         be compliant with the GNU standard.
3595         * src/devices/grodvi/dvi.cc (main),
3596         src/devices/grohtml2/post-html.cc (main),
3597         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3598         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3599         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
3600         (main), src/preproc/html2/pre-html.cc (main),
3601         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
3602         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
3603         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
3604         (main): Implement it.
3605         * NEWS: Updated.
3607         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
3608         and postprocessors to the -v option.
3610         * src/roff/grog/grog.pl: Implement -v.
3611         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
3612         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3614         * src/roff/nroff/nroff.sh: Implement -v.
3615         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
3616         * src/roff/nroff/nroff.man: Updated.
3617         
3618         * src/preproc/eqn/main.cc (main): Fix comment typo.
3620         * MORE.STUFF: Added info about djgpp port of grap.
3622 2000-11-14  Werner LEMBERG  <wl@gnu.org>
3624         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
3625         mode (or rather, implemented non-compatibility mode).
3626         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3628         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
3629         replacing it -- we don't find gxditview otherwise.
3630         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
3632         * src/preproc/pic/depend: Removed.  Unnecessary.
3634         Implemented dummy keyword `solid' in pic for compatibility with
3635         AT&T pic.
3637         * lex.cc (lookup_keyword): Added `solid'.
3638         * pic.y: Added SOLID with dummy rule.
3639         * pic.cc, pic_tab.h: Regenerated.
3640         * doc/pic.ms: Updated.
3642 2000-11-13  Werner LEMBERG  <wl@gnu.org>
3644         For security reasons, don't use the current directory but the home
3645         directory while searching and scanning troffrc and troffrc-end.
3646         Similarly, replace the current directory with the home directory
3647         in the font path.
3649         * Makefile.in (fontpath, tmacpath): Remove current directory.
3651         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
3652         two parameters `add_home' and `add_current'.
3653         (search_path::~search_path, search_path::command_line_dir,
3654         search_path::open_file): Remove tests for `dirs' being zero.
3655         * src/include/searchpath.h: Adjust.
3656         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
3657         `safer_macro_path'.
3658         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
3660         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
3661         * src/roff/troff/input.cc: Use `mac_path', initialized with
3662         `macro_path'.
3663         (process_startup_file): Set `mac_path' to `safer_macro_path'.
3664         * src/roff/troff/env.cc: Use `mac_path'.
3666         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
3668         * NEWS, man/roff.man, src/roff/troff/troff.man,
3669         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
3670         Updated.
3672 2000-11-12  Werner LEMBERG  <wl@gnu.org>
3674         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
3676         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
3677         * configure.in: Fix typo in comment.
3678         * configure: Regenerated.
3680         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
3681         copyright dates.
3683 2000-11-08  Werner LEMBERG  <wl@gnu.org>
3685         Add system tmac directory (/usr/local/lib/groff/site-tmac).
3687         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
3688         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
3689         $(systemtmacdir).
3690         Use @libdir@.
3691         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
3692         * tmac/Makefile.sub (install_data): Create
3693         $(systemtmacdir) and $(localtmacdir).
3694         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
3695         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
3696         NEWS, doc/groff.texinfo: Updated and minor fixes.
3698         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
3699         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
3700         $(systemtmacdir) since the wrapper files are platform-dependent.
3702 2000-11-01  Werner LEMBERG  <wl@gnu.org>
3704         * doc/groff.texinfo: Fix typo.
3706 2000-10-26  Werner LEMBERG  <wl@gnu.org>
3708         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
3709           tmac.doc.old -> doc-old.tmac
3710           tmac.an.old  -> an-old.tmac
3712         * tmac/tmac.*: Moved to ...
3713         * tmac/*.tmac: this.
3714         * tmac/man.local: Fix comment.
3715         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
3716         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
3717         Added some `FILES' sections.  More use of @...@ directives.  Other
3718         minor updates.
3719         * arch/djgpp/README, font/devutf8/NOTES: Updated.
3720         * doc/homepage.ms, doc/groff.texinfo: Updated.
3721         * man/groff.man, man/roff.man: Updated.
3722         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
3723         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
3724         src/devices/grotty/grotty.man: Updated.
3725         * src/preproc/pic/pic.man: Updated.
3726         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
3727         instead of -mdoc.old.
3728         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
3729         * src/roff/nroff/nroff.man: Updated.
3730         * NEWS: Updated.
3732         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
3734         * tmac/mm.diff: Removed -- it has no use now since the mm package
3735         is part of groff.
3737         * tmac/*: Removed trailing spaces.
3739         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
3740         the tmac subdirectory also).
3742         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
3743         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
3744         stuff since it is no longer needed.
3746         * README, PROBLEMS: Updated.
3748 2000-10-25  Werner LEMBERG  <wl@gnu.org>
3750         Invert current behaviour: Search first FOOBAR.tmac, then
3751         tmac.FOOBAR.
3753         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
3754         (open_mac_file, macro_source): Implement it.
3755         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
3756         doc/groff.texinfo, NEWS: Document it.
3758         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
3759         Small documentation improvements.
3761         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
3762         subdirectory also).
3764         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
3766 2000-10-24  Werner LEMBERG  <wl@gnu.org>
3768         Add local tmac directory (groff/site-tmac).
3770         * Makefile.in: Add $(localtmacdir).
3771         (uninstall_dirs): Add $(localtmacdir).
3772         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
3773         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
3774         in $(localtmacdir).  Create $(localtmacdir).
3775         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
3776         Updated and minor fixes.
3778         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
3780         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
3782 2000-10-23  Werner LEMBERG  <wl@gnu.org>
3784         Move hyphen.us to tmac directory.
3786         * src/roff/troff/hyphen.us: Removed.
3787         * src/tmac/hyphen.us: Added.
3788         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
3790         Change installation structure for data files from .../groff/... to
3791         .../groff/<version><revision>/... to be conform with other GNU
3792         programs.
3794         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
3795         doc/Makefile: Implement it.
3796         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
3797         * configure: Updated.
3798         * arch/djgpp/README, font/devutf8/NOTES: Use it.
3799         * NEWS: Document it.
3800         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
3801         @MACRODIR@ instead of hard-coded directories.
3803 2000-10-22  Werner LEMBERG  <wl@gnu.org>
3805         Implement $GROFF_BIN_PATH environment variable (which defaults to
3806         $bindir) used for child programs of groff and similar wrappers.
3808         * gendefs.sh: Improve documentation.
3809         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
3810         src/preproc/eqn/Makefile.sub (neqn),
3811         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
3812         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
3813         $GROFF_BIN_PATH.
3814         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
3815         $GROFF_PATH__ (the latter for communication with troff).
3816         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
3817         set.
3818         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
3819         doc/groff.texinfo: Document it.
3821         * doc/groff.texinfo: Improve documentation of troff's -a option.
3823 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
3825         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
3826         non-intrusive eol marker.
3827         (troff_output_file::determine_line_limits): New function.
3828         (troff_output_file::draw): Use it.
3829         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
3830         output_pending_lines() instead of output_line().
3831         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
3832         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
3833         createImage): Small fixes.
3834         
3835 2000-10-14  Werner LEMBERG  <wl@gnu.org>
3837         Replace tmac.safer with a real secure solution.
3839         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
3840         system_request, pipe_output): Disable requests if in safer mode.
3841         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
3842         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
3843         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
3844         doc/groff.texinfo, src/roff/groff/groff.man,
3845         src/roff/troff/troff.man, arch/djgpp/README: Updated.
3847         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
3848         (resource_manager::output_prolog): Replace setenv() with putenv().
3850 2000-10-09  Werner LEMBERG  <wl@gnu.org>
3852         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
3853         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
3854         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
3855         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
3856         compilation errors with some compilers.  It seems that this code
3857         is no longer necessary -- if yes, it is easy to add some #ifdef's
3858         for that particular old-fashioned compiler.
3860         * MORE.STUFF: Added info about Meta-tbl.
3862         * doc/groff.texinfo: Added more info about `.if "..."..."'.
3864 2000-10-07  Werner LEMBERG  <wl@gnu.org>
3866         Adding a new escape sequence \B'...': If the string between
3867         the delimiters is a valid numeric expression, return the character
3868         `1', and `0' otherwise.  This is an analogon to \A.
3870         * src/roff/troff/input.cc (do_expr_test): Implement it.
3871         (token::next): Use it.
3872         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
3874         * tmac/tmac.trace: Made independent from escape character.
3876 2000-10-06  Werner LEMBERG  <wl@gnu.org>
3878         Adding a new request .dei: define indirect.  The first and second
3879         parameter of .dei are taken from string registers instead directly;
3880         this very special request is needed to make tmac.trace independent
3881         from the escape character (which might even be disabled).
3883         * src/roff/troff/input.cc (do_define_macro): Implement it.
3884         (define_macro_indirect): New function.
3885         (init_input_requests): Use it.
3887         Adding two requests .ecs and .ecr: Save and restore the escape
3888         character.  These two requests are needed to make tmac.trace
3889         independent from the escape character (which might even be
3890         disabled).
3892         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
3893         Implement it.
3894         (init_input_requests): Use it.
3896         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3898 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
3900         Adding a new option -P and new environment variable GROPS_PROLOGUE
3901         to grops, selecting a different prologue file (minor modifications
3902         by WL).
3904         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
3905         src/devices/grops/ps.cc (main): Implement it.
3906         * src/devices/grops/grops.man, NEWS: Document it.
3908 2000-09-22  Werner LEMBERG  <wl@gnu.org>
3910         * INSTALL: Add info about selecting paper format.
3912 2000-09-21  Werner LEMBERG  <wl@gnu.org>
3914         * src/roff/troff/input.cc (main): Fixing compiler warning.
3915         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
3916         strings.h from the former to the latter.
3917         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
3918         stuff from the former to the latter.
3920 2000-09-11  Werner LEMBERG  <wl@gnu.org>
3922         Implementing two new requests .tm1 and .tmc: The former is similar
3923         to .tm but can output leading spaces; its syntax is similar to
3924         defining a string, i.e., a `"' can be used to mark the beginning of
3925         the string to be written to stderr: `.tm1 " test'.  The latter is
3926         similar to .tm1 but doesn't write out a final newline character.
3928         * src/roff/troff/input.cc (terminal1, terminal_continue,
3929         do_terminal): New functions.
3930         (init_input_requests): Use them.
3931         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3933 2000-09-09  Werner LEMBERG  <wl@gnu.org>
3935         * tmac/groff_mdoc.samples.man: Small fixes.
3937 2000-09-08  Werner LEMBERG  <wl@gnu.org>
3939         * tmac/groff_mdoc.man: Fixing typo.
3941 2000-09-02  Werner LEMBERG  <wl@gnu.org>
3943         Implementing a .nop request which does nothing.
3945         * src/roff/troff/input.cc (nop_request): New function.
3946         (init_input_requests): Use it.
3947         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
3949 2000-09-01  Werner LEMBERG  <wl@gnu.org>
3951         * doc/groff.texinfo: Added some comments.
3953 2000-08-30  Werner LEMBERG  <wl@gnu.org>
3955         * src/roff/troff/TODO: Updated.
3957 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3959         * doc/groff.texinfo: Fix comment how to compile the DVI file.
3961 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3963         * font/devps/generate/Makefile (SHELL): Define explicitly to
3964         "/bin/sh", for non-Unix platforms.
3965         (extraclean): Use a more portable "" quoting instead of a
3966         backslash (which doesn't work on DOS/Windows).
3967         
3968         * font/devlj4/generate/Makefile (extraclean): Ditto.
3970         * font/devdvi/generate/Makefile (extraclean): Ditto.
3972 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3974         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
3975         src/roff/troff/troff.man: Document Eli's latest changes.
3977 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
3979         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
3980         macro file names of the form NAME.tmac as well as tmac.NAME.
3982 2000-08-25  Werner LEMBERG  <wl@gnu.org>
3984         * src/include/posix.h: Remove definition of FILENAME_MAX.
3986         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
3987         `sys_fatal' and `stop' function().
3989         * test-groff: Updated.
3991 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
3993         Added the new troff command .output <arg> to suppress output (while
3994         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
3995         registers (for passing the output dimensions to the output device).
3997         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
3998         parameter.
3999         * src/roff/troff/node.h, src/roff/troff/node.cc
4000         (troff_output_file::really_print_line,
4001         ascii_output_file::really_print_line,
4002         supress_output_file::really_print_line): Use `width' parameter.
4003         (troff_output_file::really_on, troff_output_file::really_off,
4004         output_file::on, output_file::off, real_output_file::on,
4005         real_output_file::off, real_output_file::really_on,
4006         real_output_file::really_off): New functions.
4007         (real_output_file:public output_file): New variable `output_on'.
4008         (real_output_file::begin_page, real_output_file::copy_file,
4009         real_output_file::transparent_char, real_output_file::print_line):
4010         Use it.
4011         (real_output_file::print_line): Use check_output_limits.
4012         * src/roff/troff/reg.h, src/roff/troff/request.h,
4013         src/roff/troff/input.cc (assign_registers): New function to remove
4014         two `goto's.
4015         (do_ps_file): Use it.
4016         (check_output_limits, reset_output_registers, output_request,
4017         init_output_requests): New functions.
4018         (init_input_requests): Updated.
4020         Added new grohtml2 device and html2 preprocessor (coding
4021         not yet finished) which will eventually replace grohtml.
4023         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4024         Updated.
4025         * src/include/htmlindicate.h, src/include/htmlindicate
4026         (html_begin_suppress, html_end_suppress): New functions.
4027         * src/preproc/tbl/main.cc: Use it.
4028         * src/roff/groff/groff.cc: Add support for html2 device (which will
4029         automatically invoke the html2 preprocessor).
4030         * src/roff/troff/input.cc (is_html2): New variable.
4031         * src/roff/troff/troff.h, src/roff/troff/env.h,
4032         src/roff/troff/env.cc (environment::add_html_tag): New function
4033         (uses `is_html2').
4034         (environment::do_break): Use it.
4035         * font/devhtml2/*: New files.
4036         * src/devices/grohtml2: New device.
4037         * src/preproc/html2: New preprocessor.
4038         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4040 2000-08-23  Werner LEMBERG  <wl@gnu.org>
4042         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4044 2000-08-22  Werner LEMBERG  <wl@gnu.org>
4046         * src/include/lib.h: Provide a fix for IRIX to not include
4047         groff-getopt.h.
4049 2000-08-18  Werner LEMBERG  <wl@gnu.org>
4051         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4052         since some non-GNU sed programs can't handle null regexps.
4053         * configure, src/preproc/eqn/Makefile.sub,
4054         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4056         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4057         bug (string.h and strings.h are both needed according to latest
4058         POSIX standard).
4060         * MORE.STUFF: Added info about unroff and troffcvt.
4062 2000-08-08  Werner LEMBERG  <wl@gnu.org>
4064         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
4065         used before -ms.
4067         * tmac/tmac.man.old: Remove unused number register.
4069         * tmac.doc: Minor documentation fix.
4071 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4073         * src/roff/groff/pipeline.c (is_system_shell):
4074         Fix typo: "monocased_shell" no longer exists.
4076 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4078         Remove FILENAME_MAX limits.
4080         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
4081         that the argument length is less than FILENAME_MAX.
4082         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
4083         Use struct hack to allocate and free file name.
4084         (struct xtmpfile_list): fname is now part of the structure,
4085         not a pointer to another string.
4087 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
4089         * src/include/posix.h: Add a default value for FILENAME_MAX.
4091 2000-08-06  Paul Eggert  <eggert@twinsun.com>
4093         Add support for new BSD-style man pages (with ".Dd" instead of
4094         ".TH"), so that "groff -man" understands both styles, even
4095         when running "groff -man" on a host whose system man page
4096         macros don't support ".Dd".
4098         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
4099         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
4100         in case the system man macros don't define Dd or TH.
4102         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
4103         * tmac/tmac.an: New one-line file.
4104         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
4106 2000-08-06  Werner LEMBERG  <wl@gnu.org>
4108         * src/roff/troff/troff.man: Fixing typos.
4110 Version 1.16.1 released
4111 =======================
4113 2000-07-31  Werner LEMBERG  <wl@gnu.org>
4115         Preparing release 1.16.1.
4117         * REVISION: Revision number set to 1.
4118         * MORE.STUFF: Added info about port to DOS.
4119         * NEWS, win32-diffs: Updated.
4121         * src/include/nonposix.h: Remove first line -- this file is used
4122         in C also.
4124         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
4125         link to it.
4127 2000-07-30  Werner LEMBERG  <wl@gnu.org>
4129         * doc/texinfo.tex: Update to latest version.
4131 2000-06-28  Paul Eggert  <eggert@twinsun.com>
4133         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
4134         commands that fail.  Don't assume that "export a=b" is valid shell
4135         syntax.  This is needed for Solaris 2.5.1.
4137         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
4138         comment about missing Solaris headers.
4140         * PROBLEMS: Add section about problems with Sun Make and VPATH.
4142 2000-06-25  Werner LEMBERG  <wl@gnu.org>
4144         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
4145         SET_BINARY().
4147         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
4149         * win32-diffs: Updated.
4150         * README.WIN32: Added CRs to make all Windows editors happy.
4152         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
4153         src/roff/groff/pipeline.c).
4155 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
4157         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
4158         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
4160 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
4162         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
4163         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
4164         are binary files.
4165         (main): Support non-Posix systems with several different styles of
4166         slash characters in file names.
4168         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
4169         (main) [SET_BINARY]: Switch stdin into binary mode.
4171         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
4172         (main): Support file names with several possible slash-type
4173         characters, as given by DIR_SEPS[] in nonposix.h.
4174         (main) [__MSDOS__]: If renaming the temporary index file fails
4175         because it has more than one dot in its trunk, replace the dot
4176         with an underscore and try again.
4177         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
4178         Newline.
4179         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
4181         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
4182         (File::File): Open the input file in binary mode.  Strip CR
4183         characters from each CR-LF pair.
4184         (xbasename): Support file names with several possible slash-type
4185         characters, as given by DIR_SEPS[] in nonposix.h.
4187         * src/include/Makefile.sub (HDRS): Add nonposix.h.
4189         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
4190         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
4191         [!_POSIX_VERSION]: Define for traditional Unix systems.
4192         (real_output_file::real_output_file): Remove the MSVC-specific
4193         call to popen, use instead POPEN_WT, appropriately defined on
4194         nonposix.h.  #include nonposix.h.
4195         (real_output_file::~real_output_file): Remove the MSVC-specific
4196         call to pclose, a suitable macro is now defined on nonposix.h.
4197         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
4198         and WEXITSTATUS instead of assuming traditional Unix
4199         interpretation of the status returned by pclose.
4201         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
4202         call to popen, use POPEN_RT instead (appropriately defined on
4203         nonposix.h).  #include nonposix.h.
4204         (ps_bbox_request): Open the PostScript file in binary mode.
4205         Close the file after processing it.
4206         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
4207         nonposix.h.
4209         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
4210         A version of run_pipeline that doesn't use `fork'.
4211         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
4212         (system_shell_name, system_shell_dash_c)
4213         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
4214         the ugliness of testing DOS/Windows file names for equality, and
4215         support both stock shells and ports of Unix shells.
4217         * src/roff/groff/groff.cc: #include nonposix.h.
4218         (BSHELL): Definition moved to nonposix.h.
4219         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
4220         instead of a literal "-c".
4221         (xbasename): Support file names with several possible slash-type
4222         characters, as given by DIR_SEPS[] in nonposix.h.
4223         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
4224         of literal strings.
4226         * src/preproc/soelim/soelim.cc: #include nonposix.h.
4227         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
4229         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
4230         pic_tab.h.
4232         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
4234         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
4235         eqn_tab.h.
4237         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
4239         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
4240         P_tmpdir is defined, use it instead of the literal "/tmp".
4241         (remove_tmp_files, add_tmp_file): New functions.
4242         (xtmpfile): Record temporary files and register an atexit function
4243         to delete them explicitly, instead of relying on the OS to do
4244         that, which doesn't work on non-Unix systems.
4246         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
4247         (search_path::search_path): Use PATH_SEP instead of a literal
4248         colon.
4249         (search_path::command_line_dir): Ditto.
4250         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
4251         to support non-Posix systems.
4253         * src/libs/libbib/search.cc: #include nonposix.h.
4254         (search_list::add_file): Open the file in binary mode.
4256         * src/libs/libbib/linear.cc: #include nonposix.h.
4257         (file_buffer::load): Remove \r characters preceding \n from the
4258         loaded buffer.
4260         * src/libs/libbib/index.cc: #include nonposix.h.
4261         (make_index_search_item): Open index_filename in O_BINARY mode.
4262         (index_search_item_iterator::get_tag): Ditto.  Remove \r
4263         characters before \n characters.
4264         (index_search_item::check_files): Open files in binary mode.
4265         (index_search_item::munge_filename): Support DOS-style file names
4266         with backslashes and drive letters, use IS_ABSOLUTE.
4268         * src/devices/grops/ps.cc: #include nonposix.h.
4269         (main) [SET_BINARY]: Switch stdout to binary mode.
4271         * src/devices/grolj4/lj4.cc: #include nonposix.h.
4272         (main) [SET_BINARY]: Switch stdout to binary mode.
4274         * src/devices/grolbp/lbp.cc: #include nonposix.h
4275         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
4277         * src/devices/grodvi/dvi.cc: #include nonposix.h.
4278         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
4279         nonposix.h).
4280         (main) [SET_BINARY]: Switch stdout to binary mode.
4281         [_MSC_VER]: Remove an explicit call to _setmode.
4283         * src/include/nonposix.h: New file.
4285         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
4286         operation when building with DJGPP.
4287         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
4288         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
4289         ENVSETUP.
4291         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
4292         MS-DOS.
4293         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
4294         etc. can include a semi-colon on DOS/Windows.
4295         (depend.temp): Use depend1.temp instead of depend.temp1, to
4296         prevent files from overerwiting each other on 8+3 filesystems.
4298         * gendef.sh (t): Change definition to work with DOS/Windows.
4300         doc/groff.texinfo: Apart of some typo corrections, I also changed
4301         some index entris, to make them more non-ambiguous, and also put
4302         @ignore around some parts that are not yet written, to allow the
4303         Info output be readable.
4305 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
4307         Replaced specific checks for function declarations with a generic
4308         routine taken from GNU bfd.
4310         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
4311         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
4312         * configure.in: Use it.
4313         * src/devices/grolbp/lbp.cc, src/include/lib.h,
4314         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
4315         src/roff/groff/groff.cc: Use it.
4316         * Makefile.in, configure: Updated.
4318 2000-06-07  Paco Andres Verdu  <pandres@dragonet.es>
4320         * src/devides/grolbp/lbp.h: Removed unused variables.
4322 2000-05-31  Keith Thompson  <kst@sdsc.edu>
4324         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
4325         strncasecmp().
4327 2000-05-31  Werner LEMBERG  <wl@gnu.org>
4329         * aclocal.m4 (GROFF_SRAND): New function to test the return value
4330         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
4331         * configure.in: Use it.
4332         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
4333         * configure, Makefile.in: Updated.
4335         * configure.in: Add test for strncasecmp().
4336         * src/include/lib.h: Use it.
4338 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
4340         * src/preproc/grn/Makefile.sub: Add MLIB.
4342 2000-05-29  Nix  <nix@esperi.demon.co.uk>
4344         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
4346 2000-05-29  Werner LEMBERG  <wl@gnu.org>
4348         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
4350         * PROBLEMS: Small update.
4352         * src/devices/grolbp/lbp.cc: Various small fixes.
4354 2000-05-28  Keith Thompson  <kst@sdsc.edu>
4356         * src/roff/nroff/nroff.sh: Fix main loop syntax.
4358         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
4360 2000-05-25  Werner LEMBERG  <wl@gnu.org>
4362         * man/roff.man: Removed unused macro.
4364 2000-05-24  Werner LEMBERG  <wl@gnu.org>
4366         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
4367         This is needed e.g. if you do
4368         `make distclean; ./configure; make dist'.
4370 Version 1.16 released
4371 =====================
4373 2000-05-23  Werner LEMBERG  <wl@gnu.org>
4375         Adding font CWI (constant width italic) to devdvi.
4377         * font/devdvi/CWI: New file.
4378         * font/devdvi/generate/Makefile: Add generating rule.
4379         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
4380         tmac/tmac.dvi: Use it.
4381         * NEWS: Announce it.
4383         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
4384         * font/devlj4/generate/Makefile: Cosmetic changes only.
4386         * man/groff.man: Removed most of the redundant description of
4387         special characters (which is in groff_char.man).  Added font
4388         translation CB->CR for devdvi.  Other minor fixes.
4390         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
4391         (registered) symbols.
4393 2000-05-22  Werner LEMBERG  <wl@gnu.org>
4395         * doc/Makefile: Added rule for creating info files.
4397         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
4398         AMS font metrics.
4399         * font/devdvi/generate/Makefile: Fixed dependencies.
4401         * font/devps/*: Regenerated.  Heavy changes for Bookman and
4402         NewCentury Schoolbook!
4403         * font/devps/generate/afmname: Will now run with GNU awk.
4404         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
4405         * font/devps/generate/Makefile: Cosmetic changes only.
4407 2000-05-21  Werner LEMBERG  <wl@gnu.org>
4409         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
4410         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
4411         `.SS' now produces a heading with a smaller size than `.SH'. 
4412         Completely formatted.
4413         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
4415         * man/groff.man: Improved table appearance.  Use of `eo' request
4416         to reduce number of doubled backslashes in macro definitions.
4417         Replacing `\e' with `\(rs'.  Other minor fixes.
4419         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
4420         to have correct line number.
4422         * INSTALL: Small improvement.
4424 2000-05-20  Bernd Warken  <bwarken@mayn.de>
4426         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
4427         WL).
4429 2000-05-19  Bernd Warken  <bwarken@mayn.de>
4431         * man/groff.man: Complete update (with a lot of corrections by WL).
4433 2000-05-18  Werner LEMBERG  <wl@gnu.org>
4435         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
4437         * font/*/*: Implement it.
4438         * man/groff_char.man, NEWS: Document it.
4440         * src/include/unix.h: Removed.  It isn't used.
4442         * doc/groff.texinfo: Slight improvements.
4444 2000-05-17  Werner LEMBERG  <wl@gnu.org>
4446         * README, win32-diffs: Small fixes and improvements.
4448 2000-05-16  Werner LEMBERG  <wl@gnu.org>
4450         * FDL: New file (the Free Documentation License version 1.1).
4452         * doc/groff.texinfo: Added many start-up values for gtroff.
4453         Some structural improvements of the source code.
4455 2000-05-15  Werner LEMBERG  <wl@gnu.org>
4457         * src/roff/troff/input.cc: Added small comment about troffrc-end.
4458         * src/roff/troff/troff.man: Added info about troffrc-end.
4460 2000-05-14  Werner LEMBERG  <wl@gnu.org>
4462         * Makefile.in (EXTRADIRS): Fix typos.
4463         (dist): Handle deletion of old .tar.gz file correctly.
4464         (DISTDIRS): Include all tty output devices.
4466         * doc/groff.texinfo: Adding more cross references; countless other
4467         fixes.
4469 2000-05-13  Werner LEMBERG  <wl@gnu.org>
4471         * MORE.STUFF: Added Robert Marks's utilities.
4473 2000-05-12  Werner LEMBERG  <wl@gnu.org>
4475         Added win32 port contributed by Blake McBride
4476         <blake@florida-software.com>.
4478         * README.WIN32, win32-diffs: New files.
4479         * NEWS: Updated.
4481         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
4482         (tmove, tmove2): Added parentheses to avoid compiler warnings.
4483         (change): Removed unused variables.
4485         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
4486         (savebounds): Changed return value from `int' to `void'.
4487         * src/preproc/grn/hdb.cc: Ditto.
4489         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
4490         final backslash in comment to avoid compiler warning.
4492         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
4494         * doc/groff.texinfo: More fixes.
4496 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
4498         * tmac/tmac.doc: Documentation fix.
4500 2000-05-11  Werner LEMBERG  <wl@gnu.org>
4502         * doc/groff.texinfo: Reading the source code shows up a lot of
4503         omissions and incorrect data...  More conversion to @Deffn macros.
4505 2000-05-10  Werner LEMBERG  <wl@gnu.org>
4507         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
4508         dependency.
4510         * src/roff/troff/request.h: Removing unused `no_break_flag'.
4512 2000-05-09  Werner LEMBERG  <wl@gnu.org>
4514         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
4515         improvements.
4517         * doc/groff.texinfo: Extended history section.  More conversion to
4518         @Deffn macros.  More .tr documentation.
4520 2000-05-07  Werner LEMBERG  <wl@gnu.org>
4522         * doc/groff.texinfo: Completed tab section.  Added info about
4523         fields.
4525 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
4527         * PROBLEMS: Describe configure script fix for OS/390 Unix.
4529 2000-05-05  Werner LEMBERG  <wl@gnu.org>
4531         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
4532         LaTeX 2e).
4533         * NEWS: Document it.
4535         * man/troff.man: Minor optical improvements.
4537 2000-05-03  Werner LEMBERG  <wl@gnu.org>
4539         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
4541         * font/*/*: Implement it.
4542         * man/groff_char.man, NEWS: Document it.
4544 2000-05-02  Werner LEMBERG  <wl@gnu.org>
4546         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
4547         expansion.
4548         * NEWS: Document the three new man pages.
4550         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
4551         * configure: Updated.
4553         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
4555 2000-05-01  Werner LEMBERG  <wl@gnu.org>
4557         Added grap support to grog.
4559         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
4560         * src/roff/grog/grog.man: Document it.
4562         * doc/groff.texinfo, NEWS: Add info about grap support.
4564         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
4565         (with slight fixes by me).
4567         * tmac/groff_tmac.man: New file documenting tmac mechanism.
4568         * tmac/Makefile.sub: Add groff_tmac.man.
4569         * man/roff.man: New file giving overview of roff system.
4570         * man/troff.man: A short reference of troff.
4571         * man/Makefile.sub: Add roff.man and troff.man.
4573 2000-04-30  Werner LEMBERG  <wl@gnu.org>
4575         Added grap support to groff.
4577         * src/roff/groff/groff.cc: Implement it.
4578         * src/roff/groff/groff.man: Document it.
4580         * src/devices/grotty/grotty.man: Add cp1047 device.
4581         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
4582         Ditto.
4583         * src/roff/groff/groff.man: Ditto.
4584         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
4585         * doc/groff.texinfo: Ditto.
4587         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
4588         for cp1047.
4590 2000-04-29  Werner LEMBERG  <wl@gnu.org>
4592         * man/groff_char.man: Add `pc' glyph.
4593         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
4594         * tmac/tmac.tty: Add `pc' glyph.
4595         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
4596         we use cp1047 output device.
4598         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
4599         there are still hardcoded latin1->unicode values in utf8's font
4600         definition files.
4601         * configure: Updated.
4602         * NEWS: Minor clarification.  Updated.
4604         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
4605         Unix.
4607 2000-04-28  Werner LEMBERG  <wl@gnu.org>
4609         Adding EBCDIC code page 1047.
4611         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
4612         font/devcp1047/DESC.proto: New files.
4614         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
4615         either ascii/latin1 or cp1047.
4616         * Makefile.in: Use it.
4617         * configure: Updated.
4619         Replacing and/or adding `md' (mathdot) glyph with `pc'
4620         (periodcentered) in all text fonts.
4622         * font/*/*: Change it.
4624 2000-04-27  Werner LEMBERG  <wl@gnu.org>
4626         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
4628         * configure.in: Add check for strings.h.
4629         * src/include/driver.h: Use HAVE_STRINGS_H.
4630         * src/devices/grolbp/lpb.cc: Remove string.h.
4632         * src/include/groff-getopt.h: New file.  It will be used instead of
4633         getopt.h (to be included in lib.h) to avoid endless problems with
4634         picky C++ compilers.
4635         * src/include/lib.h: Use groff-getopt.h.
4636         * src/include/Makefile.sub: Updated.
4638         * configure: Updated.
4639         * Makefile.in: Updated.
4641         * NEWS: Mention EBCDIC support.
4643 2000-04-26  Werner LEMBERG  <wl@gnu.org>
4645         * TODO: Some additions.
4647 2000-04-25  Werner LEMBERG  <wl@gnu.org>
4649         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
4650         of mso request.
4652 2000-04-23  Werner LEMBERG  <wl@gnu.org>
4654         * src/roff/troff/troff.man: Minor fixes.
4656 2000-04-22  Werner LEMBERG  <wl@gnu.org>
4658         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
4659         `.T' string register and the incompatible definition of the `.T'
4660         number register (compared to Unix troff).
4662         * man/groff_char.man: Add some missing characters.
4663         * font/devutf8/NOTES: Update.
4665 2000-04-21  Werner LEMBERG  <wl@gnu.org>
4667         * src/include/htmlindicate.h, src/include/lib.h,
4668         src/include/posix.h: Fix copyright.
4670         * src/include/Makefile.sub: Update.
4672 2000-04-20  Werner LEMBERG  <wl@gnu.org>
4674         * src/roff/troff/input.cc (input_char_description): Removing
4675         superfluous space char.
4677         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
4679         * doc/groff.texinfo: Document EBCDIC.
4681 2000-04-19  Werner LEMBERG  <wl@gnu.org>
4683         Introducing `shc' as the glyph name for the soft hyphen character.
4685         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
4686         font/devlatin1/R.proto: Use it.
4688         * NEWS: Updated.
4690 2000-04-18  Werner LEMBERG  <wl@gnu.org>
4692         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
4693         dependency on ASCII order.
4695 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
4697         * src/libs/libgroff/illegal.c: Added EBCDIC table.
4698         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
4700         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
4701         to increase portability.
4703 2000-04-15  Werner LEMBERG  <wl@gnu.org>
4705         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
4706         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
4707         the generic `\n' if under OS/390 Unix.
4709         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
4711         * configure: Regenerated.
4713 2000-04-14  Werner LEMBERG  <wl@gnu.org>
4715         * doc/groff.texinfo: More conversions to @Deffn.
4717 2000-04-12  Werner LEMBERG  <wl@gnu.org>
4719         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
4720         with `:'.
4722         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
4724 2000-04-10  Werner LEMBERG  <wl@gnu.org>
4726         * doc/groff.texinfo: More conversions to @Deffn.
4728 2000-04-08  Werner LEMBERG  <wl@gnu.org>
4730         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
4731         Updated to latest version (glibc 2.1.3).
4733 2000-04-07  Werner LEMBERG  <wl@gnu.org>
4735         * doc/Makefile (clean): Include more index files.
4736         Add rule texinfo->dvi.
4738 2000-04-05  Werner LEMBERG  <wl@gnu.org>
4740         * doc/groff.texinfo: Added new index `op' for operators.  More
4741         info on end of sentence characters.  More use of @Deffn.
4743 2000-03-30  Werner LEMBERG  <wl@gnu.org>
4745         * */*.man: Adding a note that a whitespace can be inserted between
4746         a command line option and its parameter -- we are using GNU getopt.
4748         * src/roff/groff/groff.man: Add example of `-m mandoc'.
4750 2000-03-28  Werner LEMBERG  <wl@gnu.org>
4752         Correct anachronism of calling the man macro file with `-man'
4753         instead of `-m man' etc.
4755         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
4756         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
4757         load tmac.<package>.
4759         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
4761         * NEWS: Updated.
4763         * doc/groff.texinfo: Updated.
4765         * tmac/groff_man.man: Copyright added.
4767 2000-03-27  Werner LEMBERG  <wl@gnu.org>
4769         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
4770         typeset the request resp. escape name with a tt font -- due to a
4771         bug in texinfo.tex it is necessary to use the `-e' switch with
4772         texi2dvi.
4774         Improving info about usage of groff units.
4776         Other minor fixes.
4778 2000-03-20  Werner LEMBERG  <wl@gnu.org>
4780         * doc/groff.texinfo: Added section about man macro package
4781         (I've basically taken groff_man.man).  Introducing new indices `ma'
4782         for macros/strings and `gl' for glyph names.  Other minor fixes.
4784         * tmac/groff_man.man: Fixed some typos.
4786 2000-03-19  Werner LEMBERG  <wl@gnu.org>
4788         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
4789         Other minor fixes.
4791         * doc/texinfo.tex: New file.
4793 2000-03-18  Werner LEMBERG  <wl@gnu.org>
4795         * doc/groff.texinfo: Improved section on number registers.  Other
4796         minor updates.
4798 2000-03-16  Werner LEMBERG  <wl@gnu.org>
4800         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
4801         synopsis.
4803         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
4804         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
4805         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
4806         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
4808         * src/preproc/grn/grn.man: Better synopsis; added copyright.
4810         * src/roff/grog/grog.man: Updated copyright date.
4812 2000-03-14  Francisco Andres Verdu  <pandres@dragonet.es>
4814         * configure.in: Added test for strdup.
4816         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
4817         is available.
4819         Replaced dynamic allocation of arrays `[...]' with `new' operator.
4821         Other minor fixes.
4823 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
4825         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
4827 2000-03-11  Werner LEMBERG  <wl@gnu.org>
4829         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
4830         compilers silent.
4831         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
4832         * src/include/lib.h: Remove some spaces.
4834 2000-03-10  Werner LEMBERG  <wl@gnu.org>
4836         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
4837         initializers from arguments (some compilers don't like this).
4839 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
4841         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
4842         used by pic and eqn to tell grohtml where the graphic regions start
4843         and end.
4844         * src/libs/libgroff/Makefile.sub: Use it.
4845         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
4846         graphic_start() and graphic_end() from htmlindicate.cc.
4848 2000-03-09  Werner LEMBERG  <wl@gnu.org>
4850         * tmac/tmac.safer: Will now work correctly in compatibility mode.
4851         * tmac/groff_man.man: More fixes.
4853 2000-03-08  Werner LEMBERG  <wl@gnu.org>
4855         * doc/Makefile: Added texput.log to the `clean' target.
4856         * doc/groff.texinfo: Added info about delimiters for escapes.
4858 2000-03-08  Bernd Warken  <bwarken@mayn.de>
4860         * src/preproc/pic/pic.man: Add info on conversion of pic images to
4861         other graphic formats.
4863 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
4865         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
4866         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
4867         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
4868         files.
4870 2000-03-07  Werner LEMBERG  <wl@gnu.org>
4872         * doc/groff.texinfo: Spelling fixes.
4874 2000-03-06  Werner LEMBERG  <wl@gnu.org>
4876         * tmac/groff_man.man: Completely revised to cover everything in
4877         tmac.an.
4879         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
4880         Other minor fixings.
4881         * src/roff/troff/env.cc (environment_copy): Improve error message and
4882         fix itoa->i_to_a.
4883         * src/roff/troff/TODO: Updated.
4885         * doc/Makefile: Bug fixes -- this is still provisional, though...
4887         * tmac/eqnrc: Small fixes.
4889 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
4891         Adding a request `evc' to copy environments.
4893         * src/roff/troff/env.cc (environment::copy, environment_copy):
4894         Implement it.
4895         * src/roff/troff/env.h: Add prototype.
4897 2000-03-05  Francisco Andres Verdu  <pandres@dragonet.es>
4899         Adding strsep() -- Solaris 8 doesn't have it.
4901         * configure.in: Test it.
4902         * src/devices/grolbp/lbp.cc: Add code.
4904 2000-03-05  Werner LEMBERG  <wl@gnu.org>
4906         * src/roff/troff/div.cc (macro_diversion::output,
4907         top_level_diversion::output): Fixing an incompatibility with
4908         original troff: \x'0' updates the .a register also.  Thanks to
4909         <Andries.Brouwer@cwi.nl> for pointing this out.
4910         * doc/groff.texinfo: Document it.
4912         * Makefile.in: Create Makefile.dep if necessary before calling the
4913         submake process to avoid warning about nonexistent file.
4915         * NEWS, PROJECTS: Updated.
4917 2000-03-04  Werner LEMBERG  <wl@gnu.org>
4919         * tmac/troffrc: Add tmac.lbp.
4921 2000-03-03  Francisco Andres Verdu  <pandres@dragonet.es>
4923         * tmac/tmac.lbp: New file.
4924         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
4925         command.
4927 2000-03-03  Werner LEMBERG  <wl@gnu.org>
4929         * Makefile.in: Fixing $(subdir).
4931         * README, NEWS: Small fixes.
4933         * test-groff: Adding path to grolbp.
4935         * configure.in: The (new) file src/xditview/Imakefile.in will be
4936         also configured -- it is now possible to build gxditview in a
4937         directory different from $srcdir.
4939 2000-03-02  Blake McBride  <blake@florida-software.com>
4941         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
4943         * MORE.STUFF: Added website of bell labs and info about plot2dev.
4945 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
4947         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
4948         files.
4950 2000-02-29  Werner LEMBERG  <wl@gnu.org>
4952         Adding GNU getopt to the groff distribution.
4954         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
4955         New files.
4956         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
4957         * aclocal.a4: Remove GROFF_GETOPT function.
4958         * configure.in, Makefile.in, PROBLEMS: Update.
4959         * src/include/lib.h: Replace getopt tests with getopt.h.
4960         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
4962         * doc/groff.texinfo: Further checking/updating.  Adding more index
4963         entries.
4965         * man/groff_out.man: Fix nroff mode activation (for emacs).
4966         * man/groff_font.man: Add missing ligature.
4968 2000-02-28  Werner LEMBERG  <wl@gnu.org>
4970         * doc/groff.texinfo: Further checking/updating.  Adding more index
4971         entries.
4973         * src/devices/grolbp/grolbp.man: Added a comment line at the
4974         beginning of the file (similar to shell scripts) which indicates
4975         that `tbl' should be used as a preprocessor.
4977 2000-02-27  Blake McBride  <blake@florida-software.com>
4979         Adapting groff to MS Visual C++ 6.0 compiler (tested with
4980         Windows NT 4.0).  Uses _MSC_VER define where necessary.
4982         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
4983         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
4984         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
4985         src/include/lib.h, src/libs/libgroff/errarg.cc,
4986         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
4987         src/preproc/refer/label.y, src/preproc/refer/label.cc,
4988         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
4989         src/roff/troff/div.cc, src/roff/troff/env.cc,
4990         src/roff/troff/input.cc, src/roff/troff/node.cc,
4991         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
4992         if_to_a() to avoid name clashes.
4993         * src/include/posix.h: Don't use unistd.h.
4994         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
4995         clause for integrating non-Unix xtmpfile() code.
4996         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
4997         structure; use "rt" for popen() in pipe_source(); add getpid()
4998         dummy function.
4999         * src/roff/troff/node.cc: Use special versions of popen() in
5000         real_output_file() and pclose() in ~real_output_file().
5002 2000-02-27  Werner LEMBERG  <wl@gnu.org>
5004         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5005         LBP-8 series laser printers).  This code has been contributed by
5006         Francisco Andres Verdu <pandres@dragonet.es>.
5008         * src/devices/grolbp/*: The grolbp output device.
5009         * font/devlpb/*: The font description files.
5010         * Makefile.in: Add grolpb and devlbp subdirectories.
5012         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5013         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5014         typographic fixes.
5016         * doc/groff.texinfo: Further checking/updating.  Adding more index
5017         entries.
5019         * NEWS: Updated.
5021         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5023         * man/groff_font.man: Adding info about obsolete DESC keywords.
5024         * src/devices/grolj4/grolj4.man: Documenting additional DESC
5025         keywords.
5027 2000-02-26  Werner LEMBERG  <wl@gnu.org>
5029         * src/preproc/grn/grn.man: Added info about the gremlin file format
5030         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5032 2000-02-25  Werner LEMBERG  <wl@gnu.org>
5034         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5035         friends to be non-integer.
5037         * src/preproc/grn/grn.man: Document it.
5039         * doc/groff.texinfo: Further checking/updating.  Adding more index
5040         entries.
5042 2000-02-24  Werner LEMBERG  <wl@gnu.org>
5044         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5045         line thicknesses to be integer multiples of this value.
5047         * src/preproc/grn/grn.man: Commenting out the -s option -- the
5048         corresponding code doesn't work (yet).
5050         * doc/groff.texinfo: Further checking/updating.  Adding more index
5051         entries.
5053 2000-02-23  Werner LEMBERG  <wl@gnu.org>
5055         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5056         specify line thickness instead of base units.  The new default
5057         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5058         thick lines respectively.
5060         Removed unused variable `prevval'.
5062         * src/preproc/grn/grn.man: Updated.
5064 2000-02-22  Werner LEMBERG  <wl@gnu.org>
5066         * src/preproc/grn/main.cc: Slight formatting.
5068         * src/roff/groff/groff.man: Formatting fix.
5069         * src/preproc/grn/grn.man: Ditto.
5071         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
5073         * doc/groff.texinfo: Further checking/updating.
5075 2000-02-21  Werner LEMBERG  <wl@gnu.org>
5077         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5079         * test-groff: Added grn subdir to path.
5081         * doc/groff.texinfo: Some restructing and other small improvements.
5083         * src/roff/groff/groff.cc (help): Fixed info string.
5085 2000-02-20  Werner LEMBERG  <wl@gnu.org>
5087         * doc/meref.me: Fix description of .GS request.
5089         * src/roff/troff/troff.man: Fixing typo.
5091         Adding the `grn' preprocessor for gremlin graphic files.
5093         * src/preproc/grn/*: This is the Berkeley distribution written by
5094         David Slattengren and Barry Roitblat, adapted to groff by Daniel
5095         Senderowicz and Werner Lemberg.
5097         * doc/grnexampl.{me,g}: A sample for grn.
5099         * Makefile.in: Added subdirectory entry for grn.
5101         * src/roff/groff/groff.cc: Added support for grn.  It can be now
5102         called with the switch `-g'.
5104         * src/roff/groff/groff.man: Updated.
5106         * src/roff/grog/grog.{man,pl,sh}: Updated.
5108         * NEWS: Updated.
5110 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
5112         * src/include/lib.h: Added xtmptemplate and made xtmpfile
5113         parametrically polymorphic.
5115         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
5116         and the alterations to xtmpfile.
5117         xtmpfile can be requested to return the filename created
5118         and asked not to unlink the temp file.  The default behaviour
5119         if parameters are absent is exactly the same as before.
5121 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
5123         A new request `length' is available which returns the length of a
5124         string in a number register:
5126         * src/roff/troff/input.cc (length_macro): Implement it.
5127         * src/roff/troff/input.cc (init_input_requests): Register it.
5129 2000-02-11  Werner LEMBERG  <wl@gnu.org>
5131         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
5132         of the `substring' request.
5134         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
5135         request.
5137         * src/roff/troff/TODO, NEWS: Updated.
5139 2000-02-09  Werner LEMBERG  <wl@gnu.org>
5141         * src/roff/groff/groff.man: Added an example.
5143 2000-02-06  Werner LEMBERG  <wl@gnu.org>
5145         I've considerably modified the directory structure of the
5146         distribution to get a more vertical layout.  For example, the number
5147         of top level directories has been reduced from 42 to 6.
5149         As a consequence, many changes, especially to the makefiles, were
5150         necessary:
5152         * The makefile variables `top_builddir' and `top_srcdir' have been
5153         introduced.  Virtually all relative paths have been replaced with
5154         absolute ones using these two variables.
5156         * Dependencies (in the files `Makefile.dep') are no longer part of
5157         the distribution.  Instead, they are created during a `make install'
5158         in the build directory.
5160         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
5161         make `top_srcdir' and `top_builddir' absolute.
5163         Some other changes:
5165         * Man pages no depend on the files `VERSION' and `REVISION'.
5167         * The added shell script `mkinstalldirs' will replace `mkdir' in
5168         almost all cases.
5170         * VERSION: Version number increased to 1.16.
5172 2000-02-04  Werner LEMBERG  <wl@gnu.org>
5174         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
5176         * Makefile.in: Removed $(tmac_m) since it is no longer needed
5177         (after an update of the mm stuff).
5179         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
5181 2000-02-03  Werner LEMBERG  <wl@gnu.org>
5183         The .psbb request will now also accept Mac PS images (i.e. using LF
5184         as the EOL character).
5186         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
5187         (with slight modifications).
5188         * troff/input.cc (do_ps_file): Use it.
5190         * test-groff: Add grohtml and grolj4 output devices to PATH.
5192 2000-01-30  Werner LEMBERG  <wl@gnu.org>
5194         * NEWS, MORE.STUFF: Updated.
5196 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
5198         Add the `srand' command to pic.
5200         * pic/lex.cc, pic/pic.y: Implement it.
5201         * pic/pic.man: Document it.
5202         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
5204 2000-01-30  Werner LEMBERG  <wl@gnu.org>
5206         Add a new request `.psbb'.  This does exactly what the external
5207         program psbb did.  It scans a PostScript image file for a
5208         %%BoundingBox comment and extracts the bounding box values (in
5209         PostScript units) which are then stored in the four new (read-only)
5210         number registers `llx', `lly', `urx', and `ury'.
5212         This will allow the usage of the .PSPIC macro without worrying
5213         about unsafe behaviour of groff, i.e., it will work without the
5214         `-U' switch of groff.
5216         * troff/input.cc: Implement it.
5217         * tmac/tmac.pspic: Use it.
5218         * troff/troff.man, grops/grops.man, NEWS: Document it.
5219         * psbb/*, Makefile.in: Remove it since it is no longer needed.
5221         This is bloody C code simply adapted from psbb.c!  Any improvements
5222         welcome.
5224 2000-01-29  Werner LEMBERG  <wl@gnu.org>
5226         * man/groff_font.man: Minor clarifications.
5228         * NEWS: Updated.
5230 2000-01-28  Werner LEMBERG  <wl@gnu.org>
5232         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
5234 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
5236         * man/groff_font.man: Brought up to date regarding tcommand
5237         extensions.
5238         * libgroff/font.cc: Handle everything after `--' as a comment
5239         in the font files.
5240         * devps/*: Added comment delimiter inside devps font files.
5242 2000-01-28  Werner LEMBERG  <wl@gnu.org>
5244         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
5245         \fC...\fP (which now works as expected).
5247         * troff/troff.man: Fix typo.
5249 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
5251         Completed the pass_filenames implementation in troff.
5253         * libdriver/input.cc: Will read the new `F' tcommand.
5254         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
5255         * troff/input.cc: Use it.
5257 2000-01-26  Werner LEMBERG  <wl@gnu.org>
5259         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
5260         font will now be updated even if an invalid font is selected.
5262 2000-01-24  Werner LEMBERG  <wl@gnu.org>
5264         * doc/homepage.ms: Updated for new tmac.arkup.
5266         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
5268         * tmac/tmac.arkup: Cleanup.
5270         Added `\&' to .HTML macro to `leave vertical mode', so to say.
5272         Removed obsolete .LINK macro completely.
5274         The macros .URL, .FTP, and .MAILTO now accept a third argument which
5275         will be immediately appended to the second argument (to be used with
5276         punctuation, for example).
5278         Disabled .CDFTP macro temporarily for security reasons.
5280         * tmac/groff_markup.man: Complete revision for latest changes in
5281         tmac.arkup -- note that it does not yet format correctly with
5282         grohtml :-(
5284 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
5286         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
5287         * devutf8/R.proto: Add mappings for wp, lh, rh.
5288         * devutf8/NOTES: Updated.
5290 2000-01-23  Werner LEMBERG  <wl@gnu.org>
5292         * doc/groff.texinfo: Updated version/copyright info.
5294 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
5296         Added support for two new directives in device descriptions:
5297         `pass_filenames' (to pass the input file name to the output device)
5298         and `use_charnames_in_special' (to support e.g. accented characters
5299         in the `X' request).
5301         * include/font.h, troff/charinfo.h: Declare it.
5303         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
5305         * devhtml/DESC: Use it.
5307         * troff/input.cc: New function encoded_char.
5309         * troff/token.h: Add test for `specialness'.
5311 2000-01-21  Werner LEMBERG  <wl@gnu.org>
5313         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
5314         mistake from the list of files to be installed.
5316 2000-01-18  Werner LEMBERG  <wl@gnu.org>
5318         * README: Added info how to apply patches.
5320 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
5322         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
5324 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
5326         * troff/input.cc: Add support for troffrc-end.
5328         * tbl/main.cc: Altered to issue table-start and table-end special
5329         characters if using the html device.
5331         * devhtml/*: Modified font files to incorporate html encoding of
5332         characters.
5334         * tmac/groff_markup.man: New file documenting tmac.arkup.
5336         * tmac/troffrc-end: New file.  This is invoked after all user
5337         specified macros.  Currently used by the html device to include
5338         tmac.html.  Thus no need for users to specify -mhtml anymore.
5340         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
5341         (MAN7): Add groff_markup.man.
5343         * tmac/tmac.an, tmac/tmac.html: Small html updates.
5345         * tmac/troffrc: tmac.arkup will now be called for the html device.
5347         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
5348         extra device specific information about fonts.
5350         * doc/homepage.ms: New file.  It is an example how an HTML home page
5351         could look like with grohtml.
5353         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
5355 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
5357         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
5358         of Im, Re.
5360         * devutf8/NOTES: Updated.
5362 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
5364         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
5365         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
5366         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
5367         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
5368         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
5369         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
5370         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
5371         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
5372         warnings.
5374         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
5376 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
5378         grolj4: Paper size will be searched case-insensitively.
5380         * include/lib.h: Add check for strcasecmp().
5381         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
5382         * configure.in: Check for strcasecmp().
5384 2000-01-11  Werner LEMBERG  <wl@gnu.org>
5386         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
5387         `REVISION'.
5389 2000-01-10  Werner LEMBERG  <wl@gnu.org>
5391         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
5392         revision scheme.
5394         Add a new read-only register, `.Y', which contains the groff
5395         revision.
5397         * troff/input.cc (init_input_requests): Define it.
5398         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
5399         * doc/groff.texinfo, troff/troff.man: Document it.
5401         * libgroff/Makefile.sub (version.cc): Add definition of
5402         `Version_string[]', consisting of `<major>.<minor>.<revision>'
5403         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
5404         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
5405         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
5406         troff/input.cc, pfbtops/pfbtops.c: Use it.
5408 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
5410         Add a revision scheme to the groff package.
5412         * REVISION: New file.
5413         * libgroff/Makefile.sub (version.cc): Use it to define
5414         `revision_string[]'.
5415         * grops/psrm.cc: Use revision_string (converted to an unsigned
5416         integer) in constructor of resource_manager.
5418 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
5420         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
5421         files.
5422         * Makefile.in (DEVDIRS): Add devutf8.
5423         * grotty/tty.cc: Include device.h.
5424         (glyph): Change type of `code' to `unsigned int'.
5425         (tty_printer): New field is_utf8.  Constructor takes device argument.
5426         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
5427         (tty_printer::add_char): Change type of first arg to `unsigned int'.
5428         (tty_printer::put_char): New function.
5429         (tty_printer::end_page): Use put_char() instead of ::putchar().
5430         (make_printer): Pass device to tty_printer constructor.
5431         * nroff.sh: Determine default device by calling 'locale'.  As a
5432         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
5433         Recognize UTF-8 locales.
5434         * tmac/eqnrc: Recognize utf8 like latin1.
5435         * tmac/troffrc: Device utf8 needs tmac.tty.
5437 2000-01-07  Werner LEMBERG  <wl@gnu.org>
5439         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
5441 2000-01-07  Paul Eggert  <eggert@twinsun.com>
5443         Add a new predefined writeable number register, `year',
5444         which contains the current year.
5446         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
5447         * tmac/tmac.s: Use it.
5448         * troff/input.cc (init_registers): Initialize it.
5450 2000-01-06  Werner LEMBERG  <wl@gnu.org>
5452         * PROBLEMS: Fixed typo.
5454 2000-01-04  Paul Eggert  <eggert@twinsun.com>
5456         * PROBLEMS: Add Y2k advice for the yr number register.
5458 2000-01-03  Paul Eggert  <eggert@twinsun.com>
5460         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
5462 2000-01-02  Werner LEMBERG  <wl@gnu.org>
5464         * tmac/tmac.arkup: Slight modification of macros to provide better
5465         appearance for non-HTML formats.
5467 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
5469         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
5470         does not automatically translate to malloc(n) on all OSes
5471         (e.g., SunOS) so do it explicitly.  Also, check the returned
5472         value.
5474 2000-01-01  Werner LEMBERG  <wl@gnu.org>
5476         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
5478         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
5479         expects this variable
5481 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
5483         * doc/Makefile: Added instructions to create HTML and text
5484         versions of some files.
5486 1999-12-31  Werner LEMBERG  <wl@gnu.org>
5488         * Updated INSTALL.gen.
5490         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
5491         better resp. correctly with non-HTML devices.
5493 Version 1.15 released
5494 =====================
5496 1999-12-28  Werner LEMBERG  <wl@gnu.org>
5498         * NEWS, VERSION: Changed to 1.15
5500 1999-12-27  Paul Eggert  <eggert@twinsun.com>
5502         * nroff/nroff.man: -S is safer, not safe.
5504         * groff/groff.cc (main): Use `safer', not `safe', in variable
5505         names.  This does not change the behavior.
5507         * troff/input.cc (main): Likewise.
5509         * nroff/nroff.sh: Likewise.
5511         * troff/input.cc (prepend_string): New function.
5512         (main): Prepend -msafer, so that we check macro libraries for
5513         safety.
5515         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
5517 Version 1.14 released
5518 =====================
5520 1999-12-26  Werner LEMBERG  <wl@gnu.org>
5522         * NEWS, VERSION: Changed to 1.14.
5524 1999-12-24  Werner LEMBERG  <wl@gnu.org>
5526         * refer/refer.cc: Fixing the last fix.
5528 Version 1.13 released
5529 =====================
5531 1999-12-23  Werner LEMBERG  <wl@gnu.org>
5533         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
5534         number disappear.
5536         * NEWS: Updated.
5538         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
5540         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
5541         document conventions, the version number must be a real.
5543 Version 1.12.1 released
5544 =======================
5546 1999-12-22  Werner LEMBERG  <wl@gnu.org>
5548         * VERSION: Changed to 1.12.1.
5550 1999-12-22  Alan Rooks  <arooks@istar.ca>
5552         * refer/refer.cc (do_file): Slight modification to satisfy the
5553         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
5554         UnixWare 7.1.
5556 1999-12-20  Werner LEMBERG  <wl@gnu.org>
5558         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
5559         notices.
5561         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
5562         list of unsafe requests.
5564         * pic/pic.man: Fixed a typo.
5566         * man/groff_out.man: Fixed a typo.
5568 1999-12-18  Werner LEMBERG  <wl@gnu.org>
5570         * Makefile.in: Doc fixes.
5572 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
5574         * groff/groff.cc: Missing `U' option added to getopt().
5576         * troff/troff.man: Missing `U' option added to synopsis.
5578 Version 1.12 released
5579 =====================
5581 1999-12-14  Werner LEMBERG  <wl@gnu.org>
5583         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
5584         to the synopsis.
5586         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
5587         with the more appropriate terms `safer' and `unsafe'.
5589         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
5590         sys_nerr and sys_errlist[].
5592         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
5594         * pic/pic.y, pic/pic.cc: Added check for fmod().
5596 1999-12-13  Werner LEMBERG  <wl@gnu.org>
5598         * VERSION: Changed to 1.12.
5600         Here some patches from various sources; most of them taken from
5601         the Debian distribution.
5603         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
5604         tmac/Makefile.sub: New files copied directly from the NetBSD
5605         distribution.  Probably, some additional adaptation later on is
5606         necessary...
5608         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
5609         of unsafe requests.
5611         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
5612         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
5613         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
5614         (`-S') is now the default.
5616         * README, NEWS: Updated.
5618 1999-12-09  Werner LEMBERG  <wl@gnu.org>
5620         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
5622         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
5624 1999-12-06  Werner LEMBERG  <wl@gnu.org>
5626         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
5627         grief than relief today.  Additionally, it is against the GNU
5628         coding standards.
5630         * configure: Recreated.
5632 1999-12-05  Werner LEMBERG  <wl@gnu.org>
5634         * configure.in: Added GROFF_LIBM.
5636         * configure: Recreated.
5638         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
5639         necessary.
5641         * Makefile.in: Added definition of $(LIBM).
5643         * Makefile.comm (LIBM): Removed.
5645         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
5647 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
5649         * doc/Makefile: Added rule for generation pic.html.
5651         (clean): Files produced by grohtml will be removed also.
5653         * doc/pic.ms: Small fix.
5655         * tmac/tmac.html: Fixed suppression of headers.
5657 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
5659         * tmac/tmac.html: Fixing horizontal arrows.
5661         Turning off hyphenation.
5663         * tmac/tmac.an: Improved support for grohtml; better indentation,
5664         no footers/headers.
5666 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
5668         * tmac/tmac.arkup: Added CDFTP macro
5670         * tmac/tmac.html: All headers are turned off for ms, me, and mm
5671         macros.
5673         * tmac/troffrc: Some additions for HTML stuff.
5675 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
5677         * tmac/tmac.html: Small changes.
5679 1999-09-26  Werner LEMBERG  <wl@gnu.org>
5681         * doc/groff.texinfo: Minor fixes.
5683 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
5685         * devhtml/TR: Changed spacewidth to 3.
5687         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
5689         * tmac/tmac.html: Moved markup macros to tmap.arkup.
5691         * tmac/tmac.arkup: New file.
5693         * grohtml/ChangeLog: New file.
5695 1999-09-16  Werner LEMBERG  <wl@gnu.org>
5697         * doc/groff.texinfo (Common Features): Added Copying chapter.
5698         Changed format to @smallbook.
5700 1999-09-15  Werner LEMBERG  <wl@gnu.org>
5702         * NEWS: Added info about groff.texinfo.
5704         * doc/groff.texinfo: Will now compile (using texi2dvi) without
5705         warning messages.
5707 1999-09-14  Werner LEMBERG  <wl@gnu.org>
5709         * groff/groff.man: More updates.
5711 1999-09-13  Werner LEMBERG  <wl@gnu.org>
5713         * doc/groff.texinfo: New file.  This manual is still very
5714         rudimentary.  It has been originally contributed by Trent
5715         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
5716         additions by me.
5718         * INSTALL: Added information about the `doc' subdir
5720         * troff/troff.man: Minor fixes.
5722         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
5723         reordered options.
5725         * troff/input.cc (usage): Added missing `-ffam' to usage message.
5727         * Makefile.in (dist): groff-$(version).tar.gz must be removed
5728         also, otherwise it is included itself in another call of `make
5729         dist'.
5731         * groff/groff.cc (synopsis): Removed superfluous space.
5733         * PROJECTS, PROBLEMS, NEWS: Updated.
5735         * VERSION: Updated to 1.12beta.
5737         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
5739         * README: Updated: Included documentation about CVS repository,
5740         mailing lists, and daily snapshots.
5742         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
5744 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
5746         * tmac/tmac.an: If the tag didn't fit into the space that the
5747         macro `TP' specifies, the rest of the tag went into the space for
5748         the next line.
5750 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
5752         * grolj4/lj4.cc: Added duplex printing (option `-d').
5754         * grolj4/grolj4.man: Document duplex printing.
5756 1999-09-12  Werner LEMBERG  <wl@gnu.org>
5758         * doc/Makefile (pic.ps): Fixed rule which caused problems with
5759         non-GNUish sed programs.
5761         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
5762         definition.
5764         * configure.in (LIBS): Added `-lc'
5766         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
5768         * pic/tex.cc (solid_arc): Casting M_PI to double.
5770         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
5772         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
5773         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
5774         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
5776         * groff/groff_man.man: New file.  This manual page was originally
5777         written for the Debian GNU/Linux system by Susan G. Kleinmann
5778         <sgk@debian.org>.
5780         * eqn/list.cc (list_box::compute_metrics,
5781         list_box::compute_sublist_width): Removed variable declaration to
5782         avoid shadowing warnings.
5784         * grops/psrm.cc (resource_manager::process_file): Ditto.
5786         * tfmtodit/tfmtodit.cc (main): Ditto.
5788         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
5789         to avoid shadowing warnings.
5791         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
5792         shadowing loop variable.
5794         * groff/groff.man, troff/troff.man: Added doc about grohtml.
5796 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
5798         New grohtml frontend to convert groff input to html.
5800         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
5802         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
5804         * tmac/eqnrc: Added html device.
5806         * tmac/tmac.html: New file.
5808         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
5809         (troff_output::start_picture, troff_output::finish_picture),
5810         tbl/main.cc (process_input_file):
5811         Surrounded output with `graphics_start' and `graphics_end' so that
5812         the html driver can identify non-text portions.
5814         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
5815         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
5816         grotty/tty.ps (tty_printer::set_char): Additional parameter
5817         `name'.
5819         * include/printer.h: Class printer: New function
5820         set_char_and_width; new variables (is_char_named, is_named_set,
5821         named_command, named_char_s, named_char_n) to hold information
5822         about named characters -- needed by the html driver.
5824         * libdriver/printer.cc (printer::set_ascii_char,
5825         printer::set_special_char): Use set_char_and_width.
5827         * devhtml/*: New device files for html driver.
5829         * grohtml/*: New driver grohtml.
5831 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
5833         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
5834         default strings.
5836 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
5838         * libgroff/string.cc (search): Small fix to test against NULL
5839         pointer.
5841 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
5843         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
5844         \b'abc') were stacked in reverse order when processed in a
5845         diversion.
5847         * troff/node.h: Added `*last' to struct `node' to make the above
5848         fix work.
5850         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
5851         The default scale for the 'f' and 't' graphics functions were 'm'
5852         rather than 'u' (i.e., no scaling).
5854 1999-09-11  Peter Miller  <peterm@jna.com.au>
5856         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
5857         do_file), soelim/soelim.man: Added `-I file' option to soelim,
5858         defining include paths.
5860         * soelim/soelim.cc (include_path_append): New function.
5862 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
5864         * tbl/main.cc (process_options): Unix (at least Documenter's
5865         Workbench) tbl allows arbitrary non-alpha characters between
5866         options.
5868 1999-09-11  Paul Eggert  <eggert@twinsun.com>
5870         Y2k fixes.  Don't assume that the current year precedes 2000.
5872         * doc/meref.me: Add \n(y2, \n(y4.
5874         * tmac/doc-common (Yr): New number register.
5875         (Dd): Don't assume current year precedes 2000.
5877         * tmac/tmac.e (td): Likewise.
5878         (y2, y4): New number registers.
5880         * pic/pic.man: Update reference for pic paper to May, 1991
5881         version.
5883 1999-09-11  Werner LEMBERG  <wl@gnu.org>
5885         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5886         Removed quotation marks which prevented correct expansion of
5887         $(tmac_wrap).
5889         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
5891 1999-09-10  Werner LEMBERG  <wl@gnu.org>
5893         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
5894         `config.cache'.
5896         * Removed configure.old.
5898 1999-08-31  Werner LEMBERG  <wl@gnu.org>
5900         * VERSION: Updated to 1.11.1
5902 1999-05-27  Werner LEMBERG  <wl@gnu.org>
5904         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
5906         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
5907         added quotations around $(tmac_wrap) to avoid syntax error if
5908         variable is empty.
5910         * configure: Newly generated using autoconf 2.13.
5912         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
5914 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
5916         * README, PROJECTS, NEWS, INSTALL, VERSION, 
5917         doc/Makefile. doc/pic.ms, groff/groff.man:
5918         Prepare for 1.11 release.  No code changes.
5919         Documentation for pic added (doc/pic.ms).
5921 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
5923         * Version 1.10 released.
5925 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
5927         * afmtodit/afmtodit.pl: Avoid comment on first line.
5929 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
5931         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
5932         * configure.in: Call it.
5934         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
5935         (distfiles): Doesn't depend on config.log or config.cache.
5937 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
5939         * grog/grog.sh: Use print "" rather than print in END rule.
5941 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
5943         * tbl/main.cc (process_data): Don't give error for excess data
5944         entries that are comments.
5946 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
5948         * tbl/main.cc (process_data): Fix case where new for-scope rules
5949         silently change meaning of code.
5951 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
5953         * troff/env.cc (hyphenate): Loop over all consecutive sequences
5954         of non-zero hyphenation codes.
5956 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
5958         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
5960 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
5962         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
5964 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
5966         * tmac/tmac.andoc: Make it work in compatibility mode.
5968         * refer/token.h (token_info::is_range_sep): New function.
5969         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
5970         * refer/ref.cc (reference::output): More sophisticated check for
5971         multiple pages.
5973         * devps/prologue.ps (MANUAL): New procedure.
5974         * grops/ps.cc (main): New -m option.
5975         (usage): Include -m.
5976         (ps_printer::~ps_printer): Implement -m.
5978         * aclocal.m4 (GROFF_G): New macro.
5979         * configure.in: Call it.
5980         * Makefile.in (g): Provided by configure.
5982         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
5984         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
5985         translations.
5987         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
5988         (tmac_m, tmac_s): Deleted.
5989         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
5990         tmac_s_prefix): New variables.
5991         (MDEFINES): Change accordingly.
5992         * Makefile.comm (.man.n): Use new TMAC_* variables.
5993         * configure.in (GROFF_TMAC): Call.
5994         * aclocal.m4 (GROFF_TMAC): Define.
5995         * tmac/Makefile.sub (stamp_wrap): New target.
5996         (install_data, uninstall_sub): Handle macro wrapping.
5998 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
6000         * tbl/main.cc (main): Ignore -T option.
6002 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
6004         * devlj4/generate/special.map: Add definition of \(nb.
6006         * tmac/tmac.dvi: Add definition of \(nb.
6008         * troff/dictionary.c (dictionary::dictionary): association::v gets
6009         initialized by association::association.
6011         * tmac/Makefile.sub: Avoid using temporary files when installing.
6013         * troff/env.cc (environment::set_font): Make bad font number a
6014         warning.
6016         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6018         * Makefile.in (datadir): Use share rather than lib.
6020         * groff/groff.cc (basename): Rename to xbasename.
6022 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
6024         * Makefile (CCLIBS): Don't use.
6025         * Makefile.ccpg: Likewise.
6027         * acgroff.m4: Rename to...
6028         * aclocal.m4: Modify extensively for autoconf 2.
6029         * configure.in: Likewise.
6030         * Makefile.in: Likewise.
6032         * groff/pipeline.c (const): Declare as empty if __STDC__ not
6033         defined.
6034         (xstrsignal): Check for definition of NSIG. Conditionalize
6035         on SYS_SIGLIST_DECLARED.  Make return type const.
6037 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
6039         * troff/input.cc (interpolate_macro): Rephrase missing space
6040         warning.
6042 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
6044         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6045         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6046         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6047         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6048         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6049         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6050         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6051         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6052         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6053         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6054         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6055         Fix 'for' scoping.
6057 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
6059         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
6060         string_iterator.
6061         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
6062         file.
6063         (macro_iterator::macro_iterator): Add additional argument.
6065 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
6067         * troff/div.cc (vertical_size::vertical_size): In place of integer
6068         specifying line spacing use cunits specifying post vertical
6069         space.
6070         (macro_diversion::output, top_level_diversion::output): Likewise.
6071         * troff/div.h: Change declarations accordingly.
6072         * troff/env.cc (pending_output_line): Replace ls field by post_vs
6073         field.
6074         (pending_output_line::pending_output_line,
6075         pending_output_line::output, environment::output,
6076         environment::output_line, environment::output_title,
6077         environment::hyphenate_line):  In place of
6078         integer specifying line spacing use cunits specifying post vertical
6079         space.
6080         (environment::environment): Add post_vertical_spacing and
6081         prev_post_vertical_spacing arguments.
6082         (environment::get_post_vertical_spacing): New function.
6083         (environment::total_post_vertical_spacing): New function.
6084         (environment::post_vertical_spacing): New function.
6085         (init_env_requests): Initialize pvs request and .pvs register.
6086         * troff/env.h: Change declarations.
6088 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
6090         * tmac/tmac.pspic: Immediately remove the temporary file.
6092 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
6094         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
6095         height is specified.
6097 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
6099         * tbl/table.c (struct vertical rule, class table_entry): Use int
6100         not short for start_row and end_row.
6102 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
6104         * troff/input.cc (trapping_blank_line, blank_line_macro): New
6105         functions.
6106         (diverted_space_node::reread, process_input_stack): Call
6107         trapping_blank_line() rather than blank_line().
6108         (init_input_requests): Bind "blm" to blank_line_macro().
6110         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
6112 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
6114         * troff/env.cc (environment::possibly_break_line): Require that
6115         width total excluding width of final space node be greater than
6116         the target text length.
6118 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
6120         * troff/node.cc (kern_pair_node::vertical_extent): New function.
6122 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
6124         * troff/node.cc (charinfo_node): New class.
6125         (glyph_node, composite_node): Derive from charinfo_node.  Change
6126         member functions accordingly.
6128 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
6130         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
6132 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
6134         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
6136         * devps/generate/textmap (notsubset): Add.
6138         * tmac/tmac.a4: New file.
6140 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
6142         * pic/main.cc (had_parse_error): New variable.
6143         (do_picture, do_whole_file): Set had_parse_error if yyparse()
6144         returns non-zero.
6145         (main): Return 1 if had_parse_error is true.
6147 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
6149         * grolj4/lj4.cc (main): Avoid use of strtoul.
6151 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
6153         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
6154         iso_8859_1 or $LESSCHARSET is latin1.
6156 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
6158         * hpftodit: New directory.
6159         * Makefile.in (CCPROGDIRS): Add hpftodit.
6160         * devlj4/generate: New directory.
6162 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
6164         * configure.in: Don't use AC_VFORK.
6165         * groff/pipeline.c (run_pipeline): Use fork() always.
6167 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
6169         * grops/ps.cc (main): Use %1 not %s in error message for -w.
6171         * Makefile.in (CCPROGDIRS): Add grolj4.
6172         (DEVDIRS): Add devlj4.
6173         * grolj4, devlj4: New directories.
6174         * tmac/troffrc: Handle lj4.
6175         * tmac/tmac.lj4: New file.
6177 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
6179         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
6181 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
6183         * troff/input.cc (do_if_request): At end of second string, switch
6184         environments before getting next token.
6186 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
6188         * devps/psstrip.sed: Split rule that strips whitespace on either
6189         side of delimiters.
6191 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
6193         * troff/node.h (font_family::make_definition): Add return value to
6194         declaration.  * troff/symbol.h (symbol::operator==,
6195         symbol::operator!=): Likewise.
6197 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
6199         * groff/groff.cc (main, help, synopsis): Handle -S.
6200         (possible_command::insert_arg): New function.
6202         * tmac/tmac.safer: New file.
6203         * tmac/msafer.man: New file.
6204         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
6206 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
6208         * pic/pic.h, pic/main.cc (safer_flag): New variable.
6209         * pic/pic.y (placeless_element): Avoid unsafe operations if
6210         `safer_flag' is set.
6211         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
6213 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
6215         * eqn/lex.cc (get_token): Put call to add_context() in block to
6216         work around Sun C++ 4.0 bug.
6218         * include/stringclass.h (operator +): Use ?: instead of `if' to
6219         work around Sun C++ 4.0 bug.
6221 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
6223         * tbl/main.cc (process_format): Accept - as a synonym for the _
6224         key letter.
6226         * libbib/index.cc (minus_one): Don't declare as const.
6228 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
6230         * troff/input.cc (get_char_for_escape_name): Push back a newline.
6232 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
6234         * troff/input.cc (write_macro_request): New function.
6235         (init_input_requests): Bind write_macro_request to writem.
6237 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
6239         * tmac/tmac.s (@EN): Turn filling back on even if there was no
6240         equation.
6242         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
6244         * tmac/tmac.s (@TS): Renamed from TS.
6245         (TS): Call LP then TS again.
6246         (cov*ab-init): Alias @TS to TS.
6248         * tmac/tmac.s: Allow QP or RS to initialize.
6250         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
6251         Move initializations of PS and LL here.
6252         (par@init): Don't initialize HY.  Avoid changing environment 0.
6253         (par*env-init): Don't all par@reset.
6255 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
6257         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
6259 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
6261         * Makefile.in (MDEFINES): Add LDFLAGS.
6262         (LDFLAGS): Add definition line.
6264 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
6266         * troff/input.cc (get_optional_char): Split off error check into...
6267         (check_missing_character): New function.
6268         * troff/token.h: Declare it.
6269         * troff/env.cc (margin_character): Don't call get_optional_char.
6270         Only call tok.next() after making the node.
6272         * include/lib.h (getopt): Make 2nd argument char *const *.
6274 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
6276         * nroff/conftest.sh: Deleted.
6278 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
6280         * pic/make-dos-dist: Deleted.
6282 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
6284         * devps/psstrip.sed: Strip comments before stripping trailing
6285         white space.
6287 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
6289         * Version 1.09 released.
6291 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
6293         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
6295 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
6297         * libgroff/font.cc (font::load_desc): Fix typo in error message.
6299 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
6301         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
6302         about returning without a value.
6304         * troff/charinfo.h (charinfo::get_special_translation): Cast
6305         TRANSLATE_NONE to int.
6307         * refer/token.cc (lookup_token, store_token): Remove bogus loop
6308         test.  Fix test so that it works with n unsigned.
6310         * pic/pic.y (defaults_table): Fully bracket initializer.
6311         * pic/lex.cc (lookup_keyword): Likewise.
6312         * eqn/lex.cc (token_table, def_table): Likewise.
6313         * eqn/box.cc (param_table): Likewise.
6314         * troff/input.cc (warning_table): Likewise.
6315         * libgroff/font.cc (table): Likewise.
6316         * grops/ps.cc (ps_printer::special): Likewise.
6317         * grops/psrm.cc (resource_manager::process_file): Likewise.
6318         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
6319         * refer/command.cc (command_table): Likewise.
6320         * addftinfo/addftinfo.cc (param_table): Likewise.
6322         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
6323         about temp's being unused.
6324         (unused): New function.
6326         * groff/pipeline.cc: Declare c_fatal.
6328         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
6329         uchar.
6331         * libbib/index.cc (index_search_item::load): Prevent compiler
6332         warnings about fd_closer's being unused.
6333         (unused): New function.
6335 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
6337         * troff/input.cc (copy_mode_error): Make `prefix' static.
6338         Fix typo.
6340         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
6341         defined.
6342         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
6343         HAVE_CC_OSFCN_H and modify accordingly.
6345         * troff/input.cc (init_charset_table): radicalex overlaps
6346         horizontally.
6348         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
6349         udodo!hans@relay.NL.net).
6350         * groff/configure.in: Call it.
6352         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
6353         * groff/configure.in: Call it.
6354         * include/lib.h: Conditionalize declaration of pclose.
6356         * troff/div.cc (last_page_number): New global variable.
6357         (top_level_diversion::begin_page): Exit if we just printed the
6358         last page.
6359         * troff/div.h (last_page_number): Declare it.
6360         * troff/input.cc (parse_output_page_list): Set last_page_number.
6362         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
6363         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
6364         tmac/tmac.X: Likewise.
6365         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
6366         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
6368 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
6370         * tmac/doc-ditroff (hK): Remove groff specific code which
6371         prevented page-breaks between separate manual entries.  If this is
6372         the first page, don't set the page number to 1.
6374         * acgroff.m4 (GROFF_POSIX): New macro.
6375         * configure.in: Use it.
6377         * troff/node.cc (class real_output_file,
6378         real_output_file::real_output_file,
6379         real_output_file::~real_output_file): Conditionalize use of
6380         popen/pclose on POPEN_MISSING.
6381         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
6382         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
6383         (pipe_source): Similarily.
6385         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
6387         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
6388         presence of declarations by trying to compile example with
6389         conflicting declarations.  (gcc only gives a warning for missing
6390         declarations.)
6392 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
6394         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
6395         (from Ulrich Lauther).
6397 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
6399         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
6401 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
6403         * indxbib/indxbib.cc (write_hash_table): Add code for case where
6404         pointers and ints have different sizes.
6406 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
6408         * tmac/tmac.s (par*env-init): Call par@reset.
6410 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
6412         * tmac/tmac.s (@IP): Switch to a new environment when diverting
6413         tag.
6414         (par*push-tag-env, par*pop-tag-env): New macros.
6416 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
6418         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
6419         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
6421         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
6422         comment.  Include <time.h>.
6424 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
6426         * grops/ps.cc (is_small_h, is_small_v): Deleted.
6427         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
6428         lines.
6430 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
6432         * troff/input.cc (read_request): Only print a prompt if reading
6433         from the terminal.  Also clearerr on EOF if reading from the
6434         terminal.  Declare isatty.
6436 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
6438         * refer/label.y: Rename map_t to map_func and extractor_t to
6439         extractor_func.
6441 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
6443         * include/assert.h: Don't use volatile.
6444         * libgroff/assert.cc: Likewise.
6446 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
6448         * troff/input.cc (abort_request): Look at character in tok before
6449         calling get_copy().
6451 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
6453         * troff/troff.h (NO_RETURN): Deleted.
6454         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
6455         * troff/input.cc (exit_troff): Likewise
6457         * Makefile.in: Remove `Making ...' messages since GNU make now
6458         gives these. 
6460         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
6462 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
6464         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
6465         to constant 1 inch.
6467 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
6469         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
6471 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
6473         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
6474         MARK_REG if there was no left delimiter.
6476 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
6478         * pic/troff.cc (troff_output::text): Set line thickness to
6479         relative before outputting text.
6481         * tmac/tmac.e (@k): Don't zero ?T.
6482         ((z): Likewise.
6484 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
6486         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
6488 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
6490         * troff/input.cc (decode_args): Warn about unquoted tabs (from
6491         Paul Eggert).
6493 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
6495         * troff/input.cc (ignoring): New variable.
6496         (ignore): Set ignoring during call to do_define_macro.
6497         (do_define_macro): Clear ignoring before interpolating terminating
6498         macro.
6499         (copy_mode_error): New function.
6500         (get_char_for_escape_name, read_long_escape_name,
6501         interpolate_arg): Use copy_mode_error.
6502         (warning_table): Add WARN_IG.
6503         * troff/troff.h (WARN_IG): Declare.
6504         (WARN_TOTAL): Change accordingly.
6506         * groff/pipeline.c (strsignal): Rename to xstrsignal.
6507         * groff/groff.cc (strsignal): Delete declaration.
6509 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
6511         * troff/div.cc (page_offset): Use 'm' as default scaling.
6513 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
6515         * nroff/nroff.sh: Ignore -u.
6517 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
6519         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
6521 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
6523         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
6524         drawing box.
6525         (B2): With -Tascii, leave additional vertical space before
6526         and after. Ensure that the left and right indent is restored to
6527         what it was even if the point size changes.  Don't call
6528         par@finish. Change the indent, line length and title length
6529         directly.  With -Tascii, make the width of the box 1n less.
6530         (B1): Remember 1n at the current point size.  Don't call
6531         par@reset.  Change the indent, line length and title length
6532         directly.  Ensure that the temporary indent is preserved.
6533         (par*box-mark-top): Turn off no spacing mode.
6535 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
6537         * Makefile.in (dist): Use .gz suffix.
6539 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
6541         * troff/input.cc (main): Add return 0.
6542         * pic/main.cc (main): Use return instead of exit.
6543         * tbl/main.cc (main): Likewise.
6544         * eqn/main.cc (main): Likewise.
6545         * grops/ps.cc (main): Likewise.
6546         * grotty/tty.cc (main): Likewise.
6547         * groff/groff.cc (main): Likewise.
6548         * grodvi/dvi.cc (main): Likewise.
6549         * refer/refer.cc (main): Likewise.
6550         * indxbib/indxbib.cc (main): Likewise.
6551         * lkbib/lkbib.cc (main): Likewise.
6552         * soelim/soelim.cc (main): Likewise.
6553         * addftinfo/addftinfo.cc (main): Likewise.
6554         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
6555         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
6557         * troff/token.h (process_input_stack): Don't declare as static.
6558         * troff/input.cc: Likewise.
6560         * troff/node.c (invalidate_fontno): Make it a static member of
6561         class font_family.  Change callers.
6562         * troff/node.c: Change declaration.
6564         * tbl/main.cc (struct input_entry_format): Add explicit public
6565         specifier.
6566         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
6567         struct double_hline_stuff): Likewise.
6568         * tbl/table.h (struct entry_format): Likewise.
6569         * pic/object.h (struct saved_state): Likewise.
6571         * include/stringclass.h: Add forward declarations of friend
6572         functions that are later declared as inline.  Don't include inline
6573         specifier in friend declaration.
6575         * libgroff/lib.h: Declare popen and pclose.
6576         * acgroff.m4 (GROFF_POPEN): New macro.
6577         * configure.in: Call it.
6579         * include/lib.h (PI): New constant. Undef first if necessary.
6580         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
6581         * grops/ps.cc (degrees, radians): Likewise.
6582         * libgroff/font.cc (font::get_skew): Likewise.
6584         * grops/ps.cc (is_ascii): New function.
6585         (ps_output::put_string): Use is_ascii.  Use csprint rather than
6586         isprint.
6587         (ps_printer::define_encoding): Use csspace.
6588         * libgroff/strtol.c (ISASCII): New macro.
6589         (strtol): Cast arguments to is*() and tolower() to unsigned char.
6590         Use ISASCII rather than isascii.
6591         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
6592         * libgroff/cset.cc: Likewise.
6593         * libdriver/input.cc: Include cset.h.
6594         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
6595         than isdigit().
6597         * refer/refer.cc (main): Use %ld rather than %d for longs.
6599         * libbib/index.cc (index_search_item_iterator::get_tag): Use
6600         S_ISREG macro.
6602         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
6604 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
6606         * troff/input.cc (hyphenation_code): Skip white space between
6607         char/code pairs.
6609 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
6611         * tbl/table.h (table::entry_list_tailp): New member.
6612         (table::table): Initialize it.
6613         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
6614         behaviour.
6616 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
6618         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
6619         with negative horizontal positions. Remove casts of glyph::hpos to
6620         int.
6621         (USHRT_MAX): Delete definition.
6622         (SHRT_MAX, SHRT_MIN): New definitions.
6623         (glyph::hpos): Change type to short.
6624         (tty_printer::end_page): Output multiple backspaces if necessary.
6625          Remove casts of glyph::hpos to int.
6626         
6627 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
6629         * tmac/tmac.s (@RT): New definition.
6631 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
6633         * refer/refer.cc (do_file): Make sure current_filename is set when
6634         filename is "-".
6636         * pic/common.cc (common_output::dot_line): Handle zero length
6637         lines.
6639 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
6641         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
6642         (par@init): Initialize \n[HY].
6644 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
6646         * troff/dictionary.cc (dictionary::remove): Continue when
6647         r < j < i.
6649 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
6651         * Makefile.com (.y.cc): Avoid ending up with two versions of
6652         $(YTABH).
6654 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
6656         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
6657         (\(,C): Likewise.  Also fix typo.
6659 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
6661         * lib.h: Delete extraneous semi-colon.
6663         * Add pso request: `so' from a pipe.
6664         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
6665         (file_iterator::close): New function.
6666         (file_iterator::~file_iterator, file_iterator::next_file): Use
6667         file_iterator::close.
6668         (file_iterator::backtrace): Say `process' rather than `file' when
6669         the stream is popened.
6670         (pipe_source): New function.
6671         (init_input_requests): Bind ".pso" to pipe_source.
6673 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
6675         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
6677         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
6678         digits in lower case.
6680 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
6682         * Version 1.08 released.
6684         * Makefile.in (dist): Insert || true after ln -s commands that
6685         might fail.
6687         * mm: Update to mm 1.16.
6689         * acgroff.m4 (GROFF_CSH_HACK): New macro.
6690         * configure.in: Call GROFF_CSH_HACK.  Substitute for
6691         SH_SCRIPT_SED_CMD.
6692         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
6693         MDEFINES.
6694         * nroff/Makefile.sub (nroff): New target.
6695         (install_data): Install nroff.
6696         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
6697         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
6699 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
6701         * eqn/Makefile.sub (neqn): Add chmod +x.
6703         * grog/Makefile.sub (grog): Remove spurious semi-colon.
6705 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
6707         * troff/input.cc (string_iterator::string_iterator()): Initialize
6708         lineno and count.
6710 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
6712         * troff/div.cc (macro_diversion::space,
6713         top_level_diversion::space): Don't set high_water_mark.
6714         (macro_diversion::output, top_level_diversion::output): Don't
6715         include post line space in high water mark.
6717 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
6719         * eqn/eqn.y: Don't define YYDEBUG.
6720         * pic/pic.y: Likewise.
6722 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
6724         * tmac/tmac.e ([3): Add space after comma following editors.
6725         Change double spaces to single spaces.
6726         ([4): Change double spaces to single spaces.
6728         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
6729         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
6730         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
6731         after %!PS-Adobe- (for Newsprint).
6733         * troff/div.cc (top_level_diversion::begin_page): When
6734         before_first_page is 1, set page_number to 1.
6736 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
6738         * eqn/box.cc (box::top_level): Protect equation with \&.
6740 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
6742         * groff/groff.cc (possible_command::set_name): Delete old name.
6744         * groff/groff.cc (possible_command::~possible_command): Use
6745         a_delete.
6747         * troff/node.cc (troff_output_file::begun_page): New member.
6748         (troff_output_file::troff_output_file): Initialize it.
6749         (troff_output_file::really_begin_page): Only output V command if a
6750         page has been begun.
6752         * pic/pic.y (placeless_element): Delete argument to PRINT after
6753         use.
6755 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
6757         * Make wrapman work.
6758         * troff/div.h (class top_level_diversion): Replace
6759         first_page_begun by before_first_page (with opposite sense).
6760         * Change first_page_begun to before_first_page inverting sense.
6761         * troff/div.cc (class nl_reg): New class.
6762         (init_div_requests): Use class nl_reg for \n(nl.
6763         (top_level_diversion::begin_page): Don't call
6764         output_file::begin_page if before_first_page is 2;
6765         reset before_first_page afterwards.  If have_next_page_number is
6766         false, then always increment page_number.
6767         * tmac/tmac.an: Set traps within TH rather than at the top-level.
6768         Restore compatibility mode after loading, and then disable
6769         compatibility mode in TH.
6771 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
6773         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
6774         past last line.
6775         * troff/node.h (output_file::trailer): Declare.
6776         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
6777         * troff/node.cc (output_file::trailer): New function.
6778         (troff_output_file::~troff_output_file): Move most code into...
6779         (troff_output_file::trailer): New function.
6780         (class troff_output_file): Delete page_length member. Declare
6781         trailer().
6782         (troff_output_file::really_begin_page): Use current page length
6783         for final V command.
6785         * tbl/main.cc (struct options): New decimal_point_char member.
6786         (options::options): Initialize this.
6787         (process_options): Implement decimalpoint option.
6788         (process_data): Pass decimal_point_char option to table::table.
6789         * tbl/table.h (class table): New decimal_point_char member.
6790         (table::table): Add additional argument.
6791         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
6792         second argument specifying decimal point character.  Use this
6793         instead of '.'.
6794         (table::table): Initialize decimal_point_char.
6795         (table::add_entry): Change call to find_dot.
6797         * troff/input.cc (get_copy, token::next): Implement \V.
6798         (interpolate_environment_variable): New function.
6800 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
6802         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
6803         * pic/pic.y: Likewise.
6805         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
6806         Add casts to int.
6807         * refer/ref.cc (reference::insert_field, reference::delete_field):
6808         Likewise.
6809         * troff/number.cc (parse_term): Likewise.
6811         * acgroff.m4 (GROFF_PROG_YACC): New macro.
6812         * configure.in: Use GROFF_PROG_YACC.
6814         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
6815         and g++.
6816         * Makefile.in (OPTIMIZE): New define.
6817         (DEBUG): Empty by default.
6818         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
6820         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
6821         (GROFF_ARRAY_DELETE): Likewise.
6822         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
6824         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
6826         * devps/psstrip.sed: Use different delimiter on last line (so that
6827         it works with BSD 4.4 sed.)
6829 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
6831         * devps/psstrip.sed: Delete comments.
6833         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
6834         optind, opterr, optarg.
6835         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
6836         opterr, optarg.
6838 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
6840         * Makefile.in (check): Dummy target.
6842 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
6844         * Version 1.07 released.
6846         * Integrate mm 1.11.
6848         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
6849         where start_col was meant.
6851 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
6853         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
6855 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
6857         * troff/input.cc (token::next): Make \z\o'...' and similar things
6858         work.
6860         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
6861         constants.
6862         (environment): Add margin_character_flags member.
6863         * env.cc (environment::environment(symbol),
6864         environment::environment(const environment *): Initialize
6865         margin_character_flags.
6866         (margin_character): Rewrite.
6867         (environment::output_line): Add a margin character if
6868         margin_character_flags is non-zero.  Turn off the
6869         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
6870         zero, use margin_character_node without copying and then set
6871         margin_character_node to 0.
6873         * devps/DESC.in: Change minimum size to 1000.
6875 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
6877         * troff/symbol.h (symbol::hash): Change return type to unsigned
6878         long.
6879         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
6880         Add casts to int.
6882         * test-groff: Use -r rather than -x.
6884         * grops/psfig.diff: Include in distribution again.
6886 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
6888         * Makefile.in (dist): Use gzip.
6890 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
6892         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
6893         unistd.h as well as in stdlib.h.
6894         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
6895         defined; otherwise include <sys/types.h> and <unistd.h> if
6896         UNISTD_H_DECLARES_GETOPT is defined.
6898         * configure.in: use builtin(include, ... rather than include(...
6899         * configure: Regenerate with autoconf 1.3.
6901         * libdriver/print.cc (printer::adjust_arc_center): Use new
6902         algorithm suggested by Andy Fyfe.
6904         * libdriver/printer.cc (printer::adjust_arc_center): New function.
6905         * include/printer.h: Declare this.
6906         * grops/ps.cc (ps_printer::draw): Use it.
6907         * grodvi/dvi.cc (dvi_printer::draw): Use it.
6909 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
6911         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
6913 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
6915         * eqn/main.cc (main): Handle "eqn -".
6917 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
6919         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
6921         * mm: Integrate version 1.08.
6923         * pic/troff.cc (troff_output::finish_picture): Set
6924         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
6925         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
6926         if it's not defined. Check whether the register is non-zero rather
6927         than whether it's not defined.
6928         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
6930         * indxbib/indxbib.cc: Move all signal handling into...
6931         * indxbib/signal.c: New file.
6932         * configure.in: Call AC_RETSIGTYPE.
6934         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
6935         * configure.in: Call GROFF_STRUCT_EXCEPTION.
6936         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
6938         * troff/input.cc (token::token, token::operator=): Work round SGI
6939         C++ bug.
6940         * pic/object.cc (position::position): Likewise.
6942 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
6944         * pic/pic.h: Move declaration of hypot().
6946 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
6948         * pic/pic.h: Declare hypot().
6950         * pic/pic.h: Define M_PI if necessary.
6952 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
6954         * tmac/tmac.e (re): Add alternative version that doesn't use groff
6955         `.ta T' feature.
6957         * devps/prologue.ps (RE): Handle the possibility that the old font
6958         doesn't have a FontName entry.
6960 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
6962         * tmac/tmac.e (fam): Redefine to set family in environment 2.
6963         (@C): Use @fam not fam.
6965 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
6967         * lookbib/lookbib.cc (main): Change type of start to const char *.
6968         * lkbib/lkbib.cc (main): Likewise.
6970         * eqn/lex.cc (definition::definition): Don't use member
6971         initializer syntax for members of anonymous unions.
6973         * troff/input.cc (input_stack::backtrace): Change type of to const
6974         char *.
6976 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
6978         * include/stringclass.h (class string): Declare inline friend
6979         functions as inline in class declaration.
6980         * troff/hvunits.h (class hunits, class vunits): Likewise.
6981         * include/refid.h (class reference_id): Likewise
6982         * troff/troff.h (points_to_units(units), scale(units, double)):
6983         Delete declarations.
6984         * libdriver/input.cc (get_char): Delete declaration.
6985         * include/lib.h: Change 2nd argument of getopt from const char **
6986         to char **.
6987         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
6988         char **' before assigning to a `const char **'.
6989         * tbl/table.cc: Delete extra declarations of prints().
6991 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
6993         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
6994         char **' before assigning to a `const char **'.
6996         * libgroff/errarg.cc (errarg::errarg): Don't use member
6997         initializer syntax for members of anonymous unions.
6999 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
7001         * mm: Integrate version 1.07.
7003 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
7005         * troff/input.c (translate2): Rename to
7006         (translate_no_transparent).
7007         (init_input_requests): Rename tr2 to trnt.
7009 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
7011         * troff/charinfo.h (class charinfo): Add transparent_translate field.
7012         (charinfo::set_translation, charinfo::set_special_translation):
7013         Add second argument that specifies value for
7014         transparent_translate.
7015         (charinfo::get_translation, charinfo::get_special_translation):
7016         Add optional second argument that specifies whether translation is
7017         being used for transparent throughput.
7018         * troff/input.cc (charinfo::set_translation,
7019         charinfo::set_special_translation): Handle second argument.
7020         (charinfo::charinfo): Initialize transparent_translate.
7021         (translate): Split main part off into
7022         (do_translate): New function.  Pass argument saying whether
7023         translation applies to transparent throughput.
7024         (translate2): New request.
7025         (init_input_requests): Bind translate2 to `tr2'.
7027 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
7029         * tbl/table.h (class table): Add `nokeep' flag.
7030         * tbl/main.cc (process_options): Handle `nokeep' option.
7031         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7032         table::do_bottom): Don't output keep/release macro definitions or
7033         calls when `nokeep' option has been specified.
7035 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
7037         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7039 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
7041         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7042         block_entry::divert, alphabetic_block_entry::divert): Add extra
7043         argument giving column separation.
7044         (table::compute_widths): Pass column separation to
7045         table_entry::divert().
7046         (block_entry::do_divert): If an entry spans multiple columns and a
7047         minimumum width has been specified for each column, then set the
7048         line length to the sum of the widths (plus possibly the column
7049         separations).
7051         * troff/input.cc (set_escape_char): Don't set the escape_char
7052         until after calling has_arg().
7054 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
7056         * tbl/table.cc (table::do_top): Add missing \s0 for double box
7057         case.
7059         * tbl/table.cc (table::print_double_hline): Avoid extra new line
7060         in case where r > nrows - 1.
7062         * tbl/table.cc (BODY_HEIGHT): Deleted.
7063         (LINE_SEP): New definition.
7064         (table::print_single_hline, table::print_double_hline,
7065         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
7066         table::do_row, table::do_top): Use LINE_SEP space before a line
7067         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
7069         * tbl/table.cc (text_entry::print_contents): New function.
7070         (text_string_name, right_text_string_name): Deleted.
7071         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
7072         (simple_text_entry::do_width, numeric_text_entry::do_width,
7073         alphabetic_text_entry::do_width): Don't store the contents of the
7074         entry in a string.
7075         (left_text_entry::simple_print, right_text_entry::simple_print,
7076         center_text_entry::simple_print,
7077         alphabetic_text_entry::simple_print,
7078         numeric_text_entry::simple_print): Print the entry directly
7079         instead of using the stored string.
7081 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
7083         * devps/Makefile: Strip PostScript files.
7084         * devps/prologue: Rename to...
7085         * devps/prologue.ps.
7086         * devps/psstrip.sed: New file.
7087         * devps/download: Use .pfa rather than .ps for installed versions
7088         of fonts.
7090 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
7092         * troff/env.cc (input_trap): Give a warning if the argument is out
7093         of range.
7095         * troff/env.cc (adjust): Treat negative argument as missing. Round
7096         argument > 5 down to 5.
7098         * troff/env.cc (center, right_justify): Make negative argument zero.
7100         * troff/div.cc (page_offset, vertical_position_traps): Treat
7101         invalid argument as missing.
7102         * troff/env.cc (line_spacing, line_length, title_length, indent,
7103         underline, hyphen_line_max_request, control_char,
7104         no_break_control_char, widow_control_request, adjust, input_trap,
7105         point_size): Likewise.
7106         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
7107         constant_space): Likewise.
7108         * troff/input.cc (compatible, shift, warn_request,
7109         set_escape_char): Likewise.
7111         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
7112         * tbl/table.cc (table::table): Likewise.
7114         * Makefile.dev (install_dev): depends on $(DEVFILES).
7116 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
7118         * devX75, devX75-12, devX100, devX100-12: New directories.
7119         * Makefile.in: Add these to DEVDIRS.
7121         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
7122         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
7123         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
7124         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
7125         targets.
7126         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
7127         (uninstall): New target.
7128         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
7129         uninstall_prog, uninstall_dev): New targets.
7131         * troff/div.cc (return_request): Treat an invalid argument as
7132         missing.
7134 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
7136         * tmac/tmac.e ((f): Set up the environment even when there's a
7137         current diversion.  Transperently throughput a call to @N.
7138         (@N): New macro.
7140 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
7142         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
7143         up to vertical resolution.
7145         * tbl/table.cc (table::do_row): Change row number after printing
7146         stuff list.
7148         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
7150 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
7152         * Rename CHANGES to NEWS.
7154 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
7156         * libgroff/new.cc (operator new): Avoid calling malloc(0).
7158 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
7160         * man.ultrix: Removed.
7162 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
7164         * Makefile.comm (extraclean): Delete files whose names begin with
7165         `='.
7167         * pic/troff.cc (troff_output::text): Fix typo in implementation of
7168         aligned text.
7170 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
7172         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
7173         * troff/div.cc (page_length, need_space, space_request): Treat
7174         invalid optional argument as missing.
7175         * troff/env.cc (number_lines): If the first argument is present
7176         but not a number, turn on line numbering, don't change the next
7177         line number and parse the remaining arguments.
7179         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
7181 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
7183         * eqn/box.h: Change declaration accordingly.
7184         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
7185         the specified size was bad but don't give an error.  Check for
7186         overflow.
7187         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
7188         * eqn/lex (do_size): Likewise.
7190 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
7192         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
7193         compatible headers.
7195 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
7197         * tbl/table.cc (table::init_output): Improve error message when
7198         table won't fit on one page.
7200 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
7202         * pic/troff.cc (troff_output::start_picture): Generate line
7203         containing a horizontal motion equal to the width of the picture.
7205         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
7206         using GROFF_COMMAND_PREFIX environment variable.
7208 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
7210         * mdate.sh: Use $NF rather than $(NF).
7212 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
7214         * pic/main.cc (main):  Use %1 not %c in argument to warning.
7216         * eqn/main.cc (main): Output code to check that geqn was given the
7217         correct -T option.
7219 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
7221         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
7222         `ln -s ../Makefile .; make; rm -f Makefile'.
7224         * troff/hyphen: Rename to...
7225         * troff/hyphen.us:
7226         * troff/input.cc (main): Delete -H option. Don't call
7227         read_hyphen_file().
7228         * troff/env.cc: Include searchpath.h and macropath.h.
7229         (exception_dictionary): Deleted.
7230         (ht): Deleted.
7231         (read_hyphen_file): Deleted.
7232         (hyphenation_language): New struct.
7233         (class trie, class hyphen_trie): Move declarations up.
7234         (trie_node::~trie_node): Deleted.
7235         (trie::delete_trie_node): New function.
7236         (trie::do_delete): New pure virtual function.
7237         (hyphen_trie::do_delete): New function.
7238         (trie::~trie): New function.
7239         (hyphen_trie::~hyphen_trie): New function.
7240         (trie::clear): No need to chcek that tp is not 0.
7241         (current_language, language_dictionary): New variables.
7242         (hyphen_word): Give an error if no current language.  Use
7243         exceptions dictionary in current language.
7244         (hyphen_trie::read_patterns_file): Find file using macro_path.
7245         Allow comments (starting with %) in patterns file.  Don't make it
7246         a fatal error if the file can't be found.
7247         (hyphenate): Return if no current language.  Get the exceptions
7248         dictionary and the hyphenation patterns from the current language.
7249         (set_hyphenation_language): New variable.
7250         (hyphenation_patterns_file): New function.
7251         (hyphenation_language_reg): New class.
7252         (hyphenation_language_reg::get_string): New function.
7253         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
7254         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
7255         register.
7256         * groff/groff.cc (main, help, synopsis): Delete -H option.
7257         * include/Makefile.sub: Don't define HYPHENFILE.
7258         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
7259         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
7260         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
7261         hyphenation patterns.
7263 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
7265         * eqn/neqn.sh: New file.
7266         * eqn/Makefile.sub: Handle neqn.sh.
7268         * eqn/eqn.h: Declare `nroff' variable.
7269         * eqn/box.cc (param_table): Add `nroff' param.
7270         (nroff): Define it.
7271         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
7272         variable.
7273         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
7275         * troff/troff.h (WARN_FONT): New warning.
7276         (WARN_TOTAL): Change accordingly.
7277         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
7278         (warning_table): Add WARN_FONT.
7279         * troff/node.cc (mount_font_no_translate): Pass argument to
7280         font::load_font.  If this is non-zero, give a warning.
7281         Don't give an error message when accessing a font that has already
7282         been found to be invalid.
7283         * include/font.h (font::load, font::load_font): Add additional
7284         optional argument which suppresses error message if the font is
7285         not found.
7286         * libgroff/font.cc (font::load_font): Handle additional argument.
7287         (font::load): Add additional argument. If this is non-null, set it
7288         to 1 and don't give error message.
7290         * include/printer.h (printer::end_page): Add argument giving
7291         length of page.
7292         * libdriver/input.cc (do_file): Pass this.
7293         * grops/ps.cc (ps_printer::end_page): Add argument.
7294         * grodvi/dvi.cc (dvi_printer::end_page,
7295         draw_dvi_printer::end_page): Add argument.
7296         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
7297         columns_per_page members. New member nlines.
7298         (DEFAULT_LINES_PER_PAGE): Deleted.
7299         (tty_printer::tty_printer): Don't compute lines_per_page from
7300         font::paperlength. Don't compute columns_per_page from
7301         font::paperwidth.
7302         (tty_printer::add_char): Don't check horizontal position against
7303         columns_per_page. Grow glyphs vector if neccessary.
7304         (tty_printer::end_page): Add argument giving page_length in units.
7305         Discard lines past end of page.
7307 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
7309         * tmac/tmac.tty-char: Fix definition of \(/l.
7311         * tmac/tmac.X: Define \(en.
7313 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
7315         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
7316         lpq, then use lp rather than lpr.
7318         * tmac/tmac.s (par@reset): Don't call `ad'.
7319         (par*env-init): Call `ad'.
7321 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
7323         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
7324         date.
7326         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
7327         * indxbib/indxbib.cc: Likewise.
7329 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
7331         * libgroff/putenv.c: New file.
7332         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
7333         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
7334         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
7335         stdlib.h with AC_HAVE_HEADERS.
7337 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
7339         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
7340         does not exist.
7342 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
7344         * eqn/box.cc (gsize): Make it an int.
7345         (set_gsize): Parse argument handling increment or decrement.
7346         (box::top_level): Convert gsize to a string.
7348         * troff/input.cc (exit_troff): Make buf unsigned char [].
7349         Call to make_temp_iterator casts buf to char*.
7351         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
7353         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
7354         * Makefile.cpg (depend.temp): Likewise.
7356         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
7358         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
7360 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
7362         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
7364 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
7366         * Version 1.06 released.
7368         * Integrate mm 1.04.
7370 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
7372         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
7374 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
7376         * afmtodit/afmtodit.pl: Add -n option that disables generation of
7377         ligatures command.
7378         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
7379         afmtodit. Regenerate.
7381         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
7382         @f back past the current position.
7384         * tmac/tmac.e: Change calls to @R so that comments are not part of
7385         arguments.
7387 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
7389         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
7391         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
7392         check that we can link a call to a function declared in <stdio.h>.
7393         (GROFF_UNISTD_H): New macro.
7394         * configure.in: Call it.
7395         * Makefile.in: Document it.
7396         * include/posix.h: New file.
7397         * troff/troff.h: Don't include <osfcn.h>
7398         * troff/input.cc: Include posix.h.
7399         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
7400         osfcn.h.
7401         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
7402         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
7403         <fcntl.h>.
7404         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
7405         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
7406         * libbib/search.cc (O_RDONLY): Delete definition.
7407         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
7408         Don't include <osfcn.h>.
7410         * acgroff.m4 (GROFF_TIME_T): New macro.
7411         * configure.in: Call it.
7412         * Makefile.in: Document it.
7414         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
7415         * configure.in: Call it.
7416         * Makefile.in: Document -DTRADITIONAL_CPP.
7417         * include/ptable.h: Don't include generic.h.
7418         (name2): Define it.
7420         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
7421         Afterwards remove [T1 and [T2.
7422         (ref*spec!0, ref*spec!2): Use T1 rather than T.
7423         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
7424         (ref*add-T2): Renamed from ref*add-T.
7425         (ref*add-T1): New macro.
7427 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
7429         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
7431         * libbib/index.cc: Include <fcntl.h>.
7432         (O_RDONLY): Define if necessary.
7433         (make_index_search_item, index_search_item_iterator::get_tag,
7434         index_search_item::check_files): Use O_RDONLY.
7435         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
7436         (O_RDONLY): Define if necessary.
7437         (search_list::add_file): Use O_RDONLY.
7438         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
7439         <sys/stat.h>.
7440         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
7441         (main): Use these.
7443         * libbib/index.cc (S_ISREG): Define it if necessary.
7444         (index_search_item::load): Use S_ISREG.
7446         * include/driver.h: Include <errno.h>.
7448 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
7450         * eqn/box.cc (body_height): Increase default value to 85.
7451         (body_depth): Increase default value to 35.
7453 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
7455         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
7456         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
7457         protected from expansion with \E.
7459         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
7461         * Makefile (Makefile): New target.
7463         * Makefile.sub (configure, distfiles): New targets.
7465         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
7466         construct.
7468 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
7470         * eqn/box.cc (param_table): Add body_height and body_depth.
7472         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
7474 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
7476         * psbb/Makefile.sub: Don't link with libgroff.a.
7478         * acgroff.m4 (GROFF_PUTENV): New macro.
7479         * configure.in: Call GROFF_PUTENV.
7480         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
7481         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
7482         is defined.
7484         * troff/env.cc (distribute_space): Rename force_forward argument
7485         to force_reverse.  Reverse the list if force_reverse is true.
7487 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
7489         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
7491         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
7492         height or depth to be negative.  Guard against SUP_RAISE quantity
7493         being negative.
7495 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
7497         * devps/generate/textmap: Add `an' (arrowhorizex).
7498         * tmac/tmac.ps: \(an overlaps horizontally.
7499         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
7501         * devps/symbolchars: Add arrowverttp, arrowvertbt.
7502         * devps/textmap: Add arrowvertex.
7503         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
7504         updownarrow delimiters.
7505         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
7507         * tbl/table.cc (simple_entry::position_vertically,
7508         block_entry::position_vertically):  For a centered entry, perform
7509         the motion in two stages.
7511         * refer/refer.cc (split_punct): Don't call lookup_token if there
7512         is no token.
7514 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
7516         * troff/input.cc (token::next): Delete token_node after copying
7517         token.
7519         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
7520         cur_point_size.
7522         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
7524         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
7526 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
7528         * grops/ps.cc (usage): -b option takes an argument.
7530         * devps/prologue (PLG): New procedure.
7531         * grops/ps.cc (main, usage): New -g option.
7532         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
7533         length using PLG.
7535 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
7537         * include/cset.h: Include <limits.h> if we have it.
7539         * libgroff/illegal.cc: New file.
7540         * include/lib.h (illegal_input_char): Use table.
7541         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
7542         * pic/lex.cc (ARG1): Renumber to 14.
7543         * eqn/lex.cc (ARG1: Likewise.
7545         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
7546         (eg 1.05.90) correctly.
7548 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
7550         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
7551         Rename $r and $R registers to $v and $V.
7552         ($r, $R): Initialize to 0.
7553         (@v, @V): New macros.
7554         (sz): Call @v.
7555         (@M): Call @V.
7557         * troff/input.cc (main, usage): Add -R option that says not to
7558         load troffrc.
7559         * eqn/main.cc (main, usage): Rename -n to -R.
7561 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
7563         * devps/DESC.in: Leave font positions 5-9 blank.
7564         * devdvi/DESC.in: Likewise.
7566         * grog/grog.pl: Handle `.PS <file' correctly.
7568         * troff/input.cc (input_stack::push): Improve error message when
7569         input stack limit exceeded.
7571 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
7573         * refer/refer.cc (main): Fix typo in handling of `a' option.
7575         * refer/refer.cc (do_bib): In state START after a newline remain
7576         in state START.
7578         * groff/groff.sh: Deleted.
7579         * groff/Makefile.sub: Delete handling of groff.sh.
7581         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
7582         to determine whether to use \X'ps:...'.
7583         * tmac/troffrc: Set 0p register to 0.
7584         * tmac/tmac.ps: Set 0p register to 1.
7586         * groff/groff.cc: Support -X option. Give warning for -TXps and
7587         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
7588         * tmac/troffrc: Support -r.X=1.
7590         * pic/troff.cc (troff_output::dot): Don't test
7591         zero_length_line_flag.
7593 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
7595         * include/lib.h: Declare getopt() and friends unless
7596         STDLIB_H_DECLARES_GETOPT is defined.
7598         * doc/chars.tr: Delete.
7599         * man/groff_char.man: New file.
7601 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
7603         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
7604         user has changed register format.
7606 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
7608         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
7609         `postpro' command in DESC file.  Get spooler command from `print'
7610         command in DESC file.  Execute spooler command with /bin/sh.
7612         * groff/groff.cc: Split Unix-specific parts into...
7613         * groff/pipeline.c: New file.
7615         * LICENSE: Delete.
7616         * COPYING: New file.
7617         * all files: Update copyright notices.
7619         * Rearrange files.  Redo Makefiles.  Use autoconf.
7621 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
7623         * troff/input.c (charinfo_to_node_list): Interpret character
7624         definition with escape_char of `\'.
7626 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
7628         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
7629         Define INT_DIGITS as big enough for 64-bit integer.
7630         * lib/strtol.c: Don't include lib.h.
7631         * lib/lib.h: Delete ifdef __cplusplus stuff.
7633 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
7635         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
7636         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
7637         get DESC from current directory.
7639 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
7641         * tbl/main.c (main): Always reset the line number when reading
7642         from stdin.
7644         * tbl/table.c (table::print_single_hline, table::print_double_hline,
7645         table::define_bottom_macro, table::do_row, table::do_top): Round
7646         vertical spacing up to vertical resolution.
7648 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
7650         * ps/ps.h (enum resource_type): Avoid comma at end of
7651         enumerator-list.
7652         * dvi/dvi.c (class dvi_printer): Likewise.
7653         * dvi/tfmtodit.c (gf::load): Likewise.
7654         * refer/label.y (struct expression): Likewise.
7655         * refer/refer.c (class label_processing_state): Likewise.
7656         * refer/indxbib.c (do_file): Likewise.
7657         * troff/troff.c (enum warning_type): Likewise.
7658         * tbl/main.c (process_data): Likewise.
7659         * troff/charinfo.h (class charinfo):
7661 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
7663         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
7665 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
7667         * groff.c: Move to new groff subdirectory.
7668         * groff/Makefile: New file.
7669         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
7671         * man/mdate.sh: Use ls -L if supported.
7673         * Consolidate all header files produced by gendef into lib/defs.h.
7674         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
7675         Don't include path.h.
7676         * lib/Makefile (path.h): Don't generate.
7677         * troff/input.c: Include defs.h. Don't include config.h.
7678         * troff/Makefile (config.h): Don't generate.
7679         * refer/index.h: Don't include suffix.h.
7680         * refer/index.c: Include defs.h.
7681         * refer/indxbib.c: Include defs.h.
7682         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
7683         defs.h.
7684         * refer/Makefile (suffix.h, path.h): Don't generate.
7685         * groff.c: Don't include config.h. Include defs.h.
7686         * Makefile (config.h): Don't generate.
7687         (lib/defs.h): Generate.
7688         (topclean): Remove lib/defs.h.
7690 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
7692         * lib/malloc.c, lib/getpagesize.h: Deleted.
7693         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
7694         related stuff.
7695         * lib/Makefile: Delete malloc-related stuff.
7696         * lib/new.c: Workaround COOKIE_BUG if necessary.
7698         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
7699         needed header files directly.
7700         * refer/refer.h: Omit definition of DEFAULT_INDEX.
7701         * Makefile: Include definition of DEFAULT_INDEX in path.h.
7703 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
7705         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
7706         argument.
7707         * lib/font (font::load_desc, font::load): Don't split argument of
7708         unknown command.
7709         (font::handle_unknown_font_command): Change type.
7710         * ps/ps.c (ps_font::handle_unknown_font_command,
7711         handle_unknown_desc_command): Change type.
7712         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
7714 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
7716         * lib/font.h (font::handle_unknown_font_command): Add file and
7717         line arguments.
7718         * lib/font.c (font::handle_unknown_font_command):
7719         * ps/ps.c (ps_font::handle_unknown_font_command):
7720         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
7721         lineno arguments.  Use _with_file_and_line functions for error
7722         reporting.
7724         * lib/fontfile.c (font::unknown_desc_command_handler): New static
7725         data member.
7726         * lib/font.c (font::set_unknown_desc_command_handler): New
7727         function.
7728         (font::load_desc): For unknown commands, call
7729         unknown_desc_command_handler if not null.
7730         * lib/font.h (class font): Declare them.
7731         (FONT_COMMAND_HANDLER): New typedef.
7732         * ps/ps.c (handle_unknown_desc_command): New function.
7733         (main): Set bflag if we had a -b option. Call
7734         font::set_unknown_desc_command_handler.
7735         (broken.h): Don't include.
7736         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
7737         submake 
7738         * ps/devps/Makefile: Add `broken' command to DESC file using
7739         BROKEN_SPOOLER_FLAGS.
7741         * macros/tmac.e ([, ]): Add as synonyms for { and }.
7743         * macros/tmac.e ($p): Only exdent if \$3 > 0.
7745         * macros/tmac.e (@R, @S): New macros.
7746         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
7747         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
7748         Declare $H, $[0-9], .. macros with @S.
7749         Declare |0, |1, |2, |3 strings with @S.
7751         * macros/tmac.e (@S): Rename to @U.
7753         * macros/tmac.e (@z): Define @b and bp as empty instead of
7754         deleting them,
7756         * macros/tmac.e (@m): Deleted.
7757         (@h): Don't call @m.
7758         (@z): Don't set @m trap.
7760         * macros/tmac.e ($h, $f): Define |z as empty string.
7762         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
7763         (@q): Likewise.
7765         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
7766         removing them.
7767         ()f): Likewise for * register.
7769         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
7770         argument is missing, don't change $R.  Call sr with three
7771         arguments when initializing.
7773 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
7775         * macros/tmac.e (sr): New macro.
7776         Initialize $r and $R using sr.
7778         * macros/tmac.e (,): Delete \*(#[.
7780         * troff/env.c (set_tabs): Read the tab type even if the position
7781         is bad.  Allow the position of the first tab stop to be negative.
7783 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
7785         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
7786         _POSIX_VERSION.
7787         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
7788         rather than -DPATHCONF_MISSING.
7789         * Makefile: Get rid of PATHCONF_MISSING.
7791         * refer/map.c: New file.
7792         * refer/index.c: Interface to mmap through map.c.  Rename map_size
7793         to map_len.
7794         * refer/Makefile: Handle map.c.
7795         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
7797 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
7799         * Makefile: RANLIB should be `true' if there is no ranlib.
7800         * lib/Makefile (libgroff.a): Simplify.
7801         * driver/Makefile (libdriver.a): Simplify.
7803         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
7804         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
7805         defined.
7807 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
7809         * troff/env.c (compare_ranges): Declare as extern "C".
7811         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
7813         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
7815 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
7817         * pic/troff.c (troff_output::text): Merge in grops_output::text,
7818         but conditionalize use of \X based on \*(.T.
7819         (grops_output::*): Deleted.
7820         * pic/output.h: Delete declaration of make_grops_output.
7821         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
7822         by default. -n sets it to 0.
7823         (usage): Corresponding changes.
7824         * groff.c (main): Don't pass -x or -p to pic.
7825         * groff.sh: Likewise.
7827         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
7828         to be non-zero.
7830         * ps/devps/afmtodit: Change calculation of asc_boundary and
7831         desc_boundary.  Make these bounds inclusive.
7832         * ps/devps: Regenerate font files.
7834 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
7836         * macros/tmac.latin1: New file.
7837         * macros/tmac.tty-char: Use tmac.latin1.
7838         (tmac.tty-tr): Deleted.
7839         * macros/Makefile: Install tmac.latin1.
7840         * macros/tmac.dvi: Use tmac.latin1.
7841         * macros/troffrc: Translate \[char160] onto no-break space here.
7842         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
7844 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
7846         * macros/tmac.Xps: Use `do' request.
7848         * macros/tmac.ps: Use `do' request.
7850         * macros/tmac.e (@C): Use `do' request.
7852         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
7853         * macros/Makefile: Install tmac.X*.
7855         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
7856         * tty/Makefile: Don't install tmac.tty*.
7857         * macros/Makefile: Install tmac.tty*.
7859         * dvi/tmac.dvi: Move to macros.
7860         * dvi/Makefile: Don't install tmac.dvi.
7861         * macros/Makefile: Install tmac.dvi.
7863         * ps/tmac.ps*: Move to macros.
7864         * ps/Makefile: Don't install tmac.ps*.
7865         * macros/Makefile: Install tmac.ps*.
7867         * eqn/box.c: Provide draw_lines parameter corresponding to -D
7868         option.
7869         * macros/eqnrc: Set draw_lines parameter based on device.
7870         * groff.c: Don't pass -D flag to eqn.
7871         * groff.sh: Likewise.
7872         * eqn/main.c: Warn about use of -D.
7874         * troff/input.c (process_startup_file): New function.
7875         (main): Call process_startup_file().
7876         * macros/troffrc: New file.
7877         * macros/Makefile: Install troffrc.
7878         * groff.c (main): Don't pass extra -m option to troff. For a 
7879         pseudo device pass the name of the pseudo device to troff using
7880         -d.
7881         * groff.sh: Likewise.
7882         * groff.c (possible_command::prepend_arg): Deleted.
7884         * troff/input.c (do_request): New function.
7885         (init_input_requests): Bind "do" to do_request.
7887         * eqn/main.c (main): Instead of loading eqnchar from device directory,
7888         load eqnrc from macro directory.
7889         * macros/eqnrc: New file.
7890         * macros/Makefile: Install eqnrc.
7891         * ps/devps/eqnchar: Deleted.
7892         * ps/devps/Makefile: Don't install eqnchar.
7893         * dvi/devdvi/eqnchar: Deleted.
7894         * dvi/devdvi/Makefile: Don't install eqnchar.
7895         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
7896         variable optM.
7898         * lib/device.[ch]: New files.
7899         * lib/font.h (font::set_device_name, font::get_device_name):
7900         Deleted.
7901         * lib/fontfile.c: Use device.h.
7902         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
7903         * troff/input.c: Delete definition of `device'.
7904         (main): Don't initialize device.
7905         * troff/troff.h: Include device.h rather than declaring device.
7906         * troff/Makefile: No need to handle DEVICE.
7907         * driver/input.c: Include device.h. Don't use
7908         font::{set,get}_device_name.
7909         * groff.c, Makefile: Rename device.h to config.h.
7910         * groff.c: Use library device variable.
7911         * eqn/main.c: Use library device variable.
7912         * eqn/Makefile: No need to handle DEVICE.
7914         * lib/searchpath.[ch]: New files.
7915         * lib/Makefile: Handle searchpath.[ch].
7916         * troff/input.c (open_file, init_dirs): Deleted.
7917         (macro_dirs): Deleted.
7918         (open_mac_file, macro_source): Use class search_path.
7919         (add_string, struct string_list): Move definition.
7920         (main): Change -M option to use macro_path. Delete call to
7921         init_dirs().
7922         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
7923         Rewrite to use class search_path.
7924         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
7925         * lib/Makefile: fontfile.c depends on searchpath.h.
7926         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
7927         MACROPATH.
7928         * lib/macropath.[ch]: New files.
7929         * troff/Makefile: No need to handle MACROPATH.
7931         * troff/input.c: Delete DUMP code.
7932         * lib/fontfile.c, lib/font.h: Delete
7933         font::forget_command_line_font_dirs.
7935         * troff/input.c (push_token): New function.
7936         (handle_first_page_transition): Use push_token().
7937         (process_input_stack): Change handling of a space at the beginning
7938         of the line.
7940 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
7942         * troff/input.c (font_dirs): Delete unused variable.
7944         * eqn/lex.c (do_set): Correct error messages.
7946 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
7948         * troff/input.c (do_define_string): Allow the string name to be
7949         followed immediately by a tab.
7950         (define_character): Likewise.
7952 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
7954         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
7955         be negative.
7957         * troff/input.c (input_iterator::is_file): New virtual function.
7958         (file_iterator::is_file): New function.
7959         (input_stack::end_file): New function.
7960         (input_stack::next_file): Handle the situation where there is no
7961         file on the input stack correctly.  Avoid making two passes over
7962         the input stack.
7963         (next_file): Make the filename optional; in this case call
7964         input_stack::end_file().
7966 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
7968         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
7969         produce a real _ charater when the current font is CW and _
7970         otherwise.
7972         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
7973         expression to work around gcc 2.2 bug.
7975 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
7977         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
7979         * troff/env.c (environment::add_padding): New function.
7980         (environment::add_char): Use add_padding().
7981         (environment::space): Likewise.
7982         (environment::wrap_up_field): Add some padding if there is none
7983         and there's no current tab.
7984         * troff/env.h: Declare environment::add_padding.
7986 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
7988         * pic/pic.y: undef fmod and rand before declaring them.
7990 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
7992         * troff/input.c (main): If the DESC file specifies a font name of
7993         0, then leave the corresponding font position empty.
7995         * nroff.sh: New file.
7996         * Makefile (install.nobin): Install nroff.sh.
7998         * tty/devlatin1/R.proto: Add ao as synonym for de.
7999         * tty/tmac.tty-char: Define ao as o.
8001         * tty/dev{ascii,latin1}/R.proto: Add aq.
8002         * tty/tmac.tty-char: Delete definition of aq.
8004 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
8006         * troff/input.c (init_charset_table): Don't translate 0240.
8007         * ps/tmac.ps: Translate char160 to space.
8008         * dvi/tmac.dvi: Likewise.
8009         * tty/tmac.tty: Likewise.
8011 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
8013         * dvi/tmac.dvi: Add support for all Latin-1 characters.
8015         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8016         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8017         \(oe, \(r?, \(r!.
8019         * tty/tmac.tty-char: Add \(ah.
8021         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8022         No need to define \(FM and \(!/. Conditionalize all character
8023         definitions.
8025         * ps/devps/lgreekmap: Add +h, +f, +p.
8027         * ps/tmac.psnew: New file.
8028         * ps/Makefile: Install tmac.psnew.
8030         * troff/input.c (charinfo_to_node_list): Don't ever interpret
8031         character definitions in compatible mode.
8033         * troff/input.c (remove_character): New function.
8034         (init_input_requests): Bind remove_character to "rchar".
8036         * ps/tmac.psold: New file.
8037         * ps/Makefile: Install tmac.psold.
8038         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8039         characters into tmac.psold.  Make these definitions unconditional.
8041         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8043         * ps/tmac.ps: Don't define \('c and \('C.
8045         * ps/devps/textmap: Move Greek characters to...
8046         * ps/devps/symbolchars:
8048 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
8050         * ps/devps/text.enc: Add quotesingle.
8051         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8052         * tty/tmac.tty-char: Likewise.
8053         * dvi/devdvi/texmi.map: Add +h, +f, +p.
8054         * dvi/devdvi/texi.map: Add Fn.
8055         * dvi/devdvi/msam.map: Add lz.
8056         * dvi/tmac.dvi: Handle Bq, bq, aq.
8058         * pic/lex.c (get_token): Recognize 'th.
8059         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
8061 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
8063         * ps/devps/textmap: Move di, mu, +- to...
8064         * ps/devps/symbolchars:
8066         * macros/tmac.s (@XS): Don't call par@reset or fi.
8067         (XA): Call LP. Turn off adjustment. Reduce line length.
8069         * macros/tmac.s: Initially alias XS to LP.
8070         (XS): Rename to @XS.
8071         (cov*ab-init): Alias XS to @XS.
8073 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
8075         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
8076         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
8077         (token::is_size, token::changes_env): Deleted.
8078         * troff/number.c (parse_term): No need to process \s explicitly.
8079         Call tok.next() only after scale indicator has been processed.
8080         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
8081         \f etc explicitly.
8082         (token::next): Handle \s, \f, \S, \H immediately rather than
8083         returning them as tokens.
8084         (token::operator==, token::description, token::add_to_node_list,
8085         token::process): Remove handling of deleted tokens.
8087         * troff/env.c (environment::add_char): When adding padding
8088         indicator character, call start_line() if necessary.
8090 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
8092         * ps/devps/afmtodit: Don't output 0 kerns.
8094         * ps/devps/afmtodit: Remove directory from name of encoding in
8095         font description file.
8097         * ps/devps/afmtodit: Improve error messages.
8099         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
8101         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
8102         * ps/devps/FontMakefile: Deleted.
8103         * ps/devps/afmname: New file.
8105         * ps/devps/symbol.sed: New file.
8106         * ps/devps/symbol.diff: Deleted.
8107         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
8108         Generate zapfdr.afm from zapfd.afm.
8110         * tty/tmac.tty (tty-char): Prefix definition with ".
8112         * macros/tmac.an (TP): Don't start a diversion if one has already
8113         been started.
8115         * tty/tmac.tty-char: Add Latin-1 characters.
8117         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
8119 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
8121         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
8122         Move declaration of struct horizontal_span.
8124         * tbl/table.c (table::table): Initialize span_list.
8125         (table::~table): Delete span_list.
8127         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
8129         * ps/devps/Makefile: Avoid dependency on GNU make.
8131         * ps/tmac.ps: Check that character does not already exist before
8132         defining it.
8134         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
8135         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
8136         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
8137         files.
8139         * tty/tmac.tty-char: New file.
8140         * tty/Makefile: Install tmac.tty-char.
8141         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
8142         tmac.tty-char.
8144         * tty/tmac.tty: Fix definition of \(34.
8146         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
8147         bracket-drawing characters onto |. Add *o.
8149         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
8150         only if current_field.
8152         * troff/dictionary.c (dictionary::lookup): Free old_table after
8153         rehashing. 
8155 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
8157         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
8158         whose glyphs are identical to glyphs of some Roman character.
8160         * tty/devlatin1/R.proto (bu): Deleted.
8161         * tty/devascii/R.proto (bu): Deleted.
8162         * tty/tmac.tty: Add definition of \(bu.
8164         * eqn/main.c (do_file): Pass FILE as argument.
8165         (main): Automatically load eqnchar.  New options -F and -n.
8166         Pass do_file an opened FILE.
8167         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
8168         No need to include font.h.
8169         * groff.sh: Likewise.  Don't need to use - for standard input.
8170         Prefix files with -- if first file starts with -.
8172         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
8174         * troff/env.c (environment::possibly_break_line): Don't set line
8175         to 0 across call to output_line().  Don't call output_line() until
8176         after discarding nodes after break.
8178 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
8180         * request.h (macro::empty): Declare it.
8181         * input.c (macro::empty): New method.
8182         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
8183         macro is empty.
8185 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
8187         * troff/env.c (environment::start_field): Decrement space_total
8188         when a space is frozen.
8190 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
8192         * macros/tmac.an (R): Delete macro.
8194         * troff/input.c (get_copy, token::next): Support \# (like \" but
8195         newline is ignored).
8197         * troff/input.c (token::next): Fix error message in 'Y' case.
8199 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
8201         * eqn/delim.c (define_extensible_string): Recognize any prefix of
8202         a delimiter name.
8204 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
8206         * c++test.c: Include <osfcn.h>.
8208         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
8209         <errno.h> doesn't.
8211 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
8213         * tbl/table.c (table::divide_span): Don't count column separation
8214         if expand was specified.
8216         * tbl/main.c (process_format): Don't ignore width specs in
8217         continued format.  Give warning for changing equal widths or
8218         column separation in continued format.
8219         (process_data): Set column separation, minimum width, equal
8220         columns at end of table.
8222 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
8224         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
8225         node::add_discretionary_hyphen): Use soft_hyphen_char.
8226         (set_soft_hyphen_char): New function.
8227         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
8229         * Makefile (c++tested): Give more helpful message if test fails.
8231 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
8233         * troff/input.c (init_charset_table): Translate 0240 to
8234         an unbreakable space.
8236         * troff/token.h (token::hyphen_indicator): New function.
8237         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
8238         translation.
8239         * troff/input.c (translate): Allow translation to \%.
8240         * troff/node.c (node::add_char): Handle
8241         TRANSLATE_HYPHEN_INDICATOR.     
8242         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
8244         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
8245         for \(hy.
8247         * tty/devlatin1/R.proto: \(hy and - should print as 055.
8249 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
8251         * groff.c (run_commands): If the last command gets a SIGPIPE send
8252         a SIGPIPE to all children than haven't yet terminated.  When
8253         command terminates, set pid field to -1.
8255 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
8257         * groff.c (main): Pass an appropriate -filename option to gxditview.
8259 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
8261         * Makefile.bd (install): Remove existing program before copying.
8263         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
8264         programs which have Unix counterparts to be installed with
8265         user-specified prefix.
8267         * troff/input.c (exit_troff): Don't check if exit_started.
8268         (exit_request): Don't call exit_troff if exit_started.
8270         * Makefile.bd (install.mm): Rename to install.dwbmm.
8272 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
8274         * driver/input.c (do_file): Add missing break for '#' case.
8276 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
8278         * troff/input.c (input_stack::clear):  Clear past any boundaries and
8279         then add the boundaries back.
8281         * troff/input.c (exit_troff): Return immediately if already
8282         exiting.
8284         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
8285         end macro.
8286         (pg*end-page): If the text has ended and there are no more
8287         footnotes or keeps, exit.
8289         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
8291         * troff/input.c (init_charset_table): Make \(rq transparent by
8292         default.
8294         * macros/tmac.an: Define lq and rq strings.
8296         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
8298 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
8300         * troff/env.c (environment::final_break): New function.
8301         (environment::newline): Set prev_line_interrupted to 2 if
8302         exit_started.
8303         * troff/env.h: Declare environment::final_break.
8304         * troff/input.c (exit_troff): Call environment::final_break()
8305         instead of environment::do_break().
8307         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
8308         doesn't already exist.
8309         * macros/man.local: New file.
8310         * macros/tmac.an: Load man.local.
8311         * macros/man.ultrix: New file.
8313 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
8315         * troff/input.c (exit_groff): Rename to...
8316         (exit_troff): New function.
8318         * troff/div.c (exit_started, done_end_macro,
8319         seen_last_page_ejector): New global variables.
8320         (began_page_in_end_macro): New static variable.
8321         (exit_flag): Deleted.
8322         (top_level_diversion::top_level_diversion): Initialize
8323         last_page_count.
8324         (top_level_diversion): More elaborate test for whether
8325         cleanup_and_exit() should be called.
8326         Set began_page_in_end_macro if the end macro isn't yet finished.
8327         * troff/div.h (top_level_diversion::last_page_count): New data
8328         member.
8329         (top_level_diversion::set_last_page): New function.
8330         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
8331         * troff/env.c (do_break): Zero prev_line_interrupted.
8332         * troff/input.c (exit_flag): Delete declaration.
8333         (LAST_PAGE_EJECTOR): New magic cookie.
8334         (token::next): Handle LAST_PAGE_EJECTOR.
8335         (exit_groff): Set exit_started and done_end_macro instead of
8336         exit_flag.  Call top_level_diversion::set_last_page.  Push a
8337         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
8338         another ejection after setting seen_last_page_ejector.
8340 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
8342         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
8344         * macros/tmac.e (TH): Make sure there's room for the initial
8345         header.
8347         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
8348         Set FVS in points rather than units.
8350 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
8352         * troff/div.c (top_level_diversion::add_trap): Don't consider the
8353         position of empty slots.
8355 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
8357         * ps/devps/S: Fix height and depth of parenrightex.
8358         * ps/devps/symbol.diff: Regenerate.
8360 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
8362         * tmac.e (u): Do underlining as in -mgs.
8364 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
8366         * tty/tty.c (tty_printer::end_page): If overstriking is
8367         suppressed, still turn overstruck horizontal and vertical lines
8368         into +.
8370         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
8371         2.1.
8373         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
8375 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
8377         * Version 1.05 released.
8379 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
8381         * tty/tty.c: Instead of keeping an array of glyphs and then
8382         sorting it, keep a ordered linked list of glyphs for each line.
8384         * driver/driver.h: Include stddef.h.
8386         * tty/tty.c (compare_glyph):
8387         * refer/refer.c (rcompare):
8388         * troff/env.c (compare_ranges): Arguments of qsort comparison
8389         function should be const void *.
8391         * troff/number.c (parse_term):
8392         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
8393         switch statement.
8395         * refer/label.y (consider_authors): Don't access variables
8396         constructed under a condition outside that condition: put braces
8397         round for statement containing declaration; redeclare use of same
8398         variable later.
8400         * pic/pic.y (text_expr): Delete production that allows
8401         parenthesised text_expr.
8402         (expr): Allow a conditional_expr to appear in parentheses.
8403         (conditional_expr): Rename to any_expr.
8405         * mm: Install new version 1.01 from jh.
8407         * lib/font.c (font::get_width): Cache scaled widths.
8408         (font::font): Initialize widths_cache.
8409         (font::~font): Destroy widths_cache.
8410         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
8412 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
8414         * c++test.c, c++test.ref: New files.
8415         * Makefile: Check that the C++ compiler works.
8417         * ps/tmac.pspic (PSPIC): Do a break.
8419         * ps/tmac.ps: Move definition of PSPIC into...
8420         * ps/tmac.pspic: New file.
8421         (PSPIC): Draw box around picture, but make it invisible to grops.
8422         * ps/tmac.ps: Load tmac.pspic.
8423         * ps/Makefile: Install tmac.pspic.
8425 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
8427         * lib/font.c (scale_round): If n is negative,
8428         subtract .5 before truncating floating point result.
8430         * lib/fontfile.c: Include <errno.h>.
8432 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
8434         * driver/input.c (get_char): Inline. Don't update current_lineno.
8435         Change callers to up date current_lineno if necessary.
8436         Use get_char() instead of getc(current_file).
8438 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
8440         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
8442 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
8444         * tty/tty.c (tmac.tty): Define \(rg as (R).
8446 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
8448         * lib/lib.h: New define a_delete.
8449         * Use a_delete instead of delete when deleting an array of objects
8450         without destructors.
8452         * lib/lib.h: Rename adelete to ad_delete.
8453         * Change uses of adelete.
8455 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
8457         * eqn/eqn.y: Include lib.h.
8459         * troff/node.c (grow_font_table): Delete old_font_table.
8461         * mm: Install new version from jh.
8463 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
8465         * tbl/table.h (format_type): Make global instead of local to class
8466         entry_format.  Prefix enumerators with FORMAT_.
8467         * tbl/table.c, tbl/main.c: Corresponding changes.
8468         * refer/token.h (token_type): Make global.  Prefix enumerators
8469         with TOKEN_.
8470         * refer/token.[ch]: Corresponding changes.
8471         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
8473         * troff/div.c (node::set_vertical_size): Don't name argument.
8475 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
8477         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
8478         * lib/lib.h: Define adelete accordingly.
8479         * pic/object.c (graphic_object::graphic_object):
8480         * tbl/main.c (format::~format):
8481         * tbl/table.c (table::~table):
8482         * refer/ref.c (reference::~reference, reference::merge,
8483         reference::insert_field, reference::delete_field): Use adelete.
8485         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
8486         * refer/token.h:
8487         * tbl/table.h: Corresponding changes.
8489         * common.c (common_output::dashed_arc, common_output::dotted_arc):
8490         Ensure total_angle is positive.
8492 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
8494         * refer/ref.c (reference::merge, reference::insert_field,
8495         reference::delete_field): Avoid delete[0].
8497         * refer/token.c (init_special_chars): Move calls to cmupper
8498         outside calls to init_two_char_letter to work around bug in gcc
8499         2.0.
8501 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
8503         * lib/new.c (operator new): Use __builtin_new for g++.
8505         * pic/object.c (graphic_object::~graphic_object):  Don't use
8506         delete [] on 0.
8508         * pic/object.c (output::compute_scale): Initialize max_width and
8509         max_height.
8511 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
8513         * troff/input.c (write_request): Call fflush.
8515         * troff/node.h (class composite_node): Move declaration to node.c
8516         * troff/input.c (charinfo_to_node): Rename to ...
8517         (charinfo_to_node_list): Return node list rather than composite
8518         node.
8519         * troff/node.c (make_composite_node): New function.
8520         (make_node, add_char): Call make_composite_node instead of
8521         charinfo_to_node.
8522         (class composite_node): Add a tfont * member.  Delete font_size
8523         member.
8524         (composite_node::composite_node, composite_node::copy,
8525         composite_node::size): Corresponding changes.
8526         (composite_node::tprint): Provide constant spacing, emboldening
8527         and track kerning as specified in tfont.
8528         (composite_node::width): Change width calculation accordingly.
8529         * troff/env.h (environment::composite): New member.
8530         (environment::is_composite, environment::set_composite): New
8531         functions.
8532         * troff/env.c (environment::environment): Initialize composite.
8533         * troff/input.c (charinfo_to_node): Call
8534         environment::set_composite.
8535         * troff/node.c (make_composite_node, make_glyph_node): Use the
8536         plain version of the tfont if the environment is composite.
8538         * troff/node.c (font_info::get_space_width): Additional argument
8539         giving space_size.  Handle constant space correctly. Scale by
8540         space_size unless constant spaced.
8541         (env_sentence_space_width): New function.
8542         * troff/node.h: Declare it.
8543         * troff/env.h (environment::get_space_size,
8544         environment::get_sentence_space_size,
8545         environment::get_narrow_space_width,
8546         environment::get_half_narrow_space_width): Make inline.
8547         (environment::get_space_width): Make inline.  Just call
8548         env_space_width.
8549         * troff/env.c: Delete definitions for funtions made inline.
8550         (environment::space_newline, environment::space): Use
8551         env_sentence_space_width(). Don't scale by space_size.
8552         * troff/node.h: Move declarations of env*space_width() functions
8553         into env.h.
8555 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
8557         * macros/tmac.s (PS): Don't try to set negative indent.
8559 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
8561         * pic/pic.y: Fix min function.
8563 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
8565         * man/mdate.sh: Clear LANGUAGE.
8567 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
8569         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
8570         * pic/lex.c: New COMMAND keyword.
8571         * pic/pic.y (print_args, print_arg): New rules.
8572         (placeless_element): Use print_args for PRINT.
8573         New COMMAND element.
8575 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
8577         * troff/input.c (terminal): Handle missing argument correctly.
8579         * pic/pic.y (text_expr): New rule.
8581         * pic/pic.y: Implement := operator.
8583 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
8585         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
8586         mdoc.
8588 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
8590         * ps/devps/dingbatsrmap: Include this in the distribution.
8592         * macros/tmac.doc: Replace with new version from 2nd Networking
8593         Release. Fix loading of doc-* files.
8594         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
8595         * macros/tmac.doc.old: New file.  Apply fixes that had been
8596         applied to old tmac.doc.
8597         * macros/tmac.andoc: Check that we're running under groff.
8598         * macros/Makefile: Rework.
8600 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
8602         * tbl/table.h (format_type): 
8603         * refer/token.h (token_type): If NESTED_TYPES is defined, use
8604         typedef to make these types visible at file scope.
8605         * Makefile: Add NESTED_TYPES configuration option.
8607         * troff/div.c (mark): At the top level use the value of
8608         nl_reg_contents rather than the current vertical position.
8610 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
8612         * tty/tty.c: Implement \D for horizontal or vertical lines.
8613         (tty_printer::set_char): Use vec_used+2 as serial number.
8614         Don't allow size of vector to exceed USHRT_MAX-2.
8615         Split off part into...
8616         (tty_printer::add_char): New function.
8617         (tty_printer::draw): New function.
8618         (compare_glyph): Handle equal serial numbers.
8619         (tty_printer::end_page): Handle overstruck characters from \D.
8620         (main, usage): Implement -d option.
8622 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
8624         * tbl/main.c (process_format):
8625         * eqn/text.c (split_text):
8626         * troff/input.c (token::next): Use inner block for declarations
8627         with initializers in switch statement.
8629 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
8631         * pic/common.c (common_output::dash_line): Cope with zero-length
8632         lines.
8634 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
8636         * Version 1.04 released.
8638 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
8640         * macros/tmac.an (TH): Define a macro an-init to define variables
8641         based on command line arguments.
8642         (an-header): Call it.
8644 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
8646         * Makefile (install.mm): Rename to install.dwbmm.
8648         * Makefile: Integrate mm.
8649         * mm: New directory.
8651 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
8653         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
8654         <sys/types.h>.
8656         * pic/troff.c (troff_output::simple_spline,
8657         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
8658         shadowing parameter.
8660         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
8662         * lib/ptable.h: Add explicit casts when converting from unsigned
8663         long to unsigned.
8665         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
8666         * dvi/devdvi/Makefile: Install SA, SB.
8668         * refer/indxbib.c: Add declaration of mktemp.
8670         * refer/lookbib.c: Add declaration of isatty.
8672 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
8674         * pic/lex.c (interpolate_macro_with_args):  While collecting
8675         arguments, keep track of whether we're in a string.
8677 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
8679         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
8680         down with \v, so as to avoid problems with top of page trap
8681         setting no space mode.
8683 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
8685         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
8687 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
8689         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
8690         Improve error message.
8692 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
8694         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
8695         printf("%03o");
8697 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
8699         * groff.c (possible_command::execp): Always use _exit() after a
8700         failed exec.
8702         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
8703         NO_SYS_WAIT_H   configuration options.
8704         * groff.c: Use these options.  Use POSIX-style macros to extract
8705         fields from the status returned by wait().
8707 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
8709         * tbl/table.c (table::compute_separation_factor): Allow the
8710         separation factor to drop to 0.
8712 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
8714         * refer/search.c: Include <errno.h>.
8716 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
8718         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
8720         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
8721         C++. 
8723         * pic/lex.c (input_stack::bol): Move definition out of class body.
8725         * pic/main.c: On MSDOS munge argv[0].
8727         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
8729         * lib/ptable.c (hash_string): Use unsigned long rather than
8730         unsigned.
8731         (next_ptable_size): Use unsigned rather than int.  Give an error
8732         message if we've hit the largest table size.
8733         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
8734         table size.
8736         * pic/object.h (object_spec): Make flags unsigned long.  Declare
8737         flags as const unisgned long rather than as enums.
8739         * pic/output.c: Deleted.
8741         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
8743         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
8744         Add additional argument.
8745         (line_entry::note_double_vrule_on_{left,right}): Set value of
8746         douvle_vrule_on_{right,left} flag according to argument.
8747         (simple_line_entry::simple_print,
8748         simple_line_entry::double_line_print): If adjacent to double vrule
8749         on a corner extend rather than shorten the rule by half the double
8750         vrule sep.
8752         * troff/number.c (parse_term): In checking for overflow, handle the
8753         case where the current horizontal position is negative.
8755 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
8757         * pic/object.c (draw_arrow): Check for object having zero length.
8759 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
8761         * eqn/main.c (do_file): Split off inline equation handling into...
8762         (inline_equation): New function.  Search for starting delimiter
8763         using...
8764         (delim_search): New function. Don't recognize a delimiter that
8765         occurs in the name of an escape sequence, number register, string
8766         etc.
8768 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
8770         * eqn/delim.c (delim_box::compute_metrics): Don't call
8771         define_extensible_string if left is 0.
8772         (delim_box::output):  Don't print the left delimiter if left is 0.
8773         (delim_box::debug_print): Check for left == 0 before calling printf.
8775 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
8777         * troff/Makefile (majorminor.c): Include only digits in
8778         minor_version.
8780 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
8782         * refer/dirnamemax.c: new file.
8783         * refer/genlimits.c: Deleted.
8784         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
8785         Don't check path length.
8786         * refer/Makefile: Add dir_name_max.o; delete genlimits.
8787         * Makefile: Add PATHCONF_MISSING option.
8789         * refer/indxbib.c (get_cwd): New function.
8790         (main): Use get_cwd().
8791         * lib/getcwd.c: New file.
8792         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
8793         GETCWD in SUBFLAGS.
8794         * lib/Makefile: Compile getcwd.o.
8796         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
8797         userdict.
8799         * refer/indxbib.c (main): Check success of mktemp.
8801         * lib/tmpfile.c: New file.
8802         * lib/Makefile: Add tmpfile.c.
8803         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
8804         * ps/ps.h: Delete declaration of mktemp().
8805         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
8806         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
8807         * driver/driver.h: No need now to include errno.h.
8809         * everywhere: Set errno to 0 before calling fopen().
8811         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
8812         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
8813         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
8815 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
8817         * troff/env.h (translate_space_to_dummy): Declare it.
8818         * troff/env.c (environment::space_newline, environment::space):
8819         If translate_space_to_dummy is set then make the width of spaces 0.
8820         * troff/input.c (translate): If the second character of a
8821         translation is a space, translate to unbreakable space.  If the
8822         first character is a space, set or clear translate_space_to_dummy
8823         according to whether the second character is \&.  Weird!
8825 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
8827         * groff.c (run_commands): Don't use non-zero exit code because a
8828         command gets SIGPIPE.
8830         * groff.c, groff.sh: Use -mXps with -TXps.
8832         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
8833         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
8834         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
8835         (ps_printer::special): New specials invis and endinvis.
8836         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
8837         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
8838         (ps_printer::end_page): Check that invis_count == 0.
8839         (ps_printer::invis_count): New member.
8840         (ps_printer::ps_printer): Initialize invis_count to 0.
8842         * troff/env.c (environment::hyphenate_line): Hyphenation
8843         indicator at beginning of word inhibits splitting after -, \(em
8844         etc.
8846         * pic/pic.y (element): Allow another element to follow } without
8847         any intervening separator.
8849 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
8851         * pic/lex.c (get_delimited): Allow tabs before delimiter.
8853 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
8855         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
8856         declaration of wait() in header files.
8857         * Makefile: Get rid of -DHAVE_UNION_WAIT.
8859         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
8861         * lib/lib.h: Declare return type of strerror as char *.
8863         * man/Makefile: Add g flag to sed substitutions.
8864         * Makefile (shgroff, bindist): Likewise.
8866 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
8868         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
8869         * ps/devps/prologue (PBEGIN): Define showpage after pushing
8870         userdict.
8872 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
8874         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
8875         userdict.
8877 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
8879         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
8880         group.
8882 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
8884         * troff/input.c (define_number_reg):  If currently undefined,
8885         don't define it if the argument is an invalid expression.
8887         * Makefile: Ignore return value of `if' commands without `else'
8888         parts.
8890         * Makefile: Split up CPPDEFINES into a series of separate
8891         configuration options.
8893         * troff/input.c (init_registers): Use time_t instead of long
8894         unless LONG_FOR_TIME_T is defined.  Use returned result rather
8895         than passing pointer.
8896         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
8898         * lib/Makefile (fontpath.h): Use gendef.
8900 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
8902         * troff/input.c (input_iterator::shift): Delete argument name.
8903         * troff/node.c (suppress_output_file::really_begin_page,
8904         suppress_output_file::really_transparent_char, node::ascii_print,
8905         node::tprint): Delete names of unused arguments.
8907 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
8909         * refer/label.y (string):  Pass $4 to command_error.
8911 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
8913         * Version 1.03 released.
8915 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
8917         * Makefile: Pass definition of SHELL in SUBFLAGS.
8919         * gendef: New file.
8920         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
8921         ps/Makefile: Use gendef to construct header files that are
8922         constructed from the Makefile.
8924         * macros/Makefile: make all should build stripped version of tmac.e.
8926         * refer/Makefile (clean): Remove y.output.
8928 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
8930         * ps/pfbtops.c (main): Add -v option which prints out a version
8931         number.
8932         * ps/Makefile (pfbtops): Link with libgroff.a.
8934 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
8936         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
8937         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
8939         * refer/lkbib.c (main): Always terminate reference with blank
8940         line.
8941         * refer/lookbib.c (main): Likewise.
8943         * refer/linear.c (file_buffer::load): Check that the file is not a
8944         binary file.
8946         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
8947         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
8948         Delete second inclusion of <sys/param.h>.
8950 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
8952         * troff/token.h (token::special): Deleted.
8954         * tbl/main.c (process_format): Rework so that opt->tab_char is
8955         recognized only when appropriate.
8957         * ps/Makefile (clean): Remove pfbtops.
8959 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
8961         * lib/font.c (text_file::next): Don't return if we have got a
8962         blank line.
8964 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
8966         * refer/refer.c (store_reference): Get hash code from old_table[i]
8967         when rehashing the table.
8969 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
8971         * eqn/box.c (box::top_level): Save size and prev size using \R and
8972         restore it afterwards. Set the size to the size at the beginning
8973         of the line.
8974         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
8975         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
8977         * refer/Makefile (limits.h): Use ./genlimits.
8979 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
8981         * refer/index.c: Delete declarations of stat() and fstat().
8983 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
8985         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
8987 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
8989         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
8991 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
8993         * troff/input.c (token::get_char): Handle \e.
8995         * refer/linear.c: Delete declarations of fstat() and stat().
8997 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
8999         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9000         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9002 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
9004         * troff/input.c (do_define_macro): Improve error handling for end
9005         of file while defining macro.
9007 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
9009         * eqn/box.h: Fix declaration of set_gsize.
9010         * eqn/box.c (set_gsize): Make argument const char *.
9011         (gsize): Declare as char *.
9012         * eqn/main.c (main): Don't convert gsize to int.
9013         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9015         * Version 1.02 released.
9017 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
9019         * macros/tmac.andoc: New file.
9020         * macros/Makefile: Install tmac.andoc.
9022         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9023         operator new and delete on OP_DELETE_BROKEN not being defined.
9024         * Makefile: Mention OP_DELETE_BROKEN.
9026 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
9028         * Makefile (bindist): Pass SUBFLAGS.
9030 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
9032         * Makefile, groff.c: Pass definitions to groff.c via device.h.
9034         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9035         parameter.
9037         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9039         * ps/ps.h, ps/psrm.c: Make comment_table and
9040         header_comment_table local to resource_manager::process_file.
9042         * groff.sh: With -TXps pass -printCommand option to gxditview.
9044         * groff.c (possible_command::print): Implement using
9045         append_arg_to_string.
9047         * xditview: Merge in new implementation with own ChangeLog.
9049 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
9051         * groff.c (main): Implement PRINT_OPTION.
9052         (append_arg_to_string): New command.
9053         (device_table): Set PRINT_OPTION flag for Xps.
9055 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
9057         * troff/groff.h: Rename to troff.h.
9059         * pic/lex.c (lookup_keyword, docmp): New functions.
9060         (get_token): Use new lookup_keyword.
9061         Don't include key.h.
9062         * pic/key.[ch], pic/pic.gperf: Deleted.
9063         * pic/Makefile: Remove gperf stuff.
9065         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
9066         into output.h.
9067         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
9069         * troff/Makefile, troff/node.c: Move definition of
9070         STORE_WIDTH into node.c.
9072         * etc/grog.pl, etc/grog.sh: Support -mdoc.
9074 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
9076         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
9077         dvi/devdvi/texb.map: Add lq and rq.
9078         dvi/devdvi: Regenerate fonts.
9079         * ps/devps/textmap: Add lq and rq.
9080         * ps/devps: Regenerate fonts.
9081         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
9082         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
9084         * pic/object.c (position_rectangle): When checking radius
9085         cope with possiblity that width or height is negative.
9086         (box_object::box_object): Have separate xrad and yrad with
9087         signs matching signs of dim components.
9088         (box_object::{north,south}_{east,west}): Use xrad and yrad.
9089         (box_object::print): With rounded boxes use absolute values
9090         for dim and rad arguments.
9092         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
9093         in fontpath.h.
9095         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
9097         * various files: Add explicit destructors to keep Saber CC +d
9098         happy.
9100 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
9102         * eqn/box.c (box::top_level): Restore fonts correctly after
9103         font changes in line containing inline equation.  Also
9104         restore previous font as well as current font.
9105         * eqn/pbox.h: Define necessary string and register names.
9107         * troff/input.c (token::next): Case 'R' calls do_register.
9108         (do_register): New function.
9110 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
9112         * groff.c, groff.sh: Support Xps device.  Allow each device
9113         to have a pseudo_name and a real_name.
9115         * groff.c (run_commands): Don't print `Broken pipe' messages.
9117         * ps/pfbtops.c: New file.
9118         * ps/Makefile: Add pfbtops.
9120         * troff/number.c (parse_term): Improved error message.
9122 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
9124         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
9126         * Makefile: Integrate refer.
9127         * refer: New directory.
9128         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
9129         man/lkbib.man: New files.
9130         * man/Makefile: Support refer man pages.
9132         * lib/lib.h: Declare is_prime.
9133         * lib/prime.c: New file.
9135         * troff/input.c (macro_source): New function.
9136         (init_input_requests): Bind "mso" to macro_source.
9138         * troff/env.c (environment::possibly_break_line): Maintain
9139         pointer to pointer to node to be split in ndp so as to avoid
9140         using address of freed node.
9142         * troff/env.c (environment::hyphenate_line): Maintain pointer to
9143         pointer to first node to be hyphenated in startp so as to
9144         avoid using address of freed node.
9146         * troff/env.c (class trie, class hyphen_trie): Make the
9147         elements of the trie be of type char not unsigned char.
9148         Declare arguments to be const char* instead of unsigned char *.
9149         
9150         * troff/env.c (hyphenate): Initialize hbuf[0].
9152         * troff/input.c (set_string): Declare p to be char * and cast
9153         *p to unsigned char when necessary.
9155         * troff/input.c (do_define_macro): Declare s to be const
9156         char*. Cast element to unisgned char when necessary, Declare
9157         d to be an int.  Handle EOF better.
9159         * troff/Makefile, troff/input.c: Different scheme for passing
9160         definitions of MACROPATH, HYPHENFILE and DEVICE.
9162 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
9164         * tty/devascii/R.proto: Delete entry for em.
9165         * tty/devlatin1/R.proto: Likewise.
9167 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
9169         * troff/input.c (translate): Stop when we get a space. Treat eof
9170         like newline.
9172         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
9174 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
9176         * tbl/main.c (process_format): A font name following a `f'
9177         modifier that starts with a digit can be only one character long.
9178         Also deal with EOF on the second character of the font name.
9180 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
9182         * troff/input.c (token::next): Turn \~ into an
9183         unbreakable_space_node.
9184         * troff/node.c (unbreakable_space_node): New class.
9185         * troff/node.h: Declare it.
9187 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
9189         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
9190         it's >= 0, before outputting it as a single byte.
9192 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
9194         * lib/font.c: Make font_char_metric::code an int.
9195         (font::get_code): Change return type to int.
9196         (font::load): Allow code to be arbitrary integer.
9197         * lib/font.h (font::get_code): Change return type to int.
9198         (font::number_to_index): Change argument type to int.
9199         * troff/input.c (token::next):  In case 'N', allow any value.
9200         Store value in token::val.
9201         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
9202         (token::get_char, token::add_to_node_list, token::process): Get
9203         number from val.
9204         (charinfo::set_number): Change argument to int.
9205         (charinfo::get_number):  Require that NUMBERED flag be set.
9206         (get_charinfo_by_number): Store numbered characters not between 0
9207         and 255 in a dictionary.
9208         * troff/charinfo.h (get_charinfo_by_number): Change argument type
9209         to int.
9210         (charinfo::number): Change type to int.
9211         (charinfo::set_number): Change type of set_number to int.
9212         * troff/node.c (troff_output_file::put_char_width,
9213         troff_output_file::put_char): Test whether character is numbered
9214         using charinfo::numbered().
9215         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
9216         values of num.
9217         * lib/nametoindex.c: New implementation to cope with arbitrary
9218         number characters.
9220         * troff/input.c (token::operator==): Test val for
9221         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
9222         TOKEN_SIZE.
9224         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
9225         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
9227 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
9229         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
9230         variable.
9232         * all Makefiles: rm targets of cp and >.
9234         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
9235         it.
9237         * eqn/lex.c (def_table): Add dollar.
9239 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
9241         * troff/input.c (do_width): Push back newline before closing delim
9242         like do_bracket.
9244 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
9246         * groff.c (possible_command::prepend_arg): New function.
9247         (main): Prepend device -m option.
9248         * groff.sh: Put device -m options before command-line options.
9250 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
9252         * macros/tmac.an (IP): Quote argument to TP.
9254         * ps/ps.c (main): New option -b, which sets...
9255         (broken_flags): New variable.
9256         (ps_printer::~ps_printer): Incorporate the setup section in the
9257         prolog if (broken_flags & NO_SETUP_SECTION).
9258         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
9259         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
9260         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
9261         ps_printer::print_needed_font_comment,
9262         ps_printer::print_supplied_font_comment,
9263         ps_printer::print_include_font_comments,
9264         ps_printer::lookup_doc_font, ps_printer::download_fonts,
9265         ps_printer::read_download_file, read_document_fonts, add_font,
9266         skip_line, parse_fonts_arg, document_font::document_font,
9267         document_font::~document_font, document_font::download,
9268         ps_output::include_file):  Deleted.
9269         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
9270         rather than %!PS-Adobe-2.0.  Make calls to
9271         resource_manager::need_font for each font that we used. Replace
9272         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
9273         print_supplied_font_comment, print_needed_font_comment by call to
9274         resource_manager::print_header_comments. Output %%Orientation
9275         comment. Output %%Requirements: numcopies comment if ncopies > 1.
9276         Don't output the prolog directly.  Instead call
9277         resource_manager::output_prolog.  Only define #copies when ncopies
9278         > 1.  Delete calls to print_include_font_comments  and
9279         download_fonts.  Add call to resource_manager::document_setup.
9280         (ps_printer::do_file): Call resource_manager::import_file instead
9281         of including it ourselves.
9282         (ps_printer::do_import): Likewise.  Also don't call
9283         merge_import_fonts. Push userdict on the dictionary stack before
9284         and pop it afterwards.
9285         Move declaration of ps_output into ps.h.
9286         * ps/psrm.c: New file implementing resource_manager class.
9287         * ps/ps.h: New file declaring ps_output and resource_manager
9288         classes.
9289         * ps/devps/zapfdr.ps:
9290         * ps/devps/symbolsl.ps:
9291         * ps/devps/prologue:  Use 3.0 conventions.
9292         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
9293         Add default definition of BROKEN_SPOOLER_FLAGS.
9294         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
9295         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
9297 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
9299         * etc/grog.pl: New file.
9300         * Makefile (GROG): New variable.
9301         Add GROG to SUBFLAGS.
9302         * etc/Makefile (GROG): New variable.
9303         (install.nobin): Install $(GROG) rather than grog.sh.
9305 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
9307         * eqn/special.c (special_box::compute_metrics): Make the input and
9308         output strings the same.  Get the new height and depth from the
9309         predefined height and depth registers.  Also make subscript kern
9310         and skew available.
9311         (special_box::compute_subscript_kern, special_box::compute_skew):
9312         New functions.
9314         * eqn/box.c (pointer_box::compute_skew,
9315         simple_box::compute_metrics, box::top_level)
9316         * eqn/text.c (prime_box::compute_metrics,
9317         prime_box::comput_subscript_kern)
9318         * eqn/limit.c (limit_box::compute_metrics):
9319         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
9320         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
9321         negative numbers in `nr' requests with a leading 0.
9323 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
9325         * eqn/special.c: New file.
9326         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
9327         Add new rule for simple.
9328         * eqn/lex.c (token_table): Add SPECIAL.
9329         * eqn/box.h: Declare make_special_box.
9330         * eqn/Makefile: Add special.[co].
9332 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
9334         * ps/devps/prologue: Possibly set packing to true while defining.
9335         Create grops dictionary here.  Initialize local variables before
9336         defining procedures.
9337         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
9338         the dictionary stack. Set strokeadjust and overprint to false if
9339         the relevant operators are defined.
9340         (PEND): New procedure.
9341         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
9342         prologue.  Do everything else in the setup section.
9343         (ps_printer::do_import): Just call PBEGIN and PEND around the
9344         picture. Also push userdict before, and pop it afterwards.
9346 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
9348         * troff/node.c (bracket_node::tprint): Brackets were being printed
9349         1m too low.
9351         * macros/tmac.an (SH, SS): Set fill mode.
9353 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
9355         * troff/div.c (top_level_diversion::begin_page): Set
9356         high_water_mark to 0.
9358 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
9360         * man/mdate.sh: New file.
9361         * man/mdate.c: Deleted.
9362         * man/Makefile: Use mdate.sh instead of mdate.
9363         (mdate): Deleted.
9365         * eqn/lex.c (do_gsize): Supply missing argument to error message.
9367 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
9369         * man/mdate.c: New file.
9370         * man/*.man: Replace modification date by @MDATE@.
9371         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
9372         (mdate): New target.
9374         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
9375         Remove illegal input characters.
9377 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
9379         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
9381 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
9383         * troff/div.c (begin_page): Change behaviour when
9384         !first_page_begun and !break_flag.
9386         * troff/input.c (do_name_test): Return 0 if argument is empty.
9388         * troff/input.c (read_long_escape_name): Require closing ] to be
9389         at same input level as opening [.
9391         * troff/input.c (read_increment_and_escape_name): New function.
9392         (get_copy, process_input_stack): Use this for \n.
9394 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
9396         * troff/div.c (top_level_diversion::begin_page): Ignore the
9397         current value of page_number if !first_page_begun.
9399         * groff.c (main): Fix declaration of buf.
9401         * troff/input.c (do_name_test): New function.
9402         (token::next): Implement \A.
9403         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
9404         (token::description, token::add_to_node_list, token::process):
9405         Handle TOKEN_ESCAPE.
9406         * troff/token.h: New token TOKEN_ESCAPE.
9408 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
9410         * pic/main.c (do_picture): Allow space before and after filename
9411         following `<'.  Check that the filename is not empty.
9413 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
9415         * Version 1.01 released. 
9417         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
9419         * dvi/tmac.dvi: ftr HR to H.
9421         * macros/tmac.e: Round up computation of $r.
9423         * xditview/tmac.X:  Don't give up completely in compatibility mode.
9424         Use \n(.s instead of \n[.s].
9426         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
9427         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
9428         Add u to factors inside \s[...]. Rename frac to dvi-frac.
9429         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
9430         short names in the char definitions.
9432         * ps/tmac.ps: Don't give up completely in compatibility mode.
9433         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
9434         quote in front of \n(.s. Add u to factors inside \s[...].
9436 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
9438         * tty/tmac.tty: Call the nroff request.
9440         * macros/tmac.e ((x, )x):  Better definitions that work properly
9441         in a diversion.
9442         (@0, @1): Helper macros for (x.
9444         * macros/tmac.e ($s, hl): Use \l rather than \D.
9446         * tty/tmac.tty: Make it work better in compatibility mode.
9447         (pchar): Rename to tty-char.
9449         * macros/tmac.e (@E): New macro.
9450         (r, i, b, rb, bi): Use @E.
9452         * macros/tmac.e (@F): Don't use (;...) syntax.
9454         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
9455         it was modified for groff.
9457         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
9459         * macros/tmac.e (<., .>): Removed.
9460         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
9462         * macros/tmac.e: Remove check that groff is being used.
9464         * macros/tmac.e (@C): Change families only if using groff; turn
9465         compatibility mode off while changing familes. Save compatibility
9466         mode before changing families and restore it afterwards.
9468         * macros/tmac.e (@h): Remove test for offset + line length.
9470         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
9471         (lo, th, ac): Define to call @S instead of using als.
9473         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
9474         the ratio of the vertical spacing to the point size in units
9475         expressed as a percentage.  Use these instead of $10r and $10R,
9476         Delete $10r and $10R.
9478         * lib/font.c (font::load): In default computation of space_width,
9479         divide by sizescale.  Use scale_round.
9481         * macros/tmac.an (TP): Don't call `nf'.
9482         (an-do-tag): Don't call `fi'.
9484 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
9486         * troff/input.c (process_input_stack): Handle the case where
9487         spaces at the beginning of an input line are followed by a
9488         newline.
9490 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
9492         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
9493         * groff.sh: Use pic -x with the dvi device.
9495         * dvi/devdvi/FontMakefile (H): Don't use -s.
9497         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
9498         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
9499         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
9500         in FONTS.
9502 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
9504         * ps/psfig.diff: New file.
9505         * ps/tmac.psfig: New file.
9507 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
9509         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
9510         (]-): Don't call ref*do-tl.
9512         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
9514         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
9515         (fn@do-FS): Rename to fn*do-FS.
9517         * troff/input.c (transparent_translate): New function.
9518         (process_input_stack): Apply transparent_translate before calling
9519         diversion::transparent_output(unsigned char).
9521 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
9523         * troff/input.c (do_define_macro): Define the macro before calling
9524         skip_line.
9526         * xditview/Makefile: Add DEVICES variable.  Change install target
9527         to use this.
9529 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
9531         * groff.c (run_commands): Handle the possibility that there are
9532         child processes other than those forked by us.
9534 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
9536         * lib/string.c (string::append): New function.
9537         * lib/stringclass.h: Declare it.
9539 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
9541         * eqn/main.c (main): New option -N which sets
9542         no_newline_in_delim_flag. 
9543         (do_file): If no_newline_in_delim_flag is set don't allow newlines
9544         in delimiters.
9545         * groff.c (main): Pass -N on to eqn.
9546         (help, synopsis): Mention -N.
9547         * groff.sh: Implement -N.
9549 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
9551         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
9552         (]-): Call ref*do-tl if ref*need-tl is non-zero.
9553         (XP): Allow as initializer.
9555 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
9557         * troff/env.c (environment::wrap_up_field): If field_spaces are
9558         non-zero and we have a current_tab, subtract padding from
9559         tab_distance.  If this makes tab_distance <= 0, use the next tab
9560         stop instead.  If there isn't any next tab or it's a left tab,
9561         wrap up the current tab.
9562         (environment::start_field): Initialize tab_precedes_field.
9563         (environment::wrap_up_tab): If there's a current field, update
9564         pre_field_width, field_distance and tab_precedes_field.
9565         * troff/env.h (environment::tab_precedes_field): New member.
9567 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
9569         * ps/ps.c (ps_printer::do_file): New function.
9570         (ps_printer::special): Bind to `file' special.
9571         (ps_printer::do_exec): Set ndefined_styles to 0.
9573 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
9575         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
9576         Avoid stripping first character from the start of unrecognized
9577         escapes.  Use lex_error instead of error to report errors.
9578         * eqn/lex.c (get_token): Rework handling of escapes.
9579         (lex_error): Move declaration into...
9580         * eqn/eqn.h.
9582         * xditview/xditview.c (main): Make -page option work.
9584         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
9586 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
9588         * macros/tmac.s (B2): Correct size of box.
9590 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
9592         * macros/tmac.s (B2): Postpone drawing the box until in the
9593         top-level diversion.
9595         * tty/tmac.tty: Add font translations for C, CR, CW.
9597         * groff.c (synopsis, help): Document -i.
9598         * groff.sh: Implement -i.
9600         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
9601         Simplify the construction of SN.
9603         * troff/number.c (parse_term): Give `|' a higher precedence.
9604         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
9605         accordingly.
9607         * macros/tmac.s (B2): Use par@finish instead of par@reset.
9609 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
9611         * lib/string.c (string::move): New function.
9612         * lib/stringclass.h: Declare it.
9614 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
9616         * troff/env.c (distribute_space): Add optional argument
9617         `force_forward'.
9618         (environment::wrap_up_field): Call distribute_space with
9619         `force_forward' argument of 1.
9621 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
9623         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
9624         Inline it.  Move reallocation into...
9625         (string::grow1): New function.
9626         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
9627         dependencies to include library header files.
9628         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
9630 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
9632         * macros/tmac.s (@NH): Use the same number registers than -ms does
9633         for the heading level counters.  Use the same string that -ms does
9634         for the number for this heading.
9636 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
9638         * lib/new.c (operator new): Cast result of malloc to char *.
9640         * troff/input.c (spring_trap, lookup_request): Add assert that nm
9641         is not null.
9643 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
9645         * groff.c (main): Support -i.
9647 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
9649         * pic/pic.h: Include <osfcn.h>.
9651         * ps/ps.c: Add declaration of mktemp.
9653         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
9654         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
9655         argument as union wait *.
9656         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
9657         argument to union wait *.
9659 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
9661         * tty/tmac.tty: Add definition of \(co.
9663         * pic/object.c (make_arc): Only increase radius when radius
9664         strictly less than d.
9665         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
9666         more than once.
9668         * troff/env.c (environment::environment(symbol),
9669         environment::environment(const environment *)):  Initialize
9670         input_trap_count.
9672 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
9674         * tbl/main.c (main): Add exit(0).
9676         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
9678         * pic/main.c (main):
9679         * eqn/main.c (main):
9680         * tbl/main.c (main):
9681         * etc/soelim.c (main):
9682         * driver/printer.c (printer::~printer):
9683         * troff/node.c (real_output_file::~real_output_file,
9684         real_output_file::flush):  Check for errors on stdout.
9686         * most files: Add 1991 to copyright notice.
9688         * macros/tmac.s: Don't test \n(.x and \n(.y.
9690         * troff/input.c (token::next): Rename `escape_char' label to
9691         `handle_escape_char' and `normal_char' label to
9692         `handle_normal_char'.
9694 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
9696         * groff.c (main, synopsis, help): Support -a option.
9697         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
9698         to trflags while parsing options.
9700 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
9702         * troff/number.c (parse_term): With `m', `M' and `n' scale
9703         indicators, convert scale factor to hunits before scaling.
9705 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
9707         * lib/font.c (scale_round): Better test for overflow when n is
9708         negative.
9710 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
9712         * tbl/main.c (process_format): Add second argument of type
9713         options*. Change callers.  Allow opt->tab_char as well as '\t'
9714         between format items.
9716 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
9718         * macros/tmac.an (PD): With no arguments, make sure register PD is
9719         at least \n[.V].
9720         (TH): Call PD with no argument, instead of setting register PD
9721         directly.
9723 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
9725         * Version 1.00 released.
9727 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
9729         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
9731         * dvi/devdvi/DESC: Mount CW instead of CR.
9733         * dvi/tmac.dvi: Add definition of \(tm.
9735         * dvi/devdvi/texsy.map: Add lh, and rh.
9736         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
9737         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
9739         * dvi/devdvi/FontMakefile: Generate H from cmss10.
9740         * dvi/devdvi/Makefile: Install H.
9741         * dvi/devdvi/H: New file.
9743 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
9745         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
9746         be 0.
9748 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
9750         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
9752         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
9754         * macros/tmac.s (@EN): Handle the case where the equation is empty
9755         but the label is not.
9757 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
9759         * troff/groff.h: New warning category WARN_SPACE.
9760         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
9761         WARN_SPACE to warning_table.
9762         (interpolate_macro): Give a warning of type WARN_SPACE if the name
9763         is longer than two characters and is not defined, but the first
9764         two characters do make a defined name.
9766         * PROBLEMS: New file.
9768         * CHANGES: New file.
9769         * README-0.6, README-1.00: Deleted.
9771         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
9772         * xditview/devX75/Makefile: Make devX75-12.
9773         * xditview/devX100/Makefile: Make devX100-12.
9775         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
9776         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
9778 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
9780         * README-0.7: Rename to README-1.00.
9782         * macros/tmac.pic: New file.
9783         * macros/Makefile (install.nobin): Install tmac.pic.
9785 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
9787         * troff/env.c (hyphen_word): Correct the test for whether the
9788         token is a hyphen.  Reset npos to 0.
9790         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
9792 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
9794         * macros/tmac.s (ds*common-end): Call par*reset.
9795         (PE): Likewise.
9796         (par@reset-indent): Deleted.
9798         * macros/tmac.s (@IP): Divert the label.
9800 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
9802         * xditview/draw.c (setGC): Use a line width of .1m rather than
9803         .04m by default; round rather than truncate value.
9805         * tbl/table.c (class empty_entry): New class.
9806         (empty_entry::empty_entry, empty_entry::line_type): New functions.
9807         (table::add_entry): Represent empty entries by objects of type
9808         empty_entry.
9809         (table_entry::line_type): Return -1.
9810         (table::determine_row_type): Ignore entries with line_type 0.
9811         Treat type -1 as non-lines.
9813 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
9815         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
9816         macros/tmac.s: Rename \(-d to \(Sd.
9818 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
9820         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
9821         * xditview/libXdvi/DviChar.c: Likewise.
9822         * dvi/devdvi/texsy.map: Add `<<', `>>'.
9824 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
9826         * troff/div.c (top_level_diversion::begin_page): Call
9827         init_output() if the_output is 0.
9829 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
9831         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
9832         ESCAPE_c.
9833         (get_copy): Turn \E into ESCAPE_E.
9834         (token::process, asciify): Handle ESCAPE_E.
9836         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
9837         (RD): New macro.
9838         (DS): Implement `.DS R'.
9840 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
9842         * macros/tmac.s (FS): New macro.
9844         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
9846         * macros/tmac.s (cov*tl-init): Remove after first execution
9847         instead of aliasing to @nop.  Call top of page macro explicitly
9848         instead of setting trap; call @init first.  Set pg@top as top of
9849         page macro.
9850         (cov*auto-init): Deleted.  Set cov*tl-init instead of
9851         cov*auto-init as top of page trap. 
9852         (TL, LP): Do a break instead of calling cov*tl-init.
9853         (cov*print): With RP format but no TL, alias FS and FE to @FS and
9854         @FE; in this case also give a warning and always start another
9855         page. No need to set pg@top here.
9856         (cov*tl-init): Rename to cov*first-page-init.
9858         * macros/tmac.s (RP): Do `.pn 0'.
9859         (cov*tl-init): With RP format don't do `.pn 0'.
9861         * macros/tmac.s (pg@cs-top): Set no space mode.
9863         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
9864         (cov*ab-init): Alias TL, AU and AI to these.
9866 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
9868         * macros/tmac.s (@EQ): Move the space before the equation into @EN
9869         (@EN): Do nothing unless \n[dl] is > 0.
9871 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
9873         * pic/object.c (ellipse_object::radius): New function.
9875         * VERSION: Change version to 0.7.
9877         * tbl/table.c (block_entry::do_divert): Declare return type as
9878         void.
9879         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
9881 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
9883         * troff/column.c: New file.
9884         * troff/Makefile: Corresponding changes.
9886         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
9887         Friend of vunits.
9889         * troff/div.c (top_level_diversion::space): If the space causes
9890         the first-page transition and springs a trap, truncate the space
9891         to 0.
9893 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
9895         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
9896         the document.
9898         * pic/troff.c (troff_output::line_thickness,
9899         troff_output::set_fill): Do a horizontal motion to compensate for
9900         the width of the \D escape sequence.
9902 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
9904         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
9905         (not X75).
9907         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
9908         to printf.
9910         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
9911         Supply empty definition.
9912         (text_entry::simple_print, simple_text_entry::simple_print):
9913         Delete declarations.
9914         (table::add_entry): Represent empty entries by objects of type
9915         `simple_entry'.
9917 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
9919         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
9921         * tbl/table.c (left_text_entry::add_tab): New function.
9923         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
9924         initialize like LP.
9926 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
9928         * troff/env.c (environment::start_field): Give an error message if
9929         there is no next tab.
9931 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
9933         * troff/env.c (hyphenate): Skip initial elements with zero
9934         hyphenation code.
9936         * macros/tmac.s (par@init): Keep VS in points rather than units.
9938 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
9940         * pic/main.c (main): Implement `-c' option.
9941         * pic/output.h: Declare make_tpic_output().
9942         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
9943         protected.
9944         (tpic_output): New class.
9945         (tpic_output::tpic_output, tpic_output::set_pen_size,
9946         tpic_output::command, make_tpic_output): New functions.
9948 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
9950         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
9951         if they're not already defined.
9952         * tbl/table.c (init_output): Don't test \n(.g.
9954         * troff/input.c (do_if_request): Delete `g' condition. Recognize
9955         `d', `r' and `c' conditions even in compatibility mode.
9957 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
9959         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
9960         box.
9962 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
9964         * troff/env.h (environment::prev_line_interrupted): New member.
9965         (environment::get_prev_line_interrupted): New function.
9966         * troff/env.c (environment::newline): Set prev_line_interrupted.
9967         (environment::environment(const environment *),
9968         environment::environment(symbol)): Initialize
9969         prev_line_interrupted.
9970         * troff/input.c (process_input_stack): Don't give special
9971         treatment to space and newline at the beginning of the line if the
9972         previous line was interrupted.
9974 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
9976         * eqn/eqn.y: Disallow PRIME by itself.
9977         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
9978         PRIME.
9979         (def_table): Remove definition of '.  Define prime to be `.
9981         * eqn/eqn.y: Split off part of rule `script' into a new rule
9982         `nonsup'.
9984 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
9986         * macros/tmac.s ({, }): New string aliases.
9988 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
9990         * README-0.7: New file.
9992 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
9994         * macros/tmac.s: New file.
9995         * man/groff_ms.man: New file.
9996         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
9997         * Makefile.bd: Similarily.
9998         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
9999         definition of TMAC_S.
10000         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10001         * macros/TODO: New file.
10003 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
10005         * troff/env.c (right_justify): New function.
10006         (init_env_requests): Bind this to request "rj".
10007         (center_lines): Set right_justify_lines to 0. If we get a bad
10008         integer, center 1 line.
10009         (environment::environment(symbol), environment::environment(const
10010         environment *)): Initialize right_justify_lines.
10011         (environment::get_right_justify_lines): New function.
10012         (init_env_requests): Bind this to number_register ".rj".
10014         * troff/env.c (environment::choose_breakpoint): Implement
10015         hyphenation_margin and hyphenation_space.
10016         (environment::get_hyphenation_space,
10017         environment::get_hyphenation_margin): New functions.
10018         (init_env_requests): Bind these to .hys and .hym.
10019         (hyphenation_space_request, hyphenation_margin_request): New
10020         functions
10021         (init_env_requests): Bind these to hys and hym.
10022         (environment::environment(symbol), environment::environment(const
10023         environment *)): Initialize hyphenation_margin and
10024         hyphenation_space.
10025         * troff/env.h: Corresponding changes to class environment.
10027 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
10029         * troff/div.c (blank_line): Always do a break.
10031         * eqn/box.c (do_text): Turn off escapes while appending text to
10032         string.
10034 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
10036         * troff/input.c (while_break_request, while_continue_request): New
10037         functions.
10038         (init_input_requests): Bind these to "break" and "continue".
10039         (while_depth, while_break_flag): New variables.
10040         (while_request): Update while_depth.  Break out of loop if
10041         while_break_flag is set.
10043 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
10045         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10046         rather than 0.
10048 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
10050         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
10052         * stringify: New file.
10053         * Makefile (groff.o): Use stringify.
10055         * xditview/tmac.X: Remove definition of \(rn.
10056         * xditview/libXdvi/DviChar.c: Remove radicalex from
10057         Adobe_symbol_map.
10059 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
10061         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
10062         (alphabetic_block_entry::alphabetic_block_entry,
10063         alphabetic_block_entry::divert, alphabetic_block_entry::print):
10064         New functions.
10065         (block_entry::divert): Split off body into ...
10066         (block_entry::do_divert): If the block is alphabetic, subtract 2n
10067         from the line length; also update the span width to dl+2n, and the
10068         alphabetic span width to dl.
10070         * driver/input.c (do_file):  While reading argument to D command,
10071         when expanding buffer, multiply szp by sizeof(int) rather than 2
10072         in the argument to memcpy.
10074         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
10075         width of alphabetic columns.
10077 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
10079         * troff/node.c (lookup_family): Supply second argument to lookup.
10081         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
10082         search, return immediately if v is 0.
10084         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
10085         (troff_output::start_picture): Set this reg.
10086         (troff_output::end_picture): Remove this reg
10087         * eqn/box.c (box::extra_space): Don't produce `\x's if
10088         EQN_NO_EXTRA_SPACE_REG is defined.
10090         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
10091         * eqn/text.c (split_text): Map ' to \(fm when it's the first
10092         character.
10094 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
10096         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
10097         requests.
10099         * troff/div.c (top_level_diversion::top_level_diversion):
10100         Initialize page_number to 0.
10102 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
10104         * groff/troff (environment::environment(const environment *)):
10105         Initialize name to e->name, rather than "anonymous".
10107 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
10109         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
10110         requested_page.  Split middle part into ...
10111         (FindPage): New function.
10112         (SetValues): If we don't yet know the last page, and the requested
10113         page is greater than the current page, call FindPage.
10114         Update the font_map_string before doing this.
10116         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
10117         Translate \(lh and \(rh into left and right double arrows.
10119         * troff/node.c (class hyphen_inhibitor_node): New class.
10120         (hyphen_inhibitor_node::hyphen_inhibitor_node,
10121         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
10122         hyphen_inhibitor_node::type,
10123         hyphen_inhibitor_node::get_hyphenation_type): New functions.
10124         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
10125         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
10126         word.
10128 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
10130         * troff/node.h (dummy_node::get_hyphenation_type,
10131         transparent_dummy_node::get_hyphenation_type):  Declare them.
10132         * troff/node.c: (dummy_node::get_hyphenation_type,
10133         transparent_dummy_node::get_hyphenation_type): New functions.
10135 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
10137         * xditview/libXdvi/draw.c: If M_PI not defined after including
10138         math.h, then define it.
10140         * xditview/Makefile: Add definition of AR. Pass it to the submake
10141         in libXdvi.
10142         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
10144 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
10146         * troff/dictionary.h (object_dictionary::alias): Declare return
10147         value as int.
10148         * troff/dictionary.c (object_dictionary::alias): Return non-zero
10149         if the old name was defined.
10150         * troff/input.c (alias_macro): Give a warning if the old name was
10151         not defined.
10152         * troff/reg.c (alias_reg): Likewise.
10154 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
10156         * troff/input.c (token::next): Delete implementation of \R.
10158         * macros/Makefile: Strip comments from tmac.e while installing it.
10160         * troff/input.c: New variable `nroff_mode'.
10161         (troff_request, nroff_request): New functions.
10162         (init_input_requests): Bind `troff' and `nroff' to troff_request
10163         and nroff_request.
10164         (do_if_request): Compute results of t and n conditions from
10165         nroff_mode.
10167         * text/text.c (split_text): Fix typo in >=.
10169         * eqn/lex.c: Add definition of `==' to def_table.
10171 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
10173         * pic/tex.c (tex_output::start_picture): Change the definitions of
10174         \graph and \graphtemp so that they work properly with Plain TeX.
10176         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
10177         argument to `ar' is not less than the first.
10179         * pic/pic.y: Allow a comma between elements of the variable list
10180         in the argument to `reset'.
10182         * pic/object.c (arc_object::arc_object): Fix computation of
10183         radius.
10185         * eqn/main.c (main): Add exit(0).
10187 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
10189         * troff/div.c (begin_page): Test no_space_mode after doing the
10190         break, but still push the page ejector cookie before doing the
10191         break.  Also set the next page number after doing the break.
10192         
10193         * xditview/xditview.c (NewFile): Don't set the title and icon name
10194         if this is the first file and its name is `-'.
10195         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
10196         the X75 and X100 devices.
10197         (main): If a device has the XT_OPTION flag set and there's exactly
10198         one file argument, pass the driver -xrm and -title options to set
10199         the icon name and window title to the name of the file.
10201         * troff/env.c (environment_switch): If there was an argument but
10202         it wasn't a valid number or name, then pop an environment but
10203         don't give an error message on underflow.
10205         * troff/number.c (start_number): Correct spelling in error message.
10207         * troff/input.c (token::delimiter): Don't print an error message
10208         if err is false.
10210         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
10211         ParseDrawFunction if dw->display_enable is true.
10213 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
10215         * pic/pic.y: Parse text positioning like normal attributes, so as
10216         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
10217         positioning attribute.
10219 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
10221         * tbl/main.c (process_data): When in state START while reading a
10222         text block, don't change to state MIDDLE if c is a newline.
10224 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
10226         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
10227         so as to avoid shadowing parameter.
10229 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
10231         * tbl/table.c (trim_space): Deleted.
10232         (table::add_entry): Don't call trim_space.
10234 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
10236         * VERSION: Change version to 0.6.
10238         * troff/number.c (parse_expr): Make == work.
10240 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
10242         * man/grog.man: New file.
10243         * man/Makefile: Add grog.n to MAN1PAGES.
10244         * etc/grog.sh: New file.
10245         * etc/Makefile: Install grog.sh as grog.
10247 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
10249         * troff/input.c (token::next): Implement \E.
10251 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
10253         * xditview/tmac.X: Change font translations to match tmac.ps.
10255         * troff/input.c (non_empty_name_warning): Don't give a warning if
10256         `\{' terminates the name.
10258 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
10260         * ps/devps/symbol.diff: New file.
10261         * ps/devps/FontMakefile: Mention symbol.diff.
10263 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
10265         * troff/node.c (font_position): Use get_long_name to read the
10266         external_name.
10268         * troff/env.c (environment_switch): If we get a number that's < 0
10269         or >= NENVIRONMENTS, treat it like a name.
10270         Change NENVIRONMENTS to 10.
10272         * troff/groff.h: Remove definition of FONTS_MAX.
10273         * troff/node.h (class font_family): Make map a pointer instead of
10274         an array. Add a map_size member. Make it a class. Make nm const
10275         and public. Make invalidate_fontno a friend.
10276         * troff/node.c: Define font_table_size. Make font_info a pointer
10277         rather than an array.
10278         (class troff_output_file): Allocate font_position dynamically. Add
10279         nfont_positions member.
10280         (troff_output_file::set_font): Grow font_position if necessary.
10281         (troff_output_file::~troff_output_file): Delete font_position.
10282         (troff_output_file::troff_output_file): Allocate font_position.
10283         (grow_font_table): New function.
10284         (troff_output_file::really_begin_page,
10285         troff_output_file:really_copy_page): Use nfont_positions rather
10286         than FONTS_MAX.
10287         (mount_font_no_translate, mount_style): Call grow_font_table if
10288         necessary.
10289         (font_family::font_family): Allocate map.
10290         (font_family::make_definite): Grow map if necessary. Use
10291         font_table_size instead of FONTS_MAX.
10292         (font_family::~font_family): New function.
10293         (invalidate_fontno): Use font_family::map_size.
10294         (get_fontno, env_space_width, env_half_narrow_space_width,
10295         env_narrow_space_width, symbol_fotno, is_good_fontno,
10296         get_bold_fontno, make_glyph_node): Use font_table_size rather than
10297         FONTS_MAX.
10298         (next_available_font_position): Never return 0.
10300 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
10302         * ps/tmac.ps: Add font translations for compatibility with dpost.
10304 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
10306         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
10307         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
10308         Move definitions baseline_sep, shift_down, column_sep,
10309         matrix_side_sep into...
10310         * eqn/box.c: Add them to param_table.
10311         * eqn/pbox.h: Add declarations to pbox.h.
10313         * troff/input.c (set_string): Cast value to unsigned char *.
10315         * troff/token.h (process_input_stack): Declare it static before
10316         declaring it a friend.
10318 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
10320         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
10321         and bottom.
10322         * dvi/devdvi/EX: Regenerate.
10324         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
10325         transparent.
10327 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
10329         * eqn/lex.c: In defaults_table, make definition of `dot' call
10330         `dot_def'.  Don't explicitly make it roman.  Similarily for other
10331         accents.
10333         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
10334         argument.
10335         (for_input::get, for_input::peek): Use this.
10336         (do_for): Add by_is_multiplicative argument.
10337         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
10338         Change semantic value of optional_by to be a double plus a flag
10339         saying whethet the by clause is multiplicative.
10341         * eqn/lex.c (get_delimited_text): Remember location of start of
10342         definition.  Improve error handling when EOF is encountered.
10344         * lib/font.h: Rename handle_x_command to
10345         handle_unknown_font_command.
10346         * lib/font.c (font::load): Call handle_unknown_font_command for
10347         any unknown command in the font description file.  Don't call
10348         handle_x_command. Include the name of the command in the argv.
10349         Improve message for unknown command after kernpairs or charset
10350         command.
10351         * ps/ps.c (ps_font::handle_x_command): Rename to
10352         handle_unknown_font_command.  Remove message about `x download'
10353         command.  Give error message for wrong number of arguments.
10354         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
10355         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
10356         handle_unknown_font_command. Give an error message for wrong
10357         number of arguments.  Rename design_size to designsize.
10358         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
10359         checksum', `designsize' instead of `design_size'.
10361 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
10363         * eqn/*.[chy]: Change underaccent to uaccent.
10365         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
10366         give it the same precedence as ACCENT.
10367         * eqn/other.c (make_underaccent_box): New function.
10368         * eqn/box.h: Declare it.
10369         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
10370         def_table.
10372 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
10374         * pic/pic.y (reset_all): New function. Called in rule for RESET.
10375         (parse_init): Call reset_all.
10376         (define_variable): When defining scale reset only those
10377         pre-defined variables that are scaled.
10378         (defaults_table): Add `scale' as non-scaled value.
10380         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
10381         together with the text; allow any number of positioning words;
10382         allow center as a positioning word.
10384         * pic/object.c (output::compute_scale): Get picture maximum height
10385         and width from variables called maxpswid and maxpsht.
10386         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
10388 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
10390         * pic/object.c (object_spec::make_text): Multiply textht by number
10391         of text items.
10393         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
10394         occur.
10395         (do_sprintf): New function.
10396         (pic.gperf): Add sprintf token.
10397         (text, sprintf): New rules.
10399         * pic/pic.y: `rand()' with no arguments returns a random number
10400         in the range [0,1).
10402         * pic/pic.y: Allow a bare expression to be an attribute: change
10403         precedences to support this.  Change optional_ordinal rule to
10404         optional_ordinal_last to avoid reduce/reduce conflict.
10405         * pic/object.c (object_spec::object_spec): Initialize direction.
10407         * pic/pic.y: Implement ^ operator meaning exponentiation.
10409         * troff/node.h: Add default argument to mount_font.
10410         * troff/node.c (font_position): Read an optional third argument
10411         giving the external_name.
10412         (mount_font): Add optional argument giving the external_name.
10413         (mount_font_not_translate): Have additional argument giving
10414         external name.  Use this name to load the font.  Pass both names
10415         to font_info::font_info.
10416         (font_info::font_info): Have additional argument giving
10417         external_name.
10418         (class tfont): New member external_name.
10419         (font_info::get_tfont): Use external name to construct tfont_spec.
10421 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
10423         * eqn/lex.c (init_table): Add argument giving device.  Define
10424         name of device to be "1".
10425         (do_ifdef): Counts as true if the argument has been defined with
10426         `define'.
10427         * eqn/main.c (main): Call init_table with device argument. Make
10428         device local to main.
10429         * eqn/eqn.h: Change declaration of init_table. Remove declaration
10430         of device.
10432         * pic/lex.c (get_delimited): Allow text to be delimited by
10433         matching {}s.  Don't recognize ending delimiter within a string.
10435         * troff/input.c (get_delim_name): New function.
10436         (token::next): Implement \C.
10438         * lib/font.c (font::load): Grok ---.  Add an alias for each
10439         character based on its code.
10440         (font::get_code_width): Deleted.
10441         * lib/font.h (class font): Declare font::number_to_index().
10442         Remove declaration of font::get_code_width.
10443         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
10444         to indices of named characters.
10445         (font::number_to_index): New function.
10446         * troff/input.c (font::number_to_index): New function.
10447         (get_charinfo_by_number, charinfo::get_number,
10448         charinfo::set_number): New functions.
10449         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
10450         (token::process, token::description, token::get_char,
10451         token::add_to_node_list, token::operator==): Handle
10452         TOKEN_NUMBERED_CHAR.
10453         * troff/charinfo.h: Declare get_charinfo_by_number,
10454         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
10455         charinfo class.
10456         (charinfo::numbered): New function.
10457         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
10458         * troff/env.h (class environment): Remove declaration of ...
10459         * troff/env.c (environment::make_numbered_char_node): Deleted.
10460         * troff/node.c (make_numbered_node): Deleted.
10461         (class numbered_glyph_node): Remove.
10462         (troff_output_file::put_char_width, troff_output_file::put_char):
10463         Handle numbered chars.
10464         (troff_output_file::numbered_char): Removed.
10465         (tfont::get_code_width): Removed.
10466         (make_glyph_node): Don't search special fonts for numbered
10467         characters.
10468         * troff/node.h: Remove declaration of make_numbered_node.
10469         * driver/input.c (do_file): Handle N command.
10470         * driver/printer.h: Add declaration of ...
10471         * driver/printer.c (printer::set_numbered_char): New function.
10472         * dvi/tfmtodit.c (main): Generate unnamed entries.
10473         * ps/devps/afmtodit: Likewise.
10474         * xditview/xtotroff.c (MapFont): Likewise.
10475         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
10477         * tbl/main.c (process_format): If multiple widths are specified
10478         for a column but all the widths are the same, don't give an error
10479         message.
10481         * tbl/table.c (table::do_row): If the current row is all lines and
10482         the stuff doesn't contains a line, mark the top of the row after
10483         printing stuff before the row.  If the current row is not all
10484         lines and the stuff doesn't contain a line, don't unnecessarily
10485         mark the top of the row before printing the stuff.
10486         
10487 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
10489         * troff/groff.h: Remove MAX_PATH.
10490         * troff/input.c (open_file): Dynamically allocate space for the
10491         path.
10492         (open_mac_file, process_macro_file): Corresponding changes.
10494 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
10496         * troff/node.h (class output_file): Make copy_file pure.  Add
10497         vspace method ifdef COLUMN. Add is_printing method.
10498         * troff/node.c: Add class printing_reg. Add class
10499         real_output_file. Derive other output_file classes from
10500         real_output_file; in these classes rename begin_page to
10501         really_begin_page, print_line to really_print_line, copy_file to
10502         really_copy_file, transparent_char to really_transparent_char.
10503         Move output_file::flush to real_output_file. Add printing member
10504         to class output_file.
10505         * troff/div.h: Remove printing member from top_level_diversion.
10506         Add vspace member function to class diversion ifdef COLUMN. Add
10507         some declarations ifdef COLUMN.
10508         * troff/div.c (top_level_diversion::copy_file,
10509         top_level_diversion::transparent_output,
10510         top_level_diversion::output): Don't test printing member before
10511         output.
10512         * troff/input.c: Handle initial variable_space_request ifdef
10513         COLUMN.
10514         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
10515         but comment it out.
10517 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
10519         * troff/div.c (diversion::need): Make any space forced.  If we
10520         sprung a trap, set truncated_space to minus the distance to the
10521         trap and set needed_space to the amount that was needed.
10522         (top_level_diversion::space): A forced space turns no_space_mode
10523         off.
10524         (class constant_vunits_reg): New class.
10525         (init_div_requests): Implement number registers .trunc and .ne
10526         using constant_vunits_reg.
10527         (class truncated_space_reg): Deleted.   
10529         * troff/div.h: Don't have a no_space_mode member in diversion.
10530         Instead have it in top_level_diversion.
10531         * troff/div.c (diversion::diversion): Don't initialize
10532         no_space_mode.
10533         (top_level_diversion::top_level_diversion): Initialize
10534         no_space_mode.
10535         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
10536         (macro_diversion::output): Don't clear no_space_mode.
10538         * troff/input.c (diverted_space_node::reread): Don't call
10539         environment::do_break.  In fill mode, act like a blank line.
10540         (diverted_copy_file_node::reread): Don't call
10541         environment::do_break.
10543         * troff/div.c (blank_line): New function.
10544         * troff/div.h: Declare it.
10545         * troff/input.c (process_input_stack): Call it.
10547         * troff/div.c (truncated_space_reg::get_string): New function.
10548         (init_div_requests): Bind to .trunc.
10549         (space_request, top_level_diversion::space,
10550         top_level_diversion::output, macro_diversion::space,
10551         macro_diversion::output): Update truncated_space.
10552         (macro_diversion::output): Redo calculations when trap sprung.
10553         (macro_diversion::output, macro_diversion::space): No need for
10554         trap_flag.
10556         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
10557         after truncating post line spacing.
10559 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
10561         * ps/devps/prologue (MF, SF): Make them work even if setfont is
10562         defined as a procedure rather than as an operator.
10564 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
10566         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
10568 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
10570         * troff/div.c (top_level_diversion::output): Merge
10571         output_file::print_line and output_file::end_of_line member
10572         functions.
10573         * troff/div.h (class output_file):
10574         * troff/node.c (troff_output_file::print_line,
10575         troff_output_file::end_of_line, output_file::end_of_line,
10576         ascii_output_file::print_line, suppress_output_file::print_line):
10577         Corresponding changes.  
10579 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
10581         * troff/input.c (token::next): Don't give a warning for `\.'.
10583         * troff/env.c (environment::get_center_lines): New function.
10584         (init_env_requests): Bind number register .ce to it.
10585         * troff/env.h: Declare it.
10586         * tbl/table.c (table::init_output): Define reset macro to restore
10587         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
10588         Then do .ce 0.
10589         (table::print): If center option not given, then imply center
10590         option if SAVED_CENTER_REG > 0.
10592 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
10594         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
10595         Troff.ps from DOWNLOAD.
10596         
10597         * troff/Makefile: Change comment in DEFINES to avoid confusing
10598         System V make.
10600         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
10601         code.  Don't try to catch errors with stopped.
10602         (check_line_lengths): New function.
10603         * ps/devps/prologue (EXEC): Deleted.
10604         (EBEGIN, EEND): New procedures.
10606 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
10608         * troff/input.c: Include request.h before node.h.
10609         * troff/node.c: Likewise.
10610         * troff/env.c: Likewise.
10611         * troff/div.c: Likewise.
10612         * troff/node.h (class special_node): Store argument as a macro
10613         rather than a char *.
10614         * troff/node.c (special_node::special_node, special_node::copy):
10615         Grok this.
10616         (special_node::~special_node): Deleted.
10617         (special_node::tprint): Deleted.
10618         (special_node::tprint_start, special_node::tprint_end,
10619         special_node::tprint_char): New functions.
10620         (troff_output_file::special): Deleted.
10621         (troff_output_file::start_special, troff_output_file::end_special,
10622         troff_output_file::special_char): New functions.
10623         * troff/input.c (special_node::tprint): New function.
10624         (do_special): Use macro not char *.
10625         (do_transparent_macro): Deleted.
10626         (token::next): Don't call do_transparent_macro.
10628         * troff/input.c (token::next): Add 'Y' case.
10629         (do_transparent_macro): New function.
10630         * troff/node.c (troff_output_file::special): Handle newlines with
10631         argument using new continuation convention.
10632         * driver/input.c (get_string): Cope with continuation convention.
10633         (do_file): Don't call skip_line after calling get_string(1).
10634         * ps/ps.c (ps_printer::special, ps_printer::do_import,
10635         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
10636         arg.
10637         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
10638         with +.
10640 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
10642         * troff/input.c (asciify): By default, illegal input characters
10643         should return empty string.
10645         * troff/input.c (copy_file): Handle first page transition like title.
10646         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
10648         * troff/input.c (token::next): Improve error message for EOF after
10649         escape character.
10650         (input_char_description): New function.
10651         (get_char_for_escape_name): Use input_char_description.
10652         (token::next): Warn about unrecognized escape sequences.
10653         (warning_table): Add WARN_ESCAPE.
10654         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
10655         accordingly.
10657         * troff/token.h: Remove declaration of process_input_stack.
10659         * troff/input.c: Remove declaration of init_hyphen_requests.
10660         * troff/request.h: Correct spelling in declaration of same.
10662         * troff/input.c (token::next): Check whether escape_char is 0.
10664 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
10666         * groff.c (main, usage, help): Implement -P and -L options.
10667         * groff.sh: Likewise.
10669         * troff/input.c (token::next): Use some gotos to avoid code
10670         duplication.
10672         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
10673         Avoid calling symbol::symbol if name empty.
10675 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
10677         * troff/input.c (init_input_requests): Make \n(.x return the major
10678         version number and \n(.y return the minor version number.
10679         * troff/Makefile: Construct file majorminor.c defining
10680         major_version and minor_version automatically from ../VERSION.
10682         * troff/node.c (class glyph_node): Make operator new and operator
10683         delete public.
10684         (class ligature_node): Similarily.
10686         * troff/input.c (operator==(const macro &, const macro &)): New
10687         function.
10688         (non_interpreted_node::same): Use this.
10689         (string_iterator::string_iterator): Make macro& argument const.
10691         * troff/input.c (input_iterator::get): New function. Don't make
10692         asciify_macro or class non_interpreted_node friends of class
10693         input_iterator.
10694         (non_interpreted_node::interpret): Use input_iterator::get.
10695         (asciify_macro): Likewise.
10697         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
10698         ~non_interpreted_node): Deleted.
10699         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
10700         Deleted.
10702         * troff/symbol.h: Make all symbol member functions const.
10704         * lib/strtol.c: New file.
10705         * lib/Makefile: Add strtol.c.
10706         * Makefile: Define STRTOL as strtol.o to include strtol in
10707         libgroff.a.
10709 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
10711         * pic/troff.c (troff_output::simple_circle): Divide by scale.
10713 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
10715         * troff/input.c (do_special): Use input_level.
10717         * troff/token.h (TOKEN_BACKSPACE): New token.
10718         (token::backspace): New function.
10719         * troff/input.c (token::description, token::next, token::process):
10720         Grok TOKEN_BACKSPACE.
10721         (do_special): Turn TOKEN_BACKSPACE back into \b.
10723         * troff/token.h (token::leader): New function.
10724         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
10726         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
10728         * troff/input.c (do_special): Use token::description in error
10729         message.
10731 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
10733         * troff/input.c (decode_args): Combine quoted and
10734         quote_input_level variables. Make it a for (;;) loop.
10736         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
10738         * troff/input.c (read_long_escape_name): The test for whether to
10739         expand buffer was off by 1.
10740         (read_string): Similarily.
10742 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
10744         * troff/input.c: Use `const int' rather than `static const int'.
10746         * troff/div.h (diversion::copy_file): Declare as pure virtual.
10747         (macro_diversion::copy_file): New function.
10748         * troff/node.h: New class diverted_copy_file_node.
10749         * troff/node.c: Implement it.
10750         * troff/input.c (copy_file): Use diversion::copy_file. Handle
10751         first page transition by pushing a diverted_copy_file_node.
10752         * troff/input.c (token::next, process_input_stack): Don't handle
10753         COPY_FILE_REQUEST.
10755 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
10757         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
10758         whether space widths need adjusting.
10760         * troff/charinfo.h: Generalize translated_to_space to
10761         special_translation so as to allow translation to \&.
10762         * troff/input.c (translate): Allow translation to \&.
10763         (charinfo::*): Corresponding changes.
10764         * troff/node.c (make_node, node::add_char): Corresponding changes.
10765         * troff/node.h (dummy_node::dummy_node): Allow optional first
10766         argument.
10768         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
10769         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
10770         TOKEN_REQUEST.
10771         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
10772         TOKEN_REQUEST with an argument of TITLE_REQUEST.
10773         (token::process): Grok that.
10774         * troff/input.c (copy_file): Handle first page transition like
10775         title by pushing a COPY_FILE_REQUEST cookie.
10776         (token::next, process_input_stack): Grok that.
10777         * troff/node.h (output_file::copy_file): Add x and y arguments.
10778         Make it non-pure.
10779         * troff/div.c (top_level_diversion::copy_file): Supply them.
10780         * troff/node.c (troff_output_file::copy_file): Add x and y
10781         arguments; moveto specified position.  Invalidate font_position
10782         array after copying file.
10783         (output_file::copy_file): New function.
10784         (suppressed_output_file::copy_file, ascii_output::copy_file):
10785         Removed.
10786         * troff/input.c (transparent_file): New function.
10787         (init_input_requests): Bind to "trf".
10788         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
10789         (process_input_stack): Likewise.
10791         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
10793         * troff/node.c (init_node_requests): New number registers .kern
10794         pointing to global_kern_mode, and .lg pointing to
10795         global_ligature_mode.
10797         * troff/node.c (ligature): Don't change it if we get a bad
10798         integer.
10800         * troff/input.c (do_define_string): Don't strip tabs.
10802         * troff/input.c (asciify_macro): Make the string_iterator auto.
10804         * troff/node.c (init_font_requests): Rename to...
10805         (init_node_requests):
10806         * troff/node.h: Change declaration.
10807         * troff/input.c (main): Change call.
10809         * troff/input.c (node::reread, diverted_space_node::reread): New
10810         methods.
10811         (process_input_stack): Call reread rather than
10812         get_diverted_space_node.
10813         * troff/node.c (node::get_diverted_space_node,
10814         diverted_space_node::get_diverted_space_node): Removed.
10815         * troff/node.h: Declare reread methods instead of
10816         get_diverted_space_node methods. Make `n' member private.
10817         * troff/input.c: (token::diverted_space): Removed.
10818         * troff/token.h: Removed declaration.
10819         
10821 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
10823         * eqn/script.c (script_box::compute_metrics): Don't let
10824         SUP_RAISE_FORMAT become negative.
10826         * tbl/table.c (table::do_row): Entries that don't end in the
10827         this row shouldn't make the row non-blank.
10828         
10829         * tbl/table.c (table::make_columns_equal): Only set the width of
10830         columns which are marked as equal.
10831         
10832         * tbl/main.c (process_data): Before issuing excess data error,
10833         if last character was a newline unget it; then get it again after
10834         the error.  Also include the contents of the entry in the message.
10836         * groff.c: New file.
10837         * Makefile: Build groff from groff.c.  Make it possible to use
10838         either groff.sh or groff.c as groff.
10839         * Makefile.bd: Similarily.
10841 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
10843         * groff.sh: Don't delay expansion of $@ in assignment to files.
10844         Remove occurrences of \".
10846 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
10848         * all Makefiles: Simplify and rearrange.
10850         * Makefile: Handle fmod like malloc.
10851         * lib/Makefile: Similarily.
10852         * lib/fmod.c: Remove #ifdef NEED_FMOD.
10854         * Makefile: Rename OPTIMISE to OPTIMIZE.
10856         * groff.sh: Remove assignment to PATH.
10857         * Makefile: Remove SHPATH variable.
10858         * Makefile.bd: Similarily.
10860         * groff.sh: Add -V option to print the pipeline instead of
10861         executing it.
10863 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
10865         * lib/font.c: Split off file searching into ...
10866         * lib/fontfile.c: New file.
10868         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
10870 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
10872         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
10873         Also change misleading comment.
10874         (table::do_vspan): Change similarily misleading comment.
10875         * tbl/main.c (process_data): A format row with an explicit `s'
10876         uses up a data line, even if all the other columns are `_' or `='.
10878         * troff/input.c (token::description): Fix description of
10879         TOKEN_DUMMY and TOKEN_EMPTY.
10881 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
10883         * groff.sh: Fix description of -Z in help message.
10885 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
10887         * pic/object.c (object_spec::make_object): Allow negative and zero
10888         line thicknesses.
10889         * pic/pic.y: Give linethick default value of -1.0.
10890         * pic/troff.c (troff_output::troff_output): Initialize
10891         last_line_thickness to BAD_THICKNESS.
10892         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
10893         (troff_output::line_thickness): Canonicalize negative thicknesses
10894         to RELATIVE_THICKNESS.
10895         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
10896         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
10897         to -1.0.
10898         (tex_output::start_picture): Set pen_size to -2.0.
10900         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
10901         0, then use 0 linewidth.
10902         (ps_printer::ps_printer): Initialize line_thickness to -1.
10904         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
10906         * ps/devps/symbolchars: Remove `or'.
10907         * ps/tmac.ps: Implement \(or with .char.
10909         * ps/devps/symbolchars: Move most characters into textmap.
10910         * ps/devps/textmap: Add names for troff bracket characters. Remove
10911         ul, ru, br, bv.
10913         * ps/devps/TSymbol.ps: Removed.
10914         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
10915         * ps/tmac.ps: Do with .char what TSymbol did.
10916         * ps/devps/download: Remove TSymbol.
10918         * ps/devps/T: Removed.
10919         * ps/devps/Troff.ps: Removed.
10920         * ps/devps/Troff.afm: Removed.
10921         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
10922         * ps/devps/download: Remove Troff.
10923         * ps/devps/FontMakefile: Remove T target.
10924         * ps/devps/DESC-A4: Remove T from font list.
10925         * ps/devps/DESC-letter: Likewise.
10927         * troff/input.c (macro_to_node): Rename to ...
10928         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
10929         character's definition while processing it.
10930         * troff/node.c (node::add_char, make_node): Change calls to
10931         macro_to_node accordingly.
10933         * troff/input.c (token::next): Translate \_ to \(ul.
10935         * tty/devascii/R.proto: Add `|'.
10936         * tty/devlatin1/R.proto: Likewise.
10938 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
10940         * man: Put the version number in all the man pages.
10942 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
10944         * Makefile.bd: New file.
10945         * README.bd: New file.
10947         * VERSION: New file.
10948         * lib/version.c: Removed.
10949         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
10950         in clean target.
10952         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
10953         environment variable.
10955         * all Makefiles: Split install target into install.bin for
10956         binaries, and install.nobin for everything else.
10957         * Makefile: Add bindist target.
10959         * man/afmtodit.man: New file.
10960         * man/Makefile: Add afmtodit.n to MAN1PAGES.
10961         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
10962         in BINDIR.
10963         * ps/Makefile: Pass BINDIR to make install in devps.
10965         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
10966         the space character.
10968         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
10970 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
10972         * ps/ps.c: Redo font downloading.
10973         * ps/devps/download: New file.
10974         * ps/devps/Makefile: Add download to DEVICEFILES.
10975         * ps/devps/afmtodit: Remove -d option.
10976         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
10977         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
10978         * ps/devps/zapfdr.ps: Likewise.
10979         * ps/devps/TSymbol.ps: Likewise.
10981 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
10983         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
10985 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
10987         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
10988         then strip the first line if it starts with %.
10989         * Makefile: Add a comment about this.
10991         * man/tfmtodit.man: New file.
10992         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
10993         * dvi/Makefile: Install tfmtodit in BINDIR.
10995         * dvi/tfmtodit.c (usage): Mention -v option.
10997 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
10999         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11000         * troff/node.c (troff_output_file::transparent_char): Don't call
11001         flush_tbuf.
11003         * eqn: Add check_tabs method to most box classes.
11004         * eqn/box.c (box::top_level): Call check_tabs.
11006         * eqn/script.c (script_box::output): Use \Z.
11007         * eqn/limit.c (limit_box::output): Use \Z.
11009         * eqn/box.c (box::top_level): Use itoa.
11011 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
11013         * dvi/tmac.dvi: Add font translations for CR, C, TT.
11014         * dvi/devdvi/Makefile: Don't make links to CW.
11016         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11017         HX, HD.
11018         * xditview/tmac.X: Likewise.
11020         * troff/node.c: Add font translation feature.
11021         (get_font_translation): New function.
11022         (symbol_fontno): Translate the font name.
11023         (mount_font_no_translate): Rename to mount_font to this.
11024         (mount_font): New function.
11025         (font_family::make_definite): Call mount_font_no_translate instead
11026         of mount_font.
11027         (mount_style): Translate the font name.
11028         (font_translate): New function.
11029         (init_font_requests): Bind "ftr" to font_translate.
11031         * ps/devps/prologue (SN): New procedure that rounds a position to
11032         the nearest (pixel + (.25,.25)).
11033         (DL): Use SN to round endpoints.
11035         * lib/version.c: Changed version to 0.5.
11037 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
11039         * Makefile: Move definition of PAGE to the very beginning, so that
11040         people are less likely to miss it.
11042 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
11044         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11046         * troff/env.c (environment::choose_breakpoint): Make `can't find
11047         breakpoint' error a warning of type WARN_BREAK.  Change message to
11048         `can't break line'.
11049         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11050         code 040000.
11051         * troff/input.c: Add WARN_BREAK to warning_table.  Include
11052         WARN_BREAK in DEFAULT_WARNING_MASK.
11054         * tty/tmac.tty: Add definition of \(+-.
11056         * groff.sh: Remove `--' option to set command.
11058         * dvi/devdvi/texsy.map: Remove duplicate md entry.
11060         * ps/devps/eqnchar: Better definition of cdot using md.
11061         * dvi/devdvi/eqnchar:  Likewise.
11062         * xditview/devX100/eqnchar:  Likewise.
11063         * xditview/devX75/eqnchar: Likewise.
11064         * eqn/lex.c: Add definition of cdot.
11066 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
11068         * troff/input.c (get_optional_char): New function.
11069         * troff/input.c (set_page_character): Use get_optional_char(),
11070         rather than has_arg() and tok.get_char(1).
11071         * troff/env.c (tab_character, leader_character, hyphen_char,
11072         field_characters): Likewise.
11073         (margin_character): Likewise.  Also always delete the
11074         margin_character_node.
11076         * troff/input.c (token::get_char): Use token::description.
11078         * troff/input.c (has_arg): Don't skip over tab and \}.
11079         * troff/number.c (start_number): Give a warning if the number
11080         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
11082 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
11084         * troff/input.c (empty_name_warning, non_empty_name_warning): New
11085         functions.
11086         (get_name, get_long_name): Use these.  Rename `warn' argument to
11087         `required'.
11089         * troff/node.c (get_fontno): Test that the symbol is not null.
11091         * troff/input.c (token::description): New function.
11092         * troff/number.c (parse_term): Use token::description in `numeric
11093         expression expected' message.
11094         * troff/groff.h: Add WARN_MISSING.
11095         * troff/number.c (start_number): New function.
11096         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
11097         get_incr_number): Use start_number().
11098         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
11099         default.
11100         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
11101         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
11102         token::descripion.
11103         * troff/input.c (token::get_char): Use WARN_MISSING.
11104         * troff/input.c (token::delimiter): Use token::description.
11105         * troff/env.c (environment_switch): Back out Aug 3 change.
11106         * troff/input.c (has_arg): Skip over \}s and tabs but give a
11107         warning.
11108         * troff/token.h (token::tab): New function.
11109         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
11110         * troff/reg.c (alter_format): Likewise.
11111         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
11113 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
11115         * troff (most files): Redo warnings. Divide warnings into various
11116         categories; warning() has an additional first argument indicating
11117         the category it falls into.
11118         * troff/input.c (main): -w now takes an argument. New option -W.
11119         (enable_warning, disable_warning): New functions.
11121         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
11122         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
11124 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
11126         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
11127         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
11128         * xditview/devX75/eqnchar: Likewise.
11129         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
11131         * eqn/other.c: When bar or over applies to a single character
11132         don't produce an overline_box or an underline_box. Instead produce
11133         an accent_box or an underaccent_box, with the accent a line
11134         whose width is accent_width.  New classes underaccent_box,
11135         overline_char_box and underline_char_box.
11136         * eqn/box.h: Move overline_box, underline_box, accent_box class
11137         declarations into eqn/other.c. Add declarations of
11138         make_underline_box, make_overline_box, make_accent_box.
11139         * eqn/eqn.y: Call make_overline_box, make_underline_box
11140         make_accent_box instead of constructors.
11141         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
11143         * eqn/other.c: Add accent_box::~accent_box.
11144         * eqn/box.h: Declare it.
11146         * groff.sh: With -Tps, use eqn -D.
11148         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
11149         rather than \l.
11150         (underline_box::output): Similarily.
11151         (accent_box::output): Use \Z.
11153         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
11154         bit smaller.)
11156 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
11158         * troff/div.c (top_level_diversion::transparent_output(unsigned
11159         char)): Use asciify.
11160         * troff/input.c (asciify): Don't make it static.
11161         * troff/token.h (asciify): Declare it.
11162         
11163         * troff/input.c (get_name, get_long_name, token::get_char,
11164         token::delimiter): Add an extra default argument which says
11165         whether a warning should be printed.
11166         * troff: Pass a non-zero argument to one of these rather than
11167         printing a warning directly.
11169 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
11171         * troff: Consistently use symbol::is_null.
11173         * troff/dictionary.h: Move some inline functions into
11174         dictionary.c.
11176         * troff/request.h: Move inline functions into input.c.
11177         (request_or_macro::invoke): Make it pure.
11179         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
11180         * troff/input.c (init_input_requests): Use class constant_int_reg.
11181         (class compatible_reg): Deleted.
11182         * troff/div.c (init_div_requests): Use class constant_int_reg.
11183         (class last_post_line_extra_space_reg): Deleted.
11185         * troff/env.c (tab_character): Don't change the tab character if
11186         we get an invalid argument.
11187         (hyphen_char): Similarily.
11189         * troff/reg.c (alter_format): Check that nm is not null.
11191         * Makefile, groff.sh: Make it possible to customize the commands
11192         used for printing PostScript and dvi files. Also make it possible
11193         to customize the path used by groff.sh.
11195         * eqn/eqn.y: Make `left' right associative.
11197 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
11199         * pic/pic.h: Added definition of M_SQRT2 for those systems that
11200         don't have it.
11202         * pic/pic.h: Removed definition of INT_MAX.
11204         * troff/node.c (italic_corrected_node::vertical_extent): Omit
11205         `return'.
11207         * troff/input.c (token::next):  Handle \R like \n.
11209 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
11211         * ps/tmac.pc (PSPIC): Simplify.
11213         * troff/env.c (tab_stops::to_string):
11214         * pic/pic.y (object_type_name):
11215         * pic/troff.c (simple_output::line):
11216         * pic/tex.c (tex_output::spline):
11217         * pic/object.c (object_spec::make_object):
11218         * tbl/main.c (process_data):  Add cases to switch statements to
11219         avoid cfront warnings. (Some of these are spurious, since the
11220         switch already has a default case.)
11222         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
11223         `ps-'.  Don't test systat; instead check number of arguments to
11224         ps-bb.
11226 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
11228         * macros/tmac.e: Do not decrease the page offset by 0.5i.
11230         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
11231         Unlink the file as soon as we have opened it, so that we don't
11232         have to bother with signal handlers.
11233         (handler): Deleted.
11234         (fatal_error_exit): Deleted.
11235         (main): Don't call signal.
11237         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
11238         can be ignored.
11239         * dvi/devdvi/Makefile: Use the -k option with S and MI.
11241         * pic/pic.y:  If there is a label, or an nth construction before
11242         the first `.' in the argument to `with', ignore it and generate a
11243         warning.
11244         * pic/lex.c (lex_warning): New function.
11246         * tbl/table.c (table::init_output): In section keep and release
11247         macro, use 0 indent when diverting and the correct indent when
11248         rereading.
11250         * troff/input.c (interpolate_number_format): Do not interpolate
11251         anything if the number register is not defined.
11253         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
11255 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
11257         * ps/devps/prologue (PICTURE): Set components of graphics state to
11258         their default values.
11260         * ps/devps/text.enc: Add trademark
11261         * ps/devps/textmap: Add names for club, spade, heart, diamond,
11262         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
11263         * ps/devps/symbolchars: Add names for summation and product.
11265         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
11266         suchthat. Add pp. Add upper-case letters.
11268         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
11269         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
11270         Upsilon.
11272         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
11273         rA (right angle bracket) to ra.  Introduce names for double-headed
11274         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
11275         * ps/devps/textmap: Likewise for ps device.
11276         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
11277         * tty/devascii/R.proto: Rename lA to la and rA to ra.
11278         * tty/devascii/R.proto: Likewise.
11279         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
11280         \(uA, \(dA.
11281         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
11283         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
11285         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
11286         def_table.
11288 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
11290         * troff/div.c (when_request): Use symbol::is_null rather than
11291         has_arg to determine whether we have an argument.
11292         (change_trap): Remove the trap if we get an invalid number. Give
11293         an error if we don't get at least the macro name.
11294         (diversion_trap): Remove trap if we get an invalid name or number.
11296         * troff/env.c (environment_switch): Pop if we get an invalid
11297         symbol or numeric expression.
11299         * troff/input.c (do_define_macro):  If EOF is encoutered while
11300         defining the macro, do tok.next() before returning.
11302         * troff/token.h (has_arg): Move definition from here, to ...
11303         * troff/input.c (has_arg): ... here
11305         * troff/env.c (space_size): Do nothing if we get an invalid argument.
11306         * troff/input.c (shift): Likewise.
11308         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
11309         for `.c'.
11311         * pic/troff.c (troff_output::start_picture):  Comment out calls to
11312         `..'.
11314         * eqn/main.c (do_file): Subtract 1 from current_lineno if
11315         interpret_lf_args succeeds.
11317         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
11318         \\.  This avoids problems with \$N.
11320         * groff.sh: Pass -C to preprocessors.
11322         * lib/lf.c (interpret_lf_args):  Be more flexible.
11324         * tbl/main.c (main): Add -C option.
11325         (table_input::get): Do not recognize TE if followed by character
11326         other than a space or newline unless -C option given.
11327         (process_input_file): Likewise for lf, TS.
11328         (process_data): Likewise for lf in text blocks.
11330         * eqn/main.c (main): Add -C option.
11331         (do_file): Don't recognize EQ, EN or lf if followed by character
11332         other than space or newline unless -C option given.
11333         * eqn/lex.c (file_input::read_line): Similarily.
11334         * eqn/eqn.h: Declare compatible_flag.
11336         * etc/soelim.c (main): Add -C option.
11337         (interpret_lf_args): Use version in libgroff.
11338         (do_file):
11340         * pic/main.c (main): Add -C option, which sets compatible_flag.
11341         (top_input::get), (top_input::peek):  If -C option not given,
11342         do not recognize .PS/.PE/.PF/.lf if followed by a character
11343         other than space or newline.
11344         * pic/lex.c (file_input::read_line): Similarily.
11345         * pic/pic.h: Add declaration of compatible_flag.
11347 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
11349         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
11351         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
11352         derived from node.  New class space_char_hmotion_node.
11353         * troff/input.c (asciify_macro): New function.
11354         * troff/input.c (init_input_requests): New request `asciify' bound
11355         to asciify_macro.
11356         * macros/mm.diff: New file.
11357         * Makefile:  In install.mm target use `patch' to apply
11358         macros/mm.diff.
11360         * troff/input.c (macro::print_size): Just print the size in bytes.
11362         * troff/div.c (return_request): Correct the argument
11363         interpretation.
11365 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
11367         * troff/node.h (class composite_node): Add sz member.
11368         * troff/node.c (composite_node::size): Return sz.
11369         * troff/input.c (macro_to_node):  Use the initial size in the
11370         environment as the size of the composite_node.
11372         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
11373         default.
11375 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
11377         * troff/div.c (change_trap): If we get a bad number expression,
11378         do nothing.
11380 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
11382         * lib/matherr.c (matherr): Define this only if math.h defines
11383         TLOSS.
11385 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
11387         * troff/div.c (macro_diversion::distance_to_next_trap): If there
11388         no diversion trap return vunits(INT_MAX - vresolution).
11390 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
11392         * troff/input.c (do_zero_width): New implementation that doesn't
11393         use a temporary environment. Use instead:
11394         (token::add_to_node_list): New function.
11395         * troff/env.c (environment::get_prev_char_height),
11396         (environment::get_prev_char_height),
11397         (environment::get_prev_char_skew): New functions.
11398         (environment::get_prev_char): New function.
11399         (environment::get_prev_char_width): Change to use get_prev_char.
11400         (init_env_request): Implement new registers .cht, .cdp, .csk.
11401         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
11402         \Z being processed in a separate environment.
11404 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
11406         * tbl/table.c: Removed TABLE_BOTTOM_REG.
11408         * tbl/table.c (table::init_output): In the section release macro,
11409         give a warning message if the section won't fit on one page.
11411         * tbl/table.c (table::do_top): Emit table keep only if table is
11412         boxed.
11413         (table::do_bottom): Likewise for table release.
11414         (table::table), (table::add_vertical_rule):  Remove reference to
11415         keep member.
11416         * tbl/table.h: Remove keep member.
11418         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
11419         SECTION_RELEASE_MACRO, if there's not enough space before the next
11420         trap to output the diversion, call T# ourselves, set
11421         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
11422         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
11423         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
11424         vertical position and return to it before turning traps on again.
11425         
11426 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
11428         * troff/node.c, troff/node.h: In classes derived from node,
11429         replace prev_char_width method by last_char_node method.
11430         * troff/env.c (environment::get_prev_char_width): Use
11431         node::last_char_node rather than node::get_prev_char_width.
11433         * Makefile: Added comment about -fno-inline on 68030-based
11434         Apollos.
11436         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
11437         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
11438         expressions using sizeof to int.
11439         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
11441         * macros/tmac.e (TS):  Don't move @f back past the current
11442         position.
11444 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
11446         * ps/ps.c (main): Buffer stderr.
11447         * dvi/dvi.c (main): Likewise.
11448         * tty/tty.c (main): Likewise.
11450         * ps/ps.c (ps_printer::do_import): Improve error handling.
11452         * troff/input.c (abort_request): Use asciify.
11454         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
11455         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
11456         type of first argument int rather than char.  This works around a
11457         bug on the 68030 based Apollo using g++ 1.37.1.
11459         * tbl/table.h (class table): Add `keep' member.
11460         * tbl/table.c (table::table): Initialize `keep'.
11461         (table::add_vertical_rule): Set `keep' to 1.
11462         (table::do_top): Only emit table keep macro is `keep' is non-zero.
11463         (table::do_bottom): Likewise for table release macro.
11464         (table::do_row): Emit section keep macro even if the row is 0.
11466 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
11468         * macros/tmac.e (@C): Preserve the font family across the change
11469         in environments.
11471 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
11473         * lib/font.c: Initialize font::hor and font::vert to 1.
11474         (font::load_desc): Check the values of font::hor and font::vert.
11476         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
11477         be included in a C compilation.
11478         (iftoa): Use INT_DIGITS. Include lib.h.
11479         (itoa): Likewise.
11480         (as_string): Likewise.
11481         * tbl/table.c: Removed definition of INT_DIGITS.
11482         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
11483         * troff/input.c (input_input_requests): Likewise.
11484         * ps/ps.c (make_encoding_name): Likewise.
11485         (ps_printer::set_style): Likewise.
11486         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
11488         * tty/devascii/R.proto: Map fm onto '.
11489         * tty/devlatin1/R.proto: Likewise.
11491 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
11493         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
11494         argument to \w is at a different input level.
11496         * tbl/table.c (table::init_output): Define a new macro
11497         REPEATED_VPT_MACRO, like vpt but if in a diversion also
11498         transparently outputs itself.
11499         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
11500         vpt.
11501         (table::do_row): Likewise.
11503         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
11504         TRANSPARENT_STRING_NAME.
11506         * tbl/table.c (table::init_output): In the table release macro
11507         print an error message and don't produce any output if after
11508         issuing the need request the table still will not fit.  Also
11509         remove the diversion after bringing it back.
11511         * tbl/table.c (table::init_output): Define a new macro
11512         REPEATED_MARK_MACRO, like mk but if in a diversion also
11513         transparently outputs itself.
11514         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
11515         is necessary because .TH might not call .T#.
11516         (table::do_top): Likewise TOP_REG.
11517         (table::define_bottom_macro): If TOP_REG is no longer valid, use
11518         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
11519         table header might contain just the two top rules.
11521 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
11523         * troff/div.c: Implement new request `ptr' to print all traps.
11525         * troff/env.c (init_env_requests): Implement `.tabs' reg with
11526         init_string_env_reg.
11527         * troff/env.c (class tab_reg): Deleted.
11529 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
11531         * troff/div.c: New number register .pn returns the number of the
11532         next page as set by the pn request.
11534         * macros/tmac.an: Redid headers and footers.  Number each manual
11535         entry starting from 1 unless \nC is > 0, like Sun.  Added an
11536         optional 5th argument to .TH which specifies the manual name and
11537         appears in the center of the header.  Understand the X, P and D
11538         registers like Sun.
11540 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
11542         * troff/env.c (init_env_requests): New number register `.lt' to
11543         return the title length.
11545         * troff/node.h (class transparent_dummy_node): New class.
11546         * troff/node.c (class transparent_dummy_node): Provide member
11547         functions. 
11548         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
11549         than a dummy_node.
11551         * troff/input.c (token::next): New escape sequence \).
11552         * troff/input.c (get_copy): Recognize \) in copy mode.
11554         * troff/input.c (input_stack::clear): New function.
11555         * troff/input.c (exit_request): Use input_stack::clear.
11557         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
11558         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
11560         * troff/env.c: Move set_page_character to input.c.  Move
11561         page_character to input.c also.
11562         * troff/env.c (title): Split off the reading of the parts of the
11563         title into read_title_parts.
11564         * troff/input.c (read_title_parts): New function.  Check the
11565         input_level when testing whether a token matches the delimiter.
11567         * troff/input.c (exit_request): New function.
11568         * troff/input.c (init_input_requests): Bind ex request to
11569         exit_request rather than exit_groff.
11571         * troff/input.c (exit_groff): Call tok.next() before
11572         process_input_stack().
11574 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
11576         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
11577         * troff/env.h: ditto.
11578         * troff/input.c: ditto.
11580         * troff/env.c (environment::is_empty): Test pending_lines.
11582         * troff/env.c (environment::have_pending_lines): Removed.
11584         * troff/input.c: Add request to flush pending lines from the
11585         environment.
11587         * troff/env.c, troff/env.h: Add automatic widow control feature.
11589         * troff/input.c (exit_groff):  Do process_input_stack() after
11590         do_break() but before setting exit_flag to 2.
11592         * troff/input.c: Remove FLUSH_PENDING_LINES and
11593         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
11594         environment after END_TRAP token seen, but only if there aren't
11595         any more traps still unfinished.
11596         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
11598 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
11600         * troff/env.c: Rename the `retain_size' member of class
11601         pending_output_line to `no_fill'.
11603         * troff/env.c (title): When the line is output, make the
11604         retain_size argument !fill.
11606         * troff/node.h: Add `hyphenated' member to struct breakpoint.
11607         * troff/node.c (space_node::get_breakpoints),
11608         (dbreak_node::get_breakpoints):  Fill this in.
11609         * troff/env.c:  Allow specification of maximum number of
11610         consecutive hyphenated lines.
11612         * troff/env.c (environment::is_empty): Add test for !current_tab.
11614 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
11616         * troff/env.c (environment::hyphenate_line): Don't completely give
11617         up if the word is not to be hyphenated; continue so that breaks
11618         can be made at break_char_node's.
11620         * lib/lib.h: Only define INT_MAX if it's not already defined;
11621         undef INT_MIN if it's already defined.
11623         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
11625         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
11626         This works around a bug in AT&T C++ 2.0 used with an ANSI C
11627         compiler.
11628         
11629         * macros/tmac.an (an-header): Set no-space mode.
11631         * macros/tmac.an (TH): Start a new page if necessary.
11633         * Started using ChangeLog at version 0.4.
11635 Local Variables:
11636 version-control: never
11637 coding: latin-1
11638 End: