import from Eric's sources
[s-roff.git] / ChangeLog
blob648e239d388927bc7ccb58975055c3fc1f433594
1 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3         Changing the substring request to make it fit better with other
4         string manipulation functions in other programming languages:
5         Index 0 is now the first character in the string, and index -1
6         indicates the last character.  Since this request didn't work
7         properly anyway in the last release, it doesn't harm too much to
8         change the syntax.
10         * src/roff/troff/input.cc (substring_macro): Use loops to get
11         the real string length (ignoring COMPATIBLE_SAVE and
12         COMPATIBLE_RESTORE) and offsets.
13         Implement change described above.
15         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
16         (doc-do-Bd-args, doc-do-Bl-args: Changed accordingly.
18         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
20 2002-06-03  Werner LEMBERG  <wl@gnu.org>
22         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
23         COMPATIBLE_RESTORE are completely ignored.
25         * src/roff/troff/input.cc (char_list::set, char_list::get): New
26         functions.
27         (macro): `length' field renamed to `len'.
28         Added new field `empty_macro' (1 if macro is empty), to be used
29         instead of checking `len'.
30         Updated all callers.
31         (macro::empty): Updated.
32         (macro::length, macro::set, macro::get): New functions.
33         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
34         Set `empty_macro'.
35         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
36         COMPATIBLE_RESTORE pairs.
37         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
38         * src/roff/troff/request.h: Updated.
40         * doc/groff.texinfo: Document .chop's behaviour better.
42 2002-06-02  Werner LEMBERG  <wl@gnu.org>
44         * doc/pic.ms: Fix documentation for the addition of positions.
46         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
48 2002-06-29  Werner LEMBERG  <wl@gnu.org>
50         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
52         * src/roff/troff/input.cc (have_string_arg): New global variable.
53         (read_mode): New enumeration.
54         (read_escape_name): Use it.  Update all calls.
55         (read_long_escape_name): Use it.  Update all calls.
56         Set have_string_arg if appropriate.
57         (get_char_for_escape_name): Add parameter for handling space
58         character.
59         (interpolate_string_with_args, decode_string_args): New functions.
60         (get_copy, token::next): Call it if necessary.
61         (interpolate_string): Fix error message.
63         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
64         Document it.
66 2002-06-24  Bernd Warken  <bwarken@mayn.de>
68         * man/groff_tmac.man: Updated and extended.
70 2002-06-24  Werner LEMBERG  <wl@gnu.org>
72         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
74 2002-06-23  Werner LEMBERG  <wl@gnu.org>
76         * doc/pic.ms: Improve documentation of composite block objects.
78 2002-06-22  Werner LEMBERG  <wl@gnu.org>
80         * src/roff/troff/input.cc (init_registers): Add three registers
81         `seconds', `minutes', and `hours' to hold the current time.
83         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
84         Updated.
86 2002-06-20  Werner LEMBERG  <wl@gnu.org>
88         Make \X accept both `\ ' and `\~', converting them to single space
89         characters.
91         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
92         (token::unstretchable_space): New inline function.
93         * src/roff/troff/input.cc (token::next, token::delimiter,
94         token::description, token::add_to_node_list, token::process): Handle
95         TOKEN_UNSTRETCHABLE_NODE.
96         (encode_char): Handle tok.stretchable_space and
97         tok.unstretchable_space.
99         * NEWS, doc/groff.texinfo: Document it..
101 2002-06-19  Werner LEMBERG  <wl@gnu.org>
103         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
105         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
106         keyword to enable/disable SGR output.
107         (tty_printer::change_fill_color): New function.
108         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
110         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
111         call.
113 2002-06-18  Werner LEMBERG  <wl@gnu.org>
115         Add a `color' request and a `.color' register to control usage of
116         colours.
118         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
119         (color_flag): This (which is the inverse).
120         (activate_color): New function.
121         (main, init_input_requests): Updated.
122         * src/roff/troff/troff.h, src/roff/troff/node.cc
123         (troff_output_file::fill_color, troff_output_file::glyph_color):
124         Updated.
126         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
127         Document the changes.
129 2002-06-17  Colin Watson  <cjwatson@debian.org>
131         Circumvent bug in autoconf 2.53 regarding top_builddir.
133         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
134         * Makefile.in, doc/Makefile.in:
135         s/@top_builddir@/@groff_top_builddir@/.
136         * configure: Regenerated (with autoconf 2.53).
138 2002-06-17  Werner LEMBERG  <wl@gnu.org>
140         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
141         `paperwidth' and `paperlength' for the `papersize' keyword.
143 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
145         * src/devices/grops/grops.man: Add info about Type 42 fonts.
147 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
149         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
150         html_printer::do_linelength, html_printer::do_pageoffset,
151         html_printer::do_indentation, html_printer::do_tempindent,
152         html_printer::do_break, html_printer::begin_page): Clear indented
153         text.
154         * tmac/html.tmac: Disable hyphenation.
156 2002-06-15  Werner LEMBERG  <wl@gnu.org>
158         Don't produce HTML files if utility programs are missing.
160         * Makefile.in (make_html, make_install_html): New variables.
161         (MDEFINES): Updated.
163         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
164         utility programs.
165         * configure.ac: Use it.
166         * configure: Regenerated.
168         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
169         (HTMLEXAMPLESFILES): This new variable.
170         (EXAMPLESIMAGEFILES): Renamed to...
171         (HTMLEXAMPLEIMAGEFILES): This.
172         (CLEANADD): Add HTMLEXAMPLEFILES.
173         (all): Use `make_html'.
174         (html): New target.
175         (install_data): Use `make_install_html'.
176         Move html stuff to...
177         (install_html): This new target.
178         (uninstall_sub): Updated.
180 2002-06-14  Bernd Warken  <bwarken@mayn.de>
182         * src/roff/grog/Makefile.sub (grog): Renamed to...
183         (grog.old): This.
184         (grog): New rule to always install grog.sh as grog.
186 2002-06-08  Bernd Warken  <bwarken@mayn.de>
188         * src/roff/grog/grog.pl: Fix typo.
190 2002-06-07  Werner LEMBERG  <wl@gnu.org>
192         * doc/groff.texinfo: Add more info on .tr arguments.
194 2002-06-05  Werner LEMBERG  <wl@gnu.org>
196         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
198         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
199         * configure: Regenerated.
201 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
203         * src/roff/troff/symbol.cc (table_sizes): Add more values.
205         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
207 2002-06-04  Werner LEMBERG  <wl@gnu.org>
209         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
210         is not initialized at the time we need it in case `--prefix' hasn't
211         been set.  Check for `ac_default_prefix' also.
212         Test for `papersize' keyword also and generalize allowed whitespace.
213         * configure: Regenerated.
215         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
216         `paperlength'.
218         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
219         with...
220         (src_version, src_revision): New variables to avoid overwriting
221         from parent make process.
222         (version.cc): Updated.
224         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
225         (linebuf, linebufsize): New global variables.
226         (sys_fatal): Use `fatal' to abort properly.
227         (get_line): New function.
228         (get_resolution): Use it.
229         Improve error messages.
230         (get_papersize): Check `papersize' also.
231         Use `get_line'.
232         Improve error messages.
234 2002-06-03  Werner LEMBERG  <wl@gnu.org>
236         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
237         should be removed only if builddir is not srcdir.
238         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
239         (clean): Depend on `mostlyclean'.
240         (distclean): Depend on `clean'.
241         (realclean, extraclean): Depend on `distclean'.
242         (.y.cc, .y.o): Simplified.  The output files are no longer written
243         to srcdir but to builddir.
244         * Makefile.in (MDEFINES): Add `version' and `revision'.
245         (uninstall_dirs): Fix order of directories.
246         * doc/Makefile.sub (version, revision): Removed.
247         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
248         Added `HTMLDOCFILES'.
249         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
250         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
251         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
252         as prefix.
254         * doc/texinfo.tex (\authortt): New macro.
255         (\shortcontt): Define.
256         (\titlepage): Set \tt to \authortt while defining \authorfont.
257         (\appendixbox): New macro.
258         (\chapmacro, \appendixentry): Use \appendixbox to get even
259         indentation for letters.
260         (\summarycontents): Set \tt.
261         (\internalpagesize): Add two arguments for real paper width and
262         height as needed by pdfTeX.
263         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
264         Updated.
265         (\tempdima, \tempdimb): New temporary dimensions.
266         (\pagesizesyyy): Updated.
268 2002-06-02  Werner LEMBERG  <wl@gnu.org>
270         Adding a new keyword `papersize' to the DESC file format (similar
271         but not completely identical to grolbp's extension).  grops now has
272         a -p command line option to override `papersize'.  Finally, grolbp
273         has been adapted to the new syntax.
275         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
276         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
277         elements.
278         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
279         (CCSRCS): Add `paper.cc'.
281         * src/include/font.h (font): Add `papersize' element.
282         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
283         (font::scan_papersize): New function.
284         (font::load_desc): Use it for handling `papersize' keyword.
285         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
287         * src/devices/grops/ps.cc: Include paper.h.
288         (user_paper_length): New global variable.
289         (ps_printer): Use paper length as initializer.
290         (make_printer): Updated.
291         (main): Handle new `-p' option.
292         * src/devices/grops/grops.man: Updated.
294         * src/devices/grolbp/lbp.cc: Include paper.h.
295         s/papersizes/lbp_papersizes/.
296         (set_papersize): Use new `papersizes' array.
297         (handle_unknown_desc_command): Don't handle `papersize'.
298         (main): Use `font::scan_papersize' for handling `-p' option.
299         * src/devices/grolbp/grolbp.man: Updated.
301         * man/groff_font.man: Document `papersize'.
302         * NEWS: Updated.
304 2002-05-30  Werner LEMBERG  <wl@gnu.org>
306         * src/devices/grops/TODO: Updated.
307         * src/devices/grops/grops.man: More info on paper formats.
308         * man/groff_font.man: Document `paperheight' and `paperwidth'.
310 2002-05-29  Werner LEMBERG  <wl@gnu.org>
312         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
313         to list only if srcdir != currdir.
314         (distfiles): New target.
316         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
317         (NOMAKEDIRS): New variable.
318         (DISTDIRS): Use it.
320 2002-05-26  Werner LEMBERG  <wl@gnu.org>
322         Add .output request, similar to \! at top-level.
324         * src/roff/troff/input.cc (transparent): Remove unused declaration.
325         (output_request): New function.
326         (init_input_requests): Add it.
327         Sorted.
328         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
329         Document it.
331         * Makefile.in (MDEFINES): Add INSTALL_INFO.
332         (prepare_examples): Fix typo.
333         * doc/groff.texinfo (@direntry): Fix it.
335 2002-05-25  Werner LEMBERG  <wl@gnu.org>
337         Including the doc subdir into groff's Makefile system.
339         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
340         * configure.ac: Use it.
341         Generate `doc/Makefile'.
342         * configure: Regenerated.
344         * Makefile.in (infodir, INSTALL_INFO): New variables.
345         (MDEFINES, uninstall_dirs): Updated.
346         (OTHERDIRS): Add `doc'.
347         * Makefile.comm (CLEANDIRADD): New variable.
348         (mostlyclean): Use it.
350         * doc/Makefile.sub, doc/Makefile.in: New files.
351         * doc/Makefile: Removed.
353         * NEWS, INSTALL: Updated.
355 2002-05-24  Werner LEMBERG  <wl@gnu.org>
357         * doc/homepage.ms: Renamed to ...
358         * doc/webpage.ms: This.
359         Use `.NHR'.
361 2002-05-23  Werner LEMBERG  <wl@gnu.org>
363         Integrating the `mom' macro package, contributed by Peter Schaffter
364         <df191@ncf.ca>.
366         * contrib/mom/*: New subdirectory tree.
367         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
368         be used for documentation files.
369         (MDEFINES, uninstall_dirs): Use them.
370         (OTHERDIRS): Add contrib/mom.
371         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
372         @HTMLDOCDIR@.
373         * MANIFEST, NEWS: Updated.
375 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
377         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
378         if at outer level; at start-up we are at outer level.
380         * src/roff/troff/input.cc (do_suppress): Implement it.
381         Simplify \O[3].
383         Add option -p to show progress information.
384         pre-grohtml will now render only one page at a time, reducing the
385         size of needed disk resources enormously.
387         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
388         (imagePageName): New global variable.
389         (psPageName, show_progress, currentPageNo): New global variables.
390         (html_system): Close saved stderr and stdout handles.
391         (write_end_image): Accept a parameter to control \O escape.
392         (write_start_image): Adapted to new \O meaning.
393         (char_buffer::write_upto_newline): Updated.
394         (createAllPages): Replaced with...
395         (createPage): This new function to create a single page for images.
396         It uses `psselect' from the psutils package.
397         (removeAllPages): Removed.
398         (createImage): Updated.
399         Handle progress display.
400         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
401         (scanArguments): Add option -p.
402         (makeTempFiles): Updated to create temp files for psPageName and
403         imagePageName.
404         (removeTempFiles): Removed.
405         (main): Updated.
407         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
408         html_printer::write_header): Append `\0' to `buffer'.
409         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
410         (main): Handle -p.
411         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
412         Handle `text_emitted'.
413         (html_text::table_is_void): Slightly rewritten.
414         (stop): New external symbol.
415         (html_text::do_push) [DEBUGGING]: Use it and simplify.
416         (html_text::shutdown): Call `dump_stack'.
417         (html_text::do_space): Rewritten.
418         * src/devices/grohtml/grohtml.man: Document -p and the need of
419         `psselect'.
421         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
422         new \O syntax.
423         Call \O[0] if `ps4html' is active.
424         * tmac/s.tmac (@EQ, @EN): Handle html better.
425         (@TS, TE): Ditto.
426         * tmac/html.tmac: Don't use black for background colour.
428         * src/roff/troff/node.cc: Include `div.h'.
429         (troff_output_file::really_print_line): Don't use `is_on'. 
430         (troff_output_file::word_marker, troff_output_file::flush_tbuf
431         troff_output_file::check_charinfo,
432         troff_output_file::put_char_width, troff_output_file::put_char,
433         troff_output_file::determine_line_limits, troff_output_file::draw,
434         real_output_file::begin_page, glyph_color_node::tprintf,
435         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
436         Use `is_on'.
437         (troff_output_file::really_on): Call `do_motion'.
438         (suppress_node::tprint): Use `get_page_number' instead of `%'
439         register.
440         Call `reset_output_registers' conditionally on `is_on'.
442         * doc/groff.texinfo: Document new syntax of \O.
443         * NEWS, man/groff_diff.man: Updated.
445 2002-05-22  Werner LEMBERG  <wl@gnu.org>
447         * MORE.STUFF: Add info about David Frey's deroff implementation.
448         Mention troff.org.
450 2002-05-16  Werner LEMBERG  <wl@gnu.org>
452         Pic's `with' attribute now accepts positions.
454         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
455         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
456         conflicts.
457         (object_spec): Add rule for `WITH' and `position'.
458         (relative_path): Give `corner' the precedence of `CHOP'.
459         * src/preproc/pic/object.h (path): New members `pos' and
460         `is_position'.
461         * src/preproc/pic/object.cc: Updated initializers of `path'.
462         (path::follow): Handle `is_position'.
464         * doc/pic.ms: Completely updated grammar description.
465         Many typographical improvements.
467 2002-05-15  Werner LEMBERG  <wl@gnu.org>
469         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
470         code of x in range 0-127) also.
471         * doc/groff.texinfo, man/groff_diff.man: Updated.
473         Added keywords `north', `south', `east', and `west' for corners
474         in pic.
476         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
477         and WEST.
478         (yylex): Handle them.
479         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
480         (corner): Handle them.
482 2002-05-14  Werner LEMBERG  <wl@gnu.org>
484         * src/devices/grops/grops.man: Clarify handling of `download' file.
486 2002-05-11  Werner LEMBERG  <wl@gnu.org>
488         Adding `warnscale' and `spreadwarn' requests, based on a patch from
489         Jeffrey Friedl <jfriedl@yahoo.com>.
491         * src/roff/troff/input.cc (spread_limit, warn_scale,
492         warn_scaling_indicator): New global variables.
493         (warnscale_request, spreadwarn_requests): New functions.
494         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
495         (init_input_requests): Updated.
496         (error_type): Add `OUTPUT_WARNING'.
497         (do_error): Handle it.
498         (output_warning): New warning function which shows output location.
499         * src/roff/troff/env.h (spread_limit): New external variable.
500         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
501         `output_warning'.
502         (distribute_space): Emit warning if added space is larger than
503         `spread_limit'.
504         (environment::possibly_break_line): Emit warning if a line can't
505         be adjusted on both sides.
507         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
509 2002-05-08  Werner LEMBERG  <wl@gnu.org>
511         * src/roff/troff/node.cc (special_node::special_node): Use
512         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
513         \X''\% crashes, for example.
515         * doc/groff.texinfo: Document \! and \? used at top-level.
517 2002-05-06  Werner LEMBERG  <wl@gnu.org>
519         * src/preproc/pic/pic.man: Fix some keyword syntax.
520         Other minor typographical fixes.
522         * src/roff/groff/groff.man: Fix typos.
524 2002-05-04  Werner LEMBERG  <wl@gnu.org>
526         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
527         (ShortOpt[]): This to avoid problems with refer.
529         * doc/pic.ms: Fix typo.
530         Fix pic grammar description.
532         * tmac/an-old.tmac (ne): Use de1, not de.
534 2002-05-03  Werner LEMBERG  <wl@gnu.org>
536         * doc/groff.texinfo: Finished separation of glyphs and characters.
537         Don't use the string `Appendix' for appendix headers (both in
538         the text and the table of contents).
539         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
540         directories.
542         Use registers LL and LT (similar to -ms) for controlling the
543         length of title and line, respectively, in the -man and -mdoc
544         macro packages.
546         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
547         (doc-setup-page-layout): Use \n[LL] and \n[LT].
548         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
549         (TH): Use \n[LL].
550         (an-header, an-p-footer): Use \n[LT].
551         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
552         doc/groff.texinfo: Document it.
554 2002-05-02  Werner LEMBERG  <wl@gnu.org>
556         * doc/fdl.texi: New file.
557         * doc/groff.texinfo: Include it.
558         Define and use @copying.
559         Starting with separating glyph, symbol, and character.
561 2002-04-27  Werner LEMBERG  <wl@gnu.org>
563         * Makefile.in (EXEEXT): Set it.
564         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
565         programs.
567         * src/include/nonposix.h: Define GS_NAME.
568         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
570         Some preliminary changes for EMX support under OS/2.
572         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
573         __EMX__ similar to __MSDOS__.
574         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
576 2002-04-25  Werner LEMBERG  <wl@gnu.org>
578         * doc/groff.texinfo: Integrated groff_out.man.
579         Some macro fixes.
581 2002-04-23  Werner LEMBERG  <wl@gnu.org>
583         * man/groff_out.man: Minor fixes.
585 2002-04-23  Werner LEMBERG  <wl@gnu.org>
587         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
588         correct page references.
589         Fixed many index entries.
591 2002-04-23  Bernd Warken  <bwarken@mayn.de>
593         * man/roff.man: Enlarged.
595 2002-04-22  Werner LEMBERG  <wl@gnu.org>
597         * doc/groff.texinfo: More examples, other fixes.
599 2002-04-20  Werner LEMBERG  <wl@gnu.org>
601         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
602         will now form a chain, e.g.
604           .pi foo
605           .pi bar
607         is now the same as
609           .pi foo | bar
611         This is for compatibility with plan 9's troff.
613         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
614         with UNIX troff.
615         * NEWS: Updated.
617         * doc/groff.texinfo: Add documentation of remaining requests and
618         registers.
620 2002-04-19  Werner LEMBERG  <wl@gnu.org>
622         * doc/groff.texinfo: Add documentation of remaining escapes.
624         * font/devdvi/generate/tc.map: Remove entry for `sr'.
625         * font/devdvi/*TC: Regenerated.
627 2002-04-18  Werner LEMBERG  <wl@gnu.org>
629         * src/roff/troff/input.cc (token::next): Make \H behave consistently
630         if not in compatibility mode, i.e., increment relative to the
631         previous height.
632         * doc/groff.texinfo: Updated accordingly.
634 2002-04-17  Werner LEMBERG  <wl@gnu.org>
636         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
638 2002-04-16  Bernd Warken  <bwarken@mayn.de>
640         * src/roff/groff/groff.man: Improve documentation of -P option.
641         Other minor fixes.
643 2002-04-15  Werner LEMBERG  <wl@gnu.org>
645         Add new escape \F to switch font family.
647         * src/roff/troff/input.cc (token::next): Handle \F.
648         * src/roff/troff/env.cc (environment::set_family): Handle
649         `interrupted' flag.
650         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
651         Document it.
653 2002-04-14  Werner LEMBERG  <wl@gnu.org>
655         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
656         spaces in tags.
658 2002-04-13  Werner LEMBERG  <wl@gnu.org>
660         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
661         \m[] and \M[], respectively.
663         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
664         (symbol::symbol): Handle NULL string and empty string differently.
665         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
666         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
667         Add optional parameter.
668         Updated calling functions.
669         (get_copy, do_glyph_color, do_fill_color, token::next): Use
670         `symbol::is_empty'.
671         * src/roff/troff/env.cc (environment::set_font): Ditto.
673         * src/preproc/pic/troff.cc (troff_output::set_fill,
674         troff_output::reset_color: Updated.
676         * tmac/www.tmac: Updated.
678         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
679         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
680         Updated.
682         * tmac/Xps.tmac: Remove some redundant code.
684         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
685         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
686         man/groff_out.man, man/groff.man, man/groff_diff.man,
687         src/roff/groff/groff.man: Replace \f[P] with \f[].
689 2002-04-13  Bernd Warken  <bwarken@mayn.de>
691         * src/include/printer.h, src/libs/libdriver/printer.cc
692         (printer::change_fill_color): New member function.
693         * src/libs/libdriver/input.cc (parse_D_command): Use it.
695 2002-04-12  Werner LEMBERG  <wl@gnu.org>
697         * doc/groff.texinfo: Completed pass on gtroff reference.
699 2002-04-11  Werner LEMBERG  <wl@gnu.org>
701         * doc/groff.texinfo: More fixes.
703 2002-04-11  Bernd Warken  <bwarken@mayn.de>
705         * src/include/color.h: Decorate with `const'.
706         Use `size_t'.
707         Include `stddef.h'.
708         * src/libs/libgroff.color.cc: Decorate with `const'.
709         Use `size_t'.
710         (color::color): Initialize members.
711         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
712         command according to the documentation.
714         * man/groff_out.man: Updated.
715         Minor fixes.
717 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
719         * src/preproc/html/pre-html.cc (write_start_image): Remove
720         redundant output.
721         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
723         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
724         \C'hy' caused an assertion failure.
726         * src/roff/troff/env.cc (environment::environment): Initialize
727         `emitted_node'.
728         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
730 2002-04-10  Werner LEMBERG  <wl@gnu.org>
732         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
733         Document pvs request and .pvs register.
735 2002-04-09  Werner LEMBERG  <wl@gnu.org>
737         * doc/groff.texinfo: Improve and fix documentation of diversions
738         and environments.
740 2002-04-08  Werner LEMBERG  <wl@gnu.org>
742         * doc/groff.texinfo: Fix documentation of drawing functions.
743         Other minor fixes.
745 2002-04-07  Werner LEMBERG  <wl@gnu.org>
747         * doc/groff.texinfo: Better documentation of double quotes as
748         arguments.
749         Other minor fixes.
751 2002-04-06  Werner LEMBERG  <wl@gnu.org>
753         * man/groff_font.man: Document names of special characters better.
754         * doc/groff.texinfo: Minor improvements.
756         * tmac/lbp.tmac: Load latin1.tmac.
757         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
759         * font/devX*/*: Regenerated (all chars > 0x80 removed).
761 2002-04-05  Werner LEMBERG  <wl@gnu.org>
763         * tmac/tty.tmac: Don't use shc request.
764         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
765         * NEWS: Updated.
767         * man/groff_diff.man: Minor fixes.
769         * font/devlbp/*: Remove all `charXXX' entities.
771         * src/libs/libgroff/font.cc (font::~font): Deallocate
772         `special_device_coding'.
773         (font::load): Use `new' for allocating `special_device_coding'.
774         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
775         Removed unused member.
777 2002-04-05  Werner LEMBERG  <wl@gnu.org>
779         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
780         (resource_manager::do_begin_binary,
781         resource_manager::do_begin_data): Use it.
783         * doc/texinfo.tex: Updated to version 4.2.
785         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
786         (token::zero_width_break): New inline function.
787         * src/roff/troff/input.cc (token::next): Use it.
788         (token::description): Updated.
789         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
790         (token::add_to_node_list, token::process): Use it.
791         * NEWS, doc/groff.texinfo: Updated.
793         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
794         * tmac/tty.tmac: Add missing backslash.
796 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
798         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
799         `.ps' register instead of `.s' to handle fractional point sizes.
800         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
801         limit_box::output): Ditto.
802         * src/preproc/eqn/other.cc (size_box::compute_metrics,
803         size_box::output): Ditto.
804         * src/preproc/eqn/over.cc (over_box::compute_metrics,
805         over_box::output): Ditto.
806         * src/preproc/eqn/script.cc (script_box::compute_metrics,
807         script_box::output): Ditto.
808         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
809         sqrt_box::output): Ditto.
811 2002-04-03  Michael Selway  <mas@ssl.co.uk>
813         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
814         Fix typo.
816 2002-04-03  Werner LEMBERG  <wl@gnu.org>
818         * doc/homepage.ms: Reduce title size.
819         * doc/groff.texinfo: Fix documentation of .t register.
820         Fix handling of colon.
821         Fix `\' vs. `\\'.
823         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
824         only if page length is positive to avoid a loop.
826         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
827         tbl.
829 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
831         * src/include/nonposix.h, src/roff/groff/pipeline.c:
832         s/__CYGWIN32__/__CYGWIN__/.
834 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
836         * doc/gnu.xpm: New image contributed by Emily Mulley.
837         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
838         (homepage.html): Be dependent on gnu.eps.
839         * doc/homepage.ms: Updated to new image.
841         * src/devices/grohtml/post-html.cc (html_printer): New member
842         `sbuf_prev_hpos'.
843         (html_printer::flush_sbuf, html_printer::set_char): Set it.
844         (html_printer::sbuf_continuation): Use it.
846 2002-03-28  Werner LEMBERG  <wl@gnu.org>
848         * src/libs/libgroff/getopt.c: Updated to latest version.
850         * tmac/README: More on hyphen.tex license.
852 2002-03-26  Larry Kollar  <kollar@alltel.net>
854         * doc/groff.texinfo: Add documentation of most missing requests.
856 2002-03-25  Werner LEMBERG  <wl@gnu.org>
858         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
859         of `+-', `mu', and `di', respectively.
861         * font/devascii/R.proto, font/devutf8/R.proto,
862         font/devlatin1/R.proto, font/devhtml/R.proto,
863         font/devcp1047/R.proto, font/devlpb/*: Add them.
864         * font/devps/generate/textmap: Ditto.
865         * font/devps/*: Regenerated.
866         * font/devlj4/generate/text.map: Add them.
867         * font/devlj4/*: Regenerated.
868         * font/devdvi/generate/tc.map: Use them.
869         * font/devdvi/generate/texsy.map: Add them.
870         * font/devdvi/*: Regenerated.
871         * font/devX*/*: Regenerated.
873         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
874         tmac/tty-char.tmac: Updated.
876         * NEWS, man/groff_char.man: Updated.
878 2002-03-24  Werner LEMBERG  <wl@gnu.org>
880         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
881         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
882         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
883         we use `.fchar' in dvi.tmac.
884         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
885         * tmac/Xps.tmac: Simplify some char definitions.
886         Add definition for \[f/].
887         * man/groff_char.man: Updated for new X.tmac.
889         * tmac/README: New file.
891 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
893         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
894         internal .y.o rule took precendence over the .y.cc rule, compiling
895         the yacc files with gcc instead of g++.
897 2002-03-23  Werner LEMBERG  <wl@gnu.org>
899         * tmac/dvi.tmac: Add replacement font for `CB'.
901         * tmac/doc.tmac: s/request/macro/ in messages.
902         (doc-generic-macro): Improve error message.
903         * tmac/groff_mdoc.man: Minor improvements.
905 2002-03-22  Werner LEMBERG  <wl@gnu.org>
907         * doc/groff.texinfo: Document possible conflict between `tr' and
908         `char' requests.
910 2002-03-21  Werner LEMBERG  <wl@gnu.org>
912         Improve handling of hyphenation patterns.  It is now possible to
913         use most of TeX's pattern files unmodified.  To make the process
914         more flexible, a new request `hpfcode' has been added which
915         provides a character code mapping for the `hpf' request.  See
916         comment before hpf_getc() for more details.
918         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
919         functions.
920         (read_patterns_file): Additional parameter for exception dictionary.
921         Extended to recognize \pattern, \hyphenation, and \endinput.
922         (do_hyphenation_patterns_file): Updated.
923         * src/roff/troff/env.h (hpf_code_table): New extern.
925         * src/roff/troff/input.cc (hpf_code_table): New array.
926         (init_hpf_code_table, hyphenation_patterns_file_code): New
927         functions.
928         (hyphenation_code): Handle translation from `trin' correctly.
929         (main, init_input_requests): Updated.
930         (charinfo::set_translation): Handle hyphenation code also.
932         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
933         inline function.
935         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
936         char' is used for offsets in hyphenation exceptions.
938         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
940         * NEWS, man/groff_diff.man, man/groff.man: Document it.
942 2002-03-20  Larry Kollar  <kollar@alltel.net>
944         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
945         requests.
947 2002-03-18  Werner LEMBERG  <wl@gnu.org>
949         * tmac/html.tmac: Fix serious typo.
951 2002-03-17  Larry Kollar  <kollar@alltel.net>
953         * doc/groff.texinfo: Add documentation for `writec' request.
955 2002-03-17  Werner LEMBERG  <wl@gnu.org>
957         Added request `hpfa' to append hyphenation patterns.
959         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
960         parameter `append'.
961         (hyphenation_patterns_file): Renamed to...
962         (do_hyphenation_patterns_file): This.
963         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
964         functions.
965         (init_hyphen_requests): Updated.
966         * NEWS, man/groff.man, man/groff_diff.man: Document it.
968 2002-03-16  Werner LEMBERG  <wl@gnu.org>
970         Added request `writec' in analogy to `tmc'.
972         * src/roff/troff/input.cc (write_request): Renamed to...
973         (do_write_request): This.
974         Added one parameter.
975         (write_request, write_request_continue): New functions.
976         (init_input_requests): Updated.
977         * NEWS, man/groff.man, man/groff_diff.man: Document it.
979         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
980         5-10000pt.
981         * NEWS: Document it.
983 2002-03-15  Werner LEMBERG  <wl@gnu.org>
985         * man/groff.man: Add writem request.
987         Add request `trin' (translate input) to make `.asciify' work
988         correctly.  This is necessary since `charXXX' entity names are no
989         longer hardcoded in font definition files.
991         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
992         `translate_input' members.
993         (charinfo::set_asciify_code, charinfo::get_asciify_code,
994         charinfo::set_translation_input): New methods.
995         (charinfo::set_translation): Add third argument.
996         * src/roff/troff/input.cc (charinfo:set_translation): Set
997         `asciify_code'.
998         (do_translate): Add second argument.
999         (translate_input): New function.
1000         (init_input_requests): Updated.
1001         * src/roff/troff/node.cc (glyph_node::asciify,
1002         composite_node::asciify): Use `get_asciify_code'.
1004         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
1006         * NEWS, man/groff.man, man/groff_diff.man: Updated.
1008 2002-03-14  Larry Kollar  <kollar@alltel.net>
1010         * doc/groff.texinfo: Improve documentation of .RS and .RE.
1012 2002-03-14  Werner LEMBERG  <wl@gnu.org>
1014         Add a new request `sizes' similar to the `sizes' command in DESC
1015         files.
1017         * src/roff/troff/env.cc (override_sizes): New function.
1018         (init_env_requests): Use it.
1019         * src/roff/troff/token.h: Export `read_string'.
1020         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1022 2002-03-12  Werner LEMBERG  <wl@gnu.org>
1024         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
1026 2002-03-10  Werner LEMBERG  <wl@gnu.org>
1028         * tmac/pspic.tmac: Add support for -Tdvi.
1029         * tmac/dvi.tmac: Include pspic.tmac.
1030         * src/devices/grodvi/grodvi.man: Document it.
1031         * NEWS: Updated.
1033         * font/devlj4/generate/Makefile: Fix URL of metric files.
1035 2002-03-09  Werner LEMBERG  <wl@gnu.org>
1037         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
1039 2002-03-09  Larry Kollar  <kollar@alltel.net>
1041         * tmac/groff_ms.man: Add documentation for RS and RE macros.
1043 2002-03-08  Werner LEMBERG  <wl@gnu.org>
1045         * doc/groff.texinfo: Fixes for texinfo 4.1.
1047 2002-03-07  Werner LEMBERG  <wl@gnu.org>
1049         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
1050         included.
1051         Handle CYGWIN properly.
1053 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
1055         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
1056         * tmac/lbp.tmac: Add some font translations.
1058 2002-03-02  Werner LEMBERG  <wl@gnu.org>
1060         * font/devcp1047/R.proto, font/devlatin1/R.proto,
1061         font/devhtml/R.proto: Remove `charXXX'  entries.
1062         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
1063         where appropriate.
1065         * font/devlj4/generate/text.map: Remove `charXXX' entries.
1066         * font/devlj4/*: Regenerated all font definition files.
1067         * tmac/lj4.tmac: Load latin1.tmac.
1069         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
1070         from 2000-06-17: LJ4 metric files are *not* text files.
1072         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
1073         register to test for EBCDIC.
1075 2002-03-01  Werner LEMBERG  <wl@gnu.org>
1077         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
1078         files (as grops already does).
1079         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
1080         files.
1081         * src/devices/grops/grops.man: Document comment lines in encoding
1082         files.
1084         * tmac/cp1047.tmac: New file.
1085         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
1086         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
1087         * tmac/Makefile.sub (NORMALFILES): Updated.
1089         * tmac/ec.tmac: Don't load latin1.tmac again.
1091         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
1092         font/devps/generate/dingbats.map,
1093         font/devps/generate/dingbats.rmap, font/devps/text.enc,
1094         font/devps/generate/Makefile (symbolmap): Add header comment.
1095         * font/devps/generate/textmap: Ditto.
1096         Remove `charXXX' entries.
1097         * font/devps/symbolmap: Regenerated.
1098         * font/devps/*: Regenerated all font definition files.
1100 2002-02-28  Werner LEMBERG  <wl@gnu.org>
1102         Add color support to grodvi (for drawing colors are currently
1103         translated to gray values).
1105         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
1106         (dvi_printer): Add `cur_color' member.
1107         (dvi_printer::set_color): New function.
1108         (draw_dvi_printer): Remove `fill'.
1109         (draw_dvi_printer::fill_next): Pass environment as parameter.
1110         Update code for new color support translated to gray.
1111         (dvi_printer::set_char): Updated.
1112         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
1113         changes crossing the page border.
1114         (dvi_printer::draw): Updated.
1115         Remove cases `f' and `F'.
1116         * tmac/dvi.tmac: Add color definitions.
1117         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1119         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
1120         used incorrectly.
1122         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
1123         versions of autoconf.
1124         * configure: Updated.
1126         * doc/homepage.ms: Use `.blm'.
1127         * tmac/www.tmac (www-depth): New auxiliary variable.
1128         (www-pop-level): Don't issue HTML tag.
1129         (ULS, ULE, LI): Use absolute indentation.
1131         * src/devices/grops/ps.cc (ps_printer::begin_page,
1132         ps_printer::end_page): Switch forth and back to default color while
1133         starting a new page.
1135 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1137         Add EC and TC fonts to devdvi.
1139         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1140         * font/devdvi/generate/cork.map: Renamed to...
1141         * font/devdvi/generate/ec.map: This.
1142         Remove entry for `aq'.
1143         * font/devdvi/generate/tc.map: New file.
1144         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1145         EC and TC fonts.
1146         (FONTS): Updated.
1147         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1148         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1149         * tmac/ec.tmac: New file.
1150         * tmac/Makefile.sub (NORMALFILES): Updated.
1151         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1152         * man/groff_char.man: Check `ECFONTS' register.
1154         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1156 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1158         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1159         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1160         * font/devdvi/*: Updated.
1161         * tmac/dvi.tmac: Formatting.
1163         Add font `HBI' for the dvi output.
1164         Add support for font families `T' and `H'.
1166         * font/devdvi/HBI: New file.
1167         * font/devdvi/B: Renamed to ...
1168         * font/devdvi/TB: This.
1169         * font/devdvi/BI: Renamed to ...
1170         * font/devdvi/TBI: This.
1171         * font/devdvi/I: Renamed to ...
1172         * font/devdvi/TI: This.
1173         * font/devdvi/R: Renamed to ...
1174         * font/devdvi/TR: This.
1175         * font/devdvi/H: Renamed to ...
1176         * font/devdvi/HR: This.
1177         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1178         * font/devdvi/generate/Makefile (HBI): New rule.
1179         (FONTS): Updated.
1180         (R, I, B, BI, H): Renamed to ...
1181         (TR, TI, TB, TBI, HR): This, respectively.
1182         (srcdir): Fixed.
1183         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1184         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1185         Add `styles' and `family' keywords.
1186         * tmac/dvi.tmac: Alias `H' to `HR'.
1187         Add some fspecial requests for italic fonts.
1188         Add TR and TI as special.
1189         Add support for `_' with font CWI.
1191         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1192         operator `:'.  Until now, the expression `0:1' would return 2
1193         instead of 1.
1195 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1197         * man/groff_char.man: Added some missing PS glyph names (from the
1198         Adobe Glyph List).
1199         * font/devps/generate/textmap, font/devps/symbolmap: Add
1200         `arrowupdn'.
1202         * doc/groff.texinfo: Minor additions and fixes.
1203         * man/groff_diff.man: Remove documentation of fp request.  This
1204         is already covered in the original troff manual.
1205         Updated to be consistent with other doc files.
1206         * NEWS: Updated.
1208 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1210         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1211         TTYDEVDIRS.
1212         Define new variable OTHERDEVDIRS (containing `font/devlj4
1213         font/devlbp' if not EBCDIC).
1214         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1215         (OTHERDEVDIRS): New variable.
1216         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1217         * configure: Regenerated.
1219         * NEWS, src/devices/grotty/grotty.man: Updated.
1221 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1223         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1224         get_line_arg): Honour input level.
1226         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1228         * font/*/*: Implement it in all font files.
1229         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1230         * font/devps/symbolmap: Updated.
1231         * font/devlj4/generate/text.map: Updated.
1232         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1233         * font/devdvi/generate/texmi.map: Updated.
1235         * font/devutf8/R.proto: Remove all `charXXX' entries.
1236         * font/devutf8/NOTES: Updated.
1238         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1239         version 4.1.0.
1241         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1243         * NEWS, man/groff_char.man: Updated.
1245 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1247         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1249 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1251         * src/roff/grog/grog.pl: Fix computation of $refer.
1253 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1255         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1256         `snprintf' and `vsnprintf'.
1258         * src/include/htmlindicate.h: Renamed to...
1259         * src/include/htmlhint.h: This.
1260         * src/include/Makefile.sub: Updated.
1261         * src/preproc/eqn/main.cc: Updated.
1263 2002-02-18  Werner LEMBERG  <wl@gnu.org>
1265         * man/roff.man, man/groff_out.man, man/groff.man,
1266         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1267         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1269         * win32-diffs: Updated.
1271 2002-02-17  Werner LEMBERG  <wl@gnu.org>
1273         * doc/Makefile (clean): Add *.eps.
1274         (MEMACROS): Removed.
1275         (TFLAG): New variable.
1276         (TROFF): Use it.
1277         Add -ww.
1278         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1279         (.me.dit): Fixed.
1280         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1282         * tmac/www.tmac: Use dummy diversion while resetting and disabling
1283         `.tl'.
1284         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1285         unstripped.
1286         * src/roff/troff/troff.man: Fix order of parameter description.
1288         * NEWS: Updated.
1290 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
1292         Simplify image handling for grohtml.
1293         Fix <p> bug.
1295         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1296         comment out.
1297         (html_text::dump_stack): Don't emit newline while debugging.
1298         (html_text::do_push) [DEBUGGING]: Print more info.
1299         (html_text::check_emit_text): Fix handling of <p>.
1300         * src/devices/grohtml/html.h: Updated.
1301         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1302         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
1303         send its data to stderr also.
1304         Update all callers.
1305         (simple_output::space_or_newline) [DEBUGGING]: Removed.
1306         * src/devices/grohtml/post-html.cc (html_printer::do_links,
1307         html_printer::html_printer): Remove `DEBUGGING' conditionals.
1309         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1310         Removed.
1311         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1312         is_inline_image): Removed.
1313         (html_begin_suppress, html_end_suppress): Don't take a parameter.
1314         (graphic_start, graphic_end): Removed.
1315         * src/include/htmlindicate.h: Updated.
1316         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1317         (macroset_template): New global variable.
1318         (makeFileName): Use `macroset_template'.
1319         (write_end_image): Don't take a parameter.
1320         Don't emit newline.
1321         (write_start_image: Don't emit newline.
1322         (char_buffer::write_upto_newline): Updated.
1323         (char_buffer::skip_to_newline): Renamed to ...
1324         (char_buffer::skip_until_newline): This.
1325         Fix code.
1326         (char_buffer::write_file_troff, char_buffer::write_file_html):
1327         Simplified.
1328         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1329         (removeAllPages): Remove `DEBUGGING' conditionals.
1330         (addRegDef, dump_args): New functions.
1331         (char_buffer::do_html, char_buffer::do_image): Handle
1332         `www-image-template' command line variable.
1333         Add more debugging code.
1334         (addps4html): Removed.
1335         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1337         * src/preproc/eqn/main.cc: Include `ctype.h'.
1338         (suppress_html): Removed.
1339         (do_file): Updated.
1340         (inline_equation): Use `html_begin_suppress' and
1341         `html_end_suppress'.
1342         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1343         (troff_output::start_picture, troff_output::finish_picture):
1344         Updated.
1345         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1346         (process_input_file): Updated.
1348         * src/roff/troff/div.cc (page_number): Set page number only if the
1349         `ps4html' register isn't defined.
1350         * src/roff/troff/input.cc (image_no): New external variable.
1351         (do_suppress): Use it.
1352         * src/roff/troff/node.h (suppress_node::image_id): New member.
1353         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1354         (suppress_node::suppress_node): Initialize `image_id' member.
1355         (suppress_node::same): Handle `image_id' also.
1356         (suppress_node::copy): Updated.
1357         (last_image_id): New global variable.
1358         (suppress_node::tprint): Use it.
1360         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1361         HTML-IMAGE-END.
1362         * tmac/pspic.mac (PSPIC): Fix html support.
1363         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1364         * tmac/www.tmac (www-image-template): Set up.
1365         (HTMLINDEX): Renamed to...
1366         (HX): This.
1367         (BODYCOLOR): Renamed to...
1368         (BCL): This.
1369         (BACKGROUND): Renamed to...
1370         (BGIMG): This.
1371         (URL): Change order of parameters for consistency.
1372         (MAILTO): Renamed to...
1373         (MTO): This.
1374         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1375         (IMG, PIMG, MPIMG): This.
1376         (HTML-H-BEGIN, HTML-H-END): Renamed to...
1377         (HnS, HnE): This.
1378         (LINKS): Renamed to...
1379         (LK): This.
1380         (LINE): Renamed to...
1381         (HR): This.
1382         (NO-AUTO-RULE): Renamed to...
1383         (NHR): This.
1384         (HTML-TL): Renamed to...
1385         (HTL): This.
1386         (UL-BEGIN, UL-END): Renamed to...
1387         (ULS, ULE): This.
1388         (DROPCAP): Renamed to...
1389         (DC): This.
1390         (TS, TE, EQ, EN): Provide default definitions.
1391         (www-make-unique-name): Updated.
1392         (HTML-IMAGE-INLINE): Fix typo.
1393         * tmac/groff_www.man: Updated.
1395         * doc/Makefile (homepage.html): Add option -r to grohtml.
1396         Use shortened image name.
1397         * doc/groff.texinfo: Updated info on grohtml strings and macros.
1398         * doc/homepage.ms: Updated and extended.
1400 2002-02-14  Werner LEMBERG  <wl@gnu.org>
1402         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1404         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1405         SGR_BACK_DEFAULT_COLOR): Replaced with ...
1406         (tty_printer::put_color): Use it.
1407         (ttr_printer::end_page): Simplify.
1409 2002-02-13  Werner LEMBERG  <wl@gnu.org>
1411         * tmac/groff_tmac.man: Moved to...
1412         * man/groff_tmac.man: This place.
1413         * tmac/Makefile.sub, man/Makefile.sub: Updated.
1415 2002-02-12  Werner LEMBERG  <wl@gnu.org>
1417         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1418         $(COMPILE.c) to not include groff's assert.h.
1420         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1421         variable.
1422         * NEWS, src/drivers/grotty/grotty.man: Document it.
1424 2002-02-11  Werner LEMBERG  <wl@gnu.org>
1426         * src/libs/snprintf/snprintf.c: Updated to latest version
1427         (2002-02-11).
1429         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
1430         test whether there is `.]' also.
1431         Don't check for spaces after `.['.
1432         * src/roff/grog/grog.sh: Do the same.
1434 2002-02-10  Werner LEMBERG  <wl@gnu.org>
1436         Illegal -> Invalid.
1438         * src/libs/libgroff/illegal.cc: Renamed to ...
1439         * src/libs/libgroff/invalid.cc: This.
1440         (illegal_char_table): Renamed to ...
1441         (invalid_char_table): This.
1442         * src/libs/libgroff/Makefile.sub: Updated.
1443         * win32-diffs: Updated.
1445         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1446         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1447         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1448         font::load), src/preproc/eqn/main.cc (read_line, main),
1449         src/preproc/eqn/lex.cc (file_input::read_line),
1450         src/preproc/pic/lex.cc (file_input::read_line,
1451         simple_file_input::get, simple_file_input::peek),
1452         src/preproc/pic/main.cc (top_input::get, top_input::peek),
1453         src/preproc/pic/pic.man, src/preproc/refer/main.cc
1454         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1455         do_bib), src/preproc/tbl/main.cc (table_input::get),
1456         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1457         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1458         do_zero_width, read_request, encode_char, ps_get_line,
1459         transparent_file, get_char_for_escape_name, transparent_translate,
1460         asciify, input_char_description, read_string, set_string),
1461         src/roff/troff/env.cc (environment::add_html_tag),
1462         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1464         * src/include/lib.h: Updated.
1466         * src/preproc/eqn/eqn.cc: Removed.
1468         * NEWS: Updated.
1470         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1472 2002-02-09  Werner LEMBERG  <wl@gnu.org>
1474         * doc/gnu.xpm: New image.
1475         * doc/Makefile (DOCS): Add homepage.ps.
1476         Add rules for converting xpm->png and xpm->eps.
1477         Use `gnu.{xpm,eps}' as image names.
1478         * doc/homepage.ms: Updated.
1480 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
1482         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1483         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1484         Remove calls to `B1' and `B2'
1485         (PNG-IMAGE): New macro for inclusion of images in PNG format.
1486         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1487         auxiliary variables for MARGIN-PNG-IMAGE.
1488         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1489         auxiliary macros for MARGIN-PNG-IMAGE.
1490         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1491         the margin.
1492         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1493         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1494         (DROPCAP): New macro to produce dropcap characters.
1495         (www-do-image): Renamed back to...
1496         (HTML-DO-IMAGE): This.
1497         Updated all callers.
1499         * doc/Makefile (gnubw.eps): Updated.
1500         * doc/homepage.ms: Updated.
1502 2002-02-08  Werner LEMBERG  <wl@gnu.org>
1504         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1505         Added `linethick' to table in section `Style Variables'.
1507 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
1509         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1511 2002-02-07  Werner LEMBERG  <wl@gnu.org>
1513         Adding options -C (compatibility mode) and -c (grotty's old output
1514         scheme) to nroff.
1516         * src/roff/nroff/nroff.sh: Implement it.
1517         Remove `-Wall'.
1518         * NEWS, src/roff/nroff/nroff.man: Updated.
1520         * PROBLEMS: Document bison 1.32 bug.
1522         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1524         * src/roff/troff/node.cc (make_tfont): Define it earlier.
1525         * src/roff/troff/div.h: Add prototype for `end_diversions'.
1526         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1527         * src/roff/troff/env.h: Add prototype for `title'.
1529         Adding EBCDIC support to grotty.
1531         * src/devices/grotty/tty.cc (CSI): New macro.
1532         (SGR_*, tty_printer::put_color): Use it.
1534 2002-02-06  Werner LEMBERG  <wl@gnu.org>
1536         Implementing color support in grotty.  The new switch -c activates
1537         the old drawing scheme, disabling color at the same time.  The new
1538         switch `-i' selects italic instead of underlining (SGR only).
1540         * src/devices/grotty/tty.cc (putstring): New define instead of
1541         `fputs'.  Updated all callers.
1542         (old_drawing_scheme): New global variable.
1543         (COLOR_CHANGE): New enum value.
1544         (SGR_*): New defines containing color handling escape sequences.
1545         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1546         (glyph): New members `back_color_idx' and `fore_color_idx'.
1547         (glyph::order): Add COLOR_CHANGE.
1548         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1549         `is_underline', `is_bold', `cu_flag', `tty_colors'.
1550         New methods `make_underline', `make_bold', `color_to_idx',
1551         `change_color', `put_color'.
1552         (cu_flag): Moved into `tty_printer' class.
1553         (tty_printer::tty_printer): Initialize colors.
1554         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1555         tty_printer::draw, tty_printer::end_page): Handle colors also.
1556         (main): Add options `-c' and `-i'.
1557         (usage): Updated.
1558         * NEWS, src/devices/grotty/grotty.man: Updated.
1560         * src/include/errarg.h (errarg): Add support for `unsigned int'.
1561         * src/libs/libgroff/errarg.c: Implement it.
1563         * src/include/printer.h (printer): Add `change_color' method
1564         (currently used by grotty only).
1565         * src/libs/libdriver/printer.cc: Implement it.
1566         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1567         call to `pr->change_color'.
1569         * src/roff/troff/node.cc (troff_output_file::fill_color,
1570         troff_output_file::glyph_color): Call `do_motion'.
1572         * tmac/tty.tmac: Add color definitions.
1574         * src/roff/groff/groff.man: Minor fixes.
1576 2002-02-05  Bernd Warken  <bwarken@mayn.de>
1578         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1579         it.  This is a preparation for future changes.
1581 2002-02-05  Werner LEMBERG  <wl@gnu.org>
1583         * src/roff/troff/input.cc (process_input_stack): Fix the case
1584         where leading spaces are followed by \f or \s; previously, an
1585         incorrect space width has been used.
1587         * doc/roff.man (quoted_char): Fix argument.
1588         (comment): Define string.
1590 2002-02-04  Larry Kollar  <kollar@alltel.net>
1592         * doc/groff.texinfo: More fixes.
1594 2002-02-04  Werner LEMBERG  <wl@gnu.org>
1596         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1597         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1598         `restore_compatibility' before `output_string' -- the LINE_STRING
1599         register now already contains proper switches from and to
1600         compatibility mode.
1602         * man/groff_char.man: Add Euro symbol.
1603         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1604         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1605         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1606         Other minor fixes.
1608         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1609         texinfo->pdf.
1610         (.texinfo.html): Add support for texinfo->html.
1612 2002-02-03  Werner LEMBERG  <wl@gnu.org>
1614         Added three new requests `ds1', `as1', and `ami'.  The former two
1615         are equivalent to `ds' and `as' with the difference that
1616         compatibility mode is saved on entry, switched off during string
1617         expansion, and restored on exit.  The latter is the pendant to `dei'
1618         for `am'.
1620         (do_define_string): Use `define_mode' and `calling mode'.
1621         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1622         end of string, respectively.
1623         (define_string, append_string): Use `calling_mode'.
1624         (define_nocomp_string, append_nocomp_string,
1625         define_string_indirect): New functions.
1626         (init_input_requests): Updated.
1627         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1629         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1630         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1631         mm macro package accesses this string register directly.
1632         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1634         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1635         compatibility mode.
1637 2002-02-02  Larry Kollar  <kollar@alltel.net>
1639         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1641 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1643         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1645 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1647         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1648         * man/groff_out.man: Revised and updated.
1650 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1652         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1653         out the unused `{' and `}' commands.  Undefined by default.
1654         (IntArray): Make `data' private.
1655         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1656         new methods instead.
1657         (skip_line_D, skip_to_end_of_line): New functions.
1658         (get_D_fixed_args): Use `skip_line_D'.
1659         Changed to handle dummy odd arguments by ...
1660         (get_D_fixed_args_odd_dummy): This new function.
1661         (get_D_variable_args): Split some code into ...
1662         (get_possibly_integer_args): This new function.
1663         (send_draw): Use more `const'.
1664         (delete_current_env): New function.
1665         (position_to_end_of_args): Use `size_t'.
1666         Updated.
1667         (send_draw): Updated.
1668         (parse_D_command): Handle `c', `C', and `t' better.
1669         Updated.
1670         (do_file): Updated.
1672 2002-01-29  Werner LEMBERG  <wl@gnu.org>
1674         * NEWS: Revised.
1675         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1676         @Def...ListEnd which replaces @Def...x.  This is necessary to get
1677         proper HTML output -- see the comment in the file for more
1678         information.
1679         Updated all calls.
1681 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
1683         Fixes to make color changes of 2002-01-21 work with grohtml.
1685         * src/devices/grohtml/post-html.cc (style): Updated.
1686         (html_printer): Remove unused methods.
1687         (html_printer::do_font, html_printer::draw, html_printer::set_char,
1688         html_printer::special): Updated.
1689         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1690         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1691         Added some debugging code.
1692         (html_text::start_tag): Updated.
1693         (html_text::do_push): New method.
1694         (html_text::push_para): Call it.
1695         Add method for handling color.
1696         (html_text::do_color): Updated.
1697         (html_text::shutdown): Handle color.
1698         * src/devices/grohtml/html-text.h (tag_definition): New member
1699         `col'.
1700         Updated.
1702 2002-01-28  Werner LEMBERG  <wl@gnu.org>
1704         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1706 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1708         Add two switches -a and -g to control the antialiasing bits for
1709         text and graphics, respectively.
1711         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1712         `-g'.
1713         * src/devices/grohtml/grohtml.man: Document them.
1714         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1715         New macros.
1716         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1717         (setupAntiAlias): New function.
1718         (createAllPages): Updated.
1719         (scanArguments): Handle `-a' and `-g'.
1720         (main): Call `setupAntiAlias'.
1721         * NEWS: Updated.
1723 2002-01-27  Werner LEMBERG  <wl@gnu.org>
1725         * doc/groff.texinfo (Def*): Call index function after deffn.
1727         * tmac/html.tmac: Call `nroff' request.
1729 2002-01-26  Larry Kollar  <kollar@alltel.net>
1731         * tmac/groff_ms.man: Add some omissions.
1733 2002-01-25  Larry Kollar  <kollar@alltel.net>
1735         * tmac/groff_ms.man: Typographical improvements.
1737 2002-01-25  Werner LEMBERG  <wl@gnu.org>
1739         * doc/groff.texinfo: Updated version and copyright.
1740         * src/devices/grops/grops.man: Updated.
1742         * tmac/groff_tmac.man: Fix `ig' macro.
1744         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1745         nroff mode.
1746         Use `.ne' unconditionally everywhere.
1747         (TS): Only insert some vertical space.  Doing a page break is no
1748         longer necessary due to the redefinition of the `ne' request.
1750         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1751         warning for unknown subcommands but parse and pass them to the
1752         device driver.
1754 2002-01-24  Werner LEMBERG  <wl@gnu.org>
1756         * tmac/groff_www.man, NEWS: Fix typos.
1758 2002-01-21  Werner LEMBERG  <wl@gnu.org>
1760         Complete revision of color support:
1762           Adapt programs to the new libdriver/input.cc.
1764           Color spaces are no longer converted to RGB but transferred as-is
1765           in the troff intermediate output format.
1767           Handle default color gracefully.  troff now supports a `default'
1768           color (which can't be changed).
1770           grops will now use the proper color space functions if available.
1772           Update pic.
1774         Note that currently grohtml doesn't handle colors properly.  This
1775         has to be fixed.
1777         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1778         (ui_to_a): New function.
1779         * src/include/lib.h: Updated.
1781         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1782         (color): Simplified; removed all `double' members and methods.
1783         A new array `components' now holds the color parameters.
1784         (color::is_default, color::get_components): New methods.
1785         (color::operator==, color:operator!=): New.
1786         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1787         to make access to the `components' array more comprehensible.
1788         * src/libs/libgroff/color.cc: Implement new color support.
1789         (atoh): Small fixes.
1790         (color::read_encoding): Simplified for new troff intermediate color
1791         output format.
1792         (default_color): New global variable.
1794         * src/roff/troff/input.cc (default_symbol): New global variable.
1795         (lookup_color): Use it.
1796         (default_black): Removed.
1797         (do_glyph_color, do_fill_color): Simplified.
1798         (define_color): Handle default color.
1799         Improve warnings.
1800         (do_if_request): Handle default color.
1801         * src/roff/troff/env.cc (environment::environment): Initialize
1802         colors with `default_color'.
1803         * src/roff/troff/node.cc (troff_output_file::put): Add method
1804         for `unsigned int'.
1805         (troff_output_file::hex): Removed.
1806         (troff_output_file::fill_color, troff_output_file::glyph_color):
1807         Updated to include/color.h and libdriver/input.cc.
1809         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1810         fill color properly (identically to the outline color).  \D'f...'
1811         doesn't work any more.
1812         All function calls to it updated.
1814         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1815         Updated.
1816         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1817         Updated.
1819         * src/devices/grops/ps.cc (ps_output::put_color): New method.
1820         (ps_printer::sbuf_color): Make a real member instead of pointer.
1821         (ps_printer::fill_color, ps_printer::output_color): Removed.
1822         (ps_printer::ps_printer): Updated.
1823         (ps_printer::set_char): Ditto.
1824         (ps_printer::set_color): Use various color schemes.
1825         Use `put_color' method.
1826         (ps_printer::flush_sbuf): Don't set color.
1827         (ps_printer::fill_path): Take `environment' as parameter.
1828         Simplify color handling.
1829         (ps_printer::set_line_thickness): Renamed to ...
1830         (ps_printer::set_line_thickness_and_color): This (and updated).
1831         (ps_printer::set_color): Change second parameter from `complete'
1832         to `fill' which better describes what it does.
1833         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1834         and text in the right order.
1835         Updated.
1836         Remove branches for `f' and `F'; this is handled by
1837         libdriver/input.cc.
1838         * src/devices/grops/ps.h: Updated.
1839         * font/devps/prologue (FL): Redefined.
1840         ({F,C}r,k,g: New color functions (with and without filling).
1842         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1843         * man/groff_diff.man, man/groff.man, man/groff_out.man,
1844         doc/groff.texinfo, NEWS: Updated.
1846 2002-01-20  Bernd Warken  <bwarken@mayn.de>
1848         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
1849         in this file for what has been changed.
1851 2002-01-19  Werner LEMBERG  <wl@gnu.org>
1853         * test-groff: Fix GROFF_FONT_PATH.
1854         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1855         is read before .TH or .Dd is parsed.
1857 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
1859         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1860         quadrant boundaries.
1862 2002-01-18  Werner LEMBERG  <wl@gnu.org>
1864         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
1865         applied last patch.
1867 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
1869         * tmac/doc.common: Initialize %I register for the %I macro to
1870         avoid (harmless) warning.
1871         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1872         when in the SYNOPSIS section.
1874 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
1876         * src/preproc/pic/lex.cc (get_token): Fix typo.
1878 2002-01-17  Werner LEMBERG  <wl@gnu.org>
1880         * devices/grops/ps.cc: Fix incorrectly applied last patch.
1882 2002-01-17  Larry Kollar  <kollar@alltel.net>
1884         * tmac/groff_ms.man: Completely rewritten.
1886 2002-01-16  Werner LEMBERG  <wl@gnu.org>
1888         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1890 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1892         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1893         fill colors.
1894         (ps_printer::draw): Ditto.
1896 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
1898         * tmac/groff_mdoc.man: Minor fixes.
1900 2002-01-13  Werner LEMBERG  <wl@gnu.org>
1902         * man/groff_out.man: Some fixes.
1904 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
1906         * doc/pic.ms: Fix typos.
1908 2002-01-12  Werner LEMBERG  <wl@gnu.org>
1910         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1912 2002-01-10  Werner LEMBERG  <wl@gnu.org>
1914         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1915         symbols.
1916         * NEWS: Updated.
1918 2002-01-09  Bernd Warken  <bwarken@mayn.de>
1920         * man/groff_out.man: Revised.
1921         * man/roff.man: Minor fixes.
1922         * src/roff/troff/troff.man: Some reordering.
1924 2002-01-09  Werner LEMBERG  <wl@gnu.org>
1926         * tmac/an-old.tmac: Add dummy macros for equation support.
1928 2002-01-07  Werner LEMBERG  <wl@gnu.org>
1930         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1932         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
1933         man pages.
1934         * tmac/groff_man.man: Small improvements.
1936 2002-01-07  Bernd Warken  <bwarken@mayn.de>
1938         * man/groff_diff.man: Revised.
1940 2002-01-06  Werner LEMBERG  <wl@gnu.org>
1942         * tmac/www.tmac: Remove extraneous backslash.
1944 2002-01-06  Bernd Warken  <bwarken@mayn.de>
1946         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1948 2002-01-05  Werner LEMBERG  <wl@gnu.org>
1950         Integrated groffer, contributed by Bernd Warken.
1952         * contrib/groffer/*: New.       
1953         * Makefile.in, NEWS: Updated.
1955 2002-01-04  Werner LEMBERG  <wl@gnu.org>
1957         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1958         registers defined in macro packages.
1959         Revising the ms part.
1961 2002-01-04  Larry Kollar  <kollar@alltel.net>
1963         * doc/groff.texinfo: Add documentation for ms macros.
1965 2002-01-02  Werner LEMBERG  <wl@gnu.org>
1967         First step in adding PS support for the Euro symbol.  `eu' is the
1968         official Euro logo, `Eu' is a font-specific glyph variant.
1970         * font/devps/text.enc: Add `Euro' at position 9.
1971         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1972         * font/devps/symbolmap: Regenerated.
1974         * NEWS: Updated.
1976 2002-01-02  Bernd Warken  <bwarken@mayn.de>
1978         * man/roff.man: Revised.
1980 2002-01-01  Bernd Warken  <bwarken@mayn.de>
1982         * src/roff/groff/groff.man: Completely rewritten.
1984 2001-12-31  Werner LEMBERG  <wl@gnu.org>
1986         * doc/Makefile: Updated.
1988 2001-12-30  Werner LEMBERG  <wl@gnu.org>
1990         * tmac/www.tmac: Make all names of internal macros/registers/strings
1991         lowercase, and prepend `www-'.
1992         Other minor changes.
1993         * src/roff/troff/troff.man: Add preprocessor string at BOF.
1995 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
1997         Implement option `-b' in grohtml to set the HTML background colour.
1999         * src/devices/grohtml/post-html.cc (default_background): New global
2000         variable.
2001         (html_printer::html_printer): Initialize `background' to
2002         `default_background'.
2003         (main): Implement option `-b'.
2004         (usage): Updated.
2005         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
2006         of `-b' option.
2007         * src/devices/grohtml/grohtml.man: Updated.
2008         * doc/Makefile (.ms.html): Use `-b'.
2009         * tmac/html.tmac: Don't set background color.
2011         Add new grohtml tag `.html-tl'.
2013         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
2014         member variable.
2015         (title_desc::title_desc): Updated.
2016         (html_printer::troff_tag): Handle `.html-tl'.
2017         (html_printer::write_title): Use `with_h1'.
2018         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
2019         (HTML-TL): New macro.
2021         Add support for unordered lists in HTML.
2023         * tmac/www.tmac (www-level): New auxiliary register.
2024         (www-level1, www-level2, www-level3): New auxiliary strings.
2025         (www-push-level, www-pop-level): New auxiliary macros
2026         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
2028         Miscellaneous.
2030         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
2031         (DEFAULT_VERTICAL_OFFSET): Removed.
2032         (IMAGE_BOARDER_PIXELS): Set to 0.
2033         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
2034         (vertical_offset): Initialize with 0.
2035         (gsPaper): New global variable.
2036         (get_resolution): Scan for and return unsigned int.
2037         (get_papersize): New function to get paper length from devps/DESC.
2038         (determine_vertical_offset): New function.
2039         (createAllPages): Produce gray-level images and use proper page
2040         length.
2041         (createImage): Use `-quiet' option of pnmcrop.
2042         (addZ): Fix passing of `-Z'.
2043         (scanArguments): Fix handling of `-o'.
2044         (main): Call `determine_vertical_offset'.
2045         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
2046         code for `l'.
2048         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
2049         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
2050         glyph descenders properly.
2052         * doc/homepage.ms: Include `gnubw.eps'.
2053         * doc/Makefile (gnubw.eps): New rule.
2054         (homepage.html): Depend on `gnubw.eps'.
2056 2001-12-25  Werner LEMBERG  <wl@gnu.org>
2058         * src/roff/troff/input.cc (default_black): Fix return value.
2060 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
2062         * tmac/doc-common (Dt): Change output of architecture strings.
2063         Do some syntax cleanup.
2064         * tmac/groff_mdoc.man: Updated.
2066 2001-12-23  Werner LEMBERG  <wl@gnu.org>
2068         Adding an `itc' request (input line trap accepting \c).
2070         * src/roff/troff/env.h (environment): New member
2071         `continued_input_trap'.
2072         Make `do_input_trap' a friend function instead of `input_trap'.
2073         * src/roff/troff/env.cc (environment::environment,
2074         environment::copy): Updated.
2075         (environment::newline): Implement it.
2076         (do_input_trap): New function.
2077         (input_trap): Call `do_input_trap'.
2078         (input_trap_continued): New function.
2079         (init_env_requests): Updated.
2080         * src/roff/troff/TODO: Updated.
2082         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
2083         `.it'.
2085         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
2087 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
2089         * tmac/doc-common, tmac/doc-syms: Small updates.
2091 2001-12-22  Colin Watson  <cjwatson@debian.org>
2093         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
2095 2001-12-22  Bernd Warken  <bwarken@mayn.de>
2097         * MANIFEST: New file.
2099 2001-12-22  Werner LEMBERG  <wl@gnu.org>
2101         * src/preproc/grn/grn.man: Updated.
2103 2001-12-22  Solar Designer  <solar@openwall.com>
2105         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
2106         (DBRead): Use it.
2108 2001-12-19  Werner LEMBERG  <wl@gnu.org>
2110         Implement a fallback character request `.fchar'.
2112         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
2113         (is_fallback): New inline function.
2114         * src/roff/troff/input.cc (do_define_character): New function.
2115         (define_character): Call `do_define_character'.
2116         (define_fallback_character): New function.
2117         (init_input_requests): Add `fchar'.
2118         (charinfo::charinfo): Updated.
2119         (charinfo::set_macro): New argument to set `fallback' flag.
2120         * src/roff/troff/node.cc (make_glyph_node, make_node,
2121         node::add_char): Check `fallback' flag.
2122         * NEWS, man/groff_diff.man, man/groff_man: Updated.
2124 2001-12-16  Werner LEMBERG  <wl@gnu.org>
2126         * groff.texinfo: Document exact search algorithm for glyphs.
2128 2001-12-15  Werner LEMBERG  <wl@gnu.org>
2130         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
2131         the left side of $(MANPAGES) rule to make it always non-empty.
2133 2001-12-14  Werner LEMBERG  <wl@gnu.org>
2135         * src/roff/troff/input.cc (default_black): Define default color
2136         `black' if not yet defined.
2138 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2140         Implement new string-valued register `.fn' to return the current
2141         real (internal) font name.
2143         * env.cc (environment::get_font_name_string): New function.
2144         (init_env_requests): Add `.fn' register.
2145         * env.h (environment): Updated.
2146         * node.cc (font_info): Make `get_font_name' a friend.
2147         (get_font_name): New function.
2148         * node.h: Updated.
2150         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2152 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2154         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2156 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2158         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2160 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2162         * man/groff_diff.man: Adding documentation for \O.
2164 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2166         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2167         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2169 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2171         * man/roff.man: Revised.
2172         * src/roff/groff/groff.man: Replace man page references with a
2173         pointer to roff.man.
2175 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2177         * man/roff.man: Completely rewritten.
2179 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2181         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2183 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2185         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2186         longer used.
2187         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2188         order of initializers.
2189         * NEWS: Updated.
2191 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2193         * doc/groff.texinfo: Fix documentation of \O.
2195         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2196         html_text::do_table, html_text::do_emittext, html_text::do_para):
2197         Use `const' for first argument.
2198         (html_text::do_table): Use cast.
2199         * src/devices/grohtml/html-text.h: Updated.
2200         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2201         method for `const string &s'.
2202         * src/devices/grohtml/html.h: Updated.
2203         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2204         (ANCHOR_TEMPLATE): Modified.
2205         (manufacture_headings): New global variable to handle `-h' option.
2206         (is_subsection): Removed.
2207         (char_buffer::add_string): Add `const' to first argument.
2208         Protect against invalid string argument.
2209         Add method for `const string &s'.
2210         (text_glob): Completely redesigned.
2211         (page): Use `const' for strings and remove string length variable.
2212         (page::add_html): Removed.
2213         (page::add_end_encode): New member function.
2214         (to_unicode): Moved upwards.
2215         (title_desc, header_desc): Updated.
2216         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2217         definition.
2218         (html_printer::is_bold, html_printer::make_bold): New member
2219         functions.
2220         (html_printer::end_of_line): Updated.
2221         (generate_img_src, html_printer::do_auto_image,
2222         html_printer::do_title, html_printer::write_header,
2223         html_printer::determine_header_level, html_printer::do_heading,
2224         html_printer::do_linelength, html_printer::do_pageoffset,
2225         html_printer::do_indentation, html_printer::do_tempindent,
2226         html_printer::do_indentedparagraph, html_printer::do_break,
2227         html_printer::flush_sbuf, get_html_translation,
2228         html_printer::begin_page, html_printer::special): Rewritten to get
2229         rid of static string length limit.
2230         (html_printer::troff_tag): Added `.no-auto-rule'.
2231         (html_printer::flush_globs): Small fix.
2232         (html_printer::determine_space): Don't compute `space_width'.
2233         (html_printer::translate_to_html): Renamed to ...
2234         (html_printer::emit_html): This (with updates).
2235         (html_printer::write_header): Implement `-h' option.
2236         (html_printer::draw): Remove commented-out code.  Handle `F'
2237         command.
2238         (html_printer::add_char_to_sbuf): Removed.
2239         (html_printer::add_to_sbuf): Rewritten.
2240         (html_printer::sbuf_continuation): Fixed.
2241         (html_printer::seen_backwards_escape, reverse,
2242         html_printer::remove_last_char_from_sbuf): Removed.
2243         (char_translate_to_html, str_translate_to_html): Removed.
2244         (html_printer::overstrike): New function member.
2245         (html_printer::set_char): Use it.
2246         (html_printer::do_body): New function member.
2247         (html_printer::~html_printer): Use it.
2248         (main): Handle `-h' option.
2249         (usage): Updated.
2250         * src/devices/grohtml/grohtml.man: Document -h switch.
2252         * src/preproc/html/pre-html.cc: Include searchpath.h
2253         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2254         (get_resolution): New function.
2255         (checkImageDir): Use `0777' permissions in mkdir()
2256         (write_start_image): Rewritten to use `\O[5...]'.
2257         (createImage, generateImages): Updated.
2258         (main): Handle `F' and `h' options.
2259         Use `get_resolution'.
2261         * src/roff/troff/input.cc (begin, end, image): Removed.
2262         (do_suppress): Take parameter.
2263         Handle modified syntax of `\O'.
2264         (token::next): Updated.
2265         (init_markup_requests): Removed.
2266         (main): Updated.
2268         * src/roff/troff/div.h: Add declaration for begin_page().
2270         * tmac/color-html.tmac: Removed.  Contents moved to...
2271         * tmac/html.tmac: Here.  Set background color.
2272         * tmac/color.tmac: Removed.  Contents moved to...
2273         * tmac/ps.tmac: Here.
2274         * tmac/www.tmac: Remove the title command when generating images
2275         for html.
2276         (NO_AUTO_RULE): New macro.
2277         (HTML_DO_IMAGE): Use revised `\O' escapes.
2278         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2280 2001-12-02  Werner LEMBERG  <wl@gnu.org>
2282         * tmac/groff_mdoc.man: Fix typo.
2284 2001-12-01  Colin Watson  <cjwatson@debian.org>
2286         * man/roff.man: Fix typo.
2288 2001-11-29  Werner LEMBERG  <wl@gnu.org>
2290         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2291         stdlib.h.
2293         * src/roff/troff/input.cc (read_draw_node): Emit error message if
2294         more than one argument to \D'f ...'.
2296         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2298 2001-11-28  Werner LEMBERG  <wl@gnu.org>
2300         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2301         loaded only once.
2303         * tmac/groff_man.man: Minor cosmetic fix.
2305 2001-11-27  Werner LEMBERG  <wl@gnu.org>
2307         * src/roff/groff/groff.man, tmac/groff_tmac.man,
2308         tmac/groff_www.man: s/mwww/www/.
2310 2001-11-26  Werner LEMBERG  <wl@gnu.org>
2312         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2313         * configure: Regenerated.
2314         * win32-diffs: Updated.
2316         * tmac/groff_mwww.tmac: Renamed to ...
2317         * tmac/groff_www.tmac: This.
2318         * tmac/mwww.tmac: Removed.
2319         * NEWS, tmac/Makefile.sub: Updated.
2321 2001-11-21  Werner LEMBERG  <wl@gnu.org>
2323         * doc/groff.texinfo: Improve documentation of the `\v' escape.
2324         Fix explanation of `\D' and `rt'.
2326 2001-11-20  Werner LEMBERG  <wl@gnu.org>
2328         * tmac/an-old.tmac (an-header): Set header length equal to page
2329         width.
2330         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
2331         minor fixes.
2332         * NEWS: Small fix.
2334 2001-11-19  Werner LEMBERG  <wl@gnu.org>
2336         * NEWS, man/Makefile.sub: Updated.
2338 2001-11-19  Bernd Warken  <bwarken@mayn.de>
2340         * man/ditroff.man: New file.
2342 2001-11-17  Werner LEMBERG  <wl@gnu.org>
2344         * man/groff_differences.man: Renamed to ...
2345         * man/groff_diff.man: This.  Updated.
2346         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2348         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2349         * src/preproc/html/pushback.cc: This.  Updated.
2350         * src/preproc/html/pushbackbuffer.h: Renamed to ...
2351         * src/preproc/html/pushback.h: This.
2352         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2353         Updated.
2355         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2356         * src/libs/libgroff/htmlhint.cc: This.
2357         * src/libs/libgroff/Makefile.sub: Updated.
2359         * tmac/an-old.tmac (an-end): Fix page length.
2361 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2363         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2364         * man/Makefile.sub: Include groff_differences.man.
2365         * VERSION: Set to 1.18.
2366         * REVISION: Set to 0.
2368 2001-11-16  Bernd Warken  <bwarken@mayn.de>
2370         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2371         the second dot (or ending macro name) to end a macro.
2372         * doc/groff.texinfo: Doc fix.
2374 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
2376         * tmac/doc-common (doc-header): Handle very long document titles
2377         better.
2379 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2381         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2383 2001-11-15  Werner LEMBERG  <wl@gnu.org>
2385         * src/roff/troff/troff.man: Revised and split into troff.man and...
2386         * man/groff_differences.man: New file.
2387         * NEWS: Updated.
2389 2001-11-13  Werner LEMBERG  <wl@gnu.org>
2391         * tmac/an-old.tmac (TS, TE): New macros for table support.
2393 2001-11-12  Werner LEMBERG  <wl@gnu.org>
2395         * src/include/lib.h: Provide a fix for emx to not include
2396         groff-getopt.h.
2398 2001-10-27  Werner LEMBERG  <wl@gnu.org>
2400         * src/roff/troff/input.cc (substring_macro): Fix computation of
2401         boundary values.
2403 2001-10-20  Werner LEMBERG  <wl@gnu.org>
2405         Undo change from 2001-08-28.
2407         * src/roff/troff/input.cc (have_input): New global variable.
2408         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2409         in compatibility mode.
2410         (process_input_stack): Use it.
2412 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
2414         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2415         being handled as end-of-sentence characters,
2417 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
2419         * src/roff/troff/input.cc (file_iterator): New members
2420         `suppress_newline_flag' and `seen_escape'.
2421         (file_iterator::next_file): Updated.
2422         (file_iterator::fill): Use it.
2423         (string_iterator): New member `suppress_newline_flag'.
2424         (string_iterator::fill): Set it.
2425         (get_color_element): Use MAX_COLOR_VAL.
2426         * src/roff/troff/env.cc (environment): Remove `need_eol'.
2427         (no_fill): Don't set `env->ignore_next_eol'.
2428         (environment::newline): Handle `eol' tag properly.
2429         Emit `eol.ce'.
2430         (environment::add_html_tag): Set `env->ignore_next_eol'.
2431         Don't handle `.ce'.
2432         * src/roff/troff/env.h (environment): Updated.
2434         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2435         member function.
2436         (html_printer::outstanding_eol): New member function.
2437         (html_printer::do_title): Use new functions.
2438         (html_printer::troff_tag): Test `id_eol_ce'.
2440 2001-10-10  Werner LEMBERG  <wl@gnu.org>
2442         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2443         files work with -C also.
2445 2001-10-05  Werner LEMBERG  <wl@gnu.org>
2447         * doc/pic.ms: Minor fix.
2448         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2449         as a valid command line switch.
2450         * src/devices/grohtml/post-html.cc (main): Ditto.
2451         (usage): Updated.
2452         * src/devices/grohtml/grohtml.man: Updated.
2453         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2455 2001-10-04  Werner LEMBERG  <wl@gnu.org>
2457         Implementing color support in troff, pic, grops, and grohtml.  These
2458         changes are based on a major patch provided by Gaius Mulley
2459         <gaius@glam.ac.uk>.
2461         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2462         definitions with both hex values and fractions.
2464         New escapes: \m and \M for drawing and background color,
2465         respectively.  This corresponds to the troff output commands `m'
2466         and `DF'.
2468         groff and troff accept command line switch `-c' to disable color
2469         output (which is automatically disabled in compatibility mode).
2471         New scaling indicator `f' for fractions (1f = 65536u).
2473         New conditional operator `m' to test for defined colors with `if'
2474         and `ie'.
2476         New keywords `color' (or `colour', `colored', `coloured'), `outline'
2477         (or `outlined'), and `shaded' added to pic.
2479         * src/include/color.h: New file.
2480         * src/include/driver.h: Include it.
2481         * src/include/printer.h: Include color.h.
2482         (environment): New members `col' and `fill'.
2483         (printer): Remove `adjust_arc_center' member function.
2484         * src/include/Makefile.sub: Updated.
2486         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2487         `env.fill'.
2488         Handle `m' and `DF' troff commands.
2489         * src/libs/libgroff/color.cc: New file.
2490         * src/libs/libgroff/Makefile.sub: Updated.
2492         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2493         (stop): Removed.
2494         (createImage): Fix computation of `y2'.
2495         Use `pnmcrop' also.
2496         (buffer::write_file_html): Remove calls to `stop'.
2498         * src/preproc/pic/common.h (common_output): New abstract function
2499         members `set_color', `reset_color', `get_last_filled', and
2500         `get_outline_color'.
2501         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2502         (object_spec): Add members `shaded' and `outlined'.
2503         * src/preproc/pic/output.h (output): `command' is now abstract.
2504         New function members `set_color', `reset_color', `get_last_filled',
2505         and `get_outline_color'.
2506         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2507         `outline[d]', and `shaded'.
2508         * src/preproc/pic/object.cc (output::command): Removed.
2509         (output::set_location): Moved to output.h.
2510         (graphic_object): Add protected members `outline_color' and
2511         `color_fill'.
2512         Add member functions `set_outline_color', `get_outline_color', and
2513         `set_fill_color'.
2514         (closed_object): Add member function `set_fill_color'.
2515         Add member `color_fill'.
2516         (graphic_object::print_text): Use `out->set_color' and
2517         `out->reset_color'.
2518         (box_object::print, ellipse_object::print, circle_object::print,
2519         line_object::print, spline_object::print, arc_object::print): Ditto.
2520         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2521         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2522         `SHADED', making them `%left'.
2523         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2524         * src/preproc/pic/tex.cc (tex_output): New dummy function members
2525         `set_color', `reset_color', `get_last_filled', and
2526         `get_outline_color'.
2527         * src/preproc/pic/troff.cc (simple_output): New abstract function
2528         members `set_color', `reset_color', and `get_last_filled'.
2529         (simple_output::polygon, simple_output::circle,
2530         simple_output::ellipse): Use `get_last_filled'.
2531         (troff_output): New members `last_filled' and `last_outlined'.
2532         New function members `set_color', `reset_color', `get_last_filled',
2533         and `get_outline_color'.
2534         (troff_output::finish_picture): Use `reset_color'.
2535         (troff_output::set_fill): Test `last_filled'.
2536         * src/preproc/pic/pic.man: Updated.
2538         * src/roff/groff/groff.cc (main): Implement `-c' option.
2539         (synopsis, help): Updated.
2540         src/roff/groff/groff.man: Updated.
2542         * src/roff/troff/troff.h: Include color.h.
2543         (warning_type): Add WARN_COLOR.
2544         * src/roff/troff/env.h (environment): New members
2545         `{cur,prev}_{glyph,fill}_color'.
2546         New member functions `get_{prev_,}{glyph,fill}_color'.
2547         * src/roff/troff/env.cc: Initialize and implement them.
2548         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2549         Replace `NULL' with `0' everywhere for consistency.
2550         (lookup_color, default_black, do_glyph_color, do_fill_color,
2551         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2552         define_color): New functions.
2553         (token::next): Implement \M and \m escapes.
2554         (do_if_request): Implement `m' operator.
2555         (usage): Updated.
2556         (main): Implement `-c' option.
2557         (init_markup_requests): Add `defcolor' request.
2558         (warning_table): Add `color' warning.
2559         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2560         classes.
2561         * src/roff/troff/node.cc (troff_output_file): New members
2562         `current_{page,glyph}color'.  New member functions `put_hex',
2563         `glyph_color', and `fill_color'.
2564         (glyph_color_node::*, fill_color_node::*): Implement it.
2565         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2566         (parse_term): Add support for `f'.
2567         * src/roff/troff/troff.man: Updated.
2569         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2570         entry for `F'.
2571         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2572         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2574         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2575         (tag_definition): Use `void *' for arg1.
2576         (html_text): New member functions `do_color' and `done_color'.
2577         Use `void *' for second parameter of `push_para' member function.
2578         New `push_para' member function with a single parameter.
2579         Use `char *' for parameter of `issue_table_begin' member funtion.
2580         New `issue_color_begin' member function.
2581         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2582         COLOR_TAG.
2583         (html_text::issue_color_begin): New function.
2584         (html_text::issue_table_begin): Use `char *' for parameter.
2585         (html_text::start_tag, html_text::shutdown,
2586         html_text::check_emit_text): Updated.
2587         (html_text::push_para): Use `void *' for second parameter.
2588         Add same function with only one parameter.
2589         (html_text::do_*): Updated.
2590         (html_text::do_color, html_text::done_color): New functions.
2591         * src/devices/grohtml/post-html.cc (style): New member `col'.
2592         Mew member `style' with 6 parameters.
2593         (style::style, style::operator==): Updated.
2594         (html_printer::do_font): Use it.
2595         (html_printer::draw): Add dummy entry for `F'.
2596         (html_printer::set_char): Updated.
2597         * src/devices/grohtml/grohtml.man: Updated.
2599         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2600         trailing zeroes removed.
2601         (ps_printer): New members `sbuf_color', `fill_color', and
2602         `output_color'.
2603         Removed member `fill'.
2604         New member function `set_color'.
2605         (ps_printer::ps_printer, ps_printer::set_char): Updated.
2606         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2607         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2609         * tmac/color-html.tmac, tmac/color.tmac: New files.
2610         * tmac/troffrc: Include them.
2611         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2612         * tmac/Makefile.sub: Updated.
2614         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2615         man/groff.man: Updated.
2616         * font/devps/prologue.ps: Define FC and CO functions.
2618 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
2620         Fix incorrect cropping of images and incorrect handling of special
2621         characters.  Fix handling of file names in \O.
2623         * src/include/geometry.h: New file.
2624         * src/libs/libgroff/geometry.cc: New file.
2625         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2626         to `geometry.cc'.
2627         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2628         initial spaces.
2629         (do_suppress): Updated.
2630         * src/roff/troff/node.cc: Include geometry.h.
2631         (troff_output_file::flush_tbuf): Fixed parameters to
2632         `check_output_limits'.
2633         (troff_output_file::check_charinfo): Ditto.
2634         (troff_output_file::determine_line_limits): Add support for `Da'
2635         and `Dl' commands.
2637         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2638         Add new parameter `is_special' to decode special characters from
2639         escape sequences.
2640         (html_printer::do_title, html_printer::do_heading,
2641         html_printer::do_indentedparagraph,
2642         html_printer::translate_to_html, html_printer::special): Updated.
2644 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2646         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2647         Fix entry for config.h.
2648         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2649         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2650         * src/preproc/eqn/eqn.man: Document -d command line option.
2652 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2654         * man/groff.man: Use
2656           .ev xxx
2657           .na
2658           .nh
2659           <table>
2660           .ev
2662         instead of the old code (`.ad .hy' after the table) to suppress
2663         incorrect hyphenation for grohtml output.
2665 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2667         * man/groff_font.man, man/groff_out.man: Minor fixes.
2669 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2671         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
2672         Arnold Robbins <arnold@skeeve.com>).
2674 2001-09-09  Werner LEMBERG  <wl@gnu.org>
2676         * configure: Regenerated with autoconf 2.52.
2678         * doc/groff.texinfo: Complete revision of indices.
2680 2001-09-07  Werner LEMBERG  <wl@gnu.org>
2682         * doc/Makefile (clean): Updated to delete all indices.
2684 2001-09-05  Werner LEMBERG  <wl@gnu.org>
2686         * src/roff/troff/troff.man: Remove superfluous line.
2688         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2689         given on the command line (or rather, if only the default warnings
2690         are set).
2692 2001-09-03  Werner LEMBERG  <wl@gnu.org>
2694         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2695         use .ne for TTY devices.
2697 2001-08-31  Werner LEMBERG  <wl@gnu.org>
2699         * src/roff/troff/token.h, src/roff/troff/input.cc:
2700         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2702 2001-08-28  Werner LEMBERG  <wl@gnu.org>
2704         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2705         * src/roff/troff/input.cc (token::next): Return
2706         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2707         compatibility mode.
2708         (token::description): Updated.
2709         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2710         (token::add_to_node_list, token::process): Ignore
2711         TOKEN_TRANSPARENT_ESCAPE.
2713 2001-08-27  Werner LEMBERG  <wl@gnu.org>
2715         * tmac/an-old.tmac: Fix `S' string.
2717 2001-08-26  Werner LEMBERG  <wl@gnu.org>
2719         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2721 2001-08-25  Werner LEMBERG  <wl@gnu.org>
2723         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2724         backslashes).
2725         Many other minor fixes.
2727         * configure.ac: Add message at end to inform how to compile
2728         xditview.
2729         * configure: Regenerated.
2731 2001-08-24  Werner LEMBERG  <wl@gnu.org>
2733         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2734         Updated to latest version of libc.
2736 2001-08-23  Werner LEMBERG  <wl@gnu.org>
2738         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2739         Autoconf 2.50 and newer can handle this.
2740         * configure: Regenerated.
2742 2001-08-21  Werner LEMBERG  <wl@gnu.org>
2744         * doc/pic.ms: Fix typo.
2745         * src/preproc/tbl/tbl.man: Document case of global options.
2747 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2749         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2750         handling of `CR' font.
2752 2001-08-20  Werner LEMBERG  <wl@gnu.org>
2754         Use a config.h file.
2756         * src/include/lib.h: Include config.h.
2757         * All C files: Ditto (if necessary).
2758         * All C++ source and header files: Include lib.h first (if
2759         necessary).
2761         * src/include/config.hin: New file (autogenerated by autoheader).
2762         * stamp-h.in: New file.
2763         * configure.ac: Updated.
2764         * aclocal.m4: Add third parameters to AC_DEFINE macros.
2765         (GROFF_ARRAY_DELETE): Simplified.
2766         * Makefile.sub (DISTCLEANFILES): Updated.
2767         Added targets for remaking config.status, config.hin, config.h,
2768         stamp-h.in, and stamp-h.
2769         * configure: Regenerated.
2771 2001-08-19  Werner LEMBERG  <wl@gnu.org>
2773         * NEWS: Updated.
2775 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
2777         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2778         (do_sprintf): Use snprintf().
2780 2001-08-18  Werner LEMBERG  <wl@gnu.org>
2782         * src/libs/snprintf/*: Added an snprintf module written by Mark
2783         Martinec.
2784         * src/libs/libgroff/Makefile.sub: Updated.
2785         * configure.ac: Add test for snprintf().
2786         * Makefile.in: Updated.
2787         * configure: Regenerated.
2789         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2790         uses snprintf().
2792 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
2794         * tmac/doc.tmac (Ex): New implementation.
2795         * tmac/doc-common, tmac/groff_tmac.man: Updated.
2797 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
2799         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2800         argument.
2801         * tmac/groff_tmac.man: Updated.
2803 2001-08-13  Werner LEMBERG  <wl@gnu.org>
2805         * src/preproc/tbl/tbl.man: Minor documentation update.
2807 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2809         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2810         * configure.ac: Add declaration test for gettimeofday().
2811         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2812         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2813         * configure: Regenerated.
2815 2001-08-11  Werner LEMBERG  <wl@gnu.org>
2817         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2818         * configure.ac: Add declaration test for strcasecmp().
2819         * Makefile.in: Updated.
2820         * configure: Regenerated.
2821         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2822         this is necessary because groff's mkstemp.cc is C++.
2823         Add declaration conditionally for strcasecmp().
2825 2001-08-10  Werner LEMBERG  <wl@gnu.org>
2827         Integrated pic2graph, contributed by Eric S. Raymond.
2829         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2830         files.
2831         * Makefile.in, NEWS: Updated.
2833         * src/preproc/tbl/tbl.man: Revised.
2835 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
2837         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2839 2001-08-09  Werner LEMBERG  <wl@gnu.org>
2841         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2842         requests.
2844 2001-08-08  Paul Eggert  <eggert@twinsun.com>
2846         * Makefile.sub (configure): Depend on configure.ac, not
2847         configure.in.
2848         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2850 2001-08-07  Werner LEMBERG  <wl@gnu.org>
2852         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2853         fixes.
2855 2001-08-06  Werner LEMBERG  <wl@gnu.org>
2857         * src/roff/troff/troff.man: Improve documentation of -E option.
2859 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2861         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2862         Simplified.
2864 2001-07-27  Werner LEMBERG  <wl@gnu.org>
2866         * src/preproc/refer/refer.cc: Undo last change.
2867         * src/devices/grohtml/post-html.cc: Ditto.
2869 2001-07-26  Werner LEMBERG  <wl@gnu.org>
2871         * src/preproc/refer/refer.cc: Include `lib.h'.
2872         * src/devices/grohtml/post-html.cc: Ditto.
2874 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
2876         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2877         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2878         * Makefile.in: Comment updated.
2879         * configure: Regenerated.
2881 2001-07-25  Werner LEMBERG  <wl@gnu.org>
2883         * src/preproc/pic/pic.cc: Removed.
2884         * src/preproc/pic/pic_tab.h: Removed.
2885         * src/preproc/refer/label.cc: Removed.
2887         * doc/Makefile (.ms.html): Don't use a file name extension in
2888         argument to grohtml's -I option.
2889         * Makefile.in (dist): Remove CVS directories.
2890         Call `distfiles' target.
2892         * src/devices/grohtml/grohtml.man: Add information about valid
2893         versions of pnmtopng.
2894         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2895         name instead of number.
2897 2001-07-24  Werner LEMBERG  <wl@gnu.org>
2899         * doc/groff.texinfo: Minor fixes.
2901 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
2903         * doc/Makefile (.ms.html): Put image files into a subdirectory.
2904         (clean): Updated.
2906 2001-07-20  Werner LEMBERG  <wl@gnu.org>
2908         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2909         * src/libs/libgroff/mkstemp.cc: New file.
2910         * src/libs/libgroff/mksdir.cc: New file.
2911         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2912         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2913         * src/libs/libgroff/Makefile.sub: Updated.
2914         * src/include/lib.h: Add mksdir() prototype.
2915         * src/include/posix.h: Define S_IXUSR if not yet defined.
2917         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2918         (createAllPages): Use mksdir() instead of current code.
2919         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2920         (main): [!HAVE_MKSTEMP]: Removed.
2922         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2923         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2924         macros.
2925         * configure.ac: Add tests for stdint.h, sys/time.h, and
2926         gettimeofday().
2927         Call new GROFF_xxx macros.
2928         * configure: Regenerated.
2929         * Makefile.in: Comments updated.
2931 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
2933         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2934         instead of current code.
2935         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2936         * src/roff/groff/groff.cc (possible_command::insert_args): New
2937         function.
2938         (main): Use it for predriver handling instead of insert_arg().
2940 2001-07-19  Werner LEMBERG  <wl@gnu.org>
2942         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2943         groff also.
2945         * src/include/posix.h: Define S_IWUSR if not yet defined.
2947 2001-07-18  Werner LEMBERG  <wl@gnu.org>
2949         * NEWS: Updated.
2951 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
2953         * tmac/groff_mdoc.man: Document new -width and -column syntax.
2954         Some other minor fixes.
2955         * tmac/an-old.tmac: Add `AT' and `UC' macros.
2957 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
2959         Replace call to `troff' with `groff -Z' to make it aware of
2960         GROFF_BIN_PATH.
2962         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2963         (troff_command, command_prefix): Removed.
2964         (alterDeviceTo): Use groff.
2965         (addZ): New function.
2966         (char_buffer::do_html): Use it.
2967         (scanArguments): Use TROFF_COMMAND.
2968         (findPrefix): Removed.
2969         (main): Updated.
2970         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2972 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
2974         * doc/pic.ms: Documentation fixes.
2976 2001-07-17  Werner LEMBERG  <wl@gnu.org>
2978         Replace atexit() with global destructor.
2980         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2981         (xtmpfile_list_init): New global structure to deallocate
2982         xtmpfile_list on exit.  Its destructor inherits most code from
2983         remove_tmp_files().
2984         (remove_tmp_files): Deleted.
2985         (add_tmp_file): Simplified.
2987 2001-07-16  Werner LEMBERG  <wl@gnu.org>
2989         Replace strdup() with strsave().
2991         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2992         (set_papersize): Use strsave() and a_delete.
2993         (main): Use strsave().
2994         * src/preproc/html/pre-html.cc (make_message, createAllPages,
2995         removeAllPages): Use strsave() and a_delete.
2997         * configure.ac: Remove test for strdup.
2998         * Makefile.in: Comment updated.
2999         * configure: Regenerated.
3001 2001-07-15  Werner LEMBERG  <wl@gnu.org>
3003         * win32-diffs: Updated.
3005 2001-07-14  Werner LEMBERG  <wl@gnu.org>
3007         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
3008         removing the old one.
3009         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
3011 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3013         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
3015 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
3017         Merge -xwidth into -width.  Add -xwidth functionality to -column
3018         also.
3020         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
3021         avoid warning.
3022         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
3023         string immediately following a leading dot starts with a valid mdoc
3024         argument.
3025         Add similar code to the -column branch.
3026         (doc-Bl-usage): Updated.
3027         * groff_mdoc.man: s/-xwidth/-width/.
3029 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
3031         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
3032         running into centered or non-formatted text.
3034 2001-07-11  Werner LEMBERG  <wl@gnu.org>
3036         Introduce short and long prefixes to have the selection at run-time
3037         whether there is a 8+3 limit for names of temporary files.
3039         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
3040         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
3041         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
3042         variables.
3043         (temp_init): New global structure to initialize above three
3044         variables.
3045         (xtmptemplate): Use two parameters for long and short prefix.
3046         Simplify code use above three variables.
3047         (xtmpfile): Use long and short prefixes as parameters.
3048         * src/include/lib.h: Updated.
3050         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
3051         with ...
3052         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
3053         (createAllPages, makeTempFiles): Updated.
3055 2001-07-09  Werner LEMBERG  <wl@gnu.org>
3057         * REVISION: Increased to 3.
3059 Version 1.17.2 released
3060 =======================
3062 2001-07-07  Werner LEMBERG  <wl@gnu.org>
3064         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
3065         to size_t.
3067 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
3069         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
3070         Fix synopsis.
3071         * tmac/groff_mdoc.man: Fix synopsis.
3073 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3075         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
3076         Restore `doc-Pa-font'.
3078 2001-07-04  Werner LEMBERG  <wl@gnu.org>
3080         * src/utils/indxbib/dirnamemax.c: Moved to ...
3081         * src/libs/libgroff/maxfilename.cc: Here.
3082         s/dir_name_max/file_name_max/.
3083         Add copyright.
3084         * src/include/lib.h: Add file_name_max.
3085         * src/utils/indxbib/indxbib.cc: Updated.
3086         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
3087         Updated.
3089         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
3090         as empty.
3091         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
3093         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
3094         REGION_TEMPLATE): New macros.
3095         (createAllPages, makeTempFiles): Use them.
3096         Include `nonposix.h'.
3097         (html_system): New function.
3098         (createAllPages, createImage): Use it.
3099         Use EXE_EXT.
3101         * tmac/www.tmac: Fix typos.
3103 2001-07-03  Werner LEMBERG  <wl@gnu.org>
3105         * tmac/www.tmac: Disable hyphenation in normal text only if output
3106         device is html.
3107         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
3108         * tmac/groff_mwww.man, NEWS: Updated.
3110 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
3112         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
3113         image location.
3115 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
3117         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
3118         doc-display-ps-stack): Implement font and font size stack for
3119         displays.
3121 2001-07-02  Werner LEMBERG  <wl@gnu.org>
3123         * REVISION: Increased to 2.
3124         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
3126         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
3127         beginning of a line.
3128         * src/groff/grog/grog.sh: Ditto.
3130 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
3132         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
3133         make it portable.
3135 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3137         Fix problems with preprocessor string for `man' program.
3139         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3140         Updated/added copyright.
3141         Moved Emacs's local variable to identify nroff mode to the end of
3142         the file; add local variable if missing.
3144 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3146         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3147         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3148         * configure: Regenerated.
3150 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3152         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3153         * configure: Regenerated.
3155 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3157         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3158         but www.tmac.
3159         * doc/pic.ms: Fix typos.
3161 Version 1.17.1 released
3162 =======================
3164 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3166         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3167         * configure: Updated.
3169 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3171         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3172         image names.
3173         * src/roff/troff/dic.cc (blank_line): Add html tag.
3175 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3177         * src/roff/troff/input.cc (do_suppress): Fix typo.
3179 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3181         Added two new options (-D and -I) to specify image names and a
3182         subdirectory to place the images in.
3184         Change syntax from \\Ox to \\O[x].
3186         * src/devices/grohtml/post-html.cc (main): Add options.
3187         (usage): Updated.
3188         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3189         Use `NULL' instead of `0' for null string pointers.
3190         (MAX_RETRIES): New macro.
3191         (lengthOfintToStr, intToStr, make_message): New functions.
3192         (makeFileName): Make function static.
3193         Implement -D and -I options.
3194         (checkImageDir): New function.
3195         (write_end_image, write_start_image): Use new syntax of \O.
3196         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3197         make_message().
3198         (createImage): Use make_message().
3199         (addps4html): Add guard for malloc().
3200         (usage, scanArguments): Updated.
3201         (makeTempFiles): Use mkstemp().
3202         (removeTempFiles): Use unlink().
3203         (findPrefix): Add guard for malloc().
3204         (main): Updated.
3205         * src/roff/troff/input.cc (get_delim_file_name): New function to
3206         parse \O.
3207         (do_suppress): Updated to parse new syntax.
3208         * src/devices/grohtml/grohtml.man: Updated.
3209         * tmac/www.tmac: Updated to new syntax.
3211         * NEWS: Updated.
3213 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3215         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3217         * src/devices/grohtml/grohtml.man: Minor improvements.
3219 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3221         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3223 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3225         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3226         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3227         the former.
3228         * src/preproc/grn/grn.man: Add proper '\" string.
3230 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3232         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3234 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3236         Updated to autoconf 2.50.
3238         * configure.in: Renamed to...
3239         * configure.ac: This.
3240         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3241         (GROFF_OS390): Updated.
3242         * configure: Regenerated.
3244 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3246         * src/roff/troff/env.c, src/roff/troff/env.h,
3247         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3248         from 2000-12-21.
3250 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3252         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3254 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3256         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3257         less than or equal zero; set it to 1 then.
3258         * src/roff/troff/node.h (node::node): Initialize `last'.
3260 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3262         * tmac/an-old.tmac: Make predefined strings work in compatibility
3263         mode.
3264         Add troff version guard.
3265         * tmac/doc.tmac: Simplify version guard.
3267 2001-05-07  Werner LEMBERG  <wl@gnu.org>
3269         The .ns and .rs requests are now honoured not only in the top-level
3270         but in all diversions (similar to UNIX troff).
3272         This change is based on a patch from Tadziu Hoffmann
3273         <hoffmann@usm.uni-muenchen.de>.
3275         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3276         (top_level_diversion): Remove `no_space_mode' member.
3277         * src/roff/troff/div.cc (diversion::diversion,
3278         top_level_diversion::top_level_diversion): Updated.
3279         (macro_diversion::output): Reset `no_space_mode'.
3280         (no_space, restore_spacing): Use `curdiv' unconditionally.
3281         (space_request, blank_line): Check `curdiv->no_space_mode'.
3282         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3283         `curdiv' unconditionally.
3284         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3285         Updated.
3287 2001-05-06  Werner LEMBERG  <wl@gnu.org>
3289         Added two new requests `de1' and `am1' which are similar to `de' and
3290         `am' with the difference that compatibility mode is saved on entry,
3291         switched off during macro execution, and restored on exit.
3293         * src/roff/troff/input.h: Added two new special characters
3294         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3295         * src/roff/troff/input.cc (input_iterator): Added two member
3296         functions `save_compatible_flag' and `get_compatible_flag'.
3297         (input_stack): Ditto.
3298         (string_iterator): Ditto.  Also add private member
3299         `saved_compatible_flag'.
3300         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3301         (calling_mode): New enumeration.
3302         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
3303         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3304         (define_macro, define_indirect_macro, append_macro, ignore): Use
3305         `calling_mode'.
3306         (define_nocomp_macro, append_nocomp_macro): New functions.
3307         (init_input_requests): Updated.
3308         (do_request): Rename local variable `saved_compatible_flag' to
3309         `old_compatible_flag'.
3310         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3312         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3313         public and trap-invoked macros.  As a consequence, the man macros
3314         work in compatibility mode also.
3316 2001-05-06  Solar Designer  <solar@openwall.com>
3318         * Makefile.in: Use $(mandir).
3320 2001-05-06  Alexios Zavras  <zvr@pobox.com>
3322         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3324 2001-05-05  Werner LEMBERG  <wl@gnu.org>
3326         Added `.ns' number register: Returns 1 in no-space mode (if in
3327         top-level diversion), 0 otherwise.
3329         * src/roff/troff/div.cc (no_space_mode_reg): New class.
3330         (init_div_requests): Updated.
3331         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3332         Document it.
3334 2001-05-04  Werner LEMBERG  <wl@gnu.org>
3336         * src/roff/nroff/nroff.man: Improved documentation (especially
3337         locales).
3339 2001-05-02  Werner LEMBERG  <wl@gnu.org>
3341         Added `brp' request: This is \p as a request.
3343         * src/roff/troff/env.cc (environment::do_break): Add parameter
3344         `spread'.
3345         (do_break_request): New function (was `break_request').
3346         (break_request): Calls `do_break_request'.
3347         (break_spread_request): New; calls `do_break_request'.
3348         (init_env_requests): Updated.
3349         * src/roff/troff/env.h: Updated.
3350         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3352         * REVISION: Increased to 1.
3353         * win32-diffs: Updated.
3355 2001-05-01  Werner LEMBERG  <wl@gnu.org>
3357         * tmac/an-old.tmac: Fix minor compatibility mode issue.
3358         * tmac/troffrc-end: Make it really work in compatibility mode.
3360 2001-04-27  Werner LEMBERG  <wl@gnu.org>
3362         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3363         stdlib.h.
3365 2001-04-22  Werner LEMBERG  <wl@gnu.org>
3367         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3368         latest versions from glibc CVS archive.
3370         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3371         <c.zeelenberg@hccnet.nl>.
3373 2001-04-21  Werner LEMBERG  <wl@gnu.org>
3375         * configure.in: Move check for mkstemp() to...
3376         * aclocal.m4 (GROFF_MKSTEMP): This new function.
3377         * configure: Regenerated.
3379         * src/include/groff-getopt.h: Don't use variable names in
3380         declarations.
3382         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
3383         * src/devices/grohtml/Makefile.sub,
3384         src/devices/grohtml/post-html.cc: Updated.
3386 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
3388         * configure.in: Add special check for mkstemp().
3389         * src/libs/libgroff/tmpfile.cc: Use it.
3390         * src/utils/indxbib/indxbib.cc: Ditto.
3391         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3392         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3393         `const'.
3395 2001-04-20  Bruce Lilly  <blilly@erols.com>
3397         `Version_string' as C++ object was not visible to linker from C
3398         object files.
3399         Add `const' to `Version_string'.
3401         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3402         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3403         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3404         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3405         (scanArguments), src/preproc/refer/refer.cc (main),
3406         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3407         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3408         (main), src/devices/grohtml/post-html.cc (main),
3409         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3410         (main), src/utils/hpftodit/hpftodit.cc (main),
3411         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3412         (main), src/utils/lkbib/lkbib.cc (main),
3413         src/utils/addftinfo/addftinfo.cc (main): Implement it.
3415         * src/roff/groff/pipeline.c: Add _UWIN.
3416         * src/include/nonposix.h: Ditto.
3418 2001-04-20  Werner LEMBERG  <wl@gnu.org>
3420         * src/include/lib.h: Use HAVE_STRERROR.
3421         * src/roff/groff/pipeline.c: Ditto.
3422         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3423         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3424         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3425         * win32-diffs: Updated.
3426         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3428 2001-04-19  Werner LEMBERG  <wl@gnu.org>
3430         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3431         instead of hardwired `"troff"'.
3432         (char_buffer::read_file): Remove unused variables.
3433         (char_buffer::write_file_troff): Ditto.
3434         (char_buffer::write_file_html): Ditto.
3435         (generateImages): Ditto.
3436         (abs): Removed.
3437         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3439         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3441         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3442         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3443         index_search_item::search1): Ditto.
3444         * src/roff/troff/node.h (width_list): Reorder members.
3445         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3446         (lookup_warning): Ditto.
3447         (prepend_string): Commented out.
3448         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3449         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3450         * src/preproc/tbl/main.cc (process_format): Ditto.
3451         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3452         compiler warnings.
3453         * src/preproc/pic/pic.cc: Updated.
3454         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3455         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3456         * src/preproc/refer/command.cc (execute_command): Ditto.
3457         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3458         * src/preproc/refer/token.cc (lookup_token): Ditto.
3459         * src/preproc/soelim/soelim.cc: Ditto.
3460         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3461         (isHexDigit): Commented out.
3462         (pushBackBuffer::isString): Remove unused variable.
3463         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3464         warning.
3465         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3466         resource_manager::read_resource_arg, read_one_of, parse_extensions):
3467         Ditto.
3468         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3469         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3470         lookup_paper_size): Ditto.
3471         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3472         (text_glob, element_list): Reorder members.
3473         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3474         compiler warning.
3475         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3476         return value to `void'.
3477         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3478         of initializers.
3479         * src/devices/grohtml/html.h (simple_output::check_newline,
3480         simple_output::space_or_newline, simple_output::enable_newlines):
3481         Add return value.
3482         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3483         compiler warnings.
3484         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3485         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3486         output_ligatures, output_charset, read_map): Ditto.
3487         * src/utils/lookbib/lookbib.cc (main): Ditto.
3488         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3489         (do_file): Fix typo (`=' -> `==').
3490         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3491         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3493 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
3495         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3496         Fix usage of GROFF_BIN_PATH.
3497         * src/roff/nroff/nroff.man: Updated.
3499 2001-04-18  Werner LEMBERG  <wl@gnu.org>
3501         * NEWS: Fixing typos.
3502         Updated.
3504 Version 1.17 released
3505 =====================
3507 2001-04-17  Werner LEMBERG  <wl@gnu.org>
3509         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3510         directory, not in $(srcdir).
3512 2001-04-16  Werner LEMBERG  <wl@gnu.org>
3514         * doc/groff.texinfo: More info on conditionals.
3516 2001-04-15  Werner LEMBERG  <wl@gnu.org>
3518         * doc/groff.texinfo: Added some info about groff internals.
3520         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3521         about missing special character only if the name is non-null.
3523 2001-04-14  Werner LEMBERG  <wl@gnu.org>
3525         Removing the grohtml-old device driver which is now obsolete.
3527         * src/devices/grohtml-old/*: Removed.
3528         * font/devhtml-old/*: Removed.
3529         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3530         Remove comments.
3531         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3532         * test-groff (PATH): Updated.
3533         * tmac/Makefile.sub (NORMALFILES): Updated.
3534         * tmac/an-old.tmac: Remove special code for html-old device.
3535         Replace `html-or-html-old' register with `an-html'.
3536         * tmac/eqnrc: Updated.
3537         * tmac/html-old.tmac: Removed.
3538         * tmac/troffrc, tmac/troffrc-end: Updated.
3539         * tmac/www.tmac: Remove special code for html-old device.
3540         Replace `html-or-html-old' register with `www-html'.
3542         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3543         src/libs/libgroff/htmlindicate.cc (graphic_end),
3544         include/htmlindicate.h, src/preproc/grn/*.cc,
3545         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3546         single argument for consistency with rest of source code.
3548         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3550 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
3552         * src/roff/troff/troff.man: Fixing typos.
3554 2001-04-13  Werner LEMBERG  <wl@gnu.org>
3556         * doc/pic.ms: Fixing many font switches.
3557         * doc/groff.texinfo: Fixes, additions.
3558         * MORE.STUFF: Updated.
3560 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
3562         * src/devices/grohtml/grohtml.man: Updated manual page regarding
3563         simple anchor.
3564         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3565         cropping of images.
3566         (removeTempFiles): New function to tidy up temporary files.
3567         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3568         Many fixes to do with the new inline suppress node and image regions
3569         are much tighter.
3570         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3571         (generate_img_src): New function.
3572         (html_printer::do_auto_image): Utilizes it.
3573         (do_heading, do_title): Include inline images within their contents.
3574         (html_printer::begin_page): Tidied up comments that are issued to
3575         the html output file.
3576         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3577         than courier.
3578         (text_glob::is_br): New method used by do_heading.
3579         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3580         equivalent diversion.
3581         * src/include/html-strings.h: Altered image tags to reflect the
3582         inline image node.
3583         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3584         parameter.
3585         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3586         it is already inside a pic image.  Only emit tags if the argument
3587         `-Tps:html' is present.
3588         * src/preproc/tbl/main.cc: Changes to reflect additional
3589         `html_end_suppress' parameter.
3590         * src/roff/troff/env.cc: Only emit eol tag if a node has been
3591         emitted since the last eol tag was written.
3592         * src/roff/troff/env.h: New boolean `emitted_node'.
3593         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3594         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
3595         * src/roff/troff/node.cc (check_charinfo): New method. 
3596         (troff_output_file::determine_line_limits): Alterations to limit
3597         checking.
3598         * tmac/www.tmac: Changes to reflect new suppress nodes.
3599           
3600 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
3602         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3603         Escape the html_glyph in the buffer.
3604         (str_translate_to_html): Output the unescaped escaped_char.
3605         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3606         `frame=void', not `frame=none'.  Add `border=0'.
3608 2001-04-12  Werner LEMBERG  <wl@gnu.org>
3610         * PROBLEMS: Add some words on how to avoid wrapper macros.
3612 2001-04-11  Blake McBride  <blake@florida-software.com>
3614         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3616 2001-04-11  Werner LEMBERG  <wl@gnu.org>
3618         * font/devlbp/Makefile.sub (CLEANADD): Set it.
3619         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3620         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3621         * Makefile.sub (DISTCLEANFILES): Here.
3623         * libs/libgroff/new.cc: Include `nonposix.h'.
3624         * win32-diffs: Updated.
3626 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3628         Added skeleton macro for defunct macros.
3630         Updated documentation.
3632         When inside displays, an empty input line warning should be
3633         suppressed.  If another macro call is put inside a display,
3634         all subsequent empty lines found in that display caused a
3635         warning to be emitted.
3637         * tmac/doc.tmac (doc-defunct-macro): New macro.
3638         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3639         (doc-restore-global-vars): Fixed typo.
3640         (doc-empty-line): Check the `doc-display-depth' register to
3641         determine whether we are inside display or not.
3643         * tmac/doc-common: Removed `Or' and `Sf' registers.
3644         Moved obsolete `Ds' macro to doc.tmac.
3646         * tmac/groff_mdoc.man: Bump document date.
3647         Document `.Vt' under ``Variable Types''.
3648         Removed documentation for obsolete `.Or' macro.
3650 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3652         * NEWS: Updated.
3653         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3655 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3657         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3658         (usage): Add stream argument. Don't exit.
3659         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3660         Write --version output to stdout, not stderr.
3661         (usage): Add stream argument. Don't exit.
3662         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3663         (usage): Add stream argument. Don't exit.
3664         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3665         constants.
3666         (usage): Add stream argument. Don't exit.
3667         (main): Write --help output to stdout, not stderr.
3668         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3669         (usage): Add stream argument. Don't exit.
3670         * src/devices/grops/ps.cc (main): Accept --help and --version.
3671         (usage): Add stream argument. Don't exit.
3672         * src/devices/grotty/tty.cc (main): Accept --help and --version.
3673         (usage): Add stream argument. Don't exit.
3674         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3675         (main): Accept --help and --version.
3676         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3677         (main): Accept --help and --version.
3678         * src/preproc/html/pre-html.cc (usage): Add stream argument.
3679         (scanArguments): Accept --help and --version.
3680         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3681         (main): Accept --help and --version.
3682         * src/preproc/refer/refer.cc (main): Accept --help and --version.
3683         (usage): Add stream argument. Don't exit.
3684         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3685         exit.
3686         (main): Accept --help and --version.
3687         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3688         (main): Accept --help and --version.
3689         * src/roff/groff/groff.cc (main): Accept --help and --version.
3690         (synopsis): Add stream argument.
3691         (help): Write --help output to stdout, not stderr.
3692         (usage): Add stream argument. Don't exit.
3693         * src/roff/grog/grog.pl: Accept --help and --version.
3694         (help): New sub.
3695         * src/roff/grog/grog.sh: Accept --help and --version.
3696         * src/roff/nroff/nroff.sh: Accept --help and --version.
3697         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3698         (usage): Add stream argument. Don't exit.
3699         (main): Accept --help and --version.
3700         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3701         (usage): New function with stream argument, doesn't exit.
3702         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3703         (usage): New function with stream argument, doesn't exit.
3704         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3705         (usage): Add stream argument. Don't exit.
3706         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3707         (main): Accept --help and --version.
3708         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3709         exit.
3710         (main): Accept --help and --version.
3711         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3712         (main): Accept --help and --version.
3713         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3714         (usage): Add stream argument. Don't exit.
3716 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
3718         Fix indentation in SYNOPSIS.
3720         Updated to include changes of latest BSD mdoc version (basically,
3721         the only change is that `.Fn' and `.Fc' put a final semicolon after
3722         a function declaration in the SYNOPSIS section).
3724         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3725         (doc-in-synopsis-section): New variable.  Updated all related
3726         functions.
3727         (doc-indent-synopsis-active): New register.
3728         (Nd, Fn, Fo): Use it.
3729         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3730         `.Cd' with long argument line produces indented wrapped lines. 
3731         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3732         undesirable line break to be output.
3733         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3734         `.rs'.
3735         (Fn, Fc): Add final `;' to output.
3736         (doc-save-global-vars, doc-restore-global-vars): Updated.
3737         * tmac/doc-common: Remove `Ex' register.
3738         Updated.
3739         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3740         copyright.
3742 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3744         * tmac/doc.tmac (Cd): Simplify code.
3745         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3747 2001-04-06  Werner LEMBERG  <wl@gnu.org>
3749         Implement continuous underlining for nroff mode.  To do that, a new
3750         request in the ditroff language has been added: `x u N' (N is 0
3751         or 1).
3753         \X and \Y are now transparent to end-of-sentence recognition.
3755         * src/include/printer.h (printer): Add `type' parameter to `special'
3756         method.
3757         * src/libs/libdriver/printer.cc (printer::special): Updated.
3758         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3760         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3761         specials of type `p'.
3762         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3763         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3764         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3765         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3766         (glyph::order): New method.
3767         (tty_printer::add_char): Use it.
3768         (tty_printer::special): New method.
3769         (tty_printer::end_page): Implement it.
3771         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3772         * src/roff/troff/node.cc (special_node::special_node): Add parameter
3773         to set `no_init_string'.
3774         (special_node::tprint_start): Use it.
3775         (special_node::same, special_node::copy): Updated.
3776         (special_node::ends_sentence): New method.
3777         (troff_output_file::start_special): Add parameter to include
3778         inititialization of special conditionally.
3780         * src/roff/troff/env.h (environment): New member `underline_spaces'.
3781         * src/roff/troff/env.cc (do_underline_special): New function.
3782         (environment::set_font): Use it.
3783         (do_underline): Use it.  This was `underline()'.
3784         (underline): Call `do_underline()'.
3785         (continuous_underline): New function which calls `do_underline()'.
3786         (environment::newline): Use `do_underline_special()'.
3787         (init_env_requests): Updated.
3789         * NEWS, man/troff_out.man: Updated.
3791 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
3793         * font/devutf8/R.proto: Fix code of 'shc'.
3795 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3797         Many fixes.  Diag lists can now be nested also; additionally,
3798         `-compact' and `-offset' are supported.
3800         * tmac/doc.tmac (doc-have-indent): Replaced with ...
3801         (doc-list-have-indent-stackXXX): A new register stack.
3802         (doc-have-diag-list): Removed.
3803         (Bl): Use `doc-list-have-indent-stackXXX'.
3804         (El): Updated.
3805         (doc-diag-list): Use `doc-compact-list-stackXXX'.
3806         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3807         (doc-set-vertical-and-indent): Ditto.
3808         (doc-next-list-depth): Removed.
3809         (doc-increment-list-stack): Updated.
3810         (doc-decrement-list-stack): Use `doc-list-depth' instead of
3811         `doc-next-list-depth'.
3812         (doc-end-list, doc-end-column-list): Don't use
3813         `doc-increment-list-stack'.
3814         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3815         (doc-save-global-vars, doc-restore-global-vars): Updated.
3816         * tmac/doc-common: Updated.
3817         * tmac/groff_mdoc.man: Updated.
3818         * NEWS: Fix typo.
3820 2001-04-02  Werner LEMBERG  <wl@gnu.org>
3822         * src/devices/grotty/grotty.man: Fix grammatical error.
3824 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
3826         Remove .Ld from mdoc package; replace it with special handling of
3827         `...'.
3829         * tmac/doc-common: Remove `Ld' register.
3830         Uncomment `doc-volume-ds-*' strings.
3831         Remove `doc-operating-system-default'.
3832         (Os): Updated.
3833         * tmac/doc-syms (Ld): Removed.
3834         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3835         `...' specially.
3836         * NEWS: Updated.
3838         * tmac/groff_mdoc.man: Many fixes and updates.
3840 2001-03-29  Werner LEMBERG  <wl@gnu.org>
3842         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
3843         Bond <tkb@tkb.mpl.com>.
3844         * tmac/www.tmac: Save compatibility mode.
3846 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
3848         * tmac/groff_mdoc.man: Many fixes.
3850 2001-03-28  Werner LEMBERG  <wl@gnu.org>
3852         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3853         isn't recognized.
3855 2001-03-27  Werner LEMBERG  <wl@gnu.org>
3857         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3858         diversion.  This fixes overlong tags.
3860 2001-03-26  Werner LEMBERG  <wl@gnu.org>
3862         * doc/groff.texinfo: Fixed and improved documentation of fonts.
3863         * tmac/doc-syms: Fix error messages.
3864         * tmac/an-old.tmac: Remove incorrect double backslashes.
3866 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
3868         * tmac/Makefile.sub: Strip mdoc.local also
3869         * tmac/strip.sed: Fixed.
3871 2001-03-24  Werner LEMBERG  <wl@gnu.org>
3873         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3874         selecting the font size.
3875         * tmac/groff_mdoc.man, NEWS: Document it.
3877 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3879         * src/roff/troff/div.cc (save_vertical_space): Add default argument
3880         to `sv' request.
3881         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3882         argument to restore previous font family.
3883         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3885         * doc/groff.texinfo: More fixes and additions (mainly for font
3886         manipulating commands).
3888         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3889         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
3890         * tmac/Makefile.sub, NEWS: Updated.
3892 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3894         Replaced mdoc implementation.  The new version is `state of the
3895         art', using almost all new features of groff 1.17 -- it won't run
3896         with older versions.
3898         * tmac/doc.tmac: Completely rewritten.
3899         * tmac/doc-common: Ditto.
3900         * tmac/doc-nroff: Ditto.
3901         * tmac/doc-ditroff: Ditto.
3902         * tmac/doc-syms: Ditto.
3903         * tmac/mdoc.local: New file.
3904         * tmac/groff_mdoc.samples.man: Replaced with ...
3905         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3906         * tmac/strip.sed: Updated.
3907         * tmac/Makefile.sub: Updated.
3908         * INSTALL: Updated.
3910         * tmac/groff_man.man: Add `man.local' to the FILES section.
3912 2001-03-22  Werner LEMBERG  <wl@gnu.org>
3914         * doc/groff.texinfo: Added many @noindent.
3915         Replaced @end_Example -> @endExample.
3916         Added info whether registers are r/o.
3917         Many other additions and fixes.
3919 2001-03-21  Werner LEMBERG  <wl@gnu.org>
3921         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3922         in makeinfo of texinfo 4.0) to be used in @Def* macros.
3923         Improved @Def* macros: Now the exact syntax of request, register,
3924         and escapes is shown.
3925         Added macros for parentheses and brackets to be used in @Def*.
3926         Many fixes and improvements of the documentation.
3928 2001-03-20  Werner LEMBERG  <wl@gnu.org>
3930         * doc/groff.texinfo: Added new index: `st' (for strings).
3931         Added macros @Defstr(x).
3932         Added macro @Example (adding @group).
3933         Other minor improvements.
3935 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3937         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3938         `rq' for requests.  `fn' is no longer used.
3939         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3940         Removed @Deffn(x).
3942         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3943         number with name of man page.
3945 2001-03-19  Larry Kollar  <kollar@alltel.net>
3947         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
3948         consistency.
3950 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3952         * man/groff_font.man: Document `prepro', `postpro', and `print'.
3953         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3954         * src/devices/grohtml/grohtml.man: Fixing typos.
3956 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
3958         * tmac/s.tmac (@IP): Pass `.ip' html tag.
3959         * tmac/groff_mwww.man: Remove .LINE macro
3960         * tmac/www.tmac (LINE): Add `.ti'.
3962         * src/devices/grohtml/post-html.cc (html_printer): New member
3963         `indent'.
3964         (html_printer::emit_raw): Use it.
3965         (html_printer::do_linelength): Ditto.
3966         (html_printer::do_pageoffset): Ditto.
3967         (html_printer::do_indentation): Ditto.
3968         (html_printer::do_tempindent): Ditto.
3969         (html_printer::do_break): Ditto.
3970         (html_printer::begin_page): Ditto.
3971         (html_printer::do_indentedparagraph): New function.
3972         (html_printer::troff_tag): Handle `.ip'.
3973         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3974         Add `<td width=...>' handling.
3975         (html_text::do_table): Add parameter.
3976         (html_text::do_indent): Updated.
3977         * src/devices/groohtml/html-text.h: Updated.
3979 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
3981         Introduced simple html tables to implement indentation.
3983         * src/devices/grohtml/html.h (word, word_list): New structures.
3984         (simple_output): Use it.
3985         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3986         (html_printer): Improve indentation handling.
3987         (html_printer::emit_raw): Set `in_table' element.  Handle
3988         indentation if set.
3989         (html_printer::write_header): Move conditional downwards.
3990         Don't allow whitespace in tags.
3991         (html_printer::do_linelength): Handle line length and indentation
3992         conditionally.
3993         (html_printer::do_pageoffset): Handle indentation conditionally.
3994         (html_printer::do_indentation): Ditto.
3995         (html_printer::do_tempindent): New function member.
3996         (html_printer::do_fill): Take care of indentation.
3997         (html_printer::do_flush): Finish table.
3998         (html_printer::do_links): Ditto.
3999         (html_printer::do_break): New function for handling `.br' and `.ti'.
4000         (html_printer::troff_tag): Use it.
4001         Handle `.ti'.
4002         (html_printer::flush_globs): Fix.
4003         (html_printer::flush_page): Finish table.
4004         (html_printer::html_printer): Fix error message.  Set up
4005         `linelength'.
4006         (html_printer::add_to_sbuf): Remove special handling of character
4007         code 255.
4008         (to_unicode): Remove `stop()'.
4009         (html_printer::write_title): Cleanup.
4010         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
4011         (html_printer::~html_printer): Flush text and end the line.
4012         Use `put_string()'.
4013         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
4014         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
4015         emission of tags.
4016         (html_text::start_tag): Disable newlines.
4017         (html_text::table_is_void): New function.
4018         (html_text::issue_table_begin): Ditto.
4019         (html_text::issue_table_end): Ditto.
4020         (html_text::push_para): Better table handling.
4021         (html_text::do_indent): New function.
4022         (html_text::do_table): Ditto.
4023         (html_text::done_table): Ditto.
4024         (html_text::do_tt): Handle PRE_TAG.
4025         (html_text::is_in_table): New function.
4026         (html_text::check_emit_text): Handle tables.
4027         (html_text::do_emittext): Use `nl()'.
4028         (html_text::do_para): Handle table.
4029         (html_text::remove_def): New function.
4030         * src/devices/grohtml/output.cc (word, word_list): Implement
4031         methods.
4032         (simple_output::end_line): Flush last word.
4033         (simple_output::simple_comment): Ditto.
4034         (simple_output::begin_comment): Recoded.
4035         (simple_output::end_comment): Ditto.
4036         (simple_output::comment_arg): Removed.
4037         (simple_output::check_newline): Improve test and flush last word.
4038         (simple_output::space_or_newline): Improved.
4039         (simple_output::write_newline): Replaced with...
4040         (simple_output::nl): This.
4041         (simple_output::put_raw_char): Flush last word.
4042         (simple_output::check_space): Removed.
4043         (simple_output::put_translated_string): Ditto.
4044         (simple_output::put_string): Simplified.
4045         (simple_output::put_number): Updated.
4046         (simple_output::put_float): Ditto.
4047         (simple_output::put_symbol): Removed.
4048         (simple_output::enable_newlines): Add `check_newline()'.
4049         (simple_output::flush_last_word): New function.
4051         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
4052         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
4054         * tmac/s.tmac (@PP, @IP): Add html conditional code.
4055         * tmac/an-old.tmac (TP): Ditto.
4057 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
4059         * mdate.sh: Make it POSIX compliant.
4061 2001-03-09  Werner LEMBERG  <wl@gnu.org>
4063         Added the `return' request to end a macro immediately.  It simply
4064         pops iterators from the input stack until a macro iterator is found.
4066         * src/roff/troff/input.cc (input_iterator::is_macro,
4067         macro_iterator::is_macro): New member.
4068         (input_return_boundary): New class to signal an immediate return
4069         to while_request().
4070         (input_stack::add_return_boundary, input_stack::is_return_boundary):
4071         New functions.
4072         (input_stack::clear): Use it.
4073         (input_stack::pop_macro): New function.
4074         (while_request): Use `is_return_boundary()'.
4075         (return_macro_request): New function.
4076         (init_input_requests): Use it.
4078         * src/roff/troff/TODO: Updated.
4079         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4081 2001-03-08  Werner LEMBERG  <wl@gnu.org>
4083         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
4084         cleanup.
4086 2001-03-07  Werner LEMBERG  <wl@gnu.org>
4088         Make `\B' more rigid.
4090         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
4091         parameter.
4092         (get_number_rigidly): New function.
4093         * src/roff/troff/input.cc (do_expr_test): Use it.
4094         * src/roff/troff/token.h: Updated.
4096         * src/roff/troff/request.h: Fix typo (init_html_request ->
4097         init_markup_request).
4099 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
4101         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
4102         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
4103         are now `.begin', `.end', `.image'.
4105         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
4106         (html_printer::add_to_sbuf): Changing type of `code' parameter.
4107         Use add_char_to_sbuf().
4108         (to_unicode): New function.
4109         (char_translate_to_html): Changing type of `ch' parameter.
4110         Use `to_unicode()'.
4111         (html_printer::~html_printer): Comment out doctype string.
4112         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
4113         instead of `.html-end'.
4114         (write_start_image): Use `.begin' and `.image' instead of
4115         `.html-begin' and `.html-image'.
4116         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
4117         (html_begin): Renamed to ...
4118         (begin): This.
4119         (html_end): Renamed to ...
4120         (end): This.
4121         (html_image): Renamed to ...
4122         (image): This.
4123         (init_html_requests): Renamed to ...
4124         (init_markup_requests): This.
4125         * tmac/www.tmac: Updated.
4127 2001-02-28  Bram  <bram@avontuur.org>
4129         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
4130         constructor.
4132 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
4134         * doc/meref.me: Fixing some typos.
4136 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4138         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4139         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4140         * src/roff/troff/node.h: Updated.
4142 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4144         * tmac/groff_tmac.man: Fix typo.
4146 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4148         Fixing a bug which prevented proper end-of-sentence recognition
4149         between an `unformatted' box and the following text.  As a
4150         consequence, vertical line distances are no longer preserved in
4151         boxes after a call to `.unformat' -- because boxes aren't
4152         line-oriented (contrary to diversions), this doesn't make sense
4153         anyway.
4155         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4156         value.
4157         (vertical_size_node::set_unformat_flag): New method.
4158         * src/roff/troff/node.hh: Updated.
4159         * src/roff/troff/input.cc (word_space_node::reread,
4160         hmotion_node::reread): Reset `unformat' flag after usage.
4161         (unformat_macro): Append only if `set_unformat_flag()' returns
4162         non-zero.
4163         * src/roff/troff/troff.man: Updated.
4165 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4167         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4168         documentation of `asciify' and `unformat' requests.
4170 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4172         Redesigned the `unformat' request.  It is no longer connected with
4173         `asciify' but rather uses new `reread()' methods if the `unformat'
4174         flag is set.  Additionally, the handling of space characters after
4175         unformatting has been fixed so that they retain their width.
4177         * src/roff/troff/node.h (width_list): New structure to store
4178         original widths of spaces.
4179         (node): Added `unformat' member.
4180         Replaced `num_spaces' variable with `orig_width' list.
4181         * src/roff/troff/node.cc (*node::asciify,
4182         asciify_reverse_node_list): Removed `unformat_only' flag and related
4183         code.
4184         (word_space_node::asciify, word_space_node::word_space_node): Use
4185         `orig_width'.
4186         (word_space_node::~word_space_node): New destructor.
4187         (word_space_node::copy): Updated to handle `orig_width'.
4188         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4189         (*node::merge_space): Update `orig_width' list if necessary.
4190         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4191         * src/roff/troff/enc.cc (environment::space_newline): Use
4192         `width_list'.
4193         (environment::space): Added method to handle space width and
4194         sentence space width as parameters.  Use `width_list'.
4195         (environment::make_tab_node): Updated.
4196         * src/roff/troff/env.h: Updated.
4197         * src/roff/troff/input.cc (word_space_node::reread,
4198         unbreakable_space_node::reread, hmotion_node::reread): New methods
4199         to handle nodes specially if `unformat' flag is set.
4200         (do_asciify_macro): Renamed back to ...
4201         (asciify_macro): This.
4202         (unformat_macro): New implementation to simply set the `unformat'
4203         flag.
4205         * MORE.STUFF: Added more info about deroff.
4207 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4209         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4210         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4211         and `add_self()' methods to avoid hyphenation.  For example, the
4212         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4213         soft hyphen after `foo'.  Now the hyphen list is correctly
4214         `foo<ignore><ignore>bar'.
4216 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4218         * tmac/groff_tmac.man: Fix `BIR' macro.
4220 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4222         A new escape sequence `\:', inserting a zero-width break point.
4224         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4225         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4226         Implement it.
4227         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4228         method.
4229         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4230         and `asciify()' methods.
4231         * src/roff/troff/node.cc (space_node::space_node): Updated.
4232         (space_node::asciify): Handle `was_escape_colon'.
4233         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4235         Handle `\~' similar to other comparable requests.
4237         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4238         label.
4239         (token::next): Move creation of an unbreakable_space_node to...
4240         (token::add_to_node_list): Here.
4242         Fix a bug which sometimes prevented hyphenation of words connected
4243         with `\~' or `\ ' (and other escape sequences handled as
4244         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4245         (after a call to the `unformat' request).
4247         * src/roff/troff/env.h (environment::possibly_break_line,
4248         environment::hyphenate_line): Introducing `start_here' parameter.
4249         * src/roff/troff/env.cc (environment::space_newline,
4250         environment::space): Use it.
4251         (environment::possibly_break_line, environment::hyphenate_line):
4252         Implement it.
4253         * src/roff/troff/input.cc (process_input_stack): Use it.
4254         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4255         space_char_hmotion_node, overstrike_node): Add
4256         `get_hyphenation_type()' method.
4257         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4258         if `unformat_only' is active.
4260 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4262         Implemented new read-only number register `.linetabs' which
4263         returns 1 if in line-tabs mode, 0 otherwise.
4265         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4266         * src/roff/troff/env.cc (get_line_tabs): New function.
4267         (init_env_requests): Use it.
4268         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4270         * VERSION, REVISION: Changing to 1.17.0.
4272 2001-01-28  Werner LEMBERG  <wl@gnu.org>
4274         Fixed a bug which prevented hyphenation of words which are finished
4275         with `\)'.
4277         * src/roff/troff/token.h (token): Add enum type
4278         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4279         * src/roff/troff/input.cc (token::next, token::description,
4280         get_line_arg, token::add_to_node_list, token::process): Use it.
4282 2001-01-27  Werner LEMBERG  <wl@gnu.org>
4284         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4285         * src/roff/troff/div.cc (do_divert): Use it.
4287         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4289 2001-01-25  Werner LEMBERG  <wl@gnu.org>
4291         Adding the `linetabs' request.  If set, tab distances are not
4292         computed relative to the input line but relative to the output line.
4294         * src/roff/troff/env.h (environment): New member `line_tabs'.
4295         * src/roff/troff/env.cc (line_tabs_request): Implement request.
4296         (environment::environment, environment::copy): Updated.
4297         (environment::distance_to_next_tab): Use `line_tabs'.
4298         (init_env_requests): Register request.
4299         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
4300         fixes.
4302 2001-01-24  Werner LEMBERG  <wl@gnu.org>
4304         Introducing a new read-only register `.int' which is set to a
4305         positive value if the last output line is interrupted (i.e., if it
4306         contains `\c').
4308         * src/roff/troff/env.cc (init_env_requests): Add it.
4309         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4311 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
4313         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4314         * src/preproc/html/pre-html.cc (findPrefix): New function which
4315         generates the troff executable name via the system prefix.
4316         * src/preproc/eqn/main.cc: Modified warning message.
4318 2001-01-23  Werner LEMBERG  <wl@gnu.org>
4320         troff's `box' and `boxa' requests didn't preserve temporary
4321         indentation.
4323         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4324         `saved_target_text_length' members.
4325         * src/roff/troff/div.cc (do_divert): Use them.
4327         Tabs (but not yet leaders and fields) are now handled correctly by
4328         `asciify' request.
4330         * node.h (hmotion_node): Add field `was_tab'.
4331         * env.cc (environment::make_tab_node): Set it.
4332         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4334         Added new request `unformat' which will, contrary to `asciify',
4335         preserve font information after unformatting (i.e., only nodes
4336         dealing with horizontal space are converted back to input
4337         characters).
4339         * input.cc (asciify_macro): Renamed to ...
4340         (do_asciify_macro): this, having a new parameter `unformat_only'.
4341         (asciify_macro, unformat_macro): New; using do_asciify_macro.
4342         (init_input_requests): Added `unformat'.
4343         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4344         parameter to control asciification process.
4345         * node.h (*_node::asciify): Ditto.
4346         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4348 2001-01-20  Werner LEMBERG  <wl@gnu.org>
4350         * doc/groff.texinfo: Minor improvement of `.in' documentation.
4352 2001-01-18  Werner LEMBERG  <wl@gnu.org>
4354         * tmac/ps.tmac: Remove call of psold.tmac.
4355         * tmac/psold.tmac: Comment updated.
4356         * tmac/psnew.tmac: Removed since no longer needed.
4357         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4359         * font/devutf8/R.proto: Adding `shc' glyph.
4360         * font/devutf8/NOTES: Updated.
4362         * test-groff: Updated.
4364 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4366         First cut of the new html device driver.  Changes to pre-html and
4367         the new grohtml are too numerous to be documented here.
4369         Stuff related to `html' has been renamed to `html-old' and `html2'
4370         stuff has been renamed to `html' (including directories).  The new
4371         html device driver is therefore invoked as `-Thtml'.
4373         Added new `\O' escape to suppress output (needed by html driver).
4375         Added functions and code to pass info about input-level commands
4376         (`.in', `.fl', etc.) to html driver.
4378         Three new functions (.html-begin, .html-end, and .html-image) for
4379         better html handling: `html-begin' will execute the remaining line
4380         if at the outermost nesting level, increasing an internal counter.
4381         `html-end' does the same but decreases the internal counter.
4382         `html_image' puts its arguments into a special node (suppress_node)
4383         to define an image region.
4385         The `output' request has been removed.
4387         * tmac/html-tags.tmac: Removed.
4388         * tmac/arkup.tmac: Updated and renamed to ...
4389         * tmac/www.tmac: New file.
4390         * tmac/markup.tmac Updated and renamed to ...
4391         * tmac/mwww.tmac: New file.
4392         * tmac/Makefile.sub: Updated.
4393         * tmac/an-old.tmac: Updated.
4394         * tmac/eqnrc: Updated.
4395         * tmac/groff_man.man
4396         * tmac/groff_markup.man: Updated and renamed to ...
4397         * tmac/groff_mwww.man: New file.
4398         * tmac/groff_tmac.man: Updated.
4399         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4400         * tmac/html.tmac: Updated and renamed from html2.tmac.
4401         * tmac/pspic.tmac: Updated html support.
4402         * tmac/s.tmac: Added html output support.
4403         * tmac/troffrc, tmac/troffrc-end: Updated.
4405         * Makefile.in, doc/Makefile: Updated.
4406         * doc/groff.texinfo: Added info about new `\O' escape.
4407         * doc/homepage.ms: Use `MAILTO' macro.
4409         * font/devhtml/DESC.proto: Add `C' font.
4410         * font/devhtml/Makefile.sub: Updated.
4411         * font/devhtml/R.proto: Minor fixes.
4412         * font/devhtml-old/Makefile.sub: Updated.
4414         * src/devices/grohtml-old/Makefile.sub: Updated.
4416         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4417         method.
4418         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4419         graphic_start): Add `inline' parameter.  Update.
4420         (html_end_suppress, graphic_end): Update.
4422         * src/include/html-strings.h: New file.
4423         * src/include/htmlindicate.h: Comments updated.
4424         * src/include/printer.h: Updated.
4426         * src/preproc/eqn/main.cc (do_file, main): Updated.
4427         * src/preproc/pic/troff.cc (troff_output::start_picture,
4428         troff_output::finish_picture): Updated.
4429         * src/preproc/tbl/main.cc (process_input_file): Updated.
4431         * src/roff/groff/groff.cc (main): Updated.
4432         Pass device arguments to predrivers also.
4433         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4434         * src/roff/troff/env.h (environment): Updated.
4435         New elements `need_eol' and `ignore_next_eol' (for html output).
4436         * src/roff/troff/env.cc (environment::environment): Add initializers
4437         for `need_eol' and `ignore_next_eol'.
4438         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4439         functions.
4440         (point_size, fill, no_fill, center, right_justify, line_length,
4441         indent, temporary_indent, break_request, handle_tab): Use
4442         `add_html_tag()'.
4443         (set_tabs): Use `add_html_tag_tabs()'.
4444         (environment::add_html_tag): Updated.
4445         (environment::do_break): Updated.
4446         * src/roff/troff/div.cc (space_request, flush_output): Use
4447         `environment::add_html_tag()'.
4448         * src/roff/troff/input.cc: Updated.
4449         New variable `html_level' to indicate nested `html-begin' requests.
4450         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4451         (non_interpreted_char_node, token_node, non_interpreted_node): Add
4452         `force_tprint()' method.
4453         (token::next): Handle `\O'.
4454         (do_suppress): Implement it.
4455         (html_begin, html_end, html_image): New functions.
4456         (init_output_requests): Renamed to ...
4457         (init_html_requests): this.
4458         (main): Use it.
4459         (macro::append_str, macro::append_unsigned, macro::append_int): New
4460         methods.
4461         New variable `output_low_mark_miny' to limit minimal value of y.
4462         (reset_output_registers): Use it.
4463         (output_request): Removed.
4464         (get_output_registers): New function.
4465         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4466         (*_node): Added `force_tprint()' if necessary.
4467         (special_node): New elements `tf' and `get_tfont()'.
4468         (suppress_node): New class.
4469         * src/roff/troff/node.cc:
4470         New global variables `image_no' and `suppress_start_page'.
4471         (real_output_file): New method `is_on()'.
4472         (troff_output_file): New method `start_special(tfont)'.
4473         (troff_output_file::really_print_line): Use `tprint' conditionally.
4474         (real_output_file::print_line): Updated.
4475         (real_output_file::on): Updated.
4476         (*_node): Added `force_tprint()'.
4477         (special_node::special_node): Initializer updated.
4478         (special_node::same, special_node::copy, special_node::tprint_start):
4479         Updated.
4480         (get_reg_int, get_reg_str): New functions.
4481         (suppress_node::*): New methods.
4482         New global variables last_position, last_image_filename;
4483         (min): New inline function.
4484         * src/roff/troff/reg.h, src/roff/troff/request.h,
4485         src/roff/troff/troff.h: Updated.
4487 2001-01-13  Werner LEMBERG  <wl@gnu.org>
4489         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4490         documentation of `asciify' request.
4492 2001-01-12  Werner LEMBERG  <wl@gnu.org>
4494         * src/roff/troff/input.cc: Move definition of special characters
4495         like `ESCAPE_TILDE' to ...
4496         * src/roff/troff/input.h: New file.
4497         * src/roff/troff/Makefile.sub (HDRS): Add it.
4499         Extending the .asciify request to `unformat' space characters also.
4501         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4502         to count input space characters.
4503         Update constructors to take care of it.
4504         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4505         `ESCAPE_SPACE' instead of normal space.
4506         (word_space_node::asciify): New method.
4507         (unbreakable_space_node::asciify): New method.
4508         (word_space_node::merge_space): New method.
4509         * src/roff/troff/env.cc (environment::space_newline,
4510         environment::space): Add code to initialize `num_spaces' (using the
4511         constructor of `word_space_node').
4512         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4513         Document it.
4515 2001-01-09  Werner LEMBERG  <wl@gnu.org>
4517         * man/groff_char.man: Use table header traps only conditionally.
4519 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
4521         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4523 2001-01-08  Werner LEMBERG  <wl@gnu.org>
4525         Introducing the `box' and `boxa' requests which are similar to
4526         `di' resp. `da' but omitting a partially filled line (which is
4527         restored after ending the diversion).
4529         * src/roff/troff/div.h (diversion): Add elements to save partially
4530         filled line.
4531         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4532         partially filled line.
4533         (divert, divert_append): Updated.
4534         (box, box_append): New functions.
4535         (init_div_requests): Use them.
4536         * src/roff/troff/env.h (environment): do_divert() is now a friend.
4537         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4539         * doc/groff.texinfo: Fix documentation of `lf' request.
4541 2000-12-25  Werner LEMBERG  <wl@gnu.org>
4543         * src/roff/troff/troff.man, NEWS: Document `writem' request.
4545 2000-12-21  Werner LEMBERG  <wl@gnu.org>
4547         Ignore `ss' request if in compatibility mode.
4549         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4550         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4551         * src/roff/troff/env.cc (space_size): Use it.
4553         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4554         `ss' request in nroff mode.
4556         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4557         changes.
4559 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
4561         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4563 2000-12-13  Werner LEMBERG  <wl@gnu.org>
4565         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4566         * src/preproc/eqn/neqn.man: Small fixes and additions.
4568 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
4570         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4571         Fixing typo.
4573         * src/preproc/eqn/neqn.man: New file.
4575         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4576         negative' warning.
4578         * tmac/e.tmac: Add `T&' macro.
4579         Fix `indent cannot be negative' warning.
4580         * tmac/s.tmac: Fix `indent cannot be negative' warning.
4582 2000-12-07  Werner LEMBERG  <wl@gnu.org>
4584         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4586 2000-12-06  Werner LEMBERG  <wl@gnu.org>
4588         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4589         `alloca' symbol .
4591         * MORE.STUFF: Added info about deroff for djgpp.
4593         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4594         documentation of -rcR switch.
4596 2000-12-03  Werner LEMBERG  <wl@gnu.org>
4598         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4599         if -rcR=1 (which is now the default in nroff mode), a single, very
4600         long page is created instead of multiple pages: All `ne' and `wh'
4601         requests are put into conditionals; a new macro `an-end' is added to
4602         be called with `em'.
4604         Some other minor cleanups.
4606         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4608 2000-12-02  Werner LEMBERG  <wl@gnu.org>
4610         Fixing a bug which prevented hyphenation in words followed
4611         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4613         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4614         Adding possibly_break_line().
4615         * src/roff/troff/env.h (environment): Make possibly_break_line()
4616         public.
4618         Make `\~' usable in .tr request.
4620         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4621         (token): Add stretchable_space().
4622         * src/roff/troff/input.cc (token::next, token::delimiter,
4623         token::description, process_input_stack, do_translate,
4624         add_to_node_list, token::process): Use it.
4625         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4626         for adjusting the space.
4627         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4628         for stretchable space.
4629         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4630         (make_node): Add code for stretchable space.
4631         * src/roff/troff/env.cc (environment::add_char): Use it.
4632         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4633         (get_copy, token::next, transparent_translate, asciify): Use it.
4635         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4636         doc/groff.texinfo: Updated.
4637         * man/groff.man: Small reorderings.
4639 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4641         * NEWS: Fixes.
4642         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4643         option.
4644         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4645         `safer_macro_path' to -M option.
4646         * src/roff/troff/troff.man: Fixes.
4648 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4650         Use safer path (except for config files) if -U isn't specified.  Add
4651         a special macro path (without home and current directory) for config
4652         files.  Add home directory to unsafe path for consistency.  Don't
4653         include the home directory in the font path.
4655         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4656         `macro_path'.
4657         * src/include/macropath.h: Add `config_macrp_path'.
4658         * src/libs/libgroff/fontfile.cc: Fix font path.
4659         * src/roff/troff/input.cc (process_startup_file): Use
4660         `config_macro_path'.
4661         (main): Select unsafe path if -U is given.
4663         * src/preproc/eqn/main.cc (main): Fixing search path for
4664         configuration file.
4665         * src/preproc/eqn/eqn.man: Updated.
4667         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4668         Updated.
4670         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4671         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4672         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4673         src/devices/grotty/grotty.man: Updated.
4675         * Makefile.in: Fix comments.
4677 2000-11-17  Werner LEMBERG  <wl@gnu.org>
4679         * tmac/safer.tmac: Empty file added (again) for compatibility
4680         reasons.
4681         * tmac/Makefile.sub: Updated.
4683 2000-11-16  Werner LEMBERG  <wl@gnu.org>
4685         * src/devices/grodvi/dvi.cc (main),
4686         src/devices/grohtml2/post-html.cc (main),
4687         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4688         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4689         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4690         (main), src/preproc/html2/pre-html.cc (main),
4691         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4692         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4693         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4694         (main), src/utils/hpftodit/hpftodit.cc (main),
4695         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4696         (main), src/utils/lookbib/lookbib.cc (main),
4697         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4698         (main): Use stdout for -v.
4699         * src/roff/groff/groff.cc (run_commands),
4700         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4701         to make direct printing to stdout possible.
4702         * src/roff/groff/pipeline.h: Updated.
4704         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4705         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4706         * src/utils/afmtodit/afmtodit.man: Updated.
4708         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4709         (version): New function.
4710         (usage): Updated.
4711         * src/utils/addftinfo/addftinfo.man: Updated.
4713         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4714         Fixing copyright dates.
4716         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4717         replacing it.
4719         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4720         version_string.
4722         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4724 2000-11-15  Werner LEMBERG  <wl@gnu.org>
4726         In all programs, make -v return immediately with exit status 0 to
4727         be compliant with the GNU standard.
4729         * src/devices/grodvi/dvi.cc (main),
4730         src/devices/grohtml2/post-html.cc (main),
4731         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4732         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4733         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4734         (main), src/preproc/html2/pre-html.cc (main),
4735         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4736         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4737         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4738         (main): Implement it.
4739         * NEWS: Updated.
4741         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
4742         and postprocessors to the -v option.
4744         * src/roff/grog/grog.pl: Implement -v.
4745         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4746         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4748         * src/roff/nroff/nroff.sh: Implement -v.
4749         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4750         * src/roff/nroff/nroff.man: Updated.
4751         
4752         * src/preproc/eqn/main.cc (main): Fix comment typo.
4754         * MORE.STUFF: Added info about djgpp port of grap.
4756 2000-11-14  Werner LEMBERG  <wl@gnu.org>
4758         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4759         mode (or rather, implemented non-compatibility mode).
4760         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4762         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4763         replacing it -- we don't find gxditview otherwise.
4764         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4766         * src/preproc/pic/depend: Removed.  Unnecessary.
4768         Implemented dummy keyword `solid' in pic for compatibility with
4769         AT&T pic.
4771         * lex.cc (lookup_keyword): Added `solid'.
4772         * pic.y: Added SOLID with dummy rule.
4773         * pic.cc, pic_tab.h: Regenerated.
4774         * doc/pic.ms: Updated.
4776 2000-11-13  Werner LEMBERG  <wl@gnu.org>
4778         For security reasons, don't use the current directory but the home
4779         directory while searching and scanning troffrc and troffrc-end.
4780         Similarly, replace the current directory with the home directory
4781         in the font path.
4783         * Makefile.in (fontpath, tmacpath): Remove current directory.
4785         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4786         two parameters `add_home' and `add_current'.
4787         (search_path::~search_path, search_path::command_line_dir,
4788         search_path::open_file): Remove tests for `dirs' being zero.
4789         * src/include/searchpath.h: Adjust.
4790         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4791         `safer_macro_path'.
4792         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4794         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4795         * src/roff/troff/input.cc: Use `mac_path', initialized with
4796         `macro_path'.
4797         (process_startup_file): Set `mac_path' to `safer_macro_path'.
4798         * src/roff/troff/env.cc: Use `mac_path'.
4800         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4802         * NEWS, man/roff.man, src/roff/troff/troff.man,
4803         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4804         Updated.
4806 2000-11-12  Werner LEMBERG  <wl@gnu.org>
4808         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4810         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4811         * configure.in: Fix typo in comment.
4812         * configure: Regenerated.
4814         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4815         copyright dates.
4817 2000-11-08  Werner LEMBERG  <wl@gnu.org>
4819         Add system tmac directory (/usr/local/lib/groff/site-tmac).
4821         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4822         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4823         $(systemtmacdir).
4824         Use @libdir@.
4825         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4826         * tmac/Makefile.sub (install_data): Create
4827         $(systemtmacdir) and $(localtmacdir).
4828         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4829         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4830         NEWS, doc/groff.texinfo: Updated and minor fixes.
4832         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4833         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4834         $(systemtmacdir) since the wrapper files are platform-dependent.
4836 2000-11-01  Werner LEMBERG  <wl@gnu.org>
4838         * doc/groff.texinfo: Fix typo.
4840 2000-10-26  Werner LEMBERG  <wl@gnu.org>
4842         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
4843           tmac.doc.old -> doc-old.tmac
4844           tmac.an.old  -> an-old.tmac
4846         * tmac/tmac.*: Moved to ...
4847         * tmac/*.tmac: this.
4848         * tmac/man.local: Fix comment.
4849         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4850         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
4851         Added some `FILES' sections.  More use of @...@ directives.  Other
4852         minor updates.
4853         * arch/djgpp/README, font/devutf8/NOTES: Updated.
4854         * doc/homepage.ms, doc/groff.texinfo: Updated.
4855         * man/groff.man, man/roff.man: Updated.
4856         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4857         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4858         src/devices/grotty/grotty.man: Updated.
4859         * src/preproc/pic/pic.man: Updated.
4860         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4861         instead of -mdoc.old.
4862         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4863         * src/roff/nroff/nroff.man: Updated.
4864         * NEWS: Updated.
4866         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4868         * tmac/mm.diff: Removed -- it has no use now since the mm package
4869         is part of groff.
4871         * tmac/*: Removed trailing spaces.
4873         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4874         the tmac subdirectory also).
4876         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4877         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4878         stuff since it is no longer needed.
4880         * README, PROBLEMS: Updated.
4882 2000-10-25  Werner LEMBERG  <wl@gnu.org>
4884         Invert current behaviour: Search first FOOBAR.tmac, then
4885         tmac.FOOBAR.
4887         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4888         (open_mac_file, macro_source): Implement it.
4889         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4890         doc/groff.texinfo, NEWS: Document it.
4892         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4893         Small documentation improvements.
4895         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4896         subdirectory also).
4898         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4900 2000-10-24  Werner LEMBERG  <wl@gnu.org>
4902         Add local tmac directory (groff/site-tmac).
4904         * Makefile.in: Add $(localtmacdir).
4905         (uninstall_dirs): Add $(localtmacdir).
4906         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4907         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4908         in $(localtmacdir).  Create $(localtmacdir).
4909         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4910         Updated and minor fixes.
4912         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4914         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4916 2000-10-23  Werner LEMBERG  <wl@gnu.org>
4918         Move hyphen.us to tmac directory.
4920         * src/roff/troff/hyphen.us: Removed.
4921         * src/tmac/hyphen.us: Added.
4922         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4924         Change installation structure for data files from .../groff/... to
4925         .../groff/<version><revision>/... to be conform with other GNU
4926         programs.
4928         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4929         doc/Makefile: Implement it.
4930         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4931         * configure: Updated.
4932         * arch/djgpp/README, font/devutf8/NOTES: Use it.
4933         * NEWS: Document it.
4934         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4935         @MACRODIR@ instead of hard-coded directories.
4937 2000-10-22  Werner LEMBERG  <wl@gnu.org>
4939         Implement $GROFF_BIN_PATH environment variable (which defaults to
4940         $bindir) used for child programs of groff and similar wrappers.
4942         * gendefs.sh: Improve documentation.
4943         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4944         src/preproc/eqn/Makefile.sub (neqn),
4945         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4946         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4947         $GROFF_BIN_PATH.
4948         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4949         $GROFF_PATH__ (the latter for communication with troff).
4950         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4951         set.
4952         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4953         doc/groff.texinfo: Document it.
4955         * doc/groff.texinfo: Improve documentation of troff's -a option.
4957 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
4959         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4960         non-intrusive eol marker.
4961         (troff_output_file::determine_line_limits): New function.
4962         (troff_output_file::draw): Use it.
4963         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4964         output_pending_lines() instead of output_line().
4965         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4966         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4967         createImage): Small fixes.
4968         
4969 2000-10-14  Werner LEMBERG  <wl@gnu.org>
4971         Replace tmac.safer with a real secure solution.
4973         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4974         system_request, pipe_output): Disable requests if in safer mode.
4975         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4976         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4977         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4978         doc/groff.texinfo, src/roff/groff/groff.man,
4979         src/roff/troff/troff.man, arch/djgpp/README: Updated.
4981         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4982         (resource_manager::output_prolog): Replace setenv() with putenv().
4984 2000-10-09  Werner LEMBERG  <wl@gnu.org>
4986         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4987         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4988         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4989         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4990         compilation errors with some compilers.  It seems that this code
4991         is no longer necessary -- if yes, it is easy to add some #ifdef's
4992         for that particular old-fashioned compiler.
4994         * MORE.STUFF: Added info about Meta-tbl.
4996         * doc/groff.texinfo: Added more info about `.if "..."..."'.
4998 2000-10-07  Werner LEMBERG  <wl@gnu.org>
5000         Adding a new escape sequence \B'...': If the string between
5001         the delimiters is a valid numeric expression, return the character
5002         `1', and `0' otherwise.  This is an analogon to \A.
5004         * src/roff/troff/input.cc (do_expr_test): Implement it.
5005         (token::next): Use it.
5006         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
5008         * tmac/tmac.trace: Made independent from escape character.
5010 2000-10-06  Werner LEMBERG  <wl@gnu.org>
5012         Adding a new request .dei: define indirect.  The first and second
5013         parameter of .dei are taken from string registers instead directly;
5014         this very special request is needed to make tmac.trace independent
5015         from the escape character (which might even be disabled).
5017         * src/roff/troff/input.cc (do_define_macro): Implement it.
5018         (define_macro_indirect): New function.
5019         (init_input_requests): Use it.
5021         Adding two requests .ecs and .ecr: Save and restore the escape
5022         character.  These two requests are needed to make tmac.trace
5023         independent from the escape character (which might even be
5024         disabled).
5026         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
5027         Implement it.
5028         (init_input_requests): Use it.
5030         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5032 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
5034         Adding a new option -P and new environment variable GROPS_PROLOGUE
5035         to grops, selecting a different prologue file (minor modifications
5036         by WL).
5038         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
5039         src/devices/grops/ps.cc (main): Implement it.
5040         * src/devices/grops/grops.man, NEWS: Document it.
5042 2000-09-22  Werner LEMBERG  <wl@gnu.org>
5044         * INSTALL: Add info about selecting paper format.
5046 2000-09-21  Werner LEMBERG  <wl@gnu.org>
5048         * src/roff/troff/input.cc (main): Fixing compiler warning.
5049         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
5050         strings.h from the former to the latter.
5051         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
5052         stuff from the former to the latter.
5054 2000-09-11  Werner LEMBERG  <wl@gnu.org>
5056         Implementing two new requests .tm1 and .tmc: The former is similar
5057         to .tm but can output leading spaces; its syntax is similar to
5058         defining a string, i.e., a `"' can be used to mark the beginning of
5059         the string to be written to stderr: `.tm1 " test'.  The latter is
5060         similar to .tm1 but doesn't write out a final newline character.
5062         * src/roff/troff/input.cc (terminal1, terminal_continue,
5063         do_terminal): New functions.
5064         (init_input_requests): Use them.
5065         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5067 2000-09-09  Werner LEMBERG  <wl@gnu.org>
5069         * tmac/groff_mdoc.samples.man: Small fixes.
5071 2000-09-08  Werner LEMBERG  <wl@gnu.org>
5073         * tmac/groff_mdoc.man: Fixing typo.
5075 2000-09-02  Werner LEMBERG  <wl@gnu.org>
5077         Implementing a .nop request which does nothing.
5079         * src/roff/troff/input.cc (nop_request): New function.
5080         (init_input_requests): Use it.
5081         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
5083 2000-09-01  Werner LEMBERG  <wl@gnu.org>
5085         * doc/groff.texinfo: Added some comments.
5087 2000-08-30  Werner LEMBERG  <wl@gnu.org>
5089         * src/roff/troff/TODO: Updated.
5091 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5093         * doc/groff.texinfo: Fix comment how to compile the DVI file.
5095 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5097         * font/devps/generate/Makefile (SHELL): Define explicitly to
5098         "/bin/sh", for non-Unix platforms.
5099         (extraclean): Use a more portable "" quoting instead of a
5100         backslash (which doesn't work on DOS/Windows).
5101         
5102         * font/devlj4/generate/Makefile (extraclean): Ditto.
5104         * font/devdvi/generate/Makefile (extraclean): Ditto.
5106 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5108         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
5109         src/roff/troff/troff.man: Document Eli's latest changes.
5111 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
5113         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
5114         macro file names of the form NAME.tmac as well as tmac.NAME.
5116 2000-08-25  Werner LEMBERG  <wl@gnu.org>
5118         * src/include/posix.h: Remove definition of FILENAME_MAX.
5120         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
5121         `sys_fatal' and `stop' function().
5123         * test-groff: Updated.
5125 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
5127         Added the new troff command .output <arg> to suppress output (while
5128         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
5129         registers (for passing the output dimensions to the output device).
5131         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
5132         parameter.
5133         * src/roff/troff/node.h, src/roff/troff/node.cc
5134         (troff_output_file::really_print_line,
5135         ascii_output_file::really_print_line,
5136         supress_output_file::really_print_line): Use `width' parameter.
5137         (troff_output_file::really_on, troff_output_file::really_off,
5138         output_file::on, output_file::off, real_output_file::on,
5139         real_output_file::off, real_output_file::really_on,
5140         real_output_file::really_off): New functions.
5141         (real_output_file:public output_file): New variable `output_on'.
5142         (real_output_file::begin_page, real_output_file::copy_file,
5143         real_output_file::transparent_char, real_output_file::print_line):
5144         Use it.
5145         (real_output_file::print_line): Use check_output_limits.
5146         * src/roff/troff/reg.h, src/roff/troff/request.h,
5147         src/roff/troff/input.cc (assign_registers): New function to remove
5148         two `goto's.
5149         (do_ps_file): Use it.
5150         (check_output_limits, reset_output_registers, output_request,
5151         init_output_requests): New functions.
5152         (init_input_requests): Updated.
5154         Added new grohtml2 device and html2 preprocessor (coding
5155         not yet finished) which will eventually replace grohtml.
5157         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5158         Updated.
5159         * src/include/htmlindicate.h, src/include/htmlindicate
5160         (html_begin_suppress, html_end_suppress): New functions.
5161         * src/preproc/tbl/main.cc: Use it.
5162         * src/roff/groff/groff.cc: Add support for html2 device (which will
5163         automatically invoke the html2 preprocessor).
5164         * src/roff/troff/input.cc (is_html2): New variable.
5165         * src/roff/troff/troff.h, src/roff/troff/env.h,
5166         src/roff/troff/env.cc (environment::add_html_tag): New function
5167         (uses `is_html2').
5168         (environment::do_break): Use it.
5169         * font/devhtml2/*: New files.
5170         * src/devices/grohtml2: New device.
5171         * src/preproc/html2: New preprocessor.
5172         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5174 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5176         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5178 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5180         * src/include/lib.h: Provide a fix for IRIX to not include
5181         groff-getopt.h.
5183 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5185         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5186         since some non-GNU sed programs can't handle null regexps.
5187         * configure, src/preproc/eqn/Makefile.sub,
5188         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5190         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5191         bug (string.h and strings.h are both needed according to latest
5192         POSIX standard).
5194         * MORE.STUFF: Added info about unroff and troffcvt.
5196 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5198         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5199         used before -ms.
5201         * tmac/tmac.man.old: Remove unused number register.
5203         * tmac.doc: Minor documentation fix.
5205 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5207         * src/roff/groff/pipeline.c (is_system_shell):
5208         Fix typo: "monocased_shell" no longer exists.
5210 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5212         Remove FILENAME_MAX limits.
5214         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5215         that the argument length is less than FILENAME_MAX.
5216         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5217         Use struct hack to allocate and free file name.
5218         (struct xtmpfile_list): fname is now part of the structure,
5219         not a pointer to another string.
5221 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5223         * src/include/posix.h: Add a default value for FILENAME_MAX.
5225 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5227         Add support for new BSD-style man pages (with ".Dd" instead of
5228         ".TH"), so that "groff -man" understands both styles, even
5229         when running "groff -man" on a host whose system man page
5230         macros don't support ".Dd".
5232         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5233         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5234         in case the system man macros don't define Dd or TH.
5236         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5237         * tmac/tmac.an: New one-line file.
5238         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5240 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5242         * src/roff/troff/troff.man: Fixing typos.
5244 Version 1.16.1 released
5245 =======================
5247 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5249         Preparing release 1.16.1.
5251         * REVISION: Revision number set to 1.
5252         * MORE.STUFF: Added info about port to DOS.
5253         * NEWS, win32-diffs: Updated.
5255         * src/include/nonposix.h: Remove first line -- this file is used
5256         in C also.
5258         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5259         link to it.
5261 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5263         * doc/texinfo.tex: Update to latest version.
5265 2000-06-28  Paul Eggert  <eggert@twinsun.com>
5267         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5268         commands that fail.  Don't assume that "export a=b" is valid shell
5269         syntax.  This is needed for Solaris 2.5.1.
5271         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5272         comment about missing Solaris headers.
5274         * PROBLEMS: Add section about problems with Sun Make and VPATH.
5276 2000-06-25  Werner LEMBERG  <wl@gnu.org>
5278         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5279         SET_BINARY().
5281         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5283         * win32-diffs: Updated.
5284         * README.WIN32: Added CRs to make all Windows editors happy.
5286         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5287         src/roff/groff/pipeline.c).
5289 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5291         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5292         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5294 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
5296         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5297         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5298         are binary files.
5299         (main): Support non-Posix systems with several different styles of
5300         slash characters in file names.
5302         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5303         (main) [SET_BINARY]: Switch stdin into binary mode.
5305         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5306         (main): Support file names with several possible slash-type
5307         characters, as given by DIR_SEPS[] in nonposix.h.
5308         (main) [__MSDOS__]: If renaming the temporary index file fails
5309         because it has more than one dot in its trunk, replace the dot
5310         with an underscore and try again.
5311         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
5312         Newline.
5313         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5315         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5316         (File::File): Open the input file in binary mode.  Strip CR
5317         characters from each CR-LF pair.
5318         (xbasename): Support file names with several possible slash-type
5319         characters, as given by DIR_SEPS[] in nonposix.h.
5321         * src/include/Makefile.sub (HDRS): Add nonposix.h.
5323         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5324         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5325         [!_POSIX_VERSION]: Define for traditional Unix systems.
5326         (real_output_file::real_output_file): Remove the MSVC-specific
5327         call to popen, use instead POPEN_WT, appropriately defined on
5328         nonposix.h.  #include nonposix.h.
5329         (real_output_file::~real_output_file): Remove the MSVC-specific
5330         call to pclose, a suitable macro is now defined on nonposix.h.
5331         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5332         and WEXITSTATUS instead of assuming traditional Unix
5333         interpretation of the status returned by pclose.
5335         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5336         call to popen, use POPEN_RT instead (appropriately defined on
5337         nonposix.h).  #include nonposix.h.
5338         (ps_bbox_request): Open the PostScript file in binary mode.
5339         Close the file after processing it.
5340         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5341         nonposix.h.
5343         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5344         A version of run_pipeline that doesn't use `fork'.
5345         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5346         (system_shell_name, system_shell_dash_c)
5347         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5348         the ugliness of testing DOS/Windows file names for equality, and
5349         support both stock shells and ports of Unix shells.
5351         * src/roff/groff/groff.cc: #include nonposix.h.
5352         (BSHELL): Definition moved to nonposix.h.
5353         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
5354         instead of a literal "-c".
5355         (xbasename): Support file names with several possible slash-type
5356         characters, as given by DIR_SEPS[] in nonposix.h.
5357         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5358         of literal strings.
5360         * src/preproc/soelim/soelim.cc: #include nonposix.h.
5361         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5363         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5364         pic_tab.h.
5366         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5368         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5369         eqn_tab.h.
5371         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5373         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5374         P_tmpdir is defined, use it instead of the literal "/tmp".
5375         (remove_tmp_files, add_tmp_file): New functions.
5376         (xtmpfile): Record temporary files and register an atexit function
5377         to delete them explicitly, instead of relying on the OS to do
5378         that, which doesn't work on non-Unix systems.
5380         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5381         (search_path::search_path): Use PATH_SEP instead of a literal
5382         colon.
5383         (search_path::command_line_dir): Ditto.
5384         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5385         to support non-Posix systems.
5387         * src/libs/libbib/search.cc: #include nonposix.h.
5388         (search_list::add_file): Open the file in binary mode.
5390         * src/libs/libbib/linear.cc: #include nonposix.h.
5391         (file_buffer::load): Remove \r characters preceding \n from the
5392         loaded buffer.
5394         * src/libs/libbib/index.cc: #include nonposix.h.
5395         (make_index_search_item): Open index_filename in O_BINARY mode.
5396         (index_search_item_iterator::get_tag): Ditto.  Remove \r
5397         characters before \n characters.
5398         (index_search_item::check_files): Open files in binary mode.
5399         (index_search_item::munge_filename): Support DOS-style file names
5400         with backslashes and drive letters, use IS_ABSOLUTE.
5402         * src/devices/grops/ps.cc: #include nonposix.h.
5403         (main) [SET_BINARY]: Switch stdout to binary mode.
5405         * src/devices/grolj4/lj4.cc: #include nonposix.h.
5406         (main) [SET_BINARY]: Switch stdout to binary mode.
5408         * src/devices/grolbp/lbp.cc: #include nonposix.h
5409         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5411         * src/devices/grodvi/dvi.cc: #include nonposix.h.
5412         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5413         nonposix.h).
5414         (main) [SET_BINARY]: Switch stdout to binary mode.
5415         [_MSC_VER]: Remove an explicit call to _setmode.
5417         * src/include/nonposix.h: New file.
5419         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5420         operation when building with DJGPP.
5421         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5422         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5423         ENVSETUP.
5425         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5426         MS-DOS.
5427         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5428         etc. can include a semi-colon on DOS/Windows.
5429         (depend.temp): Use depend1.temp instead of depend.temp1, to
5430         prevent files from overerwiting each other on 8+3 filesystems.
5432         * gendef.sh (t): Change definition to work with DOS/Windows.
5434         doc/groff.texinfo: Apart of some typo corrections, I also changed
5435         some index entris, to make them more non-ambiguous, and also put
5436         @ignore around some parts that are not yet written, to allow the
5437         Info output be readable.
5439 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
5441         Replaced specific checks for function declarations with a generic
5442         routine taken from GNU bfd.
5444         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5445         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5446         * configure.in: Use it.
5447         * src/devices/grolbp/lbp.cc, src/include/lib.h,
5448         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5449         src/roff/groff/groff.cc: Use it.
5450         * Makefile.in, configure: Updated.
5452 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
5454         * src/devides/grolbp/lbp.h: Removed unused variables.
5456 2000-05-31  Keith Thompson  <kst@sdsc.edu>
5458         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5459         strncasecmp().
5461 2000-05-31  Werner LEMBERG  <wl@gnu.org>
5463         * aclocal.m4 (GROFF_SRAND): New function to test the return value
5464         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5465         * configure.in: Use it.
5466         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5467         * configure, Makefile.in: Updated.
5469         * configure.in: Add test for strncasecmp().
5470         * src/include/lib.h: Use it.
5472 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
5474         * src/preproc/grn/Makefile.sub: Add MLIB.
5476 2000-05-29  Nix  <nix@esperi.demon.co.uk>
5478         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5480 2000-05-29  Werner LEMBERG  <wl@gnu.org>
5482         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5484         * PROBLEMS: Small update.
5486         * src/devices/grolbp/lbp.cc: Various small fixes.
5488 2000-05-28  Keith Thompson  <kst@sdsc.edu>
5490         * src/roff/nroff/nroff.sh: Fix main loop syntax.
5492         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5494 2000-05-25  Werner LEMBERG  <wl@gnu.org>
5496         * man/roff.man: Removed unused macro.
5498 2000-05-24  Werner LEMBERG  <wl@gnu.org>
5500         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
5501         This is needed e.g. if you do
5502         `make distclean; ./configure; make dist'.
5504 Version 1.16 released
5505 =====================
5507 2000-05-23  Werner LEMBERG  <wl@gnu.org>
5509         Adding font CWI (constant width italic) to devdvi.
5511         * font/devdvi/CWI: New file.
5512         * font/devdvi/generate/Makefile: Add generating rule.
5513         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5514         tmac/tmac.dvi: Use it.
5515         * NEWS: Announce it.
5517         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5518         * font/devlj4/generate/Makefile: Cosmetic changes only.
5520         * man/groff.man: Removed most of the redundant description of
5521         special characters (which is in groff_char.man).  Added font
5522         translation CB->CR for devdvi.  Other minor fixes.
5524         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5525         (registered) symbols.
5527 2000-05-22  Werner LEMBERG  <wl@gnu.org>
5529         * doc/Makefile: Added rule for creating info files.
5531         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
5532         AMS font metrics.
5533         * font/devdvi/generate/Makefile: Fixed dependencies.
5535         * font/devps/*: Regenerated.  Heavy changes for Bookman and
5536         NewCentury Schoolbook!
5537         * font/devps/generate/afmname: Will now run with GNU awk.
5538         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5539         * font/devps/generate/Makefile: Cosmetic changes only.
5541 2000-05-21  Werner LEMBERG  <wl@gnu.org>
5543         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5544         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
5545         `.SS' now produces a heading with a smaller size than `.SH'. 
5546         Completely formatted.
5547         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5549         * man/groff.man: Improved table appearance.  Use of `eo' request
5550         to reduce number of doubled backslashes in macro definitions.
5551         Replacing `\e' with `\(rs'.  Other minor fixes.
5553         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5554         to have correct line number.
5556         * INSTALL: Small improvement.
5558 2000-05-20  Bernd Warken  <bwarken@mayn.de>
5560         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5561         WL).
5563 2000-05-19  Bernd Warken  <bwarken@mayn.de>
5565         * man/groff.man: Complete update (with a lot of corrections by WL).
5567 2000-05-18  Werner LEMBERG  <wl@gnu.org>
5569         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5571         * font/*/*: Implement it.
5572         * man/groff_char.man, NEWS: Document it.
5574         * src/include/unix.h: Removed.  It isn't used.
5576         * doc/groff.texinfo: Slight improvements.
5578 2000-05-17  Werner LEMBERG  <wl@gnu.org>
5580         * README, win32-diffs: Small fixes and improvements.
5582 2000-05-16  Werner LEMBERG  <wl@gnu.org>
5584         * FDL: New file (the Free Documentation License version 1.1).
5586         * doc/groff.texinfo: Added many start-up values for gtroff.
5587         Some structural improvements of the source code.
5589 2000-05-15  Werner LEMBERG  <wl@gnu.org>
5591         * src/roff/troff/input.cc: Added small comment about troffrc-end.
5592         * src/roff/troff/troff.man: Added info about troffrc-end.
5594 2000-05-14  Werner LEMBERG  <wl@gnu.org>
5596         * Makefile.in (EXTRADIRS): Fix typos.
5597         (dist): Handle deletion of old .tar.gz file correctly.
5598         (DISTDIRS): Include all tty output devices.
5600         * doc/groff.texinfo: Adding more cross references; countless other
5601         fixes.
5603 2000-05-13  Werner LEMBERG  <wl@gnu.org>
5605         * MORE.STUFF: Added Robert Marks's utilities.
5607 2000-05-12  Werner LEMBERG  <wl@gnu.org>
5609         Added win32 port contributed by Blake McBride
5610         <blake@florida-software.com>.
5612         * README.WIN32, win32-diffs: New files.
5613         * NEWS: Updated.
5615         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5616         (tmove, tmove2): Added parentheses to avoid compiler warnings.
5617         (change): Removed unused variables.
5619         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5620         (savebounds): Changed return value from `int' to `void'.
5621         * src/preproc/grn/hdb.cc: Ditto.
5623         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5624         final backslash in comment to avoid compiler warning.
5626         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5628         * doc/groff.texinfo: More fixes.
5630 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5632         * tmac/tmac.doc: Documentation fix.
5634 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5636         * doc/groff.texinfo: Reading the source code shows up a lot of
5637         omissions and incorrect data...  More conversion to @Deffn macros.
5639 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5641         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5642         dependency.
5644         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5646 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5648         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5649         improvements.
5651         * doc/groff.texinfo: Extended history section.  More conversion to
5652         @Deffn macros.  More .tr documentation.
5654 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5656         * doc/groff.texinfo: Completed tab section.  Added info about
5657         fields.
5659 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5661         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5663 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5665         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5666         LaTeX 2e).
5667         * NEWS: Document it.
5669         * man/troff.man: Minor optical improvements.
5671 2000-05-03  Werner LEMBERG  <wl@gnu.org>
5673         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5675         * font/*/*: Implement it.
5676         * man/groff_char.man, NEWS: Document it.
5678 2000-05-02  Werner LEMBERG  <wl@gnu.org>
5680         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5681         expansion.
5682         * NEWS: Document the three new man pages.
5684         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5685         * configure: Updated.
5687         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5689 2000-05-01  Werner LEMBERG  <wl@gnu.org>
5691         Added grap support to grog.
5693         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5694         * src/roff/grog/grog.man: Document it.
5696         * doc/groff.texinfo, NEWS: Add info about grap support.
5698         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5699         (with slight fixes by me).
5701         * tmac/groff_tmac.man: New file documenting tmac mechanism.
5702         * tmac/Makefile.sub: Add groff_tmac.man.
5703         * man/roff.man: New file giving overview of roff system.
5704         * man/troff.man: A short reference of troff.
5705         * man/Makefile.sub: Add roff.man and troff.man.
5707 2000-04-30  Werner LEMBERG  <wl@gnu.org>
5709         Added grap support to groff.
5711         * src/roff/groff/groff.cc: Implement it.
5712         * src/roff/groff/groff.man: Document it.
5714         * src/devices/grotty/grotty.man: Add cp1047 device.
5715         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5716         Ditto.
5717         * src/roff/groff/groff.man: Ditto.
5718         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5719         * doc/groff.texinfo: Ditto.
5721         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5722         for cp1047.
5724 2000-04-29  Werner LEMBERG  <wl@gnu.org>
5726         * man/groff_char.man: Add `pc' glyph.
5727         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5728         * tmac/tmac.tty: Add `pc' glyph.
5729         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
5730         we use cp1047 output device.
5732         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5733         there are still hardcoded latin1->unicode values in utf8's font
5734         definition files.
5735         * configure: Updated.
5736         * NEWS: Minor clarification.  Updated.
5738         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
5739         Unix.
5741 2000-04-28  Werner LEMBERG  <wl@gnu.org>
5743         Adding EBCDIC code page 1047.
5745         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5746         font/devcp1047/DESC.proto: New files.
5748         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5749         either ascii/latin1 or cp1047.
5750         * Makefile.in: Use it.
5751         * configure: Updated.
5753         Replacing and/or adding `md' (mathdot) glyph with `pc'
5754         (periodcentered) in all text fonts.
5756         * font/*/*: Change it.
5758 2000-04-27  Werner LEMBERG  <wl@gnu.org>
5760         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5762         * configure.in: Add check for strings.h.
5763         * src/include/driver.h: Use HAVE_STRINGS_H.
5764         * src/devices/grolbp/lpb.cc: Remove string.h.
5766         * src/include/groff-getopt.h: New file.  It will be used instead of
5767         getopt.h (to be included in lib.h) to avoid endless problems with
5768         picky C++ compilers.
5769         * src/include/lib.h: Use groff-getopt.h.
5770         * src/include/Makefile.sub: Updated.
5772         * configure: Updated.
5773         * Makefile.in: Updated.
5775         * NEWS: Mention EBCDIC support.
5777 2000-04-26  Werner LEMBERG  <wl@gnu.org>
5779         * TODO: Some additions.
5781 2000-04-25  Werner LEMBERG  <wl@gnu.org>
5783         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5784         of mso request.
5786 2000-04-23  Werner LEMBERG  <wl@gnu.org>
5788         * src/roff/troff/troff.man: Minor fixes.
5790 2000-04-22  Werner LEMBERG  <wl@gnu.org>
5792         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5793         `.T' string register and the incompatible definition of the `.T'
5794         number register (compared to Unix troff).
5796         * man/groff_char.man: Add some missing characters.
5797         * font/devutf8/NOTES: Update.
5799 2000-04-21  Werner LEMBERG  <wl@gnu.org>
5801         * src/include/htmlindicate.h, src/include/lib.h,
5802         src/include/posix.h: Fix copyright.
5804         * src/include/Makefile.sub: Update.
5806 2000-04-20  Werner LEMBERG  <wl@gnu.org>
5808         * src/roff/troff/input.cc (input_char_description): Removing
5809         superfluous space char.
5811         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5813         * doc/groff.texinfo: Document EBCDIC.
5815 2000-04-19  Werner LEMBERG  <wl@gnu.org>
5817         Introducing `shc' as the glyph name for the soft hyphen character.
5819         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5820         font/devlatin1/R.proto: Use it.
5822         * NEWS: Updated.
5824 2000-04-18  Werner LEMBERG  <wl@gnu.org>
5826         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5827         dependency on ASCII order.
5829 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
5831         * src/libs/libgroff/illegal.c: Added EBCDIC table.
5832         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5834         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5835         to increase portability.
5837 2000-04-15  Werner LEMBERG  <wl@gnu.org>
5839         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5840         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5841         the generic `\n' if under OS/390 Unix.
5843         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5845         * configure: Regenerated.
5847 2000-04-14  Werner LEMBERG  <wl@gnu.org>
5849         * doc/groff.texinfo: More conversions to @Deffn.
5851 2000-04-12  Werner LEMBERG  <wl@gnu.org>
5853         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5854         with `:'.
5856         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5858 2000-04-10  Werner LEMBERG  <wl@gnu.org>
5860         * doc/groff.texinfo: More conversions to @Deffn.
5862 2000-04-08  Werner LEMBERG  <wl@gnu.org>
5864         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5865         Updated to latest version (glibc 2.1.3).
5867 2000-04-07  Werner LEMBERG  <wl@gnu.org>
5869         * doc/Makefile (clean): Include more index files.
5870         Add rule texinfo->dvi.
5872 2000-04-05  Werner LEMBERG  <wl@gnu.org>
5874         * doc/groff.texinfo: Added new index `op' for operators.  More
5875         info on end of sentence characters.  More use of @Deffn.
5877 2000-03-30  Werner LEMBERG  <wl@gnu.org>
5879         * */*.man: Adding a note that a whitespace can be inserted between
5880         a command line option and its parameter -- we are using GNU getopt.
5882         * src/roff/groff/groff.man: Add example of `-m mandoc'.
5884 2000-03-28  Werner LEMBERG  <wl@gnu.org>
5886         Correct anachronism of calling the man macro file with `-man'
5887         instead of `-m man' etc.
5889         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5890         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5891         load tmac.<package>.
5893         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
5895         * NEWS: Updated.
5897         * doc/groff.texinfo: Updated.
5899         * tmac/groff_man.man: Copyright added.
5901 2000-03-27  Werner LEMBERG  <wl@gnu.org>
5903         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5904         typeset the request resp. escape name with a tt font -- due to a
5905         bug in texinfo.tex it is necessary to use the `-e' switch with
5906         texi2dvi.
5908         Improving info about usage of groff units.
5910         Other minor fixes.
5912 2000-03-20  Werner LEMBERG  <wl@gnu.org>
5914         * doc/groff.texinfo: Added section about man macro package
5915         (I've basically taken groff_man.man).  Introducing new indices `ma'
5916         for macros/strings and `gl' for glyph names.  Other minor fixes.
5918         * tmac/groff_man.man: Fixed some typos.
5920 2000-03-19  Werner LEMBERG  <wl@gnu.org>
5922         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5923         Other minor fixes.
5925         * doc/texinfo.tex: New file.
5927 2000-03-18  Werner LEMBERG  <wl@gnu.org>
5929         * doc/groff.texinfo: Improved section on number registers.  Other
5930         minor updates.
5932 2000-03-16  Werner LEMBERG  <wl@gnu.org>
5934         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
5935         synopsis.
5937         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5938         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5939         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5940         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5942         * src/preproc/grn/grn.man: Better synopsis; added copyright.
5944         * src/roff/grog/grog.man: Updated copyright date.
5946 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
5948         * configure.in: Added test for strdup.
5950         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5951         is available.
5953         Replaced dynamic allocation of arrays `[...]' with `new' operator.
5955         Other minor fixes.
5957 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
5959         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5961 2000-03-11  Werner LEMBERG  <wl@gnu.org>
5963         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5964         compilers silent.
5965         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5966         * src/include/lib.h: Remove some spaces.
5968 2000-03-10  Werner LEMBERG  <wl@gnu.org>
5970         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5971         initializers from arguments (some compilers don't like this).
5973 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
5975         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5976         used by pic and eqn to tell grohtml where the graphic regions start
5977         and end.
5978         * src/libs/libgroff/Makefile.sub: Use it.
5979         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5980         graphic_start() and graphic_end() from htmlindicate.cc.
5982 2000-03-09  Werner LEMBERG  <wl@gnu.org>
5984         * tmac/tmac.safer: Will now work correctly in compatibility mode.
5985         * tmac/groff_man.man: More fixes.
5987 2000-03-08  Werner LEMBERG  <wl@gnu.org>
5989         * doc/Makefile: Added texput.log to the `clean' target.
5990         * doc/groff.texinfo: Added info about delimiters for escapes.
5992 2000-03-08  Bernd Warken  <bwarken@mayn.de>
5994         * src/preproc/pic/pic.man: Add info on conversion of pic images to
5995         other graphic formats.
5997 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
5999         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
6000         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
6001         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
6002         files.
6004 2000-03-07  Werner LEMBERG  <wl@gnu.org>
6006         * doc/groff.texinfo: Spelling fixes.
6008 2000-03-06  Werner LEMBERG  <wl@gnu.org>
6010         * tmac/groff_man.man: Completely revised to cover everything in
6011         tmac.an.
6013         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
6014         Other minor fixings.
6015         * src/roff/troff/env.cc (environment_copy): Improve error message and
6016         fix itoa->i_to_a.
6017         * src/roff/troff/TODO: Updated.
6019         * doc/Makefile: Bug fixes -- this is still provisional, though...
6021         * tmac/eqnrc: Small fixes.
6023 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
6025         Adding a request `evc' to copy environments.
6027         * src/roff/troff/env.cc (environment::copy, environment_copy):
6028         Implement it.
6029         * src/roff/troff/env.h: Add prototype.
6031 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
6033         Adding strsep() -- Solaris 8 doesn't have it.
6035         * configure.in: Test it.
6036         * src/devices/grolbp/lbp.cc: Add code.
6038 2000-03-05  Werner LEMBERG  <wl@gnu.org>
6040         * src/roff/troff/div.cc (macro_diversion::output,
6041         top_level_diversion::output): Fixing an incompatibility with
6042         original troff: \x'0' updates the .a register also.  Thanks to
6043         <Andries.Brouwer@cwi.nl> for pointing this out.
6044         * doc/groff.texinfo: Document it.
6046         * Makefile.in: Create Makefile.dep if necessary before calling the
6047         submake process to avoid warning about nonexistent file.
6049         * NEWS, PROJECTS: Updated.
6051 2000-03-04  Werner LEMBERG  <wl@gnu.org>
6053         * tmac/troffrc: Add tmac.lbp.
6055 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
6057         * tmac/tmac.lbp: New file.
6058         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
6059         command.
6061 2000-03-03  Werner LEMBERG  <wl@gnu.org>
6063         * Makefile.in: Fixing $(subdir).
6065         * README, NEWS: Small fixes.
6067         * test-groff: Adding path to grolbp.
6069         * configure.in: The (new) file src/xditview/Imakefile.in will be
6070         also configured -- it is now possible to build gxditview in a
6071         directory different from $srcdir.
6073 2000-03-02  Blake McBride  <blake@florida-software.com>
6075         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
6077         * MORE.STUFF: Added website of bell labs and info about plot2dev.
6079 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
6081         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
6082         files.
6084 2000-02-29  Werner LEMBERG  <wl@gnu.org>
6086         Adding GNU getopt to the groff distribution.
6088         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
6089         New files.
6090         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
6091         * aclocal.a4: Remove GROFF_GETOPT function.
6092         * configure.in, Makefile.in, PROBLEMS: Update.
6093         * src/include/lib.h: Replace getopt tests with getopt.h.
6094         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
6096         * doc/groff.texinfo: Further checking/updating.  Adding more index
6097         entries.
6099         * man/groff_out.man: Fix nroff mode activation (for emacs).
6100         * man/groff_font.man: Add missing ligature.
6102 2000-02-28  Werner LEMBERG  <wl@gnu.org>
6104         * doc/groff.texinfo: Further checking/updating.  Adding more index
6105         entries.
6107         * src/devices/grolbp/grolbp.man: Added a comment line at the
6108         beginning of the file (similar to shell scripts) which indicates
6109         that `tbl' should be used as a preprocessor.
6111 2000-02-27  Blake McBride  <blake@florida-software.com>
6113         Adapting groff to MS Visual C++ 6.0 compiler (tested with
6114         Windows NT 4.0).  Uses _MSC_VER define where necessary.
6116         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
6117         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
6118         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
6119         src/include/lib.h, src/libs/libgroff/errarg.cc,
6120         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
6121         src/preproc/refer/label.y, src/preproc/refer/label.cc,
6122         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
6123         src/roff/troff/div.cc, src/roff/troff/env.cc,
6124         src/roff/troff/input.cc, src/roff/troff/node.cc,
6125         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
6126         if_to_a() to avoid name clashes.
6127         * src/include/posix.h: Don't use unistd.h.
6128         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
6129         clause for integrating non-Unix xtmpfile() code.
6130         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
6131         structure; use "rt" for popen() in pipe_source(); add getpid()
6132         dummy function.
6133         * src/roff/troff/node.cc: Use special versions of popen() in
6134         real_output_file() and pclose() in ~real_output_file().
6136 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6138         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6139         LBP-8 series laser printers).  This code has been contributed by
6140         Francisco Andrés Verdú <pandres@dragonet.es>.
6142         * src/devices/grolbp/*: The grolbp output device.
6143         * font/devlpb/*: The font description files.
6144         * Makefile.in: Add grolpb and devlbp subdirectories.
6146         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6147         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6148         typographic fixes.
6150         * doc/groff.texinfo: Further checking/updating.  Adding more index
6151         entries.
6153         * NEWS: Updated.
6155         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6157         * man/groff_font.man: Adding info about obsolete DESC keywords.
6158         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6159         keywords.
6161 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6163         * src/preproc/grn/grn.man: Added info about the gremlin file format
6164         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6166 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6168         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6169         friends to be non-integer.
6171         * src/preproc/grn/grn.man: Document it.
6173         * doc/groff.texinfo: Further checking/updating.  Adding more index
6174         entries.
6176 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6178         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6179         line thicknesses to be integer multiples of this value.
6181         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6182         corresponding code doesn't work (yet).
6184         * doc/groff.texinfo: Further checking/updating.  Adding more index
6185         entries.
6187 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6189         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6190         specify line thickness instead of base units.  The new default
6191         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6192         thick lines respectively.
6194         Removed unused variable `prevval'.
6196         * src/preproc/grn/grn.man: Updated.
6198 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6200         * src/preproc/grn/main.cc: Slight formatting.
6202         * src/roff/groff/groff.man: Formatting fix.
6203         * src/preproc/grn/grn.man: Ditto.
6205         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6207         * doc/groff.texinfo: Further checking/updating.
6209 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6211         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6213         * test-groff: Added grn subdir to path.
6215         * doc/groff.texinfo: Some restructing and other small improvements.
6217         * src/roff/groff/groff.cc (help): Fixed info string.
6219 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6221         * doc/meref.me: Fix description of .GS request.
6223         * src/roff/troff/troff.man: Fixing typo.
6225         Adding the `grn' preprocessor for gremlin graphic files.
6227         * src/preproc/grn/*: This is the Berkeley distribution written by
6228         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6229         Senderowicz and Werner Lemberg.
6231         * doc/grnexampl.{me,g}: A sample for grn.
6233         * Makefile.in: Added subdirectory entry for grn.
6235         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6236         called with the switch `-g'.
6238         * src/roff/groff/groff.man: Updated.
6240         * src/roff/grog/grog.{man,pl,sh}: Updated.
6242         * NEWS: Updated.
6244 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6246         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6247         parametrically polymorphic.
6249         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6250         and the alterations to xtmpfile.
6251         xtmpfile can be requested to return the filename created
6252         and asked not to unlink the temp file.  The default behaviour
6253         if parameters are absent is exactly the same as before.
6255 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6257         A new request `length' is available which returns the length of a
6258         string in a number register:
6260         * src/roff/troff/input.cc (length_macro): Implement it.
6261         * src/roff/troff/input.cc (init_input_requests): Register it.
6263 2000-02-11  Werner LEMBERG  <wl@gnu.org>
6265         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6266         of the `substring' request.
6268         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6269         request.
6271         * src/roff/troff/TODO, NEWS: Updated.
6273 2000-02-09  Werner LEMBERG  <wl@gnu.org>
6275         * src/roff/groff/groff.man: Added an example.
6277 2000-02-06  Werner LEMBERG  <wl@gnu.org>
6279         I've considerably modified the directory structure of the
6280         distribution to get a more vertical layout.  For example, the number
6281         of top level directories has been reduced from 42 to 6.
6283         As a consequence, many changes, especially to the makefiles, were
6284         necessary:
6286         * The makefile variables `top_builddir' and `top_srcdir' have been
6287         introduced.  Virtually all relative paths have been replaced with
6288         absolute ones using these two variables.
6290         * Dependencies (in the files `Makefile.dep') are no longer part of
6291         the distribution.  Instead, they are created during a `make install'
6292         in the build directory.
6294         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6295         make `top_srcdir' and `top_builddir' absolute.
6297         Some other changes:
6299         * Man pages now depend on the files `VERSION' and `REVISION'.
6301         * The added shell script `mkinstalldirs' will replace `mkdir' in
6302         almost all cases.
6304         * VERSION: Version number increased to 1.16.
6306 2000-02-04  Werner LEMBERG  <wl@gnu.org>
6308         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6310         * Makefile.in: Removed $(tmac_m) since it is no longer needed
6311         (after an update of the mm stuff).
6313         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6315 2000-02-03  Werner LEMBERG  <wl@gnu.org>
6317         The .psbb request will now also accept Mac PS images (i.e. using LF
6318         as the EOL character).
6320         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6321         (with slight modifications).
6322         * troff/input.cc (do_ps_file): Use it.
6324         * test-groff: Add grohtml and grolj4 output devices to PATH.
6326 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6328         * NEWS, MORE.STUFF: Updated.
6330 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
6332         Add the `srand' command to pic.
6334         * pic/lex.cc, pic/pic.y: Implement it.
6335         * pic/pic.man: Document it.
6336         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6338 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6340         Add a new request `.psbb'.  This does exactly what the external
6341         program psbb did.  It scans a PostScript image file for a
6342         %%BoundingBox comment and extracts the bounding box values (in
6343         PostScript units) which are then stored in the four new (read-only)
6344         number registers `llx', `lly', `urx', and `ury'.
6346         This will allow the usage of the .PSPIC macro without worrying
6347         about unsafe behaviour of groff, i.e., it will work without the
6348         `-U' switch of groff.
6350         * troff/input.cc: Implement it.
6351         * tmac/tmac.pspic: Use it.
6352         * troff/troff.man, grops/grops.man, NEWS: Document it.
6353         * psbb/*, Makefile.in: Remove it since it is no longer needed.
6355         This is bloody C code simply adapted from psbb.c!  Any improvements
6356         welcome.
6358 2000-01-29  Werner LEMBERG  <wl@gnu.org>
6360         * man/groff_font.man: Minor clarifications.
6362         * NEWS: Updated.
6364 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6366         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6368 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
6370         * man/groff_font.man: Brought up to date regarding tcommand
6371         extensions.
6372         * libgroff/font.cc: Handle everything after `--' as a comment
6373         in the font files.
6374         * devps/*: Added comment delimiter inside devps font files.
6376 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6378         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6379         \fC...\fP (which now works as expected).
6381         * troff/troff.man: Fix typo.
6383 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6385         Completed the pass_filenames implementation in troff.
6387         * libdriver/input.cc: Will read the new `F' tcommand.
6388         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6389         * troff/input.cc: Use it.
6391 2000-01-26  Werner LEMBERG  <wl@gnu.org>
6393         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
6394         font will now be updated even if an invalid font is selected.
6396 2000-01-24  Werner LEMBERG  <wl@gnu.org>
6398         * doc/homepage.ms: Updated for new tmac.arkup.
6400         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6402         * tmac/tmac.arkup: Cleanup.
6404         Added `\&' to .HTML macro to `leave vertical mode', so to say.
6406         Removed obsolete .LINK macro completely.
6408         The macros .URL, .FTP, and .MAILTO now accept a third argument which
6409         will be immediately appended to the second argument (to be used with
6410         punctuation, for example).
6412         Disabled .CDFTP macro temporarily for security reasons.
6414         * tmac/groff_markup.man: Complete revision for latest changes in
6415         tmac.arkup -- note that it does not yet format correctly with
6416         grohtml :-(
6418 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
6420         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6421         * devutf8/R.proto: Add mappings for wp, lh, rh.
6422         * devutf8/NOTES: Updated.
6424 2000-01-23  Werner LEMBERG  <wl@gnu.org>
6426         * doc/groff.texinfo: Updated version/copyright info.
6428 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
6430         Added support for two new directives in device descriptions:
6431         `pass_filenames' (to pass the input file name to the output device)
6432         and `use_charnames_in_special' (to support e.g. accented characters
6433         in the `X' request).
6435         * include/font.h, troff/charinfo.h: Declare it.
6437         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6439         * devhtml/DESC: Use it.
6441         * troff/input.cc: New function encoded_char.
6443         * troff/token.h: Add test for `specialness'.
6445 2000-01-21  Werner LEMBERG  <wl@gnu.org>
6447         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6448         mistake from the list of files to be installed.
6450 2000-01-18  Werner LEMBERG  <wl@gnu.org>
6452         * README: Added info how to apply patches.
6454 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
6456         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
6458 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6460         * troff/input.cc: Add support for troffrc-end.
6462         * tbl/main.cc: Altered to issue table-start and table-end special
6463         characters if using the html device.
6465         * devhtml/*: Modified font files to incorporate html encoding of
6466         characters.
6468         * tmac/groff_markup.man: New file documenting tmac.arkup.
6470         * tmac/troffrc-end: New file.  This is invoked after all user
6471         specified macros.  Currently used by the html device to include
6472         tmac.html.  Thus no need for users to specify -mhtml anymore.
6474         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6475         (MAN7): Add groff_markup.man.
6477         * tmac/tmac.an, tmac/tmac.html: Small html updates.
6479         * tmac/troffrc: tmac.arkup will now be called for the html device.
6481         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6482         extra device specific information about fonts.
6484         * doc/homepage.ms: New file.  It is an example how an HTML home page
6485         could look like with grohtml.
6487         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
6489 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
6491         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
6492         of Im, Re.
6494         * devutf8/NOTES: Updated.
6496 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
6498         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6499         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6500         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6501         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6502         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6503         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6504         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6505         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6506         warnings.
6508         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6510 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
6512         grolj4: Paper size will be searched case-insensitively.
6514         * include/lib.h: Add check for strcasecmp().
6515         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6516         * configure.in: Check for strcasecmp().
6518 2000-01-11  Werner LEMBERG  <wl@gnu.org>
6520         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6521         `REVISION'.
6523 2000-01-10  Werner LEMBERG  <wl@gnu.org>
6525         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6526         revision scheme.
6528         Add a new read-only register, `.Y', which contains the groff
6529         revision.
6531         * troff/input.cc (init_input_requests): Define it.
6532         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6533         * doc/groff.texinfo, troff/troff.man: Document it.
6535         * libgroff/Makefile.sub (version.cc): Add definition of
6536         `Version_string[]', consisting of `<major>.<minor>.<revision>'
6537         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6538         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6539         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6540         troff/input.cc, pfbtops/pfbtops.c: Use it.
6542 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
6544         Add a revision scheme to the groff package.
6546         * REVISION: New file.
6547         * libgroff/Makefile.sub (version.cc): Use it to define
6548         `revision_string[]'.
6549         * grops/psrm.cc: Use revision_string (converted to an unsigned
6550         integer) in constructor of resource_manager.
6552 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
6554         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6555         files.
6556         * Makefile.in (DEVDIRS): Add devutf8.
6557         * grotty/tty.cc: Include device.h.
6558         (glyph): Change type of `code' to `unsigned int'.
6559         (tty_printer): New field is_utf8.  Constructor takes device argument.
6560         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6561         (tty_printer::add_char): Change type of first arg to `unsigned int'.
6562         (tty_printer::put_char): New function.
6563         (tty_printer::end_page): Use put_char() instead of ::putchar().
6564         (make_printer): Pass device to tty_printer constructor.
6565         * nroff.sh: Determine default device by calling 'locale'.  As a
6566         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6567         Recognize UTF-8 locales.
6568         * tmac/eqnrc: Recognize utf8 like latin1.
6569         * tmac/troffrc: Device utf8 needs tmac.tty.
6571 2000-01-07  Werner LEMBERG  <wl@gnu.org>
6573         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6575 2000-01-07  Paul Eggert  <eggert@twinsun.com>
6577         Add a new predefined writeable number register, `year',
6578         which contains the current year.
6580         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6581         * tmac/tmac.s: Use it.
6582         * troff/input.cc (init_registers): Initialize it.
6584 2000-01-06  Werner LEMBERG  <wl@gnu.org>
6586         * PROBLEMS: Fixed typo.
6588 2000-01-04  Paul Eggert  <eggert@twinsun.com>
6590         * PROBLEMS: Add Y2k advice for the yr number register.
6592 2000-01-03  Paul Eggert  <eggert@twinsun.com>
6594         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6596 2000-01-02  Werner LEMBERG  <wl@gnu.org>
6598         * tmac/tmac.arkup: Slight modification of macros to provide better
6599         appearance for non-HTML formats.
6601 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
6603         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6604         does not automatically translate to malloc(n) on all OSes
6605         (e.g., SunOS) so do it explicitly.  Also, check the returned
6606         value.
6608 2000-01-01  Werner LEMBERG  <wl@gnu.org>
6610         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
6612         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6613         expects this variable
6615 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
6617         * doc/Makefile: Added instructions to create HTML and text
6618         versions of some files.
6620 1999-12-31  Werner LEMBERG  <wl@gnu.org>
6622         * Updated INSTALL.gen.
6624         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6625         better resp. correctly with non-HTML devices.
6627 Version 1.15 released
6628 =====================
6630 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6632         * NEWS, VERSION: Changed to 1.15
6634 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6636         * nroff/nroff.man: -S is safer, not safe.
6638         * groff/groff.cc (main): Use `safer', not `safe', in variable
6639         names.  This does not change the behavior.
6641         * troff/input.cc (main): Likewise.
6643         * nroff/nroff.sh: Likewise.
6645         * troff/input.cc (prepend_string): New function.
6646         (main): Prepend -msafer, so that we check macro libraries for
6647         safety.
6649         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6651 Version 1.14 released
6652 =====================
6654 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6656         * NEWS, VERSION: Changed to 1.14.
6658 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6660         * refer/refer.cc: Fixing the last fix.
6662 Version 1.13 released
6663 =====================
6665 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6667         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6668         number disappear.
6670         * NEWS: Updated.
6672         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6674         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6675         document conventions, the version number must be a real.
6677 Version 1.12.1 released
6678 =======================
6680 1999-12-22  Werner LEMBERG  <wl@gnu.org>
6682         * VERSION: Changed to 1.12.1.
6684 1999-12-22  Alan Rooks  <arooks@istar.ca>
6686         * refer/refer.cc (do_file): Slight modification to satisfy the
6687         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6688         UnixWare 7.1.
6690 1999-12-20  Werner LEMBERG  <wl@gnu.org>
6692         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6693         notices.
6695         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6696         list of unsafe requests.
6698         * pic/pic.man: Fixed a typo.
6700         * man/groff_out.man: Fixed a typo.
6702 1999-12-18  Werner LEMBERG  <wl@gnu.org>
6704         * Makefile.in: Doc fixes.
6706 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
6708         * groff/groff.cc: Missing `U' option added to getopt().
6710         * troff/troff.man: Missing `U' option added to synopsis.
6712 Version 1.12 released
6713 =====================
6715 1999-12-14  Werner LEMBERG  <wl@gnu.org>
6717         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6718         to the synopsis.
6720         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6721         with the more appropriate terms `safer' and `unsafe'.
6723         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6724         sys_nerr and sys_errlist[].
6726         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6728         * pic/pic.y, pic/pic.cc: Added check for fmod().
6730 1999-12-13  Werner LEMBERG  <wl@gnu.org>
6732         * VERSION: Changed to 1.12.
6734         Here some patches from various sources; most of them taken from
6735         the Debian distribution.
6737         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6738         tmac/Makefile.sub: New files copied directly from the NetBSD
6739         distribution.  Probably, some additional adaptation later on is
6740         necessary...
6742         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6743         of unsafe requests.
6745         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6746         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6747         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
6748         (`-S') is now the default.
6750         * README, NEWS: Updated.
6752 1999-12-09  Werner LEMBERG  <wl@gnu.org>
6754         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6756         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6758 1999-12-06  Werner LEMBERG  <wl@gnu.org>
6760         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6761         grief than relief today.  Additionally, it is against the GNU
6762         coding standards.
6764         * configure: Recreated.
6766 1999-12-05  Werner LEMBERG  <wl@gnu.org>
6768         * configure.in: Added GROFF_LIBM.
6770         * configure: Recreated.
6772         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6773         necessary.
6775         * Makefile.in: Added definition of $(LIBM).
6777         * Makefile.comm (LIBM): Removed.
6779         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6781 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
6783         * doc/Makefile: Added rule for generation pic.html.
6785         (clean): Files produced by grohtml will be removed also.
6787         * doc/pic.ms: Small fix.
6789         * tmac/tmac.html: Fixed suppression of headers.
6791 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
6793         * tmac/tmac.html: Fixing horizontal arrows.
6795         Turning off hyphenation.
6797         * tmac/tmac.an: Improved support for grohtml; better indentation,
6798         no footers/headers.
6800 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
6802         * tmac/tmac.arkup: Added CDFTP macro
6804         * tmac/tmac.html: All headers are turned off for ms, me, and mm
6805         macros.
6807         * tmac/troffrc: Some additions for HTML stuff.
6809 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
6811         * tmac/tmac.html: Small changes.
6813 1999-09-26  Werner LEMBERG  <wl@gnu.org>
6815         * doc/groff.texinfo: Minor fixes.
6817 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
6819         * devhtml/TR: Changed spacewidth to 3.
6821         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6823         * tmac/tmac.html: Moved markup macros to tmap.arkup.
6825         * tmac/tmac.arkup: New file.
6827         * grohtml/ChangeLog: New file.
6829 1999-09-16  Werner LEMBERG  <wl@gnu.org>
6831         * doc/groff.texinfo (Common Features): Added Copying chapter.
6832         Changed format to @smallbook.
6834 1999-09-15  Werner LEMBERG  <wl@gnu.org>
6836         * NEWS: Added info about groff.texinfo.
6838         * doc/groff.texinfo: Will now compile (using texi2dvi) without
6839         warning messages.
6841 1999-09-14  Werner LEMBERG  <wl@gnu.org>
6843         * groff/groff.man: More updates.
6845 1999-09-13  Werner LEMBERG  <wl@gnu.org>
6847         * doc/groff.texinfo: New file.  This manual is still very
6848         rudimentary.  It has been originally contributed by Trent
6849         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6850         additions by me.
6852         * INSTALL: Added information about the `doc' subdir
6854         * troff/troff.man: Minor fixes.
6856         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6857         reordered options.
6859         * troff/input.cc (usage): Added missing `-ffam' to usage message.
6861         * Makefile.in (dist): groff-$(version).tar.gz must be removed
6862         also, otherwise it is included itself in another call of `make
6863         dist'.
6865         * groff/groff.cc (synopsis): Removed superfluous space.
6867         * PROJECTS, PROBLEMS, NEWS: Updated.
6869         * VERSION: Updated to 1.12beta.
6871         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
6873         * README: Updated: Included documentation about CVS repository,
6874         mailing lists, and daily snapshots.
6876         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6878 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6880         * tmac/tmac.an: If the tag didn't fit into the space that the
6881         macro `TP' specifies, the rest of the tag went into the space for
6882         the next line.
6884 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
6886         * grolj4/lj4.cc: Added duplex printing (option `-d').
6888         * grolj4/grolj4.man: Document duplex printing.
6890 1999-09-12  Werner LEMBERG  <wl@gnu.org>
6892         * doc/Makefile (pic.ps): Fixed rule which caused problems with
6893         non-GNUish sed programs.
6895         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6896         definition.
6898         * configure.in (LIBS): Added `-lc'
6900         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6902         * pic/tex.cc (solid_arc): Casting M_PI to double.
6904         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6906         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6907         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6908         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6910         * groff/groff_man.man: New file.  This manual page was originally
6911         written for the Debian GNU/Linux system by Susan G. Kleinmann
6912         <sgk@debian.org>.
6914         * eqn/list.cc (list_box::compute_metrics,
6915         list_box::compute_sublist_width): Removed variable declaration to
6916         avoid shadowing warnings.
6918         * grops/psrm.cc (resource_manager::process_file): Ditto.
6920         * tfmtodit/tfmtodit.cc (main): Ditto.
6922         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6923         to avoid shadowing warnings.
6925         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6926         shadowing loop variable.
6928         * groff/groff.man, troff/troff.man: Added doc about grohtml.
6930 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
6932         New grohtml frontend to convert groff input to html.
6934         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6936         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6938         * tmac/eqnrc: Added html device.
6940         * tmac/tmac.html: New file.
6942         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6943         (troff_output::start_picture, troff_output::finish_picture),
6944         tbl/main.cc (process_input_file):
6945         Surrounded output with `graphics_start' and `graphics_end' so that
6946         the html driver can identify non-text portions.
6948         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6949         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6950         grotty/tty.ps (tty_printer::set_char): Additional parameter
6951         `name'.
6953         * include/printer.h: Class printer: New function
6954         set_char_and_width; new variables (is_char_named, is_named_set,
6955         named_command, named_char_s, named_char_n) to hold information
6956         about named characters -- needed by the html driver.
6958         * libdriver/printer.cc (printer::set_ascii_char,
6959         printer::set_special_char): Use set_char_and_width.
6961         * devhtml/*: New device files for html driver.
6963         * grohtml/*: New driver grohtml.
6965 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
6967         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6968         default strings.
6970 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
6972         * libgroff/string.cc (search): Small fix to test against NULL
6973         pointer.
6975 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
6977         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6978         \b'abc') were stacked in reverse order when processed in a
6979         diversion.
6981         * troff/node.h: Added `*last' to struct `node' to make the above
6982         fix work.
6984         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6985         The default scale for the 'f' and 't' graphics functions were 'm'
6986         rather than 'u' (i.e., no scaling).
6988 1999-09-11  Peter Miller  <peterm@jna.com.au>
6990         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6991         do_file), soelim/soelim.man: Added `-I file' option to soelim,
6992         defining include paths.
6994         * soelim/soelim.cc (include_path_append): New function.
6996 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
6998         * tbl/main.cc (process_options): Unix (at least Documenter's
6999         Workbench) tbl allows arbitrary non-alpha characters between
7000         options.
7002 1999-09-11  Paul Eggert  <eggert@twinsun.com>
7004         Y2k fixes.  Don't assume that the current year precedes 2000.
7006         * doc/meref.me: Add \n(y2, \n(y4.
7008         * tmac/doc-common (Yr): New number register.
7009         (Dd): Don't assume current year precedes 2000.
7011         * tmac/tmac.e (td): Likewise.
7012         (y2, y4): New number registers.
7014         * pic/pic.man: Update reference for pic paper to May, 1991
7015         version.
7017 1999-09-11  Werner LEMBERG  <wl@gnu.org>
7019         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7020         Removed quotation marks which prevented correct expansion of
7021         $(tmac_wrap).
7023         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
7025 1999-09-10  Werner LEMBERG  <wl@gnu.org>
7027         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
7028         `config.cache'.
7030         * Removed configure.old.
7032 1999-08-31  Werner LEMBERG  <wl@gnu.org>
7034         * VERSION: Updated to 1.11.1
7036 1999-05-27  Werner LEMBERG  <wl@gnu.org>
7038         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
7040         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
7041         added quotations around $(tmac_wrap) to avoid syntax error if
7042         variable is empty.
7044         * configure: Newly generated using autoconf 2.13.
7046         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
7048 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
7050         * README, PROJECTS, NEWS, INSTALL, VERSION, 
7051         doc/Makefile. doc/pic.ms, groff/groff.man:
7052         Prepare for 1.11 release.  No code changes.
7053         Documentation for pic added (doc/pic.ms).
7055 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
7057         * Version 1.10 released.
7059 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
7061         * afmtodit/afmtodit.pl: Avoid comment on first line.
7063 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
7065         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
7066         * configure.in: Call it.
7068         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
7069         (distfiles): Doesn't depend on config.log or config.cache.
7071 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
7073         * grog/grog.sh: Use print "" rather than print in END rule.
7075 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
7077         * tbl/main.cc (process_data): Don't give error for excess data
7078         entries that are comments.
7080 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
7082         * tbl/main.cc (process_data): Fix case where new for-scope rules
7083         silently change meaning of code.
7085 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
7087         * troff/env.cc (hyphenate): Loop over all consecutive sequences
7088         of non-zero hyphenation codes.
7090 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
7092         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
7094 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
7096         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
7098 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
7100         * tmac/tmac.andoc: Make it work in compatibility mode.
7102         * refer/token.h (token_info::is_range_sep): New function.
7103         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
7104         * refer/ref.cc (reference::output): More sophisticated check for
7105         multiple pages.
7107         * devps/prologue.ps (MANUAL): New procedure.
7108         * grops/ps.cc (main): New -m option.
7109         (usage): Include -m.
7110         (ps_printer::~ps_printer): Implement -m.
7112         * aclocal.m4 (GROFF_G): New macro.
7113         * configure.in: Call it.
7114         * Makefile.in (g): Provided by configure.
7116         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
7118         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
7119         translations.
7121         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
7122         (tmac_m, tmac_s): Deleted.
7123         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
7124         tmac_s_prefix): New variables.
7125         (MDEFINES): Change accordingly.
7126         * Makefile.comm (.man.n): Use new TMAC_* variables.
7127         * configure.in (GROFF_TMAC): Call.
7128         * aclocal.m4 (GROFF_TMAC): Define.
7129         * tmac/Makefile.sub (stamp_wrap): New target.
7130         (install_data, uninstall_sub): Handle macro wrapping.
7132 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
7134         * tbl/main.cc (main): Ignore -T option.
7136 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7138         * devlj4/generate/special.map: Add definition of \(nb.
7140         * tmac/tmac.dvi: Add definition of \(nb.
7142         * troff/dictionary.c (dictionary::dictionary): association::v gets
7143         initialized by association::association.
7145         * tmac/Makefile.sub: Avoid using temporary files when installing.
7147         * troff/env.cc (environment::set_font): Make bad font number a
7148         warning.
7150         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7152         * Makefile.in (datadir): Use share rather than lib.
7154         * groff/groff.cc (basename): Rename to xbasename.
7156 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7158         * Makefile (CCLIBS): Don't use.
7159         * Makefile.ccpg: Likewise.
7161         * acgroff.m4: Rename to...
7162         * aclocal.m4: Modify extensively for autoconf 2.
7163         * configure.in: Likewise.
7164         * Makefile.in: Likewise.
7166         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7167         defined.
7168         (xstrsignal): Check for definition of NSIG. Conditionalize
7169         on SYS_SIGLIST_DECLARED.  Make return type const.
7171 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7173         * troff/input.cc (interpolate_macro): Rephrase missing space
7174         warning.
7176 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7178         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7179         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7180         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7181         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7182         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7183         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7184         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7185         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7186         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7187         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7188         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7189         Fix 'for' scoping.
7191 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7193         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7194         string_iterator.
7195         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7196         file.
7197         (macro_iterator::macro_iterator): Add additional argument.
7199 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7201         * troff/div.cc (vertical_size::vertical_size): In place of integer
7202         specifying line spacing use cunits specifying post vertical
7203         space.
7204         (macro_diversion::output, top_level_diversion::output): Likewise.
7205         * troff/div.h: Change declarations accordingly.
7206         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7207         field.
7208         (pending_output_line::pending_output_line,
7209         pending_output_line::output, environment::output,
7210         environment::output_line, environment::output_title,
7211         environment::hyphenate_line):  In place of
7212         integer specifying line spacing use cunits specifying post vertical
7213         space.
7214         (environment::environment): Add post_vertical_spacing and
7215         prev_post_vertical_spacing arguments.
7216         (environment::get_post_vertical_spacing): New function.
7217         (environment::total_post_vertical_spacing): New function.
7218         (environment::post_vertical_spacing): New function.
7219         (init_env_requests): Initialize pvs request and .pvs register.
7220         * troff/env.h: Change declarations.
7222 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7224         * tmac/tmac.pspic: Immediately remove the temporary file.
7226 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7228         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7229         height is specified.
7231 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7233         * tbl/table.c (struct vertical rule, class table_entry): Use int
7234         not short for start_row and end_row.
7236 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7238         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7239         functions.
7240         (diverted_space_node::reread, process_input_stack): Call
7241         trapping_blank_line() rather than blank_line().
7242         (init_input_requests): Bind "blm" to blank_line_macro().
7244         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7246 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7248         * troff/env.cc (environment::possibly_break_line): Require that
7249         width total excluding width of final space node be greater than
7250         the target text length.
7252 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7254         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7256 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7258         * troff/node.cc (charinfo_node): New class.
7259         (glyph_node, composite_node): Derive from charinfo_node.  Change
7260         member functions accordingly.
7262 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
7264         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7266 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
7268         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7270         * devps/generate/textmap (notsubset): Add.
7272         * tmac/tmac.a4: New file.
7274 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
7276         * pic/main.cc (had_parse_error): New variable.
7277         (do_picture, do_whole_file): Set had_parse_error if yyparse()
7278         returns non-zero.
7279         (main): Return 1 if had_parse_error is true.
7281 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
7283         * grolj4/lj4.cc (main): Avoid use of strtoul.
7285 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
7287         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7288         iso_8859_1 or $LESSCHARSET is latin1.
7290 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
7292         * hpftodit: New directory.
7293         * Makefile.in (CCPROGDIRS): Add hpftodit.
7294         * devlj4/generate: New directory.
7296 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
7298         * configure.in: Don't use AC_VFORK.
7299         * groff/pipeline.c (run_pipeline): Use fork() always.
7301 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
7303         * grops/ps.cc (main): Use %1 not %s in error message for -w.
7305         * Makefile.in (CCPROGDIRS): Add grolj4.
7306         (DEVDIRS): Add devlj4.
7307         * grolj4, devlj4: New directories.
7308         * tmac/troffrc: Handle lj4.
7309         * tmac/tmac.lj4: New file.
7311 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
7313         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7315 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
7317         * troff/input.cc (do_if_request): At end of second string, switch
7318         environments before getting next token.
7320 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
7322         * devps/psstrip.sed: Split rule that strips whitespace on either
7323         side of delimiters.
7325 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
7327         * troff/node.h (font_family::make_definition): Add return value to
7328         declaration.  * troff/symbol.h (symbol::operator==,
7329         symbol::operator!=): Likewise.
7331 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
7333         * groff/groff.cc (main, help, synopsis): Handle -S.
7334         (possible_command::insert_arg): New function.
7336         * tmac/tmac.safer: New file.
7337         * tmac/msafer.man: New file.
7338         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7340 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
7342         * pic/pic.h, pic/main.cc (safer_flag): New variable.
7343         * pic/pic.y (placeless_element): Avoid unsafe operations if
7344         `safer_flag' is set.
7345         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7347 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
7349         * eqn/lex.cc (get_token): Put call to add_context() in block to
7350         work around Sun C++ 4.0 bug.
7352         * include/stringclass.h (operator +): Use ?: instead of `if' to
7353         work around Sun C++ 4.0 bug.
7355 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
7357         * tbl/main.cc (process_format): Accept - as a synonym for the _
7358         key letter.
7360         * libbib/index.cc (minus_one): Don't declare as const.
7362 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
7364         * troff/input.cc (get_char_for_escape_name): Push back a newline.
7366 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
7368         * troff/input.cc (write_macro_request): New function.
7369         (init_input_requests): Bind write_macro_request to writem.
7371 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
7373         * tmac/tmac.s (@EN): Turn filling back on even if there was no
7374         equation.
7376         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7378         * tmac/tmac.s (@TS): Renamed from TS.
7379         (TS): Call LP then TS again.
7380         (cov*ab-init): Alias @TS to TS.
7382         * tmac/tmac.s: Allow QP or RS to initialize.
7384         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
7385         Move initializations of PS and LL here.
7386         (par@init): Don't initialize HY.  Avoid changing environment 0.
7387         (par*env-init): Don't all par@reset.
7389 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
7391         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7393 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
7395         * Makefile.in (MDEFINES): Add LDFLAGS.
7396         (LDFLAGS): Add definition line.
7398 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
7400         * troff/input.cc (get_optional_char): Split off error check into...
7401         (check_missing_character): New function.
7402         * troff/token.h: Declare it.
7403         * troff/env.cc (margin_character): Don't call get_optional_char.
7404         Only call tok.next() after making the node.
7406         * include/lib.h (getopt): Make 2nd argument char *const *.
7408 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
7410         * nroff/conftest.sh: Deleted.
7412 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
7414         * pic/make-dos-dist: Deleted.
7416 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
7418         * devps/psstrip.sed: Strip comments before stripping trailing
7419         white space.
7421 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
7423         * Version 1.09 released.
7425 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
7427         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7429 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
7431         * libgroff/font.cc (font::load_desc): Fix typo in error message.
7433 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
7435         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7436         about returning without a value.
7438         * troff/charinfo.h (charinfo::get_special_translation): Cast
7439         TRANSLATE_NONE to int.
7441         * refer/token.cc (lookup_token, store_token): Remove bogus loop
7442         test.  Fix test so that it works with n unsigned.
7444         * pic/pic.y (defaults_table): Fully bracket initializer.
7445         * pic/lex.cc (lookup_keyword): Likewise.
7446         * eqn/lex.cc (token_table, def_table): Likewise.
7447         * eqn/box.cc (param_table): Likewise.
7448         * troff/input.cc (warning_table): Likewise.
7449         * libgroff/font.cc (table): Likewise.
7450         * grops/ps.cc (ps_printer::special): Likewise.
7451         * grops/psrm.cc (resource_manager::process_file): Likewise.
7452         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7453         * refer/command.cc (command_table): Likewise.
7454         * addftinfo/addftinfo.cc (param_table): Likewise.
7456         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7457         about temp's being unused.
7458         (unused): New function.
7460         * groff/pipeline.cc: Declare c_fatal.
7462         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7463         uchar.
7465         * libbib/index.cc (index_search_item::load): Prevent compiler
7466         warnings about fd_closer's being unused.
7467         (unused): New function.
7469 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
7471         * troff/input.cc (copy_mode_error): Make `prefix' static.
7472         Fix typo.
7474         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7475         defined.
7476         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7477         HAVE_CC_OSFCN_H and modify accordingly.
7479         * troff/input.cc (init_charset_table): radicalex overlaps
7480         horizontally.
7482         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7483         udodo!hans@relay.NL.net).
7484         * groff/configure.in: Call it.
7486         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7487         * groff/configure.in: Call it.
7488         * include/lib.h: Conditionalize declaration of pclose.
7490         * troff/div.cc (last_page_number): New global variable.
7491         (top_level_diversion::begin_page): Exit if we just printed the
7492         last page.
7493         * troff/div.h (last_page_number): Declare it.
7494         * troff/input.cc (parse_output_page_list): Set last_page_number.
7496         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7497         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7498         tmac/tmac.X: Likewise.
7499         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7500         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7502 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
7504         * tmac/doc-ditroff (hK): Remove groff specific code which
7505         prevented page-breaks between separate manual entries.  If this is
7506         the first page, don't set the page number to 1.
7508         * acgroff.m4 (GROFF_POSIX): New macro.
7509         * configure.in: Use it.
7511         * troff/node.cc (class real_output_file,
7512         real_output_file::real_output_file,
7513         real_output_file::~real_output_file): Conditionalize use of
7514         popen/pclose on POPEN_MISSING.
7515         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7516         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7517         (pipe_source): Similarily.
7519         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7521         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7522         presence of declarations by trying to compile example with
7523         conflicting declarations.  (gcc only gives a warning for missing
7524         declarations.)
7526 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
7528         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7529         (from Ulrich Lauther).
7531 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
7533         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7535 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
7537         * indxbib/indxbib.cc (write_hash_table): Add code for case where
7538         pointers and ints have different sizes.
7540 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
7542         * tmac/tmac.s (par*env-init): Call par@reset.
7544 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
7546         * tmac/tmac.s (@IP): Switch to a new environment when diverting
7547         tag.
7548         (par*push-tag-env, par*pop-tag-env): New macros.
7550 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
7552         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7553         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
7555         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7556         comment.  Include <time.h>.
7558 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
7560         * grops/ps.cc (is_small_h, is_small_v): Deleted.
7561         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7562         lines.
7564 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
7566         * troff/input.cc (read_request): Only print a prompt if reading
7567         from the terminal.  Also clearerr on EOF if reading from the
7568         terminal.  Declare isatty.
7570 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
7572         * refer/label.y: Rename map_t to map_func and extractor_t to
7573         extractor_func.
7575 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
7577         * include/assert.h: Don't use volatile.
7578         * libgroff/assert.cc: Likewise.
7580 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
7582         * troff/input.cc (abort_request): Look at character in tok before
7583         calling get_copy().
7585 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
7587         * troff/troff.h (NO_RETURN): Deleted.
7588         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
7589         * troff/input.cc (exit_troff): Likewise
7591         * Makefile.in: Remove `Making ...' messages since GNU make now
7592         gives these. 
7594         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7596 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
7598         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7599         to constant 1 inch.
7601 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
7603         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7605 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
7607         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7608         MARK_REG if there was no left delimiter.
7610 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
7612         * pic/troff.cc (troff_output::text): Set line thickness to
7613         relative before outputting text.
7615         * tmac/tmac.e (@k): Don't zero ?T.
7616         ((z): Likewise.
7618 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
7620         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7622 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
7624         * troff/input.cc (decode_args): Warn about unquoted tabs (from
7625         Paul Eggert).
7627 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7629         * troff/input.cc (ignoring): New variable.
7630         (ignore): Set ignoring during call to do_define_macro.
7631         (do_define_macro): Clear ignoring before interpolating terminating
7632         macro.
7633         (copy_mode_error): New function.
7634         (get_char_for_escape_name, read_long_escape_name,
7635         interpolate_arg): Use copy_mode_error.
7636         (warning_table): Add WARN_IG.
7637         * troff/troff.h (WARN_IG): Declare.
7638         (WARN_TOTAL): Change accordingly.
7640         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7641         * groff/groff.cc (strsignal): Delete declaration.
7643 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7645         * troff/div.cc (page_offset): Use 'm' as default scaling.
7647 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7649         * nroff/nroff.sh: Ignore -u.
7651 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7653         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7655 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7657         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7658         drawing box.
7659         (B2): With -Tascii, leave additional vertical space before
7660         and after. Ensure that the left and right indent is restored to
7661         what it was even if the point size changes.  Don't call
7662         par@finish. Change the indent, line length and title length
7663         directly.  With -Tascii, make the width of the box 1n less.
7664         (B1): Remember 1n at the current point size.  Don't call
7665         par@reset.  Change the indent, line length and title length
7666         directly.  Ensure that the temporary indent is preserved.
7667         (par*box-mark-top): Turn off no spacing mode.
7669 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7671         * Makefile.in (dist): Use .gz suffix.
7673 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
7675         * troff/input.cc (main): Add return 0.
7676         * pic/main.cc (main): Use return instead of exit.
7677         * tbl/main.cc (main): Likewise.
7678         * eqn/main.cc (main): Likewise.
7679         * grops/ps.cc (main): Likewise.
7680         * grotty/tty.cc (main): Likewise.
7681         * groff/groff.cc (main): Likewise.
7682         * grodvi/dvi.cc (main): Likewise.
7683         * refer/refer.cc (main): Likewise.
7684         * indxbib/indxbib.cc (main): Likewise.
7685         * lkbib/lkbib.cc (main): Likewise.
7686         * soelim/soelim.cc (main): Likewise.
7687         * addftinfo/addftinfo.cc (main): Likewise.
7688         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7689         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7691         * troff/token.h (process_input_stack): Don't declare as static.
7692         * troff/input.cc: Likewise.
7694         * troff/node.c (invalidate_fontno): Make it a static member of
7695         class font_family.  Change callers.
7696         * troff/node.c: Change declaration.
7698         * tbl/main.cc (struct input_entry_format): Add explicit public
7699         specifier.
7700         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7701         struct double_hline_stuff): Likewise.
7702         * tbl/table.h (struct entry_format): Likewise.
7703         * pic/object.h (struct saved_state): Likewise.
7705         * include/stringclass.h: Add forward declarations of friend
7706         functions that are later declared as inline.  Don't include inline
7707         specifier in friend declaration.
7709         * libgroff/lib.h: Declare popen and pclose.
7710         * acgroff.m4 (GROFF_POPEN): New macro.
7711         * configure.in: Call it.
7713         * include/lib.h (PI): New constant. Undef first if necessary.
7714         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7715         * grops/ps.cc (degrees, radians): Likewise.
7716         * libgroff/font.cc (font::get_skew): Likewise.
7718         * grops/ps.cc (is_ascii): New function.
7719         (ps_output::put_string): Use is_ascii.  Use csprint rather than
7720         isprint.
7721         (ps_printer::define_encoding): Use csspace.
7722         * libgroff/strtol.c (ISASCII): New macro.
7723         (strtol): Cast arguments to is*() and tolower() to unsigned char.
7724         Use ISASCII rather than isascii.
7725         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7726         * libgroff/cset.cc: Likewise.
7727         * libdriver/input.cc: Include cset.h.
7728         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7729         than isdigit().
7731         * refer/refer.cc (main): Use %ld rather than %d for longs.
7733         * libbib/index.cc (index_search_item_iterator::get_tag): Use
7734         S_ISREG macro.
7736         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7738 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
7740         * troff/input.cc (hyphenation_code): Skip white space between
7741         char/code pairs.
7743 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
7745         * tbl/table.h (table::entry_list_tailp): New member.
7746         (table::table): Initialize it.
7747         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7748         behaviour.
7750 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
7752         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7753         with negative horizontal positions. Remove casts of glyph::hpos to
7754         int.
7755         (USHRT_MAX): Delete definition.
7756         (SHRT_MAX, SHRT_MIN): New definitions.
7757         (glyph::hpos): Change type to short.
7758         (tty_printer::end_page): Output multiple backspaces if necessary.
7759          Remove casts of glyph::hpos to int.
7760         
7761 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
7763         * tmac/tmac.s (@RT): New definition.
7765 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
7767         * refer/refer.cc (do_file): Make sure current_filename is set when
7768         filename is "-".
7770         * pic/common.cc (common_output::dot_line): Handle zero length
7771         lines.
7773 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
7775         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7776         (par@init): Initialize \n[HY].
7778 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
7780         * troff/dictionary.cc (dictionary::remove): Continue when
7781         r < j < i.
7783 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
7785         * Makefile.com (.y.cc): Avoid ending up with two versions of
7786         $(YTABH).
7788 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
7790         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7791         (\(,C): Likewise.  Also fix typo.
7793 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
7795         * lib.h: Delete extraneous semi-colon.
7797         * Add pso request: `so' from a pipe.
7798         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7799         (file_iterator::close): New function.
7800         (file_iterator::~file_iterator, file_iterator::next_file): Use
7801         file_iterator::close.
7802         (file_iterator::backtrace): Say `process' rather than `file' when
7803         the stream is popened.
7804         (pipe_source): New function.
7805         (init_input_requests): Bind ".pso" to pipe_source.
7807 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
7809         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7811         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
7812         digits in lower case.
7814 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
7816         * Version 1.08 released.
7818         * Makefile.in (dist): Insert || true after ln -s commands that
7819         might fail.
7821         * mm: Update to mm 1.16.
7823         * acgroff.m4 (GROFF_CSH_HACK): New macro.
7824         * configure.in: Call GROFF_CSH_HACK.  Substitute for
7825         SH_SCRIPT_SED_CMD.
7826         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
7827         MDEFINES.
7828         * nroff/Makefile.sub (nroff): New target.
7829         (install_data): Install nroff.
7830         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7831         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7833 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
7835         * eqn/Makefile.sub (neqn): Add chmod +x.
7837         * grog/Makefile.sub (grog): Remove spurious semi-colon.
7839 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
7841         * troff/input.cc (string_iterator::string_iterator()): Initialize
7842         lineno and count.
7844 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
7846         * troff/div.cc (macro_diversion::space,
7847         top_level_diversion::space): Don't set high_water_mark.
7848         (macro_diversion::output, top_level_diversion::output): Don't
7849         include post line space in high water mark.
7851 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
7853         * eqn/eqn.y: Don't define YYDEBUG.
7854         * pic/pic.y: Likewise.
7856 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
7858         * tmac/tmac.e ([3): Add space after comma following editors.
7859         Change double spaces to single spaces.
7860         ([4): Change double spaces to single spaces.
7862         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7863         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7864         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7865         after %!PS-Adobe- (for Newsprint).
7867         * troff/div.cc (top_level_diversion::begin_page): When
7868         before_first_page is 1, set page_number to 1.
7870 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
7872         * eqn/box.cc (box::top_level): Protect equation with \&.
7874 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
7876         * groff/groff.cc (possible_command::set_name): Delete old name.
7878         * groff/groff.cc (possible_command::~possible_command): Use
7879         a_delete.
7881         * troff/node.cc (troff_output_file::begun_page): New member.
7882         (troff_output_file::troff_output_file): Initialize it.
7883         (troff_output_file::really_begin_page): Only output V command if a
7884         page has been begun.
7886         * pic/pic.y (placeless_element): Delete argument to PRINT after
7887         use.
7889 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
7891         * Make wrapman work.
7892         * troff/div.h (class top_level_diversion): Replace
7893         first_page_begun by before_first_page (with opposite sense).
7894         * Change first_page_begun to before_first_page inverting sense.
7895         * troff/div.cc (class nl_reg): New class.
7896         (init_div_requests): Use class nl_reg for \n(nl.
7897         (top_level_diversion::begin_page): Don't call
7898         output_file::begin_page if before_first_page is 2;
7899         reset before_first_page afterwards.  If have_next_page_number is
7900         false, then always increment page_number.
7901         * tmac/tmac.an: Set traps within TH rather than at the top-level.
7902         Restore compatibility mode after loading, and then disable
7903         compatibility mode in TH.
7905 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
7907         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7908         past last line.
7909         * troff/node.h (output_file::trailer): Declare.
7910         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7911         * troff/node.cc (output_file::trailer): New function.
7912         (troff_output_file::~troff_output_file): Move most code into...
7913         (troff_output_file::trailer): New function.
7914         (class troff_output_file): Delete page_length member. Declare
7915         trailer().
7916         (troff_output_file::really_begin_page): Use current page length
7917         for final V command.
7919         * tbl/main.cc (struct options): New decimal_point_char member.
7920         (options::options): Initialize this.
7921         (process_options): Implement decimalpoint option.
7922         (process_data): Pass decimal_point_char option to table::table.
7923         * tbl/table.h (class table): New decimal_point_char member.
7924         (table::table): Add additional argument.
7925         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7926         second argument specifying decimal point character.  Use this
7927         instead of '.'.
7928         (table::table): Initialize decimal_point_char.
7929         (table::add_entry): Change call to find_dot.
7931         * troff/input.cc (get_copy, token::next): Implement \V.
7932         (interpolate_environment_variable): New function.
7934 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
7936         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7937         * pic/pic.y: Likewise.
7939         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7940         Add casts to int.
7941         * refer/ref.cc (reference::insert_field, reference::delete_field):
7942         Likewise.
7943         * troff/number.cc (parse_term): Likewise.
7945         * acgroff.m4 (GROFF_PROG_YACC): New macro.
7946         * configure.in: Use GROFF_PROG_YACC.
7948         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7949         and g++.
7950         * Makefile.in (OPTIMIZE): New define.
7951         (DEBUG): Empty by default.
7952         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7954         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7955         (GROFF_ARRAY_DELETE): Likewise.
7956         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7958         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7960         * devps/psstrip.sed: Use different delimiter on last line (so that
7961         it works with BSD 4.4 sed.)
7963 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
7965         * devps/psstrip.sed: Delete comments.
7967         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7968         optind, opterr, optarg.
7969         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7970         opterr, optarg.
7972 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
7974         * Makefile.in (check): Dummy target.
7976 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
7978         * Version 1.07 released.
7980         * Integrate mm 1.11.
7982         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7983         where start_col was meant.
7985 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
7987         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7989 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
7991         * troff/input.cc (token::next): Make \z\o'...' and similar things
7992         work.
7994         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7995         constants.
7996         (environment): Add margin_character_flags member.
7997         * env.cc (environment::environment(symbol),
7998         environment::environment(const environment *): Initialize
7999         margin_character_flags.
8000         (margin_character): Rewrite.
8001         (environment::output_line): Add a margin character if
8002         margin_character_flags is non-zero.  Turn off the
8003         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
8004         zero, use margin_character_node without copying and then set
8005         margin_character_node to 0.
8007         * devps/DESC.in: Change minimum size to 1000.
8009 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
8011         * troff/symbol.h (symbol::hash): Change return type to unsigned
8012         long.
8013         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
8014         Add casts to int.
8016         * test-groff: Use -r rather than -x.
8018         * grops/psfig.diff: Include in distribution again.
8020 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
8022         * Makefile.in (dist): Use gzip.
8024 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
8026         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
8027         unistd.h as well as in stdlib.h.
8028         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
8029         defined; otherwise include <sys/types.h> and <unistd.h> if
8030         UNISTD_H_DECLARES_GETOPT is defined.
8032         * configure.in: use builtin(include, ... rather than include(...
8033         * configure: Regenerate with autoconf 1.3.
8035         * libdriver/print.cc (printer::adjust_arc_center): Use new
8036         algorithm suggested by Andy Fyfe.
8038         * libdriver/printer.cc (printer::adjust_arc_center): New function.
8039         * include/printer.h: Declare this.
8040         * grops/ps.cc (ps_printer::draw): Use it.
8041         * grodvi/dvi.cc (dvi_printer::draw): Use it.
8043 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
8045         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
8047 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
8049         * eqn/main.cc (main): Handle "eqn -".
8051 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
8053         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
8055         * mm: Integrate version 1.08.
8057         * pic/troff.cc (troff_output::finish_picture): Set
8058         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
8059         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
8060         if it's not defined. Check whether the register is non-zero rather
8061         than whether it's not defined.
8062         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
8064         * indxbib/indxbib.cc: Move all signal handling into...
8065         * indxbib/signal.c: New file.
8066         * configure.in: Call AC_RETSIGTYPE.
8068         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
8069         * configure.in: Call GROFF_STRUCT_EXCEPTION.
8070         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
8072         * troff/input.cc (token::token, token::operator=): Work round SGI
8073         C++ bug.
8074         * pic/object.cc (position::position): Likewise.
8076 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
8078         * pic/pic.h: Move declaration of hypot().
8080 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
8082         * pic/pic.h: Declare hypot().
8084         * pic/pic.h: Define M_PI if necessary.
8086 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
8088         * tmac/tmac.e (re): Add alternative version that doesn't use groff
8089         `.ta T' feature.
8091         * devps/prologue.ps (RE): Handle the possibility that the old font
8092         doesn't have a FontName entry.
8094 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
8096         * tmac/tmac.e (fam): Redefine to set family in environment 2.
8097         (@C): Use @fam not fam.
8099 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
8101         * lookbib/lookbib.cc (main): Change type of start to const char *.
8102         * lkbib/lkbib.cc (main): Likewise.
8104         * eqn/lex.cc (definition::definition): Don't use member
8105         initializer syntax for members of anonymous unions.
8107         * troff/input.cc (input_stack::backtrace): Change type of to const
8108         char *.
8110 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
8112         * include/stringclass.h (class string): Declare inline friend
8113         functions as inline in class declaration.
8114         * troff/hvunits.h (class hunits, class vunits): Likewise.
8115         * include/refid.h (class reference_id): Likewise
8116         * troff/troff.h (points_to_units(units), scale(units, double)):
8117         Delete declarations.
8118         * libdriver/input.cc (get_char): Delete declaration.
8119         * include/lib.h: Change 2nd argument of getopt from const char **
8120         to char **.
8121         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
8122         char **' before assigning to a `const char **'.
8123         * tbl/table.cc: Delete extra declarations of prints().
8125 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
8127         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
8128         char **' before assigning to a `const char **'.
8130         * libgroff/errarg.cc (errarg::errarg): Don't use member
8131         initializer syntax for members of anonymous unions.
8133 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
8135         * mm: Integrate version 1.07.
8137 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8139         * troff/input.c (translate2): Rename to
8140         (translate_no_transparent).
8141         (init_input_requests): Rename tr2 to trnt.
8143 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8145         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8146         (charinfo::set_translation, charinfo::set_special_translation):
8147         Add second argument that specifies value for
8148         transparent_translate.
8149         (charinfo::get_translation, charinfo::get_special_translation):
8150         Add optional second argument that specifies whether translation is
8151         being used for transparent throughput.
8152         * troff/input.cc (charinfo::set_translation,
8153         charinfo::set_special_translation): Handle second argument.
8154         (charinfo::charinfo): Initialize transparent_translate.
8155         (translate): Split main part off into
8156         (do_translate): New function.  Pass argument saying whether
8157         translation applies to transparent throughput.
8158         (translate2): New request.
8159         (init_input_requests): Bind translate2 to `tr2'.
8161 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8163         * tbl/table.h (class table): Add `nokeep' flag.
8164         * tbl/main.cc (process_options): Handle `nokeep' option.
8165         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8166         table::do_bottom): Don't output keep/release macro definitions or
8167         calls when `nokeep' option has been specified.
8169 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8171         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8173 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8175         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8176         block_entry::divert, alphabetic_block_entry::divert): Add extra
8177         argument giving column separation.
8178         (table::compute_widths): Pass column separation to
8179         table_entry::divert().
8180         (block_entry::do_divert): If an entry spans multiple columns and a
8181         minimumum width has been specified for each column, then set the
8182         line length to the sum of the widths (plus possibly the column
8183         separations).
8185         * troff/input.cc (set_escape_char): Don't set the escape_char
8186         until after calling has_arg().
8188 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8190         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8191         case.
8193         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8194         in case where r > nrows - 1.
8196         * tbl/table.cc (BODY_HEIGHT): Deleted.
8197         (LINE_SEP): New definition.
8198         (table::print_single_hline, table::print_double_hline,
8199         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8200         table::do_row, table::do_top): Use LINE_SEP space before a line
8201         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8203         * tbl/table.cc (text_entry::print_contents): New function.
8204         (text_string_name, right_text_string_name): Deleted.
8205         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8206         (simple_text_entry::do_width, numeric_text_entry::do_width,
8207         alphabetic_text_entry::do_width): Don't store the contents of the
8208         entry in a string.
8209         (left_text_entry::simple_print, right_text_entry::simple_print,
8210         center_text_entry::simple_print,
8211         alphabetic_text_entry::simple_print,
8212         numeric_text_entry::simple_print): Print the entry directly
8213         instead of using the stored string.
8215 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8217         * devps/Makefile: Strip PostScript files.
8218         * devps/prologue: Rename to...
8219         * devps/prologue.ps.
8220         * devps/psstrip.sed: New file.
8221         * devps/download: Use .pfa rather than .ps for installed versions
8222         of fonts.
8224 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8226         * troff/env.cc (input_trap): Give a warning if the argument is out
8227         of range.
8229         * troff/env.cc (adjust): Treat negative argument as missing. Round
8230         argument > 5 down to 5.
8232         * troff/env.cc (center, right_justify): Make negative argument zero.
8234         * troff/div.cc (page_offset, vertical_position_traps): Treat
8235         invalid argument as missing.
8236         * troff/env.cc (line_spacing, line_length, title_length, indent,
8237         underline, hyphen_line_max_request, control_char,
8238         no_break_control_char, widow_control_request, adjust, input_trap,
8239         point_size): Likewise.
8240         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8241         constant_space): Likewise.
8242         * troff/input.cc (compatible, shift, warn_request,
8243         set_escape_char): Likewise.
8245         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8246         * tbl/table.cc (table::table): Likewise.
8248         * Makefile.dev (install_dev): depends on $(DEVFILES).
8250 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8252         * devX75, devX75-12, devX100, devX100-12: New directories.
8253         * Makefile.in: Add these to DEVDIRS.
8255         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8256         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8257         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8258         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8259         targets.
8260         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8261         (uninstall): New target.
8262         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8263         uninstall_prog, uninstall_dev): New targets.
8265         * troff/div.cc (return_request): Treat an invalid argument as
8266         missing.
8268 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
8270         * tmac/tmac.e ((f): Set up the environment even when there's a
8271         current diversion.  Transperently throughput a call to @N.
8272         (@N): New macro.
8274 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
8276         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8277         up to vertical resolution.
8279         * tbl/table.cc (table::do_row): Change row number after printing
8280         stuff list.
8282         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8284 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
8286         * Rename CHANGES to NEWS.
8288 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
8290         * libgroff/new.cc (operator new): Avoid calling malloc(0).
8292 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
8294         * man.ultrix: Removed.
8296 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
8298         * Makefile.comm (extraclean): Delete files whose names begin with
8299         `='.
8301         * pic/troff.cc (troff_output::text): Fix typo in implementation of
8302         aligned text.
8304 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
8306         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8307         * troff/div.cc (page_length, need_space, space_request): Treat
8308         invalid optional argument as missing.
8309         * troff/env.cc (number_lines): If the first argument is present
8310         but not a number, turn on line numbering, don't change the next
8311         line number and parse the remaining arguments.
8313         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8315 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
8317         * eqn/box.h: Change declaration accordingly.
8318         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
8319         the specified size was bad but don't give an error.  Check for
8320         overflow.
8321         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8322         * eqn/lex (do_size): Likewise.
8324 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
8326         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8327         compatible headers.
8329 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
8331         * tbl/table.cc (table::init_output): Improve error message when
8332         table won't fit on one page.
8334 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
8336         * pic/troff.cc (troff_output::start_picture): Generate line
8337         containing a horizontal motion equal to the width of the picture.
8339         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8340         using GROFF_COMMAND_PREFIX environment variable.
8342 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
8344         * mdate.sh: Use $NF rather than $(NF).
8346 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
8348         * pic/main.cc (main):  Use %1 not %c in argument to warning.
8350         * eqn/main.cc (main): Output code to check that geqn was given the
8351         correct -T option.
8353 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
8355         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8356         `ln -s ../Makefile .; make; rm -f Makefile'.
8358         * troff/hyphen: Rename to...
8359         * troff/hyphen.us:
8360         * troff/input.cc (main): Delete -H option. Don't call
8361         read_hyphen_file().
8362         * troff/env.cc: Include searchpath.h and macropath.h.
8363         (exception_dictionary): Deleted.
8364         (ht): Deleted.
8365         (read_hyphen_file): Deleted.
8366         (hyphenation_language): New struct.
8367         (class trie, class hyphen_trie): Move declarations up.
8368         (trie_node::~trie_node): Deleted.
8369         (trie::delete_trie_node): New function.
8370         (trie::do_delete): New pure virtual function.
8371         (hyphen_trie::do_delete): New function.
8372         (trie::~trie): New function.
8373         (hyphen_trie::~hyphen_trie): New function.
8374         (trie::clear): No need to chcek that tp is not 0.
8375         (current_language, language_dictionary): New variables.
8376         (hyphen_word): Give an error if no current language.  Use
8377         exceptions dictionary in current language.
8378         (hyphen_trie::read_patterns_file): Find file using macro_path.
8379         Allow comments (starting with %) in patterns file.  Don't make it
8380         a fatal error if the file can't be found.
8381         (hyphenate): Return if no current language.  Get the exceptions
8382         dictionary and the hyphenation patterns from the current language.
8383         (set_hyphenation_language): New variable.
8384         (hyphenation_patterns_file): New function.
8385         (hyphenation_language_reg): New class.
8386         (hyphenation_language_reg::get_string): New function.
8387         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8388         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
8389         register.
8390         * groff/groff.cc (main, help, synopsis): Delete -H option.
8391         * include/Makefile.sub: Don't define HYPHENFILE.
8392         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8393         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8394         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8395         hyphenation patterns.
8397 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
8399         * eqn/neqn.sh: New file.
8400         * eqn/Makefile.sub: Handle neqn.sh.
8402         * eqn/eqn.h: Declare `nroff' variable.
8403         * eqn/box.cc (param_table): Add `nroff' param.
8404         (nroff): Define it.
8405         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8406         variable.
8407         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8409         * troff/troff.h (WARN_FONT): New warning.
8410         (WARN_TOTAL): Change accordingly.
8411         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8412         (warning_table): Add WARN_FONT.
8413         * troff/node.cc (mount_font_no_translate): Pass argument to
8414         font::load_font.  If this is non-zero, give a warning.
8415         Don't give an error message when accessing a font that has already
8416         been found to be invalid.
8417         * include/font.h (font::load, font::load_font): Add additional
8418         optional argument which suppresses error message if the font is
8419         not found.
8420         * libgroff/font.cc (font::load_font): Handle additional argument.
8421         (font::load): Add additional argument. If this is non-null, set it
8422         to 1 and don't give error message.
8424         * include/printer.h (printer::end_page): Add argument giving
8425         length of page.
8426         * libdriver/input.cc (do_file): Pass this.
8427         * grops/ps.cc (ps_printer::end_page): Add argument.
8428         * grodvi/dvi.cc (dvi_printer::end_page,
8429         draw_dvi_printer::end_page): Add argument.
8430         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8431         columns_per_page members. New member nlines.
8432         (DEFAULT_LINES_PER_PAGE): Deleted.
8433         (tty_printer::tty_printer): Don't compute lines_per_page from
8434         font::paperlength. Don't compute columns_per_page from
8435         font::paperwidth.
8436         (tty_printer::add_char): Don't check horizontal position against
8437         columns_per_page. Grow glyphs vector if neccessary.
8438         (tty_printer::end_page): Add argument giving page_length in units.
8439         Discard lines past end of page.
8441 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
8443         * tmac/tmac.tty-char: Fix definition of \(/l.
8445         * tmac/tmac.X: Define \(en.
8447 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
8449         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8450         lpq, then use lp rather than lpr.
8452         * tmac/tmac.s (par@reset): Don't call `ad'.
8453         (par*env-init): Call `ad'.
8455 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
8457         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8458         date.
8460         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8461         * indxbib/indxbib.cc: Likewise.
8463 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
8465         * libgroff/putenv.c: New file.
8466         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8467         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8468         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8469         stdlib.h with AC_HAVE_HEADERS.
8471 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
8473         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8474         does not exist.
8476 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
8478         * eqn/box.cc (gsize): Make it an int.
8479         (set_gsize): Parse argument handling increment or decrement.
8480         (box::top_level): Convert gsize to a string.
8482         * troff/input.cc (exit_troff): Make buf unsigned char [].
8483         Call to make_temp_iterator casts buf to char*.
8485         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8487         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8488         * Makefile.cpg (depend.temp): Likewise.
8490         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8492         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8494 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
8496         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8498 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
8500         * Version 1.06 released.
8502         * Integrate mm 1.04.
8504 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
8506         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8508 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
8510         * afmtodit/afmtodit.pl: Add -n option that disables generation of
8511         ligatures command.
8512         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8513         afmtodit. Regenerate.
8515         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8516         @f back past the current position.
8518         * tmac/tmac.e: Change calls to @R so that comments are not part of
8519         arguments.
8521 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
8523         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8525         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8526         check that we can link a call to a function declared in <stdio.h>.
8527         (GROFF_UNISTD_H): New macro.
8528         * configure.in: Call it.
8529         * Makefile.in: Document it.
8530         * include/posix.h: New file.
8531         * troff/troff.h: Don't include <osfcn.h>
8532         * troff/input.cc: Include posix.h.
8533         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8534         osfcn.h.
8535         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8536         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8537         <fcntl.h>.
8538         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8539         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8540         * libbib/search.cc (O_RDONLY): Delete definition.
8541         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8542         Don't include <osfcn.h>.
8544         * acgroff.m4 (GROFF_TIME_T): New macro.
8545         * configure.in: Call it.
8546         * Makefile.in: Document it.
8548         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8549         * configure.in: Call it.
8550         * Makefile.in: Document -DTRADITIONAL_CPP.
8551         * include/ptable.h: Don't include generic.h.
8552         (name2): Define it.
8554         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8555         Afterwards remove [T1 and [T2.
8556         (ref*spec!0, ref*spec!2): Use T1 rather than T.
8557         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8558         (ref*add-T2): Renamed from ref*add-T.
8559         (ref*add-T1): New macro.
8561 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
8563         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8565         * libbib/index.cc: Include <fcntl.h>.
8566         (O_RDONLY): Define if necessary.
8567         (make_index_search_item, index_search_item_iterator::get_tag,
8568         index_search_item::check_files): Use O_RDONLY.
8569         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8570         (O_RDONLY): Define if necessary.
8571         (search_list::add_file): Use O_RDONLY.
8572         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8573         <sys/stat.h>.
8574         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8575         (main): Use these.
8577         * libbib/index.cc (S_ISREG): Define it if necessary.
8578         (index_search_item::load): Use S_ISREG.
8580         * include/driver.h: Include <errno.h>.
8582 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
8584         * eqn/box.cc (body_height): Increase default value to 85.
8585         (body_depth): Increase default value to 35.
8587 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
8589         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8590         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8591         protected from expansion with \E.
8593         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8595         * Makefile (Makefile): New target.
8597         * Makefile.sub (configure, distfiles): New targets.
8599         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8600         construct.
8602 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
8604         * eqn/box.cc (param_table): Add body_height and body_depth.
8606         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8608 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
8610         * psbb/Makefile.sub: Don't link with libgroff.a.
8612         * acgroff.m4 (GROFF_PUTENV): New macro.
8613         * configure.in: Call GROFF_PUTENV.
8614         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8615         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8616         is defined.
8618         * troff/env.cc (distribute_space): Rename force_forward argument
8619         to force_reverse.  Reverse the list if force_reverse is true.
8621 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
8623         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8625         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8626         height or depth to be negative.  Guard against SUP_RAISE quantity
8627         being negative.
8629 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8631         * devps/generate/textmap: Add `an' (arrowhorizex).
8632         * tmac/tmac.ps: \(an overlaps horizontally.
8633         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8635         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8636         * devps/textmap: Add arrowvertex.
8637         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8638         updownarrow delimiters.
8639         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8641         * tbl/table.cc (simple_entry::position_vertically,
8642         block_entry::position_vertically):  For a centered entry, perform
8643         the motion in two stages.
8645         * refer/refer.cc (split_punct): Don't call lookup_token if there
8646         is no token.
8648 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8650         * troff/input.cc (token::next): Delete token_node after copying
8651         token.
8653         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8654         cur_point_size.
8656         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8658         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8660 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8662         * grops/ps.cc (usage): -b option takes an argument.
8664         * devps/prologue (PLG): New procedure.
8665         * grops/ps.cc (main, usage): New -g option.
8666         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8667         length using PLG.
8669 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8671         * include/cset.h: Include <limits.h> if we have it.
8673         * libgroff/illegal.cc: New file.
8674         * include/lib.h (illegal_input_char): Use table.
8675         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8676         * pic/lex.cc (ARG1): Renumber to 14.
8677         * eqn/lex.cc (ARG1: Likewise.
8679         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8680         (eg 1.05.90) correctly.
8682 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
8684         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8685         Rename $r and $R registers to $v and $V.
8686         ($r, $R): Initialize to 0.
8687         (@v, @V): New macros.
8688         (sz): Call @v.
8689         (@M): Call @V.
8691         * troff/input.cc (main, usage): Add -R option that says not to
8692         load troffrc.
8693         * eqn/main.cc (main, usage): Rename -n to -R.
8695 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
8697         * devps/DESC.in: Leave font positions 5-9 blank.
8698         * devdvi/DESC.in: Likewise.
8700         * grog/grog.pl: Handle `.PS <file' correctly.
8702         * troff/input.cc (input_stack::push): Improve error message when
8703         input stack limit exceeded.
8705 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
8707         * refer/refer.cc (main): Fix typo in handling of `a' option.
8709         * refer/refer.cc (do_bib): In state START after a newline remain
8710         in state START.
8712         * groff/groff.sh: Deleted.
8713         * groff/Makefile.sub: Delete handling of groff.sh.
8715         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8716         to determine whether to use \X'ps:...'.
8717         * tmac/troffrc: Set 0p register to 0.
8718         * tmac/tmac.ps: Set 0p register to 1.
8720         * groff/groff.cc: Support -X option. Give warning for -TXps and
8721         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8722         * tmac/troffrc: Support -r.X=1.
8724         * pic/troff.cc (troff_output::dot): Don't test
8725         zero_length_line_flag.
8727 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
8729         * include/lib.h: Declare getopt() and friends unless
8730         STDLIB_H_DECLARES_GETOPT is defined.
8732         * doc/chars.tr: Delete.
8733         * man/groff_char.man: New file.
8735 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
8737         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8738         user has changed register format.
8740 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
8742         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
8743         `postpro' command in DESC file.  Get spooler command from `print'
8744         command in DESC file.  Execute spooler command with /bin/sh.
8746         * groff/groff.cc: Split Unix-specific parts into...
8747         * groff/pipeline.c: New file.
8749         * LICENSE: Delete.
8750         * COPYING: New file.
8751         * all files: Update copyright notices.
8753         * Rearrange files.  Redo Makefiles.  Use autoconf.
8755 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
8757         * troff/input.c (charinfo_to_node_list): Interpret character
8758         definition with escape_char of `\'.
8760 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
8762         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8763         Define INT_DIGITS as big enough for 64-bit integer.
8764         * lib/strtol.c: Don't include lib.h.
8765         * lib/lib.h: Delete ifdef __cplusplus stuff.
8767 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
8769         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
8770         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
8771         get DESC from current directory.
8773 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
8775         * tbl/main.c (main): Always reset the line number when reading
8776         from stdin.
8778         * tbl/table.c (table::print_single_hline, table::print_double_hline,
8779         table::define_bottom_macro, table::do_row, table::do_top): Round
8780         vertical spacing up to vertical resolution.
8782 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
8784         * ps/ps.h (enum resource_type): Avoid comma at end of
8785         enumerator-list.
8786         * dvi/dvi.c (class dvi_printer): Likewise.
8787         * dvi/tfmtodit.c (gf::load): Likewise.
8788         * refer/label.y (struct expression): Likewise.
8789         * refer/refer.c (class label_processing_state): Likewise.
8790         * refer/indxbib.c (do_file): Likewise.
8791         * troff/troff.c (enum warning_type): Likewise.
8792         * tbl/main.c (process_data): Likewise.
8793         * troff/charinfo.h (class charinfo):
8795 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
8797         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
8799 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
8801         * groff.c: Move to new groff subdirectory.
8802         * groff/Makefile: New file.
8803         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8805         * man/mdate.sh: Use ls -L if supported.
8807         * Consolidate all header files produced by gendef into lib/defs.h.
8808         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8809         Don't include path.h.
8810         * lib/Makefile (path.h): Don't generate.
8811         * troff/input.c: Include defs.h. Don't include config.h.
8812         * troff/Makefile (config.h): Don't generate.
8813         * refer/index.h: Don't include suffix.h.
8814         * refer/index.c: Include defs.h.
8815         * refer/indxbib.c: Include defs.h.
8816         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8817         defs.h.
8818         * refer/Makefile (suffix.h, path.h): Don't generate.
8819         * groff.c: Don't include config.h. Include defs.h.
8820         * Makefile (config.h): Don't generate.
8821         (lib/defs.h): Generate.
8822         (topclean): Remove lib/defs.h.
8824 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
8826         * lib/malloc.c, lib/getpagesize.h: Deleted.
8827         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
8828         related stuff.
8829         * lib/Makefile: Delete malloc-related stuff.
8830         * lib/new.c: Workaround COOKIE_BUG if necessary.
8832         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
8833         needed header files directly.
8834         * refer/refer.h: Omit definition of DEFAULT_INDEX.
8835         * Makefile: Include definition of DEFAULT_INDEX in path.h.
8837 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
8839         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8840         argument.
8841         * lib/font (font::load_desc, font::load): Don't split argument of
8842         unknown command.
8843         (font::handle_unknown_font_command): Change type.
8844         * ps/ps.c (ps_font::handle_unknown_font_command,
8845         handle_unknown_desc_command): Change type.
8846         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8848 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
8850         * lib/font.h (font::handle_unknown_font_command): Add file and
8851         line arguments.
8852         * lib/font.c (font::handle_unknown_font_command):
8853         * ps/ps.c (ps_font::handle_unknown_font_command):
8854         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8855         lineno arguments.  Use _with_file_and_line functions for error
8856         reporting.
8858         * lib/fontfile.c (font::unknown_desc_command_handler): New static
8859         data member.
8860         * lib/font.c (font::set_unknown_desc_command_handler): New
8861         function.
8862         (font::load_desc): For unknown commands, call
8863         unknown_desc_command_handler if not null.
8864         * lib/font.h (class font): Declare them.
8865         (FONT_COMMAND_HANDLER): New typedef.
8866         * ps/ps.c (handle_unknown_desc_command): New function.
8867         (main): Set bflag if we had a -b option. Call
8868         font::set_unknown_desc_command_handler.
8869         (broken.h): Don't include.
8870         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
8871         submake 
8872         * ps/devps/Makefile: Add `broken' command to DESC file using
8873         BROKEN_SPOOLER_FLAGS.
8875         * macros/tmac.e ([, ]): Add as synonyms for { and }.
8877         * macros/tmac.e ($p): Only exdent if \$3 > 0.
8879         * macros/tmac.e (@R, @S): New macros.
8880         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8881         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8882         Declare $H, $[0-9], .. macros with @S.
8883         Declare |0, |1, |2, |3 strings with @S.
8885         * macros/tmac.e (@S): Rename to @U.
8887         * macros/tmac.e (@z): Define @b and bp as empty instead of
8888         deleting them,
8890         * macros/tmac.e (@m): Deleted.
8891         (@h): Don't call @m.
8892         (@z): Don't set @m trap.
8894         * macros/tmac.e ($h, $f): Define |z as empty string.
8896         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8897         (@q): Likewise.
8899         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8900         removing them.
8901         ()f): Likewise for * register.
8903         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8904         argument is missing, don't change $R.  Call sr with three
8905         arguments when initializing.
8907 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
8909         * macros/tmac.e (sr): New macro.
8910         Initialize $r and $R using sr.
8912         * macros/tmac.e (,): Delete \*(#[.
8914         * troff/env.c (set_tabs): Read the tab type even if the position
8915         is bad.  Allow the position of the first tab stop to be negative.
8917 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
8919         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8920         _POSIX_VERSION.
8921         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8922         rather than -DPATHCONF_MISSING.
8923         * Makefile: Get rid of PATHCONF_MISSING.
8925         * refer/map.c: New file.
8926         * refer/index.c: Interface to mmap through map.c.  Rename map_size
8927         to map_len.
8928         * refer/Makefile: Handle map.c.
8929         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8931 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
8933         * Makefile: RANLIB should be `true' if there is no ranlib.
8934         * lib/Makefile (libgroff.a): Simplify.
8935         * driver/Makefile (libdriver.a): Simplify.
8937         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8938         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
8939         defined.
8941 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
8943         * troff/env.c (compare_ranges): Declare as extern "C".
8945         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8947         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8949 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
8951         * pic/troff.c (troff_output::text): Merge in grops_output::text,
8952         but conditionalize use of \X based on \*(.T.
8953         (grops_output::*): Deleted.
8954         * pic/output.h: Delete declaration of make_grops_output.
8955         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
8956         by default. -n sets it to 0.
8957         (usage): Corresponding changes.
8958         * groff.c (main): Don't pass -x or -p to pic.
8959         * groff.sh: Likewise.
8961         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8962         to be non-zero.
8964         * ps/devps/afmtodit: Change calculation of asc_boundary and
8965         desc_boundary.  Make these bounds inclusive.
8966         * ps/devps: Regenerate font files.
8968 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
8970         * macros/tmac.latin1: New file.
8971         * macros/tmac.tty-char: Use tmac.latin1.
8972         (tmac.tty-tr): Deleted.
8973         * macros/Makefile: Install tmac.latin1.
8974         * macros/tmac.dvi: Use tmac.latin1.
8975         * macros/troffrc: Translate \[char160] onto no-break space here.
8976         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8978 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
8980         * macros/tmac.Xps: Use `do' request.
8982         * macros/tmac.ps: Use `do' request.
8984         * macros/tmac.e (@C): Use `do' request.
8986         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8987         * macros/Makefile: Install tmac.X*.
8989         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8990         * tty/Makefile: Don't install tmac.tty*.
8991         * macros/Makefile: Install tmac.tty*.
8993         * dvi/tmac.dvi: Move to macros.
8994         * dvi/Makefile: Don't install tmac.dvi.
8995         * macros/Makefile: Install tmac.dvi.
8997         * ps/tmac.ps*: Move to macros.
8998         * ps/Makefile: Don't install tmac.ps*.
8999         * macros/Makefile: Install tmac.ps*.
9001         * eqn/box.c: Provide draw_lines parameter corresponding to -D
9002         option.
9003         * macros/eqnrc: Set draw_lines parameter based on device.
9004         * groff.c: Don't pass -D flag to eqn.
9005         * groff.sh: Likewise.
9006         * eqn/main.c: Warn about use of -D.
9008         * troff/input.c (process_startup_file): New function.
9009         (main): Call process_startup_file().
9010         * macros/troffrc: New file.
9011         * macros/Makefile: Install troffrc.
9012         * groff.c (main): Don't pass extra -m option to troff. For a 
9013         pseudo device pass the name of the pseudo device to troff using
9014         -d.
9015         * groff.sh: Likewise.
9016         * groff.c (possible_command::prepend_arg): Deleted.
9018         * troff/input.c (do_request): New function.
9019         (init_input_requests): Bind "do" to do_request.
9021         * eqn/main.c (main): Instead of loading eqnchar from device directory,
9022         load eqnrc from macro directory.
9023         * macros/eqnrc: New file.
9024         * macros/Makefile: Install eqnrc.
9025         * ps/devps/eqnchar: Deleted.
9026         * ps/devps/Makefile: Don't install eqnchar.
9027         * dvi/devdvi/eqnchar: Deleted.
9028         * dvi/devdvi/Makefile: Don't install eqnchar.
9029         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
9030         variable optM.
9032         * lib/device.[ch]: New files.
9033         * lib/font.h (font::set_device_name, font::get_device_name):
9034         Deleted.
9035         * lib/fontfile.c: Use device.h.
9036         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
9037         * troff/input.c: Delete definition of `device'.
9038         (main): Don't initialize device.
9039         * troff/troff.h: Include device.h rather than declaring device.
9040         * troff/Makefile: No need to handle DEVICE.
9041         * driver/input.c: Include device.h. Don't use
9042         font::{set,get}_device_name.
9043         * groff.c, Makefile: Rename device.h to config.h.
9044         * groff.c: Use library device variable.
9045         * eqn/main.c: Use library device variable.
9046         * eqn/Makefile: No need to handle DEVICE.
9048         * lib/searchpath.[ch]: New files.
9049         * lib/Makefile: Handle searchpath.[ch].
9050         * troff/input.c (open_file, init_dirs): Deleted.
9051         (macro_dirs): Deleted.
9052         (open_mac_file, macro_source): Use class search_path.
9053         (add_string, struct string_list): Move definition.
9054         (main): Change -M option to use macro_path. Delete call to
9055         init_dirs().
9056         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
9057         Rewrite to use class search_path.
9058         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
9059         * lib/Makefile: fontfile.c depends on searchpath.h.
9060         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
9061         MACROPATH.
9062         * lib/macropath.[ch]: New files.
9063         * troff/Makefile: No need to handle MACROPATH.
9065         * troff/input.c: Delete DUMP code.
9066         * lib/fontfile.c, lib/font.h: Delete
9067         font::forget_command_line_font_dirs.
9069         * troff/input.c (push_token): New function.
9070         (handle_first_page_transition): Use push_token().
9071         (process_input_stack): Change handling of a space at the beginning
9072         of the line.
9074 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
9076         * troff/input.c (font_dirs): Delete unused variable.
9078         * eqn/lex.c (do_set): Correct error messages.
9080 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
9082         * troff/input.c (do_define_string): Allow the string name to be
9083         followed immediately by a tab.
9084         (define_character): Likewise.
9086 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
9088         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
9089         be negative.
9091         * troff/input.c (input_iterator::is_file): New virtual function.
9092         (file_iterator::is_file): New function.
9093         (input_stack::end_file): New function.
9094         (input_stack::next_file): Handle the situation where there is no
9095         file on the input stack correctly.  Avoid making two passes over
9096         the input stack.
9097         (next_file): Make the filename optional; in this case call
9098         input_stack::end_file().
9100 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
9102         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
9103         produce a real _ charater when the current font is CW and _
9104         otherwise.
9106         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
9107         expression to work around gcc 2.2 bug.
9109 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
9111         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
9113         * troff/env.c (environment::add_padding): New function.
9114         (environment::add_char): Use add_padding().
9115         (environment::space): Likewise.
9116         (environment::wrap_up_field): Add some padding if there is none
9117         and there's no current tab.
9118         * troff/env.h: Declare environment::add_padding.
9120 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
9122         * pic/pic.y: undef fmod and rand before declaring them.
9124 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
9126         * troff/input.c (main): If the DESC file specifies a font name of
9127         0, then leave the corresponding font position empty.
9129         * nroff.sh: New file.
9130         * Makefile (install.nobin): Install nroff.sh.
9132         * tty/devlatin1/R.proto: Add ao as synonym for de.
9133         * tty/tmac.tty-char: Define ao as o.
9135         * tty/dev{ascii,latin1}/R.proto: Add aq.
9136         * tty/tmac.tty-char: Delete definition of aq.
9138 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9140         * troff/input.c (init_charset_table): Don't translate 0240.
9141         * ps/tmac.ps: Translate char160 to space.
9142         * dvi/tmac.dvi: Likewise.
9143         * tty/tmac.tty: Likewise.
9145 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9147         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9149         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9150         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9151         \(oe, \(r?, \(r!.
9153         * tty/tmac.tty-char: Add \(ah.
9155         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9156         No need to define \(FM and \(!/. Conditionalize all character
9157         definitions.
9159         * ps/devps/lgreekmap: Add +h, +f, +p.
9161         * ps/tmac.psnew: New file.
9162         * ps/Makefile: Install tmac.psnew.
9164         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9165         character definitions in compatible mode.
9167         * troff/input.c (remove_character): New function.
9168         (init_input_requests): Bind remove_character to "rchar".
9170         * ps/tmac.psold: New file.
9171         * ps/Makefile: Install tmac.psold.
9172         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9173         characters into tmac.psold.  Make these definitions unconditional.
9175         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9177         * ps/tmac.ps: Don't define \('c and \('C.
9179         * ps/devps/textmap: Move Greek characters to...
9180         * ps/devps/symbolchars:
9182 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9184         * ps/devps/text.enc: Add quotesingle.
9185         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9186         * tty/tmac.tty-char: Likewise.
9187         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9188         * dvi/devdvi/texi.map: Add Fn.
9189         * dvi/devdvi/msam.map: Add lz.
9190         * dvi/tmac.dvi: Handle Bq, bq, aq.
9192         * pic/lex.c (get_token): Recognize 'th.
9193         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9195 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9197         * ps/devps/textmap: Move di, mu, +- to...
9198         * ps/devps/symbolchars:
9200         * macros/tmac.s (@XS): Don't call par@reset or fi.
9201         (XA): Call LP. Turn off adjustment. Reduce line length.
9203         * macros/tmac.s: Initially alias XS to LP.
9204         (XS): Rename to @XS.
9205         (cov*ab-init): Alias XS to @XS.
9207 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9209         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9210         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9211         (token::is_size, token::changes_env): Deleted.
9212         * troff/number.c (parse_term): No need to process \s explicitly.
9213         Call tok.next() only after scale indicator has been processed.
9214         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9215         \f etc explicitly.
9216         (token::next): Handle \s, \f, \S, \H immediately rather than
9217         returning them as tokens.
9218         (token::operator==, token::description, token::add_to_node_list,
9219         token::process): Remove handling of deleted tokens.
9221         * troff/env.c (environment::add_char): When adding padding
9222         indicator character, call start_line() if necessary.
9224 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9226         * ps/devps/afmtodit: Don't output 0 kerns.
9228         * ps/devps/afmtodit: Remove directory from name of encoding in
9229         font description file.
9231         * ps/devps/afmtodit: Improve error messages.
9233         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9235         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9236         * ps/devps/FontMakefile: Deleted.
9237         * ps/devps/afmname: New file.
9239         * ps/devps/symbol.sed: New file.
9240         * ps/devps/symbol.diff: Deleted.
9241         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9242         Generate zapfdr.afm from zapfd.afm.
9244         * tty/tmac.tty (tty-char): Prefix definition with ".
9246         * macros/tmac.an (TP): Don't start a diversion if one has already
9247         been started.
9249         * tty/tmac.tty-char: Add Latin-1 characters.
9251         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9253 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9255         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9256         Move declaration of struct horizontal_span.
9258         * tbl/table.c (table::table): Initialize span_list.
9259         (table::~table): Delete span_list.
9261         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9263         * ps/devps/Makefile: Avoid dependency on GNU make.
9265         * ps/tmac.ps: Check that character does not already exist before
9266         defining it.
9268         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9269         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9270         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9271         files.
9273         * tty/tmac.tty-char: New file.
9274         * tty/Makefile: Install tmac.tty-char.
9275         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9276         tmac.tty-char.
9278         * tty/tmac.tty: Fix definition of \(34.
9280         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9281         bracket-drawing characters onto |. Add *o.
9283         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9284         only if current_field.
9286         * troff/dictionary.c (dictionary::lookup): Free old_table after
9287         rehashing. 
9289 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
9291         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9292         whose glyphs are identical to glyphs of some Roman character.
9294         * tty/devlatin1/R.proto (bu): Deleted.
9295         * tty/devascii/R.proto (bu): Deleted.
9296         * tty/tmac.tty: Add definition of \(bu.
9298         * eqn/main.c (do_file): Pass FILE as argument.
9299         (main): Automatically load eqnchar.  New options -F and -n.
9300         Pass do_file an opened FILE.
9301         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9302         No need to include font.h.
9303         * groff.sh: Likewise.  Don't need to use - for standard input.
9304         Prefix files with -- if first file starts with -.
9306         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9308         * troff/env.c (environment::possibly_break_line): Don't set line
9309         to 0 across call to output_line().  Don't call output_line() until
9310         after discarding nodes after break.
9312 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
9314         * request.h (macro::empty): Declare it.
9315         * input.c (macro::empty): New method.
9316         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
9317         macro is empty.
9319 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
9321         * troff/env.c (environment::start_field): Decrement space_total
9322         when a space is frozen.
9324 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
9326         * macros/tmac.an (R): Delete macro.
9328         * troff/input.c (get_copy, token::next): Support \# (like \" but
9329         newline is ignored).
9331         * troff/input.c (token::next): Fix error message in 'Y' case.
9333 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
9335         * eqn/delim.c (define_extensible_string): Recognize any prefix of
9336         a delimiter name.
9338 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
9340         * c++test.c: Include <osfcn.h>.
9342         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9343         <errno.h> doesn't.
9345 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
9347         * tbl/table.c (table::divide_span): Don't count column separation
9348         if expand was specified.
9350         * tbl/main.c (process_format): Don't ignore width specs in
9351         continued format.  Give warning for changing equal widths or
9352         column separation in continued format.
9353         (process_data): Set column separation, minimum width, equal
9354         columns at end of table.
9356 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
9358         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9359         node::add_discretionary_hyphen): Use soft_hyphen_char.
9360         (set_soft_hyphen_char): New function.
9361         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
9363         * Makefile (c++tested): Give more helpful message if test fails.
9365 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
9367         * troff/input.c (init_charset_table): Translate 0240 to
9368         an unbreakable space.
9370         * troff/token.h (token::hyphen_indicator): New function.
9371         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9372         translation.
9373         * troff/input.c (translate): Allow translation to \%.
9374         * troff/node.c (node::add_char): Handle
9375         TRANSLATE_HYPHEN_INDICATOR.     
9376         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9378         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9379         for \(hy.
9381         * tty/devlatin1/R.proto: \(hy and - should print as 055.
9383 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
9385         * groff.c (run_commands): If the last command gets a SIGPIPE send
9386         a SIGPIPE to all children than haven't yet terminated.  When
9387         command terminates, set pid field to -1.
9389 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
9391         * groff.c (main): Pass an appropriate -filename option to gxditview.
9393 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
9395         * Makefile.bd (install): Remove existing program before copying.
9397         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9398         programs which have Unix counterparts to be installed with
9399         user-specified prefix.
9401         * troff/input.c (exit_troff): Don't check if exit_started.
9402         (exit_request): Don't call exit_troff if exit_started.
9404         * Makefile.bd (install.mm): Rename to install.dwbmm.
9406 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
9408         * driver/input.c (do_file): Add missing break for '#' case.
9410 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
9412         * troff/input.c (input_stack::clear):  Clear past any boundaries and
9413         then add the boundaries back.
9415         * troff/input.c (exit_troff): Return immediately if already
9416         exiting.
9418         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
9419         end macro.
9420         (pg*end-page): If the text has ended and there are no more
9421         footnotes or keeps, exit.
9423         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9425         * troff/input.c (init_charset_table): Make \(rq transparent by
9426         default.
9428         * macros/tmac.an: Define lq and rq strings.
9430         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9432 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
9434         * troff/env.c (environment::final_break): New function.
9435         (environment::newline): Set prev_line_interrupted to 2 if
9436         exit_started.
9437         * troff/env.h: Declare environment::final_break.
9438         * troff/input.c (exit_troff): Call environment::final_break()
9439         instead of environment::do_break().
9441         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9442         doesn't already exist.
9443         * macros/man.local: New file.
9444         * macros/tmac.an: Load man.local.
9445         * macros/man.ultrix: New file.
9447 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
9449         * troff/input.c (exit_groff): Rename to...
9450         (exit_troff): New function.
9452         * troff/div.c (exit_started, done_end_macro,
9453         seen_last_page_ejector): New global variables.
9454         (began_page_in_end_macro): New static variable.
9455         (exit_flag): Deleted.
9456         (top_level_diversion::top_level_diversion): Initialize
9457         last_page_count.
9458         (top_level_diversion): More elaborate test for whether
9459         cleanup_and_exit() should be called.
9460         Set began_page_in_end_macro if the end macro isn't yet finished.
9461         * troff/div.h (top_level_diversion::last_page_count): New data
9462         member.
9463         (top_level_diversion::set_last_page): New function.
9464         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9465         * troff/env.c (do_break): Zero prev_line_interrupted.
9466         * troff/input.c (exit_flag): Delete declaration.
9467         (LAST_PAGE_EJECTOR): New magic cookie.
9468         (token::next): Handle LAST_PAGE_EJECTOR.
9469         (exit_groff): Set exit_started and done_end_macro instead of
9470         exit_flag.  Call top_level_diversion::set_last_page.  Push a
9471         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
9472         another ejection after setting seen_last_page_ejector.
9474 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
9476         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9478         * macros/tmac.e (TH): Make sure there's room for the initial
9479         header.
9481         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9482         Set FVS in points rather than units.
9484 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
9486         * troff/div.c (top_level_diversion::add_trap): Don't consider the
9487         position of empty slots.
9489 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
9491         * ps/devps/S: Fix height and depth of parenrightex.
9492         * ps/devps/symbol.diff: Regenerate.
9494 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
9496         * tmac.e (u): Do underlining as in -mgs.
9498 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
9500         * tty/tty.c (tty_printer::end_page): If overstriking is
9501         suppressed, still turn overstruck horizontal and vertical lines
9502         into +.
9504         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9505         2.1.
9507         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9509 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
9511         * Version 1.05 released.
9513 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
9515         * tty/tty.c: Instead of keeping an array of glyphs and then
9516         sorting it, keep a ordered linked list of glyphs for each line.
9518         * driver/driver.h: Include stddef.h.
9520         * tty/tty.c (compare_glyph):
9521         * refer/refer.c (rcompare):
9522         * troff/env.c (compare_ranges): Arguments of qsort comparison
9523         function should be const void *.
9525         * troff/number.c (parse_term):
9526         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9527         switch statement.
9529         * refer/label.y (consider_authors): Don't access variables
9530         constructed under a condition outside that condition: put braces
9531         round for statement containing declaration; redeclare use of same
9532         variable later.
9534         * pic/pic.y (text_expr): Delete production that allows
9535         parenthesised text_expr.
9536         (expr): Allow a conditional_expr to appear in parentheses.
9537         (conditional_expr): Rename to any_expr.
9539         * mm: Install new version 1.01 from jh.
9541         * lib/font.c (font::get_width): Cache scaled widths.
9542         (font::font): Initialize widths_cache.
9543         (font::~font): Destroy widths_cache.
9544         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9546 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
9548         * c++test.c, c++test.ref: New files.
9549         * Makefile: Check that the C++ compiler works.
9551         * ps/tmac.pspic (PSPIC): Do a break.
9553         * ps/tmac.ps: Move definition of PSPIC into...
9554         * ps/tmac.pspic: New file.
9555         (PSPIC): Draw box around picture, but make it invisible to grops.
9556         * ps/tmac.ps: Load tmac.pspic.
9557         * ps/Makefile: Install tmac.pspic.
9559 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
9561         * lib/font.c (scale_round): If n is negative,
9562         subtract .5 before truncating floating point result.
9564         * lib/fontfile.c: Include <errno.h>.
9566 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
9568         * driver/input.c (get_char): Inline. Don't update current_lineno.
9569         Change callers to up date current_lineno if necessary.
9570         Use get_char() instead of getc(current_file).
9572 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
9574         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9576 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
9578         * tty/tty.c (tmac.tty): Define \(rg as (R).
9580 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
9582         * lib/lib.h: New define a_delete.
9583         * Use a_delete instead of delete when deleting an array of objects
9584         without destructors.
9586         * lib/lib.h: Rename adelete to ad_delete.
9587         * Change uses of adelete.
9589 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
9591         * eqn/eqn.y: Include lib.h.
9593         * troff/node.c (grow_font_table): Delete old_font_table.
9595         * mm: Install new version from jh.
9597 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
9599         * tbl/table.h (format_type): Make global instead of local to class
9600         entry_format.  Prefix enumerators with FORMAT_.
9601         * tbl/table.c, tbl/main.c: Corresponding changes.
9602         * refer/token.h (token_type): Make global.  Prefix enumerators
9603         with TOKEN_.
9604         * refer/token.[ch]: Corresponding changes.
9605         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9607         * troff/div.c (node::set_vertical_size): Don't name argument.
9609 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
9611         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9612         * lib/lib.h: Define adelete accordingly.
9613         * pic/object.c (graphic_object::graphic_object):
9614         * tbl/main.c (format::~format):
9615         * tbl/table.c (table::~table):
9616         * refer/ref.c (reference::~reference, reference::merge,
9617         reference::insert_field, reference::delete_field): Use adelete.
9619         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9620         * refer/token.h:
9621         * tbl/table.h: Corresponding changes.
9623         * common.c (common_output::dashed_arc, common_output::dotted_arc):
9624         Ensure total_angle is positive.
9626 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9628         * refer/ref.c (reference::merge, reference::insert_field,
9629         reference::delete_field): Avoid delete[0].
9631         * refer/token.c (init_special_chars): Move calls to cmupper
9632         outside calls to init_two_char_letter to work around bug in gcc
9633         2.0.
9635 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9637         * lib/new.c (operator new): Use __builtin_new for g++.
9639         * pic/object.c (graphic_object::~graphic_object):  Don't use
9640         delete [] on 0.
9642         * pic/object.c (output::compute_scale): Initialize max_width and
9643         max_height.
9645 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9647         * troff/input.c (write_request): Call fflush.
9649         * troff/node.h (class composite_node): Move declaration to node.c
9650         * troff/input.c (charinfo_to_node): Rename to ...
9651         (charinfo_to_node_list): Return node list rather than composite
9652         node.
9653         * troff/node.c (make_composite_node): New function.
9654         (make_node, add_char): Call make_composite_node instead of
9655         charinfo_to_node.
9656         (class composite_node): Add a tfont * member.  Delete font_size
9657         member.
9658         (composite_node::composite_node, composite_node::copy,
9659         composite_node::size): Corresponding changes.
9660         (composite_node::tprint): Provide constant spacing, emboldening
9661         and track kerning as specified in tfont.
9662         (composite_node::width): Change width calculation accordingly.
9663         * troff/env.h (environment::composite): New member.
9664         (environment::is_composite, environment::set_composite): New
9665         functions.
9666         * troff/env.c (environment::environment): Initialize composite.
9667         * troff/input.c (charinfo_to_node): Call
9668         environment::set_composite.
9669         * troff/node.c (make_composite_node, make_glyph_node): Use the
9670         plain version of the tfont if the environment is composite.
9672         * troff/node.c (font_info::get_space_width): Additional argument
9673         giving space_size.  Handle constant space correctly. Scale by
9674         space_size unless constant spaced.
9675         (env_sentence_space_width): New function.
9676         * troff/node.h: Declare it.
9677         * troff/env.h (environment::get_space_size,
9678         environment::get_sentence_space_size,
9679         environment::get_narrow_space_width,
9680         environment::get_half_narrow_space_width): Make inline.
9681         (environment::get_space_width): Make inline.  Just call
9682         env_space_width.
9683         * troff/env.c: Delete definitions for funtions made inline.
9684         (environment::space_newline, environment::space): Use
9685         env_sentence_space_width(). Don't scale by space_size.
9686         * troff/node.h: Move declarations of env*space_width() functions
9687         into env.h.
9689 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
9691         * macros/tmac.s (PS): Don't try to set negative indent.
9693 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
9695         * pic/pic.y: Fix min function.
9697 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
9699         * man/mdate.sh: Clear LANGUAGE.
9701 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
9703         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9704         * pic/lex.c: New COMMAND keyword.
9705         * pic/pic.y (print_args, print_arg): New rules.
9706         (placeless_element): Use print_args for PRINT.
9707         New COMMAND element.
9709 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
9711         * troff/input.c (terminal): Handle missing argument correctly.
9713         * pic/pic.y (text_expr): New rule.
9715         * pic/pic.y: Implement := operator.
9717 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
9719         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9720         mdoc.
9722 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
9724         * ps/devps/dingbatsrmap: Include this in the distribution.
9726         * macros/tmac.doc: Replace with new version from 2nd Networking
9727         Release. Fix loading of doc-* files.
9728         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9729         * macros/tmac.doc.old: New file.  Apply fixes that had been
9730         applied to old tmac.doc.
9731         * macros/tmac.andoc: Check that we're running under groff.
9732         * macros/Makefile: Rework.
9734 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
9736         * tbl/table.h (format_type): 
9737         * refer/token.h (token_type): If NESTED_TYPES is defined, use
9738         typedef to make these types visible at file scope.
9739         * Makefile: Add NESTED_TYPES configuration option.
9741         * troff/div.c (mark): At the top level use the value of
9742         nl_reg_contents rather than the current vertical position.
9744 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
9746         * tty/tty.c: Implement \D for horizontal or vertical lines.
9747         (tty_printer::set_char): Use vec_used+2 as serial number.
9748         Don't allow size of vector to exceed USHRT_MAX-2.
9749         Split off part into...
9750         (tty_printer::add_char): New function.
9751         (tty_printer::draw): New function.
9752         (compare_glyph): Handle equal serial numbers.
9753         (tty_printer::end_page): Handle overstruck characters from \D.
9754         (main, usage): Implement -d option.
9756 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
9758         * tbl/main.c (process_format):
9759         * eqn/text.c (split_text):
9760         * troff/input.c (token::next): Use inner block for declarations
9761         with initializers in switch statement.
9763 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
9765         * pic/common.c (common_output::dash_line): Cope with zero-length
9766         lines.
9768 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
9770         * Version 1.04 released.
9772 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
9774         * macros/tmac.an (TH): Define a macro an-init to define variables
9775         based on command line arguments.
9776         (an-header): Call it.
9778 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
9780         * Makefile (install.mm): Rename to install.dwbmm.
9782         * Makefile: Integrate mm.
9783         * mm: New directory.
9785 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
9787         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9788         <sys/types.h>.
9790         * pic/troff.c (troff_output::simple_spline,
9791         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9792         shadowing parameter.
9794         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9796         * lib/ptable.h: Add explicit casts when converting from unsigned
9797         long to unsigned.
9799         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9800         * dvi/devdvi/Makefile: Install SA, SB.
9802         * refer/indxbib.c: Add declaration of mktemp.
9804         * refer/lookbib.c: Add declaration of isatty.
9806 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
9808         * pic/lex.c (interpolate_macro_with_args):  While collecting
9809         arguments, keep track of whether we're in a string.
9811 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
9813         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9814         down with \v, so as to avoid problems with top of page trap
9815         setting no space mode.
9817 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
9819         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9821 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
9823         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9824         Improve error message.
9826 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
9828         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9829         printf("%03o");
9831 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
9833         * groff.c (possible_command::execp): Always use _exit() after a
9834         failed exec.
9836         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9837         NO_SYS_WAIT_H   configuration options.
9838         * groff.c: Use these options.  Use POSIX-style macros to extract
9839         fields from the status returned by wait().
9841 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
9843         * tbl/table.c (table::compute_separation_factor): Allow the
9844         separation factor to drop to 0.
9846 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
9848         * refer/search.c: Include <errno.h>.
9850 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
9852         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9854         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9855         C++. 
9857         * pic/lex.c (input_stack::bol): Move definition out of class body.
9859         * pic/main.c: On MSDOS munge argv[0].
9861         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9863         * lib/ptable.c (hash_string): Use unsigned long rather than
9864         unsigned.
9865         (next_ptable_size): Use unsigned rather than int.  Give an error
9866         message if we've hit the largest table size.
9867         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
9868         table size.
9870         * pic/object.h (object_spec): Make flags unsigned long.  Declare
9871         flags as const unisgned long rather than as enums.
9873         * pic/output.c: Deleted.
9875         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9877         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9878         Add additional argument.
9879         (line_entry::note_double_vrule_on_{left,right}): Set value of
9880         douvle_vrule_on_{right,left} flag according to argument.
9881         (simple_line_entry::simple_print,
9882         simple_line_entry::double_line_print): If adjacent to double vrule
9883         on a corner extend rather than shorten the rule by half the double
9884         vrule sep.
9886         * troff/number.c (parse_term): In checking for overflow, handle the
9887         case where the current horizontal position is negative.
9889 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
9891         * pic/object.c (draw_arrow): Check for object having zero length.
9893 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
9895         * eqn/main.c (do_file): Split off inline equation handling into...
9896         (inline_equation): New function.  Search for starting delimiter
9897         using...
9898         (delim_search): New function. Don't recognize a delimiter that
9899         occurs in the name of an escape sequence, number register, string
9900         etc.
9902 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
9904         * eqn/delim.c (delim_box::compute_metrics): Don't call
9905         define_extensible_string if left is 0.
9906         (delim_box::output):  Don't print the left delimiter if left is 0.
9907         (delim_box::debug_print): Check for left == 0 before calling printf.
9909 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
9911         * troff/Makefile (majorminor.c): Include only digits in
9912         minor_version.
9914 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
9916         * refer/dirnamemax.c: new file.
9917         * refer/genlimits.c: Deleted.
9918         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9919         Don't check path length.
9920         * refer/Makefile: Add dir_name_max.o; delete genlimits.
9921         * Makefile: Add PATHCONF_MISSING option.
9923         * refer/indxbib.c (get_cwd): New function.
9924         (main): Use get_cwd().
9925         * lib/getcwd.c: New file.
9926         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9927         GETCWD in SUBFLAGS.
9928         * lib/Makefile: Compile getcwd.o.
9930         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9931         userdict.
9933         * refer/indxbib.c (main): Check success of mktemp.
9935         * lib/tmpfile.c: New file.
9936         * lib/Makefile: Add tmpfile.c.
9937         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9938         * ps/ps.h: Delete declaration of mktemp().
9939         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9940         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9941         * driver/driver.h: No need now to include errno.h.
9943         * everywhere: Set errno to 0 before calling fopen().
9945         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9946         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9947         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9949 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
9951         * troff/env.h (translate_space_to_dummy): Declare it.
9952         * troff/env.c (environment::space_newline, environment::space):
9953         If translate_space_to_dummy is set then make the width of spaces 0.
9954         * troff/input.c (translate): If the second character of a
9955         translation is a space, translate to unbreakable space.  If the
9956         first character is a space, set or clear translate_space_to_dummy
9957         according to whether the second character is \&.  Weird!
9959 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
9961         * groff.c (run_commands): Don't use non-zero exit code because a
9962         command gets SIGPIPE.
9964         * groff.c, groff.sh: Use -mXps with -TXps.
9966         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9967         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9968         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9969         (ps_printer::special): New specials invis and endinvis.
9970         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9971         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
9972         (ps_printer::end_page): Check that invis_count == 0.
9973         (ps_printer::invis_count): New member.
9974         (ps_printer::ps_printer): Initialize invis_count to 0.
9976         * troff/env.c (environment::hyphenate_line): Hyphenation
9977         indicator at beginning of word inhibits splitting after -, \(em
9978         etc.
9980         * pic/pic.y (element): Allow another element to follow } without
9981         any intervening separator.
9983 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
9985         * pic/lex.c (get_delimited): Allow tabs before delimiter.
9987 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
9989         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
9990         declaration of wait() in header files.
9991         * Makefile: Get rid of -DHAVE_UNION_WAIT.
9993         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9995         * lib/lib.h: Declare return type of strerror as char *.
9997         * man/Makefile: Add g flag to sed substitutions.
9998         * Makefile (shgroff, bindist): Likewise.
10000 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
10002         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
10003         * ps/devps/prologue (PBEGIN): Define showpage after pushing
10004         userdict.
10006 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
10008         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
10009         userdict.
10011 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
10013         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
10014         group.
10016 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
10018         * troff/input.c (define_number_reg):  If currently undefined,
10019         don't define it if the argument is an invalid expression.
10021         * Makefile: Ignore return value of `if' commands without `else'
10022         parts.
10024         * Makefile: Split up CPPDEFINES into a series of separate
10025         configuration options.
10027         * troff/input.c (init_registers): Use time_t instead of long
10028         unless LONG_FOR_TIME_T is defined.  Use returned result rather
10029         than passing pointer.
10030         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
10032         * lib/Makefile (fontpath.h): Use gendef.
10034 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
10036         * troff/input.c (input_iterator::shift): Delete argument name.
10037         * troff/node.c (suppress_output_file::really_begin_page,
10038         suppress_output_file::really_transparent_char, node::ascii_print,
10039         node::tprint): Delete names of unused arguments.
10041 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
10043         * refer/label.y (string):  Pass $4 to command_error.
10045 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
10047         * Version 1.03 released.
10049 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
10051         * Makefile: Pass definition of SHELL in SUBFLAGS.
10053         * gendef: New file.
10054         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
10055         ps/Makefile: Use gendef to construct header files that are
10056         constructed from the Makefile.
10058         * macros/Makefile: make all should build stripped version of tmac.e.
10060         * refer/Makefile (clean): Remove y.output.
10062 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
10064         * ps/pfbtops.c (main): Add -v option which prints out a version
10065         number.
10066         * ps/Makefile (pfbtops): Link with libgroff.a.
10068 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
10070         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
10071         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
10073         * refer/lkbib.c (main): Always terminate reference with blank
10074         line.
10075         * refer/lookbib.c (main): Likewise.
10077         * refer/linear.c (file_buffer::load): Check that the file is not a
10078         binary file.
10080         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
10081         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
10082         Delete second inclusion of <sys/param.h>.
10084 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
10086         * troff/token.h (token::special): Deleted.
10088         * tbl/main.c (process_format): Rework so that opt->tab_char is
10089         recognized only when appropriate.
10091         * ps/Makefile (clean): Remove pfbtops.
10093 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
10095         * lib/font.c (text_file::next): Don't return if we have got a
10096         blank line.
10098 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
10100         * refer/refer.c (store_reference): Get hash code from old_table[i]
10101         when rehashing the table.
10103 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
10105         * eqn/box.c (box::top_level): Save size and prev size using \R and
10106         restore it afterwards. Set the size to the size at the beginning
10107         of the line.
10108         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
10109         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
10111         * refer/Makefile (limits.h): Use ./genlimits.
10113 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
10115         * refer/index.c: Delete declarations of stat() and fstat().
10117 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
10119         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
10121 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
10123         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
10125 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
10127         * troff/input.c (token::get_char): Handle \e.
10129         * refer/linear.c: Delete declarations of fstat() and stat().
10131 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
10133         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
10134         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
10136 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10138         * troff/input.c (do_define_macro): Improve error handling for end
10139         of file while defining macro.
10141 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10143         * eqn/box.h: Fix declaration of set_gsize.
10144         * eqn/box.c (set_gsize): Make argument const char *.
10145         (gsize): Declare as char *.
10146         * eqn/main.c (main): Don't convert gsize to int.
10147         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10149         * Version 1.02 released.
10151 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10153         * macros/tmac.andoc: New file.
10154         * macros/Makefile: Install tmac.andoc.
10156         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10157         operator new and delete on OP_DELETE_BROKEN not being defined.
10158         * Makefile: Mention OP_DELETE_BROKEN.
10160 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10162         * Makefile (bindist): Pass SUBFLAGS.
10164 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10166         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10168         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10169         parameter.
10171         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10173         * ps/ps.h, ps/psrm.c: Make comment_table and
10174         header_comment_table local to resource_manager::process_file.
10176         * groff.sh: With -TXps pass -printCommand option to gxditview.
10178         * groff.c (possible_command::print): Implement using
10179         append_arg_to_string.
10181         * xditview: Merge in new implementation with own ChangeLog.
10183 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10185         * groff.c (main): Implement PRINT_OPTION.
10186         (append_arg_to_string): New command.
10187         (device_table): Set PRINT_OPTION flag for Xps.
10189 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10191         * troff/groff.h: Rename to troff.h.
10193         * pic/lex.c (lookup_keyword, docmp): New functions.
10194         (get_token): Use new lookup_keyword.
10195         Don't include key.h.
10196         * pic/key.[ch], pic/pic.gperf: Deleted.
10197         * pic/Makefile: Remove gperf stuff.
10199         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10200         into output.h.
10201         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10203         * troff/Makefile, troff/node.c: Move definition of
10204         STORE_WIDTH into node.c.
10206         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10208 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10210         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10211         dvi/devdvi/texb.map: Add lq and rq.
10212         dvi/devdvi: Regenerate fonts.
10213         * ps/devps/textmap: Add lq and rq.
10214         * ps/devps: Regenerate fonts.
10215         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10216         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10218         * pic/object.c (position_rectangle): When checking radius
10219         cope with possiblity that width or height is negative.
10220         (box_object::box_object): Have separate xrad and yrad with
10221         signs matching signs of dim components.
10222         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10223         (box_object::print): With rounded boxes use absolute values
10224         for dim and rad arguments.
10226         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10227         in fontpath.h.
10229         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10231         * various files: Add explicit destructors to keep Saber CC +d
10232         happy.
10234 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10236         * eqn/box.c (box::top_level): Restore fonts correctly after
10237         font changes in line containing inline equation.  Also
10238         restore previous font as well as current font.
10239         * eqn/pbox.h: Define necessary string and register names.
10241         * troff/input.c (token::next): Case 'R' calls do_register.
10242         (do_register): New function.
10244 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10246         * groff.c, groff.sh: Support Xps device.  Allow each device
10247         to have a pseudo_name and a real_name.
10249         * groff.c (run_commands): Don't print `Broken pipe' messages.
10251         * ps/pfbtops.c: New file.
10252         * ps/Makefile: Add pfbtops.
10254         * troff/number.c (parse_term): Improved error message.
10256 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10258         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10260         * Makefile: Integrate refer.
10261         * refer: New directory.
10262         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10263         man/lkbib.man: New files.
10264         * man/Makefile: Support refer man pages.
10266         * lib/lib.h: Declare is_prime.
10267         * lib/prime.c: New file.
10269         * troff/input.c (macro_source): New function.
10270         (init_input_requests): Bind "mso" to macro_source.
10272         * troff/env.c (environment::possibly_break_line): Maintain
10273         pointer to pointer to node to be split in ndp so as to avoid
10274         using address of freed node.
10276         * troff/env.c (environment::hyphenate_line): Maintain pointer to
10277         pointer to first node to be hyphenated in startp so as to
10278         avoid using address of freed node.
10280         * troff/env.c (class trie, class hyphen_trie): Make the
10281         elements of the trie be of type char not unsigned char.
10282         Declare arguments to be const char* instead of unsigned char *.
10283         
10284         * troff/env.c (hyphenate): Initialize hbuf[0].
10286         * troff/input.c (set_string): Declare p to be char * and cast
10287         *p to unsigned char when necessary.
10289         * troff/input.c (do_define_macro): Declare s to be const
10290         char*. Cast element to unisgned char when necessary, Declare
10291         d to be an int.  Handle EOF better.
10293         * troff/Makefile, troff/input.c: Different scheme for passing
10294         definitions of MACROPATH, HYPHENFILE and DEVICE.
10296 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
10298         * tty/devascii/R.proto: Delete entry for em.
10299         * tty/devlatin1/R.proto: Likewise.
10301 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
10303         * troff/input.c (translate): Stop when we get a space. Treat eof
10304         like newline.
10306         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10308 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
10310         * tbl/main.c (process_format): A font name following a `f'
10311         modifier that starts with a digit can be only one character long.
10312         Also deal with EOF on the second character of the font name.
10314 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
10316         * troff/input.c (token::next): Turn \~ into an
10317         unbreakable_space_node.
10318         * troff/node.c (unbreakable_space_node): New class.
10319         * troff/node.h: Declare it.
10321 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
10323         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
10324         it's >= 0, before outputting it as a single byte.
10326 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
10328         * lib/font.c: Make font_char_metric::code an int.
10329         (font::get_code): Change return type to int.
10330         (font::load): Allow code to be arbitrary integer.
10331         * lib/font.h (font::get_code): Change return type to int.
10332         (font::number_to_index): Change argument type to int.
10333         * troff/input.c (token::next):  In case 'N', allow any value.
10334         Store value in token::val.
10335         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10336         (token::get_char, token::add_to_node_list, token::process): Get
10337         number from val.
10338         (charinfo::set_number): Change argument to int.
10339         (charinfo::get_number):  Require that NUMBERED flag be set.
10340         (get_charinfo_by_number): Store numbered characters not between 0
10341         and 255 in a dictionary.
10342         * troff/charinfo.h (get_charinfo_by_number): Change argument type
10343         to int.
10344         (charinfo::number): Change type to int.
10345         (charinfo::set_number): Change type of set_number to int.
10346         * troff/node.c (troff_output_file::put_char_width,
10347         troff_output_file::put_char): Test whether character is numbered
10348         using charinfo::numbered().
10349         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10350         values of num.
10351         * lib/nametoindex.c: New implementation to cope with arbitrary
10352         number characters.
10354         * troff/input.c (token::operator==): Test val for
10355         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10356         TOKEN_SIZE.
10358         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10359         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
10361 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
10363         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
10364         variable.
10366         * all Makefiles: rm targets of cp and >.
10368         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10369         it.
10371         * eqn/lex.c (def_table): Add dollar.
10373 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
10375         * troff/input.c (do_width): Push back newline before closing delim
10376         like do_bracket.
10378 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
10380         * groff.c (possible_command::prepend_arg): New function.
10381         (main): Prepend device -m option.
10382         * groff.sh: Put device -m options before command-line options.
10384 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
10386         * macros/tmac.an (IP): Quote argument to TP.
10388         * ps/ps.c (main): New option -b, which sets...
10389         (broken_flags): New variable.
10390         (ps_printer::~ps_printer): Incorporate the setup section in the
10391         prolog if (broken_flags & NO_SETUP_SECTION).
10392         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10393         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10394         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10395         ps_printer::print_needed_font_comment,
10396         ps_printer::print_supplied_font_comment,
10397         ps_printer::print_include_font_comments,
10398         ps_printer::lookup_doc_font, ps_printer::download_fonts,
10399         ps_printer::read_download_file, read_document_fonts, add_font,
10400         skip_line, parse_fonts_arg, document_font::document_font,
10401         document_font::~document_font, document_font::download,
10402         ps_output::include_file):  Deleted.
10403         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10404         rather than %!PS-Adobe-2.0.  Make calls to
10405         resource_manager::need_font for each font that we used. Replace
10406         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10407         print_supplied_font_comment, print_needed_font_comment by call to
10408         resource_manager::print_header_comments. Output %%Orientation
10409         comment. Output %%Requirements: numcopies comment if ncopies > 1.
10410         Don't output the prolog directly.  Instead call
10411         resource_manager::output_prolog.  Only define #copies when ncopies
10412         > 1.  Delete calls to print_include_font_comments  and
10413         download_fonts.  Add call to resource_manager::document_setup.
10414         (ps_printer::do_file): Call resource_manager::import_file instead
10415         of including it ourselves.
10416         (ps_printer::do_import): Likewise.  Also don't call
10417         merge_import_fonts. Push userdict on the dictionary stack before
10418         and pop it afterwards.
10419         Move declaration of ps_output into ps.h.
10420         * ps/psrm.c: New file implementing resource_manager class.
10421         * ps/ps.h: New file declaring ps_output and resource_manager
10422         classes.
10423         * ps/devps/zapfdr.ps:
10424         * ps/devps/symbolsl.ps:
10425         * ps/devps/prologue:  Use 3.0 conventions.
10426         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10427         Add default definition of BROKEN_SPOOLER_FLAGS.
10428         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
10429         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10431 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
10433         * etc/grog.pl: New file.
10434         * Makefile (GROG): New variable.
10435         Add GROG to SUBFLAGS.
10436         * etc/Makefile (GROG): New variable.
10437         (install.nobin): Install $(GROG) rather than grog.sh.
10439 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
10441         * eqn/special.c (special_box::compute_metrics): Make the input and
10442         output strings the same.  Get the new height and depth from the
10443         predefined height and depth registers.  Also make subscript kern
10444         and skew available.
10445         (special_box::compute_subscript_kern, special_box::compute_skew):
10446         New functions.
10448         * eqn/box.c (pointer_box::compute_skew,
10449         simple_box::compute_metrics, box::top_level)
10450         * eqn/text.c (prime_box::compute_metrics,
10451         prime_box::comput_subscript_kern)
10452         * eqn/limit.c (limit_box::compute_metrics):
10453         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10454         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10455         negative numbers in `nr' requests with a leading 0.
10457 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
10459         * eqn/special.c: New file.
10460         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
10461         Add new rule for simple.
10462         * eqn/lex.c (token_table): Add SPECIAL.
10463         * eqn/box.h: Declare make_special_box.
10464         * eqn/Makefile: Add special.[co].
10466 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
10468         * ps/devps/prologue: Possibly set packing to true while defining.
10469         Create grops dictionary here.  Initialize local variables before
10470         defining procedures.
10471         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10472         the dictionary stack. Set strokeadjust and overprint to false if
10473         the relevant operators are defined.
10474         (PEND): New procedure.
10475         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10476         prologue.  Do everything else in the setup section.
10477         (ps_printer::do_import): Just call PBEGIN and PEND around the
10478         picture. Also push userdict before, and pop it afterwards.
10480 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
10482         * troff/node.c (bracket_node::tprint): Brackets were being printed
10483         1m too low.
10485         * macros/tmac.an (SH, SS): Set fill mode.
10487 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
10489         * troff/div.c (top_level_diversion::begin_page): Set
10490         high_water_mark to 0.
10492 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
10494         * man/mdate.sh: New file.
10495         * man/mdate.c: Deleted.
10496         * man/Makefile: Use mdate.sh instead of mdate.
10497         (mdate): Deleted.
10499         * eqn/lex.c (do_gsize): Supply missing argument to error message.
10501 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
10503         * man/mdate.c: New file.
10504         * man/*.man: Replace modification date by @MDATE@.
10505         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10506         (mdate): New target.
10508         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10509         Remove illegal input characters.
10511 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
10513         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10515 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
10517         * troff/div.c (begin_page): Change behaviour when
10518         !first_page_begun and !break_flag.
10520         * troff/input.c (do_name_test): Return 0 if argument is empty.
10522         * troff/input.c (read_long_escape_name): Require closing ] to be
10523         at same input level as opening [.
10525         * troff/input.c (read_increment_and_escape_name): New function.
10526         (get_copy, process_input_stack): Use this for \n.
10528 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
10530         * troff/div.c (top_level_diversion::begin_page): Ignore the
10531         current value of page_number if !first_page_begun.
10533         * groff.c (main): Fix declaration of buf.
10535         * troff/input.c (do_name_test): New function.
10536         (token::next): Implement \A.
10537         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10538         (token::description, token::add_to_node_list, token::process):
10539         Handle TOKEN_ESCAPE.
10540         * troff/token.h: New token TOKEN_ESCAPE.
10542 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
10544         * pic/main.c (do_picture): Allow space before and after filename
10545         following `<'.  Check that the filename is not empty.
10547 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
10549         * Version 1.01 released. 
10551         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10553         * dvi/tmac.dvi: ftr HR to H.
10555         * macros/tmac.e: Round up computation of $r.
10557         * xditview/tmac.X:  Don't give up completely in compatibility mode.
10558         Use \n(.s instead of \n[.s].
10560         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10561         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10562         Add u to factors inside \s[...]. Rename frac to dvi-frac.
10563         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10564         short names in the char definitions.
10566         * ps/tmac.ps: Don't give up completely in compatibility mode.
10567         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10568         quote in front of \n(.s. Add u to factors inside \s[...].
10570 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
10572         * tty/tmac.tty: Call the nroff request.
10574         * macros/tmac.e ((x, )x):  Better definitions that work properly
10575         in a diversion.
10576         (@0, @1): Helper macros for (x.
10578         * macros/tmac.e ($s, hl): Use \l rather than \D.
10580         * tty/tmac.tty: Make it work better in compatibility mode.
10581         (pchar): Rename to tty-char.
10583         * macros/tmac.e (@E): New macro.
10584         (r, i, b, rb, bi): Use @E.
10586         * macros/tmac.e (@F): Don't use (;...) syntax.
10588         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
10589         it was modified for groff.
10591         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10593         * macros/tmac.e (<., .>): Removed.
10594         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10596         * macros/tmac.e: Remove check that groff is being used.
10598         * macros/tmac.e (@C): Change families only if using groff; turn
10599         compatibility mode off while changing familes. Save compatibility
10600         mode before changing families and restore it afterwards.
10602         * macros/tmac.e (@h): Remove test for offset + line length.
10604         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
10605         (lo, th, ac): Define to call @S instead of using als.
10607         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10608         the ratio of the vertical spacing to the point size in units
10609         expressed as a percentage.  Use these instead of $10r and $10R,
10610         Delete $10r and $10R.
10612         * lib/font.c (font::load): In default computation of space_width,
10613         divide by sizescale.  Use scale_round.
10615         * macros/tmac.an (TP): Don't call `nf'.
10616         (an-do-tag): Don't call `fi'.
10618 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
10620         * troff/input.c (process_input_stack): Handle the case where
10621         spaces at the beginning of an input line are followed by a
10622         newline.
10624 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10626         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10627         * groff.sh: Use pic -x with the dvi device.
10629         * dvi/devdvi/FontMakefile (H): Don't use -s.
10631         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10632         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10633         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10634         in FONTS.
10636 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10638         * ps/psfig.diff: New file.
10639         * ps/tmac.psfig: New file.
10641 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10643         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10644         (]-): Don't call ref*do-tl.
10646         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10648         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10649         (fn@do-FS): Rename to fn*do-FS.
10651         * troff/input.c (transparent_translate): New function.
10652         (process_input_stack): Apply transparent_translate before calling
10653         diversion::transparent_output(unsigned char).
10655 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10657         * troff/input.c (do_define_macro): Define the macro before calling
10658         skip_line.
10660         * xditview/Makefile: Add DEVICES variable.  Change install target
10661         to use this.
10663 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10665         * groff.c (run_commands): Handle the possibility that there are
10666         child processes other than those forked by us.
10668 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10670         * lib/string.c (string::append): New function.
10671         * lib/stringclass.h: Declare it.
10673 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
10675         * eqn/main.c (main): New option -N which sets
10676         no_newline_in_delim_flag. 
10677         (do_file): If no_newline_in_delim_flag is set don't allow newlines
10678         in delimiters.
10679         * groff.c (main): Pass -N on to eqn.
10680         (help, synopsis): Mention -N.
10681         * groff.sh: Implement -N.
10683 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
10685         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10686         (]-): Call ref*do-tl if ref*need-tl is non-zero.
10687         (XP): Allow as initializer.
10689 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
10691         * troff/env.c (environment::wrap_up_field): If field_spaces are
10692         non-zero and we have a current_tab, subtract padding from
10693         tab_distance.  If this makes tab_distance <= 0, use the next tab
10694         stop instead.  If there isn't any next tab or it's a left tab,
10695         wrap up the current tab.
10696         (environment::start_field): Initialize tab_precedes_field.
10697         (environment::wrap_up_tab): If there's a current field, update
10698         pre_field_width, field_distance and tab_precedes_field.
10699         * troff/env.h (environment::tab_precedes_field): New member.
10701 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
10703         * ps/ps.c (ps_printer::do_file): New function.
10704         (ps_printer::special): Bind to `file' special.
10705         (ps_printer::do_exec): Set ndefined_styles to 0.
10707 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
10709         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10710         Avoid stripping first character from the start of unrecognized
10711         escapes.  Use lex_error instead of error to report errors.
10712         * eqn/lex.c (get_token): Rework handling of escapes.
10713         (lex_error): Move declaration into...
10714         * eqn/eqn.h.
10716         * xditview/xditview.c (main): Make -page option work.
10718         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10720 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
10722         * macros/tmac.s (B2): Correct size of box.
10724 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
10726         * macros/tmac.s (B2): Postpone drawing the box until in the
10727         top-level diversion.
10729         * tty/tmac.tty: Add font translations for C, CR, CW.
10731         * groff.c (synopsis, help): Document -i.
10732         * groff.sh: Implement -i.
10734         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10735         Simplify the construction of SN.
10737         * troff/number.c (parse_term): Give `|' a higher precedence.
10738         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10739         accordingly.
10741         * macros/tmac.s (B2): Use par@finish instead of par@reset.
10743 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
10745         * lib/string.c (string::move): New function.
10746         * lib/stringclass.h: Declare it.
10748 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
10750         * troff/env.c (distribute_space): Add optional argument
10751         `force_forward'.
10752         (environment::wrap_up_field): Call distribute_space with
10753         `force_forward' argument of 1.
10755 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
10757         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10758         Inline it.  Move reallocation into...
10759         (string::grow1): New function.
10760         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10761         dependencies to include library header files.
10762         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10764 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
10766         * macros/tmac.s (@NH): Use the same number registers than -ms does
10767         for the heading level counters.  Use the same string that -ms does
10768         for the number for this heading.
10770 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
10772         * lib/new.c (operator new): Cast result of malloc to char *.
10774         * troff/input.c (spring_trap, lookup_request): Add assert that nm
10775         is not null.
10777 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
10779         * groff.c (main): Support -i.
10781 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
10783         * pic/pic.h: Include <osfcn.h>.
10785         * ps/ps.c: Add declaration of mktemp.
10787         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10788         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10789         argument as union wait *.
10790         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10791         argument to union wait *.
10793 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
10795         * tty/tmac.tty: Add definition of \(co.
10797         * pic/object.c (make_arc): Only increase radius when radius
10798         strictly less than d.
10799         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10800         more than once.
10802         * troff/env.c (environment::environment(symbol),
10803         environment::environment(const environment *)):  Initialize
10804         input_trap_count.
10806 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
10808         * tbl/main.c (main): Add exit(0).
10810         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10812         * pic/main.c (main):
10813         * eqn/main.c (main):
10814         * tbl/main.c (main):
10815         * etc/soelim.c (main):
10816         * driver/printer.c (printer::~printer):
10817         * troff/node.c (real_output_file::~real_output_file,
10818         real_output_file::flush):  Check for errors on stdout.
10820         * most files: Add 1991 to copyright notice.
10822         * macros/tmac.s: Don't test \n(.x and \n(.y.
10824         * troff/input.c (token::next): Rename `escape_char' label to
10825         `handle_escape_char' and `normal_char' label to
10826         `handle_normal_char'.
10828 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
10830         * groff.c (main, synopsis, help): Support -a option.
10831         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
10832         to trflags while parsing options.
10834 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
10836         * troff/number.c (parse_term): With `m', `M' and `n' scale
10837         indicators, convert scale factor to hunits before scaling.
10839 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
10841         * lib/font.c (scale_round): Better test for overflow when n is
10842         negative.
10844 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
10846         * tbl/main.c (process_format): Add second argument of type
10847         options*. Change callers.  Allow opt->tab_char as well as '\t'
10848         between format items.
10850 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
10852         * macros/tmac.an (PD): With no arguments, make sure register PD is
10853         at least \n[.V].
10854         (TH): Call PD with no argument, instead of setting register PD
10855         directly.
10857 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
10859         * Version 1.00 released.
10861 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
10863         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10865         * dvi/devdvi/DESC: Mount CW instead of CR.
10867         * dvi/tmac.dvi: Add definition of \(tm.
10869         * dvi/devdvi/texsy.map: Add lh, and rh.
10870         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10871         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10873         * dvi/devdvi/FontMakefile: Generate H from cmss10.
10874         * dvi/devdvi/Makefile: Install H.
10875         * dvi/devdvi/H: New file.
10877 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
10879         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10880         be 0.
10882 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
10884         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10886         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10888         * macros/tmac.s (@EN): Handle the case where the equation is empty
10889         but the label is not.
10891 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
10893         * troff/groff.h: New warning category WARN_SPACE.
10894         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10895         WARN_SPACE to warning_table.
10896         (interpolate_macro): Give a warning of type WARN_SPACE if the name
10897         is longer than two characters and is not defined, but the first
10898         two characters do make a defined name.
10900         * PROBLEMS: New file.
10902         * CHANGES: New file.
10903         * README-0.6, README-1.00: Deleted.
10905         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10906         * xditview/devX75/Makefile: Make devX75-12.
10907         * xditview/devX100/Makefile: Make devX100-12.
10909         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10910         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10912 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
10914         * README-0.7: Rename to README-1.00.
10916         * macros/tmac.pic: New file.
10917         * macros/Makefile (install.nobin): Install tmac.pic.
10919 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
10921         * troff/env.c (hyphen_word): Correct the test for whether the
10922         token is a hyphen.  Reset npos to 0.
10924         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10926 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
10928         * macros/tmac.s (ds*common-end): Call par*reset.
10929         (PE): Likewise.
10930         (par@reset-indent): Deleted.
10932         * macros/tmac.s (@IP): Divert the label.
10934 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
10936         * xditview/draw.c (setGC): Use a line width of .1m rather than
10937         .04m by default; round rather than truncate value.
10939         * tbl/table.c (class empty_entry): New class.
10940         (empty_entry::empty_entry, empty_entry::line_type): New functions.
10941         (table::add_entry): Represent empty entries by objects of type
10942         empty_entry.
10943         (table_entry::line_type): Return -1.
10944         (table::determine_row_type): Ignore entries with line_type 0.
10945         Treat type -1 as non-lines.
10947 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
10949         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10950         macros/tmac.s: Rename \(-d to \(Sd.
10952 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
10954         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10955         * xditview/libXdvi/DviChar.c: Likewise.
10956         * dvi/devdvi/texsy.map: Add `<<', `>>'.
10958 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
10960         * troff/div.c (top_level_diversion::begin_page): Call
10961         init_output() if the_output is 0.
10963 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
10965         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10966         ESCAPE_c.
10967         (get_copy): Turn \E into ESCAPE_E.
10968         (token::process, asciify): Handle ESCAPE_E.
10970         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10971         (RD): New macro.
10972         (DS): Implement `.DS R'.
10974 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
10976         * macros/tmac.s (FS): New macro.
10978         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10980         * macros/tmac.s (cov*tl-init): Remove after first execution
10981         instead of aliasing to @nop.  Call top of page macro explicitly
10982         instead of setting trap; call @init first.  Set pg@top as top of
10983         page macro.
10984         (cov*auto-init): Deleted.  Set cov*tl-init instead of
10985         cov*auto-init as top of page trap. 
10986         (TL, LP): Do a break instead of calling cov*tl-init.
10987         (cov*print): With RP format but no TL, alias FS and FE to @FS and
10988         @FE; in this case also give a warning and always start another
10989         page. No need to set pg@top here.
10990         (cov*tl-init): Rename to cov*first-page-init.
10992         * macros/tmac.s (RP): Do `.pn 0'.
10993         (cov*tl-init): With RP format don't do `.pn 0'.
10995         * macros/tmac.s (pg@cs-top): Set no space mode.
10997         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10998         (cov*ab-init): Alias TL, AU and AI to these.
11000 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
11002         * macros/tmac.s (@EQ): Move the space before the equation into @EN
11003         (@EN): Do nothing unless \n[dl] is > 0.
11005 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
11007         * pic/object.c (ellipse_object::radius): New function.
11009         * VERSION: Change version to 0.7.
11011         * tbl/table.c (block_entry::do_divert): Declare return type as
11012         void.
11013         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
11015 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
11017         * troff/column.c: New file.
11018         * troff/Makefile: Corresponding changes.
11020         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
11021         Friend of vunits.
11023         * troff/div.c (top_level_diversion::space): If the space causes
11024         the first-page transition and springs a trap, truncate the space
11025         to 0.
11027 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
11029         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
11030         the document.
11032         * pic/troff.c (troff_output::line_thickness,
11033         troff_output::set_fill): Do a horizontal motion to compensate for
11034         the width of the \D escape sequence.
11036 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
11038         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
11039         (not X75).
11041         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
11042         to printf.
11044         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
11045         Supply empty definition.
11046         (text_entry::simple_print, simple_text_entry::simple_print):
11047         Delete declarations.
11048         (table::add_entry): Represent empty entries by objects of type
11049         `simple_entry'.
11051 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
11053         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
11055         * tbl/table.c (left_text_entry::add_tab): New function.
11057         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
11058         initialize like LP.
11060 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
11062         * troff/env.c (environment::start_field): Give an error message if
11063         there is no next tab.
11065 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
11067         * troff/env.c (hyphenate): Skip initial elements with zero
11068         hyphenation code.
11070         * macros/tmac.s (par@init): Keep VS in points rather than units.
11072 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
11074         * pic/main.c (main): Implement `-c' option.
11075         * pic/output.h: Declare make_tpic_output().
11076         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
11077         protected.
11078         (tpic_output): New class.
11079         (tpic_output::tpic_output, tpic_output::set_pen_size,
11080         tpic_output::command, make_tpic_output): New functions.
11082 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
11084         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
11085         if they're not already defined.
11086         * tbl/table.c (init_output): Don't test \n(.g.
11088         * troff/input.c (do_if_request): Delete `g' condition. Recognize
11089         `d', `r' and `c' conditions even in compatibility mode.
11091 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
11093         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
11094         box.
11096 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
11098         * troff/env.h (environment::prev_line_interrupted): New member.
11099         (environment::get_prev_line_interrupted): New function.
11100         * troff/env.c (environment::newline): Set prev_line_interrupted.
11101         (environment::environment(const environment *),
11102         environment::environment(symbol)): Initialize
11103         prev_line_interrupted.
11104         * troff/input.c (process_input_stack): Don't give special
11105         treatment to space and newline at the beginning of the line if the
11106         previous line was interrupted.
11108 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
11110         * eqn/eqn.y: Disallow PRIME by itself.
11111         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
11112         PRIME.
11113         (def_table): Remove definition of '.  Define prime to be `.
11115         * eqn/eqn.y: Split off part of rule `script' into a new rule
11116         `nonsup'.
11118 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
11120         * macros/tmac.s ({, }): New string aliases.
11122 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
11124         * README-0.7: New file.
11126 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
11128         * macros/tmac.s: New file.
11129         * man/groff_ms.man: New file.
11130         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
11131         * Makefile.bd: Similarily.
11132         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
11133         definition of TMAC_S.
11134         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
11135         * macros/TODO: New file.
11137 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11139         * troff/env.c (right_justify): New function.
11140         (init_env_requests): Bind this to request "rj".
11141         (center_lines): Set right_justify_lines to 0. If we get a bad
11142         integer, center 1 line.
11143         (environment::environment(symbol), environment::environment(const
11144         environment *)): Initialize right_justify_lines.
11145         (environment::get_right_justify_lines): New function.
11146         (init_env_requests): Bind this to number_register ".rj".
11148         * troff/env.c (environment::choose_breakpoint): Implement
11149         hyphenation_margin and hyphenation_space.
11150         (environment::get_hyphenation_space,
11151         environment::get_hyphenation_margin): New functions.
11152         (init_env_requests): Bind these to .hys and .hym.
11153         (hyphenation_space_request, hyphenation_margin_request): New
11154         functions
11155         (init_env_requests): Bind these to hys and hym.
11156         (environment::environment(symbol), environment::environment(const
11157         environment *)): Initialize hyphenation_margin and
11158         hyphenation_space.
11159         * troff/env.h: Corresponding changes to class environment.
11161 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11163         * troff/div.c (blank_line): Always do a break.
11165         * eqn/box.c (do_text): Turn off escapes while appending text to
11166         string.
11168 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11170         * troff/input.c (while_break_request, while_continue_request): New
11171         functions.
11172         (init_input_requests): Bind these to "break" and "continue".
11173         (while_depth, while_break_flag): New variables.
11174         (while_request): Update while_depth.  Break out of loop if
11175         while_break_flag is set.
11177 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11179         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11180         rather than 0.
11182 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11184         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11186         * stringify: New file.
11187         * Makefile (groff.o): Use stringify.
11189         * xditview/tmac.X: Remove definition of \(rn.
11190         * xditview/libXdvi/DviChar.c: Remove radicalex from
11191         Adobe_symbol_map.
11193 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11195         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11196         (alphabetic_block_entry::alphabetic_block_entry,
11197         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11198         New functions.
11199         (block_entry::divert): Split off body into ...
11200         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11201         from the line length; also update the span width to dl+2n, and the
11202         alphabetic span width to dl.
11204         * driver/input.c (do_file):  While reading argument to D command,
11205         when expanding buffer, multiply szp by sizeof(int) rather than 2
11206         in the argument to memcpy.
11208         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11209         width of alphabetic columns.
11211 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11213         * troff/node.c (lookup_family): Supply second argument to lookup.
11215         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11216         search, return immediately if v is 0.
11218         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11219         (troff_output::start_picture): Set this reg.
11220         (troff_output::end_picture): Remove this reg
11221         * eqn/box.c (box::extra_space): Don't produce `\x's if
11222         EQN_NO_EXTRA_SPACE_REG is defined.
11224         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11225         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11226         character.
11228 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11230         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11231         requests.
11233         * troff/div.c (top_level_diversion::top_level_diversion):
11234         Initialize page_number to 0.
11236 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11238         * groff/troff (environment::environment(const environment *)):
11239         Initialize name to e->name, rather than "anonymous".
11241 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11243         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11244         requested_page.  Split middle part into ...
11245         (FindPage): New function.
11246         (SetValues): If we don't yet know the last page, and the requested
11247         page is greater than the current page, call FindPage.
11248         Update the font_map_string before doing this.
11250         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11251         Translate \(lh and \(rh into left and right double arrows.
11253         * troff/node.c (class hyphen_inhibitor_node): New class.
11254         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11255         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11256         hyphen_inhibitor_node::type,
11257         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11258         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11259         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11260         word.
11262 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
11264         * troff/node.h (dummy_node::get_hyphenation_type,
11265         transparent_dummy_node::get_hyphenation_type):  Declare them.
11266         * troff/node.c: (dummy_node::get_hyphenation_type,
11267         transparent_dummy_node::get_hyphenation_type): New functions.
11269 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
11271         * xditview/libXdvi/draw.c: If M_PI not defined after including
11272         math.h, then define it.
11274         * xditview/Makefile: Add definition of AR. Pass it to the submake
11275         in libXdvi.
11276         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11278 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
11280         * troff/dictionary.h (object_dictionary::alias): Declare return
11281         value as int.
11282         * troff/dictionary.c (object_dictionary::alias): Return non-zero
11283         if the old name was defined.
11284         * troff/input.c (alias_macro): Give a warning if the old name was
11285         not defined.
11286         * troff/reg.c (alias_reg): Likewise.
11288 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
11290         * troff/input.c (token::next): Delete implementation of \R.
11292         * macros/Makefile: Strip comments from tmac.e while installing it.
11294         * troff/input.c: New variable `nroff_mode'.
11295         (troff_request, nroff_request): New functions.
11296         (init_input_requests): Bind `troff' and `nroff' to troff_request
11297         and nroff_request.
11298         (do_if_request): Compute results of t and n conditions from
11299         nroff_mode.
11301         * text/text.c (split_text): Fix typo in >=.
11303         * eqn/lex.c: Add definition of `==' to def_table.
11305 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
11307         * pic/tex.c (tex_output::start_picture): Change the definitions of
11308         \graph and \graphtemp so that they work properly with Plain TeX.
11310         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11311         argument to `ar' is not less than the first.
11313         * pic/pic.y: Allow a comma between elements of the variable list
11314         in the argument to `reset'.
11316         * pic/object.c (arc_object::arc_object): Fix computation of
11317         radius.
11319         * eqn/main.c (main): Add exit(0).
11321 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
11323         * troff/div.c (begin_page): Test no_space_mode after doing the
11324         break, but still push the page ejector cookie before doing the
11325         break.  Also set the next page number after doing the break.
11326         
11327         * xditview/xditview.c (NewFile): Don't set the title and icon name
11328         if this is the first file and its name is `-'.
11329         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
11330         the X75 and X100 devices.
11331         (main): If a device has the XT_OPTION flag set and there's exactly
11332         one file argument, pass the driver -xrm and -title options to set
11333         the icon name and window title to the name of the file.
11335         * troff/env.c (environment_switch): If there was an argument but
11336         it wasn't a valid number or name, then pop an environment but
11337         don't give an error message on underflow.
11339         * troff/number.c (start_number): Correct spelling in error message.
11341         * troff/input.c (token::delimiter): Don't print an error message
11342         if err is false.
11344         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11345         ParseDrawFunction if dw->display_enable is true.
11347 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
11349         * pic/pic.y: Parse text positioning like normal attributes, so as
11350         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
11351         positioning attribute.
11353 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
11355         * tbl/main.c (process_data): When in state START while reading a
11356         text block, don't change to state MIDDLE if c is a newline.
11358 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
11360         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11361         so as to avoid shadowing parameter.
11363 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
11365         * tbl/table.c (trim_space): Deleted.
11366         (table::add_entry): Don't call trim_space.
11368 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
11370         * VERSION: Change version to 0.6.
11372         * troff/number.c (parse_expr): Make == work.
11374 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
11376         * man/grog.man: New file.
11377         * man/Makefile: Add grog.n to MAN1PAGES.
11378         * etc/grog.sh: New file.
11379         * etc/Makefile: Install grog.sh as grog.
11381 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
11383         * troff/input.c (token::next): Implement \E.
11385 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
11387         * xditview/tmac.X: Change font translations to match tmac.ps.
11389         * troff/input.c (non_empty_name_warning): Don't give a warning if
11390         `\{' terminates the name.
11392 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
11394         * ps/devps/symbol.diff: New file.
11395         * ps/devps/FontMakefile: Mention symbol.diff.
11397 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
11399         * troff/node.c (font_position): Use get_long_name to read the
11400         external_name.
11402         * troff/env.c (environment_switch): If we get a number that's < 0
11403         or >= NENVIRONMENTS, treat it like a name.
11404         Change NENVIRONMENTS to 10.
11406         * troff/groff.h: Remove definition of FONTS_MAX.
11407         * troff/node.h (class font_family): Make map a pointer instead of
11408         an array. Add a map_size member. Make it a class. Make nm const
11409         and public. Make invalidate_fontno a friend.
11410         * troff/node.c: Define font_table_size. Make font_info a pointer
11411         rather than an array.
11412         (class troff_output_file): Allocate font_position dynamically. Add
11413         nfont_positions member.
11414         (troff_output_file::set_font): Grow font_position if necessary.
11415         (troff_output_file::~troff_output_file): Delete font_position.
11416         (troff_output_file::troff_output_file): Allocate font_position.
11417         (grow_font_table): New function.
11418         (troff_output_file::really_begin_page,
11419         troff_output_file:really_copy_page): Use nfont_positions rather
11420         than FONTS_MAX.
11421         (mount_font_no_translate, mount_style): Call grow_font_table if
11422         necessary.
11423         (font_family::font_family): Allocate map.
11424         (font_family::make_definite): Grow map if necessary. Use
11425         font_table_size instead of FONTS_MAX.
11426         (font_family::~font_family): New function.
11427         (invalidate_fontno): Use font_family::map_size.
11428         (get_fontno, env_space_width, env_half_narrow_space_width,
11429         env_narrow_space_width, symbol_fotno, is_good_fontno,
11430         get_bold_fontno, make_glyph_node): Use font_table_size rather than
11431         FONTS_MAX.
11432         (next_available_font_position): Never return 0.
11434 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
11436         * ps/tmac.ps: Add font translations for compatibility with dpost.
11438 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
11440         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11441         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11442         Move definitions baseline_sep, shift_down, column_sep,
11443         matrix_side_sep into...
11444         * eqn/box.c: Add them to param_table.
11445         * eqn/pbox.h: Add declarations to pbox.h.
11447         * troff/input.c (set_string): Cast value to unsigned char *.
11449         * troff/token.h (process_input_stack): Declare it static before
11450         declaring it a friend.
11452 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
11454         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11455         and bottom.
11456         * dvi/devdvi/EX: Regenerate.
11458         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11459         transparent.
11461 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
11463         * eqn/lex.c: In defaults_table, make definition of `dot' call
11464         `dot_def'.  Don't explicitly make it roman.  Similarily for other
11465         accents.
11467         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11468         argument.
11469         (for_input::get, for_input::peek): Use this.
11470         (do_for): Add by_is_multiplicative argument.
11471         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11472         Change semantic value of optional_by to be a double plus a flag
11473         saying whethet the by clause is multiplicative.
11475         * eqn/lex.c (get_delimited_text): Remember location of start of
11476         definition.  Improve error handling when EOF is encountered.
11478         * lib/font.h: Rename handle_x_command to
11479         handle_unknown_font_command.
11480         * lib/font.c (font::load): Call handle_unknown_font_command for
11481         any unknown command in the font description file.  Don't call
11482         handle_x_command. Include the name of the command in the argv.
11483         Improve message for unknown command after kernpairs or charset
11484         command.
11485         * ps/ps.c (ps_font::handle_x_command): Rename to
11486         handle_unknown_font_command.  Remove message about `x download'
11487         command.  Give error message for wrong number of arguments.
11488         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11489         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11490         handle_unknown_font_command. Give an error message for wrong
11491         number of arguments.  Rename design_size to designsize.
11492         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11493         checksum', `designsize' instead of `design_size'.
11495 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
11497         * eqn/*.[chy]: Change underaccent to uaccent.
11499         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
11500         give it the same precedence as ACCENT.
11501         * eqn/other.c (make_underaccent_box): New function.
11502         * eqn/box.h: Declare it.
11503         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11504         def_table.
11506 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
11508         * pic/pic.y (reset_all): New function. Called in rule for RESET.
11509         (parse_init): Call reset_all.
11510         (define_variable): When defining scale reset only those
11511         pre-defined variables that are scaled.
11512         (defaults_table): Add `scale' as non-scaled value.
11514         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11515         together with the text; allow any number of positioning words;
11516         allow center as a positioning word.
11518         * pic/object.c (output::compute_scale): Get picture maximum height
11519         and width from variables called maxpswid and maxpsht.
11520         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11522 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
11524         * pic/object.c (object_spec::make_text): Multiply textht by number
11525         of text items.
11527         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11528         occur.
11529         (do_sprintf): New function.
11530         (pic.gperf): Add sprintf token.
11531         (text, sprintf): New rules.
11533         * pic/pic.y: `rand()' with no arguments returns a random number
11534         in the range [0,1).
11536         * pic/pic.y: Allow a bare expression to be an attribute: change
11537         precedences to support this.  Change optional_ordinal rule to
11538         optional_ordinal_last to avoid reduce/reduce conflict.
11539         * pic/object.c (object_spec::object_spec): Initialize direction.
11541         * pic/pic.y: Implement ^ operator meaning exponentiation.
11543         * troff/node.h: Add default argument to mount_font.
11544         * troff/node.c (font_position): Read an optional third argument
11545         giving the external_name.
11546         (mount_font): Add optional argument giving the external_name.
11547         (mount_font_not_translate): Have additional argument giving
11548         external name.  Use this name to load the font.  Pass both names
11549         to font_info::font_info.
11550         (font_info::font_info): Have additional argument giving
11551         external_name.
11552         (class tfont): New member external_name.
11553         (font_info::get_tfont): Use external name to construct tfont_spec.
11555 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
11557         * eqn/lex.c (init_table): Add argument giving device.  Define
11558         name of device to be "1".
11559         (do_ifdef): Counts as true if the argument has been defined with
11560         `define'.
11561         * eqn/main.c (main): Call init_table with device argument. Make
11562         device local to main.
11563         * eqn/eqn.h: Change declaration of init_table. Remove declaration
11564         of device.
11566         * pic/lex.c (get_delimited): Allow text to be delimited by
11567         matching {}s.  Don't recognize ending delimiter within a string.
11569         * troff/input.c (get_delim_name): New function.
11570         (token::next): Implement \C.
11572         * lib/font.c (font::load): Grok ---.  Add an alias for each
11573         character based on its code.
11574         (font::get_code_width): Deleted.
11575         * lib/font.h (class font): Declare font::number_to_index().
11576         Remove declaration of font::get_code_width.
11577         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11578         to indices of named characters.
11579         (font::number_to_index): New function.
11580         * troff/input.c (font::number_to_index): New function.
11581         (get_charinfo_by_number, charinfo::get_number,
11582         charinfo::set_number): New functions.
11583         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11584         (token::process, token::description, token::get_char,
11585         token::add_to_node_list, token::operator==): Handle
11586         TOKEN_NUMBERED_CHAR.
11587         * troff/charinfo.h: Declare get_charinfo_by_number,
11588         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
11589         charinfo class.
11590         (charinfo::numbered): New function.
11591         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11592         * troff/env.h (class environment): Remove declaration of ...
11593         * troff/env.c (environment::make_numbered_char_node): Deleted.
11594         * troff/node.c (make_numbered_node): Deleted.
11595         (class numbered_glyph_node): Remove.
11596         (troff_output_file::put_char_width, troff_output_file::put_char):
11597         Handle numbered chars.
11598         (troff_output_file::numbered_char): Removed.
11599         (tfont::get_code_width): Removed.
11600         (make_glyph_node): Don't search special fonts for numbered
11601         characters.
11602         * troff/node.h: Remove declaration of make_numbered_node.
11603         * driver/input.c (do_file): Handle N command.
11604         * driver/printer.h: Add declaration of ...
11605         * driver/printer.c (printer::set_numbered_char): New function.
11606         * dvi/tfmtodit.c (main): Generate unnamed entries.
11607         * ps/devps/afmtodit: Likewise.
11608         * xditview/xtotroff.c (MapFont): Likewise.
11609         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11611         * tbl/main.c (process_format): If multiple widths are specified
11612         for a column but all the widths are the same, don't give an error
11613         message.
11615         * tbl/table.c (table::do_row): If the current row is all lines and
11616         the stuff doesn't contains a line, mark the top of the row after
11617         printing stuff before the row.  If the current row is not all
11618         lines and the stuff doesn't contain a line, don't unnecessarily
11619         mark the top of the row before printing the stuff.
11620         
11621 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
11623         * troff/groff.h: Remove MAX_PATH.
11624         * troff/input.c (open_file): Dynamically allocate space for the
11625         path.
11626         (open_mac_file, process_macro_file): Corresponding changes.
11628 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11630         * troff/node.h (class output_file): Make copy_file pure.  Add
11631         vspace method ifdef COLUMN. Add is_printing method.
11632         * troff/node.c: Add class printing_reg. Add class
11633         real_output_file. Derive other output_file classes from
11634         real_output_file; in these classes rename begin_page to
11635         really_begin_page, print_line to really_print_line, copy_file to
11636         really_copy_file, transparent_char to really_transparent_char.
11637         Move output_file::flush to real_output_file. Add printing member
11638         to class output_file.
11639         * troff/div.h: Remove printing member from top_level_diversion.
11640         Add vspace member function to class diversion ifdef COLUMN. Add
11641         some declarations ifdef COLUMN.
11642         * troff/div.c (top_level_diversion::copy_file,
11643         top_level_diversion::transparent_output,
11644         top_level_diversion::output): Don't test printing member before
11645         output.
11646         * troff/input.c: Handle initial variable_space_request ifdef
11647         COLUMN.
11648         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11649         but comment it out.
11651 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11653         * troff/div.c (diversion::need): Make any space forced.  If we
11654         sprung a trap, set truncated_space to minus the distance to the
11655         trap and set needed_space to the amount that was needed.
11656         (top_level_diversion::space): A forced space turns no_space_mode
11657         off.
11658         (class constant_vunits_reg): New class.
11659         (init_div_requests): Implement number registers .trunc and .ne
11660         using constant_vunits_reg.
11661         (class truncated_space_reg): Deleted.   
11663         * troff/div.h: Don't have a no_space_mode member in diversion.
11664         Instead have it in top_level_diversion.
11665         * troff/div.c (diversion::diversion): Don't initialize
11666         no_space_mode.
11667         (top_level_diversion::top_level_diversion): Initialize
11668         no_space_mode.
11669         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11670         (macro_diversion::output): Don't clear no_space_mode.
11672         * troff/input.c (diverted_space_node::reread): Don't call
11673         environment::do_break.  In fill mode, act like a blank line.
11674         (diverted_copy_file_node::reread): Don't call
11675         environment::do_break.
11677         * troff/div.c (blank_line): New function.
11678         * troff/div.h: Declare it.
11679         * troff/input.c (process_input_stack): Call it.
11681         * troff/div.c (truncated_space_reg::get_string): New function.
11682         (init_div_requests): Bind to .trunc.
11683         (space_request, top_level_diversion::space,
11684         top_level_diversion::output, macro_diversion::space,
11685         macro_diversion::output): Update truncated_space.
11686         (macro_diversion::output): Redo calculations when trap sprung.
11687         (macro_diversion::output, macro_diversion::space): No need for
11688         trap_flag.
11690         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11691         after truncating post line spacing.
11693 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
11695         * ps/devps/prologue (MF, SF): Make them work even if setfont is
11696         defined as a procedure rather than as an operator.
11698 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
11700         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11702 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
11704         * troff/div.c (top_level_diversion::output): Merge
11705         output_file::print_line and output_file::end_of_line member
11706         functions.
11707         * troff/div.h (class output_file):
11708         * troff/node.c (troff_output_file::print_line,
11709         troff_output_file::end_of_line, output_file::end_of_line,
11710         ascii_output_file::print_line, suppress_output_file::print_line):
11711         Corresponding changes.  
11713 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
11715         * troff/input.c (token::next): Don't give a warning for `\.'.
11717         * troff/env.c (environment::get_center_lines): New function.
11718         (init_env_requests): Bind number register .ce to it.
11719         * troff/env.h: Declare it.
11720         * tbl/table.c (table::init_output): Define reset macro to restore
11721         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
11722         Then do .ce 0.
11723         (table::print): If center option not given, then imply center
11724         option if SAVED_CENTER_REG > 0.
11726 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
11728         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11729         Troff.ps from DOWNLOAD.
11730         
11731         * troff/Makefile: Change comment in DEFINES to avoid confusing
11732         System V make.
11734         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11735         code.  Don't try to catch errors with stopped.
11736         (check_line_lengths): New function.
11737         * ps/devps/prologue (EXEC): Deleted.
11738         (EBEGIN, EEND): New procedures.
11740 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
11742         * troff/input.c: Include request.h before node.h.
11743         * troff/node.c: Likewise.
11744         * troff/env.c: Likewise.
11745         * troff/div.c: Likewise.
11746         * troff/node.h (class special_node): Store argument as a macro
11747         rather than a char *.
11748         * troff/node.c (special_node::special_node, special_node::copy):
11749         Grok this.
11750         (special_node::~special_node): Deleted.
11751         (special_node::tprint): Deleted.
11752         (special_node::tprint_start, special_node::tprint_end,
11753         special_node::tprint_char): New functions.
11754         (troff_output_file::special): Deleted.
11755         (troff_output_file::start_special, troff_output_file::end_special,
11756         troff_output_file::special_char): New functions.
11757         * troff/input.c (special_node::tprint): New function.
11758         (do_special): Use macro not char *.
11759         (do_transparent_macro): Deleted.
11760         (token::next): Don't call do_transparent_macro.
11762         * troff/input.c (token::next): Add 'Y' case.
11763         (do_transparent_macro): New function.
11764         * troff/node.c (troff_output_file::special): Handle newlines with
11765         argument using new continuation convention.
11766         * driver/input.c (get_string): Cope with continuation convention.
11767         (do_file): Don't call skip_line after calling get_string(1).
11768         * ps/ps.c (ps_printer::special, ps_printer::do_import,
11769         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11770         arg.
11771         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11772         with +.
11774 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
11776         * troff/input.c (asciify): By default, illegal input characters
11777         should return empty string.
11779         * troff/input.c (copy_file): Handle first page transition like title.
11780         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11782         * troff/input.c (token::next): Improve error message for EOF after
11783         escape character.
11784         (input_char_description): New function.
11785         (get_char_for_escape_name): Use input_char_description.
11786         (token::next): Warn about unrecognized escape sequences.
11787         (warning_table): Add WARN_ESCAPE.
11788         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11789         accordingly.
11791         * troff/token.h: Remove declaration of process_input_stack.
11793         * troff/input.c: Remove declaration of init_hyphen_requests.
11794         * troff/request.h: Correct spelling in declaration of same.
11796         * troff/input.c (token::next): Check whether escape_char is 0.
11798 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
11800         * groff.c (main, usage, help): Implement -P and -L options.
11801         * groff.sh: Likewise.
11803         * troff/input.c (token::next): Use some gotos to avoid code
11804         duplication.
11806         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11807         Avoid calling symbol::symbol if name empty.
11809 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
11811         * troff/input.c (init_input_requests): Make \n(.x return the major
11812         version number and \n(.y return the minor version number.
11813         * troff/Makefile: Construct file majorminor.c defining
11814         major_version and minor_version automatically from ../VERSION.
11816         * troff/node.c (class glyph_node): Make operator new and operator
11817         delete public.
11818         (class ligature_node): Similarily.
11820         * troff/input.c (operator==(const macro &, const macro &)): New
11821         function.
11822         (non_interpreted_node::same): Use this.
11823         (string_iterator::string_iterator): Make macro& argument const.
11825         * troff/input.c (input_iterator::get): New function. Don't make
11826         asciify_macro or class non_interpreted_node friends of class
11827         input_iterator.
11828         (non_interpreted_node::interpret): Use input_iterator::get.
11829         (asciify_macro): Likewise.
11831         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11832         ~non_interpreted_node): Deleted.
11833         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11834         Deleted.
11836         * troff/symbol.h: Make all symbol member functions const.
11838         * lib/strtol.c: New file.
11839         * lib/Makefile: Add strtol.c.
11840         * Makefile: Define STRTOL as strtol.o to include strtol in
11841         libgroff.a.
11843 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
11845         * pic/troff.c (troff_output::simple_circle): Divide by scale.
11847 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
11849         * troff/input.c (do_special): Use input_level.
11851         * troff/token.h (TOKEN_BACKSPACE): New token.
11852         (token::backspace): New function.
11853         * troff/input.c (token::description, token::next, token::process):
11854         Grok TOKEN_BACKSPACE.
11855         (do_special): Turn TOKEN_BACKSPACE back into \b.
11857         * troff/token.h (token::leader): New function.
11858         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11860         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11862         * troff/input.c (do_special): Use token::description in error
11863         message.
11865 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
11867         * troff/input.c (decode_args): Combine quoted and
11868         quote_input_level variables. Make it a for (;;) loop.
11870         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11872         * troff/input.c (read_long_escape_name): The test for whether to
11873         expand buffer was off by 1.
11874         (read_string): Similarily.
11876 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
11878         * troff/input.c: Use `const int' rather than `static const int'.
11880         * troff/div.h (diversion::copy_file): Declare as pure virtual.
11881         (macro_diversion::copy_file): New function.
11882         * troff/node.h: New class diverted_copy_file_node.
11883         * troff/node.c: Implement it.
11884         * troff/input.c (copy_file): Use diversion::copy_file. Handle
11885         first page transition by pushing a diverted_copy_file_node.
11886         * troff/input.c (token::next, process_input_stack): Don't handle
11887         COPY_FILE_REQUEST.
11889 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
11891         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11892         whether space widths need adjusting.
11894         * troff/charinfo.h: Generalize translated_to_space to
11895         special_translation so as to allow translation to \&.
11896         * troff/input.c (translate): Allow translation to \&.
11897         (charinfo::*): Corresponding changes.
11898         * troff/node.c (make_node, node::add_char): Corresponding changes.
11899         * troff/node.h (dummy_node::dummy_node): Allow optional first
11900         argument.
11902         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11903         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11904         TOKEN_REQUEST.
11905         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11906         TOKEN_REQUEST with an argument of TITLE_REQUEST.
11907         (token::process): Grok that.
11908         * troff/input.c (copy_file): Handle first page transition like
11909         title by pushing a COPY_FILE_REQUEST cookie.
11910         (token::next, process_input_stack): Grok that.
11911         * troff/node.h (output_file::copy_file): Add x and y arguments.
11912         Make it non-pure.
11913         * troff/div.c (top_level_diversion::copy_file): Supply them.
11914         * troff/node.c (troff_output_file::copy_file): Add x and y
11915         arguments; moveto specified position.  Invalidate font_position
11916         array after copying file.
11917         (output_file::copy_file): New function.
11918         (suppressed_output_file::copy_file, ascii_output::copy_file):
11919         Removed.
11920         * troff/input.c (transparent_file): New function.
11921         (init_input_requests): Bind to "trf".
11922         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11923         (process_input_stack): Likewise.
11925         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11927         * troff/node.c (init_node_requests): New number registers .kern
11928         pointing to global_kern_mode, and .lg pointing to
11929         global_ligature_mode.
11931         * troff/node.c (ligature): Don't change it if we get a bad
11932         integer.
11934         * troff/input.c (do_define_string): Don't strip tabs.
11936         * troff/input.c (asciify_macro): Make the string_iterator auto.
11938         * troff/node.c (init_font_requests): Rename to...
11939         (init_node_requests):
11940         * troff/node.h: Change declaration.
11941         * troff/input.c (main): Change call.
11943         * troff/input.c (node::reread, diverted_space_node::reread): New
11944         methods.
11945         (process_input_stack): Call reread rather than
11946         get_diverted_space_node.
11947         * troff/node.c (node::get_diverted_space_node,
11948         diverted_space_node::get_diverted_space_node): Removed.
11949         * troff/node.h: Declare reread methods instead of
11950         get_diverted_space_node methods. Make `n' member private.
11951         * troff/input.c: (token::diverted_space): Removed.
11952         * troff/token.h: Removed declaration.
11953         
11955 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
11957         * eqn/script.c (script_box::compute_metrics): Don't let
11958         SUP_RAISE_FORMAT become negative.
11960         * tbl/table.c (table::do_row): Entries that don't end in the
11961         this row shouldn't make the row non-blank.
11962         
11963         * tbl/table.c (table::make_columns_equal): Only set the width of
11964         columns which are marked as equal.
11965         
11966         * tbl/main.c (process_data): Before issuing excess data error,
11967         if last character was a newline unget it; then get it again after
11968         the error.  Also include the contents of the entry in the message.
11970         * groff.c: New file.
11971         * Makefile: Build groff from groff.c.  Make it possible to use
11972         either groff.sh or groff.c as groff.
11973         * Makefile.bd: Similarily.
11975 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
11977         * groff.sh: Don't delay expansion of $@ in assignment to files.
11978         Remove occurrences of \".
11980 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
11982         * all Makefiles: Simplify and rearrange.
11984         * Makefile: Handle fmod like malloc.
11985         * lib/Makefile: Similarily.
11986         * lib/fmod.c: Remove #ifdef NEED_FMOD.
11988         * Makefile: Rename OPTIMISE to OPTIMIZE.
11990         * groff.sh: Remove assignment to PATH.
11991         * Makefile: Remove SHPATH variable.
11992         * Makefile.bd: Similarily.
11994         * groff.sh: Add -V option to print the pipeline instead of
11995         executing it.
11997 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
11999         * lib/font.c: Split off file searching into ...
12000         * lib/fontfile.c: New file.
12002         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
12004 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
12006         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
12007         Also change misleading comment.
12008         (table::do_vspan): Change similarily misleading comment.
12009         * tbl/main.c (process_data): A format row with an explicit `s'
12010         uses up a data line, even if all the other columns are `_' or `='.
12012         * troff/input.c (token::description): Fix description of
12013         TOKEN_DUMMY and TOKEN_EMPTY.
12015 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
12017         * groff.sh: Fix description of -Z in help message.
12019 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
12021         * pic/object.c (object_spec::make_object): Allow negative and zero
12022         line thicknesses.
12023         * pic/pic.y: Give linethick default value of -1.0.
12024         * pic/troff.c (troff_output::troff_output): Initialize
12025         last_line_thickness to BAD_THICKNESS.
12026         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
12027         (troff_output::line_thickness): Canonicalize negative thicknesses
12028         to RELATIVE_THICKNESS.
12029         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
12030         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
12031         to -1.0.
12032         (tex_output::start_picture): Set pen_size to -2.0.
12034         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
12035         0, then use 0 linewidth.
12036         (ps_printer::ps_printer): Initialize line_thickness to -1.
12038         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
12040         * ps/devps/symbolchars: Remove `or'.
12041         * ps/tmac.ps: Implement \(or with .char.
12043         * ps/devps/symbolchars: Move most characters into textmap.
12044         * ps/devps/textmap: Add names for troff bracket characters. Remove
12045         ul, ru, br, bv.
12047         * ps/devps/TSymbol.ps: Removed.
12048         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
12049         * ps/tmac.ps: Do with .char what TSymbol did.
12050         * ps/devps/download: Remove TSymbol.
12052         * ps/devps/T: Removed.
12053         * ps/devps/Troff.ps: Removed.
12054         * ps/devps/Troff.afm: Removed.
12055         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
12056         * ps/devps/download: Remove Troff.
12057         * ps/devps/FontMakefile: Remove T target.
12058         * ps/devps/DESC-A4: Remove T from font list.
12059         * ps/devps/DESC-letter: Likewise.
12061         * troff/input.c (macro_to_node): Rename to ...
12062         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
12063         character's definition while processing it.
12064         * troff/node.c (node::add_char, make_node): Change calls to
12065         macro_to_node accordingly.
12067         * troff/input.c (token::next): Translate \_ to \(ul.
12069         * tty/devascii/R.proto: Add `|'.
12070         * tty/devlatin1/R.proto: Likewise.
12072 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
12074         * man: Put the version number in all the man pages.
12076 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
12078         * Makefile.bd: New file.
12079         * README.bd: New file.
12081         * VERSION: New file.
12082         * lib/version.c: Removed.
12083         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
12084         in clean target.
12086         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
12087         environment variable.
12089         * all Makefiles: Split install target into install.bin for
12090         binaries, and install.nobin for everything else.
12091         * Makefile: Add bindist target.
12093         * man/afmtodit.man: New file.
12094         * man/Makefile: Add afmtodit.n to MAN1PAGES.
12095         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
12096         in BINDIR.
12097         * ps/Makefile: Pass BINDIR to make install in devps.
12099         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
12100         the space character.
12102         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
12104 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
12106         * ps/ps.c: Redo font downloading.
12107         * ps/devps/download: New file.
12108         * ps/devps/Makefile: Add download to DEVICEFILES.
12109         * ps/devps/afmtodit: Remove -d option.
12110         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
12111         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
12112         * ps/devps/zapfdr.ps: Likewise.
12113         * ps/devps/TSymbol.ps: Likewise.
12115 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
12117         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
12119 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
12121         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
12122         then strip the first line if it starts with %.
12123         * Makefile: Add a comment about this.
12125         * man/tfmtodit.man: New file.
12126         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
12127         * dvi/Makefile: Install tfmtodit in BINDIR.
12129         * dvi/tfmtodit.c (usage): Mention -v option.
12131 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
12133         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
12134         * troff/node.c (troff_output_file::transparent_char): Don't call
12135         flush_tbuf.
12137         * eqn: Add check_tabs method to most box classes.
12138         * eqn/box.c (box::top_level): Call check_tabs.
12140         * eqn/script.c (script_box::output): Use \Z.
12141         * eqn/limit.c (limit_box::output): Use \Z.
12143         * eqn/box.c (box::top_level): Use itoa.
12145 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12147         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12148         * dvi/devdvi/Makefile: Don't make links to CW.
12150         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12151         HX, HD.
12152         * xditview/tmac.X: Likewise.
12154         * troff/node.c: Add font translation feature.
12155         (get_font_translation): New function.
12156         (symbol_fontno): Translate the font name.
12157         (mount_font_no_translate): Rename to mount_font to this.
12158         (mount_font): New function.
12159         (font_family::make_definite): Call mount_font_no_translate instead
12160         of mount_font.
12161         (mount_style): Translate the font name.
12162         (font_translate): New function.
12163         (init_font_requests): Bind "ftr" to font_translate.
12165         * ps/devps/prologue (SN): New procedure that rounds a position to
12166         the nearest (pixel + (.25,.25)).
12167         (DL): Use SN to round endpoints.
12169         * lib/version.c: Changed version to 0.5.
12171 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12173         * Makefile: Move definition of PAGE to the very beginning, so that
12174         people are less likely to miss it.
12176 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12178         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12180         * troff/env.c (environment::choose_breakpoint): Make `can't find
12181         breakpoint' error a warning of type WARN_BREAK.  Change message to
12182         `can't break line'.
12183         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12184         code 040000.
12185         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12186         WARN_BREAK in DEFAULT_WARNING_MASK.
12188         * tty/tmac.tty: Add definition of \(+-.
12190         * groff.sh: Remove `--' option to set command.
12192         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12194         * ps/devps/eqnchar: Better definition of cdot using md.
12195         * dvi/devdvi/eqnchar:  Likewise.
12196         * xditview/devX100/eqnchar:  Likewise.
12197         * xditview/devX75/eqnchar: Likewise.
12198         * eqn/lex.c: Add definition of cdot.
12200 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12202         * troff/input.c (get_optional_char): New function.
12203         * troff/input.c (set_page_character): Use get_optional_char(),
12204         rather than has_arg() and tok.get_char(1).
12205         * troff/env.c (tab_character, leader_character, hyphen_char,
12206         field_characters): Likewise.
12207         (margin_character): Likewise.  Also always delete the
12208         margin_character_node.
12210         * troff/input.c (token::get_char): Use token::description.
12212         * troff/input.c (has_arg): Don't skip over tab and \}.
12213         * troff/number.c (start_number): Give a warning if the number
12214         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12216 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12218         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12219         functions.
12220         (get_name, get_long_name): Use these.  Rename `warn' argument to
12221         `required'.
12223         * troff/node.c (get_fontno): Test that the symbol is not null.
12225         * troff/input.c (token::description): New function.
12226         * troff/number.c (parse_term): Use token::description in `numeric
12227         expression expected' message.
12228         * troff/groff.h: Add WARN_MISSING.
12229         * troff/number.c (start_number): New function.
12230         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12231         get_incr_number): Use start_number().
12232         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12233         default.
12234         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12235         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12236         token::descripion.
12237         * troff/input.c (token::get_char): Use WARN_MISSING.
12238         * troff/input.c (token::delimiter): Use token::description.
12239         * troff/env.c (environment_switch): Back out Aug 3 change.
12240         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12241         warning.
12242         * troff/token.h (token::tab): New function.
12243         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12244         * troff/reg.c (alter_format): Likewise.
12245         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12247 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12249         * troff (most files): Redo warnings. Divide warnings into various
12250         categories; warning() has an additional first argument indicating
12251         the category it falls into.
12252         * troff/input.c (main): -w now takes an argument. New option -W.
12253         (enable_warning, disable_warning): New functions.
12255         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12256         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12258 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12260         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12261         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12262         * xditview/devX75/eqnchar: Likewise.
12263         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12265         * eqn/other.c: When bar or over applies to a single character
12266         don't produce an overline_box or an underline_box. Instead produce
12267         an accent_box or an underaccent_box, with the accent a line
12268         whose width is accent_width.  New classes underaccent_box,
12269         overline_char_box and underline_char_box.
12270         * eqn/box.h: Move overline_box, underline_box, accent_box class
12271         declarations into eqn/other.c. Add declarations of
12272         make_underline_box, make_overline_box, make_accent_box.
12273         * eqn/eqn.y: Call make_overline_box, make_underline_box
12274         make_accent_box instead of constructors.
12275         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12277         * eqn/other.c: Add accent_box::~accent_box.
12278         * eqn/box.h: Declare it.
12280         * groff.sh: With -Tps, use eqn -D.
12282         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12283         rather than \l.
12284         (underline_box::output): Similarily.
12285         (accent_box::output): Use \Z.
12287         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12288         bit smaller.)
12290 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
12292         * troff/div.c (top_level_diversion::transparent_output(unsigned
12293         char)): Use asciify.
12294         * troff/input.c (asciify): Don't make it static.
12295         * troff/token.h (asciify): Declare it.
12296         
12297         * troff/input.c (get_name, get_long_name, token::get_char,
12298         token::delimiter): Add an extra default argument which says
12299         whether a warning should be printed.
12300         * troff: Pass a non-zero argument to one of these rather than
12301         printing a warning directly.
12303 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
12305         * troff: Consistently use symbol::is_null.
12307         * troff/dictionary.h: Move some inline functions into
12308         dictionary.c.
12310         * troff/request.h: Move inline functions into input.c.
12311         (request_or_macro::invoke): Make it pure.
12313         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12314         * troff/input.c (init_input_requests): Use class constant_int_reg.
12315         (class compatible_reg): Deleted.
12316         * troff/div.c (init_div_requests): Use class constant_int_reg.
12317         (class last_post_line_extra_space_reg): Deleted.
12319         * troff/env.c (tab_character): Don't change the tab character if
12320         we get an invalid argument.
12321         (hyphen_char): Similarily.
12323         * troff/reg.c (alter_format): Check that nm is not null.
12325         * Makefile, groff.sh: Make it possible to customize the commands
12326         used for printing PostScript and dvi files. Also make it possible
12327         to customize the path used by groff.sh.
12329         * eqn/eqn.y: Make `left' right associative.
12331 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
12333         * pic/pic.h: Added definition of M_SQRT2 for those systems that
12334         don't have it.
12336         * pic/pic.h: Removed definition of INT_MAX.
12338         * troff/node.c (italic_corrected_node::vertical_extent): Omit
12339         `return'.
12341         * troff/input.c (token::next):  Handle \R like \n.
12343 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
12345         * ps/tmac.pc (PSPIC): Simplify.
12347         * troff/env.c (tab_stops::to_string):
12348         * pic/pic.y (object_type_name):
12349         * pic/troff.c (simple_output::line):
12350         * pic/tex.c (tex_output::spline):
12351         * pic/object.c (object_spec::make_object):
12352         * tbl/main.c (process_data):  Add cases to switch statements to
12353         avoid cfront warnings. (Some of these are spurious, since the
12354         switch already has a default case.)
12356         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
12357         `ps-'.  Don't test systat; instead check number of arguments to
12358         ps-bb.
12360 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
12362         * macros/tmac.e: Do not decrease the page offset by 0.5i.
12364         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12365         Unlink the file as soon as we have opened it, so that we don't
12366         have to bother with signal handlers.
12367         (handler): Deleted.
12368         (fatal_error_exit): Deleted.
12369         (main): Don't call signal.
12371         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12372         can be ignored.
12373         * dvi/devdvi/Makefile: Use the -k option with S and MI.
12375         * pic/pic.y:  If there is a label, or an nth construction before
12376         the first `.' in the argument to `with', ignore it and generate a
12377         warning.
12378         * pic/lex.c (lex_warning): New function.
12380         * tbl/table.c (table::init_output): In section keep and release
12381         macro, use 0 indent when diverting and the correct indent when
12382         rereading.
12384         * troff/input.c (interpolate_number_format): Do not interpolate
12385         anything if the number register is not defined.
12387         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12389 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
12391         * ps/devps/prologue (PICTURE): Set components of graphics state to
12392         their default values.
12394         * ps/devps/text.enc: Add trademark
12395         * ps/devps/textmap: Add names for club, spade, heart, diamond,
12396         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12397         * ps/devps/symbolchars: Add names for summation and product.
12399         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12400         suchthat. Add pp. Add upper-case letters.
12402         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12403         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12404         Upsilon.
12406         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12407         rA (right angle bracket) to ra.  Introduce names for double-headed
12408         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12409         * ps/devps/textmap: Likewise for ps device.
12410         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12411         * tty/devascii/R.proto: Rename lA to la and rA to ra.
12412         * tty/devascii/R.proto: Likewise.
12413         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12414         \(uA, \(dA.
12415         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12417         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12419         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12420         def_table.
12422 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
12424         * troff/div.c (when_request): Use symbol::is_null rather than
12425         has_arg to determine whether we have an argument.
12426         (change_trap): Remove the trap if we get an invalid number. Give
12427         an error if we don't get at least the macro name.
12428         (diversion_trap): Remove trap if we get an invalid name or number.
12430         * troff/env.c (environment_switch): Pop if we get an invalid
12431         symbol or numeric expression.
12433         * troff/input.c (do_define_macro):  If EOF is encoutered while
12434         defining the macro, do tok.next() before returning.
12436         * troff/token.h (has_arg): Move definition from here, to ...
12437         * troff/input.c (has_arg): ... here
12439         * troff/env.c (space_size): Do nothing if we get an invalid argument.
12440         * troff/input.c (shift): Likewise.
12442         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
12443         for `.c'.
12445         * pic/troff.c (troff_output::start_picture):  Comment out calls to
12446         `..'.
12448         * eqn/main.c (do_file): Subtract 1 from current_lineno if
12449         interpret_lf_args succeeds.
12451         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12452         \\.  This avoids problems with \$N.
12454         * groff.sh: Pass -C to preprocessors.
12456         * lib/lf.c (interpret_lf_args):  Be more flexible.
12458         * tbl/main.c (main): Add -C option.
12459         (table_input::get): Do not recognize TE if followed by character
12460         other than a space or newline unless -C option given.
12461         (process_input_file): Likewise for lf, TS.
12462         (process_data): Likewise for lf in text blocks.
12464         * eqn/main.c (main): Add -C option.
12465         (do_file): Don't recognize EQ, EN or lf if followed by character
12466         other than space or newline unless -C option given.
12467         * eqn/lex.c (file_input::read_line): Similarily.
12468         * eqn/eqn.h: Declare compatible_flag.
12470         * etc/soelim.c (main): Add -C option.
12471         (interpret_lf_args): Use version in libgroff.
12472         (do_file):
12474         * pic/main.c (main): Add -C option, which sets compatible_flag.
12475         (top_input::get), (top_input::peek):  If -C option not given,
12476         do not recognize .PS/.PE/.PF/.lf if followed by a character
12477         other than space or newline.
12478         * pic/lex.c (file_input::read_line): Similarily.
12479         * pic/pic.h: Add declaration of compatible_flag.
12481 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
12483         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12485         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
12486         derived from node.  New class space_char_hmotion_node.
12487         * troff/input.c (asciify_macro): New function.
12488         * troff/input.c (init_input_requests): New request `asciify' bound
12489         to asciify_macro.
12490         * macros/mm.diff: New file.
12491         * Makefile:  In install.mm target use `patch' to apply
12492         macros/mm.diff.
12494         * troff/input.c (macro::print_size): Just print the size in bytes.
12496         * troff/div.c (return_request): Correct the argument
12497         interpretation.
12499 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
12501         * troff/node.h (class composite_node): Add sz member.
12502         * troff/node.c (composite_node::size): Return sz.
12503         * troff/input.c (macro_to_node):  Use the initial size in the
12504         environment as the size of the composite_node.
12506         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
12507         default.
12509 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
12511         * troff/div.c (change_trap): If we get a bad number expression,
12512         do nothing.
12514 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
12516         * lib/matherr.c (matherr): Define this only if math.h defines
12517         TLOSS.
12519 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
12521         * troff/div.c (macro_diversion::distance_to_next_trap): If there
12522         no diversion trap return vunits(INT_MAX - vresolution).
12524 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
12526         * troff/input.c (do_zero_width): New implementation that doesn't
12527         use a temporary environment. Use instead:
12528         (token::add_to_node_list): New function.
12529         * troff/env.c (environment::get_prev_char_height),
12530         (environment::get_prev_char_height),
12531         (environment::get_prev_char_skew): New functions.
12532         (environment::get_prev_char): New function.
12533         (environment::get_prev_char_width): Change to use get_prev_char.
12534         (init_env_request): Implement new registers .cht, .cdp, .csk.
12535         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12536         \Z being processed in a separate environment.
12538 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
12540         * tbl/table.c: Removed TABLE_BOTTOM_REG.
12542         * tbl/table.c (table::init_output): In the section release macro,
12543         give a warning message if the section won't fit on one page.
12545         * tbl/table.c (table::do_top): Emit table keep only if table is
12546         boxed.
12547         (table::do_bottom): Likewise for table release.
12548         (table::table), (table::add_vertical_rule):  Remove reference to
12549         keep member.
12550         * tbl/table.h: Remove keep member.
12552         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12553         SECTION_RELEASE_MACRO, if there's not enough space before the next
12554         trap to output the diversion, call T# ourselves, set
12555         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12556         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
12557         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
12558         vertical position and return to it before turning traps on again.
12559         
12560 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
12562         * troff/node.c, troff/node.h: In classes derived from node,
12563         replace prev_char_width method by last_char_node method.
12564         * troff/env.c (environment::get_prev_char_width): Use
12565         node::last_char_node rather than node::get_prev_char_width.
12567         * Makefile: Added comment about -fno-inline on 68030-based
12568         Apollos.
12570         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12571         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12572         expressions using sizeof to int.
12573         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12575         * macros/tmac.e (TS):  Don't move @f back past the current
12576         position.
12578 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
12580         * ps/ps.c (main): Buffer stderr.
12581         * dvi/dvi.c (main): Likewise.
12582         * tty/tty.c (main): Likewise.
12584         * ps/ps.c (ps_printer::do_import): Improve error handling.
12586         * troff/input.c (abort_request): Use asciify.
12588         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12589         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12590         type of first argument int rather than char.  This works around a
12591         bug on the 68030 based Apollo using g++ 1.37.1.
12593         * tbl/table.h (class table): Add `keep' member.
12594         * tbl/table.c (table::table): Initialize `keep'.
12595         (table::add_vertical_rule): Set `keep' to 1.
12596         (table::do_top): Only emit table keep macro is `keep' is non-zero.
12597         (table::do_bottom): Likewise for table release macro.
12598         (table::do_row): Emit section keep macro even if the row is 0.
12600 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
12602         * macros/tmac.e (@C): Preserve the font family across the change
12603         in environments.
12605 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
12607         * lib/font.c: Initialize font::hor and font::vert to 1.
12608         (font::load_desc): Check the values of font::hor and font::vert.
12610         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12611         be included in a C compilation.
12612         (iftoa): Use INT_DIGITS. Include lib.h.
12613         (itoa): Likewise.
12614         (as_string): Likewise.
12615         * tbl/table.c: Removed definition of INT_DIGITS.
12616         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12617         * troff/input.c (input_input_requests): Likewise.
12618         * ps/ps.c (make_encoding_name): Likewise.
12619         (ps_printer::set_style): Likewise.
12620         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12622         * tty/devascii/R.proto: Map fm onto '.
12623         * tty/devlatin1/R.proto: Likewise.
12625 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12627         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12628         argument to \w is at a different input level.
12630         * tbl/table.c (table::init_output): Define a new macro
12631         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12632         transparently outputs itself.
12633         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12634         vpt.
12635         (table::do_row): Likewise.
12637         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12638         TRANSPARENT_STRING_NAME.
12640         * tbl/table.c (table::init_output): In the table release macro
12641         print an error message and don't produce any output if after
12642         issuing the need request the table still will not fit.  Also
12643         remove the diversion after bringing it back.
12645         * tbl/table.c (table::init_output): Define a new macro
12646         REPEATED_MARK_MACRO, like mk but if in a diversion also
12647         transparently outputs itself.
12648         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12649         is necessary because .TH might not call .T#.
12650         (table::do_top): Likewise TOP_REG.
12651         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12652         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12653         table header might contain just the two top rules.
12655 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12657         * troff/div.c: Implement new request `ptr' to print all traps.
12659         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12660         init_string_env_reg.
12661         * troff/env.c (class tab_reg): Deleted.
12663 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12665         * troff/div.c: New number register .pn returns the number of the
12666         next page as set by the pn request.
12668         * macros/tmac.an: Redid headers and footers.  Number each manual
12669         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12670         optional 5th argument to .TH which specifies the manual name and
12671         appears in the center of the header.  Understand the X, P and D
12672         registers like Sun.
12674 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
12676         * troff/env.c (init_env_requests): New number register `.lt' to
12677         return the title length.
12679         * troff/node.h (class transparent_dummy_node): New class.
12680         * troff/node.c (class transparent_dummy_node): Provide member
12681         functions. 
12682         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12683         than a dummy_node.
12685         * troff/input.c (token::next): New escape sequence \).
12686         * troff/input.c (get_copy): Recognize \) in copy mode.
12688         * troff/input.c (input_stack::clear): New function.
12689         * troff/input.c (exit_request): Use input_stack::clear.
12691         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12692         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12694         * troff/env.c: Move set_page_character to input.c.  Move
12695         page_character to input.c also.
12696         * troff/env.c (title): Split off the reading of the parts of the
12697         title into read_title_parts.
12698         * troff/input.c (read_title_parts): New function.  Check the
12699         input_level when testing whether a token matches the delimiter.
12701         * troff/input.c (exit_request): New function.
12702         * troff/input.c (init_input_requests): Bind ex request to
12703         exit_request rather than exit_groff.
12705         * troff/input.c (exit_groff): Call tok.next() before
12706         process_input_stack().
12708 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
12710         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12711         * troff/env.h: ditto.
12712         * troff/input.c: ditto.
12714         * troff/env.c (environment::is_empty): Test pending_lines.
12716         * troff/env.c (environment::have_pending_lines): Removed.
12718         * troff/input.c: Add request to flush pending lines from the
12719         environment.
12721         * troff/env.c, troff/env.h: Add automatic widow control feature.
12723         * troff/input.c (exit_groff):  Do process_input_stack() after
12724         do_break() but before setting exit_flag to 2.
12726         * troff/input.c: Remove FLUSH_PENDING_LINES and
12727         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12728         environment after END_TRAP token seen, but only if there aren't
12729         any more traps still unfinished.
12730         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12732 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
12734         * troff/env.c: Rename the `retain_size' member of class
12735         pending_output_line to `no_fill'.
12737         * troff/env.c (title): When the line is output, make the
12738         retain_size argument !fill.
12740         * troff/node.h: Add `hyphenated' member to struct breakpoint.
12741         * troff/node.c (space_node::get_breakpoints),
12742         (dbreak_node::get_breakpoints):  Fill this in.
12743         * troff/env.c:  Allow specification of maximum number of
12744         consecutive hyphenated lines.
12746         * troff/env.c (environment::is_empty): Add test for !current_tab.
12748 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
12750         * troff/env.c (environment::hyphenate_line): Don't completely give
12751         up if the word is not to be hyphenated; continue so that breaks
12752         can be made at break_char_node's.
12754         * lib/lib.h: Only define INT_MAX if it's not already defined;
12755         undef INT_MIN if it's already defined.
12757         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12759         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12760         This works around a bug in AT&T C++ 2.0 used with an ANSI C
12761         compiler.
12762         
12763         * macros/tmac.an (an-header): Set no-space mode.
12765         * macros/tmac.an (TH): Start a new page if necessary.
12767         * Started using ChangeLog at version 0.4.
12769 Local Variables:
12770 version-control: never
12771 coding: latin-1
12772 End: