* contrib/pic2graph/pic2graph.*: Use convert(1).
[s-roff.git] / ChangeLog
blobd277fbb331f89f911a4124ce1497e838b316d67f
1 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
3         * contrib/pic2graph/pic2graph.*: Use convert(1).
4         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
6 2002-07-14  Bernd Warken  <bwarken@mayn.de>
8         * tmac/groff_trace.man: New file.
9         * tmac/Makefile.sub: Updated.
10         * NEWS: Updated.
12 2002-07-13  Werner LEMBERG  <wl@gnu.org>
14         * src/roff/groff/groff.man: Add some cross references.
16 2002-07-12  Werner LEMBERG  <wl@gnu.org>
18         * src/roff/troff/input.cc (substring_request): Add warnings for
19         string indices out of range.
21 2002-07-11  Werner LEMBERG  <wl@gnu.org>
23         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
24         * font/devdvi/*EC: Regenerated.
26 2002-07-10  Bernd Warken  <bwarken@mayn.de>
28         * man/groff_char.man: Updated and extended.
30 2002-07-10  Werner LEMBERG  <wl@gnu.org>
32         * src/roff/troff/input.cc (length_macro): Renamed to...
33         (length_request): This.
34         Move call of `tok.next()' to the very end, otherwise the register
35         value hasn't been updated yet.
36         (init_input_requests): Updated.
38 2002-07-09  Werner LEMBERG  <wl@gnu.org>
40         * src/roff/troff/input.cc (substring_macro): Renamed to...
41         (substring_request): This.
42         (init_input_requests): Updated.
43         * src/roff/troff/request.h: Updated.
45 2002-07-08  Robert D. Goulding <goulding@Princeton.EDU>
47         * src/roff/grog/grog.sh: Fix typo.
49 2002-07-08  Werner LEMBERG  <wl@gnu.org>
51         * win32-diffs: Updated.
53         Handle `papersize' keyword properly in DESC.
55         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
56         type.
57         Updated all callers.
58         * src/libs/libgroff/paper.cc: Add four more paper formats used by
59         grolj4.
60         * src/include/paper.h: Updated.
62         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
63         Other minor C syntax fixes.
64         (papersize, paperlength, paperwidth): Renamed to `user_*'.
65         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
66         members.
67         (lbp_printer::lbp_printer): Pass three arguments.
68         Set paper dimensions properly.
69         (make_printer, main): Updated.
70         (handle_unknown_desc_command): Fix error messages.
71         (main): Handle papersize keyword in DESC properly.
73         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
74         `user_paper_size'.
75         (lbp_printer::lbp_printer): Pass an argument.
76         Set paper_size properly.
77         (handle_unknown_desc_command): Removed.
78         (make_printer, main): Updated.
79         * src/devices/grolj4/grolj4.man: Minor documentation fix.
81         * man/groff_font.man, NEWS: Updated.
83 2002-07-07  Werner LEMBERG  <wl@gnu.org>
85         Integrated eqn2graph, contributed by Eric S. Raymond.
87         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
88         files.
89         * Makefile.in, NEWS: Updated.
91 2002-06-04  Werner LEMBERG  <wl@gnu.org>
93         Changing the substring request to make it fit better with other
94         string manipulation functions in other programming languages:
95         Index 0 is now the first character in the string, and index -1
96         indicates the last character.  Since this request didn't work
97         properly anyway in the last release, it doesn't harm too much to
98         change the syntax.
100         * src/roff/troff/input.cc (substring_macro): Use loops to get
101         the real string length (ignoring COMPATIBLE_SAVE and
102         COMPATIBLE_RESTORE) and offsets.
103         Implement change described above.
105         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
106         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
108         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
110 2002-06-03  Werner LEMBERG  <wl@gnu.org>
112         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
113         COMPATIBLE_RESTORE are completely ignored.
115         * src/roff/troff/input.cc (char_list::set, char_list::get): New
116         functions.
117         (macro): `length' field renamed to `len'.
118         Added new field `empty_macro' (1 if macro is empty), to be used
119         instead of checking `len'.
120         Updated all callers.
121         (macro::empty): Updated.
122         (macro::length, macro::set, macro::get): New functions.
123         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
124         Set `empty_macro'.
125         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
126         COMPATIBLE_RESTORE pairs.
127         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
128         * src/roff/troff/request.h: Updated.
130         * doc/groff.texinfo: Document .chop's behaviour better.
132 2002-06-02  Werner LEMBERG  <wl@gnu.org>
134         * doc/pic.ms: Fix documentation for the addition of positions.
136         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
138 2002-06-29  Werner LEMBERG  <wl@gnu.org>
140         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
142         * src/roff/troff/input.cc (have_string_arg): New global variable.
143         (read_mode): New enumeration.
144         (read_escape_name): Use it.  Update all calls.
145         (read_long_escape_name): Use it.  Update all calls.
146         Set have_string_arg if appropriate.
147         (get_char_for_escape_name): Add parameter for handling space
148         character.
149         (interpolate_string_with_args, decode_string_args): New functions.
150         (get_copy, token::next): Call it if necessary.
151         (interpolate_string): Fix error message.
153         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
154         Document it.
156 2002-06-24  Bernd Warken  <bwarken@mayn.de>
158         * man/groff_tmac.man: Updated and extended.
160 2002-06-24  Werner LEMBERG  <wl@gnu.org>
162         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
164 2002-06-23  Werner LEMBERG  <wl@gnu.org>
166         * doc/pic.ms: Improve documentation of composite block objects.
168 2002-06-22  Werner LEMBERG  <wl@gnu.org>
170         * src/roff/troff/input.cc (init_registers): Add three registers
171         `seconds', `minutes', and `hours' to hold the current time.
173         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
174         Updated.
176 2002-06-20  Werner LEMBERG  <wl@gnu.org>
178         Make \X accept both `\ ' and `\~', converting them to single space
179         characters.
181         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
182         (token::unstretchable_space): New inline function.
183         * src/roff/troff/input.cc (token::next, token::delimiter,
184         token::description, token::add_to_node_list, token::process): Handle
185         TOKEN_UNSTRETCHABLE_NODE.
186         (encode_char): Handle tok.stretchable_space and
187         tok.unstretchable_space.
189         * NEWS, doc/groff.texinfo: Document it..
191 2002-06-19  Werner LEMBERG  <wl@gnu.org>
193         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
195         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
196         keyword to enable/disable SGR output.
197         (tty_printer::change_fill_color): New function.
198         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
200         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
201         call.
203 2002-06-18  Werner LEMBERG  <wl@gnu.org>
205         Add a `color' request and a `.color' register to control usage of
206         colours.
208         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
209         (color_flag): This (which is the inverse).
210         (activate_color): New function.
211         (main, init_input_requests): Updated.
212         * src/roff/troff/troff.h, src/roff/troff/node.cc
213         (troff_output_file::fill_color, troff_output_file::glyph_color):
214         Updated.
216         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
217         Document the changes.
219 2002-06-17  Colin Watson  <cjwatson@debian.org>
221         Circumvent bug in autoconf 2.53 regarding top_builddir.
223         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
224         * Makefile.in, doc/Makefile.in:
225         s/@top_builddir@/@groff_top_builddir@/.
226         * configure: Regenerated (with autoconf 2.53).
228 2002-06-17  Werner LEMBERG  <wl@gnu.org>
230         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
231         `paperwidth' and `paperlength' for the `papersize' keyword.
233 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
235         * src/devices/grops/grops.man: Add info about Type 42 fonts.
237 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
239         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
240         html_printer::do_linelength, html_printer::do_pageoffset,
241         html_printer::do_indentation, html_printer::do_tempindent,
242         html_printer::do_break, html_printer::begin_page): Clear indented
243         text.
244         * tmac/html.tmac: Disable hyphenation.
246 2002-06-15  Werner LEMBERG  <wl@gnu.org>
248         Don't produce HTML files if utility programs are missing.
250         * Makefile.in (make_html, make_install_html): New variables.
251         (MDEFINES): Updated.
253         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
254         utility programs.
255         * configure.ac: Use it.
256         * configure: Regenerated.
258         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
259         (HTMLEXAMPLESFILES): This new variable.
260         (EXAMPLESIMAGEFILES): Renamed to...
261         (HTMLEXAMPLEIMAGEFILES): This.
262         (CLEANADD): Add HTMLEXAMPLEFILES.
263         (all): Use `make_html'.
264         (html): New target.
265         (install_data): Use `make_install_html'.
266         Move html stuff to...
267         (install_html): This new target.
268         (uninstall_sub): Updated.
270 2002-06-14  Bernd Warken  <bwarken@mayn.de>
272         * src/roff/grog/Makefile.sub (grog): Renamed to...
273         (grog.old): This.
274         (grog): New rule to always install grog.sh as grog.
276 2002-06-08  Bernd Warken  <bwarken@mayn.de>
278         * src/roff/grog/grog.pl: Fix typo.
280 2002-06-07  Werner LEMBERG  <wl@gnu.org>
282         * doc/groff.texinfo: Add more info on .tr arguments.
284 2002-06-05  Werner LEMBERG  <wl@gnu.org>
286         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
288         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
289         * configure: Regenerated.
291 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
293         * src/roff/troff/symbol.cc (table_sizes): Add more values.
295         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
297 2002-06-04  Werner LEMBERG  <wl@gnu.org>
299         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
300         is not initialized at the time we need it in case `--prefix' hasn't
301         been set.  Check for `ac_default_prefix' also.
302         Test for `papersize' keyword also and generalize allowed whitespace.
303         * configure: Regenerated.
305         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
306         `paperlength'.
308         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
309         with...
310         (src_version, src_revision): New variables to avoid overwriting
311         from parent make process.
312         (version.cc): Updated.
314         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
315         (linebuf, linebufsize): New global variables.
316         (sys_fatal): Use `fatal' to abort properly.
317         (get_line): New function.
318         (get_resolution): Use it.
319         Improve error messages.
320         (get_papersize): Check `papersize' also.
321         Use `get_line'.
322         Improve error messages.
324 2002-06-03  Werner LEMBERG  <wl@gnu.org>
326         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
327         should be removed only if builddir is not srcdir.
328         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
329         (clean): Depend on `mostlyclean'.
330         (distclean): Depend on `clean'.
331         (realclean, extraclean): Depend on `distclean'.
332         (.y.cc, .y.o): Simplified.  The output files are no longer written
333         to srcdir but to builddir.
334         * Makefile.in (MDEFINES): Add `version' and `revision'.
335         (uninstall_dirs): Fix order of directories.
336         * doc/Makefile.sub (version, revision): Removed.
337         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
338         Added `HTMLDOCFILES'.
339         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
340         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
341         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
342         as prefix.
344         * doc/texinfo.tex (\authortt): New macro.
345         (\shortcontt): Define.
346         (\titlepage): Set \tt to \authortt while defining \authorfont.
347         (\appendixbox): New macro.
348         (\chapmacro, \appendixentry): Use \appendixbox to get even
349         indentation for letters.
350         (\summarycontents): Set \tt.
351         (\internalpagesize): Add two arguments for real paper width and
352         height as needed by pdfTeX.
353         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
354         Updated.
355         (\tempdima, \tempdimb): New temporary dimensions.
356         (\pagesizesyyy): Updated.
358 2002-06-02  Werner LEMBERG  <wl@gnu.org>
360         Adding a new keyword `papersize' to the DESC file format (similar
361         but not completely identical to grolbp's extension).  grops now has
362         a -p command line option to override `papersize'.  Finally, grolbp
363         has been adapted to the new syntax.
365         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
366         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
367         elements.
368         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
369         (CCSRCS): Add `paper.cc'.
371         * src/include/font.h (font): Add `papersize' element.
372         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
373         (font::scan_papersize): New function.
374         (font::load_desc): Use it for handling `papersize' keyword.
375         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
377         * src/devices/grops/ps.cc: Include paper.h.
378         (user_paper_length): New global variable.
379         (ps_printer): Use paper length as initializer.
380         (make_printer): Updated.
381         (main): Handle new `-p' option.
382         * src/devices/grops/grops.man: Updated.
384         * src/devices/grolbp/lbp.cc: Include paper.h.
385         s/papersizes/lbp_papersizes/.
386         (set_papersize): Use new `papersizes' array.
387         (handle_unknown_desc_command): Don't handle `papersize'.
388         (main): Use `font::scan_papersize' for handling `-p' option.
389         * src/devices/grolbp/grolbp.man: Updated.
391         * man/groff_font.man: Document `papersize'.
392         * NEWS: Updated.
394 2002-05-30  Werner LEMBERG  <wl@gnu.org>
396         * src/devices/grops/TODO: Updated.
397         * src/devices/grops/grops.man: More info on paper formats.
398         * man/groff_font.man: Document `paperheight' and `paperwidth'.
400 2002-05-29  Werner LEMBERG  <wl@gnu.org>
402         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
403         to list only if srcdir != currdir.
404         (distfiles): New target.
406         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
407         (NOMAKEDIRS): New variable.
408         (DISTDIRS): Use it.
410 2002-05-26  Werner LEMBERG  <wl@gnu.org>
412         Add .output request, similar to \! at top-level.
414         * src/roff/troff/input.cc (transparent): Remove unused declaration.
415         (output_request): New function.
416         (init_input_requests): Add it.
417         Sorted.
418         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
419         Document it.
421         * Makefile.in (MDEFINES): Add INSTALL_INFO.
422         (prepare_examples): Fix typo.
423         * doc/groff.texinfo (@direntry): Fix it.
425 2002-05-25  Werner LEMBERG  <wl@gnu.org>
427         Including the doc subdir into groff's Makefile system.
429         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
430         * configure.ac: Use it.
431         Generate `doc/Makefile'.
432         * configure: Regenerated.
434         * Makefile.in (infodir, INSTALL_INFO): New variables.
435         (MDEFINES, uninstall_dirs): Updated.
436         (OTHERDIRS): Add `doc'.
437         * Makefile.comm (CLEANDIRADD): New variable.
438         (mostlyclean): Use it.
440         * doc/Makefile.sub, doc/Makefile.in: New files.
441         * doc/Makefile: Removed.
443         * NEWS, INSTALL: Updated.
445 2002-05-24  Werner LEMBERG  <wl@gnu.org>
447         * doc/homepage.ms: Renamed to ...
448         * doc/webpage.ms: This.
449         Use `.NHR'.
451 2002-05-23  Werner LEMBERG  <wl@gnu.org>
453         Integrating the `mom' macro package, contributed by Peter Schaffter
454         <df191@ncf.ca>.
456         * contrib/mom/*: New subdirectory tree.
457         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
458         be used for documentation files.
459         (MDEFINES, uninstall_dirs): Use them.
460         (OTHERDIRS): Add contrib/mom.
461         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
462         @HTMLDOCDIR@.
463         * MANIFEST, NEWS: Updated.
465 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
467         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
468         if at outer level; at start-up we are at outer level.
470         * src/roff/troff/input.cc (do_suppress): Implement it.
471         Simplify \O[3].
473         Add option -p to show progress information.
474         pre-grohtml will now render only one page at a time, reducing the
475         size of needed disk resources enormously.
477         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
478         (imagePageName): New global variable.
479         (psPageName, show_progress, currentPageNo): New global variables.
480         (html_system): Close saved stderr and stdout handles.
481         (write_end_image): Accept a parameter to control \O escape.
482         (write_start_image): Adapted to new \O meaning.
483         (char_buffer::write_upto_newline): Updated.
484         (createAllPages): Replaced with...
485         (createPage): This new function to create a single page for images.
486         It uses `psselect' from the psutils package.
487         (removeAllPages): Removed.
488         (createImage): Updated.
489         Handle progress display.
490         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
491         (scanArguments): Add option -p.
492         (makeTempFiles): Updated to create temp files for psPageName and
493         imagePageName.
494         (removeTempFiles): Removed.
495         (main): Updated.
497         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
498         html_printer::write_header): Append `\0' to `buffer'.
499         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
500         (main): Handle -p.
501         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
502         Handle `text_emitted'.
503         (html_text::table_is_void): Slightly rewritten.
504         (stop): New external symbol.
505         (html_text::do_push) [DEBUGGING]: Use it and simplify.
506         (html_text::shutdown): Call `dump_stack'.
507         (html_text::do_space): Rewritten.
508         * src/devices/grohtml/grohtml.man: Document -p and the need of
509         `psselect'.
511         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
512         new \O syntax.
513         Call \O[0] if `ps4html' is active.
514         * tmac/s.tmac (@EQ, @EN): Handle html better.
515         (@TS, TE): Ditto.
516         * tmac/html.tmac: Don't use black for background colour.
518         * src/roff/troff/node.cc: Include `div.h'.
519         (troff_output_file::really_print_line): Don't use `is_on'. 
520         (troff_output_file::word_marker, troff_output_file::flush_tbuf
521         troff_output_file::check_charinfo,
522         troff_output_file::put_char_width, troff_output_file::put_char,
523         troff_output_file::determine_line_limits, troff_output_file::draw,
524         real_output_file::begin_page, glyph_color_node::tprintf,
525         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
526         Use `is_on'.
527         (troff_output_file::really_on): Call `do_motion'.
528         (suppress_node::tprint): Use `get_page_number' instead of `%'
529         register.
530         Call `reset_output_registers' conditionally on `is_on'.
532         * doc/groff.texinfo: Document new syntax of \O.
533         * NEWS, man/groff_diff.man: Updated.
535 2002-05-22  Werner LEMBERG  <wl@gnu.org>
537         * MORE.STUFF: Add info about David Frey's deroff implementation.
538         Mention troff.org.
540 2002-05-16  Werner LEMBERG  <wl@gnu.org>
542         Pic's `with' attribute now accepts positions.
544         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
545         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
546         conflicts.
547         (object_spec): Add rule for `WITH' and `position'.
548         (relative_path): Give `corner' the precedence of `CHOP'.
549         * src/preproc/pic/object.h (path): New members `pos' and
550         `is_position'.
551         * src/preproc/pic/object.cc: Updated initializers of `path'.
552         (path::follow): Handle `is_position'.
554         * doc/pic.ms: Completely updated grammar description.
555         Many typographical improvements.
557 2002-05-15  Werner LEMBERG  <wl@gnu.org>
559         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
560         code of x in range 0-127) also.
561         * doc/groff.texinfo, man/groff_diff.man: Updated.
563         Added keywords `north', `south', `east', and `west' for corners
564         in pic.
566         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
567         and WEST.
568         (yylex): Handle them.
569         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
570         (corner): Handle them.
572 2002-05-14  Werner LEMBERG  <wl@gnu.org>
574         * src/devices/grops/grops.man: Clarify handling of `download' file.
576 2002-05-11  Werner LEMBERG  <wl@gnu.org>
578         Adding `warnscale' and `spreadwarn' requests, based on a patch from
579         Jeffrey Friedl <jfriedl@yahoo.com>.
581         * src/roff/troff/input.cc (spread_limit, warn_scale,
582         warn_scaling_indicator): New global variables.
583         (warnscale_request, spreadwarn_requests): New functions.
584         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
585         (init_input_requests): Updated.
586         (error_type): Add `OUTPUT_WARNING'.
587         (do_error): Handle it.
588         (output_warning): New warning function which shows output location.
589         * src/roff/troff/env.h (spread_limit): New external variable.
590         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
591         `output_warning'.
592         (distribute_space): Emit warning if added space is larger than
593         `spread_limit'.
594         (environment::possibly_break_line): Emit warning if a line can't
595         be adjusted on both sides.
597         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
599 2002-05-08  Werner LEMBERG  <wl@gnu.org>
601         * src/roff/troff/node.cc (special_node::special_node): Use
602         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
603         \X''\% crashes, for example.
605         * doc/groff.texinfo: Document \! and \? used at top-level.
607 2002-05-06  Werner LEMBERG  <wl@gnu.org>
609         * src/preproc/pic/pic.man: Fix some keyword syntax.
610         Other minor typographical fixes.
612         * src/roff/groff/groff.man: Fix typos.
614 2002-05-04  Werner LEMBERG  <wl@gnu.org>
616         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
617         (ShortOpt[]): This to avoid problems with refer.
619         * doc/pic.ms: Fix typo.
620         Fix pic grammar description.
622         * tmac/an-old.tmac (ne): Use de1, not de.
624 2002-05-03  Werner LEMBERG  <wl@gnu.org>
626         * doc/groff.texinfo: Finished separation of glyphs and characters.
627         Don't use the string `Appendix' for appendix headers (both in
628         the text and the table of contents).
629         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
630         directories.
632         Use registers LL and LT (similar to -ms) for controlling the
633         length of title and line, respectively, in the -man and -mdoc
634         macro packages.
636         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
637         (doc-setup-page-layout): Use \n[LL] and \n[LT].
638         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
639         (TH): Use \n[LL].
640         (an-header, an-p-footer): Use \n[LT].
641         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
642         doc/groff.texinfo: Document it.
644 2002-05-02  Werner LEMBERG  <wl@gnu.org>
646         * doc/fdl.texi: New file.
647         * doc/groff.texinfo: Include it.
648         Define and use @copying.
649         Starting with separating glyph, symbol, and character.
651 2002-04-27  Werner LEMBERG  <wl@gnu.org>
653         * Makefile.in (EXEEXT): Set it.
654         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
655         programs.
657         * src/include/nonposix.h: Define GS_NAME.
658         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
660         Some preliminary changes for EMX support under OS/2.
662         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
663         __EMX__ similar to __MSDOS__.
664         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
666 2002-04-25  Werner LEMBERG  <wl@gnu.org>
668         * doc/groff.texinfo: Integrated groff_out.man.
669         Some macro fixes.
671 2002-04-23  Werner LEMBERG  <wl@gnu.org>
673         * man/groff_out.man: Minor fixes.
675 2002-04-23  Werner LEMBERG  <wl@gnu.org>
677         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
678         correct page references.
679         Fixed many index entries.
681 2002-04-23  Bernd Warken  <bwarken@mayn.de>
683         * man/roff.man: Enlarged.
685 2002-04-22  Werner LEMBERG  <wl@gnu.org>
687         * doc/groff.texinfo: More examples, other fixes.
689 2002-04-20  Werner LEMBERG  <wl@gnu.org>
691         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
692         will now form a chain, e.g.
694           .pi foo
695           .pi bar
697         is now the same as
699           .pi foo | bar
701         This is for compatibility with plan 9's troff.
703         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
704         with UNIX troff.
705         * NEWS: Updated.
707         * doc/groff.texinfo: Add documentation of remaining requests and
708         registers.
710 2002-04-19  Werner LEMBERG  <wl@gnu.org>
712         * doc/groff.texinfo: Add documentation of remaining escapes.
714         * font/devdvi/generate/tc.map: Remove entry for `sr'.
715         * font/devdvi/*TC: Regenerated.
717 2002-04-18  Werner LEMBERG  <wl@gnu.org>
719         * src/roff/troff/input.cc (token::next): Make \H behave consistently
720         if not in compatibility mode, i.e., increment relative to the
721         previous height.
722         * doc/groff.texinfo: Updated accordingly.
724 2002-04-17  Werner LEMBERG  <wl@gnu.org>
726         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
728 2002-04-16  Bernd Warken  <bwarken@mayn.de>
730         * src/roff/groff/groff.man: Improve documentation of -P option.
731         Other minor fixes.
733 2002-04-15  Werner LEMBERG  <wl@gnu.org>
735         Add new escape \F to switch font family.
737         * src/roff/troff/input.cc (token::next): Handle \F.
738         * src/roff/troff/env.cc (environment::set_family): Handle
739         `interrupted' flag.
740         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
741         Document it.
743 2002-04-14  Werner LEMBERG  <wl@gnu.org>
745         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
746         spaces in tags.
748 2002-04-13  Werner LEMBERG  <wl@gnu.org>
750         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
751         \m[] and \M[], respectively.
753         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
754         (symbol::symbol): Handle NULL string and empty string differently.
755         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
756         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
757         Add optional parameter.
758         Updated calling functions.
759         (get_copy, do_glyph_color, do_fill_color, token::next): Use
760         `symbol::is_empty'.
761         * src/roff/troff/env.cc (environment::set_font): Ditto.
763         * src/preproc/pic/troff.cc (troff_output::set_fill,
764         troff_output::reset_color: Updated.
766         * tmac/www.tmac: Updated.
768         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
769         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
770         Updated.
772         * tmac/Xps.tmac: Remove some redundant code.
774         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
775         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
776         man/groff_out.man, man/groff.man, man/groff_diff.man,
777         src/roff/groff/groff.man: Replace \f[P] with \f[].
779 2002-04-13  Bernd Warken  <bwarken@mayn.de>
781         * src/include/printer.h, src/libs/libdriver/printer.cc
782         (printer::change_fill_color): New member function.
783         * src/libs/libdriver/input.cc (parse_D_command): Use it.
785 2002-04-12  Werner LEMBERG  <wl@gnu.org>
787         * doc/groff.texinfo: Completed pass on gtroff reference.
789 2002-04-11  Werner LEMBERG  <wl@gnu.org>
791         * doc/groff.texinfo: More fixes.
793 2002-04-11  Bernd Warken  <bwarken@mayn.de>
795         * src/include/color.h: Decorate with `const'.
796         Use `size_t'.
797         Include `stddef.h'.
798         * src/libs/libgroff.color.cc: Decorate with `const'.
799         Use `size_t'.
800         (color::color): Initialize members.
801         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
802         command according to the documentation.
804         * man/groff_out.man: Updated.
805         Minor fixes.
807 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
809         * src/preproc/html/pre-html.cc (write_start_image): Remove
810         redundant output.
811         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
813         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
814         \C'hy' caused an assertion failure.
816         * src/roff/troff/env.cc (environment::environment): Initialize
817         `emitted_node'.
818         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
820 2002-04-10  Werner LEMBERG  <wl@gnu.org>
822         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
823         Document pvs request and .pvs register.
825 2002-04-09  Werner LEMBERG  <wl@gnu.org>
827         * doc/groff.texinfo: Improve and fix documentation of diversions
828         and environments.
830 2002-04-08  Werner LEMBERG  <wl@gnu.org>
832         * doc/groff.texinfo: Fix documentation of drawing functions.
833         Other minor fixes.
835 2002-04-07  Werner LEMBERG  <wl@gnu.org>
837         * doc/groff.texinfo: Better documentation of double quotes as
838         arguments.
839         Other minor fixes.
841 2002-04-06  Werner LEMBERG  <wl@gnu.org>
843         * man/groff_font.man: Document names of special characters better.
844         * doc/groff.texinfo: Minor improvements.
846         * tmac/lbp.tmac: Load latin1.tmac.
847         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
849         * font/devX*/*: Regenerated (all chars > 0x80 removed).
851 2002-04-05  Werner LEMBERG  <wl@gnu.org>
853         * tmac/tty.tmac: Don't use shc request.
854         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
855         * NEWS: Updated.
857         * man/groff_diff.man: Minor fixes.
859         * font/devlbp/*: Remove all `charXXX' entities.
861         * src/libs/libgroff/font.cc (font::~font): Deallocate
862         `special_device_coding'.
863         (font::load): Use `new' for allocating `special_device_coding'.
864         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
865         Removed unused member.
867 2002-04-05  Werner LEMBERG  <wl@gnu.org>
869         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
870         (resource_manager::do_begin_binary,
871         resource_manager::do_begin_data): Use it.
873         * doc/texinfo.tex: Updated to version 4.2.
875         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
876         (token::zero_width_break): New inline function.
877         * src/roff/troff/input.cc (token::next): Use it.
878         (token::description): Updated.
879         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
880         (token::add_to_node_list, token::process): Use it.
881         * NEWS, doc/groff.texinfo: Updated.
883         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
884         * tmac/tty.tmac: Add missing backslash.
886 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
888         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
889         `.ps' register instead of `.s' to handle fractional point sizes.
890         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
891         limit_box::output): Ditto.
892         * src/preproc/eqn/other.cc (size_box::compute_metrics,
893         size_box::output): Ditto.
894         * src/preproc/eqn/over.cc (over_box::compute_metrics,
895         over_box::output): Ditto.
896         * src/preproc/eqn/script.cc (script_box::compute_metrics,
897         script_box::output): Ditto.
898         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
899         sqrt_box::output): Ditto.
901 2002-04-03  Michael Selway  <mas@ssl.co.uk>
903         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
904         Fix typo.
906 2002-04-03  Werner LEMBERG  <wl@gnu.org>
908         * doc/homepage.ms: Reduce title size.
909         * doc/groff.texinfo: Fix documentation of .t register.
910         Fix handling of colon.
911         Fix `\' vs. `\\'.
913         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
914         only if page length is positive to avoid a loop.
916         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
917         tbl.
919 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
921         * src/include/nonposix.h, src/roff/groff/pipeline.c:
922         s/__CYGWIN32__/__CYGWIN__/.
924 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
926         * doc/gnu.xpm: New image contributed by Emily Mulley.
927         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
928         (homepage.html): Be dependent on gnu.eps.
929         * doc/homepage.ms: Updated to new image.
931         * src/devices/grohtml/post-html.cc (html_printer): New member
932         `sbuf_prev_hpos'.
933         (html_printer::flush_sbuf, html_printer::set_char): Set it.
934         (html_printer::sbuf_continuation): Use it.
936 2002-03-28  Werner LEMBERG  <wl@gnu.org>
938         * src/libs/libgroff/getopt.c: Updated to latest version.
940         * tmac/README: More on hyphen.tex license.
942 2002-03-26  Larry Kollar  <kollar@alltel.net>
944         * doc/groff.texinfo: Add documentation of most missing requests.
946 2002-03-25  Werner LEMBERG  <wl@gnu.org>
948         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
949         of `+-', `mu', and `di', respectively.
951         * font/devascii/R.proto, font/devutf8/R.proto,
952         font/devlatin1/R.proto, font/devhtml/R.proto,
953         font/devcp1047/R.proto, font/devlpb/*: Add them.
954         * font/devps/generate/textmap: Ditto.
955         * font/devps/*: Regenerated.
956         * font/devlj4/generate/text.map: Add them.
957         * font/devlj4/*: Regenerated.
958         * font/devdvi/generate/tc.map: Use them.
959         * font/devdvi/generate/texsy.map: Add them.
960         * font/devdvi/*: Regenerated.
961         * font/devX*/*: Regenerated.
963         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
964         tmac/tty-char.tmac: Updated.
966         * NEWS, man/groff_char.man: Updated.
968 2002-03-24  Werner LEMBERG  <wl@gnu.org>
970         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
971         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
972         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
973         we use `.fchar' in dvi.tmac.
974         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
975         * tmac/Xps.tmac: Simplify some char definitions.
976         Add definition for \[f/].
977         * man/groff_char.man: Updated for new X.tmac.
979         * tmac/README: New file.
981 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
983         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
984         internal .y.o rule took precendence over the .y.cc rule, compiling
985         the yacc files with gcc instead of g++.
987 2002-03-23  Werner LEMBERG  <wl@gnu.org>
989         * tmac/dvi.tmac: Add replacement font for `CB'.
991         * tmac/doc.tmac: s/request/macro/ in messages.
992         (doc-generic-macro): Improve error message.
993         * tmac/groff_mdoc.man: Minor improvements.
995 2002-03-22  Werner LEMBERG  <wl@gnu.org>
997         * doc/groff.texinfo: Document possible conflict between `tr' and
998         `char' requests.
1000 2002-03-21  Werner LEMBERG  <wl@gnu.org>
1002         Improve handling of hyphenation patterns.  It is now possible to
1003         use most of TeX's pattern files unmodified.  To make the process
1004         more flexible, a new request `hpfcode' has been added which
1005         provides a character code mapping for the `hpf' request.  See
1006         comment before hpf_getc() for more details.
1008         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
1009         functions.
1010         (read_patterns_file): Additional parameter for exception dictionary.
1011         Extended to recognize \pattern, \hyphenation, and \endinput.
1012         (do_hyphenation_patterns_file): Updated.
1013         * src/roff/troff/env.h (hpf_code_table): New extern.
1015         * src/roff/troff/input.cc (hpf_code_table): New array.
1016         (init_hpf_code_table, hyphenation_patterns_file_code): New
1017         functions.
1018         (hyphenation_code): Handle translation from `trin' correctly.
1019         (main, init_input_requests): Updated.
1020         (charinfo::set_translation): Handle hyphenation code also.
1022         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
1023         inline function.
1025         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
1026         char' is used for offsets in hyphenation exceptions.
1028         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
1030         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1032 2002-03-20  Larry Kollar  <kollar@alltel.net>
1034         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
1035         requests.
1037 2002-03-18  Werner LEMBERG  <wl@gnu.org>
1039         * tmac/html.tmac: Fix serious typo.
1041 2002-03-17  Larry Kollar  <kollar@alltel.net>
1043         * doc/groff.texinfo: Add documentation for `writec' request.
1045 2002-03-17  Werner LEMBERG  <wl@gnu.org>
1047         Added request `hpfa' to append hyphenation patterns.
1049         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
1050         parameter `append'.
1051         (hyphenation_patterns_file): Renamed to...
1052         (do_hyphenation_patterns_file): This.
1053         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
1054         functions.
1055         (init_hyphen_requests): Updated.
1056         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1058 2002-03-16  Werner LEMBERG  <wl@gnu.org>
1060         Added request `writec' in analogy to `tmc'.
1062         * src/roff/troff/input.cc (write_request): Renamed to...
1063         (do_write_request): This.
1064         Added one parameter.
1065         (write_request, write_request_continue): New functions.
1066         (init_input_requests): Updated.
1067         * NEWS, man/groff.man, man/groff_diff.man: Document it.
1069         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
1070         5-10000pt.
1071         * NEWS: Document it.
1073 2002-03-15  Werner LEMBERG  <wl@gnu.org>
1075         * man/groff.man: Add writem request.
1077         Add request `trin' (translate input) to make `.asciify' work
1078         correctly.  This is necessary since `charXXX' entity names are no
1079         longer hardcoded in font definition files.
1081         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
1082         `translate_input' members.
1083         (charinfo::set_asciify_code, charinfo::get_asciify_code,
1084         charinfo::set_translation_input): New methods.
1085         (charinfo::set_translation): Add third argument.
1086         * src/roff/troff/input.cc (charinfo:set_translation): Set
1087         `asciify_code'.
1088         (do_translate): Add second argument.
1089         (translate_input): New function.
1090         (init_input_requests): Updated.
1091         * src/roff/troff/node.cc (glyph_node::asciify,
1092         composite_node::asciify): Use `get_asciify_code'.
1094         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1096         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1098 2002-03-14  Larry Kollar  <kollar@alltel.net>
1100         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1102 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1104         Add a new request `sizes' similar to the `sizes' command in DESC
1105         files.
1107         * src/roff/troff/env.cc (override_sizes): New function.
1108         (init_env_requests): Use it.
1109         * src/roff/troff/token.h: Export `read_string'.
1110         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1112 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1114         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1116 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1118         * tmac/pspic.tmac: Add support for -Tdvi.
1119         * tmac/dvi.tmac: Include pspic.tmac.
1120         * src/devices/grodvi/grodvi.man: Document it.
1121         * NEWS: Updated.
1123         * font/devlj4/generate/Makefile: Fix URL of metric files.
1125 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1127         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1129 2002-03-09  Larry Kollar  <kollar@alltel.net>
1131         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1133 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1135         * doc/groff.texinfo: Fixes for texinfo 4.1.
1137 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1139         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1140         included.
1141         Handle CYGWIN properly.
1143 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1145         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1146         * tmac/lbp.tmac: Add some font translations.
1148 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1150         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1151         font/devhtml/R.proto: Remove `charXXX'  entries.
1152         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1153         where appropriate.
1155         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1156         * font/devlj4/*: Regenerated all font definition files.
1157         * tmac/lj4.tmac: Load latin1.tmac.
1159         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1160         from 2000-06-17: LJ4 metric files are *not* text files.
1162         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1163         register to test for EBCDIC.
1165 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1167         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1168         files (as grops already does).
1169         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1170         files.
1171         * src/devices/grops/grops.man: Document comment lines in encoding
1172         files.
1174         * tmac/cp1047.tmac: New file.
1175         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1176         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1177         * tmac/Makefile.sub (NORMALFILES): Updated.
1179         * tmac/ec.tmac: Don't load latin1.tmac again.
1181         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1182         font/devps/generate/dingbats.map,
1183         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1184         font/devps/generate/Makefile (symbolmap): Add header comment.
1185         * font/devps/generate/textmap: Ditto.
1186         Remove `charXXX' entries.
1187         * font/devps/symbolmap: Regenerated.
1188         * font/devps/*: Regenerated all font definition files.
1190 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1192         Add color support to grodvi (for drawing colors are currently
1193         translated to gray values).
1195         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1196         (dvi_printer): Add `cur_color' member.
1197         (dvi_printer::set_color): New function.
1198         (draw_dvi_printer): Remove `fill'.
1199         (draw_dvi_printer::fill_next): Pass environment as parameter.
1200         Update code for new color support translated to gray.
1201         (dvi_printer::set_char): Updated.
1202         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1203         changes crossing the page border.
1204         (dvi_printer::draw): Updated.
1205         Remove cases `f' and `F'.
1206         * tmac/dvi.tmac: Add color definitions.
1207         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1209         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1210         used incorrectly.
1212         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1213         versions of autoconf.
1214         * configure: Updated.
1216         * doc/homepage.ms: Use `.blm'.
1217         * tmac/www.tmac (www-depth): New auxiliary variable.
1218         (www-pop-level): Don't issue HTML tag.
1219         (ULS, ULE, LI): Use absolute indentation.
1221         * src/devices/grops/ps.cc (ps_printer::begin_page,
1222         ps_printer::end_page): Switch forth and back to default color while
1223         starting a new page.
1225 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1227         Add EC and TC fonts to devdvi.
1229         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1230         * font/devdvi/generate/cork.map: Renamed to...
1231         * font/devdvi/generate/ec.map: This.
1232         Remove entry for `aq'.
1233         * font/devdvi/generate/tc.map: New file.
1234         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1235         EC and TC fonts.
1236         (FONTS): Updated.
1237         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1238         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1239         * tmac/ec.tmac: New file.
1240         * tmac/Makefile.sub (NORMALFILES): Updated.
1241         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1242         * man/groff_char.man: Check `ECFONTS' register.
1244         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1246 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1248         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1249         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1250         * font/devdvi/*: Updated.
1251         * tmac/dvi.tmac: Formatting.
1253         Add font `HBI' for the dvi output.
1254         Add support for font families `T' and `H'.
1256         * font/devdvi/HBI: New file.
1257         * font/devdvi/B: Renamed to ...
1258         * font/devdvi/TB: This.
1259         * font/devdvi/BI: Renamed to ...
1260         * font/devdvi/TBI: This.
1261         * font/devdvi/I: Renamed to ...
1262         * font/devdvi/TI: This.
1263         * font/devdvi/R: Renamed to ...
1264         * font/devdvi/TR: This.
1265         * font/devdvi/H: Renamed to ...
1266         * font/devdvi/HR: This.
1267         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1268         * font/devdvi/generate/Makefile (HBI): New rule.
1269         (FONTS): Updated.
1270         (R, I, B, BI, H): Renamed to ...
1271         (TR, TI, TB, TBI, HR): This, respectively.
1272         (srcdir): Fixed.
1273         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1274         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1275         Add `styles' and `family' keywords.
1276         * tmac/dvi.tmac: Alias `H' to `HR'.
1277         Add some fspecial requests for italic fonts.
1278         Add TR and TI as special.
1279         Add support for `_' with font CWI.
1281         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1282         operator `:'.  Until now, the expression `0:1' would return 2
1283         instead of 1.
1285 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1287         * man/groff_char.man: Added some missing PS glyph names (from the
1288         Adobe Glyph List).
1289         * font/devps/generate/textmap, font/devps/symbolmap: Add
1290         `arrowupdn'.
1292         * doc/groff.texinfo: Minor additions and fixes.
1293         * man/groff_diff.man: Remove documentation of fp request.  This
1294         is already covered in the original troff manual.
1295         Updated to be consistent with other doc files.
1296         * NEWS: Updated.
1298 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1300         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1301         TTYDEVDIRS.
1302         Define new variable OTHERDEVDIRS (containing `font/devlj4
1303         font/devlbp' if not EBCDIC).
1304         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1305         (OTHERDEVDIRS): New variable.
1306         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1307         * configure: Regenerated.
1309         * NEWS, src/devices/grotty/grotty.man: Updated.
1311 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1313         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1314         get_line_arg): Honour input level.
1316         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1318         * font/*/*: Implement it in all font files.
1319         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1320         * font/devps/symbolmap: Updated.
1321         * font/devlj4/generate/text.map: Updated.
1322         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1323         * font/devdvi/generate/texmi.map: Updated.
1325         * font/devutf8/R.proto: Remove all `charXXX' entries.
1326         * font/devutf8/NOTES: Updated.
1328         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1329         version 4.1.0.
1331         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1333         * NEWS, man/groff_char.man: Updated.
1335 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1337         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1339 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1341         * src/roff/grog/grog.pl: Fix computation of $refer.
1343 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1345         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1346         `snprintf' and `vsnprintf'.
1348         * src/include/htmlindicate.h: Renamed to...
1349         * src/include/htmlhint.h: This.
1350         * src/include/Makefile.sub: Updated.
1351         * src/preproc/eqn/main.cc: Updated.
1353 2002-02-18  Werner LEMBERG  <wl@gnu.org>
1355         * man/roff.man, man/groff_out.man, man/groff.man,
1356         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1357         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1359         * win32-diffs: Updated.
1361 2002-02-17  Werner LEMBERG  <wl@gnu.org>
1363         * doc/Makefile (clean): Add *.eps.
1364         (MEMACROS): Removed.
1365         (TFLAG): New variable.
1366         (TROFF): Use it.
1367         Add -ww.
1368         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1369         (.me.dit): Fixed.
1370         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1372         * tmac/www.tmac: Use dummy diversion while resetting and disabling
1373         `.tl'.
1374         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1375         unstripped.
1376         * src/roff/troff/troff.man: Fix order of parameter description.
1378         * NEWS: Updated.
1380 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
1382         Simplify image handling for grohtml.
1383         Fix <p> bug.
1385         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1386         comment out.
1387         (html_text::dump_stack): Don't emit newline while debugging.
1388         (html_text::do_push) [DEBUGGING]: Print more info.
1389         (html_text::check_emit_text): Fix handling of <p>.
1390         * src/devices/grohtml/html.h: Updated.
1391         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1392         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
1393         send its data to stderr also.
1394         Update all callers.
1395         (simple_output::space_or_newline) [DEBUGGING]: Removed.
1396         * src/devices/grohtml/post-html.cc (html_printer::do_links,
1397         html_printer::html_printer): Remove `DEBUGGING' conditionals.
1399         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1400         Removed.
1401         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1402         is_inline_image): Removed.
1403         (html_begin_suppress, html_end_suppress): Don't take a parameter.
1404         (graphic_start, graphic_end): Removed.
1405         * src/include/htmlindicate.h: Updated.
1406         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1407         (macroset_template): New global variable.
1408         (makeFileName): Use `macroset_template'.
1409         (write_end_image): Don't take a parameter.
1410         Don't emit newline.
1411         (write_start_image: Don't emit newline.
1412         (char_buffer::write_upto_newline): Updated.
1413         (char_buffer::skip_to_newline): Renamed to ...
1414         (char_buffer::skip_until_newline): This.
1415         Fix code.
1416         (char_buffer::write_file_troff, char_buffer::write_file_html):
1417         Simplified.
1418         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1419         (removeAllPages): Remove `DEBUGGING' conditionals.
1420         (addRegDef, dump_args): New functions.
1421         (char_buffer::do_html, char_buffer::do_image): Handle
1422         `www-image-template' command line variable.
1423         Add more debugging code.
1424         (addps4html): Removed.
1425         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1427         * src/preproc/eqn/main.cc: Include `ctype.h'.
1428         (suppress_html): Removed.
1429         (do_file): Updated.
1430         (inline_equation): Use `html_begin_suppress' and
1431         `html_end_suppress'.
1432         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1433         (troff_output::start_picture, troff_output::finish_picture):
1434         Updated.
1435         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1436         (process_input_file): Updated.
1438         * src/roff/troff/div.cc (page_number): Set page number only if the
1439         `ps4html' register isn't defined.
1440         * src/roff/troff/input.cc (image_no): New external variable.
1441         (do_suppress): Use it.
1442         * src/roff/troff/node.h (suppress_node::image_id): New member.
1443         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1444         (suppress_node::suppress_node): Initialize `image_id' member.
1445         (suppress_node::same): Handle `image_id' also.
1446         (suppress_node::copy): Updated.
1447         (last_image_id): New global variable.
1448         (suppress_node::tprint): Use it.
1450         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1451         HTML-IMAGE-END.
1452         * tmac/pspic.mac (PSPIC): Fix html support.
1453         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1454         * tmac/www.tmac (www-image-template): Set up.
1455         (HTMLINDEX): Renamed to...
1456         (HX): This.
1457         (BODYCOLOR): Renamed to...
1458         (BCL): This.
1459         (BACKGROUND): Renamed to...
1460         (BGIMG): This.
1461         (URL): Change order of parameters for consistency.
1462         (MAILTO): Renamed to...
1463         (MTO): This.
1464         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1465         (IMG, PIMG, MPIMG): This.
1466         (HTML-H-BEGIN, HTML-H-END): Renamed to...
1467         (HnS, HnE): This.
1468         (LINKS): Renamed to...
1469         (LK): This.
1470         (LINE): Renamed to...
1471         (HR): This.
1472         (NO-AUTO-RULE): Renamed to...
1473         (NHR): This.
1474         (HTML-TL): Renamed to...
1475         (HTL): This.
1476         (UL-BEGIN, UL-END): Renamed to...
1477         (ULS, ULE): This.
1478         (DROPCAP): Renamed to...
1479         (DC): This.
1480         (TS, TE, EQ, EN): Provide default definitions.
1481         (www-make-unique-name): Updated.
1482         (HTML-IMAGE-INLINE): Fix typo.
1483         * tmac/groff_www.man: Updated.
1485         * doc/Makefile (homepage.html): Add option -r to grohtml.
1486         Use shortened image name.
1487         * doc/groff.texinfo: Updated info on grohtml strings and macros.
1488         * doc/homepage.ms: Updated and extended.
1490 2002-02-14  Werner LEMBERG  <wl@gnu.org>
1492         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1494         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1495         SGR_BACK_DEFAULT_COLOR): Replaced with ...
1496         (tty_printer::put_color): Use it.
1497         (ttr_printer::end_page): Simplify.
1499 2002-02-13  Werner LEMBERG  <wl@gnu.org>
1501         * tmac/groff_tmac.man: Moved to...
1502         * man/groff_tmac.man: This place.
1503         * tmac/Makefile.sub, man/Makefile.sub: Updated.
1505 2002-02-12  Werner LEMBERG  <wl@gnu.org>
1507         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1508         $(COMPILE.c) to not include groff's assert.h.
1510         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1511         variable.
1512         * NEWS, src/drivers/grotty/grotty.man: Document it.
1514 2002-02-11  Werner LEMBERG  <wl@gnu.org>
1516         * src/libs/snprintf/snprintf.c: Updated to latest version
1517         (2002-02-11).
1519         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
1520         test whether there is `.]' also.
1521         Don't check for spaces after `.['.
1522         * src/roff/grog/grog.sh: Do the same.
1524 2002-02-10  Werner LEMBERG  <wl@gnu.org>
1526         Illegal -> Invalid.
1528         * src/libs/libgroff/illegal.cc: Renamed to ...
1529         * src/libs/libgroff/invalid.cc: This.
1530         (illegal_char_table): Renamed to ...
1531         (invalid_char_table): This.
1532         * src/libs/libgroff/Makefile.sub: Updated.
1533         * win32-diffs: Updated.
1535         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1536         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1537         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1538         font::load), src/preproc/eqn/main.cc (read_line, main),
1539         src/preproc/eqn/lex.cc (file_input::read_line),
1540         src/preproc/pic/lex.cc (file_input::read_line,
1541         simple_file_input::get, simple_file_input::peek),
1542         src/preproc/pic/main.cc (top_input::get, top_input::peek),
1543         src/preproc/pic/pic.man, src/preproc/refer/main.cc
1544         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1545         do_bib), src/preproc/tbl/main.cc (table_input::get),
1546         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1547         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1548         do_zero_width, read_request, encode_char, ps_get_line,
1549         transparent_file, get_char_for_escape_name, transparent_translate,
1550         asciify, input_char_description, read_string, set_string),
1551         src/roff/troff/env.cc (environment::add_html_tag),
1552         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1554         * src/include/lib.h: Updated.
1556         * src/preproc/eqn/eqn.cc: Removed.
1558         * NEWS: Updated.
1560         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1562 2002-02-09  Werner LEMBERG  <wl@gnu.org>
1564         * doc/gnu.xpm: New image.
1565         * doc/Makefile (DOCS): Add homepage.ps.
1566         Add rules for converting xpm->png and xpm->eps.
1567         Use `gnu.{xpm,eps}' as image names.
1568         * doc/homepage.ms: Updated.
1570 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
1572         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1573         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1574         Remove calls to `B1' and `B2'
1575         (PNG-IMAGE): New macro for inclusion of images in PNG format.
1576         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1577         auxiliary variables for MARGIN-PNG-IMAGE.
1578         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1579         auxiliary macros for MARGIN-PNG-IMAGE.
1580         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1581         the margin.
1582         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1583         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1584         (DROPCAP): New macro to produce dropcap characters.
1585         (www-do-image): Renamed back to...
1586         (HTML-DO-IMAGE): This.
1587         Updated all callers.
1589         * doc/Makefile (gnubw.eps): Updated.
1590         * doc/homepage.ms: Updated.
1592 2002-02-08  Werner LEMBERG  <wl@gnu.org>
1594         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1595         Added `linethick' to table in section `Style Variables'.
1597 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
1599         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1601 2002-02-07  Werner LEMBERG  <wl@gnu.org>
1603         Adding options -C (compatibility mode) and -c (grotty's old output
1604         scheme) to nroff.
1606         * src/roff/nroff/nroff.sh: Implement it.
1607         Remove `-Wall'.
1608         * NEWS, src/roff/nroff/nroff.man: Updated.
1610         * PROBLEMS: Document bison 1.32 bug.
1612         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1614         * src/roff/troff/node.cc (make_tfont): Define it earlier.
1615         * src/roff/troff/div.h: Add prototype for `end_diversions'.
1616         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1617         * src/roff/troff/env.h: Add prototype for `title'.
1619         Adding EBCDIC support to grotty.
1621         * src/devices/grotty/tty.cc (CSI): New macro.
1622         (SGR_*, tty_printer::put_color): Use it.
1624 2002-02-06  Werner LEMBERG  <wl@gnu.org>
1626         Implementing color support in grotty.  The new switch -c activates
1627         the old drawing scheme, disabling color at the same time.  The new
1628         switch `-i' selects italic instead of underlining (SGR only).
1630         * src/devices/grotty/tty.cc (putstring): New define instead of
1631         `fputs'.  Updated all callers.
1632         (old_drawing_scheme): New global variable.
1633         (COLOR_CHANGE): New enum value.
1634         (SGR_*): New defines containing color handling escape sequences.
1635         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1636         (glyph): New members `back_color_idx' and `fore_color_idx'.
1637         (glyph::order): Add COLOR_CHANGE.
1638         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1639         `is_underline', `is_bold', `cu_flag', `tty_colors'.
1640         New methods `make_underline', `make_bold', `color_to_idx',
1641         `change_color', `put_color'.
1642         (cu_flag): Moved into `tty_printer' class.
1643         (tty_printer::tty_printer): Initialize colors.
1644         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1645         tty_printer::draw, tty_printer::end_page): Handle colors also.
1646         (main): Add options `-c' and `-i'.
1647         (usage): Updated.
1648         * NEWS, src/devices/grotty/grotty.man: Updated.
1650         * src/include/errarg.h (errarg): Add support for `unsigned int'.
1651         * src/libs/libgroff/errarg.c: Implement it.
1653         * src/include/printer.h (printer): Add `change_color' method
1654         (currently used by grotty only).
1655         * src/libs/libdriver/printer.cc: Implement it.
1656         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1657         call to `pr->change_color'.
1659         * src/roff/troff/node.cc (troff_output_file::fill_color,
1660         troff_output_file::glyph_color): Call `do_motion'.
1662         * tmac/tty.tmac: Add color definitions.
1664         * src/roff/groff/groff.man: Minor fixes.
1666 2002-02-05  Bernd Warken  <bwarken@mayn.de>
1668         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1669         it.  This is a preparation for future changes.
1671 2002-02-05  Werner LEMBERG  <wl@gnu.org>
1673         * src/roff/troff/input.cc (process_input_stack): Fix the case
1674         where leading spaces are followed by \f or \s; previously, an
1675         incorrect space width has been used.
1677         * doc/roff.man (quoted_char): Fix argument.
1678         (comment): Define string.
1680 2002-02-04  Larry Kollar  <kollar@alltel.net>
1682         * doc/groff.texinfo: More fixes.
1684 2002-02-04  Werner LEMBERG  <wl@gnu.org>
1686         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1687         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1688         `restore_compatibility' before `output_string' -- the LINE_STRING
1689         register now already contains proper switches from and to
1690         compatibility mode.
1692         * man/groff_char.man: Add Euro symbol.
1693         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1694         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1695         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1696         Other minor fixes.
1698         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1699         texinfo->pdf.
1700         (.texinfo.html): Add support for texinfo->html.
1702 2002-02-03  Werner LEMBERG  <wl@gnu.org>
1704         Added three new requests `ds1', `as1', and `ami'.  The former two
1705         are equivalent to `ds' and `as' with the difference that
1706         compatibility mode is saved on entry, switched off during string
1707         expansion, and restored on exit.  The latter is the pendant to `dei'
1708         for `am'.
1710         (do_define_string): Use `define_mode' and `calling mode'.
1711         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1712         end of string, respectively.
1713         (define_string, append_string): Use `calling_mode'.
1714         (define_nocomp_string, append_nocomp_string,
1715         define_string_indirect): New functions.
1716         (init_input_requests): Updated.
1717         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1719         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1720         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1721         mm macro package accesses this string register directly.
1722         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1724         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1725         compatibility mode.
1727 2002-02-02  Larry Kollar  <kollar@alltel.net>
1729         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1731 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1733         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1735 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1737         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1738         * man/groff_out.man: Revised and updated.
1740 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1742         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1743         out the unused `{' and `}' commands.  Undefined by default.
1744         (IntArray): Make `data' private.
1745         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1746         new methods instead.
1747         (skip_line_D, skip_to_end_of_line): New functions.
1748         (get_D_fixed_args): Use `skip_line_D'.
1749         Changed to handle dummy odd arguments by ...
1750         (get_D_fixed_args_odd_dummy): This new function.
1751         (get_D_variable_args): Split some code into ...
1752         (get_possibly_integer_args): This new function.
1753         (send_draw): Use more `const'.
1754         (delete_current_env): New function.
1755         (position_to_end_of_args): Use `size_t'.
1756         Updated.
1757         (send_draw): Updated.
1758         (parse_D_command): Handle `c', `C', and `t' better.
1759         Updated.
1760         (do_file): Updated.
1762 2002-01-29  Werner LEMBERG  <wl@gnu.org>
1764         * NEWS: Revised.
1765         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1766         @Def...ListEnd which replaces @Def...x.  This is necessary to get
1767         proper HTML output -- see the comment in the file for more
1768         information.
1769         Updated all calls.
1771 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
1773         Fixes to make color changes of 2002-01-21 work with grohtml.
1775         * src/devices/grohtml/post-html.cc (style): Updated.
1776         (html_printer): Remove unused methods.
1777         (html_printer::do_font, html_printer::draw, html_printer::set_char,
1778         html_printer::special): Updated.
1779         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1780         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1781         Added some debugging code.
1782         (html_text::start_tag): Updated.
1783         (html_text::do_push): New method.
1784         (html_text::push_para): Call it.
1785         Add method for handling color.
1786         (html_text::do_color): Updated.
1787         (html_text::shutdown): Handle color.
1788         * src/devices/grohtml/html-text.h (tag_definition): New member
1789         `col'.
1790         Updated.
1792 2002-01-28  Werner LEMBERG  <wl@gnu.org>
1794         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1796 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1798         Add two switches -a and -g to control the antialiasing bits for
1799         text and graphics, respectively.
1801         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1802         `-g'.
1803         * src/devices/grohtml/grohtml.man: Document them.
1804         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1805         New macros.
1806         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1807         (setupAntiAlias): New function.
1808         (createAllPages): Updated.
1809         (scanArguments): Handle `-a' and `-g'.
1810         (main): Call `setupAntiAlias'.
1811         * NEWS: Updated.
1813 2002-01-27  Werner LEMBERG  <wl@gnu.org>
1815         * doc/groff.texinfo (Def*): Call index function after deffn.
1817         * tmac/html.tmac: Call `nroff' request.
1819 2002-01-26  Larry Kollar  <kollar@alltel.net>
1821         * tmac/groff_ms.man: Add some omissions.
1823 2002-01-25  Larry Kollar  <kollar@alltel.net>
1825         * tmac/groff_ms.man: Typographical improvements.
1827 2002-01-25  Werner LEMBERG  <wl@gnu.org>
1829         * doc/groff.texinfo: Updated version and copyright.
1830         * src/devices/grops/grops.man: Updated.
1832         * tmac/groff_tmac.man: Fix `ig' macro.
1834         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1835         nroff mode.
1836         Use `.ne' unconditionally everywhere.
1837         (TS): Only insert some vertical space.  Doing a page break is no
1838         longer necessary due to the redefinition of the `ne' request.
1840         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1841         warning for unknown subcommands but parse and pass them to the
1842         device driver.
1844 2002-01-24  Werner LEMBERG  <wl@gnu.org>
1846         * tmac/groff_www.man, NEWS: Fix typos.
1848 2002-01-21  Werner LEMBERG  <wl@gnu.org>
1850         Complete revision of color support:
1852           Adapt programs to the new libdriver/input.cc.
1854           Color spaces are no longer converted to RGB but transferred as-is
1855           in the troff intermediate output format.
1857           Handle default color gracefully.  troff now supports a `default'
1858           color (which can't be changed).
1860           grops will now use the proper color space functions if available.
1862           Update pic.
1864         Note that currently grohtml doesn't handle colors properly.  This
1865         has to be fixed.
1867         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1868         (ui_to_a): New function.
1869         * src/include/lib.h: Updated.
1871         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1872         (color): Simplified; removed all `double' members and methods.
1873         A new array `components' now holds the color parameters.
1874         (color::is_default, color::get_components): New methods.
1875         (color::operator==, color:operator!=): New.
1876         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1877         to make access to the `components' array more comprehensible.
1878         * src/libs/libgroff/color.cc: Implement new color support.
1879         (atoh): Small fixes.
1880         (color::read_encoding): Simplified for new troff intermediate color
1881         output format.
1882         (default_color): New global variable.
1884         * src/roff/troff/input.cc (default_symbol): New global variable.
1885         (lookup_color): Use it.
1886         (default_black): Removed.
1887         (do_glyph_color, do_fill_color): Simplified.
1888         (define_color): Handle default color.
1889         Improve warnings.
1890         (do_if_request): Handle default color.
1891         * src/roff/troff/env.cc (environment::environment): Initialize
1892         colors with `default_color'.
1893         * src/roff/troff/node.cc (troff_output_file::put): Add method
1894         for `unsigned int'.
1895         (troff_output_file::hex): Removed.
1896         (troff_output_file::fill_color, troff_output_file::glyph_color):
1897         Updated to include/color.h and libdriver/input.cc.
1899         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1900         fill color properly (identically to the outline color).  \D'f...'
1901         doesn't work any more.
1902         All function calls to it updated.
1904         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1905         Updated.
1906         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1907         Updated.
1909         * src/devices/grops/ps.cc (ps_output::put_color): New method.
1910         (ps_printer::sbuf_color): Make a real member instead of pointer.
1911         (ps_printer::fill_color, ps_printer::output_color): Removed.
1912         (ps_printer::ps_printer): Updated.
1913         (ps_printer::set_char): Ditto.
1914         (ps_printer::set_color): Use various color schemes.
1915         Use `put_color' method.
1916         (ps_printer::flush_sbuf): Don't set color.
1917         (ps_printer::fill_path): Take `environment' as parameter.
1918         Simplify color handling.
1919         (ps_printer::set_line_thickness): Renamed to ...
1920         (ps_printer::set_line_thickness_and_color): This (and updated).
1921         (ps_printer::set_color): Change second parameter from `complete'
1922         to `fill' which better describes what it does.
1923         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1924         and text in the right order.
1925         Updated.
1926         Remove branches for `f' and `F'; this is handled by
1927         libdriver/input.cc.
1928         * src/devices/grops/ps.h: Updated.
1929         * font/devps/prologue (FL): Redefined.
1930         ({F,C}r,k,g: New color functions (with and without filling).
1932         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1933         * man/groff_diff.man, man/groff.man, man/groff_out.man,
1934         doc/groff.texinfo, NEWS: Updated.
1936 2002-01-20  Bernd Warken  <bwarken@mayn.de>
1938         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
1939         in this file for what has been changed.
1941 2002-01-19  Werner LEMBERG  <wl@gnu.org>
1943         * test-groff: Fix GROFF_FONT_PATH.
1944         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1945         is read before .TH or .Dd is parsed.
1947 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
1949         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1950         quadrant boundaries.
1952 2002-01-18  Werner LEMBERG  <wl@gnu.org>
1954         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
1955         applied last patch.
1957 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
1959         * tmac/doc.common: Initialize %I register for the %I macro to
1960         avoid (harmless) warning.
1961         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1962         when in the SYNOPSIS section.
1964 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
1966         * src/preproc/pic/lex.cc (get_token): Fix typo.
1968 2002-01-17  Werner LEMBERG  <wl@gnu.org>
1970         * devices/grops/ps.cc: Fix incorrectly applied last patch.
1972 2002-01-17  Larry Kollar  <kollar@alltel.net>
1974         * tmac/groff_ms.man: Completely rewritten.
1976 2002-01-16  Werner LEMBERG  <wl@gnu.org>
1978         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1980 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1982         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1983         fill colors.
1984         (ps_printer::draw): Ditto.
1986 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
1988         * tmac/groff_mdoc.man: Minor fixes.
1990 2002-01-13  Werner LEMBERG  <wl@gnu.org>
1992         * man/groff_out.man: Some fixes.
1994 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
1996         * doc/pic.ms: Fix typos.
1998 2002-01-12  Werner LEMBERG  <wl@gnu.org>
2000         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
2002 2002-01-10  Werner LEMBERG  <wl@gnu.org>
2004         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
2005         symbols.
2006         * NEWS: Updated.
2008 2002-01-09  Bernd Warken  <bwarken@mayn.de>
2010         * man/groff_out.man: Revised.
2011         * man/roff.man: Minor fixes.
2012         * src/roff/troff/troff.man: Some reordering.
2014 2002-01-09  Werner LEMBERG  <wl@gnu.org>
2016         * tmac/an-old.tmac: Add dummy macros for equation support.
2018 2002-01-07  Werner LEMBERG  <wl@gnu.org>
2020         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
2022         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
2023         man pages.
2024         * tmac/groff_man.man: Small improvements.
2026 2002-01-07  Bernd Warken  <bwarken@mayn.de>
2028         * man/groff_diff.man: Revised.
2030 2002-01-06  Werner LEMBERG  <wl@gnu.org>
2032         * tmac/www.tmac: Remove extraneous backslash.
2034 2002-01-06  Bernd Warken  <bwarken@mayn.de>
2036         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
2038 2002-01-05  Werner LEMBERG  <wl@gnu.org>
2040         Integrated groffer, contributed by Bernd Warken.
2042         * contrib/groffer/*: New.       
2043         * Makefile.in, NEWS: Updated.
2045 2002-01-04  Werner LEMBERG  <wl@gnu.org>
2047         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
2048         registers defined in macro packages.
2049         Revising the ms part.
2051 2002-01-04  Larry Kollar  <kollar@alltel.net>
2053         * doc/groff.texinfo: Add documentation for ms macros.
2055 2002-01-02  Werner LEMBERG  <wl@gnu.org>
2057         First step in adding PS support for the Euro symbol.  `eu' is the
2058         official Euro logo, `Eu' is a font-specific glyph variant.
2060         * font/devps/text.enc: Add `Euro' at position 9.
2061         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
2062         * font/devps/symbolmap: Regenerated.
2064         * NEWS: Updated.
2066 2002-01-02  Bernd Warken  <bwarken@mayn.de>
2068         * man/roff.man: Revised.
2070 2002-01-01  Bernd Warken  <bwarken@mayn.de>
2072         * src/roff/groff/groff.man: Completely rewritten.
2074 2001-12-31  Werner LEMBERG  <wl@gnu.org>
2076         * doc/Makefile: Updated.
2078 2001-12-30  Werner LEMBERG  <wl@gnu.org>
2080         * tmac/www.tmac: Make all names of internal macros/registers/strings
2081         lowercase, and prepend `www-'.
2082         Other minor changes.
2083         * src/roff/troff/troff.man: Add preprocessor string at BOF.
2085 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
2087         Implement option `-b' in grohtml to set the HTML background colour.
2089         * src/devices/grohtml/post-html.cc (default_background): New global
2090         variable.
2091         (html_printer::html_printer): Initialize `background' to
2092         `default_background'.
2093         (main): Implement option `-b'.
2094         (usage): Updated.
2095         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2096         of `-b' option.
2097         * src/devices/grohtml/grohtml.man: Updated.
2098         * doc/Makefile (.ms.html): Use `-b'.
2099         * tmac/html.tmac: Don't set background color.
2101         Add new grohtml tag `.html-tl'.
2103         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2104         member variable.
2105         (title_desc::title_desc): Updated.
2106         (html_printer::troff_tag): Handle `.html-tl'.
2107         (html_printer::write_title): Use `with_h1'.
2108         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2109         (HTML-TL): New macro.
2111         Add support for unordered lists in HTML.
2113         * tmac/www.tmac (www-level): New auxiliary register.
2114         (www-level1, www-level2, www-level3): New auxiliary strings.
2115         (www-push-level, www-pop-level): New auxiliary macros
2116         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2118         Miscellaneous.
2120         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2121         (DEFAULT_VERTICAL_OFFSET): Removed.
2122         (IMAGE_BOARDER_PIXELS): Set to 0.
2123         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2124         (vertical_offset): Initialize with 0.
2125         (gsPaper): New global variable.
2126         (get_resolution): Scan for and return unsigned int.
2127         (get_papersize): New function to get paper length from devps/DESC.
2128         (determine_vertical_offset): New function.
2129         (createAllPages): Produce gray-level images and use proper page
2130         length.
2131         (createImage): Use `-quiet' option of pnmcrop.
2132         (addZ): Fix passing of `-Z'.
2133         (scanArguments): Fix handling of `-o'.
2134         (main): Call `determine_vertical_offset'.
2135         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2136         code for `l'.
2138         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2139         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2140         glyph descenders properly.
2142         * doc/homepage.ms: Include `gnubw.eps'.
2143         * doc/Makefile (gnubw.eps): New rule.
2144         (homepage.html): Depend on `gnubw.eps'.
2146 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2148         * src/roff/troff/input.cc (default_black): Fix return value.
2150 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2152         * tmac/doc-common (Dt): Change output of architecture strings.
2153         Do some syntax cleanup.
2154         * tmac/groff_mdoc.man: Updated.
2156 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2158         Adding an `itc' request (input line trap accepting \c).
2160         * src/roff/troff/env.h (environment): New member
2161         `continued_input_trap'.
2162         Make `do_input_trap' a friend function instead of `input_trap'.
2163         * src/roff/troff/env.cc (environment::environment,
2164         environment::copy): Updated.
2165         (environment::newline): Implement it.
2166         (do_input_trap): New function.
2167         (input_trap): Call `do_input_trap'.
2168         (input_trap_continued): New function.
2169         (init_env_requests): Updated.
2170         * src/roff/troff/TODO: Updated.
2172         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2173         `.it'.
2175         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2177 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2179         * tmac/doc-common, tmac/doc-syms: Small updates.
2181 2001-12-22  Colin Watson  <cjwatson@debian.org>
2183         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2185 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2187         * MANIFEST: New file.
2189 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2191         * src/preproc/grn/grn.man: Updated.
2193 2001-12-22  Solar Designer  <solar@openwall.com>
2195         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2196         (DBRead): Use it.
2198 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2200         Implement a fallback character request `.fchar'.
2202         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2203         (is_fallback): New inline function.
2204         * src/roff/troff/input.cc (do_define_character): New function.
2205         (define_character): Call `do_define_character'.
2206         (define_fallback_character): New function.
2207         (init_input_requests): Add `fchar'.
2208         (charinfo::charinfo): Updated.
2209         (charinfo::set_macro): New argument to set `fallback' flag.
2210         * src/roff/troff/node.cc (make_glyph_node, make_node,
2211         node::add_char): Check `fallback' flag.
2212         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2214 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2216         * groff.texinfo: Document exact search algorithm for glyphs.
2218 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2220         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2221         the left side of $(MANPAGES) rule to make it always non-empty.
2223 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2225         * src/roff/troff/input.cc (default_black): Define default color
2226         `black' if not yet defined.
2228 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2230         Implement new string-valued register `.fn' to return the current
2231         real (internal) font name.
2233         * env.cc (environment::get_font_name_string): New function.
2234         (init_env_requests): Add `.fn' register.
2235         * env.h (environment): Updated.
2236         * node.cc (font_info): Make `get_font_name' a friend.
2237         (get_font_name): New function.
2238         * node.h: Updated.
2240         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2242 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2244         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2246 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2248         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2250 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2252         * man/groff_diff.man: Adding documentation for \O.
2254 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2256         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2257         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2259 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2261         * man/roff.man: Revised.
2262         * src/roff/groff/groff.man: Replace man page references with a
2263         pointer to roff.man.
2265 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2267         * man/roff.man: Completely rewritten.
2269 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2271         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2273 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2275         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2276         longer used.
2277         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2278         order of initializers.
2279         * NEWS: Updated.
2281 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2283         * doc/groff.texinfo: Fix documentation of \O.
2285         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2286         html_text::do_table, html_text::do_emittext, html_text::do_para):
2287         Use `const' for first argument.
2288         (html_text::do_table): Use cast.
2289         * src/devices/grohtml/html-text.h: Updated.
2290         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2291         method for `const string &s'.
2292         * src/devices/grohtml/html.h: Updated.
2293         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2294         (ANCHOR_TEMPLATE): Modified.
2295         (manufacture_headings): New global variable to handle `-h' option.
2296         (is_subsection): Removed.
2297         (char_buffer::add_string): Add `const' to first argument.
2298         Protect against invalid string argument.
2299         Add method for `const string &s'.
2300         (text_glob): Completely redesigned.
2301         (page): Use `const' for strings and remove string length variable.
2302         (page::add_html): Removed.
2303         (page::add_end_encode): New member function.
2304         (to_unicode): Moved upwards.
2305         (title_desc, header_desc): Updated.
2306         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2307         definition.
2308         (html_printer::is_bold, html_printer::make_bold): New member
2309         functions.
2310         (html_printer::end_of_line): Updated.
2311         (generate_img_src, html_printer::do_auto_image,
2312         html_printer::do_title, html_printer::write_header,
2313         html_printer::determine_header_level, html_printer::do_heading,
2314         html_printer::do_linelength, html_printer::do_pageoffset,
2315         html_printer::do_indentation, html_printer::do_tempindent,
2316         html_printer::do_indentedparagraph, html_printer::do_break,
2317         html_printer::flush_sbuf, get_html_translation,
2318         html_printer::begin_page, html_printer::special): Rewritten to get
2319         rid of static string length limit.
2320         (html_printer::troff_tag): Added `.no-auto-rule'.
2321         (html_printer::flush_globs): Small fix.
2322         (html_printer::determine_space): Don't compute `space_width'.
2323         (html_printer::translate_to_html): Renamed to ...
2324         (html_printer::emit_html): This (with updates).
2325         (html_printer::write_header): Implement `-h' option.
2326         (html_printer::draw): Remove commented-out code.  Handle `F'
2327         command.
2328         (html_printer::add_char_to_sbuf): Removed.
2329         (html_printer::add_to_sbuf): Rewritten.
2330         (html_printer::sbuf_continuation): Fixed.
2331         (html_printer::seen_backwards_escape, reverse,
2332         html_printer::remove_last_char_from_sbuf): Removed.
2333         (char_translate_to_html, str_translate_to_html): Removed.
2334         (html_printer::overstrike): New function member.
2335         (html_printer::set_char): Use it.
2336         (html_printer::do_body): New function member.
2337         (html_printer::~html_printer): Use it.
2338         (main): Handle `-h' option.
2339         (usage): Updated.
2340         * src/devices/grohtml/grohtml.man: Document -h switch.
2342         * src/preproc/html/pre-html.cc: Include searchpath.h
2343         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2344         (get_resolution): New function.
2345         (checkImageDir): Use `0777' permissions in mkdir()
2346         (write_start_image): Rewritten to use `\O[5...]'.
2347         (createImage, generateImages): Updated.
2348         (main): Handle `F' and `h' options.
2349         Use `get_resolution'.
2351         * src/roff/troff/input.cc (begin, end, image): Removed.
2352         (do_suppress): Take parameter.
2353         Handle modified syntax of `\O'.
2354         (token::next): Updated.
2355         (init_markup_requests): Removed.
2356         (main): Updated.
2358         * src/roff/troff/div.h: Add declaration for begin_page().
2360         * tmac/color-html.tmac: Removed.  Contents moved to...
2361         * tmac/html.tmac: Here.  Set background color.
2362         * tmac/color.tmac: Removed.  Contents moved to...
2363         * tmac/ps.tmac: Here.
2364         * tmac/www.tmac: Remove the title command when generating images
2365         for html.
2366         (NO_AUTO_RULE): New macro.
2367         (HTML_DO_IMAGE): Use revised `\O' escapes.
2368         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2370 2001-12-02  Werner LEMBERG  <wl@gnu.org>
2372         * tmac/groff_mdoc.man: Fix typo.
2374 2001-12-01  Colin Watson  <cjwatson@debian.org>
2376         * man/roff.man: Fix typo.
2378 2001-11-29  Werner LEMBERG  <wl@gnu.org>
2380         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2381         stdlib.h.
2383         * src/roff/troff/input.cc (read_draw_node): Emit error message if
2384         more than one argument to \D'f ...'.
2386         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2388 2001-11-28  Werner LEMBERG  <wl@gnu.org>
2390         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2391         loaded only once.
2393         * tmac/groff_man.man: Minor cosmetic fix.
2395 2001-11-27  Werner LEMBERG  <wl@gnu.org>
2397         * src/roff/groff/groff.man, tmac/groff_tmac.man,
2398         tmac/groff_www.man: s/mwww/www/.
2400 2001-11-26  Werner LEMBERG  <wl@gnu.org>
2402         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2403         * configure: Regenerated.
2404         * win32-diffs: Updated.
2406         * tmac/groff_mwww.tmac: Renamed to ...
2407         * tmac/groff_www.tmac: This.
2408         * tmac/mwww.tmac: Removed.
2409         * NEWS, tmac/Makefile.sub: Updated.
2411 2001-11-21  Werner LEMBERG  <wl@gnu.org>
2413         * doc/groff.texinfo: Improve documentation of the `\v' escape.
2414         Fix explanation of `\D' and `rt'.
2416 2001-11-20  Werner LEMBERG  <wl@gnu.org>
2418         * tmac/an-old.tmac (an-header): Set header length equal to page
2419         width.
2420         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
2421         minor fixes.
2422         * NEWS: Small fix.
2424 2001-11-19  Werner LEMBERG  <wl@gnu.org>
2426         * NEWS, man/Makefile.sub: Updated.
2428 2001-11-19  Bernd Warken  <bwarken@mayn.de>
2430         * man/ditroff.man: New file.
2432 2001-11-17  Werner LEMBERG  <wl@gnu.org>
2434         * man/groff_differences.man: Renamed to ...
2435         * man/groff_diff.man: This.  Updated.
2436         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2438         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2439         * src/preproc/html/pushback.cc: This.  Updated.
2440         * src/preproc/html/pushbackbuffer.h: Renamed to ...
2441         * src/preproc/html/pushback.h: This.
2442         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2443         Updated.
2445         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2446         * src/libs/libgroff/htmlhint.cc: This.
2447         * src/libs/libgroff/Makefile.sub: Updated.
2449         * tmac/an-old.tmac (an-end): Fix page length.
2451 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2453         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2454         * man/Makefile.sub: Include groff_differences.man.
2455         * VERSION: Set to 1.18.
2456         * REVISION: Set to 0.
2458 2001-11-16  Bernd Warken  <bwarken@mayn.de>
2460         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2461         the second dot (or ending macro name) to end a macro.
2462         * doc/groff.texinfo: Doc fix.
2464 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
2466         * tmac/doc-common (doc-header): Handle very long document titles
2467         better.
2469 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2471         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2473 2001-11-15  Werner LEMBERG  <wl@gnu.org>
2475         * src/roff/troff/troff.man: Revised and split into troff.man and...
2476         * man/groff_differences.man: New file.
2477         * NEWS: Updated.
2479 2001-11-13  Werner LEMBERG  <wl@gnu.org>
2481         * tmac/an-old.tmac (TS, TE): New macros for table support.
2483 2001-11-12  Werner LEMBERG  <wl@gnu.org>
2485         * src/include/lib.h: Provide a fix for emx to not include
2486         groff-getopt.h.
2488 2001-10-27  Werner LEMBERG  <wl@gnu.org>
2490         * src/roff/troff/input.cc (substring_macro): Fix computation of
2491         boundary values.
2493 2001-10-20  Werner LEMBERG  <wl@gnu.org>
2495         Undo change from 2001-08-28.
2497         * src/roff/troff/input.cc (have_input): New global variable.
2498         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2499         in compatibility mode.
2500         (process_input_stack): Use it.
2502 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
2504         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2505         being handled as end-of-sentence characters,
2507 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
2509         * src/roff/troff/input.cc (file_iterator): New members
2510         `suppress_newline_flag' and `seen_escape'.
2511         (file_iterator::next_file): Updated.
2512         (file_iterator::fill): Use it.
2513         (string_iterator): New member `suppress_newline_flag'.
2514         (string_iterator::fill): Set it.
2515         (get_color_element): Use MAX_COLOR_VAL.
2516         * src/roff/troff/env.cc (environment): Remove `need_eol'.
2517         (no_fill): Don't set `env->ignore_next_eol'.
2518         (environment::newline): Handle `eol' tag properly.
2519         Emit `eol.ce'.
2520         (environment::add_html_tag): Set `env->ignore_next_eol'.
2521         Don't handle `.ce'.
2522         * src/roff/troff/env.h (environment): Updated.
2524         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2525         member function.
2526         (html_printer::outstanding_eol): New member function.
2527         (html_printer::do_title): Use new functions.
2528         (html_printer::troff_tag): Test `id_eol_ce'.
2530 2001-10-10  Werner LEMBERG  <wl@gnu.org>
2532         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2533         files work with -C also.
2535 2001-10-05  Werner LEMBERG  <wl@gnu.org>
2537         * doc/pic.ms: Minor fix.
2538         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2539         as a valid command line switch.
2540         * src/devices/grohtml/post-html.cc (main): Ditto.
2541         (usage): Updated.
2542         * src/devices/grohtml/grohtml.man: Updated.
2543         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2545 2001-10-04  Werner LEMBERG  <wl@gnu.org>
2547         Implementing color support in troff, pic, grops, and grohtml.  These
2548         changes are based on a major patch provided by Gaius Mulley
2549         <gaius@glam.ac.uk>.
2551         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2552         definitions with both hex values and fractions.
2554         New escapes: \m and \M for drawing and background color,
2555         respectively.  This corresponds to the troff output commands `m'
2556         and `DF'.
2558         groff and troff accept command line switch `-c' to disable color
2559         output (which is automatically disabled in compatibility mode).
2561         New scaling indicator `f' for fractions (1f = 65536u).
2563         New conditional operator `m' to test for defined colors with `if'
2564         and `ie'.
2566         New keywords `color' (or `colour', `colored', `coloured'), `outline'
2567         (or `outlined'), and `shaded' added to pic.
2569         * src/include/color.h: New file.
2570         * src/include/driver.h: Include it.
2571         * src/include/printer.h: Include color.h.
2572         (environment): New members `col' and `fill'.
2573         (printer): Remove `adjust_arc_center' member function.
2574         * src/include/Makefile.sub: Updated.
2576         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2577         `env.fill'.
2578         Handle `m' and `DF' troff commands.
2579         * src/libs/libgroff/color.cc: New file.
2580         * src/libs/libgroff/Makefile.sub: Updated.
2582         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2583         (stop): Removed.
2584         (createImage): Fix computation of `y2'.
2585         Use `pnmcrop' also.
2586         (buffer::write_file_html): Remove calls to `stop'.
2588         * src/preproc/pic/common.h (common_output): New abstract function
2589         members `set_color', `reset_color', `get_last_filled', and
2590         `get_outline_color'.
2591         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2592         (object_spec): Add members `shaded' and `outlined'.
2593         * src/preproc/pic/output.h (output): `command' is now abstract.
2594         New function members `set_color', `reset_color', `get_last_filled',
2595         and `get_outline_color'.
2596         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2597         `outline[d]', and `shaded'.
2598         * src/preproc/pic/object.cc (output::command): Removed.
2599         (output::set_location): Moved to output.h.
2600         (graphic_object): Add protected members `outline_color' and
2601         `color_fill'.
2602         Add member functions `set_outline_color', `get_outline_color', and
2603         `set_fill_color'.
2604         (closed_object): Add member function `set_fill_color'.
2605         Add member `color_fill'.
2606         (graphic_object::print_text): Use `out->set_color' and
2607         `out->reset_color'.
2608         (box_object::print, ellipse_object::print, circle_object::print,
2609         line_object::print, spline_object::print, arc_object::print): Ditto.
2610         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2611         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2612         `SHADED', making them `%left'.
2613         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2614         * src/preproc/pic/tex.cc (tex_output): New dummy function members
2615         `set_color', `reset_color', `get_last_filled', and
2616         `get_outline_color'.
2617         * src/preproc/pic/troff.cc (simple_output): New abstract function
2618         members `set_color', `reset_color', and `get_last_filled'.
2619         (simple_output::polygon, simple_output::circle,
2620         simple_output::ellipse): Use `get_last_filled'.
2621         (troff_output): New members `last_filled' and `last_outlined'.
2622         New function members `set_color', `reset_color', `get_last_filled',
2623         and `get_outline_color'.
2624         (troff_output::finish_picture): Use `reset_color'.
2625         (troff_output::set_fill): Test `last_filled'.
2626         * src/preproc/pic/pic.man: Updated.
2628         * src/roff/groff/groff.cc (main): Implement `-c' option.
2629         (synopsis, help): Updated.
2630         src/roff/groff/groff.man: Updated.
2632         * src/roff/troff/troff.h: Include color.h.
2633         (warning_type): Add WARN_COLOR.
2634         * src/roff/troff/env.h (environment): New members
2635         `{cur,prev}_{glyph,fill}_color'.
2636         New member functions `get_{prev_,}{glyph,fill}_color'.
2637         * src/roff/troff/env.cc: Initialize and implement them.
2638         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2639         Replace `NULL' with `0' everywhere for consistency.
2640         (lookup_color, default_black, do_glyph_color, do_fill_color,
2641         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2642         define_color): New functions.
2643         (token::next): Implement \M and \m escapes.
2644         (do_if_request): Implement `m' operator.
2645         (usage): Updated.
2646         (main): Implement `-c' option.
2647         (init_markup_requests): Add `defcolor' request.
2648         (warning_table): Add `color' warning.
2649         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2650         classes.
2651         * src/roff/troff/node.cc (troff_output_file): New members
2652         `current_{page,glyph}color'.  New member functions `put_hex',
2653         `glyph_color', and `fill_color'.
2654         (glyph_color_node::*, fill_color_node::*): Implement it.
2655         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2656         (parse_term): Add support for `f'.
2657         * src/roff/troff/troff.man: Updated.
2659         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2660         entry for `F'.
2661         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2662         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2664         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2665         (tag_definition): Use `void *' for arg1.
2666         (html_text): New member functions `do_color' and `done_color'.
2667         Use `void *' for second parameter of `push_para' member function.
2668         New `push_para' member function with a single parameter.
2669         Use `char *' for parameter of `issue_table_begin' member funtion.
2670         New `issue_color_begin' member function.
2671         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2672         COLOR_TAG.
2673         (html_text::issue_color_begin): New function.
2674         (html_text::issue_table_begin): Use `char *' for parameter.
2675         (html_text::start_tag, html_text::shutdown,
2676         html_text::check_emit_text): Updated.
2677         (html_text::push_para): Use `void *' for second parameter.
2678         Add same function with only one parameter.
2679         (html_text::do_*): Updated.
2680         (html_text::do_color, html_text::done_color): New functions.
2681         * src/devices/grohtml/post-html.cc (style): New member `col'.
2682         Mew member `style' with 6 parameters.
2683         (style::style, style::operator==): Updated.
2684         (html_printer::do_font): Use it.
2685         (html_printer::draw): Add dummy entry for `F'.
2686         (html_printer::set_char): Updated.
2687         * src/devices/grohtml/grohtml.man: Updated.
2689         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2690         trailing zeroes removed.
2691         (ps_printer): New members `sbuf_color', `fill_color', and
2692         `output_color'.
2693         Removed member `fill'.
2694         New member function `set_color'.
2695         (ps_printer::ps_printer, ps_printer::set_char): Updated.
2696         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2697         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2699         * tmac/color-html.tmac, tmac/color.tmac: New files.
2700         * tmac/troffrc: Include them.
2701         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2702         * tmac/Makefile.sub: Updated.
2704         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2705         man/groff.man: Updated.
2706         * font/devps/prologue.ps: Define FC and CO functions.
2708 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
2710         Fix incorrect cropping of images and incorrect handling of special
2711         characters.  Fix handling of file names in \O.
2713         * src/include/geometry.h: New file.
2714         * src/libs/libgroff/geometry.cc: New file.
2715         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2716         to `geometry.cc'.
2717         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2718         initial spaces.
2719         (do_suppress): Updated.
2720         * src/roff/troff/node.cc: Include geometry.h.
2721         (troff_output_file::flush_tbuf): Fixed parameters to
2722         `check_output_limits'.
2723         (troff_output_file::check_charinfo): Ditto.
2724         (troff_output_file::determine_line_limits): Add support for `Da'
2725         and `Dl' commands.
2727         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2728         Add new parameter `is_special' to decode special characters from
2729         escape sequences.
2730         (html_printer::do_title, html_printer::do_heading,
2731         html_printer::do_indentedparagraph,
2732         html_printer::translate_to_html, html_printer::special): Updated.
2734 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2736         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2737         Fix entry for config.h.
2738         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2739         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2740         * src/preproc/eqn/eqn.man: Document -d command line option.
2742 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2744         * man/groff.man: Use
2746           .ev xxx
2747           .na
2748           .nh
2749           <table>
2750           .ev
2752         instead of the old code (`.ad .hy' after the table) to suppress
2753         incorrect hyphenation for grohtml output.
2755 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2757         * man/groff_font.man, man/groff_out.man: Minor fixes.
2759 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2761         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
2762         Arnold Robbins <arnold@skeeve.com>).
2764 2001-09-09  Werner LEMBERG  <wl@gnu.org>
2766         * configure: Regenerated with autoconf 2.52.
2768         * doc/groff.texinfo: Complete revision of indices.
2770 2001-09-07  Werner LEMBERG  <wl@gnu.org>
2772         * doc/Makefile (clean): Updated to delete all indices.
2774 2001-09-05  Werner LEMBERG  <wl@gnu.org>
2776         * src/roff/troff/troff.man: Remove superfluous line.
2778         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2779         given on the command line (or rather, if only the default warnings
2780         are set).
2782 2001-09-03  Werner LEMBERG  <wl@gnu.org>
2784         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2785         use .ne for TTY devices.
2787 2001-08-31  Werner LEMBERG  <wl@gnu.org>
2789         * src/roff/troff/token.h, src/roff/troff/input.cc:
2790         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2792 2001-08-28  Werner LEMBERG  <wl@gnu.org>
2794         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2795         * src/roff/troff/input.cc (token::next): Return
2796         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2797         compatibility mode.
2798         (token::description): Updated.
2799         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2800         (token::add_to_node_list, token::process): Ignore
2801         TOKEN_TRANSPARENT_ESCAPE.
2803 2001-08-27  Werner LEMBERG  <wl@gnu.org>
2805         * tmac/an-old.tmac: Fix `S' string.
2807 2001-08-26  Werner LEMBERG  <wl@gnu.org>
2809         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2811 2001-08-25  Werner LEMBERG  <wl@gnu.org>
2813         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2814         backslashes).
2815         Many other minor fixes.
2817         * configure.ac: Add message at end to inform how to compile
2818         xditview.
2819         * configure: Regenerated.
2821 2001-08-24  Werner LEMBERG  <wl@gnu.org>
2823         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2824         Updated to latest version of libc.
2826 2001-08-23  Werner LEMBERG  <wl@gnu.org>
2828         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2829         Autoconf 2.50 and newer can handle this.
2830         * configure: Regenerated.
2832 2001-08-21  Werner LEMBERG  <wl@gnu.org>
2834         * doc/pic.ms: Fix typo.
2835         * src/preproc/tbl/tbl.man: Document case of global options.
2837 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2839         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2840         handling of `CR' font.
2842 2001-08-20  Werner LEMBERG  <wl@gnu.org>
2844         Use a config.h file.
2846         * src/include/lib.h: Include config.h.
2847         * All C files: Ditto (if necessary).
2848         * All C++ source and header files: Include lib.h first (if
2849         necessary).
2851         * src/include/config.hin: New file (autogenerated by autoheader).
2852         * stamp-h.in: New file.
2853         * configure.ac: Updated.
2854         * aclocal.m4: Add third parameters to AC_DEFINE macros.
2855         (GROFF_ARRAY_DELETE): Simplified.
2856         * Makefile.sub (DISTCLEANFILES): Updated.
2857         Added targets for remaking config.status, config.hin, config.h,
2858         stamp-h.in, and stamp-h.
2859         * configure: Regenerated.
2861 2001-08-19  Werner LEMBERG  <wl@gnu.org>
2863         * NEWS: Updated.
2865 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
2867         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2868         (do_sprintf): Use snprintf().
2870 2001-08-18  Werner LEMBERG  <wl@gnu.org>
2872         * src/libs/snprintf/*: Added an snprintf module written by Mark
2873         Martinec.
2874         * src/libs/libgroff/Makefile.sub: Updated.
2875         * configure.ac: Add test for snprintf().
2876         * Makefile.in: Updated.
2877         * configure: Regenerated.
2879         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2880         uses snprintf().
2882 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
2884         * tmac/doc.tmac (Ex): New implementation.
2885         * tmac/doc-common, tmac/groff_tmac.man: Updated.
2887 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
2889         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2890         argument.
2891         * tmac/groff_tmac.man: Updated.
2893 2001-08-13  Werner LEMBERG  <wl@gnu.org>
2895         * src/preproc/tbl/tbl.man: Minor documentation update.
2897 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2899         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2900         * configure.ac: Add declaration test for gettimeofday().
2901         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2902         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2903         * configure: Regenerated.
2905 2001-08-11  Werner LEMBERG  <wl@gnu.org>
2907         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2908         * configure.ac: Add declaration test for strcasecmp().
2909         * Makefile.in: Updated.
2910         * configure: Regenerated.
2911         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2912         this is necessary because groff's mkstemp.cc is C++.
2913         Add declaration conditionally for strcasecmp().
2915 2001-08-10  Werner LEMBERG  <wl@gnu.org>
2917         Integrated pic2graph, contributed by Eric S. Raymond.
2919         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2920         files.
2921         * Makefile.in, NEWS: Updated.
2923         * src/preproc/tbl/tbl.man: Revised.
2925 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
2927         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2929 2001-08-09  Werner LEMBERG  <wl@gnu.org>
2931         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2932         requests.
2934 2001-08-08  Paul Eggert  <eggert@twinsun.com>
2936         * Makefile.sub (configure): Depend on configure.ac, not
2937         configure.in.
2938         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2940 2001-08-07  Werner LEMBERG  <wl@gnu.org>
2942         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2943         fixes.
2945 2001-08-06  Werner LEMBERG  <wl@gnu.org>
2947         * src/roff/troff/troff.man: Improve documentation of -E option.
2949 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2951         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2952         Simplified.
2954 2001-07-27  Werner LEMBERG  <wl@gnu.org>
2956         * src/preproc/refer/refer.cc: Undo last change.
2957         * src/devices/grohtml/post-html.cc: Ditto.
2959 2001-07-26  Werner LEMBERG  <wl@gnu.org>
2961         * src/preproc/refer/refer.cc: Include `lib.h'.
2962         * src/devices/grohtml/post-html.cc: Ditto.
2964 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
2966         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2967         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2968         * Makefile.in: Comment updated.
2969         * configure: Regenerated.
2971 2001-07-25  Werner LEMBERG  <wl@gnu.org>
2973         * src/preproc/pic/pic.cc: Removed.
2974         * src/preproc/pic/pic_tab.h: Removed.
2975         * src/preproc/refer/label.cc: Removed.
2977         * doc/Makefile (.ms.html): Don't use a file name extension in
2978         argument to grohtml's -I option.
2979         * Makefile.in (dist): Remove CVS directories.
2980         Call `distfiles' target.
2982         * src/devices/grohtml/grohtml.man: Add information about valid
2983         versions of pnmtopng.
2984         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2985         name instead of number.
2987 2001-07-24  Werner LEMBERG  <wl@gnu.org>
2989         * doc/groff.texinfo: Minor fixes.
2991 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
2993         * doc/Makefile (.ms.html): Put image files into a subdirectory.
2994         (clean): Updated.
2996 2001-07-20  Werner LEMBERG  <wl@gnu.org>
2998         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2999         * src/libs/libgroff/mkstemp.cc: New file.
3000         * src/libs/libgroff/mksdir.cc: New file.
3001         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
3002         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
3003         * src/libs/libgroff/Makefile.sub: Updated.
3004         * src/include/lib.h: Add mksdir() prototype.
3005         * src/include/posix.h: Define S_IXUSR if not yet defined.
3007         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
3008         (createAllPages): Use mksdir() instead of current code.
3009         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
3010         (main): [!HAVE_MKSTEMP]: Removed.
3012         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
3013         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
3014         macros.
3015         * configure.ac: Add tests for stdint.h, sys/time.h, and
3016         gettimeofday().
3017         Call new GROFF_xxx macros.
3018         * configure: Regenerated.
3019         * Makefile.in: Comments updated.
3021 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
3023         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
3024         instead of current code.
3025         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
3026         * src/roff/groff/groff.cc (possible_command::insert_args): New
3027         function.
3028         (main): Use it for predriver handling instead of insert_arg().
3030 2001-07-19  Werner LEMBERG  <wl@gnu.org>
3032         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
3033         groff also.
3035         * src/include/posix.h: Define S_IWUSR if not yet defined.
3037 2001-07-18  Werner LEMBERG  <wl@gnu.org>
3039         * NEWS: Updated.
3041 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
3043         * tmac/groff_mdoc.man: Document new -width and -column syntax.
3044         Some other minor fixes.
3045         * tmac/an-old.tmac: Add `AT' and `UC' macros.
3047 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
3049         Replace call to `troff' with `groff -Z' to make it aware of
3050         GROFF_BIN_PATH.
3052         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
3053         (troff_command, command_prefix): Removed.
3054         (alterDeviceTo): Use groff.
3055         (addZ): New function.
3056         (char_buffer::do_html): Use it.
3057         (scanArguments): Use TROFF_COMMAND.
3058         (findPrefix): Removed.
3059         (main): Updated.
3060         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
3062 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
3064         * doc/pic.ms: Documentation fixes.
3066 2001-07-17  Werner LEMBERG  <wl@gnu.org>
3068         Replace atexit() with global destructor.
3070         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
3071         (xtmpfile_list_init): New global structure to deallocate
3072         xtmpfile_list on exit.  Its destructor inherits most code from
3073         remove_tmp_files().
3074         (remove_tmp_files): Deleted.
3075         (add_tmp_file): Simplified.
3077 2001-07-16  Werner LEMBERG  <wl@gnu.org>
3079         Replace strdup() with strsave().
3081         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
3082         (set_papersize): Use strsave() and a_delete.
3083         (main): Use strsave().
3084         * src/preproc/html/pre-html.cc (make_message, createAllPages,
3085         removeAllPages): Use strsave() and a_delete.
3087         * configure.ac: Remove test for strdup.
3088         * Makefile.in: Comment updated.
3089         * configure: Regenerated.
3091 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3093         * win32-diffs: Updated.
3095 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3097         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3098         removing the old one.
3099         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3101 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3103         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3105 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3107         Merge -xwidth into -width.  Add -xwidth functionality to -column
3108         also.
3110         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3111         avoid warning.
3112         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3113         string immediately following a leading dot starts with a valid mdoc
3114         argument.
3115         Add similar code to the -column branch.
3116         (doc-Bl-usage): Updated.
3117         * groff_mdoc.man: s/-xwidth/-width/.
3119 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3121         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3122         running into centered or non-formatted text.
3124 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3126         Introduce short and long prefixes to have the selection at run-time
3127         whether there is a 8+3 limit for names of temporary files.
3129         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3130         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3131         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3132         variables.
3133         (temp_init): New global structure to initialize above three
3134         variables.
3135         (xtmptemplate): Use two parameters for long and short prefix.
3136         Simplify code use above three variables.
3137         (xtmpfile): Use long and short prefixes as parameters.
3138         * src/include/lib.h: Updated.
3140         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3141         with ...
3142         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3143         (createAllPages, makeTempFiles): Updated.
3145 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3147         * REVISION: Increased to 3.
3149 Version 1.17.2 released
3150 =======================
3152 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3154         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3155         to size_t.
3157 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3159         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3160         Fix synopsis.
3161         * tmac/groff_mdoc.man: Fix synopsis.
3163 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3165         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3166         Restore `doc-Pa-font'.
3168 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3170         * src/utils/indxbib/dirnamemax.c: Moved to ...
3171         * src/libs/libgroff/maxfilename.cc: Here.
3172         s/dir_name_max/file_name_max/.
3173         Add copyright.
3174         * src/include/lib.h: Add file_name_max.
3175         * src/utils/indxbib/indxbib.cc: Updated.
3176         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3177         Updated.
3179         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3180         as empty.
3181         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3183         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3184         REGION_TEMPLATE): New macros.
3185         (createAllPages, makeTempFiles): Use them.
3186         Include `nonposix.h'.
3187         (html_system): New function.
3188         (createAllPages, createImage): Use it.
3189         Use EXE_EXT.
3191         * tmac/www.tmac: Fix typos.
3193 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3195         * tmac/www.tmac: Disable hyphenation in normal text only if output
3196         device is html.
3197         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3198         * tmac/groff_mwww.man, NEWS: Updated.
3200 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3202         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3203         image location.
3205 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3207         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3208         doc-display-ps-stack): Implement font and font size stack for
3209         displays.
3211 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3213         * REVISION: Increased to 2.
3214         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3216         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3217         beginning of a line.
3218         * src/groff/grog/grog.sh: Ditto.
3220 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3222         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3223         make it portable.
3225 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3227         Fix problems with preprocessor string for `man' program.
3229         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3230         Updated/added copyright.
3231         Moved Emacs's local variable to identify nroff mode to the end of
3232         the file; add local variable if missing.
3234 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3236         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3237         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3238         * configure: Regenerated.
3240 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3242         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3243         * configure: Regenerated.
3245 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3247         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3248         but www.tmac.
3249         * doc/pic.ms: Fix typos.
3251 Version 1.17.1 released
3252 =======================
3254 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3256         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3257         * configure: Updated.
3259 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3261         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3262         image names.
3263         * src/roff/troff/dic.cc (blank_line): Add html tag.
3265 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3267         * src/roff/troff/input.cc (do_suppress): Fix typo.
3269 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3271         Added two new options (-D and -I) to specify image names and a
3272         subdirectory to place the images in.
3274         Change syntax from \\Ox to \\O[x].
3276         * src/devices/grohtml/post-html.cc (main): Add options.
3277         (usage): Updated.
3278         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3279         Use `NULL' instead of `0' for null string pointers.
3280         (MAX_RETRIES): New macro.
3281         (lengthOfintToStr, intToStr, make_message): New functions.
3282         (makeFileName): Make function static.
3283         Implement -D and -I options.
3284         (checkImageDir): New function.
3285         (write_end_image, write_start_image): Use new syntax of \O.
3286         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3287         make_message().
3288         (createImage): Use make_message().
3289         (addps4html): Add guard for malloc().
3290         (usage, scanArguments): Updated.
3291         (makeTempFiles): Use mkstemp().
3292         (removeTempFiles): Use unlink().
3293         (findPrefix): Add guard for malloc().
3294         (main): Updated.
3295         * src/roff/troff/input.cc (get_delim_file_name): New function to
3296         parse \O.
3297         (do_suppress): Updated to parse new syntax.
3298         * src/devices/grohtml/grohtml.man: Updated.
3299         * tmac/www.tmac: Updated to new syntax.
3301         * NEWS: Updated.
3303 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3305         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3307         * src/devices/grohtml/grohtml.man: Minor improvements.
3309 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3311         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3313 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3315         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3316         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3317         the former.
3318         * src/preproc/grn/grn.man: Add proper '\" string.
3320 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3322         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3324 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3326         Updated to autoconf 2.50.
3328         * configure.in: Renamed to...
3329         * configure.ac: This.
3330         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3331         (GROFF_OS390): Updated.
3332         * configure: Regenerated.
3334 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3336         * src/roff/troff/env.c, src/roff/troff/env.h,
3337         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3338         from 2000-12-21.
3340 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3342         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3344 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3346         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3347         less than or equal zero; set it to 1 then.
3348         * src/roff/troff/node.h (node::node): Initialize `last'.
3350 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3352         * tmac/an-old.tmac: Make predefined strings work in compatibility
3353         mode.
3354         Add troff version guard.
3355         * tmac/doc.tmac: Simplify version guard.
3357 2001-05-07  Werner LEMBERG  <wl@gnu.org>
3359         The .ns and .rs requests are now honoured not only in the top-level
3360         but in all diversions (similar to UNIX troff).
3362         This change is based on a patch from Tadziu Hoffmann
3363         <hoffmann@usm.uni-muenchen.de>.
3365         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3366         (top_level_diversion): Remove `no_space_mode' member.
3367         * src/roff/troff/div.cc (diversion::diversion,
3368         top_level_diversion::top_level_diversion): Updated.
3369         (macro_diversion::output): Reset `no_space_mode'.
3370         (no_space, restore_spacing): Use `curdiv' unconditionally.
3371         (space_request, blank_line): Check `curdiv->no_space_mode'.
3372         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3373         `curdiv' unconditionally.
3374         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3375         Updated.
3377 2001-05-06  Werner LEMBERG  <wl@gnu.org>
3379         Added two new requests `de1' and `am1' which are similar to `de' and
3380         `am' with the difference that compatibility mode is saved on entry,
3381         switched off during macro execution, and restored on exit.
3383         * src/roff/troff/input.h: Added two new special characters
3384         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3385         * src/roff/troff/input.cc (input_iterator): Added two member
3386         functions `save_compatible_flag' and `get_compatible_flag'.
3387         (input_stack): Ditto.
3388         (string_iterator): Ditto.  Also add private member
3389         `saved_compatible_flag'.
3390         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3391         (calling_mode): New enumeration.
3392         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
3393         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3394         (define_macro, define_indirect_macro, append_macro, ignore): Use
3395         `calling_mode'.
3396         (define_nocomp_macro, append_nocomp_macro): New functions.
3397         (init_input_requests): Updated.
3398         (do_request): Rename local variable `saved_compatible_flag' to
3399         `old_compatible_flag'.
3400         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3402         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3403         public and trap-invoked macros.  As a consequence, the man macros
3404         work in compatibility mode also.
3406 2001-05-06  Solar Designer  <solar@openwall.com>
3408         * Makefile.in: Use $(mandir).
3410 2001-05-06  Alexios Zavras  <zvr@pobox.com>
3412         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3414 2001-05-05  Werner LEMBERG  <wl@gnu.org>
3416         Added `.ns' number register: Returns 1 in no-space mode (if in
3417         top-level diversion), 0 otherwise.
3419         * src/roff/troff/div.cc (no_space_mode_reg): New class.
3420         (init_div_requests): Updated.
3421         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3422         Document it.
3424 2001-05-04  Werner LEMBERG  <wl@gnu.org>
3426         * src/roff/nroff/nroff.man: Improved documentation (especially
3427         locales).
3429 2001-05-02  Werner LEMBERG  <wl@gnu.org>
3431         Added `brp' request: This is \p as a request.
3433         * src/roff/troff/env.cc (environment::do_break): Add parameter
3434         `spread'.
3435         (do_break_request): New function (was `break_request').
3436         (break_request): Calls `do_break_request'.
3437         (break_spread_request): New; calls `do_break_request'.
3438         (init_env_requests): Updated.
3439         * src/roff/troff/env.h: Updated.
3440         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3442         * REVISION: Increased to 1.
3443         * win32-diffs: Updated.
3445 2001-05-01  Werner LEMBERG  <wl@gnu.org>
3447         * tmac/an-old.tmac: Fix minor compatibility mode issue.
3448         * tmac/troffrc-end: Make it really work in compatibility mode.
3450 2001-04-27  Werner LEMBERG  <wl@gnu.org>
3452         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3453         stdlib.h.
3455 2001-04-22  Werner LEMBERG  <wl@gnu.org>
3457         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3458         latest versions from glibc CVS archive.
3460         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3461         <c.zeelenberg@hccnet.nl>.
3463 2001-04-21  Werner LEMBERG  <wl@gnu.org>
3465         * configure.in: Move check for mkstemp() to...
3466         * aclocal.m4 (GROFF_MKSTEMP): This new function.
3467         * configure: Regenerated.
3469         * src/include/groff-getopt.h: Don't use variable names in
3470         declarations.
3472         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
3473         * src/devices/grohtml/Makefile.sub,
3474         src/devices/grohtml/post-html.cc: Updated.
3476 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
3478         * configure.in: Add special check for mkstemp().
3479         * src/libs/libgroff/tmpfile.cc: Use it.
3480         * src/utils/indxbib/indxbib.cc: Ditto.
3481         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3482         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3483         `const'.
3485 2001-04-20  Bruce Lilly  <blilly@erols.com>
3487         `Version_string' as C++ object was not visible to linker from C
3488         object files.
3489         Add `const' to `Version_string'.
3491         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3492         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3493         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3494         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3495         (scanArguments), src/preproc/refer/refer.cc (main),
3496         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3497         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3498         (main), src/devices/grohtml/post-html.cc (main),
3499         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3500         (main), src/utils/hpftodit/hpftodit.cc (main),
3501         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3502         (main), src/utils/lkbib/lkbib.cc (main),
3503         src/utils/addftinfo/addftinfo.cc (main): Implement it.
3505         * src/roff/groff/pipeline.c: Add _UWIN.
3506         * src/include/nonposix.h: Ditto.
3508 2001-04-20  Werner LEMBERG  <wl@gnu.org>
3510         * src/include/lib.h: Use HAVE_STRERROR.
3511         * src/roff/groff/pipeline.c: Ditto.
3512         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3513         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3514         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3515         * win32-diffs: Updated.
3516         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3518 2001-04-19  Werner LEMBERG  <wl@gnu.org>
3520         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3521         instead of hardwired `"troff"'.
3522         (char_buffer::read_file): Remove unused variables.
3523         (char_buffer::write_file_troff): Ditto.
3524         (char_buffer::write_file_html): Ditto.
3525         (generateImages): Ditto.
3526         (abs): Removed.
3527         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3529         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3531         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3532         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3533         index_search_item::search1): Ditto.
3534         * src/roff/troff/node.h (width_list): Reorder members.
3535         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3536         (lookup_warning): Ditto.
3537         (prepend_string): Commented out.
3538         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3539         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3540         * src/preproc/tbl/main.cc (process_format): Ditto.
3541         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3542         compiler warnings.
3543         * src/preproc/pic/pic.cc: Updated.
3544         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3545         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3546         * src/preproc/refer/command.cc (execute_command): Ditto.
3547         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3548         * src/preproc/refer/token.cc (lookup_token): Ditto.
3549         * src/preproc/soelim/soelim.cc: Ditto.
3550         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3551         (isHexDigit): Commented out.
3552         (pushBackBuffer::isString): Remove unused variable.
3553         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3554         warning.
3555         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3556         resource_manager::read_resource_arg, read_one_of, parse_extensions):
3557         Ditto.
3558         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3559         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3560         lookup_paper_size): Ditto.
3561         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3562         (text_glob, element_list): Reorder members.
3563         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3564         compiler warning.
3565         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3566         return value to `void'.
3567         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3568         of initializers.
3569         * src/devices/grohtml/html.h (simple_output::check_newline,
3570         simple_output::space_or_newline, simple_output::enable_newlines):
3571         Add return value.
3572         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3573         compiler warnings.
3574         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3575         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3576         output_ligatures, output_charset, read_map): Ditto.
3577         * src/utils/lookbib/lookbib.cc (main): Ditto.
3578         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3579         (do_file): Fix typo (`=' -> `==').
3580         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3581         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3583 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
3585         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3586         Fix usage of GROFF_BIN_PATH.
3587         * src/roff/nroff/nroff.man: Updated.
3589 2001-04-18  Werner LEMBERG  <wl@gnu.org>
3591         * NEWS: Fixing typos.
3592         Updated.
3594 Version 1.17 released
3595 =====================
3597 2001-04-17  Werner LEMBERG  <wl@gnu.org>
3599         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3600         directory, not in $(srcdir).
3602 2001-04-16  Werner LEMBERG  <wl@gnu.org>
3604         * doc/groff.texinfo: More info on conditionals.
3606 2001-04-15  Werner LEMBERG  <wl@gnu.org>
3608         * doc/groff.texinfo: Added some info about groff internals.
3610         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3611         about missing special character only if the name is non-null.
3613 2001-04-14  Werner LEMBERG  <wl@gnu.org>
3615         Removing the grohtml-old device driver which is now obsolete.
3617         * src/devices/grohtml-old/*: Removed.
3618         * font/devhtml-old/*: Removed.
3619         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3620         Remove comments.
3621         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3622         * test-groff (PATH): Updated.
3623         * tmac/Makefile.sub (NORMALFILES): Updated.
3624         * tmac/an-old.tmac: Remove special code for html-old device.
3625         Replace `html-or-html-old' register with `an-html'.
3626         * tmac/eqnrc: Updated.
3627         * tmac/html-old.tmac: Removed.
3628         * tmac/troffrc, tmac/troffrc-end: Updated.
3629         * tmac/www.tmac: Remove special code for html-old device.
3630         Replace `html-or-html-old' register with `www-html'.
3632         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3633         src/libs/libgroff/htmlindicate.cc (graphic_end),
3634         include/htmlindicate.h, src/preproc/grn/*.cc,
3635         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3636         single argument for consistency with rest of source code.
3638         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3640 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
3642         * src/roff/troff/troff.man: Fixing typos.
3644 2001-04-13  Werner LEMBERG  <wl@gnu.org>
3646         * doc/pic.ms: Fixing many font switches.
3647         * doc/groff.texinfo: Fixes, additions.
3648         * MORE.STUFF: Updated.
3650 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
3652         * src/devices/grohtml/grohtml.man: Updated manual page regarding
3653         simple anchor.
3654         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3655         cropping of images.
3656         (removeTempFiles): New function to tidy up temporary files.
3657         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3658         Many fixes to do with the new inline suppress node and image regions
3659         are much tighter.
3660         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3661         (generate_img_src): New function.
3662         (html_printer::do_auto_image): Utilizes it.
3663         (do_heading, do_title): Include inline images within their contents.
3664         (html_printer::begin_page): Tidied up comments that are issued to
3665         the html output file.
3666         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3667         than courier.
3668         (text_glob::is_br): New method used by do_heading.
3669         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3670         equivalent diversion.
3671         * src/include/html-strings.h: Altered image tags to reflect the
3672         inline image node.
3673         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3674         parameter.
3675         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3676         it is already inside a pic image.  Only emit tags if the argument
3677         `-Tps:html' is present.
3678         * src/preproc/tbl/main.cc: Changes to reflect additional
3679         `html_end_suppress' parameter.
3680         * src/roff/troff/env.cc: Only emit eol tag if a node has been
3681         emitted since the last eol tag was written.
3682         * src/roff/troff/env.h: New boolean `emitted_node'.
3683         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3684         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
3685         * src/roff/troff/node.cc (check_charinfo): New method. 
3686         (troff_output_file::determine_line_limits): Alterations to limit
3687         checking.
3688         * tmac/www.tmac: Changes to reflect new suppress nodes.
3689           
3690 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
3692         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3693         Escape the html_glyph in the buffer.
3694         (str_translate_to_html): Output the unescaped escaped_char.
3695         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3696         `frame=void', not `frame=none'.  Add `border=0'.
3698 2001-04-12  Werner LEMBERG  <wl@gnu.org>
3700         * PROBLEMS: Add some words on how to avoid wrapper macros.
3702 2001-04-11  Blake McBride  <blake@florida-software.com>
3704         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3706 2001-04-11  Werner LEMBERG  <wl@gnu.org>
3708         * font/devlbp/Makefile.sub (CLEANADD): Set it.
3709         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3710         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3711         * Makefile.sub (DISTCLEANFILES): Here.
3713         * libs/libgroff/new.cc: Include `nonposix.h'.
3714         * win32-diffs: Updated.
3716 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3718         Added skeleton macro for defunct macros.
3720         Updated documentation.
3722         When inside displays, an empty input line warning should be
3723         suppressed.  If another macro call is put inside a display,
3724         all subsequent empty lines found in that display caused a
3725         warning to be emitted.
3727         * tmac/doc.tmac (doc-defunct-macro): New macro.
3728         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3729         (doc-restore-global-vars): Fixed typo.
3730         (doc-empty-line): Check the `doc-display-depth' register to
3731         determine whether we are inside display or not.
3733         * tmac/doc-common: Removed `Or' and `Sf' registers.
3734         Moved obsolete `Ds' macro to doc.tmac.
3736         * tmac/groff_mdoc.man: Bump document date.
3737         Document `.Vt' under ``Variable Types''.
3738         Removed documentation for obsolete `.Or' macro.
3740 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3742         * NEWS: Updated.
3743         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3745 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3747         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3748         (usage): Add stream argument. Don't exit.
3749         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3750         Write --version output to stdout, not stderr.
3751         (usage): Add stream argument. Don't exit.
3752         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3753         (usage): Add stream argument. Don't exit.
3754         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3755         constants.
3756         (usage): Add stream argument. Don't exit.
3757         (main): Write --help output to stdout, not stderr.
3758         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3759         (usage): Add stream argument. Don't exit.
3760         * src/devices/grops/ps.cc (main): Accept --help and --version.
3761         (usage): Add stream argument. Don't exit.
3762         * src/devices/grotty/tty.cc (main): Accept --help and --version.
3763         (usage): Add stream argument. Don't exit.
3764         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3765         (main): Accept --help and --version.
3766         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3767         (main): Accept --help and --version.
3768         * src/preproc/html/pre-html.cc (usage): Add stream argument.
3769         (scanArguments): Accept --help and --version.
3770         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3771         (main): Accept --help and --version.
3772         * src/preproc/refer/refer.cc (main): Accept --help and --version.
3773         (usage): Add stream argument. Don't exit.
3774         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3775         exit.
3776         (main): Accept --help and --version.
3777         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3778         (main): Accept --help and --version.
3779         * src/roff/groff/groff.cc (main): Accept --help and --version.
3780         (synopsis): Add stream argument.
3781         (help): Write --help output to stdout, not stderr.
3782         (usage): Add stream argument. Don't exit.
3783         * src/roff/grog/grog.pl: Accept --help and --version.
3784         (help): New sub.
3785         * src/roff/grog/grog.sh: Accept --help and --version.
3786         * src/roff/nroff/nroff.sh: Accept --help and --version.
3787         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3788         (usage): Add stream argument. Don't exit.
3789         (main): Accept --help and --version.
3790         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3791         (usage): New function with stream argument, doesn't exit.
3792         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3793         (usage): New function with stream argument, doesn't exit.
3794         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3795         (usage): Add stream argument. Don't exit.
3796         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3797         (main): Accept --help and --version.
3798         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3799         exit.
3800         (main): Accept --help and --version.
3801         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3802         (main): Accept --help and --version.
3803         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3804         (usage): Add stream argument. Don't exit.
3806 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
3808         Fix indentation in SYNOPSIS.
3810         Updated to include changes of latest BSD mdoc version (basically,
3811         the only change is that `.Fn' and `.Fc' put a final semicolon after
3812         a function declaration in the SYNOPSIS section).
3814         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3815         (doc-in-synopsis-section): New variable.  Updated all related
3816         functions.
3817         (doc-indent-synopsis-active): New register.
3818         (Nd, Fn, Fo): Use it.
3819         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3820         `.Cd' with long argument line produces indented wrapped lines. 
3821         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3822         undesirable line break to be output.
3823         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3824         `.rs'.
3825         (Fn, Fc): Add final `;' to output.
3826         (doc-save-global-vars, doc-restore-global-vars): Updated.
3827         * tmac/doc-common: Remove `Ex' register.
3828         Updated.
3829         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3830         copyright.
3832 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3834         * tmac/doc.tmac (Cd): Simplify code.
3835         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3837 2001-04-06  Werner LEMBERG  <wl@gnu.org>
3839         Implement continuous underlining for nroff mode.  To do that, a new
3840         request in the ditroff language has been added: `x u N' (N is 0
3841         or 1).
3843         \X and \Y are now transparent to end-of-sentence recognition.
3845         * src/include/printer.h (printer): Add `type' parameter to `special'
3846         method.
3847         * src/libs/libdriver/printer.cc (printer::special): Updated.
3848         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3850         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3851         specials of type `p'.
3852         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3853         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3854         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3855         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3856         (glyph::order): New method.
3857         (tty_printer::add_char): Use it.
3858         (tty_printer::special): New method.
3859         (tty_printer::end_page): Implement it.
3861         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3862         * src/roff/troff/node.cc (special_node::special_node): Add parameter
3863         to set `no_init_string'.
3864         (special_node::tprint_start): Use it.
3865         (special_node::same, special_node::copy): Updated.
3866         (special_node::ends_sentence): New method.
3867         (troff_output_file::start_special): Add parameter to include
3868         inititialization of special conditionally.
3870         * src/roff/troff/env.h (environment): New member `underline_spaces'.
3871         * src/roff/troff/env.cc (do_underline_special): New function.
3872         (environment::set_font): Use it.
3873         (do_underline): Use it.  This was `underline()'.
3874         (underline): Call `do_underline()'.
3875         (continuous_underline): New function which calls `do_underline()'.
3876         (environment::newline): Use `do_underline_special()'.
3877         (init_env_requests): Updated.
3879         * NEWS, man/troff_out.man: Updated.
3881 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
3883         * font/devutf8/R.proto: Fix code of 'shc'.
3885 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3887         Many fixes.  Diag lists can now be nested also; additionally,
3888         `-compact' and `-offset' are supported.
3890         * tmac/doc.tmac (doc-have-indent): Replaced with ...
3891         (doc-list-have-indent-stackXXX): A new register stack.
3892         (doc-have-diag-list): Removed.
3893         (Bl): Use `doc-list-have-indent-stackXXX'.
3894         (El): Updated.
3895         (doc-diag-list): Use `doc-compact-list-stackXXX'.
3896         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3897         (doc-set-vertical-and-indent): Ditto.
3898         (doc-next-list-depth): Removed.
3899         (doc-increment-list-stack): Updated.
3900         (doc-decrement-list-stack): Use `doc-list-depth' instead of
3901         `doc-next-list-depth'.
3902         (doc-end-list, doc-end-column-list): Don't use
3903         `doc-increment-list-stack'.
3904         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3905         (doc-save-global-vars, doc-restore-global-vars): Updated.
3906         * tmac/doc-common: Updated.
3907         * tmac/groff_mdoc.man: Updated.
3908         * NEWS: Fix typo.
3910 2001-04-02  Werner LEMBERG  <wl@gnu.org>
3912         * src/devices/grotty/grotty.man: Fix grammatical error.
3914 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
3916         Remove .Ld from mdoc package; replace it with special handling of
3917         `...'.
3919         * tmac/doc-common: Remove `Ld' register.
3920         Uncomment `doc-volume-ds-*' strings.
3921         Remove `doc-operating-system-default'.
3922         (Os): Updated.
3923         * tmac/doc-syms (Ld): Removed.
3924         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3925         `...' specially.
3926         * NEWS: Updated.
3928         * tmac/groff_mdoc.man: Many fixes and updates.
3930 2001-03-29  Werner LEMBERG  <wl@gnu.org>
3932         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
3933         Bond <tkb@tkb.mpl.com>.
3934         * tmac/www.tmac: Save compatibility mode.
3936 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
3938         * tmac/groff_mdoc.man: Many fixes.
3940 2001-03-28  Werner LEMBERG  <wl@gnu.org>
3942         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3943         isn't recognized.
3945 2001-03-27  Werner LEMBERG  <wl@gnu.org>
3947         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3948         diversion.  This fixes overlong tags.
3950 2001-03-26  Werner LEMBERG  <wl@gnu.org>
3952         * doc/groff.texinfo: Fixed and improved documentation of fonts.
3953         * tmac/doc-syms: Fix error messages.
3954         * tmac/an-old.tmac: Remove incorrect double backslashes.
3956 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
3958         * tmac/Makefile.sub: Strip mdoc.local also
3959         * tmac/strip.sed: Fixed.
3961 2001-03-24  Werner LEMBERG  <wl@gnu.org>
3963         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3964         selecting the font size.
3965         * tmac/groff_mdoc.man, NEWS: Document it.
3967 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3969         * src/roff/troff/div.cc (save_vertical_space): Add default argument
3970         to `sv' request.
3971         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3972         argument to restore previous font family.
3973         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3975         * doc/groff.texinfo: More fixes and additions (mainly for font
3976         manipulating commands).
3978         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3979         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
3980         * tmac/Makefile.sub, NEWS: Updated.
3982 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3984         Replaced mdoc implementation.  The new version is `state of the
3985         art', using almost all new features of groff 1.17 -- it won't run
3986         with older versions.
3988         * tmac/doc.tmac: Completely rewritten.
3989         * tmac/doc-common: Ditto.
3990         * tmac/doc-nroff: Ditto.
3991         * tmac/doc-ditroff: Ditto.
3992         * tmac/doc-syms: Ditto.
3993         * tmac/mdoc.local: New file.
3994         * tmac/groff_mdoc.samples.man: Replaced with ...
3995         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3996         * tmac/strip.sed: Updated.
3997         * tmac/Makefile.sub: Updated.
3998         * INSTALL: Updated.
4000         * tmac/groff_man.man: Add `man.local' to the FILES section.
4002 2001-03-22  Werner LEMBERG  <wl@gnu.org>
4004         * doc/groff.texinfo: Added many @noindent.
4005         Replaced @end_Example -> @endExample.
4006         Added info whether registers are r/o.
4007         Many other additions and fixes.
4009 2001-03-21  Werner LEMBERG  <wl@gnu.org>
4011         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
4012         in makeinfo of texinfo 4.0) to be used in @Def* macros.
4013         Improved @Def* macros: Now the exact syntax of request, register,
4014         and escapes is shown.
4015         Added macros for parentheses and brackets to be used in @Def*.
4016         Many fixes and improvements of the documentation.
4018 2001-03-20  Werner LEMBERG  <wl@gnu.org>
4020         * doc/groff.texinfo: Added new index: `st' (for strings).
4021         Added macros @Defstr(x).
4022         Added macro @Example (adding @group).
4023         Other minor improvements.
4025 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4027         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
4028         `rq' for requests.  `fn' is no longer used.
4029         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
4030         Removed @Deffn(x).
4032         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
4033         number with name of man page.
4035 2001-03-19  Larry Kollar  <kollar@alltel.net>
4037         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
4038         consistency.
4040 2001-03-19  Werner LEMBERG  <wl@gnu.org>
4042         * man/groff_font.man: Document `prepro', `postpro', and `print'.
4043         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
4044         * src/devices/grohtml/grohtml.man: Fixing typos.
4046 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
4048         * tmac/s.tmac (@IP): Pass `.ip' html tag.
4049         * tmac/groff_mwww.man: Remove .LINE macro
4050         * tmac/www.tmac (LINE): Add `.ti'.
4052         * src/devices/grohtml/post-html.cc (html_printer): New member
4053         `indent'.
4054         (html_printer::emit_raw): Use it.
4055         (html_printer::do_linelength): Ditto.
4056         (html_printer::do_pageoffset): Ditto.
4057         (html_printer::do_indentation): Ditto.
4058         (html_printer::do_tempindent): Ditto.
4059         (html_printer::do_break): Ditto.
4060         (html_printer::begin_page): Ditto.
4061         (html_printer::do_indentedparagraph): New function.
4062         (html_printer::troff_tag): Handle `.ip'.
4063         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
4064         Add `<td width=...>' handling.
4065         (html_text::do_table): Add parameter.
4066         (html_text::do_indent): Updated.
4067         * src/devices/groohtml/html-text.h: Updated.
4069 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
4071         Introduced simple html tables to implement indentation.
4073         * src/devices/grohtml/html.h (word, word_list): New structures.
4074         (simple_output): Use it.
4075         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
4076         (html_printer): Improve indentation handling.
4077         (html_printer::emit_raw): Set `in_table' element.  Handle
4078         indentation if set.
4079         (html_printer::write_header): Move conditional downwards.
4080         Don't allow whitespace in tags.
4081         (html_printer::do_linelength): Handle line length and indentation
4082         conditionally.
4083         (html_printer::do_pageoffset): Handle indentation conditionally.
4084         (html_printer::do_indentation): Ditto.
4085         (html_printer::do_tempindent): New function member.
4086         (html_printer::do_fill): Take care of indentation.
4087         (html_printer::do_flush): Finish table.
4088         (html_printer::do_links): Ditto.
4089         (html_printer::do_break): New function for handling `.br' and `.ti'.
4090         (html_printer::troff_tag): Use it.
4091         Handle `.ti'.
4092         (html_printer::flush_globs): Fix.
4093         (html_printer::flush_page): Finish table.
4094         (html_printer::html_printer): Fix error message.  Set up
4095         `linelength'.
4096         (html_printer::add_to_sbuf): Remove special handling of character
4097         code 255.
4098         (to_unicode): Remove `stop()'.
4099         (html_printer::write_title): Cleanup.
4100         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4101         (html_printer::~html_printer): Flush text and end the line.
4102         Use `put_string()'.
4103         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4104         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4105         emission of tags.
4106         (html_text::start_tag): Disable newlines.
4107         (html_text::table_is_void): New function.
4108         (html_text::issue_table_begin): Ditto.
4109         (html_text::issue_table_end): Ditto.
4110         (html_text::push_para): Better table handling.
4111         (html_text::do_indent): New function.
4112         (html_text::do_table): Ditto.
4113         (html_text::done_table): Ditto.
4114         (html_text::do_tt): Handle PRE_TAG.
4115         (html_text::is_in_table): New function.
4116         (html_text::check_emit_text): Handle tables.
4117         (html_text::do_emittext): Use `nl()'.
4118         (html_text::do_para): Handle table.
4119         (html_text::remove_def): New function.
4120         * src/devices/grohtml/output.cc (word, word_list): Implement
4121         methods.
4122         (simple_output::end_line): Flush last word.
4123         (simple_output::simple_comment): Ditto.
4124         (simple_output::begin_comment): Recoded.
4125         (simple_output::end_comment): Ditto.
4126         (simple_output::comment_arg): Removed.
4127         (simple_output::check_newline): Improve test and flush last word.
4128         (simple_output::space_or_newline): Improved.
4129         (simple_output::write_newline): Replaced with...
4130         (simple_output::nl): This.
4131         (simple_output::put_raw_char): Flush last word.
4132         (simple_output::check_space): Removed.
4133         (simple_output::put_translated_string): Ditto.
4134         (simple_output::put_string): Simplified.
4135         (simple_output::put_number): Updated.
4136         (simple_output::put_float): Ditto.
4137         (simple_output::put_symbol): Removed.
4138         (simple_output::enable_newlines): Add `check_newline()'.
4139         (simple_output::flush_last_word): New function.
4141         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4142         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4144         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4145         * tmac/an-old.tmac (TP): Ditto.
4147 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4149         * mdate.sh: Make it POSIX compliant.
4151 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4153         Added the `return' request to end a macro immediately.  It simply
4154         pops iterators from the input stack until a macro iterator is found.
4156         * src/roff/troff/input.cc (input_iterator::is_macro,
4157         macro_iterator::is_macro): New member.
4158         (input_return_boundary): New class to signal an immediate return
4159         to while_request().
4160         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4161         New functions.
4162         (input_stack::clear): Use it.
4163         (input_stack::pop_macro): New function.
4164         (while_request): Use `is_return_boundary()'.
4165         (return_macro_request): New function.
4166         (init_input_requests): Use it.
4168         * src/roff/troff/TODO: Updated.
4169         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4171 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4173         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4174         cleanup.
4176 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4178         Make `\B' more rigid.
4180         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4181         parameter.
4182         (get_number_rigidly): New function.
4183         * src/roff/troff/input.cc (do_expr_test): Use it.
4184         * src/roff/troff/token.h: Updated.
4186         * src/roff/troff/request.h: Fix typo (init_html_request ->
4187         init_markup_request).
4189 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4191         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4192         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4193         are now `.begin', `.end', `.image'.
4195         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4196         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4197         Use add_char_to_sbuf().
4198         (to_unicode): New function.
4199         (char_translate_to_html): Changing type of `ch' parameter.
4200         Use `to_unicode()'.
4201         (html_printer::~html_printer): Comment out doctype string.
4202         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4203         instead of `.html-end'.
4204         (write_start_image): Use `.begin' and `.image' instead of
4205         `.html-begin' and `.html-image'.
4206         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4207         (html_begin): Renamed to ...
4208         (begin): This.
4209         (html_end): Renamed to ...
4210         (end): This.
4211         (html_image): Renamed to ...
4212         (image): This.
4213         (init_html_requests): Renamed to ...
4214         (init_markup_requests): This.
4215         * tmac/www.tmac: Updated.
4217 2001-02-28  Bram  <bram@avontuur.org>
4219         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4220         constructor.
4222 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4224         * doc/meref.me: Fixing some typos.
4226 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4228         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4229         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4230         * src/roff/troff/node.h: Updated.
4232 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4234         * tmac/groff_tmac.man: Fix typo.
4236 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4238         Fixing a bug which prevented proper end-of-sentence recognition
4239         between an `unformatted' box and the following text.  As a
4240         consequence, vertical line distances are no longer preserved in
4241         boxes after a call to `.unformat' -- because boxes aren't
4242         line-oriented (contrary to diversions), this doesn't make sense
4243         anyway.
4245         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4246         value.
4247         (vertical_size_node::set_unformat_flag): New method.
4248         * src/roff/troff/node.hh: Updated.
4249         * src/roff/troff/input.cc (word_space_node::reread,
4250         hmotion_node::reread): Reset `unformat' flag after usage.
4251         (unformat_macro): Append only if `set_unformat_flag()' returns
4252         non-zero.
4253         * src/roff/troff/troff.man: Updated.
4255 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4257         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4258         documentation of `asciify' and `unformat' requests.
4260 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4262         Redesigned the `unformat' request.  It is no longer connected with
4263         `asciify' but rather uses new `reread()' methods if the `unformat'
4264         flag is set.  Additionally, the handling of space characters after
4265         unformatting has been fixed so that they retain their width.
4267         * src/roff/troff/node.h (width_list): New structure to store
4268         original widths of spaces.
4269         (node): Added `unformat' member.
4270         Replaced `num_spaces' variable with `orig_width' list.
4271         * src/roff/troff/node.cc (*node::asciify,
4272         asciify_reverse_node_list): Removed `unformat_only' flag and related
4273         code.
4274         (word_space_node::asciify, word_space_node::word_space_node): Use
4275         `orig_width'.
4276         (word_space_node::~word_space_node): New destructor.
4277         (word_space_node::copy): Updated to handle `orig_width'.
4278         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4279         (*node::merge_space): Update `orig_width' list if necessary.
4280         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4281         * src/roff/troff/enc.cc (environment::space_newline): Use
4282         `width_list'.
4283         (environment::space): Added method to handle space width and
4284         sentence space width as parameters.  Use `width_list'.
4285         (environment::make_tab_node): Updated.
4286         * src/roff/troff/env.h: Updated.
4287         * src/roff/troff/input.cc (word_space_node::reread,
4288         unbreakable_space_node::reread, hmotion_node::reread): New methods
4289         to handle nodes specially if `unformat' flag is set.
4290         (do_asciify_macro): Renamed back to ...
4291         (asciify_macro): This.
4292         (unformat_macro): New implementation to simply set the `unformat'
4293         flag.
4295         * MORE.STUFF: Added more info about deroff.
4297 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4299         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4300         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4301         and `add_self()' methods to avoid hyphenation.  For example, the
4302         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4303         soft hyphen after `foo'.  Now the hyphen list is correctly
4304         `foo<ignore><ignore>bar'.
4306 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4308         * tmac/groff_tmac.man: Fix `BIR' macro.
4310 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4312         A new escape sequence `\:', inserting a zero-width break point.
4314         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4315         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4316         Implement it.
4317         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4318         method.
4319         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4320         and `asciify()' methods.
4321         * src/roff/troff/node.cc (space_node::space_node): Updated.
4322         (space_node::asciify): Handle `was_escape_colon'.
4323         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4325         Handle `\~' similar to other comparable requests.
4327         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4328         label.
4329         (token::next): Move creation of an unbreakable_space_node to...
4330         (token::add_to_node_list): Here.
4332         Fix a bug which sometimes prevented hyphenation of words connected
4333         with `\~' or `\ ' (and other escape sequences handled as
4334         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4335         (after a call to the `unformat' request).
4337         * src/roff/troff/env.h (environment::possibly_break_line,
4338         environment::hyphenate_line): Introducing `start_here' parameter.
4339         * src/roff/troff/env.cc (environment::space_newline,
4340         environment::space): Use it.
4341         (environment::possibly_break_line, environment::hyphenate_line):
4342         Implement it.
4343         * src/roff/troff/input.cc (process_input_stack): Use it.
4344         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4345         space_char_hmotion_node, overstrike_node): Add
4346         `get_hyphenation_type()' method.
4347         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4348         if `unformat_only' is active.
4350 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4352         Implemented new read-only number register `.linetabs' which
4353         returns 1 if in line-tabs mode, 0 otherwise.
4355         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4356         * src/roff/troff/env.cc (get_line_tabs): New function.
4357         (init_env_requests): Use it.
4358         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4360         * VERSION, REVISION: Changing to 1.17.0.
4362 2001-01-28  Werner LEMBERG  <wl@gnu.org>
4364         Fixed a bug which prevented hyphenation of words which are finished
4365         with `\)'.
4367         * src/roff/troff/token.h (token): Add enum type
4368         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4369         * src/roff/troff/input.cc (token::next, token::description,
4370         get_line_arg, token::add_to_node_list, token::process): Use it.
4372 2001-01-27  Werner LEMBERG  <wl@gnu.org>
4374         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4375         * src/roff/troff/div.cc (do_divert): Use it.
4377         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4379 2001-01-25  Werner LEMBERG  <wl@gnu.org>
4381         Adding the `linetabs' request.  If set, tab distances are not
4382         computed relative to the input line but relative to the output line.
4384         * src/roff/troff/env.h (environment): New member `line_tabs'.
4385         * src/roff/troff/env.cc (line_tabs_request): Implement request.
4386         (environment::environment, environment::copy): Updated.
4387         (environment::distance_to_next_tab): Use `line_tabs'.
4388         (init_env_requests): Register request.
4389         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
4390         fixes.
4392 2001-01-24  Werner LEMBERG  <wl@gnu.org>
4394         Introducing a new read-only register `.int' which is set to a
4395         positive value if the last output line is interrupted (i.e., if it
4396         contains `\c').
4398         * src/roff/troff/env.cc (init_env_requests): Add it.
4399         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4401 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
4403         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4404         * src/preproc/html/pre-html.cc (findPrefix): New function which
4405         generates the troff executable name via the system prefix.
4406         * src/preproc/eqn/main.cc: Modified warning message.
4408 2001-01-23  Werner LEMBERG  <wl@gnu.org>
4410         troff's `box' and `boxa' requests didn't preserve temporary
4411         indentation.
4413         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4414         `saved_target_text_length' members.
4415         * src/roff/troff/div.cc (do_divert): Use them.
4417         Tabs (but not yet leaders and fields) are now handled correctly by
4418         `asciify' request.
4420         * node.h (hmotion_node): Add field `was_tab'.
4421         * env.cc (environment::make_tab_node): Set it.
4422         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4424         Added new request `unformat' which will, contrary to `asciify',
4425         preserve font information after unformatting (i.e., only nodes
4426         dealing with horizontal space are converted back to input
4427         characters).
4429         * input.cc (asciify_macro): Renamed to ...
4430         (do_asciify_macro): this, having a new parameter `unformat_only'.
4431         (asciify_macro, unformat_macro): New; using do_asciify_macro.
4432         (init_input_requests): Added `unformat'.
4433         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4434         parameter to control asciification process.
4435         * node.h (*_node::asciify): Ditto.
4436         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4438 2001-01-20  Werner LEMBERG  <wl@gnu.org>
4440         * doc/groff.texinfo: Minor improvement of `.in' documentation.
4442 2001-01-18  Werner LEMBERG  <wl@gnu.org>
4444         * tmac/ps.tmac: Remove call of psold.tmac.
4445         * tmac/psold.tmac: Comment updated.
4446         * tmac/psnew.tmac: Removed since no longer needed.
4447         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4449         * font/devutf8/R.proto: Adding `shc' glyph.
4450         * font/devutf8/NOTES: Updated.
4452         * test-groff: Updated.
4454 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4456         First cut of the new html device driver.  Changes to pre-html and
4457         the new grohtml are too numerous to be documented here.
4459         Stuff related to `html' has been renamed to `html-old' and `html2'
4460         stuff has been renamed to `html' (including directories).  The new
4461         html device driver is therefore invoked as `-Thtml'.
4463         Added new `\O' escape to suppress output (needed by html driver).
4465         Added functions and code to pass info about input-level commands
4466         (`.in', `.fl', etc.) to html driver.
4468         Three new functions (.html-begin, .html-end, and .html-image) for
4469         better html handling: `html-begin' will execute the remaining line
4470         if at the outermost nesting level, increasing an internal counter.
4471         `html-end' does the same but decreases the internal counter.
4472         `html_image' puts its arguments into a special node (suppress_node)
4473         to define an image region.
4475         The `output' request has been removed.
4477         * tmac/html-tags.tmac: Removed.
4478         * tmac/arkup.tmac: Updated and renamed to ...
4479         * tmac/www.tmac: New file.
4480         * tmac/markup.tmac Updated and renamed to ...
4481         * tmac/mwww.tmac: New file.
4482         * tmac/Makefile.sub: Updated.
4483         * tmac/an-old.tmac: Updated.
4484         * tmac/eqnrc: Updated.
4485         * tmac/groff_man.man
4486         * tmac/groff_markup.man: Updated and renamed to ...
4487         * tmac/groff_mwww.man: New file.
4488         * tmac/groff_tmac.man: Updated.
4489         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4490         * tmac/html.tmac: Updated and renamed from html2.tmac.
4491         * tmac/pspic.tmac: Updated html support.
4492         * tmac/s.tmac: Added html output support.
4493         * tmac/troffrc, tmac/troffrc-end: Updated.
4495         * Makefile.in, doc/Makefile: Updated.
4496         * doc/groff.texinfo: Added info about new `\O' escape.
4497         * doc/homepage.ms: Use `MAILTO' macro.
4499         * font/devhtml/DESC.proto: Add `C' font.
4500         * font/devhtml/Makefile.sub: Updated.
4501         * font/devhtml/R.proto: Minor fixes.
4502         * font/devhtml-old/Makefile.sub: Updated.
4504         * src/devices/grohtml-old/Makefile.sub: Updated.
4506         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4507         method.
4508         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4509         graphic_start): Add `inline' parameter.  Update.
4510         (html_end_suppress, graphic_end): Update.
4512         * src/include/html-strings.h: New file.
4513         * src/include/htmlindicate.h: Comments updated.
4514         * src/include/printer.h: Updated.
4516         * src/preproc/eqn/main.cc (do_file, main): Updated.
4517         * src/preproc/pic/troff.cc (troff_output::start_picture,
4518         troff_output::finish_picture): Updated.
4519         * src/preproc/tbl/main.cc (process_input_file): Updated.
4521         * src/roff/groff/groff.cc (main): Updated.
4522         Pass device arguments to predrivers also.
4523         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4524         * src/roff/troff/env.h (environment): Updated.
4525         New elements `need_eol' and `ignore_next_eol' (for html output).
4526         * src/roff/troff/env.cc (environment::environment): Add initializers
4527         for `need_eol' and `ignore_next_eol'.
4528         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4529         functions.
4530         (point_size, fill, no_fill, center, right_justify, line_length,
4531         indent, temporary_indent, break_request, handle_tab): Use
4532         `add_html_tag()'.
4533         (set_tabs): Use `add_html_tag_tabs()'.
4534         (environment::add_html_tag): Updated.
4535         (environment::do_break): Updated.
4536         * src/roff/troff/div.cc (space_request, flush_output): Use
4537         `environment::add_html_tag()'.
4538         * src/roff/troff/input.cc: Updated.
4539         New variable `html_level' to indicate nested `html-begin' requests.
4540         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4541         (non_interpreted_char_node, token_node, non_interpreted_node): Add
4542         `force_tprint()' method.
4543         (token::next): Handle `\O'.
4544         (do_suppress): Implement it.
4545         (html_begin, html_end, html_image): New functions.
4546         (init_output_requests): Renamed to ...
4547         (init_html_requests): this.
4548         (main): Use it.
4549         (macro::append_str, macro::append_unsigned, macro::append_int): New
4550         methods.
4551         New variable `output_low_mark_miny' to limit minimal value of y.
4552         (reset_output_registers): Use it.
4553         (output_request): Removed.
4554         (get_output_registers): New function.
4555         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4556         (*_node): Added `force_tprint()' if necessary.
4557         (special_node): New elements `tf' and `get_tfont()'.
4558         (suppress_node): New class.
4559         * src/roff/troff/node.cc:
4560         New global variables `image_no' and `suppress_start_page'.
4561         (real_output_file): New method `is_on()'.
4562         (troff_output_file): New method `start_special(tfont)'.
4563         (troff_output_file::really_print_line): Use `tprint' conditionally.
4564         (real_output_file::print_line): Updated.
4565         (real_output_file::on): Updated.
4566         (*_node): Added `force_tprint()'.
4567         (special_node::special_node): Initializer updated.
4568         (special_node::same, special_node::copy, special_node::tprint_start):
4569         Updated.
4570         (get_reg_int, get_reg_str): New functions.
4571         (suppress_node::*): New methods.
4572         New global variables last_position, last_image_filename;
4573         (min): New inline function.
4574         * src/roff/troff/reg.h, src/roff/troff/request.h,
4575         src/roff/troff/troff.h: Updated.
4577 2001-01-13  Werner LEMBERG  <wl@gnu.org>
4579         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4580         documentation of `asciify' request.
4582 2001-01-12  Werner LEMBERG  <wl@gnu.org>
4584         * src/roff/troff/input.cc: Move definition of special characters
4585         like `ESCAPE_TILDE' to ...
4586         * src/roff/troff/input.h: New file.
4587         * src/roff/troff/Makefile.sub (HDRS): Add it.
4589         Extending the .asciify request to `unformat' space characters also.
4591         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4592         to count input space characters.
4593         Update constructors to take care of it.
4594         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4595         `ESCAPE_SPACE' instead of normal space.
4596         (word_space_node::asciify): New method.
4597         (unbreakable_space_node::asciify): New method.
4598         (word_space_node::merge_space): New method.
4599         * src/roff/troff/env.cc (environment::space_newline,
4600         environment::space): Add code to initialize `num_spaces' (using the
4601         constructor of `word_space_node').
4602         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4603         Document it.
4605 2001-01-09  Werner LEMBERG  <wl@gnu.org>
4607         * man/groff_char.man: Use table header traps only conditionally.
4609 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
4611         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4613 2001-01-08  Werner LEMBERG  <wl@gnu.org>
4615         Introducing the `box' and `boxa' requests which are similar to
4616         `di' resp. `da' but omitting a partially filled line (which is
4617         restored after ending the diversion).
4619         * src/roff/troff/div.h (diversion): Add elements to save partially
4620         filled line.
4621         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4622         partially filled line.
4623         (divert, divert_append): Updated.
4624         (box, box_append): New functions.
4625         (init_div_requests): Use them.
4626         * src/roff/troff/env.h (environment): do_divert() is now a friend.
4627         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4629         * doc/groff.texinfo: Fix documentation of `lf' request.
4631 2000-12-25  Werner LEMBERG  <wl@gnu.org>
4633         * src/roff/troff/troff.man, NEWS: Document `writem' request.
4635 2000-12-21  Werner LEMBERG  <wl@gnu.org>
4637         Ignore `ss' request if in compatibility mode.
4639         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4640         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4641         * src/roff/troff/env.cc (space_size): Use it.
4643         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4644         `ss' request in nroff mode.
4646         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4647         changes.
4649 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
4651         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4653 2000-12-13  Werner LEMBERG  <wl@gnu.org>
4655         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4656         * src/preproc/eqn/neqn.man: Small fixes and additions.
4658 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
4660         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4661         Fixing typo.
4663         * src/preproc/eqn/neqn.man: New file.
4665         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4666         negative' warning.
4668         * tmac/e.tmac: Add `T&' macro.
4669         Fix `indent cannot be negative' warning.
4670         * tmac/s.tmac: Fix `indent cannot be negative' warning.
4672 2000-12-07  Werner LEMBERG  <wl@gnu.org>
4674         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4676 2000-12-06  Werner LEMBERG  <wl@gnu.org>
4678         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4679         `alloca' symbol .
4681         * MORE.STUFF: Added info about deroff for djgpp.
4683         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4684         documentation of -rcR switch.
4686 2000-12-03  Werner LEMBERG  <wl@gnu.org>
4688         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4689         if -rcR=1 (which is now the default in nroff mode), a single, very
4690         long page is created instead of multiple pages: All `ne' and `wh'
4691         requests are put into conditionals; a new macro `an-end' is added to
4692         be called with `em'.
4694         Some other minor cleanups.
4696         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4698 2000-12-02  Werner LEMBERG  <wl@gnu.org>
4700         Fixing a bug which prevented hyphenation in words followed
4701         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4703         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4704         Adding possibly_break_line().
4705         * src/roff/troff/env.h (environment): Make possibly_break_line()
4706         public.
4708         Make `\~' usable in .tr request.
4710         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4711         (token): Add stretchable_space().
4712         * src/roff/troff/input.cc (token::next, token::delimiter,
4713         token::description, process_input_stack, do_translate,
4714         add_to_node_list, token::process): Use it.
4715         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4716         for adjusting the space.
4717         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4718         for stretchable space.
4719         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4720         (make_node): Add code for stretchable space.
4721         * src/roff/troff/env.cc (environment::add_char): Use it.
4722         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4723         (get_copy, token::next, transparent_translate, asciify): Use it.
4725         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4726         doc/groff.texinfo: Updated.
4727         * man/groff.man: Small reorderings.
4729 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4731         * NEWS: Fixes.
4732         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4733         option.
4734         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4735         `safer_macro_path' to -M option.
4736         * src/roff/troff/troff.man: Fixes.
4738 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4740         Use safer path (except for config files) if -U isn't specified.  Add
4741         a special macro path (without home and current directory) for config
4742         files.  Add home directory to unsafe path for consistency.  Don't
4743         include the home directory in the font path.
4745         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4746         `macro_path'.
4747         * src/include/macropath.h: Add `config_macrp_path'.
4748         * src/libs/libgroff/fontfile.cc: Fix font path.
4749         * src/roff/troff/input.cc (process_startup_file): Use
4750         `config_macro_path'.
4751         (main): Select unsafe path if -U is given.
4753         * src/preproc/eqn/main.cc (main): Fixing search path for
4754         configuration file.
4755         * src/preproc/eqn/eqn.man: Updated.
4757         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4758         Updated.
4760         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4761         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4762         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4763         src/devices/grotty/grotty.man: Updated.
4765         * Makefile.in: Fix comments.
4767 2000-11-17  Werner LEMBERG  <wl@gnu.org>
4769         * tmac/safer.tmac: Empty file added (again) for compatibility
4770         reasons.
4771         * tmac/Makefile.sub: Updated.
4773 2000-11-16  Werner LEMBERG  <wl@gnu.org>
4775         * src/devices/grodvi/dvi.cc (main),
4776         src/devices/grohtml2/post-html.cc (main),
4777         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4778         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4779         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4780         (main), src/preproc/html2/pre-html.cc (main),
4781         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4782         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4783         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4784         (main), src/utils/hpftodit/hpftodit.cc (main),
4785         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4786         (main), src/utils/lookbib/lookbib.cc (main),
4787         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4788         (main): Use stdout for -v.
4789         * src/roff/groff/groff.cc (run_commands),
4790         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4791         to make direct printing to stdout possible.
4792         * src/roff/groff/pipeline.h: Updated.
4794         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4795         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4796         * src/utils/afmtodit/afmtodit.man: Updated.
4798         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4799         (version): New function.
4800         (usage): Updated.
4801         * src/utils/addftinfo/addftinfo.man: Updated.
4803         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4804         Fixing copyright dates.
4806         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4807         replacing it.
4809         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4810         version_string.
4812         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4814 2000-11-15  Werner LEMBERG  <wl@gnu.org>
4816         In all programs, make -v return immediately with exit status 0 to
4817         be compliant with the GNU standard.
4819         * src/devices/grodvi/dvi.cc (main),
4820         src/devices/grohtml2/post-html.cc (main),
4821         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4822         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4823         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4824         (main), src/preproc/html2/pre-html.cc (main),
4825         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4826         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4827         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4828         (main): Implement it.
4829         * NEWS: Updated.
4831         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
4832         and postprocessors to the -v option.
4834         * src/roff/grog/grog.pl: Implement -v.
4835         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4836         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4838         * src/roff/nroff/nroff.sh: Implement -v.
4839         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4840         * src/roff/nroff/nroff.man: Updated.
4841         
4842         * src/preproc/eqn/main.cc (main): Fix comment typo.
4844         * MORE.STUFF: Added info about djgpp port of grap.
4846 2000-11-14  Werner LEMBERG  <wl@gnu.org>
4848         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4849         mode (or rather, implemented non-compatibility mode).
4850         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4852         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4853         replacing it -- we don't find gxditview otherwise.
4854         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4856         * src/preproc/pic/depend: Removed.  Unnecessary.
4858         Implemented dummy keyword `solid' in pic for compatibility with
4859         AT&T pic.
4861         * lex.cc (lookup_keyword): Added `solid'.
4862         * pic.y: Added SOLID with dummy rule.
4863         * pic.cc, pic_tab.h: Regenerated.
4864         * doc/pic.ms: Updated.
4866 2000-11-13  Werner LEMBERG  <wl@gnu.org>
4868         For security reasons, don't use the current directory but the home
4869         directory while searching and scanning troffrc and troffrc-end.
4870         Similarly, replace the current directory with the home directory
4871         in the font path.
4873         * Makefile.in (fontpath, tmacpath): Remove current directory.
4875         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4876         two parameters `add_home' and `add_current'.
4877         (search_path::~search_path, search_path::command_line_dir,
4878         search_path::open_file): Remove tests for `dirs' being zero.
4879         * src/include/searchpath.h: Adjust.
4880         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4881         `safer_macro_path'.
4882         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4884         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4885         * src/roff/troff/input.cc: Use `mac_path', initialized with
4886         `macro_path'.
4887         (process_startup_file): Set `mac_path' to `safer_macro_path'.
4888         * src/roff/troff/env.cc: Use `mac_path'.
4890         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4892         * NEWS, man/roff.man, src/roff/troff/troff.man,
4893         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4894         Updated.
4896 2000-11-12  Werner LEMBERG  <wl@gnu.org>
4898         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4900         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4901         * configure.in: Fix typo in comment.
4902         * configure: Regenerated.
4904         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4905         copyright dates.
4907 2000-11-08  Werner LEMBERG  <wl@gnu.org>
4909         Add system tmac directory (/usr/local/lib/groff/site-tmac).
4911         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4912         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4913         $(systemtmacdir).
4914         Use @libdir@.
4915         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4916         * tmac/Makefile.sub (install_data): Create
4917         $(systemtmacdir) and $(localtmacdir).
4918         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4919         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4920         NEWS, doc/groff.texinfo: Updated and minor fixes.
4922         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4923         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4924         $(systemtmacdir) since the wrapper files are platform-dependent.
4926 2000-11-01  Werner LEMBERG  <wl@gnu.org>
4928         * doc/groff.texinfo: Fix typo.
4930 2000-10-26  Werner LEMBERG  <wl@gnu.org>
4932         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
4933           tmac.doc.old -> doc-old.tmac
4934           tmac.an.old  -> an-old.tmac
4936         * tmac/tmac.*: Moved to ...
4937         * tmac/*.tmac: this.
4938         * tmac/man.local: Fix comment.
4939         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4940         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
4941         Added some `FILES' sections.  More use of @...@ directives.  Other
4942         minor updates.
4943         * arch/djgpp/README, font/devutf8/NOTES: Updated.
4944         * doc/homepage.ms, doc/groff.texinfo: Updated.
4945         * man/groff.man, man/roff.man: Updated.
4946         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4947         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4948         src/devices/grotty/grotty.man: Updated.
4949         * src/preproc/pic/pic.man: Updated.
4950         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4951         instead of -mdoc.old.
4952         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4953         * src/roff/nroff/nroff.man: Updated.
4954         * NEWS: Updated.
4956         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4958         * tmac/mm.diff: Removed -- it has no use now since the mm package
4959         is part of groff.
4961         * tmac/*: Removed trailing spaces.
4963         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4964         the tmac subdirectory also).
4966         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4967         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4968         stuff since it is no longer needed.
4970         * README, PROBLEMS: Updated.
4972 2000-10-25  Werner LEMBERG  <wl@gnu.org>
4974         Invert current behaviour: Search first FOOBAR.tmac, then
4975         tmac.FOOBAR.
4977         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4978         (open_mac_file, macro_source): Implement it.
4979         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4980         doc/groff.texinfo, NEWS: Document it.
4982         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4983         Small documentation improvements.
4985         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4986         subdirectory also).
4988         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4990 2000-10-24  Werner LEMBERG  <wl@gnu.org>
4992         Add local tmac directory (groff/site-tmac).
4994         * Makefile.in: Add $(localtmacdir).
4995         (uninstall_dirs): Add $(localtmacdir).
4996         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4997         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4998         in $(localtmacdir).  Create $(localtmacdir).
4999         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
5000         Updated and minor fixes.
5002         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
5004         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
5006 2000-10-23  Werner LEMBERG  <wl@gnu.org>
5008         Move hyphen.us to tmac directory.
5010         * src/roff/troff/hyphen.us: Removed.
5011         * src/tmac/hyphen.us: Added.
5012         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
5014         Change installation structure for data files from .../groff/... to
5015         .../groff/<version><revision>/... to be conform with other GNU
5016         programs.
5018         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
5019         doc/Makefile: Implement it.
5020         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
5021         * configure: Updated.
5022         * arch/djgpp/README, font/devutf8/NOTES: Use it.
5023         * NEWS: Document it.
5024         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
5025         @MACRODIR@ instead of hard-coded directories.
5027 2000-10-22  Werner LEMBERG  <wl@gnu.org>
5029         Implement $GROFF_BIN_PATH environment variable (which defaults to
5030         $bindir) used for child programs of groff and similar wrappers.
5032         * gendefs.sh: Improve documentation.
5033         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
5034         src/preproc/eqn/Makefile.sub (neqn),
5035         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
5036         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
5037         $GROFF_BIN_PATH.
5038         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
5039         $GROFF_PATH__ (the latter for communication with troff).
5040         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
5041         set.
5042         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
5043         doc/groff.texinfo: Document it.
5045         * doc/groff.texinfo: Improve documentation of troff's -a option.
5047 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
5049         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
5050         non-intrusive eol marker.
5051         (troff_output_file::determine_line_limits): New function.
5052         (troff_output_file::draw): Use it.
5053         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
5054         output_pending_lines() instead of output_line().
5055         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
5056         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
5057         createImage): Small fixes.
5058         
5059 2000-10-14  Werner LEMBERG  <wl@gnu.org>
5061         Replace tmac.safer with a real secure solution.
5063         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
5064         system_request, pipe_output): Disable requests if in safer mode.
5065         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
5066         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
5067         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
5068         doc/groff.texinfo, src/roff/groff/groff.man,
5069         src/roff/troff/troff.man, arch/djgpp/README: Updated.
5071         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
5072         (resource_manager::output_prolog): Replace setenv() with putenv().
5074 2000-10-09  Werner LEMBERG  <wl@gnu.org>
5076         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
5077         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
5078         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
5079         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
5080         compilation errors with some compilers.  It seems that this code
5081         is no longer necessary -- if yes, it is easy to add some #ifdef's
5082         for that particular old-fashioned compiler.
5084         * MORE.STUFF: Added info about Meta-tbl.
5086         * doc/groff.texinfo: Added more info about `.if "..."..."'.
5088 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5090         Adding a new escape sequence \B'...': If the string between
5091         the delimiters is a valid numeric expression, return the character
5092         `1', and `0' otherwise.  This is an analogon to \A.
5094         * src/roff/troff/input.cc (do_expr_test): Implement it.
5095         (token::next): Use it.
5096         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5098         * tmac/tmac.trace: Made independent from escape character.
5100 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5102         Adding a new request .dei: define indirect.  The first and second
5103         parameter of .dei are taken from string registers instead directly;
5104         this very special request is needed to make tmac.trace independent
5105         from the escape character (which might even be disabled).
5107         * src/roff/troff/input.cc (do_define_macro): Implement it.
5108         (define_macro_indirect): New function.
5109         (init_input_requests): Use it.
5111         Adding two requests .ecs and .ecr: Save and restore the escape
5112         character.  These two requests are needed to make tmac.trace
5113         independent from the escape character (which might even be
5114         disabled).
5116         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5117         Implement it.
5118         (init_input_requests): Use it.
5120         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5122 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5124         Adding a new option -P and new environment variable GROPS_PROLOGUE
5125         to grops, selecting a different prologue file (minor modifications
5126         by WL).
5128         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5129         src/devices/grops/ps.cc (main): Implement it.
5130         * src/devices/grops/grops.man, NEWS: Document it.
5132 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5134         * INSTALL: Add info about selecting paper format.
5136 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5138         * src/roff/troff/input.cc (main): Fixing compiler warning.
5139         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5140         strings.h from the former to the latter.
5141         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5142         stuff from the former to the latter.
5144 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5146         Implementing two new requests .tm1 and .tmc: The former is similar
5147         to .tm but can output leading spaces; its syntax is similar to
5148         defining a string, i.e., a `"' can be used to mark the beginning of
5149         the string to be written to stderr: `.tm1 " test'.  The latter is
5150         similar to .tm1 but doesn't write out a final newline character.
5152         * src/roff/troff/input.cc (terminal1, terminal_continue,
5153         do_terminal): New functions.
5154         (init_input_requests): Use them.
5155         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5157 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5159         * tmac/groff_mdoc.samples.man: Small fixes.
5161 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5163         * tmac/groff_mdoc.man: Fixing typo.
5165 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5167         Implementing a .nop request which does nothing.
5169         * src/roff/troff/input.cc (nop_request): New function.
5170         (init_input_requests): Use it.
5171         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5173 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5175         * doc/groff.texinfo: Added some comments.
5177 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5179         * src/roff/troff/TODO: Updated.
5181 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5183         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5185 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5187         * font/devps/generate/Makefile (SHELL): Define explicitly to
5188         "/bin/sh", for non-Unix platforms.
5189         (extraclean): Use a more portable "" quoting instead of a
5190         backslash (which doesn't work on DOS/Windows).
5191         
5192         * font/devlj4/generate/Makefile (extraclean): Ditto.
5194         * font/devdvi/generate/Makefile (extraclean): Ditto.
5196 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5198         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5199         src/roff/troff/troff.man: Document Eli's latest changes.
5201 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5203         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5204         macro file names of the form NAME.tmac as well as tmac.NAME.
5206 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5208         * src/include/posix.h: Remove definition of FILENAME_MAX.
5210         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5211         `sys_fatal' and `stop' function().
5213         * test-groff: Updated.
5215 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5217         Added the new troff command .output <arg> to suppress output (while
5218         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5219         registers (for passing the output dimensions to the output device).
5221         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5222         parameter.
5223         * src/roff/troff/node.h, src/roff/troff/node.cc
5224         (troff_output_file::really_print_line,
5225         ascii_output_file::really_print_line,
5226         supress_output_file::really_print_line): Use `width' parameter.
5227         (troff_output_file::really_on, troff_output_file::really_off,
5228         output_file::on, output_file::off, real_output_file::on,
5229         real_output_file::off, real_output_file::really_on,
5230         real_output_file::really_off): New functions.
5231         (real_output_file:public output_file): New variable `output_on'.
5232         (real_output_file::begin_page, real_output_file::copy_file,
5233         real_output_file::transparent_char, real_output_file::print_line):
5234         Use it.
5235         (real_output_file::print_line): Use check_output_limits.
5236         * src/roff/troff/reg.h, src/roff/troff/request.h,
5237         src/roff/troff/input.cc (assign_registers): New function to remove
5238         two `goto's.
5239         (do_ps_file): Use it.
5240         (check_output_limits, reset_output_registers, output_request,
5241         init_output_requests): New functions.
5242         (init_input_requests): Updated.
5244         Added new grohtml2 device and html2 preprocessor (coding
5245         not yet finished) which will eventually replace grohtml.
5247         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5248         Updated.
5249         * src/include/htmlindicate.h, src/include/htmlindicate
5250         (html_begin_suppress, html_end_suppress): New functions.
5251         * src/preproc/tbl/main.cc: Use it.
5252         * src/roff/groff/groff.cc: Add support for html2 device (which will
5253         automatically invoke the html2 preprocessor).
5254         * src/roff/troff/input.cc (is_html2): New variable.
5255         * src/roff/troff/troff.h, src/roff/troff/env.h,
5256         src/roff/troff/env.cc (environment::add_html_tag): New function
5257         (uses `is_html2').
5258         (environment::do_break): Use it.
5259         * font/devhtml2/*: New files.
5260         * src/devices/grohtml2: New device.
5261         * src/preproc/html2: New preprocessor.
5262         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5264 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5266         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5268 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5270         * src/include/lib.h: Provide a fix for IRIX to not include
5271         groff-getopt.h.
5273 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5275         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5276         since some non-GNU sed programs can't handle null regexps.
5277         * configure, src/preproc/eqn/Makefile.sub,
5278         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5280         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5281         bug (string.h and strings.h are both needed according to latest
5282         POSIX standard).
5284         * MORE.STUFF: Added info about unroff and troffcvt.
5286 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5288         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5289         used before -ms.
5291         * tmac/tmac.man.old: Remove unused number register.
5293         * tmac.doc: Minor documentation fix.
5295 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5297         * src/roff/groff/pipeline.c (is_system_shell):
5298         Fix typo: "monocased_shell" no longer exists.
5300 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5302         Remove FILENAME_MAX limits.
5304         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5305         that the argument length is less than FILENAME_MAX.
5306         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5307         Use struct hack to allocate and free file name.
5308         (struct xtmpfile_list): fname is now part of the structure,
5309         not a pointer to another string.
5311 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5313         * src/include/posix.h: Add a default value for FILENAME_MAX.
5315 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5317         Add support for new BSD-style man pages (with ".Dd" instead of
5318         ".TH"), so that "groff -man" understands both styles, even
5319         when running "groff -man" on a host whose system man page
5320         macros don't support ".Dd".
5322         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5323         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5324         in case the system man macros don't define Dd or TH.
5326         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5327         * tmac/tmac.an: New one-line file.
5328         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5330 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5332         * src/roff/troff/troff.man: Fixing typos.
5334 Version 1.16.1 released
5335 =======================
5337 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5339         Preparing release 1.16.1.
5341         * REVISION: Revision number set to 1.
5342         * MORE.STUFF: Added info about port to DOS.
5343         * NEWS, win32-diffs: Updated.
5345         * src/include/nonposix.h: Remove first line -- this file is used
5346         in C also.
5348         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5349         link to it.
5351 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5353         * doc/texinfo.tex: Update to latest version.
5355 2000-06-28  Paul Eggert  <eggert@twinsun.com>
5357         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5358         commands that fail.  Don't assume that "export a=b" is valid shell
5359         syntax.  This is needed for Solaris 2.5.1.
5361         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5362         comment about missing Solaris headers.
5364         * PROBLEMS: Add section about problems with Sun Make and VPATH.
5366 2000-06-25  Werner LEMBERG  <wl@gnu.org>
5368         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5369         SET_BINARY().
5371         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5373         * win32-diffs: Updated.
5374         * README.WIN32: Added CRs to make all Windows editors happy.
5376         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5377         src/roff/groff/pipeline.c).
5379 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5381         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5382         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5384 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
5386         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5387         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5388         are binary files.
5389         (main): Support non-Posix systems with several different styles of
5390         slash characters in file names.
5392         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5393         (main) [SET_BINARY]: Switch stdin into binary mode.
5395         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5396         (main): Support file names with several possible slash-type
5397         characters, as given by DIR_SEPS[] in nonposix.h.
5398         (main) [__MSDOS__]: If renaming the temporary index file fails
5399         because it has more than one dot in its trunk, replace the dot
5400         with an underscore and try again.
5401         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
5402         Newline.
5403         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5405         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5406         (File::File): Open the input file in binary mode.  Strip CR
5407         characters from each CR-LF pair.
5408         (xbasename): Support file names with several possible slash-type
5409         characters, as given by DIR_SEPS[] in nonposix.h.
5411         * src/include/Makefile.sub (HDRS): Add nonposix.h.
5413         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5414         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5415         [!_POSIX_VERSION]: Define for traditional Unix systems.
5416         (real_output_file::real_output_file): Remove the MSVC-specific
5417         call to popen, use instead POPEN_WT, appropriately defined on
5418         nonposix.h.  #include nonposix.h.
5419         (real_output_file::~real_output_file): Remove the MSVC-specific
5420         call to pclose, a suitable macro is now defined on nonposix.h.
5421         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5422         and WEXITSTATUS instead of assuming traditional Unix
5423         interpretation of the status returned by pclose.
5425         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5426         call to popen, use POPEN_RT instead (appropriately defined on
5427         nonposix.h).  #include nonposix.h.
5428         (ps_bbox_request): Open the PostScript file in binary mode.
5429         Close the file after processing it.
5430         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5431         nonposix.h.
5433         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5434         A version of run_pipeline that doesn't use `fork'.
5435         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5436         (system_shell_name, system_shell_dash_c)
5437         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5438         the ugliness of testing DOS/Windows file names for equality, and
5439         support both stock shells and ports of Unix shells.
5441         * src/roff/groff/groff.cc: #include nonposix.h.
5442         (BSHELL): Definition moved to nonposix.h.
5443         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
5444         instead of a literal "-c".
5445         (xbasename): Support file names with several possible slash-type
5446         characters, as given by DIR_SEPS[] in nonposix.h.
5447         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5448         of literal strings.
5450         * src/preproc/soelim/soelim.cc: #include nonposix.h.
5451         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5453         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5454         pic_tab.h.
5456         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5458         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5459         eqn_tab.h.
5461         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5463         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5464         P_tmpdir is defined, use it instead of the literal "/tmp".
5465         (remove_tmp_files, add_tmp_file): New functions.
5466         (xtmpfile): Record temporary files and register an atexit function
5467         to delete them explicitly, instead of relying on the OS to do
5468         that, which doesn't work on non-Unix systems.
5470         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5471         (search_path::search_path): Use PATH_SEP instead of a literal
5472         colon.
5473         (search_path::command_line_dir): Ditto.
5474         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5475         to support non-Posix systems.
5477         * src/libs/libbib/search.cc: #include nonposix.h.
5478         (search_list::add_file): Open the file in binary mode.
5480         * src/libs/libbib/linear.cc: #include nonposix.h.
5481         (file_buffer::load): Remove \r characters preceding \n from the
5482         loaded buffer.
5484         * src/libs/libbib/index.cc: #include nonposix.h.
5485         (make_index_search_item): Open index_filename in O_BINARY mode.
5486         (index_search_item_iterator::get_tag): Ditto.  Remove \r
5487         characters before \n characters.
5488         (index_search_item::check_files): Open files in binary mode.
5489         (index_search_item::munge_filename): Support DOS-style file names
5490         with backslashes and drive letters, use IS_ABSOLUTE.
5492         * src/devices/grops/ps.cc: #include nonposix.h.
5493         (main) [SET_BINARY]: Switch stdout to binary mode.
5495         * src/devices/grolj4/lj4.cc: #include nonposix.h.
5496         (main) [SET_BINARY]: Switch stdout to binary mode.
5498         * src/devices/grolbp/lbp.cc: #include nonposix.h
5499         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5501         * src/devices/grodvi/dvi.cc: #include nonposix.h.
5502         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5503         nonposix.h).
5504         (main) [SET_BINARY]: Switch stdout to binary mode.
5505         [_MSC_VER]: Remove an explicit call to _setmode.
5507         * src/include/nonposix.h: New file.
5509         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5510         operation when building with DJGPP.
5511         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5512         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5513         ENVSETUP.
5515         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5516         MS-DOS.
5517         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5518         etc. can include a semi-colon on DOS/Windows.
5519         (depend.temp): Use depend1.temp instead of depend.temp1, to
5520         prevent files from overerwiting each other on 8+3 filesystems.
5522         * gendef.sh (t): Change definition to work with DOS/Windows.
5524         doc/groff.texinfo: Apart of some typo corrections, I also changed
5525         some index entris, to make them more non-ambiguous, and also put
5526         @ignore around some parts that are not yet written, to allow the
5527         Info output be readable.
5529 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
5531         Replaced specific checks for function declarations with a generic
5532         routine taken from GNU bfd.
5534         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5535         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5536         * configure.in: Use it.
5537         * src/devices/grolbp/lbp.cc, src/include/lib.h,
5538         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5539         src/roff/groff/groff.cc: Use it.
5540         * Makefile.in, configure: Updated.
5542 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
5544         * src/devides/grolbp/lbp.h: Removed unused variables.
5546 2000-05-31  Keith Thompson  <kst@sdsc.edu>
5548         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5549         strncasecmp().
5551 2000-05-31  Werner LEMBERG  <wl@gnu.org>
5553         * aclocal.m4 (GROFF_SRAND): New function to test the return value
5554         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5555         * configure.in: Use it.
5556         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5557         * configure, Makefile.in: Updated.
5559         * configure.in: Add test for strncasecmp().
5560         * src/include/lib.h: Use it.
5562 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
5564         * src/preproc/grn/Makefile.sub: Add MLIB.
5566 2000-05-29  Nix  <nix@esperi.demon.co.uk>
5568         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5570 2000-05-29  Werner LEMBERG  <wl@gnu.org>
5572         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5574         * PROBLEMS: Small update.
5576         * src/devices/grolbp/lbp.cc: Various small fixes.
5578 2000-05-28  Keith Thompson  <kst@sdsc.edu>
5580         * src/roff/nroff/nroff.sh: Fix main loop syntax.
5582         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5584 2000-05-25  Werner LEMBERG  <wl@gnu.org>
5586         * man/roff.man: Removed unused macro.
5588 2000-05-24  Werner LEMBERG  <wl@gnu.org>
5590         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
5591         This is needed e.g. if you do
5592         `make distclean; ./configure; make dist'.
5594 Version 1.16 released
5595 =====================
5597 2000-05-23  Werner LEMBERG  <wl@gnu.org>
5599         Adding font CWI (constant width italic) to devdvi.
5601         * font/devdvi/CWI: New file.
5602         * font/devdvi/generate/Makefile: Add generating rule.
5603         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5604         tmac/tmac.dvi: Use it.
5605         * NEWS: Announce it.
5607         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5608         * font/devlj4/generate/Makefile: Cosmetic changes only.
5610         * man/groff.man: Removed most of the redundant description of
5611         special characters (which is in groff_char.man).  Added font
5612         translation CB->CR for devdvi.  Other minor fixes.
5614         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5615         (registered) symbols.
5617 2000-05-22  Werner LEMBERG  <wl@gnu.org>
5619         * doc/Makefile: Added rule for creating info files.
5621         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
5622         AMS font metrics.
5623         * font/devdvi/generate/Makefile: Fixed dependencies.
5625         * font/devps/*: Regenerated.  Heavy changes for Bookman and
5626         NewCentury Schoolbook!
5627         * font/devps/generate/afmname: Will now run with GNU awk.
5628         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5629         * font/devps/generate/Makefile: Cosmetic changes only.
5631 2000-05-21  Werner LEMBERG  <wl@gnu.org>
5633         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5634         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
5635         `.SS' now produces a heading with a smaller size than `.SH'. 
5636         Completely formatted.
5637         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5639         * man/groff.man: Improved table appearance.  Use of `eo' request
5640         to reduce number of doubled backslashes in macro definitions.
5641         Replacing `\e' with `\(rs'.  Other minor fixes.
5643         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5644         to have correct line number.
5646         * INSTALL: Small improvement.
5648 2000-05-20  Bernd Warken  <bwarken@mayn.de>
5650         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5651         WL).
5653 2000-05-19  Bernd Warken  <bwarken@mayn.de>
5655         * man/groff.man: Complete update (with a lot of corrections by WL).
5657 2000-05-18  Werner LEMBERG  <wl@gnu.org>
5659         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5661         * font/*/*: Implement it.
5662         * man/groff_char.man, NEWS: Document it.
5664         * src/include/unix.h: Removed.  It isn't used.
5666         * doc/groff.texinfo: Slight improvements.
5668 2000-05-17  Werner LEMBERG  <wl@gnu.org>
5670         * README, win32-diffs: Small fixes and improvements.
5672 2000-05-16  Werner LEMBERG  <wl@gnu.org>
5674         * FDL: New file (the Free Documentation License version 1.1).
5676         * doc/groff.texinfo: Added many start-up values for gtroff.
5677         Some structural improvements of the source code.
5679 2000-05-15  Werner LEMBERG  <wl@gnu.org>
5681         * src/roff/troff/input.cc: Added small comment about troffrc-end.
5682         * src/roff/troff/troff.man: Added info about troffrc-end.
5684 2000-05-14  Werner LEMBERG  <wl@gnu.org>
5686         * Makefile.in (EXTRADIRS): Fix typos.
5687         (dist): Handle deletion of old .tar.gz file correctly.
5688         (DISTDIRS): Include all tty output devices.
5690         * doc/groff.texinfo: Adding more cross references; countless other
5691         fixes.
5693 2000-05-13  Werner LEMBERG  <wl@gnu.org>
5695         * MORE.STUFF: Added Robert Marks's utilities.
5697 2000-05-12  Werner LEMBERG  <wl@gnu.org>
5699         Added win32 port contributed by Blake McBride
5700         <blake@florida-software.com>.
5702         * README.WIN32, win32-diffs: New files.
5703         * NEWS: Updated.
5705         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5706         (tmove, tmove2): Added parentheses to avoid compiler warnings.
5707         (change): Removed unused variables.
5709         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5710         (savebounds): Changed return value from `int' to `void'.
5711         * src/preproc/grn/hdb.cc: Ditto.
5713         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5714         final backslash in comment to avoid compiler warning.
5716         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5718         * doc/groff.texinfo: More fixes.
5720 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5722         * tmac/tmac.doc: Documentation fix.
5724 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5726         * doc/groff.texinfo: Reading the source code shows up a lot of
5727         omissions and incorrect data...  More conversion to @Deffn macros.
5729 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5731         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5732         dependency.
5734         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5736 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5738         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5739         improvements.
5741         * doc/groff.texinfo: Extended history section.  More conversion to
5742         @Deffn macros.  More .tr documentation.
5744 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5746         * doc/groff.texinfo: Completed tab section.  Added info about
5747         fields.
5749 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5751         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5753 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5755         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5756         LaTeX 2e).
5757         * NEWS: Document it.
5759         * man/troff.man: Minor optical improvements.
5761 2000-05-03  Werner LEMBERG  <wl@gnu.org>
5763         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5765         * font/*/*: Implement it.
5766         * man/groff_char.man, NEWS: Document it.
5768 2000-05-02  Werner LEMBERG  <wl@gnu.org>
5770         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5771         expansion.
5772         * NEWS: Document the three new man pages.
5774         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5775         * configure: Updated.
5777         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5779 2000-05-01  Werner LEMBERG  <wl@gnu.org>
5781         Added grap support to grog.
5783         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5784         * src/roff/grog/grog.man: Document it.
5786         * doc/groff.texinfo, NEWS: Add info about grap support.
5788         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5789         (with slight fixes by me).
5791         * tmac/groff_tmac.man: New file documenting tmac mechanism.
5792         * tmac/Makefile.sub: Add groff_tmac.man.
5793         * man/roff.man: New file giving overview of roff system.
5794         * man/troff.man: A short reference of troff.
5795         * man/Makefile.sub: Add roff.man and troff.man.
5797 2000-04-30  Werner LEMBERG  <wl@gnu.org>
5799         Added grap support to groff.
5801         * src/roff/groff/groff.cc: Implement it.
5802         * src/roff/groff/groff.man: Document it.
5804         * src/devices/grotty/grotty.man: Add cp1047 device.
5805         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5806         Ditto.
5807         * src/roff/groff/groff.man: Ditto.
5808         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5809         * doc/groff.texinfo: Ditto.
5811         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5812         for cp1047.
5814 2000-04-29  Werner LEMBERG  <wl@gnu.org>
5816         * man/groff_char.man: Add `pc' glyph.
5817         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5818         * tmac/tmac.tty: Add `pc' glyph.
5819         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
5820         we use cp1047 output device.
5822         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5823         there are still hardcoded latin1->unicode values in utf8's font
5824         definition files.
5825         * configure: Updated.
5826         * NEWS: Minor clarification.  Updated.
5828         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
5829         Unix.
5831 2000-04-28  Werner LEMBERG  <wl@gnu.org>
5833         Adding EBCDIC code page 1047.
5835         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5836         font/devcp1047/DESC.proto: New files.
5838         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5839         either ascii/latin1 or cp1047.
5840         * Makefile.in: Use it.
5841         * configure: Updated.
5843         Replacing and/or adding `md' (mathdot) glyph with `pc'
5844         (periodcentered) in all text fonts.
5846         * font/*/*: Change it.
5848 2000-04-27  Werner LEMBERG  <wl@gnu.org>
5850         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5852         * configure.in: Add check for strings.h.
5853         * src/include/driver.h: Use HAVE_STRINGS_H.
5854         * src/devices/grolbp/lpb.cc: Remove string.h.
5856         * src/include/groff-getopt.h: New file.  It will be used instead of
5857         getopt.h (to be included in lib.h) to avoid endless problems with
5858         picky C++ compilers.
5859         * src/include/lib.h: Use groff-getopt.h.
5860         * src/include/Makefile.sub: Updated.
5862         * configure: Updated.
5863         * Makefile.in: Updated.
5865         * NEWS: Mention EBCDIC support.
5867 2000-04-26  Werner LEMBERG  <wl@gnu.org>
5869         * TODO: Some additions.
5871 2000-04-25  Werner LEMBERG  <wl@gnu.org>
5873         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5874         of mso request.
5876 2000-04-23  Werner LEMBERG  <wl@gnu.org>
5878         * src/roff/troff/troff.man: Minor fixes.
5880 2000-04-22  Werner LEMBERG  <wl@gnu.org>
5882         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5883         `.T' string register and the incompatible definition of the `.T'
5884         number register (compared to Unix troff).
5886         * man/groff_char.man: Add some missing characters.
5887         * font/devutf8/NOTES: Update.
5889 2000-04-21  Werner LEMBERG  <wl@gnu.org>
5891         * src/include/htmlindicate.h, src/include/lib.h,
5892         src/include/posix.h: Fix copyright.
5894         * src/include/Makefile.sub: Update.
5896 2000-04-20  Werner LEMBERG  <wl@gnu.org>
5898         * src/roff/troff/input.cc (input_char_description): Removing
5899         superfluous space char.
5901         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5903         * doc/groff.texinfo: Document EBCDIC.
5905 2000-04-19  Werner LEMBERG  <wl@gnu.org>
5907         Introducing `shc' as the glyph name for the soft hyphen character.
5909         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5910         font/devlatin1/R.proto: Use it.
5912         * NEWS: Updated.
5914 2000-04-18  Werner LEMBERG  <wl@gnu.org>
5916         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5917         dependency on ASCII order.
5919 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
5921         * src/libs/libgroff/illegal.c: Added EBCDIC table.
5922         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5924         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5925         to increase portability.
5927 2000-04-15  Werner LEMBERG  <wl@gnu.org>
5929         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5930         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5931         the generic `\n' if under OS/390 Unix.
5933         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5935         * configure: Regenerated.
5937 2000-04-14  Werner LEMBERG  <wl@gnu.org>
5939         * doc/groff.texinfo: More conversions to @Deffn.
5941 2000-04-12  Werner LEMBERG  <wl@gnu.org>
5943         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5944         with `:'.
5946         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5948 2000-04-10  Werner LEMBERG  <wl@gnu.org>
5950         * doc/groff.texinfo: More conversions to @Deffn.
5952 2000-04-08  Werner LEMBERG  <wl@gnu.org>
5954         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5955         Updated to latest version (glibc 2.1.3).
5957 2000-04-07  Werner LEMBERG  <wl@gnu.org>
5959         * doc/Makefile (clean): Include more index files.
5960         Add rule texinfo->dvi.
5962 2000-04-05  Werner LEMBERG  <wl@gnu.org>
5964         * doc/groff.texinfo: Added new index `op' for operators.  More
5965         info on end of sentence characters.  More use of @Deffn.
5967 2000-03-30  Werner LEMBERG  <wl@gnu.org>
5969         * */*.man: Adding a note that a whitespace can be inserted between
5970         a command line option and its parameter -- we are using GNU getopt.
5972         * src/roff/groff/groff.man: Add example of `-m mandoc'.
5974 2000-03-28  Werner LEMBERG  <wl@gnu.org>
5976         Correct anachronism of calling the man macro file with `-man'
5977         instead of `-m man' etc.
5979         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5980         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5981         load tmac.<package>.
5983         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
5985         * NEWS: Updated.
5987         * doc/groff.texinfo: Updated.
5989         * tmac/groff_man.man: Copyright added.
5991 2000-03-27  Werner LEMBERG  <wl@gnu.org>
5993         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5994         typeset the request resp. escape name with a tt font -- due to a
5995         bug in texinfo.tex it is necessary to use the `-e' switch with
5996         texi2dvi.
5998         Improving info about usage of groff units.
6000         Other minor fixes.
6002 2000-03-20  Werner LEMBERG  <wl@gnu.org>
6004         * doc/groff.texinfo: Added section about man macro package
6005         (I've basically taken groff_man.man).  Introducing new indices `ma'
6006         for macros/strings and `gl' for glyph names.  Other minor fixes.
6008         * tmac/groff_man.man: Fixed some typos.
6010 2000-03-19  Werner LEMBERG  <wl@gnu.org>
6012         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
6013         Other minor fixes.
6015         * doc/texinfo.tex: New file.
6017 2000-03-18  Werner LEMBERG  <wl@gnu.org>
6019         * doc/groff.texinfo: Improved section on number registers.  Other
6020         minor updates.
6022 2000-03-16  Werner LEMBERG  <wl@gnu.org>
6024         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
6025         synopsis.
6027         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
6028         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
6029         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
6030         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
6032         * src/preproc/grn/grn.man: Better synopsis; added copyright.
6034         * src/roff/grog/grog.man: Updated copyright date.
6036 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
6038         * configure.in: Added test for strdup.
6040         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
6041         is available.
6043         Replaced dynamic allocation of arrays `[...]' with `new' operator.
6045         Other minor fixes.
6047 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
6049         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
6051 2000-03-11  Werner LEMBERG  <wl@gnu.org>
6053         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
6054         compilers silent.
6055         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
6056         * src/include/lib.h: Remove some spaces.
6058 2000-03-10  Werner LEMBERG  <wl@gnu.org>
6060         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
6061         initializers from arguments (some compilers don't like this).
6063 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
6065         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
6066         used by pic and eqn to tell grohtml where the graphic regions start
6067         and end.
6068         * src/libs/libgroff/Makefile.sub: Use it.
6069         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
6070         graphic_start() and graphic_end() from htmlindicate.cc.
6072 2000-03-09  Werner LEMBERG  <wl@gnu.org>
6074         * tmac/tmac.safer: Will now work correctly in compatibility mode.
6075         * tmac/groff_man.man: More fixes.
6077 2000-03-08  Werner LEMBERG  <wl@gnu.org>
6079         * doc/Makefile: Added texput.log to the `clean' target.
6080         * doc/groff.texinfo: Added info about delimiters for escapes.
6082 2000-03-08  Bernd Warken  <bwarken@mayn.de>
6084         * src/preproc/pic/pic.man: Add info on conversion of pic images to
6085         other graphic formats.
6087 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
6089         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6090         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6091         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6092         files.
6094 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6096         * doc/groff.texinfo: Spelling fixes.
6098 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6100         * tmac/groff_man.man: Completely revised to cover everything in
6101         tmac.an.
6103         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6104         Other minor fixings.
6105         * src/roff/troff/env.cc (environment_copy): Improve error message and
6106         fix itoa->i_to_a.
6107         * src/roff/troff/TODO: Updated.
6109         * doc/Makefile: Bug fixes -- this is still provisional, though...
6111         * tmac/eqnrc: Small fixes.
6113 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6115         Adding a request `evc' to copy environments.
6117         * src/roff/troff/env.cc (environment::copy, environment_copy):
6118         Implement it.
6119         * src/roff/troff/env.h: Add prototype.
6121 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6123         Adding strsep() -- Solaris 8 doesn't have it.
6125         * configure.in: Test it.
6126         * src/devices/grolbp/lbp.cc: Add code.
6128 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6130         * src/roff/troff/div.cc (macro_diversion::output,
6131         top_level_diversion::output): Fixing an incompatibility with
6132         original troff: \x'0' updates the .a register also.  Thanks to
6133         <Andries.Brouwer@cwi.nl> for pointing this out.
6134         * doc/groff.texinfo: Document it.
6136         * Makefile.in: Create Makefile.dep if necessary before calling the
6137         submake process to avoid warning about nonexistent file.
6139         * NEWS, PROJECTS: Updated.
6141 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6143         * tmac/troffrc: Add tmac.lbp.
6145 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6147         * tmac/tmac.lbp: New file.
6148         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6149         command.
6151 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6153         * Makefile.in: Fixing $(subdir).
6155         * README, NEWS: Small fixes.
6157         * test-groff: Adding path to grolbp.
6159         * configure.in: The (new) file src/xditview/Imakefile.in will be
6160         also configured -- it is now possible to build gxditview in a
6161         directory different from $srcdir.
6163 2000-03-02  Blake McBride  <blake@florida-software.com>
6165         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6167         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6169 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6171         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6172         files.
6174 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6176         Adding GNU getopt to the groff distribution.
6178         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6179         New files.
6180         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6181         * aclocal.a4: Remove GROFF_GETOPT function.
6182         * configure.in, Makefile.in, PROBLEMS: Update.
6183         * src/include/lib.h: Replace getopt tests with getopt.h.
6184         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6186         * doc/groff.texinfo: Further checking/updating.  Adding more index
6187         entries.
6189         * man/groff_out.man: Fix nroff mode activation (for emacs).
6190         * man/groff_font.man: Add missing ligature.
6192 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6194         * doc/groff.texinfo: Further checking/updating.  Adding more index
6195         entries.
6197         * src/devices/grolbp/grolbp.man: Added a comment line at the
6198         beginning of the file (similar to shell scripts) which indicates
6199         that `tbl' should be used as a preprocessor.
6201 2000-02-27  Blake McBride  <blake@florida-software.com>
6203         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6204         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6206         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6207         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6208         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6209         src/include/lib.h, src/libs/libgroff/errarg.cc,
6210         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6211         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6212         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6213         src/roff/troff/div.cc, src/roff/troff/env.cc,
6214         src/roff/troff/input.cc, src/roff/troff/node.cc,
6215         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6216         if_to_a() to avoid name clashes.
6217         * src/include/posix.h: Don't use unistd.h.
6218         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6219         clause for integrating non-Unix xtmpfile() code.
6220         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6221         structure; use "rt" for popen() in pipe_source(); add getpid()
6222         dummy function.
6223         * src/roff/troff/node.cc: Use special versions of popen() in
6224         real_output_file() and pclose() in ~real_output_file().
6226 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6228         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6229         LBP-8 series laser printers).  This code has been contributed by
6230         Francisco Andrés Verdú <pandres@dragonet.es>.
6232         * src/devices/grolbp/*: The grolbp output device.
6233         * font/devlpb/*: The font description files.
6234         * Makefile.in: Add grolpb and devlbp subdirectories.
6236         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6237         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6238         typographic fixes.
6240         * doc/groff.texinfo: Further checking/updating.  Adding more index
6241         entries.
6243         * NEWS: Updated.
6245         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6247         * man/groff_font.man: Adding info about obsolete DESC keywords.
6248         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6249         keywords.
6251 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6253         * src/preproc/grn/grn.man: Added info about the gremlin file format
6254         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6256 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6258         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6259         friends to be non-integer.
6261         * src/preproc/grn/grn.man: Document it.
6263         * doc/groff.texinfo: Further checking/updating.  Adding more index
6264         entries.
6266 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6268         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6269         line thicknesses to be integer multiples of this value.
6271         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6272         corresponding code doesn't work (yet).
6274         * doc/groff.texinfo: Further checking/updating.  Adding more index
6275         entries.
6277 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6279         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6280         specify line thickness instead of base units.  The new default
6281         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6282         thick lines respectively.
6284         Removed unused variable `prevval'.
6286         * src/preproc/grn/grn.man: Updated.
6288 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6290         * src/preproc/grn/main.cc: Slight formatting.
6292         * src/roff/groff/groff.man: Formatting fix.
6293         * src/preproc/grn/grn.man: Ditto.
6295         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6297         * doc/groff.texinfo: Further checking/updating.
6299 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6301         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6303         * test-groff: Added grn subdir to path.
6305         * doc/groff.texinfo: Some restructing and other small improvements.
6307         * src/roff/groff/groff.cc (help): Fixed info string.
6309 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6311         * doc/meref.me: Fix description of .GS request.
6313         * src/roff/troff/troff.man: Fixing typo.
6315         Adding the `grn' preprocessor for gremlin graphic files.
6317         * src/preproc/grn/*: This is the Berkeley distribution written by
6318         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6319         Senderowicz and Werner Lemberg.
6321         * doc/grnexampl.{me,g}: A sample for grn.
6323         * Makefile.in: Added subdirectory entry for grn.
6325         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6326         called with the switch `-g'.
6328         * src/roff/groff/groff.man: Updated.
6330         * src/roff/grog/grog.{man,pl,sh}: Updated.
6332         * NEWS: Updated.
6334 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6336         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6337         parametrically polymorphic.
6339         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6340         and the alterations to xtmpfile.
6341         xtmpfile can be requested to return the filename created
6342         and asked not to unlink the temp file.  The default behaviour
6343         if parameters are absent is exactly the same as before.
6345 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6347         A new request `length' is available which returns the length of a
6348         string in a number register:
6350         * src/roff/troff/input.cc (length_macro): Implement it.
6351         * src/roff/troff/input.cc (init_input_requests): Register it.
6353 2000-02-11  Werner LEMBERG  <wl@gnu.org>
6355         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6356         of the `substring' request.
6358         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6359         request.
6361         * src/roff/troff/TODO, NEWS: Updated.
6363 2000-02-09  Werner LEMBERG  <wl@gnu.org>
6365         * src/roff/groff/groff.man: Added an example.
6367 2000-02-06  Werner LEMBERG  <wl@gnu.org>
6369         I've considerably modified the directory structure of the
6370         distribution to get a more vertical layout.  For example, the number
6371         of top level directories has been reduced from 42 to 6.
6373         As a consequence, many changes, especially to the makefiles, were
6374         necessary:
6376         * The makefile variables `top_builddir' and `top_srcdir' have been
6377         introduced.  Virtually all relative paths have been replaced with
6378         absolute ones using these two variables.
6380         * Dependencies (in the files `Makefile.dep') are no longer part of
6381         the distribution.  Instead, they are created during a `make install'
6382         in the build directory.
6384         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6385         make `top_srcdir' and `top_builddir' absolute.
6387         Some other changes:
6389         * Man pages now depend on the files `VERSION' and `REVISION'.
6391         * The added shell script `mkinstalldirs' will replace `mkdir' in
6392         almost all cases.
6394         * VERSION: Version number increased to 1.16.
6396 2000-02-04  Werner LEMBERG  <wl@gnu.org>
6398         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6400         * Makefile.in: Removed $(tmac_m) since it is no longer needed
6401         (after an update of the mm stuff).
6403         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6405 2000-02-03  Werner LEMBERG  <wl@gnu.org>
6407         The .psbb request will now also accept Mac PS images (i.e. using LF
6408         as the EOL character).
6410         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6411         (with slight modifications).
6412         * troff/input.cc (do_ps_file): Use it.
6414         * test-groff: Add grohtml and grolj4 output devices to PATH.
6416 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6418         * NEWS, MORE.STUFF: Updated.
6420 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
6422         Add the `srand' command to pic.
6424         * pic/lex.cc, pic/pic.y: Implement it.
6425         * pic/pic.man: Document it.
6426         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6428 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6430         Add a new request `.psbb'.  This does exactly what the external
6431         program psbb did.  It scans a PostScript image file for a
6432         %%BoundingBox comment and extracts the bounding box values (in
6433         PostScript units) which are then stored in the four new (read-only)
6434         number registers `llx', `lly', `urx', and `ury'.
6436         This will allow the usage of the .PSPIC macro without worrying
6437         about unsafe behaviour of groff, i.e., it will work without the
6438         `-U' switch of groff.
6440         * troff/input.cc: Implement it.
6441         * tmac/tmac.pspic: Use it.
6442         * troff/troff.man, grops/grops.man, NEWS: Document it.
6443         * psbb/*, Makefile.in: Remove it since it is no longer needed.
6445         This is bloody C code simply adapted from psbb.c!  Any improvements
6446         welcome.
6448 2000-01-29  Werner LEMBERG  <wl@gnu.org>
6450         * man/groff_font.man: Minor clarifications.
6452         * NEWS: Updated.
6454 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6456         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6458 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
6460         * man/groff_font.man: Brought up to date regarding tcommand
6461         extensions.
6462         * libgroff/font.cc: Handle everything after `--' as a comment
6463         in the font files.
6464         * devps/*: Added comment delimiter inside devps font files.
6466 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6468         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6469         \fC...\fP (which now works as expected).
6471         * troff/troff.man: Fix typo.
6473 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6475         Completed the pass_filenames implementation in troff.
6477         * libdriver/input.cc: Will read the new `F' tcommand.
6478         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6479         * troff/input.cc: Use it.
6481 2000-01-26  Werner LEMBERG  <wl@gnu.org>
6483         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
6484         font will now be updated even if an invalid font is selected.
6486 2000-01-24  Werner LEMBERG  <wl@gnu.org>
6488         * doc/homepage.ms: Updated for new tmac.arkup.
6490         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6492         * tmac/tmac.arkup: Cleanup.
6494         Added `\&' to .HTML macro to `leave vertical mode', so to say.
6496         Removed obsolete .LINK macro completely.
6498         The macros .URL, .FTP, and .MAILTO now accept a third argument which
6499         will be immediately appended to the second argument (to be used with
6500         punctuation, for example).
6502         Disabled .CDFTP macro temporarily for security reasons.
6504         * tmac/groff_markup.man: Complete revision for latest changes in
6505         tmac.arkup -- note that it does not yet format correctly with
6506         grohtml :-(
6508 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
6510         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6511         * devutf8/R.proto: Add mappings for wp, lh, rh.
6512         * devutf8/NOTES: Updated.
6514 2000-01-23  Werner LEMBERG  <wl@gnu.org>
6516         * doc/groff.texinfo: Updated version/copyright info.
6518 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
6520         Added support for two new directives in device descriptions:
6521         `pass_filenames' (to pass the input file name to the output device)
6522         and `use_charnames_in_special' (to support e.g. accented characters
6523         in the `X' request).
6525         * include/font.h, troff/charinfo.h: Declare it.
6527         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6529         * devhtml/DESC: Use it.
6531         * troff/input.cc: New function encoded_char.
6533         * troff/token.h: Add test for `specialness'.
6535 2000-01-21  Werner LEMBERG  <wl@gnu.org>
6537         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6538         mistake from the list of files to be installed.
6540 2000-01-18  Werner LEMBERG  <wl@gnu.org>
6542         * README: Added info how to apply patches.
6544 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
6546         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
6548 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6550         * troff/input.cc: Add support for troffrc-end.
6552         * tbl/main.cc: Altered to issue table-start and table-end special
6553         characters if using the html device.
6555         * devhtml/*: Modified font files to incorporate html encoding of
6556         characters.
6558         * tmac/groff_markup.man: New file documenting tmac.arkup.
6560         * tmac/troffrc-end: New file.  This is invoked after all user
6561         specified macros.  Currently used by the html device to include
6562         tmac.html.  Thus no need for users to specify -mhtml anymore.
6564         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6565         (MAN7): Add groff_markup.man.
6567         * tmac/tmac.an, tmac/tmac.html: Small html updates.
6569         * tmac/troffrc: tmac.arkup will now be called for the html device.
6571         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6572         extra device specific information about fonts.
6574         * doc/homepage.ms: New file.  It is an example how an HTML home page
6575         could look like with grohtml.
6577         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
6579 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
6581         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
6582         of Im, Re.
6584         * devutf8/NOTES: Updated.
6586 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
6588         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6589         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6590         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6591         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6592         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6593         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6594         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6595         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6596         warnings.
6598         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6600 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
6602         grolj4: Paper size will be searched case-insensitively.
6604         * include/lib.h: Add check for strcasecmp().
6605         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6606         * configure.in: Check for strcasecmp().
6608 2000-01-11  Werner LEMBERG  <wl@gnu.org>
6610         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6611         `REVISION'.
6613 2000-01-10  Werner LEMBERG  <wl@gnu.org>
6615         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6616         revision scheme.
6618         Add a new read-only register, `.Y', which contains the groff
6619         revision.
6621         * troff/input.cc (init_input_requests): Define it.
6622         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6623         * doc/groff.texinfo, troff/troff.man: Document it.
6625         * libgroff/Makefile.sub (version.cc): Add definition of
6626         `Version_string[]', consisting of `<major>.<minor>.<revision>'
6627         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6628         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6629         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6630         troff/input.cc, pfbtops/pfbtops.c: Use it.
6632 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
6634         Add a revision scheme to the groff package.
6636         * REVISION: New file.
6637         * libgroff/Makefile.sub (version.cc): Use it to define
6638         `revision_string[]'.
6639         * grops/psrm.cc: Use revision_string (converted to an unsigned
6640         integer) in constructor of resource_manager.
6642 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
6644         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6645         files.
6646         * Makefile.in (DEVDIRS): Add devutf8.
6647         * grotty/tty.cc: Include device.h.
6648         (glyph): Change type of `code' to `unsigned int'.
6649         (tty_printer): New field is_utf8.  Constructor takes device argument.
6650         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6651         (tty_printer::add_char): Change type of first arg to `unsigned int'.
6652         (tty_printer::put_char): New function.
6653         (tty_printer::end_page): Use put_char() instead of ::putchar().
6654         (make_printer): Pass device to tty_printer constructor.
6655         * nroff.sh: Determine default device by calling 'locale'.  As a
6656         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6657         Recognize UTF-8 locales.
6658         * tmac/eqnrc: Recognize utf8 like latin1.
6659         * tmac/troffrc: Device utf8 needs tmac.tty.
6661 2000-01-07  Werner LEMBERG  <wl@gnu.org>
6663         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6665 2000-01-07  Paul Eggert  <eggert@twinsun.com>
6667         Add a new predefined writeable number register, `year',
6668         which contains the current year.
6670         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6671         * tmac/tmac.s: Use it.
6672         * troff/input.cc (init_registers): Initialize it.
6674 2000-01-06  Werner LEMBERG  <wl@gnu.org>
6676         * PROBLEMS: Fixed typo.
6678 2000-01-04  Paul Eggert  <eggert@twinsun.com>
6680         * PROBLEMS: Add Y2k advice for the yr number register.
6682 2000-01-03  Paul Eggert  <eggert@twinsun.com>
6684         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6686 2000-01-02  Werner LEMBERG  <wl@gnu.org>
6688         * tmac/tmac.arkup: Slight modification of macros to provide better
6689         appearance for non-HTML formats.
6691 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
6693         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6694         does not automatically translate to malloc(n) on all OSes
6695         (e.g., SunOS) so do it explicitly.  Also, check the returned
6696         value.
6698 2000-01-01  Werner LEMBERG  <wl@gnu.org>
6700         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
6702         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6703         expects this variable
6705 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
6707         * doc/Makefile: Added instructions to create HTML and text
6708         versions of some files.
6710 1999-12-31  Werner LEMBERG  <wl@gnu.org>
6712         * Updated INSTALL.gen.
6714         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6715         better resp. correctly with non-HTML devices.
6717 Version 1.15 released
6718 =====================
6720 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6722         * NEWS, VERSION: Changed to 1.15
6724 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6726         * nroff/nroff.man: -S is safer, not safe.
6728         * groff/groff.cc (main): Use `safer', not `safe', in variable
6729         names.  This does not change the behavior.
6731         * troff/input.cc (main): Likewise.
6733         * nroff/nroff.sh: Likewise.
6735         * troff/input.cc (prepend_string): New function.
6736         (main): Prepend -msafer, so that we check macro libraries for
6737         safety.
6739         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6741 Version 1.14 released
6742 =====================
6744 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6746         * NEWS, VERSION: Changed to 1.14.
6748 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6750         * refer/refer.cc: Fixing the last fix.
6752 Version 1.13 released
6753 =====================
6755 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6757         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6758         number disappear.
6760         * NEWS: Updated.
6762         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6764         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6765         document conventions, the version number must be a real.
6767 Version 1.12.1 released
6768 =======================
6770 1999-12-22  Werner LEMBERG  <wl@gnu.org>
6772         * VERSION: Changed to 1.12.1.
6774 1999-12-22  Alan Rooks  <arooks@istar.ca>
6776         * refer/refer.cc (do_file): Slight modification to satisfy the
6777         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6778         UnixWare 7.1.
6780 1999-12-20  Werner LEMBERG  <wl@gnu.org>
6782         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6783         notices.
6785         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6786         list of unsafe requests.
6788         * pic/pic.man: Fixed a typo.
6790         * man/groff_out.man: Fixed a typo.
6792 1999-12-18  Werner LEMBERG  <wl@gnu.org>
6794         * Makefile.in: Doc fixes.
6796 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
6798         * groff/groff.cc: Missing `U' option added to getopt().
6800         * troff/troff.man: Missing `U' option added to synopsis.
6802 Version 1.12 released
6803 =====================
6805 1999-12-14  Werner LEMBERG  <wl@gnu.org>
6807         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6808         to the synopsis.
6810         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6811         with the more appropriate terms `safer' and `unsafe'.
6813         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6814         sys_nerr and sys_errlist[].
6816         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6818         * pic/pic.y, pic/pic.cc: Added check for fmod().
6820 1999-12-13  Werner LEMBERG  <wl@gnu.org>
6822         * VERSION: Changed to 1.12.
6824         Here some patches from various sources; most of them taken from
6825         the Debian distribution.
6827         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6828         tmac/Makefile.sub: New files copied directly from the NetBSD
6829         distribution.  Probably, some additional adaptation later on is
6830         necessary...
6832         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6833         of unsafe requests.
6835         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6836         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6837         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
6838         (`-S') is now the default.
6840         * README, NEWS: Updated.
6842 1999-12-09  Werner LEMBERG  <wl@gnu.org>
6844         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6846         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6848 1999-12-06  Werner LEMBERG  <wl@gnu.org>
6850         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6851         grief than relief today.  Additionally, it is against the GNU
6852         coding standards.
6854         * configure: Recreated.
6856 1999-12-05  Werner LEMBERG  <wl@gnu.org>
6858         * configure.in: Added GROFF_LIBM.
6860         * configure: Recreated.
6862         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6863         necessary.
6865         * Makefile.in: Added definition of $(LIBM).
6867         * Makefile.comm (LIBM): Removed.
6869         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6871 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
6873         * doc/Makefile: Added rule for generation pic.html.
6875         (clean): Files produced by grohtml will be removed also.
6877         * doc/pic.ms: Small fix.
6879         * tmac/tmac.html: Fixed suppression of headers.
6881 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
6883         * tmac/tmac.html: Fixing horizontal arrows.
6885         Turning off hyphenation.
6887         * tmac/tmac.an: Improved support for grohtml; better indentation,
6888         no footers/headers.
6890 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
6892         * tmac/tmac.arkup: Added CDFTP macro
6894         * tmac/tmac.html: All headers are turned off for ms, me, and mm
6895         macros.
6897         * tmac/troffrc: Some additions for HTML stuff.
6899 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
6901         * tmac/tmac.html: Small changes.
6903 1999-09-26  Werner LEMBERG  <wl@gnu.org>
6905         * doc/groff.texinfo: Minor fixes.
6907 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
6909         * devhtml/TR: Changed spacewidth to 3.
6911         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6913         * tmac/tmac.html: Moved markup macros to tmap.arkup.
6915         * tmac/tmac.arkup: New file.
6917         * grohtml/ChangeLog: New file.
6919 1999-09-16  Werner LEMBERG  <wl@gnu.org>
6921         * doc/groff.texinfo (Common Features): Added Copying chapter.
6922         Changed format to @smallbook.
6924 1999-09-15  Werner LEMBERG  <wl@gnu.org>
6926         * NEWS: Added info about groff.texinfo.
6928         * doc/groff.texinfo: Will now compile (using texi2dvi) without
6929         warning messages.
6931 1999-09-14  Werner LEMBERG  <wl@gnu.org>
6933         * groff/groff.man: More updates.
6935 1999-09-13  Werner LEMBERG  <wl@gnu.org>
6937         * doc/groff.texinfo: New file.  This manual is still very
6938         rudimentary.  It has been originally contributed by Trent
6939         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6940         additions by me.
6942         * INSTALL: Added information about the `doc' subdir
6944         * troff/troff.man: Minor fixes.
6946         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6947         reordered options.
6949         * troff/input.cc (usage): Added missing `-ffam' to usage message.
6951         * Makefile.in (dist): groff-$(version).tar.gz must be removed
6952         also, otherwise it is included itself in another call of `make
6953         dist'.
6955         * groff/groff.cc (synopsis): Removed superfluous space.
6957         * PROJECTS, PROBLEMS, NEWS: Updated.
6959         * VERSION: Updated to 1.12beta.
6961         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
6963         * README: Updated: Included documentation about CVS repository,
6964         mailing lists, and daily snapshots.
6966         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6968 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6970         * tmac/tmac.an: If the tag didn't fit into the space that the
6971         macro `TP' specifies, the rest of the tag went into the space for
6972         the next line.
6974 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
6976         * grolj4/lj4.cc: Added duplex printing (option `-d').
6978         * grolj4/grolj4.man: Document duplex printing.
6980 1999-09-12  Werner LEMBERG  <wl@gnu.org>
6982         * doc/Makefile (pic.ps): Fixed rule which caused problems with
6983         non-GNUish sed programs.
6985         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6986         definition.
6988         * configure.in (LIBS): Added `-lc'
6990         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6992         * pic/tex.cc (solid_arc): Casting M_PI to double.
6994         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6996         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6997         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6998         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
7000         * groff/groff_man.man: New file.  This manual page was originally
7001         written for the Debian GNU/Linux system by Susan G. Kleinmann
7002         <sgk@debian.org>.
7004         * eqn/list.cc (list_box::compute_metrics,
7005         list_box::compute_sublist_width): Removed variable declaration to
7006         avoid shadowing warnings.
7008         * grops/psrm.cc (resource_manager::process_file): Ditto.
7010         * tfmtodit/tfmtodit.cc (main): Ditto.
7012         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
7013         to avoid shadowing warnings.
7015         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
7016         shadowing loop variable.
7018         * groff/groff.man, troff/troff.man: Added doc about grohtml.
7020 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
7022         New grohtml frontend to convert groff input to html.
7024         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
7026         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
7028         * tmac/eqnrc: Added html device.
7030         * tmac/tmac.html: New file.
7032         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
7033         (troff_output::start_picture, troff_output::finish_picture),
7034         tbl/main.cc (process_input_file):
7035         Surrounded output with `graphics_start' and `graphics_end' so that
7036         the html driver can identify non-text portions.
7038         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
7039         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
7040         grotty/tty.ps (tty_printer::set_char): Additional parameter
7041         `name'.
7043         * include/printer.h: Class printer: New function
7044         set_char_and_width; new variables (is_char_named, is_named_set,
7045         named_command, named_char_s, named_char_n) to hold information
7046         about named characters -- needed by the html driver.
7048         * libdriver/printer.cc (printer::set_ascii_char,
7049         printer::set_special_char): Use set_char_and_width.
7051         * devhtml/*: New device files for html driver.
7053         * grohtml/*: New driver grohtml.
7055 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
7057         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
7058         default strings.
7060 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
7062         * libgroff/string.cc (search): Small fix to test against NULL
7063         pointer.
7065 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
7067         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
7068         \b'abc') were stacked in reverse order when processed in a
7069         diversion.
7071         * troff/node.h: Added `*last' to struct `node' to make the above
7072         fix work.
7074         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
7075         The default scale for the 'f' and 't' graphics functions were 'm'
7076         rather than 'u' (i.e., no scaling).
7078 1999-09-11  Peter Miller  <peterm@jna.com.au>
7080         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
7081         do_file), soelim/soelim.man: Added `-I file' option to soelim,
7082         defining include paths.
7084         * soelim/soelim.cc (include_path_append): New function.
7086 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
7088         * tbl/main.cc (process_options): Unix (at least Documenter's
7089         Workbench) tbl allows arbitrary non-alpha characters between
7090         options.
7092 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7094         Y2k fixes.  Don't assume that the current year precedes 2000.
7096         * doc/meref.me: Add \n(y2, \n(y4.
7098         * tmac/doc-common (Yr): New number register.
7099         (Dd): Don't assume current year precedes 2000.
7101         * tmac/tmac.e (td): Likewise.
7102         (y2, y4): New number registers.
7104         * pic/pic.man: Update reference for pic paper to May, 1991
7105         version.
7107 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7109         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7110         Removed quotation marks which prevented correct expansion of
7111         $(tmac_wrap).
7113         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7115 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7117         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7118         `config.cache'.
7120         * Removed configure.old.
7122 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7124         * VERSION: Updated to 1.11.1
7126 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7128         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7130         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7131         added quotations around $(tmac_wrap) to avoid syntax error if
7132         variable is empty.
7134         * configure: Newly generated using autoconf 2.13.
7136         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7138 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7140         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7141         doc/Makefile. doc/pic.ms, groff/groff.man:
7142         Prepare for 1.11 release.  No code changes.
7143         Documentation for pic added (doc/pic.ms).
7145 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7147         * Version 1.10 released.
7149 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7151         * afmtodit/afmtodit.pl: Avoid comment on first line.
7153 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7155         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7156         * configure.in: Call it.
7158         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7159         (distfiles): Doesn't depend on config.log or config.cache.
7161 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7163         * grog/grog.sh: Use print "" rather than print in END rule.
7165 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7167         * tbl/main.cc (process_data): Don't give error for excess data
7168         entries that are comments.
7170 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7172         * tbl/main.cc (process_data): Fix case where new for-scope rules
7173         silently change meaning of code.
7175 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7177         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7178         of non-zero hyphenation codes.
7180 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7182         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7184 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7186         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7188 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7190         * tmac/tmac.andoc: Make it work in compatibility mode.
7192         * refer/token.h (token_info::is_range_sep): New function.
7193         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7194         * refer/ref.cc (reference::output): More sophisticated check for
7195         multiple pages.
7197         * devps/prologue.ps (MANUAL): New procedure.
7198         * grops/ps.cc (main): New -m option.
7199         (usage): Include -m.
7200         (ps_printer::~ps_printer): Implement -m.
7202         * aclocal.m4 (GROFF_G): New macro.
7203         * configure.in: Call it.
7204         * Makefile.in (g): Provided by configure.
7206         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7208         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7209         translations.
7211         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7212         (tmac_m, tmac_s): Deleted.
7213         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7214         tmac_s_prefix): New variables.
7215         (MDEFINES): Change accordingly.
7216         * Makefile.comm (.man.n): Use new TMAC_* variables.
7217         * configure.in (GROFF_TMAC): Call.
7218         * aclocal.m4 (GROFF_TMAC): Define.
7219         * tmac/Makefile.sub (stamp_wrap): New target.
7220         (install_data, uninstall_sub): Handle macro wrapping.
7222 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7224         * tbl/main.cc (main): Ignore -T option.
7226 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7228         * devlj4/generate/special.map: Add definition of \(nb.
7230         * tmac/tmac.dvi: Add definition of \(nb.
7232         * troff/dictionary.c (dictionary::dictionary): association::v gets
7233         initialized by association::association.
7235         * tmac/Makefile.sub: Avoid using temporary files when installing.
7237         * troff/env.cc (environment::set_font): Make bad font number a
7238         warning.
7240         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7242         * Makefile.in (datadir): Use share rather than lib.
7244         * groff/groff.cc (basename): Rename to xbasename.
7246 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7248         * Makefile (CCLIBS): Don't use.
7249         * Makefile.ccpg: Likewise.
7251         * acgroff.m4: Rename to...
7252         * aclocal.m4: Modify extensively for autoconf 2.
7253         * configure.in: Likewise.
7254         * Makefile.in: Likewise.
7256         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7257         defined.
7258         (xstrsignal): Check for definition of NSIG. Conditionalize
7259         on SYS_SIGLIST_DECLARED.  Make return type const.
7261 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7263         * troff/input.cc (interpolate_macro): Rephrase missing space
7264         warning.
7266 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7268         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7269         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7270         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7271         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7272         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7273         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7274         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7275         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7276         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7277         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7278         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7279         Fix 'for' scoping.
7281 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7283         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7284         string_iterator.
7285         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7286         file.
7287         (macro_iterator::macro_iterator): Add additional argument.
7289 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7291         * troff/div.cc (vertical_size::vertical_size): In place of integer
7292         specifying line spacing use cunits specifying post vertical
7293         space.
7294         (macro_diversion::output, top_level_diversion::output): Likewise.
7295         * troff/div.h: Change declarations accordingly.
7296         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7297         field.
7298         (pending_output_line::pending_output_line,
7299         pending_output_line::output, environment::output,
7300         environment::output_line, environment::output_title,
7301         environment::hyphenate_line):  In place of
7302         integer specifying line spacing use cunits specifying post vertical
7303         space.
7304         (environment::environment): Add post_vertical_spacing and
7305         prev_post_vertical_spacing arguments.
7306         (environment::get_post_vertical_spacing): New function.
7307         (environment::total_post_vertical_spacing): New function.
7308         (environment::post_vertical_spacing): New function.
7309         (init_env_requests): Initialize pvs request and .pvs register.
7310         * troff/env.h: Change declarations.
7312 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7314         * tmac/tmac.pspic: Immediately remove the temporary file.
7316 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7318         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7319         height is specified.
7321 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7323         * tbl/table.c (struct vertical rule, class table_entry): Use int
7324         not short for start_row and end_row.
7326 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7328         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7329         functions.
7330         (diverted_space_node::reread, process_input_stack): Call
7331         trapping_blank_line() rather than blank_line().
7332         (init_input_requests): Bind "blm" to blank_line_macro().
7334         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7336 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7338         * troff/env.cc (environment::possibly_break_line): Require that
7339         width total excluding width of final space node be greater than
7340         the target text length.
7342 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7344         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7346 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7348         * troff/node.cc (charinfo_node): New class.
7349         (glyph_node, composite_node): Derive from charinfo_node.  Change
7350         member functions accordingly.
7352 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
7354         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7356 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
7358         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7360         * devps/generate/textmap (notsubset): Add.
7362         * tmac/tmac.a4: New file.
7364 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
7366         * pic/main.cc (had_parse_error): New variable.
7367         (do_picture, do_whole_file): Set had_parse_error if yyparse()
7368         returns non-zero.
7369         (main): Return 1 if had_parse_error is true.
7371 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
7373         * grolj4/lj4.cc (main): Avoid use of strtoul.
7375 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
7377         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7378         iso_8859_1 or $LESSCHARSET is latin1.
7380 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
7382         * hpftodit: New directory.
7383         * Makefile.in (CCPROGDIRS): Add hpftodit.
7384         * devlj4/generate: New directory.
7386 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
7388         * configure.in: Don't use AC_VFORK.
7389         * groff/pipeline.c (run_pipeline): Use fork() always.
7391 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
7393         * grops/ps.cc (main): Use %1 not %s in error message for -w.
7395         * Makefile.in (CCPROGDIRS): Add grolj4.
7396         (DEVDIRS): Add devlj4.
7397         * grolj4, devlj4: New directories.
7398         * tmac/troffrc: Handle lj4.
7399         * tmac/tmac.lj4: New file.
7401 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
7403         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7405 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
7407         * troff/input.cc (do_if_request): At end of second string, switch
7408         environments before getting next token.
7410 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
7412         * devps/psstrip.sed: Split rule that strips whitespace on either
7413         side of delimiters.
7415 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
7417         * troff/node.h (font_family::make_definition): Add return value to
7418         declaration.  * troff/symbol.h (symbol::operator==,
7419         symbol::operator!=): Likewise.
7421 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
7423         * groff/groff.cc (main, help, synopsis): Handle -S.
7424         (possible_command::insert_arg): New function.
7426         * tmac/tmac.safer: New file.
7427         * tmac/msafer.man: New file.
7428         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7430 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
7432         * pic/pic.h, pic/main.cc (safer_flag): New variable.
7433         * pic/pic.y (placeless_element): Avoid unsafe operations if
7434         `safer_flag' is set.
7435         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7437 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
7439         * eqn/lex.cc (get_token): Put call to add_context() in block to
7440         work around Sun C++ 4.0 bug.
7442         * include/stringclass.h (operator +): Use ?: instead of `if' to
7443         work around Sun C++ 4.0 bug.
7445 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
7447         * tbl/main.cc (process_format): Accept - as a synonym for the _
7448         key letter.
7450         * libbib/index.cc (minus_one): Don't declare as const.
7452 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
7454         * troff/input.cc (get_char_for_escape_name): Push back a newline.
7456 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
7458         * troff/input.cc (write_macro_request): New function.
7459         (init_input_requests): Bind write_macro_request to writem.
7461 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
7463         * tmac/tmac.s (@EN): Turn filling back on even if there was no
7464         equation.
7466         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7468         * tmac/tmac.s (@TS): Renamed from TS.
7469         (TS): Call LP then TS again.
7470         (cov*ab-init): Alias @TS to TS.
7472         * tmac/tmac.s: Allow QP or RS to initialize.
7474         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
7475         Move initializations of PS and LL here.
7476         (par@init): Don't initialize HY.  Avoid changing environment 0.
7477         (par*env-init): Don't all par@reset.
7479 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
7481         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7483 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
7485         * Makefile.in (MDEFINES): Add LDFLAGS.
7486         (LDFLAGS): Add definition line.
7488 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
7490         * troff/input.cc (get_optional_char): Split off error check into...
7491         (check_missing_character): New function.
7492         * troff/token.h: Declare it.
7493         * troff/env.cc (margin_character): Don't call get_optional_char.
7494         Only call tok.next() after making the node.
7496         * include/lib.h (getopt): Make 2nd argument char *const *.
7498 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
7500         * nroff/conftest.sh: Deleted.
7502 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
7504         * pic/make-dos-dist: Deleted.
7506 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
7508         * devps/psstrip.sed: Strip comments before stripping trailing
7509         white space.
7511 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
7513         * Version 1.09 released.
7515 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
7517         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7519 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
7521         * libgroff/font.cc (font::load_desc): Fix typo in error message.
7523 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
7525         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7526         about returning without a value.
7528         * troff/charinfo.h (charinfo::get_special_translation): Cast
7529         TRANSLATE_NONE to int.
7531         * refer/token.cc (lookup_token, store_token): Remove bogus loop
7532         test.  Fix test so that it works with n unsigned.
7534         * pic/pic.y (defaults_table): Fully bracket initializer.
7535         * pic/lex.cc (lookup_keyword): Likewise.
7536         * eqn/lex.cc (token_table, def_table): Likewise.
7537         * eqn/box.cc (param_table): Likewise.
7538         * troff/input.cc (warning_table): Likewise.
7539         * libgroff/font.cc (table): Likewise.
7540         * grops/ps.cc (ps_printer::special): Likewise.
7541         * grops/psrm.cc (resource_manager::process_file): Likewise.
7542         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7543         * refer/command.cc (command_table): Likewise.
7544         * addftinfo/addftinfo.cc (param_table): Likewise.
7546         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7547         about temp's being unused.
7548         (unused): New function.
7550         * groff/pipeline.cc: Declare c_fatal.
7552         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7553         uchar.
7555         * libbib/index.cc (index_search_item::load): Prevent compiler
7556         warnings about fd_closer's being unused.
7557         (unused): New function.
7559 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
7561         * troff/input.cc (copy_mode_error): Make `prefix' static.
7562         Fix typo.
7564         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7565         defined.
7566         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7567         HAVE_CC_OSFCN_H and modify accordingly.
7569         * troff/input.cc (init_charset_table): radicalex overlaps
7570         horizontally.
7572         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7573         udodo!hans@relay.NL.net).
7574         * groff/configure.in: Call it.
7576         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7577         * groff/configure.in: Call it.
7578         * include/lib.h: Conditionalize declaration of pclose.
7580         * troff/div.cc (last_page_number): New global variable.
7581         (top_level_diversion::begin_page): Exit if we just printed the
7582         last page.
7583         * troff/div.h (last_page_number): Declare it.
7584         * troff/input.cc (parse_output_page_list): Set last_page_number.
7586         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7587         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7588         tmac/tmac.X: Likewise.
7589         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7590         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7592 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
7594         * tmac/doc-ditroff (hK): Remove groff specific code which
7595         prevented page-breaks between separate manual entries.  If this is
7596         the first page, don't set the page number to 1.
7598         * acgroff.m4 (GROFF_POSIX): New macro.
7599         * configure.in: Use it.
7601         * troff/node.cc (class real_output_file,
7602         real_output_file::real_output_file,
7603         real_output_file::~real_output_file): Conditionalize use of
7604         popen/pclose on POPEN_MISSING.
7605         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7606         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7607         (pipe_source): Similarily.
7609         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7611         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7612         presence of declarations by trying to compile example with
7613         conflicting declarations.  (gcc only gives a warning for missing
7614         declarations.)
7616 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
7618         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7619         (from Ulrich Lauther).
7621 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
7623         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7625 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
7627         * indxbib/indxbib.cc (write_hash_table): Add code for case where
7628         pointers and ints have different sizes.
7630 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
7632         * tmac/tmac.s (par*env-init): Call par@reset.
7634 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
7636         * tmac/tmac.s (@IP): Switch to a new environment when diverting
7637         tag.
7638         (par*push-tag-env, par*pop-tag-env): New macros.
7640 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
7642         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7643         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
7645         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7646         comment.  Include <time.h>.
7648 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
7650         * grops/ps.cc (is_small_h, is_small_v): Deleted.
7651         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7652         lines.
7654 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
7656         * troff/input.cc (read_request): Only print a prompt if reading
7657         from the terminal.  Also clearerr on EOF if reading from the
7658         terminal.  Declare isatty.
7660 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
7662         * refer/label.y: Rename map_t to map_func and extractor_t to
7663         extractor_func.
7665 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
7667         * include/assert.h: Don't use volatile.
7668         * libgroff/assert.cc: Likewise.
7670 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
7672         * troff/input.cc (abort_request): Look at character in tok before
7673         calling get_copy().
7675 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
7677         * troff/troff.h (NO_RETURN): Deleted.
7678         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
7679         * troff/input.cc (exit_troff): Likewise
7681         * Makefile.in: Remove `Making ...' messages since GNU make now
7682         gives these. 
7684         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7686 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
7688         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7689         to constant 1 inch.
7691 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
7693         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7695 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
7697         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7698         MARK_REG if there was no left delimiter.
7700 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
7702         * pic/troff.cc (troff_output::text): Set line thickness to
7703         relative before outputting text.
7705         * tmac/tmac.e (@k): Don't zero ?T.
7706         ((z): Likewise.
7708 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
7710         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7712 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
7714         * troff/input.cc (decode_args): Warn about unquoted tabs (from
7715         Paul Eggert).
7717 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7719         * troff/input.cc (ignoring): New variable.
7720         (ignore): Set ignoring during call to do_define_macro.
7721         (do_define_macro): Clear ignoring before interpolating terminating
7722         macro.
7723         (copy_mode_error): New function.
7724         (get_char_for_escape_name, read_long_escape_name,
7725         interpolate_arg): Use copy_mode_error.
7726         (warning_table): Add WARN_IG.
7727         * troff/troff.h (WARN_IG): Declare.
7728         (WARN_TOTAL): Change accordingly.
7730         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7731         * groff/groff.cc (strsignal): Delete declaration.
7733 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7735         * troff/div.cc (page_offset): Use 'm' as default scaling.
7737 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7739         * nroff/nroff.sh: Ignore -u.
7741 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7743         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7745 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7747         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7748         drawing box.
7749         (B2): With -Tascii, leave additional vertical space before
7750         and after. Ensure that the left and right indent is restored to
7751         what it was even if the point size changes.  Don't call
7752         par@finish. Change the indent, line length and title length
7753         directly.  With -Tascii, make the width of the box 1n less.
7754         (B1): Remember 1n at the current point size.  Don't call
7755         par@reset.  Change the indent, line length and title length
7756         directly.  Ensure that the temporary indent is preserved.
7757         (par*box-mark-top): Turn off no spacing mode.
7759 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7761         * Makefile.in (dist): Use .gz suffix.
7763 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
7765         * troff/input.cc (main): Add return 0.
7766         * pic/main.cc (main): Use return instead of exit.
7767         * tbl/main.cc (main): Likewise.
7768         * eqn/main.cc (main): Likewise.
7769         * grops/ps.cc (main): Likewise.
7770         * grotty/tty.cc (main): Likewise.
7771         * groff/groff.cc (main): Likewise.
7772         * grodvi/dvi.cc (main): Likewise.
7773         * refer/refer.cc (main): Likewise.
7774         * indxbib/indxbib.cc (main): Likewise.
7775         * lkbib/lkbib.cc (main): Likewise.
7776         * soelim/soelim.cc (main): Likewise.
7777         * addftinfo/addftinfo.cc (main): Likewise.
7778         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7779         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7781         * troff/token.h (process_input_stack): Don't declare as static.
7782         * troff/input.cc: Likewise.
7784         * troff/node.c (invalidate_fontno): Make it a static member of
7785         class font_family.  Change callers.
7786         * troff/node.c: Change declaration.
7788         * tbl/main.cc (struct input_entry_format): Add explicit public
7789         specifier.
7790         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7791         struct double_hline_stuff): Likewise.
7792         * tbl/table.h (struct entry_format): Likewise.
7793         * pic/object.h (struct saved_state): Likewise.
7795         * include/stringclass.h: Add forward declarations of friend
7796         functions that are later declared as inline.  Don't include inline
7797         specifier in friend declaration.
7799         * libgroff/lib.h: Declare popen and pclose.
7800         * acgroff.m4 (GROFF_POPEN): New macro.
7801         * configure.in: Call it.
7803         * include/lib.h (PI): New constant. Undef first if necessary.
7804         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7805         * grops/ps.cc (degrees, radians): Likewise.
7806         * libgroff/font.cc (font::get_skew): Likewise.
7808         * grops/ps.cc (is_ascii): New function.
7809         (ps_output::put_string): Use is_ascii.  Use csprint rather than
7810         isprint.
7811         (ps_printer::define_encoding): Use csspace.
7812         * libgroff/strtol.c (ISASCII): New macro.
7813         (strtol): Cast arguments to is*() and tolower() to unsigned char.
7814         Use ISASCII rather than isascii.
7815         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7816         * libgroff/cset.cc: Likewise.
7817         * libdriver/input.cc: Include cset.h.
7818         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7819         than isdigit().
7821         * refer/refer.cc (main): Use %ld rather than %d for longs.
7823         * libbib/index.cc (index_search_item_iterator::get_tag): Use
7824         S_ISREG macro.
7826         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7828 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
7830         * troff/input.cc (hyphenation_code): Skip white space between
7831         char/code pairs.
7833 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
7835         * tbl/table.h (table::entry_list_tailp): New member.
7836         (table::table): Initialize it.
7837         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7838         behaviour.
7840 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
7842         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7843         with negative horizontal positions. Remove casts of glyph::hpos to
7844         int.
7845         (USHRT_MAX): Delete definition.
7846         (SHRT_MAX, SHRT_MIN): New definitions.
7847         (glyph::hpos): Change type to short.
7848         (tty_printer::end_page): Output multiple backspaces if necessary.
7849          Remove casts of glyph::hpos to int.
7850         
7851 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
7853         * tmac/tmac.s (@RT): New definition.
7855 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
7857         * refer/refer.cc (do_file): Make sure current_filename is set when
7858         filename is "-".
7860         * pic/common.cc (common_output::dot_line): Handle zero length
7861         lines.
7863 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
7865         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7866         (par@init): Initialize \n[HY].
7868 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
7870         * troff/dictionary.cc (dictionary::remove): Continue when
7871         r < j < i.
7873 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
7875         * Makefile.com (.y.cc): Avoid ending up with two versions of
7876         $(YTABH).
7878 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
7880         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7881         (\(,C): Likewise.  Also fix typo.
7883 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
7885         * lib.h: Delete extraneous semi-colon.
7887         * Add pso request: `so' from a pipe.
7888         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7889         (file_iterator::close): New function.
7890         (file_iterator::~file_iterator, file_iterator::next_file): Use
7891         file_iterator::close.
7892         (file_iterator::backtrace): Say `process' rather than `file' when
7893         the stream is popened.
7894         (pipe_source): New function.
7895         (init_input_requests): Bind ".pso" to pipe_source.
7897 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
7899         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7901         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
7902         digits in lower case.
7904 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
7906         * Version 1.08 released.
7908         * Makefile.in (dist): Insert || true after ln -s commands that
7909         might fail.
7911         * mm: Update to mm 1.16.
7913         * acgroff.m4 (GROFF_CSH_HACK): New macro.
7914         * configure.in: Call GROFF_CSH_HACK.  Substitute for
7915         SH_SCRIPT_SED_CMD.
7916         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
7917         MDEFINES.
7918         * nroff/Makefile.sub (nroff): New target.
7919         (install_data): Install nroff.
7920         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7921         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7923 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
7925         * eqn/Makefile.sub (neqn): Add chmod +x.
7927         * grog/Makefile.sub (grog): Remove spurious semi-colon.
7929 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
7931         * troff/input.cc (string_iterator::string_iterator()): Initialize
7932         lineno and count.
7934 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
7936         * troff/div.cc (macro_diversion::space,
7937         top_level_diversion::space): Don't set high_water_mark.
7938         (macro_diversion::output, top_level_diversion::output): Don't
7939         include post line space in high water mark.
7941 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
7943         * eqn/eqn.y: Don't define YYDEBUG.
7944         * pic/pic.y: Likewise.
7946 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
7948         * tmac/tmac.e ([3): Add space after comma following editors.
7949         Change double spaces to single spaces.
7950         ([4): Change double spaces to single spaces.
7952         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7953         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7954         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7955         after %!PS-Adobe- (for Newsprint).
7957         * troff/div.cc (top_level_diversion::begin_page): When
7958         before_first_page is 1, set page_number to 1.
7960 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
7962         * eqn/box.cc (box::top_level): Protect equation with \&.
7964 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
7966         * groff/groff.cc (possible_command::set_name): Delete old name.
7968         * groff/groff.cc (possible_command::~possible_command): Use
7969         a_delete.
7971         * troff/node.cc (troff_output_file::begun_page): New member.
7972         (troff_output_file::troff_output_file): Initialize it.
7973         (troff_output_file::really_begin_page): Only output V command if a
7974         page has been begun.
7976         * pic/pic.y (placeless_element): Delete argument to PRINT after
7977         use.
7979 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
7981         * Make wrapman work.
7982         * troff/div.h (class top_level_diversion): Replace
7983         first_page_begun by before_first_page (with opposite sense).
7984         * Change first_page_begun to before_first_page inverting sense.
7985         * troff/div.cc (class nl_reg): New class.
7986         (init_div_requests): Use class nl_reg for \n(nl.
7987         (top_level_diversion::begin_page): Don't call
7988         output_file::begin_page if before_first_page is 2;
7989         reset before_first_page afterwards.  If have_next_page_number is
7990         false, then always increment page_number.
7991         * tmac/tmac.an: Set traps within TH rather than at the top-level.
7992         Restore compatibility mode after loading, and then disable
7993         compatibility mode in TH.
7995 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
7997         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7998         past last line.
7999         * troff/node.h (output_file::trailer): Declare.
8000         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
8001         * troff/node.cc (output_file::trailer): New function.
8002         (troff_output_file::~troff_output_file): Move most code into...
8003         (troff_output_file::trailer): New function.
8004         (class troff_output_file): Delete page_length member. Declare
8005         trailer().
8006         (troff_output_file::really_begin_page): Use current page length
8007         for final V command.
8009         * tbl/main.cc (struct options): New decimal_point_char member.
8010         (options::options): Initialize this.
8011         (process_options): Implement decimalpoint option.
8012         (process_data): Pass decimal_point_char option to table::table.
8013         * tbl/table.h (class table): New decimal_point_char member.
8014         (table::table): Add additional argument.
8015         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
8016         second argument specifying decimal point character.  Use this
8017         instead of '.'.
8018         (table::table): Initialize decimal_point_char.
8019         (table::add_entry): Change call to find_dot.
8021         * troff/input.cc (get_copy, token::next): Implement \V.
8022         (interpolate_environment_variable): New function.
8024 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
8026         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
8027         * pic/pic.y: Likewise.
8029         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
8030         Add casts to int.
8031         * refer/ref.cc (reference::insert_field, reference::delete_field):
8032         Likewise.
8033         * troff/number.cc (parse_term): Likewise.
8035         * acgroff.m4 (GROFF_PROG_YACC): New macro.
8036         * configure.in: Use GROFF_PROG_YACC.
8038         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
8039         and g++.
8040         * Makefile.in (OPTIMIZE): New define.
8041         (DEBUG): Empty by default.
8042         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
8044         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
8045         (GROFF_ARRAY_DELETE): Likewise.
8046         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
8048         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
8050         * devps/psstrip.sed: Use different delimiter on last line (so that
8051         it works with BSD 4.4 sed.)
8053 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
8055         * devps/psstrip.sed: Delete comments.
8057         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
8058         optind, opterr, optarg.
8059         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
8060         opterr, optarg.
8062 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
8064         * Makefile.in (check): Dummy target.
8066 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
8068         * Version 1.07 released.
8070         * Integrate mm 1.11.
8072         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
8073         where start_col was meant.
8075 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
8077         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
8079 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
8081         * troff/input.cc (token::next): Make \z\o'...' and similar things
8082         work.
8084         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
8085         constants.
8086         (environment): Add margin_character_flags member.
8087         * env.cc (environment::environment(symbol),
8088         environment::environment(const environment *): Initialize
8089         margin_character_flags.
8090         (margin_character): Rewrite.
8091         (environment::output_line): Add a margin character if
8092         margin_character_flags is non-zero.  Turn off the
8093         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8094         zero, use margin_character_node without copying and then set
8095         margin_character_node to 0.
8097         * devps/DESC.in: Change minimum size to 1000.
8099 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8101         * troff/symbol.h (symbol::hash): Change return type to unsigned
8102         long.
8103         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8104         Add casts to int.
8106         * test-groff: Use -r rather than -x.
8108         * grops/psfig.diff: Include in distribution again.
8110 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8112         * Makefile.in (dist): Use gzip.
8114 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8116         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8117         unistd.h as well as in stdlib.h.
8118         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8119         defined; otherwise include <sys/types.h> and <unistd.h> if
8120         UNISTD_H_DECLARES_GETOPT is defined.
8122         * configure.in: use builtin(include, ... rather than include(...
8123         * configure: Regenerate with autoconf 1.3.
8125         * libdriver/print.cc (printer::adjust_arc_center): Use new
8126         algorithm suggested by Andy Fyfe.
8128         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8129         * include/printer.h: Declare this.
8130         * grops/ps.cc (ps_printer::draw): Use it.
8131         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8133 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8135         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8137 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8139         * eqn/main.cc (main): Handle "eqn -".
8141 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8143         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8145         * mm: Integrate version 1.08.
8147         * pic/troff.cc (troff_output::finish_picture): Set
8148         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8149         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8150         if it's not defined. Check whether the register is non-zero rather
8151         than whether it's not defined.
8152         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8154         * indxbib/indxbib.cc: Move all signal handling into...
8155         * indxbib/signal.c: New file.
8156         * configure.in: Call AC_RETSIGTYPE.
8158         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8159         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8160         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8162         * troff/input.cc (token::token, token::operator=): Work round SGI
8163         C++ bug.
8164         * pic/object.cc (position::position): Likewise.
8166 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8168         * pic/pic.h: Move declaration of hypot().
8170 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8172         * pic/pic.h: Declare hypot().
8174         * pic/pic.h: Define M_PI if necessary.
8176 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8178         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8179         `.ta T' feature.
8181         * devps/prologue.ps (RE): Handle the possibility that the old font
8182         doesn't have a FontName entry.
8184 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8186         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8187         (@C): Use @fam not fam.
8189 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8191         * lookbib/lookbib.cc (main): Change type of start to const char *.
8192         * lkbib/lkbib.cc (main): Likewise.
8194         * eqn/lex.cc (definition::definition): Don't use member
8195         initializer syntax for members of anonymous unions.
8197         * troff/input.cc (input_stack::backtrace): Change type of to const
8198         char *.
8200 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8202         * include/stringclass.h (class string): Declare inline friend
8203         functions as inline in class declaration.
8204         * troff/hvunits.h (class hunits, class vunits): Likewise.
8205         * include/refid.h (class reference_id): Likewise
8206         * troff/troff.h (points_to_units(units), scale(units, double)):
8207         Delete declarations.
8208         * libdriver/input.cc (get_char): Delete declaration.
8209         * include/lib.h: Change 2nd argument of getopt from const char **
8210         to char **.
8211         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8212         char **' before assigning to a `const char **'.
8213         * tbl/table.cc: Delete extra declarations of prints().
8215 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8217         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8218         char **' before assigning to a `const char **'.
8220         * libgroff/errarg.cc (errarg::errarg): Don't use member
8221         initializer syntax for members of anonymous unions.
8223 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8225         * mm: Integrate version 1.07.
8227 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8229         * troff/input.c (translate2): Rename to
8230         (translate_no_transparent).
8231         (init_input_requests): Rename tr2 to trnt.
8233 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8235         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8236         (charinfo::set_translation, charinfo::set_special_translation):
8237         Add second argument that specifies value for
8238         transparent_translate.
8239         (charinfo::get_translation, charinfo::get_special_translation):
8240         Add optional second argument that specifies whether translation is
8241         being used for transparent throughput.
8242         * troff/input.cc (charinfo::set_translation,
8243         charinfo::set_special_translation): Handle second argument.
8244         (charinfo::charinfo): Initialize transparent_translate.
8245         (translate): Split main part off into
8246         (do_translate): New function.  Pass argument saying whether
8247         translation applies to transparent throughput.
8248         (translate2): New request.
8249         (init_input_requests): Bind translate2 to `tr2'.
8251 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8253         * tbl/table.h (class table): Add `nokeep' flag.
8254         * tbl/main.cc (process_options): Handle `nokeep' option.
8255         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8256         table::do_bottom): Don't output keep/release macro definitions or
8257         calls when `nokeep' option has been specified.
8259 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8261         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8263 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8265         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8266         block_entry::divert, alphabetic_block_entry::divert): Add extra
8267         argument giving column separation.
8268         (table::compute_widths): Pass column separation to
8269         table_entry::divert().
8270         (block_entry::do_divert): If an entry spans multiple columns and a
8271         minimumum width has been specified for each column, then set the
8272         line length to the sum of the widths (plus possibly the column
8273         separations).
8275         * troff/input.cc (set_escape_char): Don't set the escape_char
8276         until after calling has_arg().
8278 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8280         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8281         case.
8283         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8284         in case where r > nrows - 1.
8286         * tbl/table.cc (BODY_HEIGHT): Deleted.
8287         (LINE_SEP): New definition.
8288         (table::print_single_hline, table::print_double_hline,
8289         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8290         table::do_row, table::do_top): Use LINE_SEP space before a line
8291         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8293         * tbl/table.cc (text_entry::print_contents): New function.
8294         (text_string_name, right_text_string_name): Deleted.
8295         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8296         (simple_text_entry::do_width, numeric_text_entry::do_width,
8297         alphabetic_text_entry::do_width): Don't store the contents of the
8298         entry in a string.
8299         (left_text_entry::simple_print, right_text_entry::simple_print,
8300         center_text_entry::simple_print,
8301         alphabetic_text_entry::simple_print,
8302         numeric_text_entry::simple_print): Print the entry directly
8303         instead of using the stored string.
8305 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8307         * devps/Makefile: Strip PostScript files.
8308         * devps/prologue: Rename to...
8309         * devps/prologue.ps.
8310         * devps/psstrip.sed: New file.
8311         * devps/download: Use .pfa rather than .ps for installed versions
8312         of fonts.
8314 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8316         * troff/env.cc (input_trap): Give a warning if the argument is out
8317         of range.
8319         * troff/env.cc (adjust): Treat negative argument as missing. Round
8320         argument > 5 down to 5.
8322         * troff/env.cc (center, right_justify): Make negative argument zero.
8324         * troff/div.cc (page_offset, vertical_position_traps): Treat
8325         invalid argument as missing.
8326         * troff/env.cc (line_spacing, line_length, title_length, indent,
8327         underline, hyphen_line_max_request, control_char,
8328         no_break_control_char, widow_control_request, adjust, input_trap,
8329         point_size): Likewise.
8330         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8331         constant_space): Likewise.
8332         * troff/input.cc (compatible, shift, warn_request,
8333         set_escape_char): Likewise.
8335         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8336         * tbl/table.cc (table::table): Likewise.
8338         * Makefile.dev (install_dev): depends on $(DEVFILES).
8340 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8342         * devX75, devX75-12, devX100, devX100-12: New directories.
8343         * Makefile.in: Add these to DEVDIRS.
8345         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8346         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8347         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8348         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8349         targets.
8350         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8351         (uninstall): New target.
8352         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8353         uninstall_prog, uninstall_dev): New targets.
8355         * troff/div.cc (return_request): Treat an invalid argument as
8356         missing.
8358 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
8360         * tmac/tmac.e ((f): Set up the environment even when there's a
8361         current diversion.  Transperently throughput a call to @N.
8362         (@N): New macro.
8364 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
8366         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8367         up to vertical resolution.
8369         * tbl/table.cc (table::do_row): Change row number after printing
8370         stuff list.
8372         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8374 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
8376         * Rename CHANGES to NEWS.
8378 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
8380         * libgroff/new.cc (operator new): Avoid calling malloc(0).
8382 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
8384         * man.ultrix: Removed.
8386 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
8388         * Makefile.comm (extraclean): Delete files whose names begin with
8389         `='.
8391         * pic/troff.cc (troff_output::text): Fix typo in implementation of
8392         aligned text.
8394 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
8396         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8397         * troff/div.cc (page_length, need_space, space_request): Treat
8398         invalid optional argument as missing.
8399         * troff/env.cc (number_lines): If the first argument is present
8400         but not a number, turn on line numbering, don't change the next
8401         line number and parse the remaining arguments.
8403         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8405 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
8407         * eqn/box.h: Change declaration accordingly.
8408         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
8409         the specified size was bad but don't give an error.  Check for
8410         overflow.
8411         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8412         * eqn/lex (do_size): Likewise.
8414 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
8416         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8417         compatible headers.
8419 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
8421         * tbl/table.cc (table::init_output): Improve error message when
8422         table won't fit on one page.
8424 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
8426         * pic/troff.cc (troff_output::start_picture): Generate line
8427         containing a horizontal motion equal to the width of the picture.
8429         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8430         using GROFF_COMMAND_PREFIX environment variable.
8432 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
8434         * mdate.sh: Use $NF rather than $(NF).
8436 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
8438         * pic/main.cc (main):  Use %1 not %c in argument to warning.
8440         * eqn/main.cc (main): Output code to check that geqn was given the
8441         correct -T option.
8443 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
8445         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8446         `ln -s ../Makefile .; make; rm -f Makefile'.
8448         * troff/hyphen: Rename to...
8449         * troff/hyphen.us:
8450         * troff/input.cc (main): Delete -H option. Don't call
8451         read_hyphen_file().
8452         * troff/env.cc: Include searchpath.h and macropath.h.
8453         (exception_dictionary): Deleted.
8454         (ht): Deleted.
8455         (read_hyphen_file): Deleted.
8456         (hyphenation_language): New struct.
8457         (class trie, class hyphen_trie): Move declarations up.
8458         (trie_node::~trie_node): Deleted.
8459         (trie::delete_trie_node): New function.
8460         (trie::do_delete): New pure virtual function.
8461         (hyphen_trie::do_delete): New function.
8462         (trie::~trie): New function.
8463         (hyphen_trie::~hyphen_trie): New function.
8464         (trie::clear): No need to chcek that tp is not 0.
8465         (current_language, language_dictionary): New variables.
8466         (hyphen_word): Give an error if no current language.  Use
8467         exceptions dictionary in current language.
8468         (hyphen_trie::read_patterns_file): Find file using macro_path.
8469         Allow comments (starting with %) in patterns file.  Don't make it
8470         a fatal error if the file can't be found.
8471         (hyphenate): Return if no current language.  Get the exceptions
8472         dictionary and the hyphenation patterns from the current language.
8473         (set_hyphenation_language): New variable.
8474         (hyphenation_patterns_file): New function.
8475         (hyphenation_language_reg): New class.
8476         (hyphenation_language_reg::get_string): New function.
8477         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8478         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
8479         register.
8480         * groff/groff.cc (main, help, synopsis): Delete -H option.
8481         * include/Makefile.sub: Don't define HYPHENFILE.
8482         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8483         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8484         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8485         hyphenation patterns.
8487 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
8489         * eqn/neqn.sh: New file.
8490         * eqn/Makefile.sub: Handle neqn.sh.
8492         * eqn/eqn.h: Declare `nroff' variable.
8493         * eqn/box.cc (param_table): Add `nroff' param.
8494         (nroff): Define it.
8495         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8496         variable.
8497         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8499         * troff/troff.h (WARN_FONT): New warning.
8500         (WARN_TOTAL): Change accordingly.
8501         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8502         (warning_table): Add WARN_FONT.
8503         * troff/node.cc (mount_font_no_translate): Pass argument to
8504         font::load_font.  If this is non-zero, give a warning.
8505         Don't give an error message when accessing a font that has already
8506         been found to be invalid.
8507         * include/font.h (font::load, font::load_font): Add additional
8508         optional argument which suppresses error message if the font is
8509         not found.
8510         * libgroff/font.cc (font::load_font): Handle additional argument.
8511         (font::load): Add additional argument. If this is non-null, set it
8512         to 1 and don't give error message.
8514         * include/printer.h (printer::end_page): Add argument giving
8515         length of page.
8516         * libdriver/input.cc (do_file): Pass this.
8517         * grops/ps.cc (ps_printer::end_page): Add argument.
8518         * grodvi/dvi.cc (dvi_printer::end_page,
8519         draw_dvi_printer::end_page): Add argument.
8520         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8521         columns_per_page members. New member nlines.
8522         (DEFAULT_LINES_PER_PAGE): Deleted.
8523         (tty_printer::tty_printer): Don't compute lines_per_page from
8524         font::paperlength. Don't compute columns_per_page from
8525         font::paperwidth.
8526         (tty_printer::add_char): Don't check horizontal position against
8527         columns_per_page. Grow glyphs vector if neccessary.
8528         (tty_printer::end_page): Add argument giving page_length in units.
8529         Discard lines past end of page.
8531 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
8533         * tmac/tmac.tty-char: Fix definition of \(/l.
8535         * tmac/tmac.X: Define \(en.
8537 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
8539         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8540         lpq, then use lp rather than lpr.
8542         * tmac/tmac.s (par@reset): Don't call `ad'.
8543         (par*env-init): Call `ad'.
8545 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
8547         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8548         date.
8550         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8551         * indxbib/indxbib.cc: Likewise.
8553 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
8555         * libgroff/putenv.c: New file.
8556         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8557         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8558         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8559         stdlib.h with AC_HAVE_HEADERS.
8561 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
8563         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8564         does not exist.
8566 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
8568         * eqn/box.cc (gsize): Make it an int.
8569         (set_gsize): Parse argument handling increment or decrement.
8570         (box::top_level): Convert gsize to a string.
8572         * troff/input.cc (exit_troff): Make buf unsigned char [].
8573         Call to make_temp_iterator casts buf to char*.
8575         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8577         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8578         * Makefile.cpg (depend.temp): Likewise.
8580         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8582         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8584 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
8586         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8588 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
8590         * Version 1.06 released.
8592         * Integrate mm 1.04.
8594 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
8596         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8598 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
8600         * afmtodit/afmtodit.pl: Add -n option that disables generation of
8601         ligatures command.
8602         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8603         afmtodit. Regenerate.
8605         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8606         @f back past the current position.
8608         * tmac/tmac.e: Change calls to @R so that comments are not part of
8609         arguments.
8611 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
8613         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8615         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8616         check that we can link a call to a function declared in <stdio.h>.
8617         (GROFF_UNISTD_H): New macro.
8618         * configure.in: Call it.
8619         * Makefile.in: Document it.
8620         * include/posix.h: New file.
8621         * troff/troff.h: Don't include <osfcn.h>
8622         * troff/input.cc: Include posix.h.
8623         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8624         osfcn.h.
8625         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8626         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8627         <fcntl.h>.
8628         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8629         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8630         * libbib/search.cc (O_RDONLY): Delete definition.
8631         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8632         Don't include <osfcn.h>.
8634         * acgroff.m4 (GROFF_TIME_T): New macro.
8635         * configure.in: Call it.
8636         * Makefile.in: Document it.
8638         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8639         * configure.in: Call it.
8640         * Makefile.in: Document -DTRADITIONAL_CPP.
8641         * include/ptable.h: Don't include generic.h.
8642         (name2): Define it.
8644         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8645         Afterwards remove [T1 and [T2.
8646         (ref*spec!0, ref*spec!2): Use T1 rather than T.
8647         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8648         (ref*add-T2): Renamed from ref*add-T.
8649         (ref*add-T1): New macro.
8651 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
8653         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8655         * libbib/index.cc: Include <fcntl.h>.
8656         (O_RDONLY): Define if necessary.
8657         (make_index_search_item, index_search_item_iterator::get_tag,
8658         index_search_item::check_files): Use O_RDONLY.
8659         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8660         (O_RDONLY): Define if necessary.
8661         (search_list::add_file): Use O_RDONLY.
8662         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8663         <sys/stat.h>.
8664         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8665         (main): Use these.
8667         * libbib/index.cc (S_ISREG): Define it if necessary.
8668         (index_search_item::load): Use S_ISREG.
8670         * include/driver.h: Include <errno.h>.
8672 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
8674         * eqn/box.cc (body_height): Increase default value to 85.
8675         (body_depth): Increase default value to 35.
8677 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
8679         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8680         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8681         protected from expansion with \E.
8683         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8685         * Makefile (Makefile): New target.
8687         * Makefile.sub (configure, distfiles): New targets.
8689         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8690         construct.
8692 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
8694         * eqn/box.cc (param_table): Add body_height and body_depth.
8696         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8698 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
8700         * psbb/Makefile.sub: Don't link with libgroff.a.
8702         * acgroff.m4 (GROFF_PUTENV): New macro.
8703         * configure.in: Call GROFF_PUTENV.
8704         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8705         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8706         is defined.
8708         * troff/env.cc (distribute_space): Rename force_forward argument
8709         to force_reverse.  Reverse the list if force_reverse is true.
8711 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
8713         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8715         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8716         height or depth to be negative.  Guard against SUP_RAISE quantity
8717         being negative.
8719 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8721         * devps/generate/textmap: Add `an' (arrowhorizex).
8722         * tmac/tmac.ps: \(an overlaps horizontally.
8723         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8725         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8726         * devps/textmap: Add arrowvertex.
8727         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8728         updownarrow delimiters.
8729         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8731         * tbl/table.cc (simple_entry::position_vertically,
8732         block_entry::position_vertically):  For a centered entry, perform
8733         the motion in two stages.
8735         * refer/refer.cc (split_punct): Don't call lookup_token if there
8736         is no token.
8738 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8740         * troff/input.cc (token::next): Delete token_node after copying
8741         token.
8743         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8744         cur_point_size.
8746         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8748         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8750 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8752         * grops/ps.cc (usage): -b option takes an argument.
8754         * devps/prologue (PLG): New procedure.
8755         * grops/ps.cc (main, usage): New -g option.
8756         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8757         length using PLG.
8759 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8761         * include/cset.h: Include <limits.h> if we have it.
8763         * libgroff/illegal.cc: New file.
8764         * include/lib.h (illegal_input_char): Use table.
8765         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8766         * pic/lex.cc (ARG1): Renumber to 14.
8767         * eqn/lex.cc (ARG1: Likewise.
8769         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8770         (eg 1.05.90) correctly.
8772 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
8774         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8775         Rename $r and $R registers to $v and $V.
8776         ($r, $R): Initialize to 0.
8777         (@v, @V): New macros.
8778         (sz): Call @v.
8779         (@M): Call @V.
8781         * troff/input.cc (main, usage): Add -R option that says not to
8782         load troffrc.
8783         * eqn/main.cc (main, usage): Rename -n to -R.
8785 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
8787         * devps/DESC.in: Leave font positions 5-9 blank.
8788         * devdvi/DESC.in: Likewise.
8790         * grog/grog.pl: Handle `.PS <file' correctly.
8792         * troff/input.cc (input_stack::push): Improve error message when
8793         input stack limit exceeded.
8795 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
8797         * refer/refer.cc (main): Fix typo in handling of `a' option.
8799         * refer/refer.cc (do_bib): In state START after a newline remain
8800         in state START.
8802         * groff/groff.sh: Deleted.
8803         * groff/Makefile.sub: Delete handling of groff.sh.
8805         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8806         to determine whether to use \X'ps:...'.
8807         * tmac/troffrc: Set 0p register to 0.
8808         * tmac/tmac.ps: Set 0p register to 1.
8810         * groff/groff.cc: Support -X option. Give warning for -TXps and
8811         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8812         * tmac/troffrc: Support -r.X=1.
8814         * pic/troff.cc (troff_output::dot): Don't test
8815         zero_length_line_flag.
8817 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
8819         * include/lib.h: Declare getopt() and friends unless
8820         STDLIB_H_DECLARES_GETOPT is defined.
8822         * doc/chars.tr: Delete.
8823         * man/groff_char.man: New file.
8825 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
8827         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8828         user has changed register format.
8830 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
8832         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
8833         `postpro' command in DESC file.  Get spooler command from `print'
8834         command in DESC file.  Execute spooler command with /bin/sh.
8836         * groff/groff.cc: Split Unix-specific parts into...
8837         * groff/pipeline.c: New file.
8839         * LICENSE: Delete.
8840         * COPYING: New file.
8841         * all files: Update copyright notices.
8843         * Rearrange files.  Redo Makefiles.  Use autoconf.
8845 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
8847         * troff/input.c (charinfo_to_node_list): Interpret character
8848         definition with escape_char of `\'.
8850 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
8852         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8853         Define INT_DIGITS as big enough for 64-bit integer.
8854         * lib/strtol.c: Don't include lib.h.
8855         * lib/lib.h: Delete ifdef __cplusplus stuff.
8857 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
8859         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
8860         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
8861         get DESC from current directory.
8863 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
8865         * tbl/main.c (main): Always reset the line number when reading
8866         from stdin.
8868         * tbl/table.c (table::print_single_hline, table::print_double_hline,
8869         table::define_bottom_macro, table::do_row, table::do_top): Round
8870         vertical spacing up to vertical resolution.
8872 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
8874         * ps/ps.h (enum resource_type): Avoid comma at end of
8875         enumerator-list.
8876         * dvi/dvi.c (class dvi_printer): Likewise.
8877         * dvi/tfmtodit.c (gf::load): Likewise.
8878         * refer/label.y (struct expression): Likewise.
8879         * refer/refer.c (class label_processing_state): Likewise.
8880         * refer/indxbib.c (do_file): Likewise.
8881         * troff/troff.c (enum warning_type): Likewise.
8882         * tbl/main.c (process_data): Likewise.
8883         * troff/charinfo.h (class charinfo):
8885 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
8887         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
8889 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
8891         * groff.c: Move to new groff subdirectory.
8892         * groff/Makefile: New file.
8893         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8895         * man/mdate.sh: Use ls -L if supported.
8897         * Consolidate all header files produced by gendef into lib/defs.h.
8898         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8899         Don't include path.h.
8900         * lib/Makefile (path.h): Don't generate.
8901         * troff/input.c: Include defs.h. Don't include config.h.
8902         * troff/Makefile (config.h): Don't generate.
8903         * refer/index.h: Don't include suffix.h.
8904         * refer/index.c: Include defs.h.
8905         * refer/indxbib.c: Include defs.h.
8906         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8907         defs.h.
8908         * refer/Makefile (suffix.h, path.h): Don't generate.
8909         * groff.c: Don't include config.h. Include defs.h.
8910         * Makefile (config.h): Don't generate.
8911         (lib/defs.h): Generate.
8912         (topclean): Remove lib/defs.h.
8914 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
8916         * lib/malloc.c, lib/getpagesize.h: Deleted.
8917         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
8918         related stuff.
8919         * lib/Makefile: Delete malloc-related stuff.
8920         * lib/new.c: Workaround COOKIE_BUG if necessary.
8922         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
8923         needed header files directly.
8924         * refer/refer.h: Omit definition of DEFAULT_INDEX.
8925         * Makefile: Include definition of DEFAULT_INDEX in path.h.
8927 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
8929         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8930         argument.
8931         * lib/font (font::load_desc, font::load): Don't split argument of
8932         unknown command.
8933         (font::handle_unknown_font_command): Change type.
8934         * ps/ps.c (ps_font::handle_unknown_font_command,
8935         handle_unknown_desc_command): Change type.
8936         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8938 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
8940         * lib/font.h (font::handle_unknown_font_command): Add file and
8941         line arguments.
8942         * lib/font.c (font::handle_unknown_font_command):
8943         * ps/ps.c (ps_font::handle_unknown_font_command):
8944         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8945         lineno arguments.  Use _with_file_and_line functions for error
8946         reporting.
8948         * lib/fontfile.c (font::unknown_desc_command_handler): New static
8949         data member.
8950         * lib/font.c (font::set_unknown_desc_command_handler): New
8951         function.
8952         (font::load_desc): For unknown commands, call
8953         unknown_desc_command_handler if not null.
8954         * lib/font.h (class font): Declare them.
8955         (FONT_COMMAND_HANDLER): New typedef.
8956         * ps/ps.c (handle_unknown_desc_command): New function.
8957         (main): Set bflag if we had a -b option. Call
8958         font::set_unknown_desc_command_handler.
8959         (broken.h): Don't include.
8960         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
8961         submake 
8962         * ps/devps/Makefile: Add `broken' command to DESC file using
8963         BROKEN_SPOOLER_FLAGS.
8965         * macros/tmac.e ([, ]): Add as synonyms for { and }.
8967         * macros/tmac.e ($p): Only exdent if \$3 > 0.
8969         * macros/tmac.e (@R, @S): New macros.
8970         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8971         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8972         Declare $H, $[0-9], .. macros with @S.
8973         Declare |0, |1, |2, |3 strings with @S.
8975         * macros/tmac.e (@S): Rename to @U.
8977         * macros/tmac.e (@z): Define @b and bp as empty instead of
8978         deleting them,
8980         * macros/tmac.e (@m): Deleted.
8981         (@h): Don't call @m.
8982         (@z): Don't set @m trap.
8984         * macros/tmac.e ($h, $f): Define |z as empty string.
8986         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8987         (@q): Likewise.
8989         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8990         removing them.
8991         ()f): Likewise for * register.
8993         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8994         argument is missing, don't change $R.  Call sr with three
8995         arguments when initializing.
8997 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
8999         * macros/tmac.e (sr): New macro.
9000         Initialize $r and $R using sr.
9002         * macros/tmac.e (,): Delete \*(#[.
9004         * troff/env.c (set_tabs): Read the tab type even if the position
9005         is bad.  Allow the position of the first tab stop to be negative.
9007 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
9009         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
9010         _POSIX_VERSION.
9011         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
9012         rather than -DPATHCONF_MISSING.
9013         * Makefile: Get rid of PATHCONF_MISSING.
9015         * refer/map.c: New file.
9016         * refer/index.c: Interface to mmap through map.c.  Rename map_size
9017         to map_len.
9018         * refer/Makefile: Handle map.c.
9019         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
9021 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
9023         * Makefile: RANLIB should be `true' if there is no ranlib.
9024         * lib/Makefile (libgroff.a): Simplify.
9025         * driver/Makefile (libdriver.a): Simplify.
9027         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
9028         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
9029         defined.
9031 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
9033         * troff/env.c (compare_ranges): Declare as extern "C".
9035         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
9037         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
9039 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
9041         * pic/troff.c (troff_output::text): Merge in grops_output::text,
9042         but conditionalize use of \X based on \*(.T.
9043         (grops_output::*): Deleted.
9044         * pic/output.h: Delete declaration of make_grops_output.
9045         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
9046         by default. -n sets it to 0.
9047         (usage): Corresponding changes.
9048         * groff.c (main): Don't pass -x or -p to pic.
9049         * groff.sh: Likewise.
9051         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
9052         to be non-zero.
9054         * ps/devps/afmtodit: Change calculation of asc_boundary and
9055         desc_boundary.  Make these bounds inclusive.
9056         * ps/devps: Regenerate font files.
9058 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
9060         * macros/tmac.latin1: New file.
9061         * macros/tmac.tty-char: Use tmac.latin1.
9062         (tmac.tty-tr): Deleted.
9063         * macros/Makefile: Install tmac.latin1.
9064         * macros/tmac.dvi: Use tmac.latin1.
9065         * macros/troffrc: Translate \[char160] onto no-break space here.
9066         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
9068 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
9070         * macros/tmac.Xps: Use `do' request.
9072         * macros/tmac.ps: Use `do' request.
9074         * macros/tmac.e (@C): Use `do' request.
9076         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
9077         * macros/Makefile: Install tmac.X*.
9079         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
9080         * tty/Makefile: Don't install tmac.tty*.
9081         * macros/Makefile: Install tmac.tty*.
9083         * dvi/tmac.dvi: Move to macros.
9084         * dvi/Makefile: Don't install tmac.dvi.
9085         * macros/Makefile: Install tmac.dvi.
9087         * ps/tmac.ps*: Move to macros.
9088         * ps/Makefile: Don't install tmac.ps*.
9089         * macros/Makefile: Install tmac.ps*.
9091         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9092         option.
9093         * macros/eqnrc: Set draw_lines parameter based on device.
9094         * groff.c: Don't pass -D flag to eqn.
9095         * groff.sh: Likewise.
9096         * eqn/main.c: Warn about use of -D.
9098         * troff/input.c (process_startup_file): New function.
9099         (main): Call process_startup_file().
9100         * macros/troffrc: New file.
9101         * macros/Makefile: Install troffrc.
9102         * groff.c (main): Don't pass extra -m option to troff. For a 
9103         pseudo device pass the name of the pseudo device to troff using
9104         -d.
9105         * groff.sh: Likewise.
9106         * groff.c (possible_command::prepend_arg): Deleted.
9108         * troff/input.c (do_request): New function.
9109         (init_input_requests): Bind "do" to do_request.
9111         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9112         load eqnrc from macro directory.
9113         * macros/eqnrc: New file.
9114         * macros/Makefile: Install eqnrc.
9115         * ps/devps/eqnchar: Deleted.
9116         * ps/devps/Makefile: Don't install eqnchar.
9117         * dvi/devdvi/eqnchar: Deleted.
9118         * dvi/devdvi/Makefile: Don't install eqnchar.
9119         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9120         variable optM.
9122         * lib/device.[ch]: New files.
9123         * lib/font.h (font::set_device_name, font::get_device_name):
9124         Deleted.
9125         * lib/fontfile.c: Use device.h.
9126         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9127         * troff/input.c: Delete definition of `device'.
9128         (main): Don't initialize device.
9129         * troff/troff.h: Include device.h rather than declaring device.
9130         * troff/Makefile: No need to handle DEVICE.
9131         * driver/input.c: Include device.h. Don't use
9132         font::{set,get}_device_name.
9133         * groff.c, Makefile: Rename device.h to config.h.
9134         * groff.c: Use library device variable.
9135         * eqn/main.c: Use library device variable.
9136         * eqn/Makefile: No need to handle DEVICE.
9138         * lib/searchpath.[ch]: New files.
9139         * lib/Makefile: Handle searchpath.[ch].
9140         * troff/input.c (open_file, init_dirs): Deleted.
9141         (macro_dirs): Deleted.
9142         (open_mac_file, macro_source): Use class search_path.
9143         (add_string, struct string_list): Move definition.
9144         (main): Change -M option to use macro_path. Delete call to
9145         init_dirs().
9146         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9147         Rewrite to use class search_path.
9148         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9149         * lib/Makefile: fontfile.c depends on searchpath.h.
9150         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9151         MACROPATH.
9152         * lib/macropath.[ch]: New files.
9153         * troff/Makefile: No need to handle MACROPATH.
9155         * troff/input.c: Delete DUMP code.
9156         * lib/fontfile.c, lib/font.h: Delete
9157         font::forget_command_line_font_dirs.
9159         * troff/input.c (push_token): New function.
9160         (handle_first_page_transition): Use push_token().
9161         (process_input_stack): Change handling of a space at the beginning
9162         of the line.
9164 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9166         * troff/input.c (font_dirs): Delete unused variable.
9168         * eqn/lex.c (do_set): Correct error messages.
9170 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9172         * troff/input.c (do_define_string): Allow the string name to be
9173         followed immediately by a tab.
9174         (define_character): Likewise.
9176 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9178         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9179         be negative.
9181         * troff/input.c (input_iterator::is_file): New virtual function.
9182         (file_iterator::is_file): New function.
9183         (input_stack::end_file): New function.
9184         (input_stack::next_file): Handle the situation where there is no
9185         file on the input stack correctly.  Avoid making two passes over
9186         the input stack.
9187         (next_file): Make the filename optional; in this case call
9188         input_stack::end_file().
9190 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9192         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9193         produce a real _ charater when the current font is CW and _
9194         otherwise.
9196         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9197         expression to work around gcc 2.2 bug.
9199 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9201         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9203         * troff/env.c (environment::add_padding): New function.
9204         (environment::add_char): Use add_padding().
9205         (environment::space): Likewise.
9206         (environment::wrap_up_field): Add some padding if there is none
9207         and there's no current tab.
9208         * troff/env.h: Declare environment::add_padding.
9210 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9212         * pic/pic.y: undef fmod and rand before declaring them.
9214 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9216         * troff/input.c (main): If the DESC file specifies a font name of
9217         0, then leave the corresponding font position empty.
9219         * nroff.sh: New file.
9220         * Makefile (install.nobin): Install nroff.sh.
9222         * tty/devlatin1/R.proto: Add ao as synonym for de.
9223         * tty/tmac.tty-char: Define ao as o.
9225         * tty/dev{ascii,latin1}/R.proto: Add aq.
9226         * tty/tmac.tty-char: Delete definition of aq.
9228 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9230         * troff/input.c (init_charset_table): Don't translate 0240.
9231         * ps/tmac.ps: Translate char160 to space.
9232         * dvi/tmac.dvi: Likewise.
9233         * tty/tmac.tty: Likewise.
9235 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9237         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9239         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9240         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9241         \(oe, \(r?, \(r!.
9243         * tty/tmac.tty-char: Add \(ah.
9245         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9246         No need to define \(FM and \(!/. Conditionalize all character
9247         definitions.
9249         * ps/devps/lgreekmap: Add +h, +f, +p.
9251         * ps/tmac.psnew: New file.
9252         * ps/Makefile: Install tmac.psnew.
9254         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9255         character definitions in compatible mode.
9257         * troff/input.c (remove_character): New function.
9258         (init_input_requests): Bind remove_character to "rchar".
9260         * ps/tmac.psold: New file.
9261         * ps/Makefile: Install tmac.psold.
9262         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9263         characters into tmac.psold.  Make these definitions unconditional.
9265         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9267         * ps/tmac.ps: Don't define \('c and \('C.
9269         * ps/devps/textmap: Move Greek characters to...
9270         * ps/devps/symbolchars:
9272 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9274         * ps/devps/text.enc: Add quotesingle.
9275         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9276         * tty/tmac.tty-char: Likewise.
9277         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9278         * dvi/devdvi/texi.map: Add Fn.
9279         * dvi/devdvi/msam.map: Add lz.
9280         * dvi/tmac.dvi: Handle Bq, bq, aq.
9282         * pic/lex.c (get_token): Recognize 'th.
9283         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9285 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9287         * ps/devps/textmap: Move di, mu, +- to...
9288         * ps/devps/symbolchars:
9290         * macros/tmac.s (@XS): Don't call par@reset or fi.
9291         (XA): Call LP. Turn off adjustment. Reduce line length.
9293         * macros/tmac.s: Initially alias XS to LP.
9294         (XS): Rename to @XS.
9295         (cov*ab-init): Alias XS to @XS.
9297 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9299         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9300         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9301         (token::is_size, token::changes_env): Deleted.
9302         * troff/number.c (parse_term): No need to process \s explicitly.
9303         Call tok.next() only after scale indicator has been processed.
9304         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9305         \f etc explicitly.
9306         (token::next): Handle \s, \f, \S, \H immediately rather than
9307         returning them as tokens.
9308         (token::operator==, token::description, token::add_to_node_list,
9309         token::process): Remove handling of deleted tokens.
9311         * troff/env.c (environment::add_char): When adding padding
9312         indicator character, call start_line() if necessary.
9314 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9316         * ps/devps/afmtodit: Don't output 0 kerns.
9318         * ps/devps/afmtodit: Remove directory from name of encoding in
9319         font description file.
9321         * ps/devps/afmtodit: Improve error messages.
9323         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9325         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9326         * ps/devps/FontMakefile: Deleted.
9327         * ps/devps/afmname: New file.
9329         * ps/devps/symbol.sed: New file.
9330         * ps/devps/symbol.diff: Deleted.
9331         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9332         Generate zapfdr.afm from zapfd.afm.
9334         * tty/tmac.tty (tty-char): Prefix definition with ".
9336         * macros/tmac.an (TP): Don't start a diversion if one has already
9337         been started.
9339         * tty/tmac.tty-char: Add Latin-1 characters.
9341         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9343 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9345         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9346         Move declaration of struct horizontal_span.
9348         * tbl/table.c (table::table): Initialize span_list.
9349         (table::~table): Delete span_list.
9351         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9353         * ps/devps/Makefile: Avoid dependency on GNU make.
9355         * ps/tmac.ps: Check that character does not already exist before
9356         defining it.
9358         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9359         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9360         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9361         files.
9363         * tty/tmac.tty-char: New file.
9364         * tty/Makefile: Install tmac.tty-char.
9365         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9366         tmac.tty-char.
9368         * tty/tmac.tty: Fix definition of \(34.
9370         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9371         bracket-drawing characters onto |. Add *o.
9373         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9374         only if current_field.
9376         * troff/dictionary.c (dictionary::lookup): Free old_table after
9377         rehashing. 
9379 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
9381         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9382         whose glyphs are identical to glyphs of some Roman character.
9384         * tty/devlatin1/R.proto (bu): Deleted.
9385         * tty/devascii/R.proto (bu): Deleted.
9386         * tty/tmac.tty: Add definition of \(bu.
9388         * eqn/main.c (do_file): Pass FILE as argument.
9389         (main): Automatically load eqnchar.  New options -F and -n.
9390         Pass do_file an opened FILE.
9391         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9392         No need to include font.h.
9393         * groff.sh: Likewise.  Don't need to use - for standard input.
9394         Prefix files with -- if first file starts with -.
9396         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9398         * troff/env.c (environment::possibly_break_line): Don't set line
9399         to 0 across call to output_line().  Don't call output_line() until
9400         after discarding nodes after break.
9402 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
9404         * request.h (macro::empty): Declare it.
9405         * input.c (macro::empty): New method.
9406         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
9407         macro is empty.
9409 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
9411         * troff/env.c (environment::start_field): Decrement space_total
9412         when a space is frozen.
9414 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
9416         * macros/tmac.an (R): Delete macro.
9418         * troff/input.c (get_copy, token::next): Support \# (like \" but
9419         newline is ignored).
9421         * troff/input.c (token::next): Fix error message in 'Y' case.
9423 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
9425         * eqn/delim.c (define_extensible_string): Recognize any prefix of
9426         a delimiter name.
9428 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
9430         * c++test.c: Include <osfcn.h>.
9432         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9433         <errno.h> doesn't.
9435 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
9437         * tbl/table.c (table::divide_span): Don't count column separation
9438         if expand was specified.
9440         * tbl/main.c (process_format): Don't ignore width specs in
9441         continued format.  Give warning for changing equal widths or
9442         column separation in continued format.
9443         (process_data): Set column separation, minimum width, equal
9444         columns at end of table.
9446 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
9448         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9449         node::add_discretionary_hyphen): Use soft_hyphen_char.
9450         (set_soft_hyphen_char): New function.
9451         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
9453         * Makefile (c++tested): Give more helpful message if test fails.
9455 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
9457         * troff/input.c (init_charset_table): Translate 0240 to
9458         an unbreakable space.
9460         * troff/token.h (token::hyphen_indicator): New function.
9461         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9462         translation.
9463         * troff/input.c (translate): Allow translation to \%.
9464         * troff/node.c (node::add_char): Handle
9465         TRANSLATE_HYPHEN_INDICATOR.     
9466         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9468         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9469         for \(hy.
9471         * tty/devlatin1/R.proto: \(hy and - should print as 055.
9473 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
9475         * groff.c (run_commands): If the last command gets a SIGPIPE send
9476         a SIGPIPE to all children than haven't yet terminated.  When
9477         command terminates, set pid field to -1.
9479 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
9481         * groff.c (main): Pass an appropriate -filename option to gxditview.
9483 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
9485         * Makefile.bd (install): Remove existing program before copying.
9487         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9488         programs which have Unix counterparts to be installed with
9489         user-specified prefix.
9491         * troff/input.c (exit_troff): Don't check if exit_started.
9492         (exit_request): Don't call exit_troff if exit_started.
9494         * Makefile.bd (install.mm): Rename to install.dwbmm.
9496 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
9498         * driver/input.c (do_file): Add missing break for '#' case.
9500 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
9502         * troff/input.c (input_stack::clear):  Clear past any boundaries and
9503         then add the boundaries back.
9505         * troff/input.c (exit_troff): Return immediately if already
9506         exiting.
9508         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
9509         end macro.
9510         (pg*end-page): If the text has ended and there are no more
9511         footnotes or keeps, exit.
9513         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9515         * troff/input.c (init_charset_table): Make \(rq transparent by
9516         default.
9518         * macros/tmac.an: Define lq and rq strings.
9520         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9522 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
9524         * troff/env.c (environment::final_break): New function.
9525         (environment::newline): Set prev_line_interrupted to 2 if
9526         exit_started.
9527         * troff/env.h: Declare environment::final_break.
9528         * troff/input.c (exit_troff): Call environment::final_break()
9529         instead of environment::do_break().
9531         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9532         doesn't already exist.
9533         * macros/man.local: New file.
9534         * macros/tmac.an: Load man.local.
9535         * macros/man.ultrix: New file.
9537 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
9539         * troff/input.c (exit_groff): Rename to...
9540         (exit_troff): New function.
9542         * troff/div.c (exit_started, done_end_macro,
9543         seen_last_page_ejector): New global variables.
9544         (began_page_in_end_macro): New static variable.
9545         (exit_flag): Deleted.
9546         (top_level_diversion::top_level_diversion): Initialize
9547         last_page_count.
9548         (top_level_diversion): More elaborate test for whether
9549         cleanup_and_exit() should be called.
9550         Set began_page_in_end_macro if the end macro isn't yet finished.
9551         * troff/div.h (top_level_diversion::last_page_count): New data
9552         member.
9553         (top_level_diversion::set_last_page): New function.
9554         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9555         * troff/env.c (do_break): Zero prev_line_interrupted.
9556         * troff/input.c (exit_flag): Delete declaration.
9557         (LAST_PAGE_EJECTOR): New magic cookie.
9558         (token::next): Handle LAST_PAGE_EJECTOR.
9559         (exit_groff): Set exit_started and done_end_macro instead of
9560         exit_flag.  Call top_level_diversion::set_last_page.  Push a
9561         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
9562         another ejection after setting seen_last_page_ejector.
9564 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
9566         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9568         * macros/tmac.e (TH): Make sure there's room for the initial
9569         header.
9571         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9572         Set FVS in points rather than units.
9574 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
9576         * troff/div.c (top_level_diversion::add_trap): Don't consider the
9577         position of empty slots.
9579 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
9581         * ps/devps/S: Fix height and depth of parenrightex.
9582         * ps/devps/symbol.diff: Regenerate.
9584 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
9586         * tmac.e (u): Do underlining as in -mgs.
9588 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
9590         * tty/tty.c (tty_printer::end_page): If overstriking is
9591         suppressed, still turn overstruck horizontal and vertical lines
9592         into +.
9594         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9595         2.1.
9597         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9599 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
9601         * Version 1.05 released.
9603 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
9605         * tty/tty.c: Instead of keeping an array of glyphs and then
9606         sorting it, keep a ordered linked list of glyphs for each line.
9608         * driver/driver.h: Include stddef.h.
9610         * tty/tty.c (compare_glyph):
9611         * refer/refer.c (rcompare):
9612         * troff/env.c (compare_ranges): Arguments of qsort comparison
9613         function should be const void *.
9615         * troff/number.c (parse_term):
9616         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9617         switch statement.
9619         * refer/label.y (consider_authors): Don't access variables
9620         constructed under a condition outside that condition: put braces
9621         round for statement containing declaration; redeclare use of same
9622         variable later.
9624         * pic/pic.y (text_expr): Delete production that allows
9625         parenthesised text_expr.
9626         (expr): Allow a conditional_expr to appear in parentheses.
9627         (conditional_expr): Rename to any_expr.
9629         * mm: Install new version 1.01 from jh.
9631         * lib/font.c (font::get_width): Cache scaled widths.
9632         (font::font): Initialize widths_cache.
9633         (font::~font): Destroy widths_cache.
9634         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9636 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
9638         * c++test.c, c++test.ref: New files.
9639         * Makefile: Check that the C++ compiler works.
9641         * ps/tmac.pspic (PSPIC): Do a break.
9643         * ps/tmac.ps: Move definition of PSPIC into...
9644         * ps/tmac.pspic: New file.
9645         (PSPIC): Draw box around picture, but make it invisible to grops.
9646         * ps/tmac.ps: Load tmac.pspic.
9647         * ps/Makefile: Install tmac.pspic.
9649 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
9651         * lib/font.c (scale_round): If n is negative,
9652         subtract .5 before truncating floating point result.
9654         * lib/fontfile.c: Include <errno.h>.
9656 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
9658         * driver/input.c (get_char): Inline. Don't update current_lineno.
9659         Change callers to up date current_lineno if necessary.
9660         Use get_char() instead of getc(current_file).
9662 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
9664         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9666 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
9668         * tty/tty.c (tmac.tty): Define \(rg as (R).
9670 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
9672         * lib/lib.h: New define a_delete.
9673         * Use a_delete instead of delete when deleting an array of objects
9674         without destructors.
9676         * lib/lib.h: Rename adelete to ad_delete.
9677         * Change uses of adelete.
9679 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
9681         * eqn/eqn.y: Include lib.h.
9683         * troff/node.c (grow_font_table): Delete old_font_table.
9685         * mm: Install new version from jh.
9687 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
9689         * tbl/table.h (format_type): Make global instead of local to class
9690         entry_format.  Prefix enumerators with FORMAT_.
9691         * tbl/table.c, tbl/main.c: Corresponding changes.
9692         * refer/token.h (token_type): Make global.  Prefix enumerators
9693         with TOKEN_.
9694         * refer/token.[ch]: Corresponding changes.
9695         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9697         * troff/div.c (node::set_vertical_size): Don't name argument.
9699 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
9701         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9702         * lib/lib.h: Define adelete accordingly.
9703         * pic/object.c (graphic_object::graphic_object):
9704         * tbl/main.c (format::~format):
9705         * tbl/table.c (table::~table):
9706         * refer/ref.c (reference::~reference, reference::merge,
9707         reference::insert_field, reference::delete_field): Use adelete.
9709         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9710         * refer/token.h:
9711         * tbl/table.h: Corresponding changes.
9713         * common.c (common_output::dashed_arc, common_output::dotted_arc):
9714         Ensure total_angle is positive.
9716 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9718         * refer/ref.c (reference::merge, reference::insert_field,
9719         reference::delete_field): Avoid delete[0].
9721         * refer/token.c (init_special_chars): Move calls to cmupper
9722         outside calls to init_two_char_letter to work around bug in gcc
9723         2.0.
9725 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9727         * lib/new.c (operator new): Use __builtin_new for g++.
9729         * pic/object.c (graphic_object::~graphic_object):  Don't use
9730         delete [] on 0.
9732         * pic/object.c (output::compute_scale): Initialize max_width and
9733         max_height.
9735 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9737         * troff/input.c (write_request): Call fflush.
9739         * troff/node.h (class composite_node): Move declaration to node.c
9740         * troff/input.c (charinfo_to_node): Rename to ...
9741         (charinfo_to_node_list): Return node list rather than composite
9742         node.
9743         * troff/node.c (make_composite_node): New function.
9744         (make_node, add_char): Call make_composite_node instead of
9745         charinfo_to_node.
9746         (class composite_node): Add a tfont * member.  Delete font_size
9747         member.
9748         (composite_node::composite_node, composite_node::copy,
9749         composite_node::size): Corresponding changes.
9750         (composite_node::tprint): Provide constant spacing, emboldening
9751         and track kerning as specified in tfont.
9752         (composite_node::width): Change width calculation accordingly.
9753         * troff/env.h (environment::composite): New member.
9754         (environment::is_composite, environment::set_composite): New
9755         functions.
9756         * troff/env.c (environment::environment): Initialize composite.
9757         * troff/input.c (charinfo_to_node): Call
9758         environment::set_composite.
9759         * troff/node.c (make_composite_node, make_glyph_node): Use the
9760         plain version of the tfont if the environment is composite.
9762         * troff/node.c (font_info::get_space_width): Additional argument
9763         giving space_size.  Handle constant space correctly. Scale by
9764         space_size unless constant spaced.
9765         (env_sentence_space_width): New function.
9766         * troff/node.h: Declare it.
9767         * troff/env.h (environment::get_space_size,
9768         environment::get_sentence_space_size,
9769         environment::get_narrow_space_width,
9770         environment::get_half_narrow_space_width): Make inline.
9771         (environment::get_space_width): Make inline.  Just call
9772         env_space_width.
9773         * troff/env.c: Delete definitions for funtions made inline.
9774         (environment::space_newline, environment::space): Use
9775         env_sentence_space_width(). Don't scale by space_size.
9776         * troff/node.h: Move declarations of env*space_width() functions
9777         into env.h.
9779 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
9781         * macros/tmac.s (PS): Don't try to set negative indent.
9783 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
9785         * pic/pic.y: Fix min function.
9787 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
9789         * man/mdate.sh: Clear LANGUAGE.
9791 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
9793         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9794         * pic/lex.c: New COMMAND keyword.
9795         * pic/pic.y (print_args, print_arg): New rules.
9796         (placeless_element): Use print_args for PRINT.
9797         New COMMAND element.
9799 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
9801         * troff/input.c (terminal): Handle missing argument correctly.
9803         * pic/pic.y (text_expr): New rule.
9805         * pic/pic.y: Implement := operator.
9807 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
9809         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9810         mdoc.
9812 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
9814         * ps/devps/dingbatsrmap: Include this in the distribution.
9816         * macros/tmac.doc: Replace with new version from 2nd Networking
9817         Release. Fix loading of doc-* files.
9818         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9819         * macros/tmac.doc.old: New file.  Apply fixes that had been
9820         applied to old tmac.doc.
9821         * macros/tmac.andoc: Check that we're running under groff.
9822         * macros/Makefile: Rework.
9824 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
9826         * tbl/table.h (format_type): 
9827         * refer/token.h (token_type): If NESTED_TYPES is defined, use
9828         typedef to make these types visible at file scope.
9829         * Makefile: Add NESTED_TYPES configuration option.
9831         * troff/div.c (mark): At the top level use the value of
9832         nl_reg_contents rather than the current vertical position.
9834 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
9836         * tty/tty.c: Implement \D for horizontal or vertical lines.
9837         (tty_printer::set_char): Use vec_used+2 as serial number.
9838         Don't allow size of vector to exceed USHRT_MAX-2.
9839         Split off part into...
9840         (tty_printer::add_char): New function.
9841         (tty_printer::draw): New function.
9842         (compare_glyph): Handle equal serial numbers.
9843         (tty_printer::end_page): Handle overstruck characters from \D.
9844         (main, usage): Implement -d option.
9846 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
9848         * tbl/main.c (process_format):
9849         * eqn/text.c (split_text):
9850         * troff/input.c (token::next): Use inner block for declarations
9851         with initializers in switch statement.
9853 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
9855         * pic/common.c (common_output::dash_line): Cope with zero-length
9856         lines.
9858 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
9860         * Version 1.04 released.
9862 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
9864         * macros/tmac.an (TH): Define a macro an-init to define variables
9865         based on command line arguments.
9866         (an-header): Call it.
9868 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
9870         * Makefile (install.mm): Rename to install.dwbmm.
9872         * Makefile: Integrate mm.
9873         * mm: New directory.
9875 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
9877         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9878         <sys/types.h>.
9880         * pic/troff.c (troff_output::simple_spline,
9881         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9882         shadowing parameter.
9884         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9886         * lib/ptable.h: Add explicit casts when converting from unsigned
9887         long to unsigned.
9889         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9890         * dvi/devdvi/Makefile: Install SA, SB.
9892         * refer/indxbib.c: Add declaration of mktemp.
9894         * refer/lookbib.c: Add declaration of isatty.
9896 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
9898         * pic/lex.c (interpolate_macro_with_args):  While collecting
9899         arguments, keep track of whether we're in a string.
9901 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
9903         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9904         down with \v, so as to avoid problems with top of page trap
9905         setting no space mode.
9907 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
9909         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9911 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
9913         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9914         Improve error message.
9916 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
9918         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9919         printf("%03o");
9921 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
9923         * groff.c (possible_command::execp): Always use _exit() after a
9924         failed exec.
9926         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9927         NO_SYS_WAIT_H   configuration options.
9928         * groff.c: Use these options.  Use POSIX-style macros to extract
9929         fields from the status returned by wait().
9931 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
9933         * tbl/table.c (table::compute_separation_factor): Allow the
9934         separation factor to drop to 0.
9936 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
9938         * refer/search.c: Include <errno.h>.
9940 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
9942         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9944         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9945         C++. 
9947         * pic/lex.c (input_stack::bol): Move definition out of class body.
9949         * pic/main.c: On MSDOS munge argv[0].
9951         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9953         * lib/ptable.c (hash_string): Use unsigned long rather than
9954         unsigned.
9955         (next_ptable_size): Use unsigned rather than int.  Give an error
9956         message if we've hit the largest table size.
9957         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
9958         table size.
9960         * pic/object.h (object_spec): Make flags unsigned long.  Declare
9961         flags as const unisgned long rather than as enums.
9963         * pic/output.c: Deleted.
9965         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9967         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9968         Add additional argument.
9969         (line_entry::note_double_vrule_on_{left,right}): Set value of
9970         douvle_vrule_on_{right,left} flag according to argument.
9971         (simple_line_entry::simple_print,
9972         simple_line_entry::double_line_print): If adjacent to double vrule
9973         on a corner extend rather than shorten the rule by half the double
9974         vrule sep.
9976         * troff/number.c (parse_term): In checking for overflow, handle the
9977         case where the current horizontal position is negative.
9979 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
9981         * pic/object.c (draw_arrow): Check for object having zero length.
9983 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
9985         * eqn/main.c (do_file): Split off inline equation handling into...
9986         (inline_equation): New function.  Search for starting delimiter
9987         using...
9988         (delim_search): New function. Don't recognize a delimiter that
9989         occurs in the name of an escape sequence, number register, string
9990         etc.
9992 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
9994         * eqn/delim.c (delim_box::compute_metrics): Don't call
9995         define_extensible_string if left is 0.
9996         (delim_box::output):  Don't print the left delimiter if left is 0.
9997         (delim_box::debug_print): Check for left == 0 before calling printf.
9999 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
10001         * troff/Makefile (majorminor.c): Include only digits in
10002         minor_version.
10004 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
10006         * refer/dirnamemax.c: new file.
10007         * refer/genlimits.c: Deleted.
10008         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
10009         Don't check path length.
10010         * refer/Makefile: Add dir_name_max.o; delete genlimits.
10011         * Makefile: Add PATHCONF_MISSING option.
10013         * refer/indxbib.c (get_cwd): New function.
10014         (main): Use get_cwd().
10015         * lib/getcwd.c: New file.
10016         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
10017         GETCWD in SUBFLAGS.
10018         * lib/Makefile: Compile getcwd.o.
10020         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
10021         userdict.
10023         * refer/indxbib.c (main): Check success of mktemp.
10025         * lib/tmpfile.c: New file.
10026         * lib/Makefile: Add tmpfile.c.
10027         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
10028         * ps/ps.h: Delete declaration of mktemp().
10029         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
10030         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
10031         * driver/driver.h: No need now to include errno.h.
10033         * everywhere: Set errno to 0 before calling fopen().
10035         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
10036         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
10037         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
10039 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
10041         * troff/env.h (translate_space_to_dummy): Declare it.
10042         * troff/env.c (environment::space_newline, environment::space):
10043         If translate_space_to_dummy is set then make the width of spaces 0.
10044         * troff/input.c (translate): If the second character of a
10045         translation is a space, translate to unbreakable space.  If the
10046         first character is a space, set or clear translate_space_to_dummy
10047         according to whether the second character is \&.  Weird!
10049 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
10051         * groff.c (run_commands): Don't use non-zero exit code because a
10052         command gets SIGPIPE.
10054         * groff.c, groff.sh: Use -mXps with -TXps.
10056         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
10057         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
10058         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
10059         (ps_printer::special): New specials invis and endinvis.
10060         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
10061         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
10062         (ps_printer::end_page): Check that invis_count == 0.
10063         (ps_printer::invis_count): New member.
10064         (ps_printer::ps_printer): Initialize invis_count to 0.
10066         * troff/env.c (environment::hyphenate_line): Hyphenation
10067         indicator at beginning of word inhibits splitting after -, \(em
10068         etc.
10070         * pic/pic.y (element): Allow another element to follow } without
10071         any intervening separator.
10073 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
10075         * pic/lex.c (get_delimited): Allow tabs before delimiter.
10077 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
10079         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
10080         declaration of wait() in header files.
10081         * Makefile: Get rid of -DHAVE_UNION_WAIT.
10083         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
10085         * lib/lib.h: Declare return type of strerror as char *.
10087         * man/Makefile: Add g flag to sed substitutions.
10088         * Makefile (shgroff, bindist): Likewise.
10090 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10092         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10093         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10094         userdict.
10096 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10098         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10099         userdict.
10101 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10103         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10104         group.
10106 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10108         * troff/input.c (define_number_reg):  If currently undefined,
10109         don't define it if the argument is an invalid expression.
10111         * Makefile: Ignore return value of `if' commands without `else'
10112         parts.
10114         * Makefile: Split up CPPDEFINES into a series of separate
10115         configuration options.
10117         * troff/input.c (init_registers): Use time_t instead of long
10118         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10119         than passing pointer.
10120         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10122         * lib/Makefile (fontpath.h): Use gendef.
10124 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10126         * troff/input.c (input_iterator::shift): Delete argument name.
10127         * troff/node.c (suppress_output_file::really_begin_page,
10128         suppress_output_file::really_transparent_char, node::ascii_print,
10129         node::tprint): Delete names of unused arguments.
10131 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10133         * refer/label.y (string):  Pass $4 to command_error.
10135 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10137         * Version 1.03 released.
10139 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10141         * Makefile: Pass definition of SHELL in SUBFLAGS.
10143         * gendef: New file.
10144         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10145         ps/Makefile: Use gendef to construct header files that are
10146         constructed from the Makefile.
10148         * macros/Makefile: make all should build stripped version of tmac.e.
10150         * refer/Makefile (clean): Remove y.output.
10152 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10154         * ps/pfbtops.c (main): Add -v option which prints out a version
10155         number.
10156         * ps/Makefile (pfbtops): Link with libgroff.a.
10158 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10160         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10161         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10163         * refer/lkbib.c (main): Always terminate reference with blank
10164         line.
10165         * refer/lookbib.c (main): Likewise.
10167         * refer/linear.c (file_buffer::load): Check that the file is not a
10168         binary file.
10170         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10171         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10172         Delete second inclusion of <sys/param.h>.
10174 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10176         * troff/token.h (token::special): Deleted.
10178         * tbl/main.c (process_format): Rework so that opt->tab_char is
10179         recognized only when appropriate.
10181         * ps/Makefile (clean): Remove pfbtops.
10183 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10185         * lib/font.c (text_file::next): Don't return if we have got a
10186         blank line.
10188 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10190         * refer/refer.c (store_reference): Get hash code from old_table[i]
10191         when rehashing the table.
10193 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10195         * eqn/box.c (box::top_level): Save size and prev size using \R and
10196         restore it afterwards. Set the size to the size at the beginning
10197         of the line.
10198         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10199         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10201         * refer/Makefile (limits.h): Use ./genlimits.
10203 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10205         * refer/index.c: Delete declarations of stat() and fstat().
10207 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10209         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10211 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10213         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10215 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10217         * troff/input.c (token::get_char): Handle \e.
10219         * refer/linear.c: Delete declarations of fstat() and stat().
10221 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10223         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10224         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10226 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10228         * troff/input.c (do_define_macro): Improve error handling for end
10229         of file while defining macro.
10231 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10233         * eqn/box.h: Fix declaration of set_gsize.
10234         * eqn/box.c (set_gsize): Make argument const char *.
10235         (gsize): Declare as char *.
10236         * eqn/main.c (main): Don't convert gsize to int.
10237         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10239         * Version 1.02 released.
10241 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10243         * macros/tmac.andoc: New file.
10244         * macros/Makefile: Install tmac.andoc.
10246         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10247         operator new and delete on OP_DELETE_BROKEN not being defined.
10248         * Makefile: Mention OP_DELETE_BROKEN.
10250 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10252         * Makefile (bindist): Pass SUBFLAGS.
10254 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10256         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10258         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10259         parameter.
10261         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10263         * ps/ps.h, ps/psrm.c: Make comment_table and
10264         header_comment_table local to resource_manager::process_file.
10266         * groff.sh: With -TXps pass -printCommand option to gxditview.
10268         * groff.c (possible_command::print): Implement using
10269         append_arg_to_string.
10271         * xditview: Merge in new implementation with own ChangeLog.
10273 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10275         * groff.c (main): Implement PRINT_OPTION.
10276         (append_arg_to_string): New command.
10277         (device_table): Set PRINT_OPTION flag for Xps.
10279 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10281         * troff/groff.h: Rename to troff.h.
10283         * pic/lex.c (lookup_keyword, docmp): New functions.
10284         (get_token): Use new lookup_keyword.
10285         Don't include key.h.
10286         * pic/key.[ch], pic/pic.gperf: Deleted.
10287         * pic/Makefile: Remove gperf stuff.
10289         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10290         into output.h.
10291         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10293         * troff/Makefile, troff/node.c: Move definition of
10294         STORE_WIDTH into node.c.
10296         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10298 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10300         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10301         dvi/devdvi/texb.map: Add lq and rq.
10302         dvi/devdvi: Regenerate fonts.
10303         * ps/devps/textmap: Add lq and rq.
10304         * ps/devps: Regenerate fonts.
10305         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10306         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10308         * pic/object.c (position_rectangle): When checking radius
10309         cope with possiblity that width or height is negative.
10310         (box_object::box_object): Have separate xrad and yrad with
10311         signs matching signs of dim components.
10312         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10313         (box_object::print): With rounded boxes use absolute values
10314         for dim and rad arguments.
10316         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10317         in fontpath.h.
10319         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10321         * various files: Add explicit destructors to keep Saber CC +d
10322         happy.
10324 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10326         * eqn/box.c (box::top_level): Restore fonts correctly after
10327         font changes in line containing inline equation.  Also
10328         restore previous font as well as current font.
10329         * eqn/pbox.h: Define necessary string and register names.
10331         * troff/input.c (token::next): Case 'R' calls do_register.
10332         (do_register): New function.
10334 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10336         * groff.c, groff.sh: Support Xps device.  Allow each device
10337         to have a pseudo_name and a real_name.
10339         * groff.c (run_commands): Don't print `Broken pipe' messages.
10341         * ps/pfbtops.c: New file.
10342         * ps/Makefile: Add pfbtops.
10344         * troff/number.c (parse_term): Improved error message.
10346 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10348         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10350         * Makefile: Integrate refer.
10351         * refer: New directory.
10352         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10353         man/lkbib.man: New files.
10354         * man/Makefile: Support refer man pages.
10356         * lib/lib.h: Declare is_prime.
10357         * lib/prime.c: New file.
10359         * troff/input.c (macro_source): New function.
10360         (init_input_requests): Bind "mso" to macro_source.
10362         * troff/env.c (environment::possibly_break_line): Maintain
10363         pointer to pointer to node to be split in ndp so as to avoid
10364         using address of freed node.
10366         * troff/env.c (environment::hyphenate_line): Maintain pointer to
10367         pointer to first node to be hyphenated in startp so as to
10368         avoid using address of freed node.
10370         * troff/env.c (class trie, class hyphen_trie): Make the
10371         elements of the trie be of type char not unsigned char.
10372         Declare arguments to be const char* instead of unsigned char *.
10373         
10374         * troff/env.c (hyphenate): Initialize hbuf[0].
10376         * troff/input.c (set_string): Declare p to be char * and cast
10377         *p to unsigned char when necessary.
10379         * troff/input.c (do_define_macro): Declare s to be const
10380         char*. Cast element to unisgned char when necessary, Declare
10381         d to be an int.  Handle EOF better.
10383         * troff/Makefile, troff/input.c: Different scheme for passing
10384         definitions of MACROPATH, HYPHENFILE and DEVICE.
10386 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
10388         * tty/devascii/R.proto: Delete entry for em.
10389         * tty/devlatin1/R.proto: Likewise.
10391 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
10393         * troff/input.c (translate): Stop when we get a space. Treat eof
10394         like newline.
10396         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10398 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
10400         * tbl/main.c (process_format): A font name following a `f'
10401         modifier that starts with a digit can be only one character long.
10402         Also deal with EOF on the second character of the font name.
10404 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
10406         * troff/input.c (token::next): Turn \~ into an
10407         unbreakable_space_node.
10408         * troff/node.c (unbreakable_space_node): New class.
10409         * troff/node.h: Declare it.
10411 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
10413         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
10414         it's >= 0, before outputting it as a single byte.
10416 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
10418         * lib/font.c: Make font_char_metric::code an int.
10419         (font::get_code): Change return type to int.
10420         (font::load): Allow code to be arbitrary integer.
10421         * lib/font.h (font::get_code): Change return type to int.
10422         (font::number_to_index): Change argument type to int.
10423         * troff/input.c (token::next):  In case 'N', allow any value.
10424         Store value in token::val.
10425         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10426         (token::get_char, token::add_to_node_list, token::process): Get
10427         number from val.
10428         (charinfo::set_number): Change argument to int.
10429         (charinfo::get_number):  Require that NUMBERED flag be set.
10430         (get_charinfo_by_number): Store numbered characters not between 0
10431         and 255 in a dictionary.
10432         * troff/charinfo.h (get_charinfo_by_number): Change argument type
10433         to int.
10434         (charinfo::number): Change type to int.
10435         (charinfo::set_number): Change type of set_number to int.
10436         * troff/node.c (troff_output_file::put_char_width,
10437         troff_output_file::put_char): Test whether character is numbered
10438         using charinfo::numbered().
10439         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10440         values of num.
10441         * lib/nametoindex.c: New implementation to cope with arbitrary
10442         number characters.
10444         * troff/input.c (token::operator==): Test val for
10445         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10446         TOKEN_SIZE.
10448         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10449         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
10451 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
10453         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
10454         variable.
10456         * all Makefiles: rm targets of cp and >.
10458         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10459         it.
10461         * eqn/lex.c (def_table): Add dollar.
10463 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
10465         * troff/input.c (do_width): Push back newline before closing delim
10466         like do_bracket.
10468 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
10470         * groff.c (possible_command::prepend_arg): New function.
10471         (main): Prepend device -m option.
10472         * groff.sh: Put device -m options before command-line options.
10474 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
10476         * macros/tmac.an (IP): Quote argument to TP.
10478         * ps/ps.c (main): New option -b, which sets...
10479         (broken_flags): New variable.
10480         (ps_printer::~ps_printer): Incorporate the setup section in the
10481         prolog if (broken_flags & NO_SETUP_SECTION).
10482         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10483         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10484         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10485         ps_printer::print_needed_font_comment,
10486         ps_printer::print_supplied_font_comment,
10487         ps_printer::print_include_font_comments,
10488         ps_printer::lookup_doc_font, ps_printer::download_fonts,
10489         ps_printer::read_download_file, read_document_fonts, add_font,
10490         skip_line, parse_fonts_arg, document_font::document_font,
10491         document_font::~document_font, document_font::download,
10492         ps_output::include_file):  Deleted.
10493         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10494         rather than %!PS-Adobe-2.0.  Make calls to
10495         resource_manager::need_font for each font that we used. Replace
10496         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10497         print_supplied_font_comment, print_needed_font_comment by call to
10498         resource_manager::print_header_comments. Output %%Orientation
10499         comment. Output %%Requirements: numcopies comment if ncopies > 1.
10500         Don't output the prolog directly.  Instead call
10501         resource_manager::output_prolog.  Only define #copies when ncopies
10502         > 1.  Delete calls to print_include_font_comments  and
10503         download_fonts.  Add call to resource_manager::document_setup.
10504         (ps_printer::do_file): Call resource_manager::import_file instead
10505         of including it ourselves.
10506         (ps_printer::do_import): Likewise.  Also don't call
10507         merge_import_fonts. Push userdict on the dictionary stack before
10508         and pop it afterwards.
10509         Move declaration of ps_output into ps.h.
10510         * ps/psrm.c: New file implementing resource_manager class.
10511         * ps/ps.h: New file declaring ps_output and resource_manager
10512         classes.
10513         * ps/devps/zapfdr.ps:
10514         * ps/devps/symbolsl.ps:
10515         * ps/devps/prologue:  Use 3.0 conventions.
10516         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10517         Add default definition of BROKEN_SPOOLER_FLAGS.
10518         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
10519         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10521 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
10523         * etc/grog.pl: New file.
10524         * Makefile (GROG): New variable.
10525         Add GROG to SUBFLAGS.
10526         * etc/Makefile (GROG): New variable.
10527         (install.nobin): Install $(GROG) rather than grog.sh.
10529 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
10531         * eqn/special.c (special_box::compute_metrics): Make the input and
10532         output strings the same.  Get the new height and depth from the
10533         predefined height and depth registers.  Also make subscript kern
10534         and skew available.
10535         (special_box::compute_subscript_kern, special_box::compute_skew):
10536         New functions.
10538         * eqn/box.c (pointer_box::compute_skew,
10539         simple_box::compute_metrics, box::top_level)
10540         * eqn/text.c (prime_box::compute_metrics,
10541         prime_box::comput_subscript_kern)
10542         * eqn/limit.c (limit_box::compute_metrics):
10543         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10544         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10545         negative numbers in `nr' requests with a leading 0.
10547 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
10549         * eqn/special.c: New file.
10550         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
10551         Add new rule for simple.
10552         * eqn/lex.c (token_table): Add SPECIAL.
10553         * eqn/box.h: Declare make_special_box.
10554         * eqn/Makefile: Add special.[co].
10556 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
10558         * ps/devps/prologue: Possibly set packing to true while defining.
10559         Create grops dictionary here.  Initialize local variables before
10560         defining procedures.
10561         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10562         the dictionary stack. Set strokeadjust and overprint to false if
10563         the relevant operators are defined.
10564         (PEND): New procedure.
10565         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10566         prologue.  Do everything else in the setup section.
10567         (ps_printer::do_import): Just call PBEGIN and PEND around the
10568         picture. Also push userdict before, and pop it afterwards.
10570 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
10572         * troff/node.c (bracket_node::tprint): Brackets were being printed
10573         1m too low.
10575         * macros/tmac.an (SH, SS): Set fill mode.
10577 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
10579         * troff/div.c (top_level_diversion::begin_page): Set
10580         high_water_mark to 0.
10582 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
10584         * man/mdate.sh: New file.
10585         * man/mdate.c: Deleted.
10586         * man/Makefile: Use mdate.sh instead of mdate.
10587         (mdate): Deleted.
10589         * eqn/lex.c (do_gsize): Supply missing argument to error message.
10591 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
10593         * man/mdate.c: New file.
10594         * man/*.man: Replace modification date by @MDATE@.
10595         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10596         (mdate): New target.
10598         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10599         Remove illegal input characters.
10601 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
10603         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10605 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
10607         * troff/div.c (begin_page): Change behaviour when
10608         !first_page_begun and !break_flag.
10610         * troff/input.c (do_name_test): Return 0 if argument is empty.
10612         * troff/input.c (read_long_escape_name): Require closing ] to be
10613         at same input level as opening [.
10615         * troff/input.c (read_increment_and_escape_name): New function.
10616         (get_copy, process_input_stack): Use this for \n.
10618 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
10620         * troff/div.c (top_level_diversion::begin_page): Ignore the
10621         current value of page_number if !first_page_begun.
10623         * groff.c (main): Fix declaration of buf.
10625         * troff/input.c (do_name_test): New function.
10626         (token::next): Implement \A.
10627         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10628         (token::description, token::add_to_node_list, token::process):
10629         Handle TOKEN_ESCAPE.
10630         * troff/token.h: New token TOKEN_ESCAPE.
10632 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
10634         * pic/main.c (do_picture): Allow space before and after filename
10635         following `<'.  Check that the filename is not empty.
10637 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
10639         * Version 1.01 released. 
10641         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10643         * dvi/tmac.dvi: ftr HR to H.
10645         * macros/tmac.e: Round up computation of $r.
10647         * xditview/tmac.X:  Don't give up completely in compatibility mode.
10648         Use \n(.s instead of \n[.s].
10650         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10651         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10652         Add u to factors inside \s[...]. Rename frac to dvi-frac.
10653         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10654         short names in the char definitions.
10656         * ps/tmac.ps: Don't give up completely in compatibility mode.
10657         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10658         quote in front of \n(.s. Add u to factors inside \s[...].
10660 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
10662         * tty/tmac.tty: Call the nroff request.
10664         * macros/tmac.e ((x, )x):  Better definitions that work properly
10665         in a diversion.
10666         (@0, @1): Helper macros for (x.
10668         * macros/tmac.e ($s, hl): Use \l rather than \D.
10670         * tty/tmac.tty: Make it work better in compatibility mode.
10671         (pchar): Rename to tty-char.
10673         * macros/tmac.e (@E): New macro.
10674         (r, i, b, rb, bi): Use @E.
10676         * macros/tmac.e (@F): Don't use (;...) syntax.
10678         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
10679         it was modified for groff.
10681         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10683         * macros/tmac.e (<., .>): Removed.
10684         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10686         * macros/tmac.e: Remove check that groff is being used.
10688         * macros/tmac.e (@C): Change families only if using groff; turn
10689         compatibility mode off while changing familes. Save compatibility
10690         mode before changing families and restore it afterwards.
10692         * macros/tmac.e (@h): Remove test for offset + line length.
10694         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
10695         (lo, th, ac): Define to call @S instead of using als.
10697         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10698         the ratio of the vertical spacing to the point size in units
10699         expressed as a percentage.  Use these instead of $10r and $10R,
10700         Delete $10r and $10R.
10702         * lib/font.c (font::load): In default computation of space_width,
10703         divide by sizescale.  Use scale_round.
10705         * macros/tmac.an (TP): Don't call `nf'.
10706         (an-do-tag): Don't call `fi'.
10708 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
10710         * troff/input.c (process_input_stack): Handle the case where
10711         spaces at the beginning of an input line are followed by a
10712         newline.
10714 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10716         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10717         * groff.sh: Use pic -x with the dvi device.
10719         * dvi/devdvi/FontMakefile (H): Don't use -s.
10721         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10722         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10723         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10724         in FONTS.
10726 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10728         * ps/psfig.diff: New file.
10729         * ps/tmac.psfig: New file.
10731 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10733         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10734         (]-): Don't call ref*do-tl.
10736         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10738         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10739         (fn@do-FS): Rename to fn*do-FS.
10741         * troff/input.c (transparent_translate): New function.
10742         (process_input_stack): Apply transparent_translate before calling
10743         diversion::transparent_output(unsigned char).
10745 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10747         * troff/input.c (do_define_macro): Define the macro before calling
10748         skip_line.
10750         * xditview/Makefile: Add DEVICES variable.  Change install target
10751         to use this.
10753 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10755         * groff.c (run_commands): Handle the possibility that there are
10756         child processes other than those forked by us.
10758 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10760         * lib/string.c (string::append): New function.
10761         * lib/stringclass.h: Declare it.
10763 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
10765         * eqn/main.c (main): New option -N which sets
10766         no_newline_in_delim_flag. 
10767         (do_file): If no_newline_in_delim_flag is set don't allow newlines
10768         in delimiters.
10769         * groff.c (main): Pass -N on to eqn.
10770         (help, synopsis): Mention -N.
10771         * groff.sh: Implement -N.
10773 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
10775         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10776         (]-): Call ref*do-tl if ref*need-tl is non-zero.
10777         (XP): Allow as initializer.
10779 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
10781         * troff/env.c (environment::wrap_up_field): If field_spaces are
10782         non-zero and we have a current_tab, subtract padding from
10783         tab_distance.  If this makes tab_distance <= 0, use the next tab
10784         stop instead.  If there isn't any next tab or it's a left tab,
10785         wrap up the current tab.
10786         (environment::start_field): Initialize tab_precedes_field.
10787         (environment::wrap_up_tab): If there's a current field, update
10788         pre_field_width, field_distance and tab_precedes_field.
10789         * troff/env.h (environment::tab_precedes_field): New member.
10791 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
10793         * ps/ps.c (ps_printer::do_file): New function.
10794         (ps_printer::special): Bind to `file' special.
10795         (ps_printer::do_exec): Set ndefined_styles to 0.
10797 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
10799         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10800         Avoid stripping first character from the start of unrecognized
10801         escapes.  Use lex_error instead of error to report errors.
10802         * eqn/lex.c (get_token): Rework handling of escapes.
10803         (lex_error): Move declaration into...
10804         * eqn/eqn.h.
10806         * xditview/xditview.c (main): Make -page option work.
10808         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10810 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
10812         * macros/tmac.s (B2): Correct size of box.
10814 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
10816         * macros/tmac.s (B2): Postpone drawing the box until in the
10817         top-level diversion.
10819         * tty/tmac.tty: Add font translations for C, CR, CW.
10821         * groff.c (synopsis, help): Document -i.
10822         * groff.sh: Implement -i.
10824         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10825         Simplify the construction of SN.
10827         * troff/number.c (parse_term): Give `|' a higher precedence.
10828         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10829         accordingly.
10831         * macros/tmac.s (B2): Use par@finish instead of par@reset.
10833 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
10835         * lib/string.c (string::move): New function.
10836         * lib/stringclass.h: Declare it.
10838 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
10840         * troff/env.c (distribute_space): Add optional argument
10841         `force_forward'.
10842         (environment::wrap_up_field): Call distribute_space with
10843         `force_forward' argument of 1.
10845 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
10847         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10848         Inline it.  Move reallocation into...
10849         (string::grow1): New function.
10850         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10851         dependencies to include library header files.
10852         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10854 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
10856         * macros/tmac.s (@NH): Use the same number registers than -ms does
10857         for the heading level counters.  Use the same string that -ms does
10858         for the number for this heading.
10860 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
10862         * lib/new.c (operator new): Cast result of malloc to char *.
10864         * troff/input.c (spring_trap, lookup_request): Add assert that nm
10865         is not null.
10867 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
10869         * groff.c (main): Support -i.
10871 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
10873         * pic/pic.h: Include <osfcn.h>.
10875         * ps/ps.c: Add declaration of mktemp.
10877         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10878         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10879         argument as union wait *.
10880         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10881         argument to union wait *.
10883 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
10885         * tty/tmac.tty: Add definition of \(co.
10887         * pic/object.c (make_arc): Only increase radius when radius
10888         strictly less than d.
10889         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10890         more than once.
10892         * troff/env.c (environment::environment(symbol),
10893         environment::environment(const environment *)):  Initialize
10894         input_trap_count.
10896 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
10898         * tbl/main.c (main): Add exit(0).
10900         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10902         * pic/main.c (main):
10903         * eqn/main.c (main):
10904         * tbl/main.c (main):
10905         * etc/soelim.c (main):
10906         * driver/printer.c (printer::~printer):
10907         * troff/node.c (real_output_file::~real_output_file,
10908         real_output_file::flush):  Check for errors on stdout.
10910         * most files: Add 1991 to copyright notice.
10912         * macros/tmac.s: Don't test \n(.x and \n(.y.
10914         * troff/input.c (token::next): Rename `escape_char' label to
10915         `handle_escape_char' and `normal_char' label to
10916         `handle_normal_char'.
10918 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
10920         * groff.c (main, synopsis, help): Support -a option.
10921         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
10922         to trflags while parsing options.
10924 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
10926         * troff/number.c (parse_term): With `m', `M' and `n' scale
10927         indicators, convert scale factor to hunits before scaling.
10929 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
10931         * lib/font.c (scale_round): Better test for overflow when n is
10932         negative.
10934 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
10936         * tbl/main.c (process_format): Add second argument of type
10937         options*. Change callers.  Allow opt->tab_char as well as '\t'
10938         between format items.
10940 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
10942         * macros/tmac.an (PD): With no arguments, make sure register PD is
10943         at least \n[.V].
10944         (TH): Call PD with no argument, instead of setting register PD
10945         directly.
10947 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
10949         * Version 1.00 released.
10951 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
10953         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10955         * dvi/devdvi/DESC: Mount CW instead of CR.
10957         * dvi/tmac.dvi: Add definition of \(tm.
10959         * dvi/devdvi/texsy.map: Add lh, and rh.
10960         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10961         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10963         * dvi/devdvi/FontMakefile: Generate H from cmss10.
10964         * dvi/devdvi/Makefile: Install H.
10965         * dvi/devdvi/H: New file.
10967 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
10969         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10970         be 0.
10972 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
10974         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10976         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10978         * macros/tmac.s (@EN): Handle the case where the equation is empty
10979         but the label is not.
10981 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
10983         * troff/groff.h: New warning category WARN_SPACE.
10984         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10985         WARN_SPACE to warning_table.
10986         (interpolate_macro): Give a warning of type WARN_SPACE if the name
10987         is longer than two characters and is not defined, but the first
10988         two characters do make a defined name.
10990         * PROBLEMS: New file.
10992         * CHANGES: New file.
10993         * README-0.6, README-1.00: Deleted.
10995         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10996         * xditview/devX75/Makefile: Make devX75-12.
10997         * xditview/devX100/Makefile: Make devX100-12.
10999         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
11000         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
11002 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
11004         * README-0.7: Rename to README-1.00.
11006         * macros/tmac.pic: New file.
11007         * macros/Makefile (install.nobin): Install tmac.pic.
11009 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
11011         * troff/env.c (hyphen_word): Correct the test for whether the
11012         token is a hyphen.  Reset npos to 0.
11014         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
11016 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
11018         * macros/tmac.s (ds*common-end): Call par*reset.
11019         (PE): Likewise.
11020         (par@reset-indent): Deleted.
11022         * macros/tmac.s (@IP): Divert the label.
11024 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
11026         * xditview/draw.c (setGC): Use a line width of .1m rather than
11027         .04m by default; round rather than truncate value.
11029         * tbl/table.c (class empty_entry): New class.
11030         (empty_entry::empty_entry, empty_entry::line_type): New functions.
11031         (table::add_entry): Represent empty entries by objects of type
11032         empty_entry.
11033         (table_entry::line_type): Return -1.
11034         (table::determine_row_type): Ignore entries with line_type 0.
11035         Treat type -1 as non-lines.
11037 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
11039         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
11040         macros/tmac.s: Rename \(-d to \(Sd.
11042 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
11044         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
11045         * xditview/libXdvi/DviChar.c: Likewise.
11046         * dvi/devdvi/texsy.map: Add `<<', `>>'.
11048 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
11050         * troff/div.c (top_level_diversion::begin_page): Call
11051         init_output() if the_output is 0.
11053 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
11055         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
11056         ESCAPE_c.
11057         (get_copy): Turn \E into ESCAPE_E.
11058         (token::process, asciify): Handle ESCAPE_E.
11060         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
11061         (RD): New macro.
11062         (DS): Implement `.DS R'.
11064 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
11066         * macros/tmac.s (FS): New macro.
11068         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
11070         * macros/tmac.s (cov*tl-init): Remove after first execution
11071         instead of aliasing to @nop.  Call top of page macro explicitly
11072         instead of setting trap; call @init first.  Set pg@top as top of
11073         page macro.
11074         (cov*auto-init): Deleted.  Set cov*tl-init instead of
11075         cov*auto-init as top of page trap. 
11076         (TL, LP): Do a break instead of calling cov*tl-init.
11077         (cov*print): With RP format but no TL, alias FS and FE to @FS and
11078         @FE; in this case also give a warning and always start another
11079         page. No need to set pg@top here.
11080         (cov*tl-init): Rename to cov*first-page-init.
11082         * macros/tmac.s (RP): Do `.pn 0'.
11083         (cov*tl-init): With RP format don't do `.pn 0'.
11085         * macros/tmac.s (pg@cs-top): Set no space mode.
11087         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
11088         (cov*ab-init): Alias TL, AU and AI to these.
11090 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11092         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11093         (@EN): Do nothing unless \n[dl] is > 0.
11095 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11097         * pic/object.c (ellipse_object::radius): New function.
11099         * VERSION: Change version to 0.7.
11101         * tbl/table.c (block_entry::do_divert): Declare return type as
11102         void.
11103         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11105 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11107         * troff/column.c: New file.
11108         * troff/Makefile: Corresponding changes.
11110         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11111         Friend of vunits.
11113         * troff/div.c (top_level_diversion::space): If the space causes
11114         the first-page transition and springs a trap, truncate the space
11115         to 0.
11117 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11119         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11120         the document.
11122         * pic/troff.c (troff_output::line_thickness,
11123         troff_output::set_fill): Do a horizontal motion to compensate for
11124         the width of the \D escape sequence.
11126 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11128         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11129         (not X75).
11131         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11132         to printf.
11134         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11135         Supply empty definition.
11136         (text_entry::simple_print, simple_text_entry::simple_print):
11137         Delete declarations.
11138         (table::add_entry): Represent empty entries by objects of type
11139         `simple_entry'.
11141 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11143         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11145         * tbl/table.c (left_text_entry::add_tab): New function.
11147         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11148         initialize like LP.
11150 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11152         * troff/env.c (environment::start_field): Give an error message if
11153         there is no next tab.
11155 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11157         * troff/env.c (hyphenate): Skip initial elements with zero
11158         hyphenation code.
11160         * macros/tmac.s (par@init): Keep VS in points rather than units.
11162 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11164         * pic/main.c (main): Implement `-c' option.
11165         * pic/output.h: Declare make_tpic_output().
11166         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11167         protected.
11168         (tpic_output): New class.
11169         (tpic_output::tpic_output, tpic_output::set_pen_size,
11170         tpic_output::command, make_tpic_output): New functions.
11172 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11174         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11175         if they're not already defined.
11176         * tbl/table.c (init_output): Don't test \n(.g.
11178         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11179         `d', `r' and `c' conditions even in compatibility mode.
11181 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11183         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11184         box.
11186 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11188         * troff/env.h (environment::prev_line_interrupted): New member.
11189         (environment::get_prev_line_interrupted): New function.
11190         * troff/env.c (environment::newline): Set prev_line_interrupted.
11191         (environment::environment(const environment *),
11192         environment::environment(symbol)): Initialize
11193         prev_line_interrupted.
11194         * troff/input.c (process_input_stack): Don't give special
11195         treatment to space and newline at the beginning of the line if the
11196         previous line was interrupted.
11198 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11200         * eqn/eqn.y: Disallow PRIME by itself.
11201         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11202         PRIME.
11203         (def_table): Remove definition of '.  Define prime to be `.
11205         * eqn/eqn.y: Split off part of rule `script' into a new rule
11206         `nonsup'.
11208 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11210         * macros/tmac.s ({, }): New string aliases.
11212 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11214         * README-0.7: New file.
11216 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11218         * macros/tmac.s: New file.
11219         * man/groff_ms.man: New file.
11220         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11221         * Makefile.bd: Similarily.
11222         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11223         definition of TMAC_S.
11224         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11225         * macros/TODO: New file.
11227 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11229         * troff/env.c (right_justify): New function.
11230         (init_env_requests): Bind this to request "rj".
11231         (center_lines): Set right_justify_lines to 0. If we get a bad
11232         integer, center 1 line.
11233         (environment::environment(symbol), environment::environment(const
11234         environment *)): Initialize right_justify_lines.
11235         (environment::get_right_justify_lines): New function.
11236         (init_env_requests): Bind this to number_register ".rj".
11238         * troff/env.c (environment::choose_breakpoint): Implement
11239         hyphenation_margin and hyphenation_space.
11240         (environment::get_hyphenation_space,
11241         environment::get_hyphenation_margin): New functions.
11242         (init_env_requests): Bind these to .hys and .hym.
11243         (hyphenation_space_request, hyphenation_margin_request): New
11244         functions
11245         (init_env_requests): Bind these to hys and hym.
11246         (environment::environment(symbol), environment::environment(const
11247         environment *)): Initialize hyphenation_margin and
11248         hyphenation_space.
11249         * troff/env.h: Corresponding changes to class environment.
11251 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11253         * troff/div.c (blank_line): Always do a break.
11255         * eqn/box.c (do_text): Turn off escapes while appending text to
11256         string.
11258 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11260         * troff/input.c (while_break_request, while_continue_request): New
11261         functions.
11262         (init_input_requests): Bind these to "break" and "continue".
11263         (while_depth, while_break_flag): New variables.
11264         (while_request): Update while_depth.  Break out of loop if
11265         while_break_flag is set.
11267 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11269         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11270         rather than 0.
11272 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11274         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11276         * stringify: New file.
11277         * Makefile (groff.o): Use stringify.
11279         * xditview/tmac.X: Remove definition of \(rn.
11280         * xditview/libXdvi/DviChar.c: Remove radicalex from
11281         Adobe_symbol_map.
11283 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11285         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11286         (alphabetic_block_entry::alphabetic_block_entry,
11287         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11288         New functions.
11289         (block_entry::divert): Split off body into ...
11290         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11291         from the line length; also update the span width to dl+2n, and the
11292         alphabetic span width to dl.
11294         * driver/input.c (do_file):  While reading argument to D command,
11295         when expanding buffer, multiply szp by sizeof(int) rather than 2
11296         in the argument to memcpy.
11298         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11299         width of alphabetic columns.
11301 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11303         * troff/node.c (lookup_family): Supply second argument to lookup.
11305         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11306         search, return immediately if v is 0.
11308         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11309         (troff_output::start_picture): Set this reg.
11310         (troff_output::end_picture): Remove this reg
11311         * eqn/box.c (box::extra_space): Don't produce `\x's if
11312         EQN_NO_EXTRA_SPACE_REG is defined.
11314         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11315         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11316         character.
11318 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11320         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11321         requests.
11323         * troff/div.c (top_level_diversion::top_level_diversion):
11324         Initialize page_number to 0.
11326 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11328         * groff/troff (environment::environment(const environment *)):
11329         Initialize name to e->name, rather than "anonymous".
11331 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11333         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11334         requested_page.  Split middle part into ...
11335         (FindPage): New function.
11336         (SetValues): If we don't yet know the last page, and the requested
11337         page is greater than the current page, call FindPage.
11338         Update the font_map_string before doing this.
11340         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11341         Translate \(lh and \(rh into left and right double arrows.
11343         * troff/node.c (class hyphen_inhibitor_node): New class.
11344         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11345         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11346         hyphen_inhibitor_node::type,
11347         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11348         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11349         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11350         word.
11352 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
11354         * troff/node.h (dummy_node::get_hyphenation_type,
11355         transparent_dummy_node::get_hyphenation_type):  Declare them.
11356         * troff/node.c: (dummy_node::get_hyphenation_type,
11357         transparent_dummy_node::get_hyphenation_type): New functions.
11359 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
11361         * xditview/libXdvi/draw.c: If M_PI not defined after including
11362         math.h, then define it.
11364         * xditview/Makefile: Add definition of AR. Pass it to the submake
11365         in libXdvi.
11366         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11368 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
11370         * troff/dictionary.h (object_dictionary::alias): Declare return
11371         value as int.
11372         * troff/dictionary.c (object_dictionary::alias): Return non-zero
11373         if the old name was defined.
11374         * troff/input.c (alias_macro): Give a warning if the old name was
11375         not defined.
11376         * troff/reg.c (alias_reg): Likewise.
11378 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
11380         * troff/input.c (token::next): Delete implementation of \R.
11382         * macros/Makefile: Strip comments from tmac.e while installing it.
11384         * troff/input.c: New variable `nroff_mode'.
11385         (troff_request, nroff_request): New functions.
11386         (init_input_requests): Bind `troff' and `nroff' to troff_request
11387         and nroff_request.
11388         (do_if_request): Compute results of t and n conditions from
11389         nroff_mode.
11391         * text/text.c (split_text): Fix typo in >=.
11393         * eqn/lex.c: Add definition of `==' to def_table.
11395 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
11397         * pic/tex.c (tex_output::start_picture): Change the definitions of
11398         \graph and \graphtemp so that they work properly with Plain TeX.
11400         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11401         argument to `ar' is not less than the first.
11403         * pic/pic.y: Allow a comma between elements of the variable list
11404         in the argument to `reset'.
11406         * pic/object.c (arc_object::arc_object): Fix computation of
11407         radius.
11409         * eqn/main.c (main): Add exit(0).
11411 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
11413         * troff/div.c (begin_page): Test no_space_mode after doing the
11414         break, but still push the page ejector cookie before doing the
11415         break.  Also set the next page number after doing the break.
11416         
11417         * xditview/xditview.c (NewFile): Don't set the title and icon name
11418         if this is the first file and its name is `-'.
11419         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
11420         the X75 and X100 devices.
11421         (main): If a device has the XT_OPTION flag set and there's exactly
11422         one file argument, pass the driver -xrm and -title options to set
11423         the icon name and window title to the name of the file.
11425         * troff/env.c (environment_switch): If there was an argument but
11426         it wasn't a valid number or name, then pop an environment but
11427         don't give an error message on underflow.
11429         * troff/number.c (start_number): Correct spelling in error message.
11431         * troff/input.c (token::delimiter): Don't print an error message
11432         if err is false.
11434         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11435         ParseDrawFunction if dw->display_enable is true.
11437 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
11439         * pic/pic.y: Parse text positioning like normal attributes, so as
11440         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
11441         positioning attribute.
11443 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
11445         * tbl/main.c (process_data): When in state START while reading a
11446         text block, don't change to state MIDDLE if c is a newline.
11448 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
11450         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11451         so as to avoid shadowing parameter.
11453 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
11455         * tbl/table.c (trim_space): Deleted.
11456         (table::add_entry): Don't call trim_space.
11458 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
11460         * VERSION: Change version to 0.6.
11462         * troff/number.c (parse_expr): Make == work.
11464 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
11466         * man/grog.man: New file.
11467         * man/Makefile: Add grog.n to MAN1PAGES.
11468         * etc/grog.sh: New file.
11469         * etc/Makefile: Install grog.sh as grog.
11471 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
11473         * troff/input.c (token::next): Implement \E.
11475 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
11477         * xditview/tmac.X: Change font translations to match tmac.ps.
11479         * troff/input.c (non_empty_name_warning): Don't give a warning if
11480         `\{' terminates the name.
11482 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
11484         * ps/devps/symbol.diff: New file.
11485         * ps/devps/FontMakefile: Mention symbol.diff.
11487 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
11489         * troff/node.c (font_position): Use get_long_name to read the
11490         external_name.
11492         * troff/env.c (environment_switch): If we get a number that's < 0
11493         or >= NENVIRONMENTS, treat it like a name.
11494         Change NENVIRONMENTS to 10.
11496         * troff/groff.h: Remove definition of FONTS_MAX.
11497         * troff/node.h (class font_family): Make map a pointer instead of
11498         an array. Add a map_size member. Make it a class. Make nm const
11499         and public. Make invalidate_fontno a friend.
11500         * troff/node.c: Define font_table_size. Make font_info a pointer
11501         rather than an array.
11502         (class troff_output_file): Allocate font_position dynamically. Add
11503         nfont_positions member.
11504         (troff_output_file::set_font): Grow font_position if necessary.
11505         (troff_output_file::~troff_output_file): Delete font_position.
11506         (troff_output_file::troff_output_file): Allocate font_position.
11507         (grow_font_table): New function.
11508         (troff_output_file::really_begin_page,
11509         troff_output_file:really_copy_page): Use nfont_positions rather
11510         than FONTS_MAX.
11511         (mount_font_no_translate, mount_style): Call grow_font_table if
11512         necessary.
11513         (font_family::font_family): Allocate map.
11514         (font_family::make_definite): Grow map if necessary. Use
11515         font_table_size instead of FONTS_MAX.
11516         (font_family::~font_family): New function.
11517         (invalidate_fontno): Use font_family::map_size.
11518         (get_fontno, env_space_width, env_half_narrow_space_width,
11519         env_narrow_space_width, symbol_fotno, is_good_fontno,
11520         get_bold_fontno, make_glyph_node): Use font_table_size rather than
11521         FONTS_MAX.
11522         (next_available_font_position): Never return 0.
11524 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
11526         * ps/tmac.ps: Add font translations for compatibility with dpost.
11528 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
11530         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11531         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11532         Move definitions baseline_sep, shift_down, column_sep,
11533         matrix_side_sep into...
11534         * eqn/box.c: Add them to param_table.
11535         * eqn/pbox.h: Add declarations to pbox.h.
11537         * troff/input.c (set_string): Cast value to unsigned char *.
11539         * troff/token.h (process_input_stack): Declare it static before
11540         declaring it a friend.
11542 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
11544         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11545         and bottom.
11546         * dvi/devdvi/EX: Regenerate.
11548         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11549         transparent.
11551 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
11553         * eqn/lex.c: In defaults_table, make definition of `dot' call
11554         `dot_def'.  Don't explicitly make it roman.  Similarily for other
11555         accents.
11557         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11558         argument.
11559         (for_input::get, for_input::peek): Use this.
11560         (do_for): Add by_is_multiplicative argument.
11561         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11562         Change semantic value of optional_by to be a double plus a flag
11563         saying whethet the by clause is multiplicative.
11565         * eqn/lex.c (get_delimited_text): Remember location of start of
11566         definition.  Improve error handling when EOF is encountered.
11568         * lib/font.h: Rename handle_x_command to
11569         handle_unknown_font_command.
11570         * lib/font.c (font::load): Call handle_unknown_font_command for
11571         any unknown command in the font description file.  Don't call
11572         handle_x_command. Include the name of the command in the argv.
11573         Improve message for unknown command after kernpairs or charset
11574         command.
11575         * ps/ps.c (ps_font::handle_x_command): Rename to
11576         handle_unknown_font_command.  Remove message about `x download'
11577         command.  Give error message for wrong number of arguments.
11578         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11579         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11580         handle_unknown_font_command. Give an error message for wrong
11581         number of arguments.  Rename design_size to designsize.
11582         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11583         checksum', `designsize' instead of `design_size'.
11585 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
11587         * eqn/*.[chy]: Change underaccent to uaccent.
11589         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
11590         give it the same precedence as ACCENT.
11591         * eqn/other.c (make_underaccent_box): New function.
11592         * eqn/box.h: Declare it.
11593         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11594         def_table.
11596 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
11598         * pic/pic.y (reset_all): New function. Called in rule for RESET.
11599         (parse_init): Call reset_all.
11600         (define_variable): When defining scale reset only those
11601         pre-defined variables that are scaled.
11602         (defaults_table): Add `scale' as non-scaled value.
11604         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11605         together with the text; allow any number of positioning words;
11606         allow center as a positioning word.
11608         * pic/object.c (output::compute_scale): Get picture maximum height
11609         and width from variables called maxpswid and maxpsht.
11610         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11612 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
11614         * pic/object.c (object_spec::make_text): Multiply textht by number
11615         of text items.
11617         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11618         occur.
11619         (do_sprintf): New function.
11620         (pic.gperf): Add sprintf token.
11621         (text, sprintf): New rules.
11623         * pic/pic.y: `rand()' with no arguments returns a random number
11624         in the range [0,1).
11626         * pic/pic.y: Allow a bare expression to be an attribute: change
11627         precedences to support this.  Change optional_ordinal rule to
11628         optional_ordinal_last to avoid reduce/reduce conflict.
11629         * pic/object.c (object_spec::object_spec): Initialize direction.
11631         * pic/pic.y: Implement ^ operator meaning exponentiation.
11633         * troff/node.h: Add default argument to mount_font.
11634         * troff/node.c (font_position): Read an optional third argument
11635         giving the external_name.
11636         (mount_font): Add optional argument giving the external_name.
11637         (mount_font_not_translate): Have additional argument giving
11638         external name.  Use this name to load the font.  Pass both names
11639         to font_info::font_info.
11640         (font_info::font_info): Have additional argument giving
11641         external_name.
11642         (class tfont): New member external_name.
11643         (font_info::get_tfont): Use external name to construct tfont_spec.
11645 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
11647         * eqn/lex.c (init_table): Add argument giving device.  Define
11648         name of device to be "1".
11649         (do_ifdef): Counts as true if the argument has been defined with
11650         `define'.
11651         * eqn/main.c (main): Call init_table with device argument. Make
11652         device local to main.
11653         * eqn/eqn.h: Change declaration of init_table. Remove declaration
11654         of device.
11656         * pic/lex.c (get_delimited): Allow text to be delimited by
11657         matching {}s.  Don't recognize ending delimiter within a string.
11659         * troff/input.c (get_delim_name): New function.
11660         (token::next): Implement \C.
11662         * lib/font.c (font::load): Grok ---.  Add an alias for each
11663         character based on its code.
11664         (font::get_code_width): Deleted.
11665         * lib/font.h (class font): Declare font::number_to_index().
11666         Remove declaration of font::get_code_width.
11667         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11668         to indices of named characters.
11669         (font::number_to_index): New function.
11670         * troff/input.c (font::number_to_index): New function.
11671         (get_charinfo_by_number, charinfo::get_number,
11672         charinfo::set_number): New functions.
11673         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11674         (token::process, token::description, token::get_char,
11675         token::add_to_node_list, token::operator==): Handle
11676         TOKEN_NUMBERED_CHAR.
11677         * troff/charinfo.h: Declare get_charinfo_by_number,
11678         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
11679         charinfo class.
11680         (charinfo::numbered): New function.
11681         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11682         * troff/env.h (class environment): Remove declaration of ...
11683         * troff/env.c (environment::make_numbered_char_node): Deleted.
11684         * troff/node.c (make_numbered_node): Deleted.
11685         (class numbered_glyph_node): Remove.
11686         (troff_output_file::put_char_width, troff_output_file::put_char):
11687         Handle numbered chars.
11688         (troff_output_file::numbered_char): Removed.
11689         (tfont::get_code_width): Removed.
11690         (make_glyph_node): Don't search special fonts for numbered
11691         characters.
11692         * troff/node.h: Remove declaration of make_numbered_node.
11693         * driver/input.c (do_file): Handle N command.
11694         * driver/printer.h: Add declaration of ...
11695         * driver/printer.c (printer::set_numbered_char): New function.
11696         * dvi/tfmtodit.c (main): Generate unnamed entries.
11697         * ps/devps/afmtodit: Likewise.
11698         * xditview/xtotroff.c (MapFont): Likewise.
11699         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11701         * tbl/main.c (process_format): If multiple widths are specified
11702         for a column but all the widths are the same, don't give an error
11703         message.
11705         * tbl/table.c (table::do_row): If the current row is all lines and
11706         the stuff doesn't contains a line, mark the top of the row after
11707         printing stuff before the row.  If the current row is not all
11708         lines and the stuff doesn't contain a line, don't unnecessarily
11709         mark the top of the row before printing the stuff.
11710         
11711 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
11713         * troff/groff.h: Remove MAX_PATH.
11714         * troff/input.c (open_file): Dynamically allocate space for the
11715         path.
11716         (open_mac_file, process_macro_file): Corresponding changes.
11718 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11720         * troff/node.h (class output_file): Make copy_file pure.  Add
11721         vspace method ifdef COLUMN. Add is_printing method.
11722         * troff/node.c: Add class printing_reg. Add class
11723         real_output_file. Derive other output_file classes from
11724         real_output_file; in these classes rename begin_page to
11725         really_begin_page, print_line to really_print_line, copy_file to
11726         really_copy_file, transparent_char to really_transparent_char.
11727         Move output_file::flush to real_output_file. Add printing member
11728         to class output_file.
11729         * troff/div.h: Remove printing member from top_level_diversion.
11730         Add vspace member function to class diversion ifdef COLUMN. Add
11731         some declarations ifdef COLUMN.
11732         * troff/div.c (top_level_diversion::copy_file,
11733         top_level_diversion::transparent_output,
11734         top_level_diversion::output): Don't test printing member before
11735         output.
11736         * troff/input.c: Handle initial variable_space_request ifdef
11737         COLUMN.
11738         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11739         but comment it out.
11741 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11743         * troff/div.c (diversion::need): Make any space forced.  If we
11744         sprung a trap, set truncated_space to minus the distance to the
11745         trap and set needed_space to the amount that was needed.
11746         (top_level_diversion::space): A forced space turns no_space_mode
11747         off.
11748         (class constant_vunits_reg): New class.
11749         (init_div_requests): Implement number registers .trunc and .ne
11750         using constant_vunits_reg.
11751         (class truncated_space_reg): Deleted.   
11753         * troff/div.h: Don't have a no_space_mode member in diversion.
11754         Instead have it in top_level_diversion.
11755         * troff/div.c (diversion::diversion): Don't initialize
11756         no_space_mode.
11757         (top_level_diversion::top_level_diversion): Initialize
11758         no_space_mode.
11759         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11760         (macro_diversion::output): Don't clear no_space_mode.
11762         * troff/input.c (diverted_space_node::reread): Don't call
11763         environment::do_break.  In fill mode, act like a blank line.
11764         (diverted_copy_file_node::reread): Don't call
11765         environment::do_break.
11767         * troff/div.c (blank_line): New function.
11768         * troff/div.h: Declare it.
11769         * troff/input.c (process_input_stack): Call it.
11771         * troff/div.c (truncated_space_reg::get_string): New function.
11772         (init_div_requests): Bind to .trunc.
11773         (space_request, top_level_diversion::space,
11774         top_level_diversion::output, macro_diversion::space,
11775         macro_diversion::output): Update truncated_space.
11776         (macro_diversion::output): Redo calculations when trap sprung.
11777         (macro_diversion::output, macro_diversion::space): No need for
11778         trap_flag.
11780         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11781         after truncating post line spacing.
11783 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
11785         * ps/devps/prologue (MF, SF): Make them work even if setfont is
11786         defined as a procedure rather than as an operator.
11788 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
11790         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11792 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
11794         * troff/div.c (top_level_diversion::output): Merge
11795         output_file::print_line and output_file::end_of_line member
11796         functions.
11797         * troff/div.h (class output_file):
11798         * troff/node.c (troff_output_file::print_line,
11799         troff_output_file::end_of_line, output_file::end_of_line,
11800         ascii_output_file::print_line, suppress_output_file::print_line):
11801         Corresponding changes.  
11803 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
11805         * troff/input.c (token::next): Don't give a warning for `\.'.
11807         * troff/env.c (environment::get_center_lines): New function.
11808         (init_env_requests): Bind number register .ce to it.
11809         * troff/env.h: Declare it.
11810         * tbl/table.c (table::init_output): Define reset macro to restore
11811         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
11812         Then do .ce 0.
11813         (table::print): If center option not given, then imply center
11814         option if SAVED_CENTER_REG > 0.
11816 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
11818         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11819         Troff.ps from DOWNLOAD.
11820         
11821         * troff/Makefile: Change comment in DEFINES to avoid confusing
11822         System V make.
11824         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11825         code.  Don't try to catch errors with stopped.
11826         (check_line_lengths): New function.
11827         * ps/devps/prologue (EXEC): Deleted.
11828         (EBEGIN, EEND): New procedures.
11830 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
11832         * troff/input.c: Include request.h before node.h.
11833         * troff/node.c: Likewise.
11834         * troff/env.c: Likewise.
11835         * troff/div.c: Likewise.
11836         * troff/node.h (class special_node): Store argument as a macro
11837         rather than a char *.
11838         * troff/node.c (special_node::special_node, special_node::copy):
11839         Grok this.
11840         (special_node::~special_node): Deleted.
11841         (special_node::tprint): Deleted.
11842         (special_node::tprint_start, special_node::tprint_end,
11843         special_node::tprint_char): New functions.
11844         (troff_output_file::special): Deleted.
11845         (troff_output_file::start_special, troff_output_file::end_special,
11846         troff_output_file::special_char): New functions.
11847         * troff/input.c (special_node::tprint): New function.
11848         (do_special): Use macro not char *.
11849         (do_transparent_macro): Deleted.
11850         (token::next): Don't call do_transparent_macro.
11852         * troff/input.c (token::next): Add 'Y' case.
11853         (do_transparent_macro): New function.
11854         * troff/node.c (troff_output_file::special): Handle newlines with
11855         argument using new continuation convention.
11856         * driver/input.c (get_string): Cope with continuation convention.
11857         (do_file): Don't call skip_line after calling get_string(1).
11858         * ps/ps.c (ps_printer::special, ps_printer::do_import,
11859         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11860         arg.
11861         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11862         with +.
11864 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
11866         * troff/input.c (asciify): By default, illegal input characters
11867         should return empty string.
11869         * troff/input.c (copy_file): Handle first page transition like title.
11870         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11872         * troff/input.c (token::next): Improve error message for EOF after
11873         escape character.
11874         (input_char_description): New function.
11875         (get_char_for_escape_name): Use input_char_description.
11876         (token::next): Warn about unrecognized escape sequences.
11877         (warning_table): Add WARN_ESCAPE.
11878         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11879         accordingly.
11881         * troff/token.h: Remove declaration of process_input_stack.
11883         * troff/input.c: Remove declaration of init_hyphen_requests.
11884         * troff/request.h: Correct spelling in declaration of same.
11886         * troff/input.c (token::next): Check whether escape_char is 0.
11888 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
11890         * groff.c (main, usage, help): Implement -P and -L options.
11891         * groff.sh: Likewise.
11893         * troff/input.c (token::next): Use some gotos to avoid code
11894         duplication.
11896         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11897         Avoid calling symbol::symbol if name empty.
11899 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
11901         * troff/input.c (init_input_requests): Make \n(.x return the major
11902         version number and \n(.y return the minor version number.
11903         * troff/Makefile: Construct file majorminor.c defining
11904         major_version and minor_version automatically from ../VERSION.
11906         * troff/node.c (class glyph_node): Make operator new and operator
11907         delete public.
11908         (class ligature_node): Similarily.
11910         * troff/input.c (operator==(const macro &, const macro &)): New
11911         function.
11912         (non_interpreted_node::same): Use this.
11913         (string_iterator::string_iterator): Make macro& argument const.
11915         * troff/input.c (input_iterator::get): New function. Don't make
11916         asciify_macro or class non_interpreted_node friends of class
11917         input_iterator.
11918         (non_interpreted_node::interpret): Use input_iterator::get.
11919         (asciify_macro): Likewise.
11921         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11922         ~non_interpreted_node): Deleted.
11923         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11924         Deleted.
11926         * troff/symbol.h: Make all symbol member functions const.
11928         * lib/strtol.c: New file.
11929         * lib/Makefile: Add strtol.c.
11930         * Makefile: Define STRTOL as strtol.o to include strtol in
11931         libgroff.a.
11933 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
11935         * pic/troff.c (troff_output::simple_circle): Divide by scale.
11937 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
11939         * troff/input.c (do_special): Use input_level.
11941         * troff/token.h (TOKEN_BACKSPACE): New token.
11942         (token::backspace): New function.
11943         * troff/input.c (token::description, token::next, token::process):
11944         Grok TOKEN_BACKSPACE.
11945         (do_special): Turn TOKEN_BACKSPACE back into \b.
11947         * troff/token.h (token::leader): New function.
11948         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11950         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11952         * troff/input.c (do_special): Use token::description in error
11953         message.
11955 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
11957         * troff/input.c (decode_args): Combine quoted and
11958         quote_input_level variables. Make it a for (;;) loop.
11960         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11962         * troff/input.c (read_long_escape_name): The test for whether to
11963         expand buffer was off by 1.
11964         (read_string): Similarily.
11966 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
11968         * troff/input.c: Use `const int' rather than `static const int'.
11970         * troff/div.h (diversion::copy_file): Declare as pure virtual.
11971         (macro_diversion::copy_file): New function.
11972         * troff/node.h: New class diverted_copy_file_node.
11973         * troff/node.c: Implement it.
11974         * troff/input.c (copy_file): Use diversion::copy_file. Handle
11975         first page transition by pushing a diverted_copy_file_node.
11976         * troff/input.c (token::next, process_input_stack): Don't handle
11977         COPY_FILE_REQUEST.
11979 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
11981         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11982         whether space widths need adjusting.
11984         * troff/charinfo.h: Generalize translated_to_space to
11985         special_translation so as to allow translation to \&.
11986         * troff/input.c (translate): Allow translation to \&.
11987         (charinfo::*): Corresponding changes.
11988         * troff/node.c (make_node, node::add_char): Corresponding changes.
11989         * troff/node.h (dummy_node::dummy_node): Allow optional first
11990         argument.
11992         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11993         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11994         TOKEN_REQUEST.
11995         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11996         TOKEN_REQUEST with an argument of TITLE_REQUEST.
11997         (token::process): Grok that.
11998         * troff/input.c (copy_file): Handle first page transition like
11999         title by pushing a COPY_FILE_REQUEST cookie.
12000         (token::next, process_input_stack): Grok that.
12001         * troff/node.h (output_file::copy_file): Add x and y arguments.
12002         Make it non-pure.
12003         * troff/div.c (top_level_diversion::copy_file): Supply them.
12004         * troff/node.c (troff_output_file::copy_file): Add x and y
12005         arguments; moveto specified position.  Invalidate font_position
12006         array after copying file.
12007         (output_file::copy_file): New function.
12008         (suppressed_output_file::copy_file, ascii_output::copy_file):
12009         Removed.
12010         * troff/input.c (transparent_file): New function.
12011         (init_input_requests): Bind to "trf".
12012         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
12013         (process_input_stack): Likewise.
12015         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
12017         * troff/node.c (init_node_requests): New number registers .kern
12018         pointing to global_kern_mode, and .lg pointing to
12019         global_ligature_mode.
12021         * troff/node.c (ligature): Don't change it if we get a bad
12022         integer.
12024         * troff/input.c (do_define_string): Don't strip tabs.
12026         * troff/input.c (asciify_macro): Make the string_iterator auto.
12028         * troff/node.c (init_font_requests): Rename to...
12029         (init_node_requests):
12030         * troff/node.h: Change declaration.
12031         * troff/input.c (main): Change call.
12033         * troff/input.c (node::reread, diverted_space_node::reread): New
12034         methods.
12035         (process_input_stack): Call reread rather than
12036         get_diverted_space_node.
12037         * troff/node.c (node::get_diverted_space_node,
12038         diverted_space_node::get_diverted_space_node): Removed.
12039         * troff/node.h: Declare reread methods instead of
12040         get_diverted_space_node methods. Make `n' member private.
12041         * troff/input.c: (token::diverted_space): Removed.
12042         * troff/token.h: Removed declaration.
12043         
12045 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
12047         * eqn/script.c (script_box::compute_metrics): Don't let
12048         SUP_RAISE_FORMAT become negative.
12050         * tbl/table.c (table::do_row): Entries that don't end in the
12051         this row shouldn't make the row non-blank.
12052         
12053         * tbl/table.c (table::make_columns_equal): Only set the width of
12054         columns which are marked as equal.
12055         
12056         * tbl/main.c (process_data): Before issuing excess data error,
12057         if last character was a newline unget it; then get it again after
12058         the error.  Also include the contents of the entry in the message.
12060         * groff.c: New file.
12061         * Makefile: Build groff from groff.c.  Make it possible to use
12062         either groff.sh or groff.c as groff.
12063         * Makefile.bd: Similarily.
12065 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
12067         * groff.sh: Don't delay expansion of $@ in assignment to files.
12068         Remove occurrences of \".
12070 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
12072         * all Makefiles: Simplify and rearrange.
12074         * Makefile: Handle fmod like malloc.
12075         * lib/Makefile: Similarily.
12076         * lib/fmod.c: Remove #ifdef NEED_FMOD.
12078         * Makefile: Rename OPTIMISE to OPTIMIZE.
12080         * groff.sh: Remove assignment to PATH.
12081         * Makefile: Remove SHPATH variable.
12082         * Makefile.bd: Similarily.
12084         * groff.sh: Add -V option to print the pipeline instead of
12085         executing it.
12087 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
12089         * lib/font.c: Split off file searching into ...
12090         * lib/fontfile.c: New file.
12092         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12094 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12096         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12097         Also change misleading comment.
12098         (table::do_vspan): Change similarily misleading comment.
12099         * tbl/main.c (process_data): A format row with an explicit `s'
12100         uses up a data line, even if all the other columns are `_' or `='.
12102         * troff/input.c (token::description): Fix description of
12103         TOKEN_DUMMY and TOKEN_EMPTY.
12105 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12107         * groff.sh: Fix description of -Z in help message.
12109 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12111         * pic/object.c (object_spec::make_object): Allow negative and zero
12112         line thicknesses.
12113         * pic/pic.y: Give linethick default value of -1.0.
12114         * pic/troff.c (troff_output::troff_output): Initialize
12115         last_line_thickness to BAD_THICKNESS.
12116         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12117         (troff_output::line_thickness): Canonicalize negative thicknesses
12118         to RELATIVE_THICKNESS.
12119         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12120         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12121         to -1.0.
12122         (tex_output::start_picture): Set pen_size to -2.0.
12124         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12125         0, then use 0 linewidth.
12126         (ps_printer::ps_printer): Initialize line_thickness to -1.
12128         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12130         * ps/devps/symbolchars: Remove `or'.
12131         * ps/tmac.ps: Implement \(or with .char.
12133         * ps/devps/symbolchars: Move most characters into textmap.
12134         * ps/devps/textmap: Add names for troff bracket characters. Remove
12135         ul, ru, br, bv.
12137         * ps/devps/TSymbol.ps: Removed.
12138         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12139         * ps/tmac.ps: Do with .char what TSymbol did.
12140         * ps/devps/download: Remove TSymbol.
12142         * ps/devps/T: Removed.
12143         * ps/devps/Troff.ps: Removed.
12144         * ps/devps/Troff.afm: Removed.
12145         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12146         * ps/devps/download: Remove Troff.
12147         * ps/devps/FontMakefile: Remove T target.
12148         * ps/devps/DESC-A4: Remove T from font list.
12149         * ps/devps/DESC-letter: Likewise.
12151         * troff/input.c (macro_to_node): Rename to ...
12152         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12153         character's definition while processing it.
12154         * troff/node.c (node::add_char, make_node): Change calls to
12155         macro_to_node accordingly.
12157         * troff/input.c (token::next): Translate \_ to \(ul.
12159         * tty/devascii/R.proto: Add `|'.
12160         * tty/devlatin1/R.proto: Likewise.
12162 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12164         * man: Put the version number in all the man pages.
12166 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12168         * Makefile.bd: New file.
12169         * README.bd: New file.
12171         * VERSION: New file.
12172         * lib/version.c: Removed.
12173         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12174         in clean target.
12176         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12177         environment variable.
12179         * all Makefiles: Split install target into install.bin for
12180         binaries, and install.nobin for everything else.
12181         * Makefile: Add bindist target.
12183         * man/afmtodit.man: New file.
12184         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12185         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12186         in BINDIR.
12187         * ps/Makefile: Pass BINDIR to make install in devps.
12189         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12190         the space character.
12192         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12194 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12196         * ps/ps.c: Redo font downloading.
12197         * ps/devps/download: New file.
12198         * ps/devps/Makefile: Add download to DEVICEFILES.
12199         * ps/devps/afmtodit: Remove -d option.
12200         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12201         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12202         * ps/devps/zapfdr.ps: Likewise.
12203         * ps/devps/TSymbol.ps: Likewise.
12205 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12207         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12209 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12211         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12212         then strip the first line if it starts with %.
12213         * Makefile: Add a comment about this.
12215         * man/tfmtodit.man: New file.
12216         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12217         * dvi/Makefile: Install tfmtodit in BINDIR.
12219         * dvi/tfmtodit.c (usage): Mention -v option.
12221 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12223         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12224         * troff/node.c (troff_output_file::transparent_char): Don't call
12225         flush_tbuf.
12227         * eqn: Add check_tabs method to most box classes.
12228         * eqn/box.c (box::top_level): Call check_tabs.
12230         * eqn/script.c (script_box::output): Use \Z.
12231         * eqn/limit.c (limit_box::output): Use \Z.
12233         * eqn/box.c (box::top_level): Use itoa.
12235 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12237         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12238         * dvi/devdvi/Makefile: Don't make links to CW.
12240         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12241         HX, HD.
12242         * xditview/tmac.X: Likewise.
12244         * troff/node.c: Add font translation feature.
12245         (get_font_translation): New function.
12246         (symbol_fontno): Translate the font name.
12247         (mount_font_no_translate): Rename to mount_font to this.
12248         (mount_font): New function.
12249         (font_family::make_definite): Call mount_font_no_translate instead
12250         of mount_font.
12251         (mount_style): Translate the font name.
12252         (font_translate): New function.
12253         (init_font_requests): Bind "ftr" to font_translate.
12255         * ps/devps/prologue (SN): New procedure that rounds a position to
12256         the nearest (pixel + (.25,.25)).
12257         (DL): Use SN to round endpoints.
12259         * lib/version.c: Changed version to 0.5.
12261 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12263         * Makefile: Move definition of PAGE to the very beginning, so that
12264         people are less likely to miss it.
12266 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12268         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12270         * troff/env.c (environment::choose_breakpoint): Make `can't find
12271         breakpoint' error a warning of type WARN_BREAK.  Change message to
12272         `can't break line'.
12273         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12274         code 040000.
12275         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12276         WARN_BREAK in DEFAULT_WARNING_MASK.
12278         * tty/tmac.tty: Add definition of \(+-.
12280         * groff.sh: Remove `--' option to set command.
12282         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12284         * ps/devps/eqnchar: Better definition of cdot using md.
12285         * dvi/devdvi/eqnchar:  Likewise.
12286         * xditview/devX100/eqnchar:  Likewise.
12287         * xditview/devX75/eqnchar: Likewise.
12288         * eqn/lex.c: Add definition of cdot.
12290 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12292         * troff/input.c (get_optional_char): New function.
12293         * troff/input.c (set_page_character): Use get_optional_char(),
12294         rather than has_arg() and tok.get_char(1).
12295         * troff/env.c (tab_character, leader_character, hyphen_char,
12296         field_characters): Likewise.
12297         (margin_character): Likewise.  Also always delete the
12298         margin_character_node.
12300         * troff/input.c (token::get_char): Use token::description.
12302         * troff/input.c (has_arg): Don't skip over tab and \}.
12303         * troff/number.c (start_number): Give a warning if the number
12304         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12306 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12308         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12309         functions.
12310         (get_name, get_long_name): Use these.  Rename `warn' argument to
12311         `required'.
12313         * troff/node.c (get_fontno): Test that the symbol is not null.
12315         * troff/input.c (token::description): New function.
12316         * troff/number.c (parse_term): Use token::description in `numeric
12317         expression expected' message.
12318         * troff/groff.h: Add WARN_MISSING.
12319         * troff/number.c (start_number): New function.
12320         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12321         get_incr_number): Use start_number().
12322         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12323         default.
12324         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12325         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12326         token::descripion.
12327         * troff/input.c (token::get_char): Use WARN_MISSING.
12328         * troff/input.c (token::delimiter): Use token::description.
12329         * troff/env.c (environment_switch): Back out Aug 3 change.
12330         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12331         warning.
12332         * troff/token.h (token::tab): New function.
12333         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12334         * troff/reg.c (alter_format): Likewise.
12335         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12337 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12339         * troff (most files): Redo warnings. Divide warnings into various
12340         categories; warning() has an additional first argument indicating
12341         the category it falls into.
12342         * troff/input.c (main): -w now takes an argument. New option -W.
12343         (enable_warning, disable_warning): New functions.
12345         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12346         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12348 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12350         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12351         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12352         * xditview/devX75/eqnchar: Likewise.
12353         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12355         * eqn/other.c: When bar or over applies to a single character
12356         don't produce an overline_box or an underline_box. Instead produce
12357         an accent_box or an underaccent_box, with the accent a line
12358         whose width is accent_width.  New classes underaccent_box,
12359         overline_char_box and underline_char_box.
12360         * eqn/box.h: Move overline_box, underline_box, accent_box class
12361         declarations into eqn/other.c. Add declarations of
12362         make_underline_box, make_overline_box, make_accent_box.
12363         * eqn/eqn.y: Call make_overline_box, make_underline_box
12364         make_accent_box instead of constructors.
12365         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12367         * eqn/other.c: Add accent_box::~accent_box.
12368         * eqn/box.h: Declare it.
12370         * groff.sh: With -Tps, use eqn -D.
12372         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12373         rather than \l.
12374         (underline_box::output): Similarily.
12375         (accent_box::output): Use \Z.
12377         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12378         bit smaller.)
12380 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
12382         * troff/div.c (top_level_diversion::transparent_output(unsigned
12383         char)): Use asciify.
12384         * troff/input.c (asciify): Don't make it static.
12385         * troff/token.h (asciify): Declare it.
12386         
12387         * troff/input.c (get_name, get_long_name, token::get_char,
12388         token::delimiter): Add an extra default argument which says
12389         whether a warning should be printed.
12390         * troff: Pass a non-zero argument to one of these rather than
12391         printing a warning directly.
12393 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
12395         * troff: Consistently use symbol::is_null.
12397         * troff/dictionary.h: Move some inline functions into
12398         dictionary.c.
12400         * troff/request.h: Move inline functions into input.c.
12401         (request_or_macro::invoke): Make it pure.
12403         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12404         * troff/input.c (init_input_requests): Use class constant_int_reg.
12405         (class compatible_reg): Deleted.
12406         * troff/div.c (init_div_requests): Use class constant_int_reg.
12407         (class last_post_line_extra_space_reg): Deleted.
12409         * troff/env.c (tab_character): Don't change the tab character if
12410         we get an invalid argument.
12411         (hyphen_char): Similarily.
12413         * troff/reg.c (alter_format): Check that nm is not null.
12415         * Makefile, groff.sh: Make it possible to customize the commands
12416         used for printing PostScript and dvi files. Also make it possible
12417         to customize the path used by groff.sh.
12419         * eqn/eqn.y: Make `left' right associative.
12421 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
12423         * pic/pic.h: Added definition of M_SQRT2 for those systems that
12424         don't have it.
12426         * pic/pic.h: Removed definition of INT_MAX.
12428         * troff/node.c (italic_corrected_node::vertical_extent): Omit
12429         `return'.
12431         * troff/input.c (token::next):  Handle \R like \n.
12433 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
12435         * ps/tmac.pc (PSPIC): Simplify.
12437         * troff/env.c (tab_stops::to_string):
12438         * pic/pic.y (object_type_name):
12439         * pic/troff.c (simple_output::line):
12440         * pic/tex.c (tex_output::spline):
12441         * pic/object.c (object_spec::make_object):
12442         * tbl/main.c (process_data):  Add cases to switch statements to
12443         avoid cfront warnings. (Some of these are spurious, since the
12444         switch already has a default case.)
12446         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
12447         `ps-'.  Don't test systat; instead check number of arguments to
12448         ps-bb.
12450 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
12452         * macros/tmac.e: Do not decrease the page offset by 0.5i.
12454         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12455         Unlink the file as soon as we have opened it, so that we don't
12456         have to bother with signal handlers.
12457         (handler): Deleted.
12458         (fatal_error_exit): Deleted.
12459         (main): Don't call signal.
12461         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12462         can be ignored.
12463         * dvi/devdvi/Makefile: Use the -k option with S and MI.
12465         * pic/pic.y:  If there is a label, or an nth construction before
12466         the first `.' in the argument to `with', ignore it and generate a
12467         warning.
12468         * pic/lex.c (lex_warning): New function.
12470         * tbl/table.c (table::init_output): In section keep and release
12471         macro, use 0 indent when diverting and the correct indent when
12472         rereading.
12474         * troff/input.c (interpolate_number_format): Do not interpolate
12475         anything if the number register is not defined.
12477         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12479 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
12481         * ps/devps/prologue (PICTURE): Set components of graphics state to
12482         their default values.
12484         * ps/devps/text.enc: Add trademark
12485         * ps/devps/textmap: Add names for club, spade, heart, diamond,
12486         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12487         * ps/devps/symbolchars: Add names for summation and product.
12489         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12490         suchthat. Add pp. Add upper-case letters.
12492         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12493         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12494         Upsilon.
12496         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12497         rA (right angle bracket) to ra.  Introduce names for double-headed
12498         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12499         * ps/devps/textmap: Likewise for ps device.
12500         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12501         * tty/devascii/R.proto: Rename lA to la and rA to ra.
12502         * tty/devascii/R.proto: Likewise.
12503         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12504         \(uA, \(dA.
12505         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12507         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12509         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12510         def_table.
12512 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
12514         * troff/div.c (when_request): Use symbol::is_null rather than
12515         has_arg to determine whether we have an argument.
12516         (change_trap): Remove the trap if we get an invalid number. Give
12517         an error if we don't get at least the macro name.
12518         (diversion_trap): Remove trap if we get an invalid name or number.
12520         * troff/env.c (environment_switch): Pop if we get an invalid
12521         symbol or numeric expression.
12523         * troff/input.c (do_define_macro):  If EOF is encoutered while
12524         defining the macro, do tok.next() before returning.
12526         * troff/token.h (has_arg): Move definition from here, to ...
12527         * troff/input.c (has_arg): ... here
12529         * troff/env.c (space_size): Do nothing if we get an invalid argument.
12530         * troff/input.c (shift): Likewise.
12532         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
12533         for `.c'.
12535         * pic/troff.c (troff_output::start_picture):  Comment out calls to
12536         `..'.
12538         * eqn/main.c (do_file): Subtract 1 from current_lineno if
12539         interpret_lf_args succeeds.
12541         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12542         \\.  This avoids problems with \$N.
12544         * groff.sh: Pass -C to preprocessors.
12546         * lib/lf.c (interpret_lf_args):  Be more flexible.
12548         * tbl/main.c (main): Add -C option.
12549         (table_input::get): Do not recognize TE if followed by character
12550         other than a space or newline unless -C option given.
12551         (process_input_file): Likewise for lf, TS.
12552         (process_data): Likewise for lf in text blocks.
12554         * eqn/main.c (main): Add -C option.
12555         (do_file): Don't recognize EQ, EN or lf if followed by character
12556         other than space or newline unless -C option given.
12557         * eqn/lex.c (file_input::read_line): Similarily.
12558         * eqn/eqn.h: Declare compatible_flag.
12560         * etc/soelim.c (main): Add -C option.
12561         (interpret_lf_args): Use version in libgroff.
12562         (do_file):
12564         * pic/main.c (main): Add -C option, which sets compatible_flag.
12565         (top_input::get), (top_input::peek):  If -C option not given,
12566         do not recognize .PS/.PE/.PF/.lf if followed by a character
12567         other than space or newline.
12568         * pic/lex.c (file_input::read_line): Similarily.
12569         * pic/pic.h: Add declaration of compatible_flag.
12571 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
12573         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12575         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
12576         derived from node.  New class space_char_hmotion_node.
12577         * troff/input.c (asciify_macro): New function.
12578         * troff/input.c (init_input_requests): New request `asciify' bound
12579         to asciify_macro.
12580         * macros/mm.diff: New file.
12581         * Makefile:  In install.mm target use `patch' to apply
12582         macros/mm.diff.
12584         * troff/input.c (macro::print_size): Just print the size in bytes.
12586         * troff/div.c (return_request): Correct the argument
12587         interpretation.
12589 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
12591         * troff/node.h (class composite_node): Add sz member.
12592         * troff/node.c (composite_node::size): Return sz.
12593         * troff/input.c (macro_to_node):  Use the initial size in the
12594         environment as the size of the composite_node.
12596         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
12597         default.
12599 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
12601         * troff/div.c (change_trap): If we get a bad number expression,
12602         do nothing.
12604 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
12606         * lib/matherr.c (matherr): Define this only if math.h defines
12607         TLOSS.
12609 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
12611         * troff/div.c (macro_diversion::distance_to_next_trap): If there
12612         no diversion trap return vunits(INT_MAX - vresolution).
12614 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
12616         * troff/input.c (do_zero_width): New implementation that doesn't
12617         use a temporary environment. Use instead:
12618         (token::add_to_node_list): New function.
12619         * troff/env.c (environment::get_prev_char_height),
12620         (environment::get_prev_char_height),
12621         (environment::get_prev_char_skew): New functions.
12622         (environment::get_prev_char): New function.
12623         (environment::get_prev_char_width): Change to use get_prev_char.
12624         (init_env_request): Implement new registers .cht, .cdp, .csk.
12625         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12626         \Z being processed in a separate environment.
12628 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
12630         * tbl/table.c: Removed TABLE_BOTTOM_REG.
12632         * tbl/table.c (table::init_output): In the section release macro,
12633         give a warning message if the section won't fit on one page.
12635         * tbl/table.c (table::do_top): Emit table keep only if table is
12636         boxed.
12637         (table::do_bottom): Likewise for table release.
12638         (table::table), (table::add_vertical_rule):  Remove reference to
12639         keep member.
12640         * tbl/table.h: Remove keep member.
12642         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12643         SECTION_RELEASE_MACRO, if there's not enough space before the next
12644         trap to output the diversion, call T# ourselves, set
12645         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12646         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
12647         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
12648         vertical position and return to it before turning traps on again.
12649         
12650 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
12652         * troff/node.c, troff/node.h: In classes derived from node,
12653         replace prev_char_width method by last_char_node method.
12654         * troff/env.c (environment::get_prev_char_width): Use
12655         node::last_char_node rather than node::get_prev_char_width.
12657         * Makefile: Added comment about -fno-inline on 68030-based
12658         Apollos.
12660         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12661         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12662         expressions using sizeof to int.
12663         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12665         * macros/tmac.e (TS):  Don't move @f back past the current
12666         position.
12668 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
12670         * ps/ps.c (main): Buffer stderr.
12671         * dvi/dvi.c (main): Likewise.
12672         * tty/tty.c (main): Likewise.
12674         * ps/ps.c (ps_printer::do_import): Improve error handling.
12676         * troff/input.c (abort_request): Use asciify.
12678         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12679         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12680         type of first argument int rather than char.  This works around a
12681         bug on the 68030 based Apollo using g++ 1.37.1.
12683         * tbl/table.h (class table): Add `keep' member.
12684         * tbl/table.c (table::table): Initialize `keep'.
12685         (table::add_vertical_rule): Set `keep' to 1.
12686         (table::do_top): Only emit table keep macro is `keep' is non-zero.
12687         (table::do_bottom): Likewise for table release macro.
12688         (table::do_row): Emit section keep macro even if the row is 0.
12690 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
12692         * macros/tmac.e (@C): Preserve the font family across the change
12693         in environments.
12695 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
12697         * lib/font.c: Initialize font::hor and font::vert to 1.
12698         (font::load_desc): Check the values of font::hor and font::vert.
12700         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12701         be included in a C compilation.
12702         (iftoa): Use INT_DIGITS. Include lib.h.
12703         (itoa): Likewise.
12704         (as_string): Likewise.
12705         * tbl/table.c: Removed definition of INT_DIGITS.
12706         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12707         * troff/input.c (input_input_requests): Likewise.
12708         * ps/ps.c (make_encoding_name): Likewise.
12709         (ps_printer::set_style): Likewise.
12710         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12712         * tty/devascii/R.proto: Map fm onto '.
12713         * tty/devlatin1/R.proto: Likewise.
12715 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12717         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12718         argument to \w is at a different input level.
12720         * tbl/table.c (table::init_output): Define a new macro
12721         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12722         transparently outputs itself.
12723         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12724         vpt.
12725         (table::do_row): Likewise.
12727         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12728         TRANSPARENT_STRING_NAME.
12730         * tbl/table.c (table::init_output): In the table release macro
12731         print an error message and don't produce any output if after
12732         issuing the need request the table still will not fit.  Also
12733         remove the diversion after bringing it back.
12735         * tbl/table.c (table::init_output): Define a new macro
12736         REPEATED_MARK_MACRO, like mk but if in a diversion also
12737         transparently outputs itself.
12738         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12739         is necessary because .TH might not call .T#.
12740         (table::do_top): Likewise TOP_REG.
12741         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12742         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12743         table header might contain just the two top rules.
12745 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12747         * troff/div.c: Implement new request `ptr' to print all traps.
12749         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12750         init_string_env_reg.
12751         * troff/env.c (class tab_reg): Deleted.
12753 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12755         * troff/div.c: New number register .pn returns the number of the
12756         next page as set by the pn request.
12758         * macros/tmac.an: Redid headers and footers.  Number each manual
12759         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12760         optional 5th argument to .TH which specifies the manual name and
12761         appears in the center of the header.  Understand the X, P and D
12762         registers like Sun.
12764 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
12766         * troff/env.c (init_env_requests): New number register `.lt' to
12767         return the title length.
12769         * troff/node.h (class transparent_dummy_node): New class.
12770         * troff/node.c (class transparent_dummy_node): Provide member
12771         functions. 
12772         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12773         than a dummy_node.
12775         * troff/input.c (token::next): New escape sequence \).
12776         * troff/input.c (get_copy): Recognize \) in copy mode.
12778         * troff/input.c (input_stack::clear): New function.
12779         * troff/input.c (exit_request): Use input_stack::clear.
12781         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12782         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12784         * troff/env.c: Move set_page_character to input.c.  Move
12785         page_character to input.c also.
12786         * troff/env.c (title): Split off the reading of the parts of the
12787         title into read_title_parts.
12788         * troff/input.c (read_title_parts): New function.  Check the
12789         input_level when testing whether a token matches the delimiter.
12791         * troff/input.c (exit_request): New function.
12792         * troff/input.c (init_input_requests): Bind ex request to
12793         exit_request rather than exit_groff.
12795         * troff/input.c (exit_groff): Call tok.next() before
12796         process_input_stack().
12798 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
12800         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12801         * troff/env.h: ditto.
12802         * troff/input.c: ditto.
12804         * troff/env.c (environment::is_empty): Test pending_lines.
12806         * troff/env.c (environment::have_pending_lines): Removed.
12808         * troff/input.c: Add request to flush pending lines from the
12809         environment.
12811         * troff/env.c, troff/env.h: Add automatic widow control feature.
12813         * troff/input.c (exit_groff):  Do process_input_stack() after
12814         do_break() but before setting exit_flag to 2.
12816         * troff/input.c: Remove FLUSH_PENDING_LINES and
12817         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12818         environment after END_TRAP token seen, but only if there aren't
12819         any more traps still unfinished.
12820         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12822 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
12824         * troff/env.c: Rename the `retain_size' member of class
12825         pending_output_line to `no_fill'.
12827         * troff/env.c (title): When the line is output, make the
12828         retain_size argument !fill.
12830         * troff/node.h: Add `hyphenated' member to struct breakpoint.
12831         * troff/node.c (space_node::get_breakpoints),
12832         (dbreak_node::get_breakpoints):  Fill this in.
12833         * troff/env.c:  Allow specification of maximum number of
12834         consecutive hyphenated lines.
12836         * troff/env.c (environment::is_empty): Add test for !current_tab.
12838 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
12840         * troff/env.c (environment::hyphenate_line): Don't completely give
12841         up if the word is not to be hyphenated; continue so that breaks
12842         can be made at break_char_node's.
12844         * lib/lib.h: Only define INT_MAX if it's not already defined;
12845         undef INT_MIN if it's already defined.
12847         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12849         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12850         This works around a bug in AT&T C++ 2.0 used with an ANSI C
12851         compiler.
12852         
12853         * macros/tmac.an (an-header): Set no-space mode.
12855         * macros/tmac.an (TH): Start a new page if necessary.
12857         * Started using ChangeLog at version 0.4.
12859 Local Variables:
12860 version-control: never
12861 coding: latin-1
12862 End: