* src/libs/libgroff/font.cc (font::load_desc): Fix computation of
[s-roff.git] / ChangeLog
blob3cb0b60b78d6f6a9fd1f101ea196493d299aa692
1 2002-06-17  Werner LEMBERG  <wl@gnu.org>
3         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
4         `paperwidth' and `paperlength' for the `papersize' keyword.
6 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
8         * src/devices/grops/grops.man: Add info about Type 42 fonts.
10 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
12         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
13         html_printer::do_linelength, html_printer::do_pageoffset,
14         html_printer::do_indentation, html_printer::do_tempindent,
15         html_printer::do_break, html_printer::begin_page): Clear indented
16         text.
17         * tmac/html.tmac: Disable hyphenation.
19 2002-06-15  Werner LEMBERG  <wl@gnu.org>
21         Don't produce HTML files if utility programs are missing.
23         * Makefile.in (make_html, make_install_html): New variables.
24         (MDEFINES): Updated.
26         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
27         utility programs.
28         * configure.ac: Use it.
29         * configure: Regenerated.
31         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
32         (HTMLEXAMPLESFILES): This new variable.
33         (EXAMPLESIMAGEFILES): Renamed to...
34         (HTMLEXAMPLEIMAGEFILES): This.
35         (CLEANADD): Add HTMLEXAMPLEFILES.
36         (all): Use `make_html'.
37         (html): New target.
38         (install_data): Use `make_install_html'.
39         Move html stuff to...
40         (install_html): This new target.
41         (uninstall_sub): Updated.
43 2002-06-14  Bernd Warken  <bwarken@mayn.de>
45         * src/roff/grog/Makefile.sub (grog): Renamed to...
46         (grog.old): This.
47         (grog): New rule to always install grog.sh as grog.
49 2002-06-08  Bernd Warken  <bwarken@mayn.de>
51         * src/roff/grog/grog.pl: Fix typo.
53 2002-06-07  Werner LEMBERG  <wl@gnu.org>
55         * doc/groff.texinfo: Add more info on .tr arguments.
57 2002-06-05  Werner LEMBERG  <wl@gnu.org>
59         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
61         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
62         * configure: Regenerated.
64 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
66         * src/roff/troff/symbol.cc (table_sizes): Add more values.
68         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
70 2002-06-04  Werner LEMBERG  <wl@gnu.org>
72         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
73         is not initialized at the time we need it in case `--prefix' hasn't
74         been set.  Check for `ac_default_prefix' also.
75         Test for `papersize' keyword also and generalize allowed whitespace.
76         * configure: Regenerated.
78         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
79         `paperlength'.
81         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
82         with...
83         (src_version, src_revision): New variables to avoid overwriting
84         from parent make process.
85         (version.cc): Updated.
87         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
88         (linebuf, linebufsize): New global variables.
89         (sys_fatal): Use `fatal' to abort properly.
90         (get_line): New function.
91         (get_resolution): Use it.
92         Improve error messages.
93         (get_papersize): Check `papersize' also.
94         Use `get_line'.
95         Improve error messages.
97 2002-06-03  Werner LEMBERG  <wl@gnu.org>
99         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
100         should be removed only if builddir is not srcdir.
101         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
102         (clean): Depend on `mostlyclean'.
103         (distclean): Depend on `clean'.
104         (realclean, extraclean): Depend on `distclean'.
105         (.y.cc, .y.o): Simplified.  The output files are no longer written
106         to srcdir but to builddir.
107         * Makefile.in (MDEFINES): Add `version' and `revision'.
108         (uninstall_dirs): Fix order of directories.
109         * doc/Makefile.sub (version, revision): Removed.
110         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
111         Added `HTMLDOCFILES'.
112         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
113         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
114         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
115         as prefix.
117         * doc/texinfo.tex (\authortt): New macro.
118         (\shortcontt): Define.
119         (\titlepage): Set \tt to \authortt while defining \authorfont.
120         (\appendixbox): New macro.
121         (\chapmacro, \appendixentry): Use \appendixbox to get even
122         indentation for letters.
123         (\summarycontents): Set \tt.
124         (\internalpagesize): Add two arguments for real paper width and
125         height as needed by pdfTeX.
126         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
127         Updated.
128         (\tempdima, \tempdimb): New temporary dimensions.
129         (\pagesizesyyy): Updated.
131 2002-06-02  Werner LEMBERG  <wl@gnu.org>
133         Adding a new keyword `papersize' to the DESC file format (similar
134         but not completely identical to grolbp's extension).  grops now has
135         a -p command line option to override `papersize'.  Finally, grolbp
136         has been adapted to the new syntax.
138         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
139         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
140         elements.
141         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
142         (CCSRCS): Add `paper.cc'.
144         * src/include/font.h (font): Add `papersize' element.
145         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
146         (font::scan_papersize): New function.
147         (font::load_desc): Use it for handling `papersize' keyword.
148         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
150         * src/devices/grops/ps.cc: Include paper.h.
151         (user_paper_length): New global variable.
152         (ps_printer): Use paper length as initializer.
153         (make_printer): Updated.
154         (main): Handle new `-p' option.
155         * src/devices/grops/grops.man: Updated.
157         * src/devices/grolbp/lbp.cc: Include paper.h.
158         s/papersizes/lbp_papersizes/.
159         (set_papersize): Use new `papersizes' array.
160         (handle_unknown_desc_command): Don't handle `papersize'.
161         (main): Use `font::scan_papersize' for handling `-p' option.
162         * src/devices/grolbp/grolbp.man: Updated.
164         * man/groff_font.man: Document `papersize'.
165         * NEWS: Updated.
167 2002-05-30  Werner LEMBERG  <wl@gnu.org>
169         * src/devices/grops/TODO: Updated.
170         * src/devices/grops/grops.man: More info on paper formats.
171         * man/groff_font.man: Document `paperheight' and `paperwidth'.
173 2002-05-29  Werner LEMBERG  <wl@gnu.org>
175         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
176         to list only if srcdir != currdir.
177         (distfiles): New target.
179         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
180         (NOMAKEDIRS): New variable.
181         (DISTDIRS): Use it.
183 2002-05-26  Werner LEMBERG  <wl@gnu.org>
185         Add .output request, similar to \! at top-level.
187         * src/roff/troff/input.cc (transparent): Remove unused declaration.
188         (output_request): New function.
189         (init_input_requests): Add it.
190         Sorted.
191         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
192         Document it.
194         * Makefile.in (MDEFINES): Add INSTALL_INFO.
195         (prepare_examples): Fix typo.
196         * doc/groff.texinfo (@direntry): Fix it.
198 2002-05-25  Werner LEMBERG  <wl@gnu.org>
200         Including the doc subdir into groff's Makefile system.
202         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
203         * configure.ac: Use it.
204         Generate `doc/Makefile'.
205         * configure: Regenerated.
207         * Makefile.in (infodir, INSTALL_INFO): New variables.
208         (MDEFINES, uninstall_dirs): Updated.
209         (OTHERDIRS): Add `doc'.
210         * Makefile.comm (CLEANDIRADD): New variable.
211         (mostlyclean): Use it.
213         * doc/Makefile.sub, doc/Makefile.in: New files.
214         * doc/Makefile: Removed.
216         * NEWS, INSTALL: Updated.
218 2002-05-24  Werner LEMBERG  <wl@gnu.org>
220         * doc/homepage.ms: Renamed to ...
221         * doc/webpage.ms: This.
222         Use `.NHR'.
224 2002-05-23  Werner LEMBERG  <wl@gnu.org>
226         Integrating the `mom' macro package, contributed by Peter Schaffter
227         <df191@ncf.ca>.
229         * contrib/mom/*: New subdirectory tree.
230         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
231         be used for documentation files.
232         (MDEFINES, uninstall_dirs): Use them.
233         (OTHERDIRS): Add contrib/mom.
234         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
235         @HTMLDOCDIR@.
236         * MANIFEST, NEWS: Updated.
238 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
240         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
241         if at outer level; at start-up we are at outer level.
243         * src/roff/troff/input.cc (do_suppress): Implement it.
244         Simplify \O[3].
246         Add option -p to show progress information.
247         pre-grohtml will now render only one page at a time, reducing the
248         size of needed disk resources enormously.
250         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
251         (imagePageName): New global variable.
252         (psPageName, show_progress, currentPageNo): New global variables.
253         (html_system): Close saved stderr and stdout handles.
254         (write_end_image): Accept a parameter to control \O escape.
255         (write_start_image): Adapted to new \O meaning.
256         (char_buffer::write_upto_newline): Updated.
257         (createAllPages): Replaced with...
258         (createPage): This new function to create a single page for images.
259         It uses `psselect' from the psutils package.
260         (removeAllPages): Removed.
261         (createImage): Updated.
262         Handle progress display.
263         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
264         (scanArguments): Add option -p.
265         (makeTempFiles): Updated to create temp files for psPageName and
266         imagePageName.
267         (removeTempFiles): Removed.
268         (main): Updated.
270         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
271         html_printer::write_header): Append `\0' to `buffer'.
272         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
273         (main): Handle -p.
274         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
275         Handle `text_emitted'.
276         (html_text::table_is_void): Slightly rewritten.
277         (stop): New external symbol.
278         (html_text::do_push) [DEBUGGING]: Use it and simplify.
279         (html_text::shutdown): Call `dump_stack'.
280         (html_text::do_space): Rewritten.
281         * src/devices/grohtml/grohtml.man: Document -p and the need of
282         `psselect'.
284         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
285         new \O syntax.
286         Call \O[0] if `ps4html' is active.
287         * tmac/s.tmac (@EQ, @EN): Handle html better.
288         (@TS, TE): Ditto.
289         * tmac/html.tmac: Don't use black for background colour.
291         * src/roff/troff/node.cc: Include `div.h'.
292         (troff_output_file::really_print_line): Don't use `is_on'. 
293         (troff_output_file::word_marker, troff_output_file::flush_tbuf
294         troff_output_file::check_charinfo,
295         troff_output_file::put_char_width, troff_output_file::put_char,
296         troff_output_file::determine_line_limits, troff_output_file::draw,
297         real_output_file::begin_page, glyph_color_node::tprintf,
298         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
299         Use `is_on'.
300         (troff_output_file::really_on): Call `do_motion'.
301         (suppress_node::tprint): Use `get_page_number' instead of `%'
302         register.
303         Call `reset_output_registers' conditionally on `is_on'.
305         * doc/groff.texinfo: Document new syntax of \O.
306         * NEWS, man/groff_diff.man: Updated.
308 2002-05-22  Werner LEMBERG  <wl@gnu.org>
310         * MORE.STUFF: Add info about David Frey's deroff implementation.
311         Mention troff.org.
313 2002-05-16  Werner LEMBERG  <wl@gnu.org>
315         Pic's `with' attribute now accepts positions.
317         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
318         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
319         conflicts.
320         (object_spec): Add rule for `WITH' and `position'.
321         (relative_path): Give `corner' the precedence of `CHOP'.
322         * src/preproc/pic/object.h (path): New members `pos' and
323         `is_position'.
324         * src/preproc/pic/object.cc: Updated initializers of `path'.
325         (path::follow): Handle `is_position'.
327         * doc/pic.ms: Completely updated grammar description.
328         Many typographical improvements.
330 2002-05-15  Werner LEMBERG  <wl@gnu.org>
332         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
333         code of x in range 0-127) also.
334         * doc/groff.texinfo, man/groff_diff.man: Updated.
336         Added keywords `north', `south', `east', and `west' for corners
337         in pic.
339         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
340         and WEST.
341         (yylex): Handle them.
342         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
343         (corner): Handle them.
345 2002-05-14  Werner LEMBERG  <wl@gnu.org>
347         * src/devices/grops/grops.man: Clarify handling of `download' file.
349 2002-05-11  Werner LEMBERG  <wl@gnu.org>
351         Adding `warnscale' and `spreadwarn' requests, based on a patch from
352         Jeffrey Friedl <jfriedl@yahoo.com>.
354         * src/roff/troff/input.cc (spread_limit, warn_scale,
355         warn_scaling_indicator): New global variables.
356         (warnscale_request, spreadwarn_requests): New functions.
357         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
358         (init_input_requests): Updated.
359         (error_type): Add `OUTPUT_WARNING'.
360         (do_error): Handle it.
361         (output_warning): New warning function which shows output location.
362         * src/roff/troff/env.h (spread_limit): New external variable.
363         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
364         `output_warning'.
365         (distribute_space): Emit warning if added space is larger than
366         `spread_limit'.
367         (environment::possibly_break_line): Emit warning if a line can't
368         be adjusted on both sides.
370         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
372 2002-05-08  Werner LEMBERG  <wl@gnu.org>
374         * src/roff/troff/node.cc (special_node::special_node): Use
375         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
376         \X''\% crashes, for example.
378         * doc/groff.texinfo: Document \! and \? used at top-level.
380 2002-05-06  Werner LEMBERG  <wl@gnu.org>
382         * src/preproc/pic/pic.man: Fix some keyword syntax.
383         Other minor typographical fixes.
385         * src/roff/groff/groff.man: Fix typos.
387 2002-05-04  Werner LEMBERG  <wl@gnu.org>
389         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
390         (ShortOpt[]): This to avoid problems with refer.
392         * doc/pic.ms: Fix typo.
393         Fix pic grammar description.
395         * tmac/an-old.tmac (ne): Use de1, not de.
397 2002-05-03  Werner LEMBERG  <wl@gnu.org>
399         * doc/groff.texinfo: Finished separation of glyphs and characters.
400         Don't use the string `Appendix' for appendix headers (both in
401         the text and the table of contents).
402         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
403         directories.
405         Use registers LL and LT (similar to -ms) for controlling the
406         length of title and line, respectively, in the -man and -mdoc
407         macro packages.
409         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
410         (doc-setup-page-layout): Use \n[LL] and \n[LT].
411         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
412         (TH): Use \n[LL].
413         (an-header, an-p-footer): Use \n[LT].
414         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
415         doc/groff.texinfo: Document it.
417 2002-05-02  Werner LEMBERG  <wl@gnu.org>
419         * doc/fdl.texi: New file.
420         * doc/groff.texinfo: Include it.
421         Define and use @copying.
422         Starting with separating glyph, symbol, and character.
424 2002-04-27  Werner LEMBERG  <wl@gnu.org>
426         * Makefile.in (EXEEXT): Set it.
427         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
428         programs.
430         * src/include/nonposix.h: Define GS_NAME.
431         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
433         Some preliminary changes for EMX support under OS/2.
435         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
436         __EMX__ similar to __MSDOS__.
437         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
439 2002-04-25  Werner LEMBERG  <wl@gnu.org>
441         * doc/groff.texinfo: Integrated groff_out.man.
442         Some macro fixes.
444 2002-04-23  Werner LEMBERG  <wl@gnu.org>
446         * man/groff_out.man: Minor fixes.
448 2002-04-23  Werner LEMBERG  <wl@gnu.org>
450         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
451         correct page references.
452         Fixed many index entries.
454 2002-04-23  Bernd Warken  <bwarken@mayn.de>
456         * man/roff.man: Enlarged.
458 2002-04-22  Werner LEMBERG  <wl@gnu.org>
460         * doc/groff.texinfo: More examples, other fixes.
462 2002-04-20  Werner LEMBERG  <wl@gnu.org>
464         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
465         will now form a chain, e.g.
467           .pi foo
468           .pi bar
470         is now the same as
472           .pi foo | bar
474         This is for compatibility with plan 9's troff.
476         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
477         with UNIX troff.
478         * NEWS: Updated.
480         * doc/groff.texinfo: Add documentation of remaining requests and
481         registers.
483 2002-04-19  Werner LEMBERG  <wl@gnu.org>
485         * doc/groff.texinfo: Add documentation of remaining escapes.
487         * font/devdvi/generate/tc.map: Remove entry for `sr'.
488         * font/devdvi/*TC: Regenerated.
490 2002-04-18  Werner LEMBERG  <wl@gnu.org>
492         * src/roff/troff/input.cc (token::next): Make \H behave consistently
493         if not in compatibility mode, i.e., increment relative to the
494         previous height.
495         * doc/groff.texinfo: Updated accordingly.
497 2002-04-17  Werner LEMBERG  <wl@gnu.org>
499         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
501 2002-04-16  Bernd Warken  <bwarken@mayn.de>
503         * src/roff/groff/groff.man: Improve documentation of -P option.
504         Other minor fixes.
506 2002-04-15  Werner LEMBERG  <wl@gnu.org>
508         Add new escape \F to switch font family.
510         * src/roff/troff/input.cc (token::next): Handle \F.
511         * src/roff/troff/env.cc (environment::set_family): Handle
512         `interrupted' flag.
513         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
514         Document it.
516 2002-04-14  Werner LEMBERG  <wl@gnu.org>
518         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
519         spaces in tags.
521 2002-04-13  Werner LEMBERG  <wl@gnu.org>
523         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
524         \m[] and \M[], respectively.
526         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
527         (symbol::symbol): Handle NULL string and empty string differently.
528         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
529         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
530         Add optional parameter.
531         Updated calling functions.
532         (get_copy, do_glyph_color, do_fill_color, token::next): Use
533         `symbol::is_empty'.
534         * src/roff/troff/env.cc (environment::set_font): Ditto.
536         * src/preproc/pic/troff.cc (troff_output::set_fill,
537         troff_output::reset_color: Updated.
539         * tmac/www.tmac: Updated.
541         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
542         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
543         Updated.
545         * tmac/Xps.tmac: Remove some redundant code.
547         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
548         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
549         man/groff_out.man, man/groff.man, man/groff_diff.man,
550         src/roff/groff/groff.man: Replace \f[P] with \f[].
552 2002-04-13  Bernd Warken  <bwarken@mayn.de>
554         * src/include/printer.h, src/libs/libdriver/printer.cc
555         (printer::change_fill_color): New member function.
556         * src/libs/libdriver/input.cc (parse_D_command): Use it.
558 2002-04-12  Werner LEMBERG  <wl@gnu.org>
560         * doc/groff.texinfo: Completed pass on gtroff reference.
562 2002-04-11  Werner LEMBERG  <wl@gnu.org>
564         * doc/groff.texinfo: More fixes.
566 2002-04-11  Bernd Warken  <bwarken@mayn.de>
568         * src/include/color.h: Decorate with `const'.
569         Use `size_t'.
570         Include `stddef.h'.
571         * src/libs/libgroff.color.cc: Decorate with `const'.
572         Use `size_t'.
573         (color::color): Initialize members.
574         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
575         command according to the documentation.
577         * man/groff_out.man: Updated.
578         Minor fixes.
580 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
582         * src/preproc/html/pre-html.cc (write_start_image): Remove
583         redundant output.
584         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
586         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
587         \C'hy' caused an assertion failure.
589         * src/roff/troff/env.cc (environment::environment): Initialize
590         `emitted_node'.
591         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
593 2002-04-10  Werner LEMBERG  <wl@gnu.org>
595         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
596         Document pvs request and .pvs register.
598 2002-04-09  Werner LEMBERG  <wl@gnu.org>
600         * doc/groff.texinfo: Improve and fix documentation of diversions
601         and environments.
603 2002-04-08  Werner LEMBERG  <wl@gnu.org>
605         * doc/groff.texinfo: Fix documentation of drawing functions.
606         Other minor fixes.
608 2002-04-07  Werner LEMBERG  <wl@gnu.org>
610         * doc/groff.texinfo: Better documentation of double quotes as
611         arguments.
612         Other minor fixes.
614 2002-04-06  Werner LEMBERG  <wl@gnu.org>
616         * man/groff_font.man: Document names of special characters better.
617         * doc/groff.texinfo: Minor improvements.
619         * tmac/lbp.tmac: Load latin1.tmac.
620         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
622         * font/devX*/*: Regenerated (all chars > 0x80 removed).
624 2002-04-05  Werner LEMBERG  <wl@gnu.org>
626         * tmac/tty.tmac: Don't use shc request.
627         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
628         * NEWS: Updated.
630         * man/groff_diff.man: Minor fixes.
632         * font/devlbp/*: Remove all `charXXX' entities.
634         * src/libs/libgroff/font.cc (font::~font): Deallocate
635         `special_device_coding'.
636         (font::load): Use `new' for allocating `special_device_coding'.
637         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
638         Removed unused member.
640 2002-04-05  Werner LEMBERG  <wl@gnu.org>
642         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
643         (resource_manager::do_begin_binary,
644         resource_manager::do_begin_data): Use it.
646         * doc/texinfo.tex: Updated to version 4.2.
648         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
649         (token::zero_width_break): New inline function.
650         * src/roff/troff/input.cc (token::next): Use it.
651         (token::description): Updated.
652         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
653         (token::add_to_node_list, token::process): Use it.
654         * NEWS, doc/groff.texinfo: Updated.
656         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
657         * tmac/tty.tmac: Add missing backslash.
659 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
661         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
662         `.ps' register instead of `.s' to handle fractional point sizes.
663         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
664         limit_box::output): Ditto.
665         * src/preproc/eqn/other.cc (size_box::compute_metrics,
666         size_box::output): Ditto.
667         * src/preproc/eqn/over.cc (over_box::compute_metrics,
668         over_box::output): Ditto.
669         * src/preproc/eqn/script.cc (script_box::compute_metrics,
670         script_box::output): Ditto.
671         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
672         sqrt_box::output): Ditto.
674 2002-04-03  Michael Selway  <mas@ssl.co.uk>
676         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
677         Fix typo.
679 2002-04-03  Werner LEMBERG  <wl@gnu.org>
681         * doc/homepage.ms: Reduce title size.
682         * doc/groff.texinfo: Fix documentation of .t register.
683         Fix handling of colon.
684         Fix `\' vs. `\\'.
686         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
687         only if page length is positive to avoid a loop.
689         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
690         tbl.
692 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
694         * src/include/nonposix.h, src/roff/groff/pipeline.c:
695         s/__CYGWIN32__/__CYGWIN__/.
697 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
699         * doc/gnu.xpm: New image contributed by Emily Mulley.
700         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
701         (homepage.html): Be dependent on gnu.eps.
702         * doc/homepage.ms: Updated to new image.
704         * src/devices/grohtml/post-html.cc (html_printer): New member
705         `sbuf_prev_hpos'.
706         (html_printer::flush_sbuf, html_printer::set_char): Set it.
707         (html_printer::sbuf_continuation): Use it.
709 2002-03-28  Werner LEMBERG  <wl@gnu.org>
711         * src/libs/libgroff/getopt.c: Updated to latest version.
713         * tmac/README: More on hyphen.tex license.
715 2002-03-26  Larry Kollar  <kollar@alltel.net>
717         * doc/groff.texinfo: Add documentation of most missing requests.
719 2002-03-25  Werner LEMBERG  <wl@gnu.org>
721         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
722         of `+-', `mu', and `di', respectively.
724         * font/devascii/R.proto, font/devutf8/R.proto,
725         font/devlatin1/R.proto, font/devhtml/R.proto,
726         font/devcp1047/R.proto, font/devlpb/*: Add them.
727         * font/devps/generate/textmap: Ditto.
728         * font/devps/*: Regenerated.
729         * font/devlj4/generate/text.map: Add them.
730         * font/devlj4/*: Regenerated.
731         * font/devdvi/generate/tc.map: Use them.
732         * font/devdvi/generate/texsy.map: Add them.
733         * font/devdvi/*: Regenerated.
734         * font/devX*/*: Regenerated.
736         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
737         tmac/tty-char.tmac: Updated.
739         * NEWS, man/groff_char.man: Updated.
741 2002-03-24  Werner LEMBERG  <wl@gnu.org>
743         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
744         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
745         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
746         we use `.fchar' in dvi.tmac.
747         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
748         * tmac/Xps.tmac: Simplify some char definitions.
749         Add definition for \[f/].
750         * man/groff_char.man: Updated for new X.tmac.
752         * tmac/README: New file.
754 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
756         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
757         internal .y.o rule took precendence over the .y.cc rule, compiling
758         the yacc files with gcc instead of g++.
760 2002-03-23  Werner LEMBERG  <wl@gnu.org>
762         * tmac/dvi.tmac: Add replacement font for `CB'.
764         * tmac/doc.tmac: s/request/macro/ in messages.
765         (doc-generic-macro): Improve error message.
766         * tmac/groff_mdoc.man: Minor improvements.
768 2002-03-22  Werner LEMBERG  <wl@gnu.org>
770         * doc/groff.texinfo: Document possible conflict between `tr' and
771         `char' requests.
773 2002-03-21  Werner LEMBERG  <wl@gnu.org>
775         Improve handling of hyphenation patterns.  It is now possible to
776         use most of TeX's pattern files unmodified.  To make the process
777         more flexible, a new request `hpfcode' has been added which
778         provides a character code mapping for the `hpf' request.  See
779         comment before hpf_getc() for more details.
781         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
782         functions.
783         (read_patterns_file): Additional parameter for exception dictionary.
784         Extended to recognize \pattern, \hyphenation, and \endinput.
785         (do_hyphenation_patterns_file): Updated.
786         * src/roff/troff/env.h (hpf_code_table): New extern.
788         * src/roff/troff/input.cc (hpf_code_table): New array.
789         (init_hpf_code_table, hyphenation_patterns_file_code): New
790         functions.
791         (hyphenation_code): Handle translation from `trin' correctly.
792         (main, init_input_requests): Updated.
793         (charinfo::set_translation): Handle hyphenation code also.
795         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
796         inline function.
798         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
799         char' is used for offsets in hyphenation exceptions.
801         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
803         * NEWS, man/groff_diff.man, man/groff.man: Document it.
805 2002-03-20  Larry Kollar  <kollar@alltel.net>
807         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
808         requests.
810 2002-03-18  Werner LEMBERG  <wl@gnu.org>
812         * tmac/html.tmac: Fix serious typo.
814 2002-03-17  Larry Kollar  <kollar@alltel.net>
816         * doc/groff.texinfo: Add documentation for `writec' request.
818 2002-03-17  Werner LEMBERG  <wl@gnu.org>
820         Added request `hpfa' to append hyphenation patterns.
822         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
823         parameter `append'.
824         (hyphenation_patterns_file): Renamed to...
825         (do_hyphenation_patterns_file): This.
826         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
827         functions.
828         (init_hyphen_requests): Updated.
829         * NEWS, man/groff.man, man/groff_diff.man: Document it.
831 2002-03-16  Werner LEMBERG  <wl@gnu.org>
833         Added request `writec' in analogy to `tmc'.
835         * src/roff/troff/input.cc (write_request): Renamed to...
836         (do_write_request): This.
837         Added one parameter.
838         (write_request, write_request_continue): New functions.
839         (init_input_requests): Updated.
840         * NEWS, man/groff.man, man/groff_diff.man: Document it.
842         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
843         5-10000pt.
844         * NEWS: Document it.
846 2002-03-15  Werner LEMBERG  <wl@gnu.org>
848         * man/groff.man: Add writem request.
850         Add request `trin' (translate input) to make `.asciify' work
851         correctly.  This is necessary since `charXXX' entity names are no
852         longer hardcoded in font definition files.
854         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
855         `translate_input' members.
856         (charinfo::set_asciify_code, charinfo::get_asciify_code,
857         charinfo::set_translation_input): New methods.
858         (charinfo::set_translation): Add third argument.
859         * src/roff/troff/input.cc (charinfo:set_translation): Set
860         `asciify_code'.
861         (do_translate): Add second argument.
862         (translate_input): New function.
863         (init_input_requests): Updated.
864         * src/roff/troff/node.cc (glyph_node::asciify,
865         composite_node::asciify): Use `get_asciify_code'.
867         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
869         * NEWS, man/groff.man, man/groff_diff.man: Updated.
871 2002-03-14  Larry Kollar  <kollar@alltel.net>
873         * doc/groff.texinfo: Improve documentation of .RS and .RE.
875 2002-03-14  Werner LEMBERG  <wl@gnu.org>
877         Add a new request `sizes' similar to the `sizes' command in DESC
878         files.
880         * src/roff/troff/env.cc (override_sizes): New function.
881         (init_env_requests): Use it.
882         * src/roff/troff/token.h: Export `read_string'.
883         * NEWS, man/groff_diff.man, man/groff.man: Document it.
885 2002-03-12  Werner LEMBERG  <wl@gnu.org>
887         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
889 2002-03-10  Werner LEMBERG  <wl@gnu.org>
891         * tmac/pspic.tmac: Add support for -Tdvi.
892         * tmac/dvi.tmac: Include pspic.tmac.
893         * src/devices/grodvi/grodvi.man: Document it.
894         * NEWS: Updated.
896         * font/devlj4/generate/Makefile: Fix URL of metric files.
898 2002-03-09  Werner LEMBERG  <wl@gnu.org>
900         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
902 2002-03-09  Larry Kollar  <kollar@alltel.net>
904         * tmac/groff_ms.man: Add documentation for RS and RE macros.
906 2002-03-08  Werner LEMBERG  <wl@gnu.org>
908         * doc/groff.texinfo: Fixes for texinfo 4.1.
910 2002-03-07  Werner LEMBERG  <wl@gnu.org>
912         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
913         included.
914         Handle CYGWIN properly.
916 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
918         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
919         * tmac/lbp.tmac: Add some font translations.
921 2002-03-02  Werner LEMBERG  <wl@gnu.org>
923         * font/devcp1047/R.proto, font/devlatin1/R.proto,
924         font/devhtml/R.proto: Remove `charXXX'  entries.
925         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
926         where appropriate.
928         * font/devlj4/generate/text.map: Remove `charXXX' entries.
929         * font/devlj4/*: Regenerated all font definition files.
930         * tmac/lj4.tmac: Load latin1.tmac.
932         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
933         from 2000-06-17: LJ4 metric files are *not* text files.
935         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
936         register to test for EBCDIC.
938 2002-03-01  Werner LEMBERG  <wl@gnu.org>
940         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
941         files (as grops already does).
942         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
943         files.
944         * src/devices/grops/grops.man: Document comment lines in encoding
945         files.
947         * tmac/cp1047.tmac: New file.
948         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
949         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
950         * tmac/Makefile.sub (NORMALFILES): Updated.
952         * tmac/ec.tmac: Don't load latin1.tmac again.
954         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
955         font/devps/generate/dingbats.map,
956         font/devps/generate/dingbats.rmap, font/devps/text.enc,
957         font/devps/generate/Makefile (symbolmap): Add header comment.
958         * font/devps/generate/textmap: Ditto.
959         Remove `charXXX' entries.
960         * font/devps/symbolmap: Regenerated.
961         * font/devps/*: Regenerated all font definition files.
963 2002-02-28  Werner LEMBERG  <wl@gnu.org>
965         Add color support to grodvi (for drawing colors are currently
966         translated to gray values).
968         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
969         (dvi_printer): Add `cur_color' member.
970         (dvi_printer::set_color): New function.
971         (draw_dvi_printer): Remove `fill'.
972         (draw_dvi_printer::fill_next): Pass environment as parameter.
973         Update code for new color support translated to gray.
974         (dvi_printer::set_char): Updated.
975         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
976         changes crossing the page border.
977         (dvi_printer::draw): Updated.
978         Remove cases `f' and `F'.
979         * tmac/dvi.tmac: Add color definitions.
980         * NEWS, src/devices/grodvi/grodvi.man: Updated.
982         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
983         used incorrectly.
985         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
986         versions of autoconf.
987         * configure: Updated.
989         * doc/homepage.ms: Use `.blm'.
990         * tmac/www.tmac (www-depth): New auxiliary variable.
991         (www-pop-level): Don't issue HTML tag.
992         (ULS, ULE, LI): Use absolute indentation.
994         * src/devices/grops/ps.cc (ps_printer::begin_page,
995         ps_printer::end_page): Switch forth and back to default color while
996         starting a new page.
998 2002-02-27  Werner LEMBERG  <wl@gnu.org>
1000         Add EC and TC fonts to devdvi.
1002         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
1003         * font/devdvi/generate/cork.map: Renamed to...
1004         * font/devdvi/generate/ec.map: This.
1005         Remove entry for `aq'.
1006         * font/devdvi/generate/tc.map: New file.
1007         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
1008         EC and TC fonts.
1009         (FONTS): Updated.
1010         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
1011         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1012         * tmac/ec.tmac: New file.
1013         * tmac/Makefile.sub (NORMALFILES): Updated.
1014         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1015         * man/groff_char.man: Check `ECFONTS' register.
1017         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
1019 2002-02-26  Werner LEMBERG  <wl@gnu.org>
1021         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
1022         * font/devdvi/generate/cork.map: Add 'y and 'Y.
1023         * font/devdvi/*: Updated.
1024         * tmac/dvi.tmac: Formatting.
1026         Add font `HBI' for the dvi output.
1027         Add support for font families `T' and `H'.
1029         * font/devdvi/HBI: New file.
1030         * font/devdvi/B: Renamed to ...
1031         * font/devdvi/TB: This.
1032         * font/devdvi/BI: Renamed to ...
1033         * font/devdvi/TBI: This.
1034         * font/devdvi/I: Renamed to ...
1035         * font/devdvi/TI: This.
1036         * font/devdvi/R: Renamed to ...
1037         * font/devdvi/TR: This.
1038         * font/devdvi/H: Renamed to ...
1039         * font/devdvi/HR: This.
1040         * font/devdvi/Makefile.sub (DEVFILES): Updated.
1041         * font/devdvi/generate/Makefile (HBI): New rule.
1042         (FONTS): Updated.
1043         (R, I, B, BI, H): Renamed to ...
1044         (TR, TI, TB, TBI, HR): This, respectively.
1045         (srcdir): Fixed.
1046         * NEWS, src/devices/grodvi/grodvi.man: Updated.
1047         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
1048         Add `styles' and `family' keywords.
1049         * tmac/dvi.tmac: Alias `H' to `HR'.
1050         Add some fspecial requests for italic fonts.
1051         Add TR and TI as special.
1052         Add support for `_' with font CWI.
1054         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
1055         operator `:'.  Until now, the expression `0:1' would return 2
1056         instead of 1.
1058 2002-02-25  Werner LEMBERG  <wl@gnu.org>
1060         * man/groff_char.man: Added some missing PS glyph names (from the
1061         Adobe Glyph List).
1062         * font/devps/generate/textmap, font/devps/symbolmap: Add
1063         `arrowupdn'.
1065         * doc/groff.texinfo: Minor additions and fixes.
1066         * man/groff_diff.man: Remove documentation of fp request.  This
1067         is already covered in the original troff manual.
1068         Updated to be consistent with other doc files.
1069         * NEWS: Updated.
1071 2002-02-24  Werner LEMBERG  <wl@gnu.org>
1073         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
1074         TTYDEVDIRS.
1075         Define new variable OTHERDEVDIRS (containing `font/devlj4
1076         font/devlbp' if not EBCDIC).
1077         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
1078         (OTHERDEVDIRS): New variable.
1079         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
1080         * configure: Regenerated.
1082         * NEWS, src/devices/grotty/grotty.man: Updated.
1084 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1086         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1087         get_line_arg): Honour input level.
1089         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1091         * font/*/*: Implement it in all font files.
1092         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1093         * font/devps/symbolmap: Updated.
1094         * font/devlj4/generate/text.map: Updated.
1095         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1096         * font/devdvi/generate/texmi.map: Updated.
1098         * font/devutf8/R.proto: Remove all `charXXX' entries.
1099         * font/devutf8/NOTES: Updated.
1101         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1102         version 4.1.0.
1104         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1106         * NEWS, man/groff_char.man: Updated.
1108 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1110         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1112 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1114         * src/roff/grog/grog.pl: Fix computation of $refer.
1116 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1118         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1119         `snprintf' and `vsnprintf'.
1121         * src/include/htmlindicate.h: Renamed to...
1122         * src/include/htmlhint.h: This.
1123         * src/include/Makefile.sub: Updated.
1124         * src/preproc/eqn/main.cc: Updated.
1126 2002-02-18  Werner LEMBERG  <wl@gnu.org>
1128         * man/roff.man, man/groff_out.man, man/groff.man,
1129         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1130         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1132         * win32-diffs: Updated.
1134 2002-02-17  Werner LEMBERG  <wl@gnu.org>
1136         * doc/Makefile (clean): Add *.eps.
1137         (MEMACROS): Removed.
1138         (TFLAG): New variable.
1139         (TROFF): Use it.
1140         Add -ww.
1141         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1142         (.me.dit): Fixed.
1143         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1145         * tmac/www.tmac: Use dummy diversion while resetting and disabling
1146         `.tl'.
1147         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1148         unstripped.
1149         * src/roff/troff/troff.man: Fix order of parameter description.
1151         * NEWS: Updated.
1153 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
1155         Simplify image handling for grohtml.
1156         Fix <p> bug.
1158         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1159         comment out.
1160         (html_text::dump_stack): Don't emit newline while debugging.
1161         (html_text::do_push) [DEBUGGING]: Print more info.
1162         (html_text::check_emit_text): Fix handling of <p>.
1163         * src/devices/grohtml/html.h: Updated.
1164         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1165         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
1166         send its data to stderr also.
1167         Update all callers.
1168         (simple_output::space_or_newline) [DEBUGGING]: Removed.
1169         * src/devices/grohtml/post-html.cc (html_printer::do_links,
1170         html_printer::html_printer): Remove `DEBUGGING' conditionals.
1172         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1173         Removed.
1174         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1175         is_inline_image): Removed.
1176         (html_begin_suppress, html_end_suppress): Don't take a parameter.
1177         (graphic_start, graphic_end): Removed.
1178         * src/include/htmlindicate.h: Updated.
1179         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1180         (macroset_template): New global variable.
1181         (makeFileName): Use `macroset_template'.
1182         (write_end_image): Don't take a parameter.
1183         Don't emit newline.
1184         (write_start_image: Don't emit newline.
1185         (char_buffer::write_upto_newline): Updated.
1186         (char_buffer::skip_to_newline): Renamed to ...
1187         (char_buffer::skip_until_newline): This.
1188         Fix code.
1189         (char_buffer::write_file_troff, char_buffer::write_file_html):
1190         Simplified.
1191         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1192         (removeAllPages): Remove `DEBUGGING' conditionals.
1193         (addRegDef, dump_args): New functions.
1194         (char_buffer::do_html, char_buffer::do_image): Handle
1195         `www-image-template' command line variable.
1196         Add more debugging code.
1197         (addps4html): Removed.
1198         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1200         * src/preproc/eqn/main.cc: Include `ctype.h'.
1201         (suppress_html): Removed.
1202         (do_file): Updated.
1203         (inline_equation): Use `html_begin_suppress' and
1204         `html_end_suppress'.
1205         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1206         (troff_output::start_picture, troff_output::finish_picture):
1207         Updated.
1208         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1209         (process_input_file): Updated.
1211         * src/roff/troff/div.cc (page_number): Set page number only if the
1212         `ps4html' register isn't defined.
1213         * src/roff/troff/input.cc (image_no): New external variable.
1214         (do_suppress): Use it.
1215         * src/roff/troff/node.h (suppress_node::image_id): New member.
1216         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1217         (suppress_node::suppress_node): Initialize `image_id' member.
1218         (suppress_node::same): Handle `image_id' also.
1219         (suppress_node::copy): Updated.
1220         (last_image_id): New global variable.
1221         (suppress_node::tprint): Use it.
1223         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1224         HTML-IMAGE-END.
1225         * tmac/pspic.mac (PSPIC): Fix html support.
1226         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1227         * tmac/www.tmac (www-image-template): Set up.
1228         (HTMLINDEX): Renamed to...
1229         (HX): This.
1230         (BODYCOLOR): Renamed to...
1231         (BCL): This.
1232         (BACKGROUND): Renamed to...
1233         (BGIMG): This.
1234         (URL): Change order of parameters for consistency.
1235         (MAILTO): Renamed to...
1236         (MTO): This.
1237         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1238         (IMG, PIMG, MPIMG): This.
1239         (HTML-H-BEGIN, HTML-H-END): Renamed to...
1240         (HnS, HnE): This.
1241         (LINKS): Renamed to...
1242         (LK): This.
1243         (LINE): Renamed to...
1244         (HR): This.
1245         (NO-AUTO-RULE): Renamed to...
1246         (NHR): This.
1247         (HTML-TL): Renamed to...
1248         (HTL): This.
1249         (UL-BEGIN, UL-END): Renamed to...
1250         (ULS, ULE): This.
1251         (DROPCAP): Renamed to...
1252         (DC): This.
1253         (TS, TE, EQ, EN): Provide default definitions.
1254         (www-make-unique-name): Updated.
1255         (HTML-IMAGE-INLINE): Fix typo.
1256         * tmac/groff_www.man: Updated.
1258         * doc/Makefile (homepage.html): Add option -r to grohtml.
1259         Use shortened image name.
1260         * doc/groff.texinfo: Updated info on grohtml strings and macros.
1261         * doc/homepage.ms: Updated and extended.
1263 2002-02-14  Werner LEMBERG  <wl@gnu.org>
1265         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1267         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1268         SGR_BACK_DEFAULT_COLOR): Replaced with ...
1269         (tty_printer::put_color): Use it.
1270         (ttr_printer::end_page): Simplify.
1272 2002-02-13  Werner LEMBERG  <wl@gnu.org>
1274         * tmac/groff_tmac.man: Moved to...
1275         * man/groff_tmac.man: This place.
1276         * tmac/Makefile.sub, man/Makefile.sub: Updated.
1278 2002-02-12  Werner LEMBERG  <wl@gnu.org>
1280         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1281         $(COMPILE.c) to not include groff's assert.h.
1283         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1284         variable.
1285         * NEWS, src/drivers/grotty/grotty.man: Document it.
1287 2002-02-11  Werner LEMBERG  <wl@gnu.org>
1289         * src/libs/snprintf/snprintf.c: Updated to latest version
1290         (2002-02-11).
1292         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
1293         test whether there is `.]' also.
1294         Don't check for spaces after `.['.
1295         * src/roff/grog/grog.sh: Do the same.
1297 2002-02-10  Werner LEMBERG  <wl@gnu.org>
1299         Illegal -> Invalid.
1301         * src/libs/libgroff/illegal.cc: Renamed to ...
1302         * src/libs/libgroff/invalid.cc: This.
1303         (illegal_char_table): Renamed to ...
1304         (invalid_char_table): This.
1305         * src/libs/libgroff/Makefile.sub: Updated.
1306         * win32-diffs: Updated.
1308         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1309         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1310         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1311         font::load), src/preproc/eqn/main.cc (read_line, main),
1312         src/preproc/eqn/lex.cc (file_input::read_line),
1313         src/preproc/pic/lex.cc (file_input::read_line,
1314         simple_file_input::get, simple_file_input::peek),
1315         src/preproc/pic/main.cc (top_input::get, top_input::peek),
1316         src/preproc/pic/pic.man, src/preproc/refer/main.cc
1317         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1318         do_bib), src/preproc/tbl/main.cc (table_input::get),
1319         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1320         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1321         do_zero_width, read_request, encode_char, ps_get_line,
1322         transparent_file, get_char_for_escape_name, transparent_translate,
1323         asciify, input_char_description, read_string, set_string),
1324         src/roff/troff/env.cc (environment::add_html_tag),
1325         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1327         * src/include/lib.h: Updated.
1329         * src/preproc/eqn/eqn.cc: Removed.
1331         * NEWS: Updated.
1333         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1335 2002-02-09  Werner LEMBERG  <wl@gnu.org>
1337         * doc/gnu.xpm: New image.
1338         * doc/Makefile (DOCS): Add homepage.ps.
1339         Add rules for converting xpm->png and xpm->eps.
1340         Use `gnu.{xpm,eps}' as image names.
1341         * doc/homepage.ms: Updated.
1343 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
1345         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1346         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1347         Remove calls to `B1' and `B2'
1348         (PNG-IMAGE): New macro for inclusion of images in PNG format.
1349         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1350         auxiliary variables for MARGIN-PNG-IMAGE.
1351         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1352         auxiliary macros for MARGIN-PNG-IMAGE.
1353         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1354         the margin.
1355         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1356         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1357         (DROPCAP): New macro to produce dropcap characters.
1358         (www-do-image): Renamed back to...
1359         (HTML-DO-IMAGE): This.
1360         Updated all callers.
1362         * doc/Makefile (gnubw.eps): Updated.
1363         * doc/homepage.ms: Updated.
1365 2002-02-08  Werner LEMBERG  <wl@gnu.org>
1367         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1368         Added `linethick' to table in section `Style Variables'.
1370 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
1372         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1374 2002-02-07  Werner LEMBERG  <wl@gnu.org>
1376         Adding options -C (compatibility mode) and -c (grotty's old output
1377         scheme) to nroff.
1379         * src/roff/nroff/nroff.sh: Implement it.
1380         Remove `-Wall'.
1381         * NEWS, src/roff/nroff/nroff.man: Updated.
1383         * PROBLEMS: Document bison 1.32 bug.
1385         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1387         * src/roff/troff/node.cc (make_tfont): Define it earlier.
1388         * src/roff/troff/div.h: Add prototype for `end_diversions'.
1389         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1390         * src/roff/troff/env.h: Add prototype for `title'.
1392         Adding EBCDIC support to grotty.
1394         * src/devices/grotty/tty.cc (CSI): New macro.
1395         (SGR_*, tty_printer::put_color): Use it.
1397 2002-02-06  Werner LEMBERG  <wl@gnu.org>
1399         Implementing color support in grotty.  The new switch -c activates
1400         the old drawing scheme, disabling color at the same time.  The new
1401         switch `-i' selects italic instead of underlining (SGR only).
1403         * src/devices/grotty/tty.cc (putstring): New define instead of
1404         `fputs'.  Updated all callers.
1405         (old_drawing_scheme): New global variable.
1406         (COLOR_CHANGE): New enum value.
1407         (SGR_*): New defines containing color handling escape sequences.
1408         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1409         (glyph): New members `back_color_idx' and `fore_color_idx'.
1410         (glyph::order): Add COLOR_CHANGE.
1411         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1412         `is_underline', `is_bold', `cu_flag', `tty_colors'.
1413         New methods `make_underline', `make_bold', `color_to_idx',
1414         `change_color', `put_color'.
1415         (cu_flag): Moved into `tty_printer' class.
1416         (tty_printer::tty_printer): Initialize colors.
1417         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1418         tty_printer::draw, tty_printer::end_page): Handle colors also.
1419         (main): Add options `-c' and `-i'.
1420         (usage): Updated.
1421         * NEWS, src/devices/grotty/grotty.man: Updated.
1423         * src/include/errarg.h (errarg): Add support for `unsigned int'.
1424         * src/libs/libgroff/errarg.c: Implement it.
1426         * src/include/printer.h (printer): Add `change_color' method
1427         (currently used by grotty only).
1428         * src/libs/libdriver/printer.cc: Implement it.
1429         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1430         call to `pr->change_color'.
1432         * src/roff/troff/node.cc (troff_output_file::fill_color,
1433         troff_output_file::glyph_color): Call `do_motion'.
1435         * tmac/tty.tmac: Add color definitions.
1437         * src/roff/groff/groff.man: Minor fixes.
1439 2002-02-05  Bernd Warken  <bwarken@mayn.de>
1441         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1442         it.  This is a preparation for future changes.
1444 2002-02-05  Werner LEMBERG  <wl@gnu.org>
1446         * src/roff/troff/input.cc (process_input_stack): Fix the case
1447         where leading spaces are followed by \f or \s; previously, an
1448         incorrect space width has been used.
1450         * doc/roff.man (quoted_char): Fix argument.
1451         (comment): Define string.
1453 2002-02-04  Larry Kollar  <kollar@alltel.net>
1455         * doc/groff.texinfo: More fixes.
1457 2002-02-04  Werner LEMBERG  <wl@gnu.org>
1459         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1460         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1461         `restore_compatibility' before `output_string' -- the LINE_STRING
1462         register now already contains proper switches from and to
1463         compatibility mode.
1465         * man/groff_char.man: Add Euro symbol.
1466         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1467         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1468         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1469         Other minor fixes.
1471         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1472         texinfo->pdf.
1473         (.texinfo.html): Add support for texinfo->html.
1475 2002-02-03  Werner LEMBERG  <wl@gnu.org>
1477         Added three new requests `ds1', `as1', and `ami'.  The former two
1478         are equivalent to `ds' and `as' with the difference that
1479         compatibility mode is saved on entry, switched off during string
1480         expansion, and restored on exit.  The latter is the pendant to `dei'
1481         for `am'.
1483         (do_define_string): Use `define_mode' and `calling mode'.
1484         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1485         end of string, respectively.
1486         (define_string, append_string): Use `calling_mode'.
1487         (define_nocomp_string, append_nocomp_string,
1488         define_string_indirect): New functions.
1489         (init_input_requests): Updated.
1490         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1492         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1493         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1494         mm macro package accesses this string register directly.
1495         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1497         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1498         compatibility mode.
1500 2002-02-02  Larry Kollar  <kollar@alltel.net>
1502         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1504 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1506         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1508 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1510         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1511         * man/groff_out.man: Revised and updated.
1513 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1515         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1516         out the unused `{' and `}' commands.  Undefined by default.
1517         (IntArray): Make `data' private.
1518         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1519         new methods instead.
1520         (skip_line_D, skip_to_end_of_line): New functions.
1521         (get_D_fixed_args): Use `skip_line_D'.
1522         Changed to handle dummy odd arguments by ...
1523         (get_D_fixed_args_odd_dummy): This new function.
1524         (get_D_variable_args): Split some code into ...
1525         (get_possibly_integer_args): This new function.
1526         (send_draw): Use more `const'.
1527         (delete_current_env): New function.
1528         (position_to_end_of_args): Use `size_t'.
1529         Updated.
1530         (send_draw): Updated.
1531         (parse_D_command): Handle `c', `C', and `t' better.
1532         Updated.
1533         (do_file): Updated.
1535 2002-01-29  Werner LEMBERG  <wl@gnu.org>
1537         * NEWS: Revised.
1538         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1539         @Def...ListEnd which replaces @Def...x.  This is necessary to get
1540         proper HTML output -- see the comment in the file for more
1541         information.
1542         Updated all calls.
1544 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
1546         Fixes to make color changes of 2002-01-21 work with grohtml.
1548         * src/devices/grohtml/post-html.cc (style): Updated.
1549         (html_printer): Remove unused methods.
1550         (html_printer::do_font, html_printer::draw, html_printer::set_char,
1551         html_printer::special): Updated.
1552         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1553         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1554         Added some debugging code.
1555         (html_text::start_tag): Updated.
1556         (html_text::do_push): New method.
1557         (html_text::push_para): Call it.
1558         Add method for handling color.
1559         (html_text::do_color): Updated.
1560         (html_text::shutdown): Handle color.
1561         * src/devices/grohtml/html-text.h (tag_definition): New member
1562         `col'.
1563         Updated.
1565 2002-01-28  Werner LEMBERG  <wl@gnu.org>
1567         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1569 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1571         Add two switches -a and -g to control the antialiasing bits for
1572         text and graphics, respectively.
1574         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1575         `-g'.
1576         * src/devices/grohtml/grohtml.man: Document them.
1577         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1578         New macros.
1579         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1580         (setupAntiAlias): New function.
1581         (createAllPages): Updated.
1582         (scanArguments): Handle `-a' and `-g'.
1583         (main): Call `setupAntiAlias'.
1584         * NEWS: Updated.
1586 2002-01-27  Werner LEMBERG  <wl@gnu.org>
1588         * doc/groff.texinfo (Def*): Call index function after deffn.
1590         * tmac/html.tmac: Call `nroff' request.
1592 2002-01-26  Larry Kollar  <kollar@alltel.net>
1594         * tmac/groff_ms.man: Add some omissions.
1596 2002-01-25  Larry Kollar  <kollar@alltel.net>
1598         * tmac/groff_ms.man: Typographical improvements.
1600 2002-01-25  Werner LEMBERG  <wl@gnu.org>
1602         * doc/groff.texinfo: Updated version and copyright.
1603         * src/devices/grops/grops.man: Updated.
1605         * tmac/groff_tmac.man: Fix `ig' macro.
1607         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1608         nroff mode.
1609         Use `.ne' unconditionally everywhere.
1610         (TS): Only insert some vertical space.  Doing a page break is no
1611         longer necessary due to the redefinition of the `ne' request.
1613         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1614         warning for unknown subcommands but parse and pass them to the
1615         device driver.
1617 2002-01-24  Werner LEMBERG  <wl@gnu.org>
1619         * tmac/groff_www.man, NEWS: Fix typos.
1621 2002-01-21  Werner LEMBERG  <wl@gnu.org>
1623         Complete revision of color support:
1625           Adapt programs to the new libdriver/input.cc.
1627           Color spaces are no longer converted to RGB but transferred as-is
1628           in the troff intermediate output format.
1630           Handle default color gracefully.  troff now supports a `default'
1631           color (which can't be changed).
1633           grops will now use the proper color space functions if available.
1635           Update pic.
1637         Note that currently grohtml doesn't handle colors properly.  This
1638         has to be fixed.
1640         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1641         (ui_to_a): New function.
1642         * src/include/lib.h: Updated.
1644         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1645         (color): Simplified; removed all `double' members and methods.
1646         A new array `components' now holds the color parameters.
1647         (color::is_default, color::get_components): New methods.
1648         (color::operator==, color:operator!=): New.
1649         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1650         to make access to the `components' array more comprehensible.
1651         * src/libs/libgroff/color.cc: Implement new color support.
1652         (atoh): Small fixes.
1653         (color::read_encoding): Simplified for new troff intermediate color
1654         output format.
1655         (default_color): New global variable.
1657         * src/roff/troff/input.cc (default_symbol): New global variable.
1658         (lookup_color): Use it.
1659         (default_black): Removed.
1660         (do_glyph_color, do_fill_color): Simplified.
1661         (define_color): Handle default color.
1662         Improve warnings.
1663         (do_if_request): Handle default color.
1664         * src/roff/troff/env.cc (environment::environment): Initialize
1665         colors with `default_color'.
1666         * src/roff/troff/node.cc (troff_output_file::put): Add method
1667         for `unsigned int'.
1668         (troff_output_file::hex): Removed.
1669         (troff_output_file::fill_color, troff_output_file::glyph_color):
1670         Updated to include/color.h and libdriver/input.cc.
1672         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1673         fill color properly (identically to the outline color).  \D'f...'
1674         doesn't work any more.
1675         All function calls to it updated.
1677         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1678         Updated.
1679         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1680         Updated.
1682         * src/devices/grops/ps.cc (ps_output::put_color): New method.
1683         (ps_printer::sbuf_color): Make a real member instead of pointer.
1684         (ps_printer::fill_color, ps_printer::output_color): Removed.
1685         (ps_printer::ps_printer): Updated.
1686         (ps_printer::set_char): Ditto.
1687         (ps_printer::set_color): Use various color schemes.
1688         Use `put_color' method.
1689         (ps_printer::flush_sbuf): Don't set color.
1690         (ps_printer::fill_path): Take `environment' as parameter.
1691         Simplify color handling.
1692         (ps_printer::set_line_thickness): Renamed to ...
1693         (ps_printer::set_line_thickness_and_color): This (and updated).
1694         (ps_printer::set_color): Change second parameter from `complete'
1695         to `fill' which better describes what it does.
1696         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1697         and text in the right order.
1698         Updated.
1699         Remove branches for `f' and `F'; this is handled by
1700         libdriver/input.cc.
1701         * src/devices/grops/ps.h: Updated.
1702         * font/devps/prologue (FL): Redefined.
1703         ({F,C}r,k,g: New color functions (with and without filling).
1705         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1706         * man/groff_diff.man, man/groff.man, man/groff_out.man,
1707         doc/groff.texinfo, NEWS: Updated.
1709 2002-01-20  Bernd Warken  <bwarken@mayn.de>
1711         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
1712         in this file for what has been changed.
1714 2002-01-19  Werner LEMBERG  <wl@gnu.org>
1716         * test-groff: Fix GROFF_FONT_PATH.
1717         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1718         is read before .TH or .Dd is parsed.
1720 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
1722         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1723         quadrant boundaries.
1725 2002-01-18  Werner LEMBERG  <wl@gnu.org>
1727         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
1728         applied last patch.
1730 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
1732         * tmac/doc.common: Initialize %I register for the %I macro to
1733         avoid (harmless) warning.
1734         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1735         when in the SYNOPSIS section.
1737 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
1739         * src/preproc/pic/lex.cc (get_token): Fix typo.
1741 2002-01-17  Werner LEMBERG  <wl@gnu.org>
1743         * devices/grops/ps.cc: Fix incorrectly applied last patch.
1745 2002-01-17  Larry Kollar  <kollar@alltel.net>
1747         * tmac/groff_ms.man: Completely rewritten.
1749 2002-01-16  Werner LEMBERG  <wl@gnu.org>
1751         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1753 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1755         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1756         fill colors.
1757         (ps_printer::draw): Ditto.
1759 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
1761         * tmac/groff_mdoc.man: Minor fixes.
1763 2002-01-13  Werner LEMBERG  <wl@gnu.org>
1765         * man/groff_out.man: Some fixes.
1767 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
1769         * doc/pic.ms: Fix typos.
1771 2002-01-12  Werner LEMBERG  <wl@gnu.org>
1773         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1775 2002-01-10  Werner LEMBERG  <wl@gnu.org>
1777         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1778         symbols.
1779         * NEWS: Updated.
1781 2002-01-09  Bernd Warken  <bwarken@mayn.de>
1783         * man/groff_out.man: Revised.
1784         * man/roff.man: Minor fixes.
1785         * src/roff/troff/troff.man: Some reordering.
1787 2002-01-09  Werner LEMBERG  <wl@gnu.org>
1789         * tmac/an-old.tmac: Add dummy macros for equation support.
1791 2002-01-07  Werner LEMBERG  <wl@gnu.org>
1793         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1795         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
1796         man pages.
1797         * tmac/groff_man.man: Small improvements.
1799 2002-01-07  Bernd Warken  <bwarken@mayn.de>
1801         * man/groff_diff.man: Revised.
1803 2002-01-06  Werner LEMBERG  <wl@gnu.org>
1805         * tmac/www.tmac: Remove extraneous backslash.
1807 2002-01-06  Bernd Warken  <bwarken@mayn.de>
1809         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1811 2002-01-05  Werner LEMBERG  <wl@gnu.org>
1813         Integrated groffer, contributed by Bernd Warken.
1815         * contrib/groffer/*: New.       
1816         * Makefile.in, NEWS: Updated.
1818 2002-01-04  Werner LEMBERG  <wl@gnu.org>
1820         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1821         registers defined in macro packages.
1822         Revising the ms part.
1824 2002-01-04  Larry Kollar  <kollar@alltel.net>
1826         * doc/groff.texinfo: Add documentation for ms macros.
1828 2002-01-02  Werner LEMBERG  <wl@gnu.org>
1830         First step in adding PS support for the Euro symbol.  `eu' is the
1831         official Euro logo, `Eu' is a font-specific glyph variant.
1833         * font/devps/text.enc: Add `Euro' at position 9.
1834         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1835         * font/devps/symbolmap: Regenerated.
1837         * NEWS: Updated.
1839 2002-01-02  Bernd Warken  <bwarken@mayn.de>
1841         * man/roff.man: Revised.
1843 2002-01-01  Bernd Warken  <bwarken@mayn.de>
1845         * src/roff/groff/groff.man: Completely rewritten.
1847 2001-12-31  Werner LEMBERG  <wl@gnu.org>
1849         * doc/Makefile: Updated.
1851 2001-12-30  Werner LEMBERG  <wl@gnu.org>
1853         * tmac/www.tmac: Make all names of internal macros/registers/strings
1854         lowercase, and prepend `www-'.
1855         Other minor changes.
1856         * src/roff/troff/troff.man: Add preprocessor string at BOF.
1858 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
1860         Implement option `-b' in grohtml to set the HTML background colour.
1862         * src/devices/grohtml/post-html.cc (default_background): New global
1863         variable.
1864         (html_printer::html_printer): Initialize `background' to
1865         `default_background'.
1866         (main): Implement option `-b'.
1867         (usage): Updated.
1868         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1869         of `-b' option.
1870         * src/devices/grohtml/grohtml.man: Updated.
1871         * doc/Makefile (.ms.html): Use `-b'.
1872         * tmac/html.tmac: Don't set background color.
1874         Add new grohtml tag `.html-tl'.
1876         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1877         member variable.
1878         (title_desc::title_desc): Updated.
1879         (html_printer::troff_tag): Handle `.html-tl'.
1880         (html_printer::write_title): Use `with_h1'.
1881         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1882         (HTML-TL): New macro.
1884         Add support for unordered lists in HTML.
1886         * tmac/www.tmac (www-level): New auxiliary register.
1887         (www-level1, www-level2, www-level3): New auxiliary strings.
1888         (www-push-level, www-pop-level): New auxiliary macros
1889         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1891         Miscellaneous.
1893         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1894         (DEFAULT_VERTICAL_OFFSET): Removed.
1895         (IMAGE_BOARDER_PIXELS): Set to 0.
1896         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1897         (vertical_offset): Initialize with 0.
1898         (gsPaper): New global variable.
1899         (get_resolution): Scan for and return unsigned int.
1900         (get_papersize): New function to get paper length from devps/DESC.
1901         (determine_vertical_offset): New function.
1902         (createAllPages): Produce gray-level images and use proper page
1903         length.
1904         (createImage): Use `-quiet' option of pnmcrop.
1905         (addZ): Fix passing of `-Z'.
1906         (scanArguments): Fix handling of `-o'.
1907         (main): Call `determine_vertical_offset'.
1908         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1909         code for `l'.
1911         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1912         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1913         glyph descenders properly.
1915         * doc/homepage.ms: Include `gnubw.eps'.
1916         * doc/Makefile (gnubw.eps): New rule.
1917         (homepage.html): Depend on `gnubw.eps'.
1919 2001-12-25  Werner LEMBERG  <wl@gnu.org>
1921         * src/roff/troff/input.cc (default_black): Fix return value.
1923 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
1925         * tmac/doc-common (Dt): Change output of architecture strings.
1926         Do some syntax cleanup.
1927         * tmac/groff_mdoc.man: Updated.
1929 2001-12-23  Werner LEMBERG  <wl@gnu.org>
1931         Adding an `itc' request (input line trap accepting \c).
1933         * src/roff/troff/env.h (environment): New member
1934         `continued_input_trap'.
1935         Make `do_input_trap' a friend function instead of `input_trap'.
1936         * src/roff/troff/env.cc (environment::environment,
1937         environment::copy): Updated.
1938         (environment::newline): Implement it.
1939         (do_input_trap): New function.
1940         (input_trap): Call `do_input_trap'.
1941         (input_trap_continued): New function.
1942         (init_env_requests): Updated.
1943         * src/roff/troff/TODO: Updated.
1945         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1946         `.it'.
1948         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1950 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
1952         * tmac/doc-common, tmac/doc-syms: Small updates.
1954 2001-12-22  Colin Watson  <cjwatson@debian.org>
1956         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1958 2001-12-22  Bernd Warken  <bwarken@mayn.de>
1960         * MANIFEST: New file.
1962 2001-12-22  Werner LEMBERG  <wl@gnu.org>
1964         * src/preproc/grn/grn.man: Updated.
1966 2001-12-22  Solar Designer  <solar@openwall.com>
1968         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1969         (DBRead): Use it.
1971 2001-12-19  Werner LEMBERG  <wl@gnu.org>
1973         Implement a fallback character request `.fchar'.
1975         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1976         (is_fallback): New inline function.
1977         * src/roff/troff/input.cc (do_define_character): New function.
1978         (define_character): Call `do_define_character'.
1979         (define_fallback_character): New function.
1980         (init_input_requests): Add `fchar'.
1981         (charinfo::charinfo): Updated.
1982         (charinfo::set_macro): New argument to set `fallback' flag.
1983         * src/roff/troff/node.cc (make_glyph_node, make_node,
1984         node::add_char): Check `fallback' flag.
1985         * NEWS, man/groff_diff.man, man/groff_man: Updated.
1987 2001-12-16  Werner LEMBERG  <wl@gnu.org>
1989         * groff.texinfo: Document exact search algorithm for glyphs.
1991 2001-12-15  Werner LEMBERG  <wl@gnu.org>
1993         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1994         the left side of $(MANPAGES) rule to make it always non-empty.
1996 2001-12-14  Werner LEMBERG  <wl@gnu.org>
1998         * src/roff/troff/input.cc (default_black): Define default color
1999         `black' if not yet defined.
2001 2001-12-13  Werner LEMBERG  <wl@gnu.org>
2003         Implement new string-valued register `.fn' to return the current
2004         real (internal) font name.
2006         * env.cc (environment::get_font_name_string): New function.
2007         (init_env_requests): Add `.fn' register.
2008         * env.h (environment): Updated.
2009         * node.cc (font_info): Make `get_font_name' a friend.
2010         (get_font_name): New function.
2011         * node.h: Updated.
2013         * man/groff_diff.man, man/groff.man, NEWS: Updated.
2015 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2017         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
2019 2001-12-12  Werner LEMBERG  <wl@gnu.org>
2021         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
2023 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
2025         * man/groff_diff.man: Adding documentation for \O.
2027 2001-12-10  Werner LEMBERG  <wl@gnu.org>
2029         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
2030         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
2032 2001-12-09  Werner LEMBERG  <wl@gnu.org>
2034         * man/roff.man: Revised.
2035         * src/roff/groff/groff.man: Replace man page references with a
2036         pointer to roff.man.
2038 2001-12-09  Bernd Warken  <bwarken@mayn.de>
2040         * man/roff.man: Completely rewritten.
2042 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2044         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
2046 2001-12-05  Werner LEMBERG  <wl@gnu.org>
2048         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
2049         longer used.
2050         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
2051         order of initializers.
2052         * NEWS: Updated.
2054 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
2056         * doc/groff.texinfo: Fix documentation of \O.
2058         * src/devices/grohtml/html-text.cc (html_text::do_indent,
2059         html_text::do_table, html_text::do_emittext, html_text::do_para):
2060         Use `const' for first argument.
2061         (html_text::do_table): Use cast.
2062         * src/devices/grohtml/html-text.h: Updated.
2063         * src/devices/grohtml/output.cc (simple_output::put_string): Add
2064         method for `const string &s'.
2065         * src/devices/grohtml/html.h: Updated.
2066         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
2067         (ANCHOR_TEMPLATE): Modified.
2068         (manufacture_headings): New global variable to handle `-h' option.
2069         (is_subsection): Removed.
2070         (char_buffer::add_string): Add `const' to first argument.
2071         Protect against invalid string argument.
2072         Add method for `const string &s'.
2073         (text_glob): Completely redesigned.
2074         (page): Use `const' for strings and remove string length variable.
2075         (page::add_html): Removed.
2076         (page::add_end_encode): New member function.
2077         (to_unicode): Moved upwards.
2078         (title_desc, header_desc): Updated.
2079         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
2080         definition.
2081         (html_printer::is_bold, html_printer::make_bold): New member
2082         functions.
2083         (html_printer::end_of_line): Updated.
2084         (generate_img_src, html_printer::do_auto_image,
2085         html_printer::do_title, html_printer::write_header,
2086         html_printer::determine_header_level, html_printer::do_heading,
2087         html_printer::do_linelength, html_printer::do_pageoffset,
2088         html_printer::do_indentation, html_printer::do_tempindent,
2089         html_printer::do_indentedparagraph, html_printer::do_break,
2090         html_printer::flush_sbuf, get_html_translation,
2091         html_printer::begin_page, html_printer::special): Rewritten to get
2092         rid of static string length limit.
2093         (html_printer::troff_tag): Added `.no-auto-rule'.
2094         (html_printer::flush_globs): Small fix.
2095         (html_printer::determine_space): Don't compute `space_width'.
2096         (html_printer::translate_to_html): Renamed to ...
2097         (html_printer::emit_html): This (with updates).
2098         (html_printer::write_header): Implement `-h' option.
2099         (html_printer::draw): Remove commented-out code.  Handle `F'
2100         command.
2101         (html_printer::add_char_to_sbuf): Removed.
2102         (html_printer::add_to_sbuf): Rewritten.
2103         (html_printer::sbuf_continuation): Fixed.
2104         (html_printer::seen_backwards_escape, reverse,
2105         html_printer::remove_last_char_from_sbuf): Removed.
2106         (char_translate_to_html, str_translate_to_html): Removed.
2107         (html_printer::overstrike): New function member.
2108         (html_printer::set_char): Use it.
2109         (html_printer::do_body): New function member.
2110         (html_printer::~html_printer): Use it.
2111         (main): Handle `-h' option.
2112         (usage): Updated.
2113         * src/devices/grohtml/grohtml.man: Document -h switch.
2115         * src/preproc/html/pre-html.cc: Include searchpath.h
2116         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2117         (get_resolution): New function.
2118         (checkImageDir): Use `0777' permissions in mkdir()
2119         (write_start_image): Rewritten to use `\O[5...]'.
2120         (createImage, generateImages): Updated.
2121         (main): Handle `F' and `h' options.
2122         Use `get_resolution'.
2124         * src/roff/troff/input.cc (begin, end, image): Removed.
2125         (do_suppress): Take parameter.
2126         Handle modified syntax of `\O'.
2127         (token::next): Updated.
2128         (init_markup_requests): Removed.
2129         (main): Updated.
2131         * src/roff/troff/div.h: Add declaration for begin_page().
2133         * tmac/color-html.tmac: Removed.  Contents moved to...
2134         * tmac/html.tmac: Here.  Set background color.
2135         * tmac/color.tmac: Removed.  Contents moved to...
2136         * tmac/ps.tmac: Here.
2137         * tmac/www.tmac: Remove the title command when generating images
2138         for html.
2139         (NO_AUTO_RULE): New macro.
2140         (HTML_DO_IMAGE): Use revised `\O' escapes.
2141         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2143 2001-12-02  Werner LEMBERG  <wl@gnu.org>
2145         * tmac/groff_mdoc.man: Fix typo.
2147 2001-12-01  Colin Watson  <cjwatson@debian.org>
2149         * man/roff.man: Fix typo.
2151 2001-11-29  Werner LEMBERG  <wl@gnu.org>
2153         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2154         stdlib.h.
2156         * src/roff/troff/input.cc (read_draw_node): Emit error message if
2157         more than one argument to \D'f ...'.
2159         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2161 2001-11-28  Werner LEMBERG  <wl@gnu.org>
2163         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2164         loaded only once.
2166         * tmac/groff_man.man: Minor cosmetic fix.
2168 2001-11-27  Werner LEMBERG  <wl@gnu.org>
2170         * src/roff/groff/groff.man, tmac/groff_tmac.man,
2171         tmac/groff_www.man: s/mwww/www/.
2173 2001-11-26  Werner LEMBERG  <wl@gnu.org>
2175         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2176         * configure: Regenerated.
2177         * win32-diffs: Updated.
2179         * tmac/groff_mwww.tmac: Renamed to ...
2180         * tmac/groff_www.tmac: This.
2181         * tmac/mwww.tmac: Removed.
2182         * NEWS, tmac/Makefile.sub: Updated.
2184 2001-11-21  Werner LEMBERG  <wl@gnu.org>
2186         * doc/groff.texinfo: Improve documentation of the `\v' escape.
2187         Fix explanation of `\D' and `rt'.
2189 2001-11-20  Werner LEMBERG  <wl@gnu.org>
2191         * tmac/an-old.tmac (an-header): Set header length equal to page
2192         width.
2193         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
2194         minor fixes.
2195         * NEWS: Small fix.
2197 2001-11-19  Werner LEMBERG  <wl@gnu.org>
2199         * NEWS, man/Makefile.sub: Updated.
2201 2001-11-19  Bernd Warken  <bwarken@mayn.de>
2203         * man/ditroff.man: New file.
2205 2001-11-17  Werner LEMBERG  <wl@gnu.org>
2207         * man/groff_differences.man: Renamed to ...
2208         * man/groff_diff.man: This.  Updated.
2209         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2211         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2212         * src/preproc/html/pushback.cc: This.  Updated.
2213         * src/preproc/html/pushbackbuffer.h: Renamed to ...
2214         * src/preproc/html/pushback.h: This.
2215         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2216         Updated.
2218         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2219         * src/libs/libgroff/htmlhint.cc: This.
2220         * src/libs/libgroff/Makefile.sub: Updated.
2222         * tmac/an-old.tmac (an-end): Fix page length.
2224 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2226         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2227         * man/Makefile.sub: Include groff_differences.man.
2228         * VERSION: Set to 1.18.
2229         * REVISION: Set to 0.
2231 2001-11-16  Bernd Warken  <bwarken@mayn.de>
2233         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2234         the second dot (or ending macro name) to end a macro.
2235         * doc/groff.texinfo: Doc fix.
2237 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
2239         * tmac/doc-common (doc-header): Handle very long document titles
2240         better.
2242 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2244         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2246 2001-11-15  Werner LEMBERG  <wl@gnu.org>
2248         * src/roff/troff/troff.man: Revised and split into troff.man and...
2249         * man/groff_differences.man: New file.
2250         * NEWS: Updated.
2252 2001-11-13  Werner LEMBERG  <wl@gnu.org>
2254         * tmac/an-old.tmac (TS, TE): New macros for table support.
2256 2001-11-12  Werner LEMBERG  <wl@gnu.org>
2258         * src/include/lib.h: Provide a fix for emx to not include
2259         groff-getopt.h.
2261 2001-10-27  Werner LEMBERG  <wl@gnu.org>
2263         * src/roff/troff/input.cc (substring_macro): Fix computation of
2264         boundary values.
2266 2001-10-20  Werner LEMBERG  <wl@gnu.org>
2268         Undo change from 2001-08-28.
2270         * src/roff/troff/input.cc (have_input): New global variable.
2271         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2272         in compatibility mode.
2273         (process_input_stack): Use it.
2275 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
2277         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2278         being handled as end-of-sentence characters,
2280 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
2282         * src/roff/troff/input.cc (file_iterator): New members
2283         `suppress_newline_flag' and `seen_escape'.
2284         (file_iterator::next_file): Updated.
2285         (file_iterator::fill): Use it.
2286         (string_iterator): New member `suppress_newline_flag'.
2287         (string_iterator::fill): Set it.
2288         (get_color_element): Use MAX_COLOR_VAL.
2289         * src/roff/troff/env.cc (environment): Remove `need_eol'.
2290         (no_fill): Don't set `env->ignore_next_eol'.
2291         (environment::newline): Handle `eol' tag properly.
2292         Emit `eol.ce'.
2293         (environment::add_html_tag): Set `env->ignore_next_eol'.
2294         Don't handle `.ce'.
2295         * src/roff/troff/env.h (environment): Updated.
2297         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2298         member function.
2299         (html_printer::outstanding_eol): New member function.
2300         (html_printer::do_title): Use new functions.
2301         (html_printer::troff_tag): Test `id_eol_ce'.
2303 2001-10-10  Werner LEMBERG  <wl@gnu.org>
2305         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2306         files work with -C also.
2308 2001-10-05  Werner LEMBERG  <wl@gnu.org>
2310         * doc/pic.ms: Minor fix.
2311         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2312         as a valid command line switch.
2313         * src/devices/grohtml/post-html.cc (main): Ditto.
2314         (usage): Updated.
2315         * src/devices/grohtml/grohtml.man: Updated.
2316         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2318 2001-10-04  Werner LEMBERG  <wl@gnu.org>
2320         Implementing color support in troff, pic, grops, and grohtml.  These
2321         changes are based on a major patch provided by Gaius Mulley
2322         <gaius@glam.ac.uk>.
2324         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2325         definitions with both hex values and fractions.
2327         New escapes: \m and \M for drawing and background color,
2328         respectively.  This corresponds to the troff output commands `m'
2329         and `DF'.
2331         groff and troff accept command line switch `-c' to disable color
2332         output (which is automatically disabled in compatibility mode).
2334         New scaling indicator `f' for fractions (1f = 65536u).
2336         New conditional operator `m' to test for defined colors with `if'
2337         and `ie'.
2339         New keywords `color' (or `colour', `colored', `coloured'), `outline'
2340         (or `outlined'), and `shaded' added to pic.
2342         * src/include/color.h: New file.
2343         * src/include/driver.h: Include it.
2344         * src/include/printer.h: Include color.h.
2345         (environment): New members `col' and `fill'.
2346         (printer): Remove `adjust_arc_center' member function.
2347         * src/include/Makefile.sub: Updated.
2349         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2350         `env.fill'.
2351         Handle `m' and `DF' troff commands.
2352         * src/libs/libgroff/color.cc: New file.
2353         * src/libs/libgroff/Makefile.sub: Updated.
2355         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2356         (stop): Removed.
2357         (createImage): Fix computation of `y2'.
2358         Use `pnmcrop' also.
2359         (buffer::write_file_html): Remove calls to `stop'.
2361         * src/preproc/pic/common.h (common_output): New abstract function
2362         members `set_color', `reset_color', `get_last_filled', and
2363         `get_outline_color'.
2364         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2365         (object_spec): Add members `shaded' and `outlined'.
2366         * src/preproc/pic/output.h (output): `command' is now abstract.
2367         New function members `set_color', `reset_color', `get_last_filled',
2368         and `get_outline_color'.
2369         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2370         `outline[d]', and `shaded'.
2371         * src/preproc/pic/object.cc (output::command): Removed.
2372         (output::set_location): Moved to output.h.
2373         (graphic_object): Add protected members `outline_color' and
2374         `color_fill'.
2375         Add member functions `set_outline_color', `get_outline_color', and
2376         `set_fill_color'.
2377         (closed_object): Add member function `set_fill_color'.
2378         Add member `color_fill'.
2379         (graphic_object::print_text): Use `out->set_color' and
2380         `out->reset_color'.
2381         (box_object::print, ellipse_object::print, circle_object::print,
2382         line_object::print, spline_object::print, arc_object::print): Ditto.
2383         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2384         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2385         `SHADED', making them `%left'.
2386         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2387         * src/preproc/pic/tex.cc (tex_output): New dummy function members
2388         `set_color', `reset_color', `get_last_filled', and
2389         `get_outline_color'.
2390         * src/preproc/pic/troff.cc (simple_output): New abstract function
2391         members `set_color', `reset_color', and `get_last_filled'.
2392         (simple_output::polygon, simple_output::circle,
2393         simple_output::ellipse): Use `get_last_filled'.
2394         (troff_output): New members `last_filled' and `last_outlined'.
2395         New function members `set_color', `reset_color', `get_last_filled',
2396         and `get_outline_color'.
2397         (troff_output::finish_picture): Use `reset_color'.
2398         (troff_output::set_fill): Test `last_filled'.
2399         * src/preproc/pic/pic.man: Updated.
2401         * src/roff/groff/groff.cc (main): Implement `-c' option.
2402         (synopsis, help): Updated.
2403         src/roff/groff/groff.man: Updated.
2405         * src/roff/troff/troff.h: Include color.h.
2406         (warning_type): Add WARN_COLOR.
2407         * src/roff/troff/env.h (environment): New members
2408         `{cur,prev}_{glyph,fill}_color'.
2409         New member functions `get_{prev_,}{glyph,fill}_color'.
2410         * src/roff/troff/env.cc: Initialize and implement them.
2411         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2412         Replace `NULL' with `0' everywhere for consistency.
2413         (lookup_color, default_black, do_glyph_color, do_fill_color,
2414         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2415         define_color): New functions.
2416         (token::next): Implement \M and \m escapes.
2417         (do_if_request): Implement `m' operator.
2418         (usage): Updated.
2419         (main): Implement `-c' option.
2420         (init_markup_requests): Add `defcolor' request.
2421         (warning_table): Add `color' warning.
2422         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2423         classes.
2424         * src/roff/troff/node.cc (troff_output_file): New members
2425         `current_{page,glyph}color'.  New member functions `put_hex',
2426         `glyph_color', and `fill_color'.
2427         (glyph_color_node::*, fill_color_node::*): Implement it.
2428         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2429         (parse_term): Add support for `f'.
2430         * src/roff/troff/troff.man: Updated.
2432         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2433         entry for `F'.
2434         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2435         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2437         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2438         (tag_definition): Use `void *' for arg1.
2439         (html_text): New member functions `do_color' and `done_color'.
2440         Use `void *' for second parameter of `push_para' member function.
2441         New `push_para' member function with a single parameter.
2442         Use `char *' for parameter of `issue_table_begin' member funtion.
2443         New `issue_color_begin' member function.
2444         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2445         COLOR_TAG.
2446         (html_text::issue_color_begin): New function.
2447         (html_text::issue_table_begin): Use `char *' for parameter.
2448         (html_text::start_tag, html_text::shutdown,
2449         html_text::check_emit_text): Updated.
2450         (html_text::push_para): Use `void *' for second parameter.
2451         Add same function with only one parameter.
2452         (html_text::do_*): Updated.
2453         (html_text::do_color, html_text::done_color): New functions.
2454         * src/devices/grohtml/post-html.cc (style): New member `col'.
2455         Mew member `style' with 6 parameters.
2456         (style::style, style::operator==): Updated.
2457         (html_printer::do_font): Use it.
2458         (html_printer::draw): Add dummy entry for `F'.
2459         (html_printer::set_char): Updated.
2460         * src/devices/grohtml/grohtml.man: Updated.
2462         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2463         trailing zeroes removed.
2464         (ps_printer): New members `sbuf_color', `fill_color', and
2465         `output_color'.
2466         Removed member `fill'.
2467         New member function `set_color'.
2468         (ps_printer::ps_printer, ps_printer::set_char): Updated.
2469         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2470         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2472         * tmac/color-html.tmac, tmac/color.tmac: New files.
2473         * tmac/troffrc: Include them.
2474         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2475         * tmac/Makefile.sub: Updated.
2477         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2478         man/groff.man: Updated.
2479         * font/devps/prologue.ps: Define FC and CO functions.
2481 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
2483         Fix incorrect cropping of images and incorrect handling of special
2484         characters.  Fix handling of file names in \O.
2486         * src/include/geometry.h: New file.
2487         * src/libs/libgroff/geometry.cc: New file.
2488         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2489         to `geometry.cc'.
2490         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2491         initial spaces.
2492         (do_suppress): Updated.
2493         * src/roff/troff/node.cc: Include geometry.h.
2494         (troff_output_file::flush_tbuf): Fixed parameters to
2495         `check_output_limits'.
2496         (troff_output_file::check_charinfo): Ditto.
2497         (troff_output_file::determine_line_limits): Add support for `Da'
2498         and `Dl' commands.
2500         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2501         Add new parameter `is_special' to decode special characters from
2502         escape sequences.
2503         (html_printer::do_title, html_printer::do_heading,
2504         html_printer::do_indentedparagraph,
2505         html_printer::translate_to_html, html_printer::special): Updated.
2507 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2509         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2510         Fix entry for config.h.
2511         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2512         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2513         * src/preproc/eqn/eqn.man: Document -d command line option.
2515 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2517         * man/groff.man: Use
2519           .ev xxx
2520           .na
2521           .nh
2522           <table>
2523           .ev
2525         instead of the old code (`.ad .hy' after the table) to suppress
2526         incorrect hyphenation for grohtml output.
2528 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2530         * man/groff_font.man, man/groff_out.man: Minor fixes.
2532 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2534         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
2535         Arnold Robbins <arnold@skeeve.com>).
2537 2001-09-09  Werner LEMBERG  <wl@gnu.org>
2539         * configure: Regenerated with autoconf 2.52.
2541         * doc/groff.texinfo: Complete revision of indices.
2543 2001-09-07  Werner LEMBERG  <wl@gnu.org>
2545         * doc/Makefile (clean): Updated to delete all indices.
2547 2001-09-05  Werner LEMBERG  <wl@gnu.org>
2549         * src/roff/troff/troff.man: Remove superfluous line.
2551         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2552         given on the command line (or rather, if only the default warnings
2553         are set).
2555 2001-09-03  Werner LEMBERG  <wl@gnu.org>
2557         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2558         use .ne for TTY devices.
2560 2001-08-31  Werner LEMBERG  <wl@gnu.org>
2562         * src/roff/troff/token.h, src/roff/troff/input.cc:
2563         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2565 2001-08-28  Werner LEMBERG  <wl@gnu.org>
2567         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2568         * src/roff/troff/input.cc (token::next): Return
2569         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2570         compatibility mode.
2571         (token::description): Updated.
2572         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2573         (token::add_to_node_list, token::process): Ignore
2574         TOKEN_TRANSPARENT_ESCAPE.
2576 2001-08-27  Werner LEMBERG  <wl@gnu.org>
2578         * tmac/an-old.tmac: Fix `S' string.
2580 2001-08-26  Werner LEMBERG  <wl@gnu.org>
2582         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2584 2001-08-25  Werner LEMBERG  <wl@gnu.org>
2586         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2587         backslashes).
2588         Many other minor fixes.
2590         * configure.ac: Add message at end to inform how to compile
2591         xditview.
2592         * configure: Regenerated.
2594 2001-08-24  Werner LEMBERG  <wl@gnu.org>
2596         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2597         Updated to latest version of libc.
2599 2001-08-23  Werner LEMBERG  <wl@gnu.org>
2601         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2602         Autoconf 2.50 and newer can handle this.
2603         * configure: Regenerated.
2605 2001-08-21  Werner LEMBERG  <wl@gnu.org>
2607         * doc/pic.ms: Fix typo.
2608         * src/preproc/tbl/tbl.man: Document case of global options.
2610 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2612         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2613         handling of `CR' font.
2615 2001-08-20  Werner LEMBERG  <wl@gnu.org>
2617         Use a config.h file.
2619         * src/include/lib.h: Include config.h.
2620         * All C files: Ditto (if necessary).
2621         * All C++ source and header files: Include lib.h first (if
2622         necessary).
2624         * src/include/config.hin: New file (autogenerated by autoheader).
2625         * stamp-h.in: New file.
2626         * configure.ac: Updated.
2627         * aclocal.m4: Add third parameters to AC_DEFINE macros.
2628         (GROFF_ARRAY_DELETE): Simplified.
2629         * Makefile.sub (DISTCLEANFILES): Updated.
2630         Added targets for remaking config.status, config.hin, config.h,
2631         stamp-h.in, and stamp-h.
2632         * configure: Regenerated.
2634 2001-08-19  Werner LEMBERG  <wl@gnu.org>
2636         * NEWS: Updated.
2638 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
2640         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2641         (do_sprintf): Use snprintf().
2643 2001-08-18  Werner LEMBERG  <wl@gnu.org>
2645         * src/libs/snprintf/*: Added an snprintf module written by Mark
2646         Martinec.
2647         * src/libs/libgroff/Makefile.sub: Updated.
2648         * configure.ac: Add test for snprintf().
2649         * Makefile.in: Updated.
2650         * configure: Regenerated.
2652         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2653         uses snprintf().
2655 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
2657         * tmac/doc.tmac (Ex): New implementation.
2658         * tmac/doc-common, tmac/groff_tmac.man: Updated.
2660 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
2662         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2663         argument.
2664         * tmac/groff_tmac.man: Updated.
2666 2001-08-13  Werner LEMBERG  <wl@gnu.org>
2668         * src/preproc/tbl/tbl.man: Minor documentation update.
2670 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2672         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2673         * configure.ac: Add declaration test for gettimeofday().
2674         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2675         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2676         * configure: Regenerated.
2678 2001-08-11  Werner LEMBERG  <wl@gnu.org>
2680         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2681         * configure.ac: Add declaration test for strcasecmp().
2682         * Makefile.in: Updated.
2683         * configure: Regenerated.
2684         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2685         this is necessary because groff's mkstemp.cc is C++.
2686         Add declaration conditionally for strcasecmp().
2688 2001-08-10  Werner LEMBERG  <wl@gnu.org>
2690         Integrated pic2graph, contributed by Eric S. Raymond.
2692         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2693         files.
2694         * Makefile.in, NEWS: Updated.
2696         * src/preproc/tbl/tbl.man: Revised.
2698 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
2700         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2702 2001-08-09  Werner LEMBERG  <wl@gnu.org>
2704         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2705         requests.
2707 2001-08-08  Paul Eggert  <eggert@twinsun.com>
2709         * Makefile.sub (configure): Depend on configure.ac, not
2710         configure.in.
2711         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2713 2001-08-07  Werner LEMBERG  <wl@gnu.org>
2715         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2716         fixes.
2718 2001-08-06  Werner LEMBERG  <wl@gnu.org>
2720         * src/roff/troff/troff.man: Improve documentation of -E option.
2722 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2724         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2725         Simplified.
2727 2001-07-27  Werner LEMBERG  <wl@gnu.org>
2729         * src/preproc/refer/refer.cc: Undo last change.
2730         * src/devices/grohtml/post-html.cc: Ditto.
2732 2001-07-26  Werner LEMBERG  <wl@gnu.org>
2734         * src/preproc/refer/refer.cc: Include `lib.h'.
2735         * src/devices/grohtml/post-html.cc: Ditto.
2737 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
2739         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2740         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2741         * Makefile.in: Comment updated.
2742         * configure: Regenerated.
2744 2001-07-25  Werner LEMBERG  <wl@gnu.org>
2746         * src/preproc/pic/pic.cc: Removed.
2747         * src/preproc/pic/pic_tab.h: Removed.
2748         * src/preproc/refer/label.cc: Removed.
2750         * doc/Makefile (.ms.html): Don't use a file name extension in
2751         argument to grohtml's -I option.
2752         * Makefile.in (dist): Remove CVS directories.
2753         Call `distfiles' target.
2755         * src/devices/grohtml/grohtml.man: Add information about valid
2756         versions of pnmtopng.
2757         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2758         name instead of number.
2760 2001-07-24  Werner LEMBERG  <wl@gnu.org>
2762         * doc/groff.texinfo: Minor fixes.
2764 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
2766         * doc/Makefile (.ms.html): Put image files into a subdirectory.
2767         (clean): Updated.
2769 2001-07-20  Werner LEMBERG  <wl@gnu.org>
2771         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2772         * src/libs/libgroff/mkstemp.cc: New file.
2773         * src/libs/libgroff/mksdir.cc: New file.
2774         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2775         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2776         * src/libs/libgroff/Makefile.sub: Updated.
2777         * src/include/lib.h: Add mksdir() prototype.
2778         * src/include/posix.h: Define S_IXUSR if not yet defined.
2780         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2781         (createAllPages): Use mksdir() instead of current code.
2782         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2783         (main): [!HAVE_MKSTEMP]: Removed.
2785         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2786         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2787         macros.
2788         * configure.ac: Add tests for stdint.h, sys/time.h, and
2789         gettimeofday().
2790         Call new GROFF_xxx macros.
2791         * configure: Regenerated.
2792         * Makefile.in: Comments updated.
2794 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
2796         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2797         instead of current code.
2798         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2799         * src/roff/groff/groff.cc (possible_command::insert_args): New
2800         function.
2801         (main): Use it for predriver handling instead of insert_arg().
2803 2001-07-19  Werner LEMBERG  <wl@gnu.org>
2805         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2806         groff also.
2808         * src/include/posix.h: Define S_IWUSR if not yet defined.
2810 2001-07-18  Werner LEMBERG  <wl@gnu.org>
2812         * NEWS: Updated.
2814 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
2816         * tmac/groff_mdoc.man: Document new -width and -column syntax.
2817         Some other minor fixes.
2818         * tmac/an-old.tmac: Add `AT' and `UC' macros.
2820 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
2822         Replace call to `troff' with `groff -Z' to make it aware of
2823         GROFF_BIN_PATH.
2825         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2826         (troff_command, command_prefix): Removed.
2827         (alterDeviceTo): Use groff.
2828         (addZ): New function.
2829         (char_buffer::do_html): Use it.
2830         (scanArguments): Use TROFF_COMMAND.
2831         (findPrefix): Removed.
2832         (main): Updated.
2833         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2835 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
2837         * doc/pic.ms: Documentation fixes.
2839 2001-07-17  Werner LEMBERG  <wl@gnu.org>
2841         Replace atexit() with global destructor.
2843         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2844         (xtmpfile_list_init): New global structure to deallocate
2845         xtmpfile_list on exit.  Its destructor inherits most code from
2846         remove_tmp_files().
2847         (remove_tmp_files): Deleted.
2848         (add_tmp_file): Simplified.
2850 2001-07-16  Werner LEMBERG  <wl@gnu.org>
2852         Replace strdup() with strsave().
2854         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2855         (set_papersize): Use strsave() and a_delete.
2856         (main): Use strsave().
2857         * src/preproc/html/pre-html.cc (make_message, createAllPages,
2858         removeAllPages): Use strsave() and a_delete.
2860         * configure.ac: Remove test for strdup.
2861         * Makefile.in: Comment updated.
2862         * configure: Regenerated.
2864 2001-07-15  Werner LEMBERG  <wl@gnu.org>
2866         * win32-diffs: Updated.
2868 2001-07-14  Werner LEMBERG  <wl@gnu.org>
2870         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2871         removing the old one.
2872         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2874 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2876         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2878 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
2880         Merge -xwidth into -width.  Add -xwidth functionality to -column
2881         also.
2883         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2884         avoid warning.
2885         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
2886         string immediately following a leading dot starts with a valid mdoc
2887         argument.
2888         Add similar code to the -column branch.
2889         (doc-Bl-usage): Updated.
2890         * groff_mdoc.man: s/-xwidth/-width/.
2892 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
2894         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2895         running into centered or non-formatted text.
2897 2001-07-11  Werner LEMBERG  <wl@gnu.org>
2899         Introduce short and long prefixes to have the selection at run-time
2900         whether there is a 8+3 limit for names of temporary files.
2902         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2903         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2904         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2905         variables.
2906         (temp_init): New global structure to initialize above three
2907         variables.
2908         (xtmptemplate): Use two parameters for long and short prefix.
2909         Simplify code use above three variables.
2910         (xtmpfile): Use long and short prefixes as parameters.
2911         * src/include/lib.h: Updated.
2913         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2914         with ...
2915         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2916         (createAllPages, makeTempFiles): Updated.
2918 2001-07-09  Werner LEMBERG  <wl@gnu.org>
2920         * REVISION: Increased to 3.
2922 Version 1.17.2 released
2923 =======================
2925 2001-07-07  Werner LEMBERG  <wl@gnu.org>
2927         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2928         to size_t.
2930 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2932         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2933         Fix synopsis.
2934         * tmac/groff_mdoc.man: Fix synopsis.
2936 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2938         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2939         Restore `doc-Pa-font'.
2941 2001-07-04  Werner LEMBERG  <wl@gnu.org>
2943         * src/utils/indxbib/dirnamemax.c: Moved to ...
2944         * src/libs/libgroff/maxfilename.cc: Here.
2945         s/dir_name_max/file_name_max/.
2946         Add copyright.
2947         * src/include/lib.h: Add file_name_max.
2948         * src/utils/indxbib/indxbib.cc: Updated.
2949         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2950         Updated.
2952         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2953         as empty.
2954         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2956         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2957         REGION_TEMPLATE): New macros.
2958         (createAllPages, makeTempFiles): Use them.
2959         Include `nonposix.h'.
2960         (html_system): New function.
2961         (createAllPages, createImage): Use it.
2962         Use EXE_EXT.
2964         * tmac/www.tmac: Fix typos.
2966 2001-07-03  Werner LEMBERG  <wl@gnu.org>
2968         * tmac/www.tmac: Disable hyphenation in normal text only if output
2969         device is html.
2970         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2971         * tmac/groff_mwww.man, NEWS: Updated.
2973 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
2975         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2976         image location.
2978 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
2980         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2981         doc-display-ps-stack): Implement font and font size stack for
2982         displays.
2984 2001-07-02  Werner LEMBERG  <wl@gnu.org>
2986         * REVISION: Increased to 2.
2987         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2989         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2990         beginning of a line.
2991         * src/groff/grog/grog.sh: Ditto.
2993 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
2995         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2996         make it portable.
2998 2001-06-27  Werner LEMBERG  <wl@gnu.org>
3000         Fix problems with preprocessor string for `man' program.
3002         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
3003         Updated/added copyright.
3004         Moved Emacs's local variable to identify nroff mode to the end of
3005         the file; add local variable if missing.
3007 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
3009         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
3010         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
3011         * configure: Regenerated.
3013 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
3015         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
3016         * configure: Regenerated.
3018 2001-06-24  Werner LEMBERG  <wl@gnu.org>
3020         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
3021         but www.tmac.
3022         * doc/pic.ms: Fix typos.
3024 Version 1.17.1 released
3025 =======================
3027 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
3029         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
3030         * configure: Updated.
3032 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
3034         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
3035         image names.
3036         * src/roff/troff/dic.cc (blank_line): Add html tag.
3038 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
3040         * src/roff/troff/input.cc (do_suppress): Fix typo.
3042 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
3044         Added two new options (-D and -I) to specify image names and a
3045         subdirectory to place the images in.
3047         Change syntax from \\Ox to \\O[x].
3049         * src/devices/grohtml/post-html.cc (main): Add options.
3050         (usage): Updated.
3051         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
3052         Use `NULL' instead of `0' for null string pointers.
3053         (MAX_RETRIES): New macro.
3054         (lengthOfintToStr, intToStr, make_message): New functions.
3055         (makeFileName): Make function static.
3056         Implement -D and -I options.
3057         (checkImageDir): New function.
3058         (write_end_image, write_start_image): Use new syntax of \O.
3059         (createAllPages, removeAllPages): Implement -D and -I options.  Use
3060         make_message().
3061         (createImage): Use make_message().
3062         (addps4html): Add guard for malloc().
3063         (usage, scanArguments): Updated.
3064         (makeTempFiles): Use mkstemp().
3065         (removeTempFiles): Use unlink().
3066         (findPrefix): Add guard for malloc().
3067         (main): Updated.
3068         * src/roff/troff/input.cc (get_delim_file_name): New function to
3069         parse \O.
3070         (do_suppress): Updated to parse new syntax.
3071         * src/devices/grohtml/grohtml.man: Updated.
3072         * tmac/www.tmac: Updated to new syntax.
3074         * NEWS: Updated.
3076 2001-06-15  Werner LEMBERG  <wl@gnu.org>
3078         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
3080         * src/devices/grohtml/grohtml.man: Minor improvements.
3082 2001-06-14  Werner LEMBERG  <wl@gnu.org>
3084         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3086 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3088         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3089         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3090         the former.
3091         * src/preproc/grn/grn.man: Add proper '\" string.
3093 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3095         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3097 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3099         Updated to autoconf 2.50.
3101         * configure.in: Renamed to...
3102         * configure.ac: This.
3103         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3104         (GROFF_OS390): Updated.
3105         * configure: Regenerated.
3107 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3109         * src/roff/troff/env.c, src/roff/troff/env.h,
3110         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3111         from 2000-12-21.
3113 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3115         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3117 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3119         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3120         less than or equal zero; set it to 1 then.
3121         * src/roff/troff/node.h (node::node): Initialize `last'.
3123 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3125         * tmac/an-old.tmac: Make predefined strings work in compatibility
3126         mode.
3127         Add troff version guard.
3128         * tmac/doc.tmac: Simplify version guard.
3130 2001-05-07  Werner LEMBERG  <wl@gnu.org>
3132         The .ns and .rs requests are now honoured not only in the top-level
3133         but in all diversions (similar to UNIX troff).
3135         This change is based on a patch from Tadziu Hoffmann
3136         <hoffmann@usm.uni-muenchen.de>.
3138         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3139         (top_level_diversion): Remove `no_space_mode' member.
3140         * src/roff/troff/div.cc (diversion::diversion,
3141         top_level_diversion::top_level_diversion): Updated.
3142         (macro_diversion::output): Reset `no_space_mode'.
3143         (no_space, restore_spacing): Use `curdiv' unconditionally.
3144         (space_request, blank_line): Check `curdiv->no_space_mode'.
3145         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3146         `curdiv' unconditionally.
3147         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3148         Updated.
3150 2001-05-06  Werner LEMBERG  <wl@gnu.org>
3152         Added two new requests `de1' and `am1' which are similar to `de' and
3153         `am' with the difference that compatibility mode is saved on entry,
3154         switched off during macro execution, and restored on exit.
3156         * src/roff/troff/input.h: Added two new special characters
3157         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3158         * src/roff/troff/input.cc (input_iterator): Added two member
3159         functions `save_compatible_flag' and `get_compatible_flag'.
3160         (input_stack): Ditto.
3161         (string_iterator): Ditto.  Also add private member
3162         `saved_compatible_flag'.
3163         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3164         (calling_mode): New enumeration.
3165         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
3166         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3167         (define_macro, define_indirect_macro, append_macro, ignore): Use
3168         `calling_mode'.
3169         (define_nocomp_macro, append_nocomp_macro): New functions.
3170         (init_input_requests): Updated.
3171         (do_request): Rename local variable `saved_compatible_flag' to
3172         `old_compatible_flag'.
3173         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3175         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3176         public and trap-invoked macros.  As a consequence, the man macros
3177         work in compatibility mode also.
3179 2001-05-06  Solar Designer  <solar@openwall.com>
3181         * Makefile.in: Use $(mandir).
3183 2001-05-06  Alexios Zavras  <zvr@pobox.com>
3185         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3187 2001-05-05  Werner LEMBERG  <wl@gnu.org>
3189         Added `.ns' number register: Returns 1 in no-space mode (if in
3190         top-level diversion), 0 otherwise.
3192         * src/roff/troff/div.cc (no_space_mode_reg): New class.
3193         (init_div_requests): Updated.
3194         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3195         Document it.
3197 2001-05-04  Werner LEMBERG  <wl@gnu.org>
3199         * src/roff/nroff/nroff.man: Improved documentation (especially
3200         locales).
3202 2001-05-02  Werner LEMBERG  <wl@gnu.org>
3204         Added `brp' request: This is \p as a request.
3206         * src/roff/troff/env.cc (environment::do_break): Add parameter
3207         `spread'.
3208         (do_break_request): New function (was `break_request').
3209         (break_request): Calls `do_break_request'.
3210         (break_spread_request): New; calls `do_break_request'.
3211         (init_env_requests): Updated.
3212         * src/roff/troff/env.h: Updated.
3213         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3215         * REVISION: Increased to 1.
3216         * win32-diffs: Updated.
3218 2001-05-01  Werner LEMBERG  <wl@gnu.org>
3220         * tmac/an-old.tmac: Fix minor compatibility mode issue.
3221         * tmac/troffrc-end: Make it really work in compatibility mode.
3223 2001-04-27  Werner LEMBERG  <wl@gnu.org>
3225         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3226         stdlib.h.
3228 2001-04-22  Werner LEMBERG  <wl@gnu.org>
3230         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3231         latest versions from glibc CVS archive.
3233         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3234         <c.zeelenberg@hccnet.nl>.
3236 2001-04-21  Werner LEMBERG  <wl@gnu.org>
3238         * configure.in: Move check for mkstemp() to...
3239         * aclocal.m4 (GROFF_MKSTEMP): This new function.
3240         * configure: Regenerated.
3242         * src/include/groff-getopt.h: Don't use variable names in
3243         declarations.
3245         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
3246         * src/devices/grohtml/Makefile.sub,
3247         src/devices/grohtml/post-html.cc: Updated.
3249 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
3251         * configure.in: Add special check for mkstemp().
3252         * src/libs/libgroff/tmpfile.cc: Use it.
3253         * src/utils/indxbib/indxbib.cc: Ditto.
3254         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3255         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3256         `const'.
3258 2001-04-20  Bruce Lilly  <blilly@erols.com>
3260         `Version_string' as C++ object was not visible to linker from C
3261         object files.
3262         Add `const' to `Version_string'.
3264         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3265         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3266         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3267         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3268         (scanArguments), src/preproc/refer/refer.cc (main),
3269         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3270         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3271         (main), src/devices/grohtml/post-html.cc (main),
3272         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3273         (main), src/utils/hpftodit/hpftodit.cc (main),
3274         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3275         (main), src/utils/lkbib/lkbib.cc (main),
3276         src/utils/addftinfo/addftinfo.cc (main): Implement it.
3278         * src/roff/groff/pipeline.c: Add _UWIN.
3279         * src/include/nonposix.h: Ditto.
3281 2001-04-20  Werner LEMBERG  <wl@gnu.org>
3283         * src/include/lib.h: Use HAVE_STRERROR.
3284         * src/roff/groff/pipeline.c: Ditto.
3285         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3286         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3287         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3288         * win32-diffs: Updated.
3289         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3291 2001-04-19  Werner LEMBERG  <wl@gnu.org>
3293         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3294         instead of hardwired `"troff"'.
3295         (char_buffer::read_file): Remove unused variables.
3296         (char_buffer::write_file_troff): Ditto.
3297         (char_buffer::write_file_html): Ditto.
3298         (generateImages): Ditto.
3299         (abs): Removed.
3300         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3302         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3304         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3305         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3306         index_search_item::search1): Ditto.
3307         * src/roff/troff/node.h (width_list): Reorder members.
3308         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3309         (lookup_warning): Ditto.
3310         (prepend_string): Commented out.
3311         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3312         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3313         * src/preproc/tbl/main.cc (process_format): Ditto.
3314         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3315         compiler warnings.
3316         * src/preproc/pic/pic.cc: Updated.
3317         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3318         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3319         * src/preproc/refer/command.cc (execute_command): Ditto.
3320         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3321         * src/preproc/refer/token.cc (lookup_token): Ditto.
3322         * src/preproc/soelim/soelim.cc: Ditto.
3323         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3324         (isHexDigit): Commented out.
3325         (pushBackBuffer::isString): Remove unused variable.
3326         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3327         warning.
3328         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3329         resource_manager::read_resource_arg, read_one_of, parse_extensions):
3330         Ditto.
3331         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3332         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3333         lookup_paper_size): Ditto.
3334         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3335         (text_glob, element_list): Reorder members.
3336         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3337         compiler warning.
3338         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3339         return value to `void'.
3340         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3341         of initializers.
3342         * src/devices/grohtml/html.h (simple_output::check_newline,
3343         simple_output::space_or_newline, simple_output::enable_newlines):
3344         Add return value.
3345         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3346         compiler warnings.
3347         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3348         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3349         output_ligatures, output_charset, read_map): Ditto.
3350         * src/utils/lookbib/lookbib.cc (main): Ditto.
3351         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3352         (do_file): Fix typo (`=' -> `==').
3353         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3354         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3356 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
3358         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3359         Fix usage of GROFF_BIN_PATH.
3360         * src/roff/nroff/nroff.man: Updated.
3362 2001-04-18  Werner LEMBERG  <wl@gnu.org>
3364         * NEWS: Fixing typos.
3365         Updated.
3367 Version 1.17 released
3368 =====================
3370 2001-04-17  Werner LEMBERG  <wl@gnu.org>
3372         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3373         directory, not in $(srcdir).
3375 2001-04-16  Werner LEMBERG  <wl@gnu.org>
3377         * doc/groff.texinfo: More info on conditionals.
3379 2001-04-15  Werner LEMBERG  <wl@gnu.org>
3381         * doc/groff.texinfo: Added some info about groff internals.
3383         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3384         about missing special character only if the name is non-null.
3386 2001-04-14  Werner LEMBERG  <wl@gnu.org>
3388         Removing the grohtml-old device driver which is now obsolete.
3390         * src/devices/grohtml-old/*: Removed.
3391         * font/devhtml-old/*: Removed.
3392         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3393         Remove comments.
3394         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3395         * test-groff (PATH): Updated.
3396         * tmac/Makefile.sub (NORMALFILES): Updated.
3397         * tmac/an-old.tmac: Remove special code for html-old device.
3398         Replace `html-or-html-old' register with `an-html'.
3399         * tmac/eqnrc: Updated.
3400         * tmac/html-old.tmac: Removed.
3401         * tmac/troffrc, tmac/troffrc-end: Updated.
3402         * tmac/www.tmac: Remove special code for html-old device.
3403         Replace `html-or-html-old' register with `www-html'.
3405         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3406         src/libs/libgroff/htmlindicate.cc (graphic_end),
3407         include/htmlindicate.h, src/preproc/grn/*.cc,
3408         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3409         single argument for consistency with rest of source code.
3411         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3413 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
3415         * src/roff/troff/troff.man: Fixing typos.
3417 2001-04-13  Werner LEMBERG  <wl@gnu.org>
3419         * doc/pic.ms: Fixing many font switches.
3420         * doc/groff.texinfo: Fixes, additions.
3421         * MORE.STUFF: Updated.
3423 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
3425         * src/devices/grohtml/grohtml.man: Updated manual page regarding
3426         simple anchor.
3427         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3428         cropping of images.
3429         (removeTempFiles): New function to tidy up temporary files.
3430         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3431         Many fixes to do with the new inline suppress node and image regions
3432         are much tighter.
3433         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3434         (generate_img_src): New function.
3435         (html_printer::do_auto_image): Utilizes it.
3436         (do_heading, do_title): Include inline images within their contents.
3437         (html_printer::begin_page): Tidied up comments that are issued to
3438         the html output file.
3439         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3440         than courier.
3441         (text_glob::is_br): New method used by do_heading.
3442         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3443         equivalent diversion.
3444         * src/include/html-strings.h: Altered image tags to reflect the
3445         inline image node.
3446         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3447         parameter.
3448         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3449         it is already inside a pic image.  Only emit tags if the argument
3450         `-Tps:html' is present.
3451         * src/preproc/tbl/main.cc: Changes to reflect additional
3452         `html_end_suppress' parameter.
3453         * src/roff/troff/env.cc: Only emit eol tag if a node has been
3454         emitted since the last eol tag was written.
3455         * src/roff/troff/env.h: New boolean `emitted_node'.
3456         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3457         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
3458         * src/roff/troff/node.cc (check_charinfo): New method. 
3459         (troff_output_file::determine_line_limits): Alterations to limit
3460         checking.
3461         * tmac/www.tmac: Changes to reflect new suppress nodes.
3462           
3463 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
3465         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3466         Escape the html_glyph in the buffer.
3467         (str_translate_to_html): Output the unescaped escaped_char.
3468         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3469         `frame=void', not `frame=none'.  Add `border=0'.
3471 2001-04-12  Werner LEMBERG  <wl@gnu.org>
3473         * PROBLEMS: Add some words on how to avoid wrapper macros.
3475 2001-04-11  Blake McBride  <blake@florida-software.com>
3477         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3479 2001-04-11  Werner LEMBERG  <wl@gnu.org>
3481         * font/devlbp/Makefile.sub (CLEANADD): Set it.
3482         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3483         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3484         * Makefile.sub (DISTCLEANFILES): Here.
3486         * libs/libgroff/new.cc: Include `nonposix.h'.
3487         * win32-diffs: Updated.
3489 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3491         Added skeleton macro for defunct macros.
3493         Updated documentation.
3495         When inside displays, an empty input line warning should be
3496         suppressed.  If another macro call is put inside a display,
3497         all subsequent empty lines found in that display caused a
3498         warning to be emitted.
3500         * tmac/doc.tmac (doc-defunct-macro): New macro.
3501         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3502         (doc-restore-global-vars): Fixed typo.
3503         (doc-empty-line): Check the `doc-display-depth' register to
3504         determine whether we are inside display or not.
3506         * tmac/doc-common: Removed `Or' and `Sf' registers.
3507         Moved obsolete `Ds' macro to doc.tmac.
3509         * tmac/groff_mdoc.man: Bump document date.
3510         Document `.Vt' under ``Variable Types''.
3511         Removed documentation for obsolete `.Or' macro.
3513 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3515         * NEWS: Updated.
3516         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3518 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3520         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3521         (usage): Add stream argument. Don't exit.
3522         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3523         Write --version output to stdout, not stderr.
3524         (usage): Add stream argument. Don't exit.
3525         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3526         (usage): Add stream argument. Don't exit.
3527         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3528         constants.
3529         (usage): Add stream argument. Don't exit.
3530         (main): Write --help output to stdout, not stderr.
3531         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3532         (usage): Add stream argument. Don't exit.
3533         * src/devices/grops/ps.cc (main): Accept --help and --version.
3534         (usage): Add stream argument. Don't exit.
3535         * src/devices/grotty/tty.cc (main): Accept --help and --version.
3536         (usage): Add stream argument. Don't exit.
3537         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3538         (main): Accept --help and --version.
3539         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3540         (main): Accept --help and --version.
3541         * src/preproc/html/pre-html.cc (usage): Add stream argument.
3542         (scanArguments): Accept --help and --version.
3543         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3544         (main): Accept --help and --version.
3545         * src/preproc/refer/refer.cc (main): Accept --help and --version.
3546         (usage): Add stream argument. Don't exit.
3547         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3548         exit.
3549         (main): Accept --help and --version.
3550         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3551         (main): Accept --help and --version.
3552         * src/roff/groff/groff.cc (main): Accept --help and --version.
3553         (synopsis): Add stream argument.
3554         (help): Write --help output to stdout, not stderr.
3555         (usage): Add stream argument. Don't exit.
3556         * src/roff/grog/grog.pl: Accept --help and --version.
3557         (help): New sub.
3558         * src/roff/grog/grog.sh: Accept --help and --version.
3559         * src/roff/nroff/nroff.sh: Accept --help and --version.
3560         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3561         (usage): Add stream argument. Don't exit.
3562         (main): Accept --help and --version.
3563         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3564         (usage): New function with stream argument, doesn't exit.
3565         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3566         (usage): New function with stream argument, doesn't exit.
3567         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3568         (usage): Add stream argument. Don't exit.
3569         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3570         (main): Accept --help and --version.
3571         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3572         exit.
3573         (main): Accept --help and --version.
3574         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3575         (main): Accept --help and --version.
3576         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3577         (usage): Add stream argument. Don't exit.
3579 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
3581         Fix indentation in SYNOPSIS.
3583         Updated to include changes of latest BSD mdoc version (basically,
3584         the only change is that `.Fn' and `.Fc' put a final semicolon after
3585         a function declaration in the SYNOPSIS section).
3587         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3588         (doc-in-synopsis-section): New variable.  Updated all related
3589         functions.
3590         (doc-indent-synopsis-active): New register.
3591         (Nd, Fn, Fo): Use it.
3592         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3593         `.Cd' with long argument line produces indented wrapped lines. 
3594         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3595         undesirable line break to be output.
3596         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3597         `.rs'.
3598         (Fn, Fc): Add final `;' to output.
3599         (doc-save-global-vars, doc-restore-global-vars): Updated.
3600         * tmac/doc-common: Remove `Ex' register.
3601         Updated.
3602         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3603         copyright.
3605 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3607         * tmac/doc.tmac (Cd): Simplify code.
3608         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3610 2001-04-06  Werner LEMBERG  <wl@gnu.org>
3612         Implement continuous underlining for nroff mode.  To do that, a new
3613         request in the ditroff language has been added: `x u N' (N is 0
3614         or 1).
3616         \X and \Y are now transparent to end-of-sentence recognition.
3618         * src/include/printer.h (printer): Add `type' parameter to `special'
3619         method.
3620         * src/libs/libdriver/printer.cc (printer::special): Updated.
3621         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3623         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3624         specials of type `p'.
3625         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3626         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3627         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3628         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3629         (glyph::order): New method.
3630         (tty_printer::add_char): Use it.
3631         (tty_printer::special): New method.
3632         (tty_printer::end_page): Implement it.
3634         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3635         * src/roff/troff/node.cc (special_node::special_node): Add parameter
3636         to set `no_init_string'.
3637         (special_node::tprint_start): Use it.
3638         (special_node::same, special_node::copy): Updated.
3639         (special_node::ends_sentence): New method.
3640         (troff_output_file::start_special): Add parameter to include
3641         inititialization of special conditionally.
3643         * src/roff/troff/env.h (environment): New member `underline_spaces'.
3644         * src/roff/troff/env.cc (do_underline_special): New function.
3645         (environment::set_font): Use it.
3646         (do_underline): Use it.  This was `underline()'.
3647         (underline): Call `do_underline()'.
3648         (continuous_underline): New function which calls `do_underline()'.
3649         (environment::newline): Use `do_underline_special()'.
3650         (init_env_requests): Updated.
3652         * NEWS, man/troff_out.man: Updated.
3654 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
3656         * font/devutf8/R.proto: Fix code of 'shc'.
3658 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3660         Many fixes.  Diag lists can now be nested also; additionally,
3661         `-compact' and `-offset' are supported.
3663         * tmac/doc.tmac (doc-have-indent): Replaced with ...
3664         (doc-list-have-indent-stackXXX): A new register stack.
3665         (doc-have-diag-list): Removed.
3666         (Bl): Use `doc-list-have-indent-stackXXX'.
3667         (El): Updated.
3668         (doc-diag-list): Use `doc-compact-list-stackXXX'.
3669         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3670         (doc-set-vertical-and-indent): Ditto.
3671         (doc-next-list-depth): Removed.
3672         (doc-increment-list-stack): Updated.
3673         (doc-decrement-list-stack): Use `doc-list-depth' instead of
3674         `doc-next-list-depth'.
3675         (doc-end-list, doc-end-column-list): Don't use
3676         `doc-increment-list-stack'.
3677         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3678         (doc-save-global-vars, doc-restore-global-vars): Updated.
3679         * tmac/doc-common: Updated.
3680         * tmac/groff_mdoc.man: Updated.
3681         * NEWS: Fix typo.
3683 2001-04-02  Werner LEMBERG  <wl@gnu.org>
3685         * src/devices/grotty/grotty.man: Fix grammatical error.
3687 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
3689         Remove .Ld from mdoc package; replace it with special handling of
3690         `...'.
3692         * tmac/doc-common: Remove `Ld' register.
3693         Uncomment `doc-volume-ds-*' strings.
3694         Remove `doc-operating-system-default'.
3695         (Os): Updated.
3696         * tmac/doc-syms (Ld): Removed.
3697         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3698         `...' specially.
3699         * NEWS: Updated.
3701         * tmac/groff_mdoc.man: Many fixes and updates.
3703 2001-03-29  Werner LEMBERG  <wl@gnu.org>
3705         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
3706         Bond <tkb@tkb.mpl.com>.
3707         * tmac/www.tmac: Save compatibility mode.
3709 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
3711         * tmac/groff_mdoc.man: Many fixes.
3713 2001-03-28  Werner LEMBERG  <wl@gnu.org>
3715         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3716         isn't recognized.
3718 2001-03-27  Werner LEMBERG  <wl@gnu.org>
3720         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3721         diversion.  This fixes overlong tags.
3723 2001-03-26  Werner LEMBERG  <wl@gnu.org>
3725         * doc/groff.texinfo: Fixed and improved documentation of fonts.
3726         * tmac/doc-syms: Fix error messages.
3727         * tmac/an-old.tmac: Remove incorrect double backslashes.
3729 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
3731         * tmac/Makefile.sub: Strip mdoc.local also
3732         * tmac/strip.sed: Fixed.
3734 2001-03-24  Werner LEMBERG  <wl@gnu.org>
3736         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3737         selecting the font size.
3738         * tmac/groff_mdoc.man, NEWS: Document it.
3740 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3742         * src/roff/troff/div.cc (save_vertical_space): Add default argument
3743         to `sv' request.
3744         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3745         argument to restore previous font family.
3746         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3748         * doc/groff.texinfo: More fixes and additions (mainly for font
3749         manipulating commands).
3751         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3752         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
3753         * tmac/Makefile.sub, NEWS: Updated.
3755 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3757         Replaced mdoc implementation.  The new version is `state of the
3758         art', using almost all new features of groff 1.17 -- it won't run
3759         with older versions.
3761         * tmac/doc.tmac: Completely rewritten.
3762         * tmac/doc-common: Ditto.
3763         * tmac/doc-nroff: Ditto.
3764         * tmac/doc-ditroff: Ditto.
3765         * tmac/doc-syms: Ditto.
3766         * tmac/mdoc.local: New file.
3767         * tmac/groff_mdoc.samples.man: Replaced with ...
3768         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3769         * tmac/strip.sed: Updated.
3770         * tmac/Makefile.sub: Updated.
3771         * INSTALL: Updated.
3773         * tmac/groff_man.man: Add `man.local' to the FILES section.
3775 2001-03-22  Werner LEMBERG  <wl@gnu.org>
3777         * doc/groff.texinfo: Added many @noindent.
3778         Replaced @end_Example -> @endExample.
3779         Added info whether registers are r/o.
3780         Many other additions and fixes.
3782 2001-03-21  Werner LEMBERG  <wl@gnu.org>
3784         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3785         in makeinfo of texinfo 4.0) to be used in @Def* macros.
3786         Improved @Def* macros: Now the exact syntax of request, register,
3787         and escapes is shown.
3788         Added macros for parentheses and brackets to be used in @Def*.
3789         Many fixes and improvements of the documentation.
3791 2001-03-20  Werner LEMBERG  <wl@gnu.org>
3793         * doc/groff.texinfo: Added new index: `st' (for strings).
3794         Added macros @Defstr(x).
3795         Added macro @Example (adding @group).
3796         Other minor improvements.
3798 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3800         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3801         `rq' for requests.  `fn' is no longer used.
3802         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3803         Removed @Deffn(x).
3805         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3806         number with name of man page.
3808 2001-03-19  Larry Kollar  <kollar@alltel.net>
3810         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
3811         consistency.
3813 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3815         * man/groff_font.man: Document `prepro', `postpro', and `print'.
3816         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3817         * src/devices/grohtml/grohtml.man: Fixing typos.
3819 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
3821         * tmac/s.tmac (@IP): Pass `.ip' html tag.
3822         * tmac/groff_mwww.man: Remove .LINE macro
3823         * tmac/www.tmac (LINE): Add `.ti'.
3825         * src/devices/grohtml/post-html.cc (html_printer): New member
3826         `indent'.
3827         (html_printer::emit_raw): Use it.
3828         (html_printer::do_linelength): Ditto.
3829         (html_printer::do_pageoffset): Ditto.
3830         (html_printer::do_indentation): Ditto.
3831         (html_printer::do_tempindent): Ditto.
3832         (html_printer::do_break): Ditto.
3833         (html_printer::begin_page): Ditto.
3834         (html_printer::do_indentedparagraph): New function.
3835         (html_printer::troff_tag): Handle `.ip'.
3836         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3837         Add `<td width=...>' handling.
3838         (html_text::do_table): Add parameter.
3839         (html_text::do_indent): Updated.
3840         * src/devices/groohtml/html-text.h: Updated.
3842 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
3844         Introduced simple html tables to implement indentation.
3846         * src/devices/grohtml/html.h (word, word_list): New structures.
3847         (simple_output): Use it.
3848         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3849         (html_printer): Improve indentation handling.
3850         (html_printer::emit_raw): Set `in_table' element.  Handle
3851         indentation if set.
3852         (html_printer::write_header): Move conditional downwards.
3853         Don't allow whitespace in tags.
3854         (html_printer::do_linelength): Handle line length and indentation
3855         conditionally.
3856         (html_printer::do_pageoffset): Handle indentation conditionally.
3857         (html_printer::do_indentation): Ditto.
3858         (html_printer::do_tempindent): New function member.
3859         (html_printer::do_fill): Take care of indentation.
3860         (html_printer::do_flush): Finish table.
3861         (html_printer::do_links): Ditto.
3862         (html_printer::do_break): New function for handling `.br' and `.ti'.
3863         (html_printer::troff_tag): Use it.
3864         Handle `.ti'.
3865         (html_printer::flush_globs): Fix.
3866         (html_printer::flush_page): Finish table.
3867         (html_printer::html_printer): Fix error message.  Set up
3868         `linelength'.
3869         (html_printer::add_to_sbuf): Remove special handling of character
3870         code 255.
3871         (to_unicode): Remove `stop()'.
3872         (html_printer::write_title): Cleanup.
3873         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
3874         (html_printer::~html_printer): Flush text and end the line.
3875         Use `put_string()'.
3876         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3877         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3878         emission of tags.
3879         (html_text::start_tag): Disable newlines.
3880         (html_text::table_is_void): New function.
3881         (html_text::issue_table_begin): Ditto.
3882         (html_text::issue_table_end): Ditto.
3883         (html_text::push_para): Better table handling.
3884         (html_text::do_indent): New function.
3885         (html_text::do_table): Ditto.
3886         (html_text::done_table): Ditto.
3887         (html_text::do_tt): Handle PRE_TAG.
3888         (html_text::is_in_table): New function.
3889         (html_text::check_emit_text): Handle tables.
3890         (html_text::do_emittext): Use `nl()'.
3891         (html_text::do_para): Handle table.
3892         (html_text::remove_def): New function.
3893         * src/devices/grohtml/output.cc (word, word_list): Implement
3894         methods.
3895         (simple_output::end_line): Flush last word.
3896         (simple_output::simple_comment): Ditto.
3897         (simple_output::begin_comment): Recoded.
3898         (simple_output::end_comment): Ditto.
3899         (simple_output::comment_arg): Removed.
3900         (simple_output::check_newline): Improve test and flush last word.
3901         (simple_output::space_or_newline): Improved.
3902         (simple_output::write_newline): Replaced with...
3903         (simple_output::nl): This.
3904         (simple_output::put_raw_char): Flush last word.
3905         (simple_output::check_space): Removed.
3906         (simple_output::put_translated_string): Ditto.
3907         (simple_output::put_string): Simplified.
3908         (simple_output::put_number): Updated.
3909         (simple_output::put_float): Ditto.
3910         (simple_output::put_symbol): Removed.
3911         (simple_output::enable_newlines): Add `check_newline()'.
3912         (simple_output::flush_last_word): New function.
3914         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3915         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3917         * tmac/s.tmac (@PP, @IP): Add html conditional code.
3918         * tmac/an-old.tmac (TP): Ditto.
3920 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
3922         * mdate.sh: Make it POSIX compliant.
3924 2001-03-09  Werner LEMBERG  <wl@gnu.org>
3926         Added the `return' request to end a macro immediately.  It simply
3927         pops iterators from the input stack until a macro iterator is found.
3929         * src/roff/troff/input.cc (input_iterator::is_macro,
3930         macro_iterator::is_macro): New member.
3931         (input_return_boundary): New class to signal an immediate return
3932         to while_request().
3933         (input_stack::add_return_boundary, input_stack::is_return_boundary):
3934         New functions.
3935         (input_stack::clear): Use it.
3936         (input_stack::pop_macro): New function.
3937         (while_request): Use `is_return_boundary()'.
3938         (return_macro_request): New function.
3939         (init_input_requests): Use it.
3941         * src/roff/troff/TODO: Updated.
3942         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3944 2001-03-08  Werner LEMBERG  <wl@gnu.org>
3946         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3947         cleanup.
3949 2001-03-07  Werner LEMBERG  <wl@gnu.org>
3951         Make `\B' more rigid.
3953         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3954         parameter.
3955         (get_number_rigidly): New function.
3956         * src/roff/troff/input.cc (do_expr_test): Use it.
3957         * src/roff/troff/token.h: Updated.
3959         * src/roff/troff/request.h: Fix typo (init_html_request ->
3960         init_markup_request).
3962 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
3964         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
3965         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3966         are now `.begin', `.end', `.image'.
3968         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3969         (html_printer::add_to_sbuf): Changing type of `code' parameter.
3970         Use add_char_to_sbuf().
3971         (to_unicode): New function.
3972         (char_translate_to_html): Changing type of `ch' parameter.
3973         Use `to_unicode()'.
3974         (html_printer::~html_printer): Comment out doctype string.
3975         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3976         instead of `.html-end'.
3977         (write_start_image): Use `.begin' and `.image' instead of
3978         `.html-begin' and `.html-image'.
3979         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3980         (html_begin): Renamed to ...
3981         (begin): This.
3982         (html_end): Renamed to ...
3983         (end): This.
3984         (html_image): Renamed to ...
3985         (image): This.
3986         (init_html_requests): Renamed to ...
3987         (init_markup_requests): This.
3988         * tmac/www.tmac: Updated.
3990 2001-02-28  Bram  <bram@avontuur.org>
3992         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3993         constructor.
3995 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
3997         * doc/meref.me: Fixing some typos.
3999 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4001         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
4002         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
4003         * src/roff/troff/node.h: Updated.
4005 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
4007         * tmac/groff_tmac.man: Fix typo.
4009 2001-02-16  Werner LEMBERG  <wl@gnu.org>
4011         Fixing a bug which prevented proper end-of-sentence recognition
4012         between an `unformatted' box and the following text.  As a
4013         consequence, vertical line distances are no longer preserved in
4014         boxes after a call to `.unformat' -- because boxes aren't
4015         line-oriented (contrary to diversions), this doesn't make sense
4016         anyway.
4018         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
4019         value.
4020         (vertical_size_node::set_unformat_flag): New method.
4021         * src/roff/troff/node.hh: Updated.
4022         * src/roff/troff/input.cc (word_space_node::reread,
4023         hmotion_node::reread): Reset `unformat' flag after usage.
4024         (unformat_macro): Append only if `set_unformat_flag()' returns
4025         non-zero.
4026         * src/roff/troff/troff.man: Updated.
4028 2001-02-15  Werner LEMBERG  <wl@gnu.org>
4030         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
4031         documentation of `asciify' and `unformat' requests.
4033 2001-02-13  Werner LEMBERG  <wl@gnu.org>
4035         Redesigned the `unformat' request.  It is no longer connected with
4036         `asciify' but rather uses new `reread()' methods if the `unformat'
4037         flag is set.  Additionally, the handling of space characters after
4038         unformatting has been fixed so that they retain their width.
4040         * src/roff/troff/node.h (width_list): New structure to store
4041         original widths of spaces.
4042         (node): Added `unformat' member.
4043         Replaced `num_spaces' variable with `orig_width' list.
4044         * src/roff/troff/node.cc (*node::asciify,
4045         asciify_reverse_node_list): Removed `unformat_only' flag and related
4046         code.
4047         (word_space_node::asciify, word_space_node::word_space_node): Use
4048         `orig_width'.
4049         (word_space_node::~word_space_node): New destructor.
4050         (word_space_node::copy): Updated to handle `orig_width'.
4051         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
4052         (*node::merge_space): Update `orig_width' list if necessary.
4053         (*node::set_unformat_flag): New methods to set the `unformat' flag.
4054         * src/roff/troff/enc.cc (environment::space_newline): Use
4055         `width_list'.
4056         (environment::space): Added method to handle space width and
4057         sentence space width as parameters.  Use `width_list'.
4058         (environment::make_tab_node): Updated.
4059         * src/roff/troff/env.h: Updated.
4060         * src/roff/troff/input.cc (word_space_node::reread,
4061         unbreakable_space_node::reread, hmotion_node::reread): New methods
4062         to handle nodes specially if `unformat' flag is set.
4063         (do_asciify_macro): Renamed back to ...
4064         (asciify_macro): This.
4065         (unformat_macro): New implementation to simply set the `unformat'
4066         flag.
4068         * MORE.STUFF: Added more info about deroff.
4070 2001-02-08  Werner LEMBERG  <wl@gnu.org>
4072         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4073         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
4074         and `add_self()' methods to avoid hyphenation.  For example, the
4075         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
4076         soft hyphen after `foo'.  Now the hyphen list is correctly
4077         `foo<ignore><ignore>bar'.
4079 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
4081         * tmac/groff_tmac.man: Fix `BIR' macro.
4083 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4085         A new escape sequence `\:', inserting a zero-width break point.
4087         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4088         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4089         Implement it.
4090         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4091         method.
4092         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4093         and `asciify()' methods.
4094         * src/roff/troff/node.cc (space_node::space_node): Updated.
4095         (space_node::asciify): Handle `was_escape_colon'.
4096         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4098         Handle `\~' similar to other comparable requests.
4100         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4101         label.
4102         (token::next): Move creation of an unbreakable_space_node to...
4103         (token::add_to_node_list): Here.
4105         Fix a bug which sometimes prevented hyphenation of words connected
4106         with `\~' or `\ ' (and other escape sequences handled as
4107         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4108         (after a call to the `unformat' request).
4110         * src/roff/troff/env.h (environment::possibly_break_line,
4111         environment::hyphenate_line): Introducing `start_here' parameter.
4112         * src/roff/troff/env.cc (environment::space_newline,
4113         environment::space): Use it.
4114         (environment::possibly_break_line, environment::hyphenate_line):
4115         Implement it.
4116         * src/roff/troff/input.cc (process_input_stack): Use it.
4117         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4118         space_char_hmotion_node, overstrike_node): Add
4119         `get_hyphenation_type()' method.
4120         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4121         if `unformat_only' is active.
4123 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4125         Implemented new read-only number register `.linetabs' which
4126         returns 1 if in line-tabs mode, 0 otherwise.
4128         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4129         * src/roff/troff/env.cc (get_line_tabs): New function.
4130         (init_env_requests): Use it.
4131         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4133         * VERSION, REVISION: Changing to 1.17.0.
4135 2001-01-28  Werner LEMBERG  <wl@gnu.org>
4137         Fixed a bug which prevented hyphenation of words which are finished
4138         with `\)'.
4140         * src/roff/troff/token.h (token): Add enum type
4141         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4142         * src/roff/troff/input.cc (token::next, token::description,
4143         get_line_arg, token::add_to_node_list, token::process): Use it.
4145 2001-01-27  Werner LEMBERG  <wl@gnu.org>
4147         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4148         * src/roff/troff/div.cc (do_divert): Use it.
4150         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4152 2001-01-25  Werner LEMBERG  <wl@gnu.org>
4154         Adding the `linetabs' request.  If set, tab distances are not
4155         computed relative to the input line but relative to the output line.
4157         * src/roff/troff/env.h (environment): New member `line_tabs'.
4158         * src/roff/troff/env.cc (line_tabs_request): Implement request.
4159         (environment::environment, environment::copy): Updated.
4160         (environment::distance_to_next_tab): Use `line_tabs'.
4161         (init_env_requests): Register request.
4162         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
4163         fixes.
4165 2001-01-24  Werner LEMBERG  <wl@gnu.org>
4167         Introducing a new read-only register `.int' which is set to a
4168         positive value if the last output line is interrupted (i.e., if it
4169         contains `\c').
4171         * src/roff/troff/env.cc (init_env_requests): Add it.
4172         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4174 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
4176         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4177         * src/preproc/html/pre-html.cc (findPrefix): New function which
4178         generates the troff executable name via the system prefix.
4179         * src/preproc/eqn/main.cc: Modified warning message.
4181 2001-01-23  Werner LEMBERG  <wl@gnu.org>
4183         troff's `box' and `boxa' requests didn't preserve temporary
4184         indentation.
4186         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4187         `saved_target_text_length' members.
4188         * src/roff/troff/div.cc (do_divert): Use them.
4190         Tabs (but not yet leaders and fields) are now handled correctly by
4191         `asciify' request.
4193         * node.h (hmotion_node): Add field `was_tab'.
4194         * env.cc (environment::make_tab_node): Set it.
4195         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4197         Added new request `unformat' which will, contrary to `asciify',
4198         preserve font information after unformatting (i.e., only nodes
4199         dealing with horizontal space are converted back to input
4200         characters).
4202         * input.cc (asciify_macro): Renamed to ...
4203         (do_asciify_macro): this, having a new parameter `unformat_only'.
4204         (asciify_macro, unformat_macro): New; using do_asciify_macro.
4205         (init_input_requests): Added `unformat'.
4206         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4207         parameter to control asciification process.
4208         * node.h (*_node::asciify): Ditto.
4209         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4211 2001-01-20  Werner LEMBERG  <wl@gnu.org>
4213         * doc/groff.texinfo: Minor improvement of `.in' documentation.
4215 2001-01-18  Werner LEMBERG  <wl@gnu.org>
4217         * tmac/ps.tmac: Remove call of psold.tmac.
4218         * tmac/psold.tmac: Comment updated.
4219         * tmac/psnew.tmac: Removed since no longer needed.
4220         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4222         * font/devutf8/R.proto: Adding `shc' glyph.
4223         * font/devutf8/NOTES: Updated.
4225         * test-groff: Updated.
4227 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4229         First cut of the new html device driver.  Changes to pre-html and
4230         the new grohtml are too numerous to be documented here.
4232         Stuff related to `html' has been renamed to `html-old' and `html2'
4233         stuff has been renamed to `html' (including directories).  The new
4234         html device driver is therefore invoked as `-Thtml'.
4236         Added new `\O' escape to suppress output (needed by html driver).
4238         Added functions and code to pass info about input-level commands
4239         (`.in', `.fl', etc.) to html driver.
4241         Three new functions (.html-begin, .html-end, and .html-image) for
4242         better html handling: `html-begin' will execute the remaining line
4243         if at the outermost nesting level, increasing an internal counter.
4244         `html-end' does the same but decreases the internal counter.
4245         `html_image' puts its arguments into a special node (suppress_node)
4246         to define an image region.
4248         The `output' request has been removed.
4250         * tmac/html-tags.tmac: Removed.
4251         * tmac/arkup.tmac: Updated and renamed to ...
4252         * tmac/www.tmac: New file.
4253         * tmac/markup.tmac Updated and renamed to ...
4254         * tmac/mwww.tmac: New file.
4255         * tmac/Makefile.sub: Updated.
4256         * tmac/an-old.tmac: Updated.
4257         * tmac/eqnrc: Updated.
4258         * tmac/groff_man.man
4259         * tmac/groff_markup.man: Updated and renamed to ...
4260         * tmac/groff_mwww.man: New file.
4261         * tmac/groff_tmac.man: Updated.
4262         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4263         * tmac/html.tmac: Updated and renamed from html2.tmac.
4264         * tmac/pspic.tmac: Updated html support.
4265         * tmac/s.tmac: Added html output support.
4266         * tmac/troffrc, tmac/troffrc-end: Updated.
4268         * Makefile.in, doc/Makefile: Updated.
4269         * doc/groff.texinfo: Added info about new `\O' escape.
4270         * doc/homepage.ms: Use `MAILTO' macro.
4272         * font/devhtml/DESC.proto: Add `C' font.
4273         * font/devhtml/Makefile.sub: Updated.
4274         * font/devhtml/R.proto: Minor fixes.
4275         * font/devhtml-old/Makefile.sub: Updated.
4277         * src/devices/grohtml-old/Makefile.sub: Updated.
4279         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4280         method.
4281         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4282         graphic_start): Add `inline' parameter.  Update.
4283         (html_end_suppress, graphic_end): Update.
4285         * src/include/html-strings.h: New file.
4286         * src/include/htmlindicate.h: Comments updated.
4287         * src/include/printer.h: Updated.
4289         * src/preproc/eqn/main.cc (do_file, main): Updated.
4290         * src/preproc/pic/troff.cc (troff_output::start_picture,
4291         troff_output::finish_picture): Updated.
4292         * src/preproc/tbl/main.cc (process_input_file): Updated.
4294         * src/roff/groff/groff.cc (main): Updated.
4295         Pass device arguments to predrivers also.
4296         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4297         * src/roff/troff/env.h (environment): Updated.
4298         New elements `need_eol' and `ignore_next_eol' (for html output).
4299         * src/roff/troff/env.cc (environment::environment): Add initializers
4300         for `need_eol' and `ignore_next_eol'.
4301         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4302         functions.
4303         (point_size, fill, no_fill, center, right_justify, line_length,
4304         indent, temporary_indent, break_request, handle_tab): Use
4305         `add_html_tag()'.
4306         (set_tabs): Use `add_html_tag_tabs()'.
4307         (environment::add_html_tag): Updated.
4308         (environment::do_break): Updated.
4309         * src/roff/troff/div.cc (space_request, flush_output): Use
4310         `environment::add_html_tag()'.
4311         * src/roff/troff/input.cc: Updated.
4312         New variable `html_level' to indicate nested `html-begin' requests.
4313         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4314         (non_interpreted_char_node, token_node, non_interpreted_node): Add
4315         `force_tprint()' method.
4316         (token::next): Handle `\O'.
4317         (do_suppress): Implement it.
4318         (html_begin, html_end, html_image): New functions.
4319         (init_output_requests): Renamed to ...
4320         (init_html_requests): this.
4321         (main): Use it.
4322         (macro::append_str, macro::append_unsigned, macro::append_int): New
4323         methods.
4324         New variable `output_low_mark_miny' to limit minimal value of y.
4325         (reset_output_registers): Use it.
4326         (output_request): Removed.
4327         (get_output_registers): New function.
4328         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4329         (*_node): Added `force_tprint()' if necessary.
4330         (special_node): New elements `tf' and `get_tfont()'.
4331         (suppress_node): New class.
4332         * src/roff/troff/node.cc:
4333         New global variables `image_no' and `suppress_start_page'.
4334         (real_output_file): New method `is_on()'.
4335         (troff_output_file): New method `start_special(tfont)'.
4336         (troff_output_file::really_print_line): Use `tprint' conditionally.
4337         (real_output_file::print_line): Updated.
4338         (real_output_file::on): Updated.
4339         (*_node): Added `force_tprint()'.
4340         (special_node::special_node): Initializer updated.
4341         (special_node::same, special_node::copy, special_node::tprint_start):
4342         Updated.
4343         (get_reg_int, get_reg_str): New functions.
4344         (suppress_node::*): New methods.
4345         New global variables last_position, last_image_filename;
4346         (min): New inline function.
4347         * src/roff/troff/reg.h, src/roff/troff/request.h,
4348         src/roff/troff/troff.h: Updated.
4350 2001-01-13  Werner LEMBERG  <wl@gnu.org>
4352         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4353         documentation of `asciify' request.
4355 2001-01-12  Werner LEMBERG  <wl@gnu.org>
4357         * src/roff/troff/input.cc: Move definition of special characters
4358         like `ESCAPE_TILDE' to ...
4359         * src/roff/troff/input.h: New file.
4360         * src/roff/troff/Makefile.sub (HDRS): Add it.
4362         Extending the .asciify request to `unformat' space characters also.
4364         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4365         to count input space characters.
4366         Update constructors to take care of it.
4367         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4368         `ESCAPE_SPACE' instead of normal space.
4369         (word_space_node::asciify): New method.
4370         (unbreakable_space_node::asciify): New method.
4371         (word_space_node::merge_space): New method.
4372         * src/roff/troff/env.cc (environment::space_newline,
4373         environment::space): Add code to initialize `num_spaces' (using the
4374         constructor of `word_space_node').
4375         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4376         Document it.
4378 2001-01-09  Werner LEMBERG  <wl@gnu.org>
4380         * man/groff_char.man: Use table header traps only conditionally.
4382 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
4384         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4386 2001-01-08  Werner LEMBERG  <wl@gnu.org>
4388         Introducing the `box' and `boxa' requests which are similar to
4389         `di' resp. `da' but omitting a partially filled line (which is
4390         restored after ending the diversion).
4392         * src/roff/troff/div.h (diversion): Add elements to save partially
4393         filled line.
4394         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4395         partially filled line.
4396         (divert, divert_append): Updated.
4397         (box, box_append): New functions.
4398         (init_div_requests): Use them.
4399         * src/roff/troff/env.h (environment): do_divert() is now a friend.
4400         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4402         * doc/groff.texinfo: Fix documentation of `lf' request.
4404 2000-12-25  Werner LEMBERG  <wl@gnu.org>
4406         * src/roff/troff/troff.man, NEWS: Document `writem' request.
4408 2000-12-21  Werner LEMBERG  <wl@gnu.org>
4410         Ignore `ss' request if in compatibility mode.
4412         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4413         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4414         * src/roff/troff/env.cc (space_size): Use it.
4416         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4417         `ss' request in nroff mode.
4419         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4420         changes.
4422 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
4424         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4426 2000-12-13  Werner LEMBERG  <wl@gnu.org>
4428         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4429         * src/preproc/eqn/neqn.man: Small fixes and additions.
4431 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
4433         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4434         Fixing typo.
4436         * src/preproc/eqn/neqn.man: New file.
4438         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4439         negative' warning.
4441         * tmac/e.tmac: Add `T&' macro.
4442         Fix `indent cannot be negative' warning.
4443         * tmac/s.tmac: Fix `indent cannot be negative' warning.
4445 2000-12-07  Werner LEMBERG  <wl@gnu.org>
4447         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4449 2000-12-06  Werner LEMBERG  <wl@gnu.org>
4451         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4452         `alloca' symbol .
4454         * MORE.STUFF: Added info about deroff for djgpp.
4456         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4457         documentation of -rcR switch.
4459 2000-12-03  Werner LEMBERG  <wl@gnu.org>
4461         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4462         if -rcR=1 (which is now the default in nroff mode), a single, very
4463         long page is created instead of multiple pages: All `ne' and `wh'
4464         requests are put into conditionals; a new macro `an-end' is added to
4465         be called with `em'.
4467         Some other minor cleanups.
4469         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4471 2000-12-02  Werner LEMBERG  <wl@gnu.org>
4473         Fixing a bug which prevented hyphenation in words followed
4474         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4476         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4477         Adding possibly_break_line().
4478         * src/roff/troff/env.h (environment): Make possibly_break_line()
4479         public.
4481         Make `\~' usable in .tr request.
4483         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4484         (token): Add stretchable_space().
4485         * src/roff/troff/input.cc (token::next, token::delimiter,
4486         token::description, process_input_stack, do_translate,
4487         add_to_node_list, token::process): Use it.
4488         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4489         for adjusting the space.
4490         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4491         for stretchable space.
4492         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4493         (make_node): Add code for stretchable space.
4494         * src/roff/troff/env.cc (environment::add_char): Use it.
4495         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4496         (get_copy, token::next, transparent_translate, asciify): Use it.
4498         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4499         doc/groff.texinfo: Updated.
4500         * man/groff.man: Small reorderings.
4502 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4504         * NEWS: Fixes.
4505         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4506         option.
4507         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4508         `safer_macro_path' to -M option.
4509         * src/roff/troff/troff.man: Fixes.
4511 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4513         Use safer path (except for config files) if -U isn't specified.  Add
4514         a special macro path (without home and current directory) for config
4515         files.  Add home directory to unsafe path for consistency.  Don't
4516         include the home directory in the font path.
4518         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4519         `macro_path'.
4520         * src/include/macropath.h: Add `config_macrp_path'.
4521         * src/libs/libgroff/fontfile.cc: Fix font path.
4522         * src/roff/troff/input.cc (process_startup_file): Use
4523         `config_macro_path'.
4524         (main): Select unsafe path if -U is given.
4526         * src/preproc/eqn/main.cc (main): Fixing search path for
4527         configuration file.
4528         * src/preproc/eqn/eqn.man: Updated.
4530         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4531         Updated.
4533         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4534         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4535         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4536         src/devices/grotty/grotty.man: Updated.
4538         * Makefile.in: Fix comments.
4540 2000-11-17  Werner LEMBERG  <wl@gnu.org>
4542         * tmac/safer.tmac: Empty file added (again) for compatibility
4543         reasons.
4544         * tmac/Makefile.sub: Updated.
4546 2000-11-16  Werner LEMBERG  <wl@gnu.org>
4548         * src/devices/grodvi/dvi.cc (main),
4549         src/devices/grohtml2/post-html.cc (main),
4550         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4551         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4552         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4553         (main), src/preproc/html2/pre-html.cc (main),
4554         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4555         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4556         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4557         (main), src/utils/hpftodit/hpftodit.cc (main),
4558         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4559         (main), src/utils/lookbib/lookbib.cc (main),
4560         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4561         (main): Use stdout for -v.
4562         * src/roff/groff/groff.cc (run_commands),
4563         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4564         to make direct printing to stdout possible.
4565         * src/roff/groff/pipeline.h: Updated.
4567         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4568         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4569         * src/utils/afmtodit/afmtodit.man: Updated.
4571         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4572         (version): New function.
4573         (usage): Updated.
4574         * src/utils/addftinfo/addftinfo.man: Updated.
4576         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4577         Fixing copyright dates.
4579         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4580         replacing it.
4582         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4583         version_string.
4585         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4587 2000-11-15  Werner LEMBERG  <wl@gnu.org>
4589         In all programs, make -v return immediately with exit status 0 to
4590         be compliant with the GNU standard.
4592         * src/devices/grodvi/dvi.cc (main),
4593         src/devices/grohtml2/post-html.cc (main),
4594         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4595         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4596         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4597         (main), src/preproc/html2/pre-html.cc (main),
4598         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4599         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4600         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4601         (main): Implement it.
4602         * NEWS: Updated.
4604         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
4605         and postprocessors to the -v option.
4607         * src/roff/grog/grog.pl: Implement -v.
4608         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4609         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4611         * src/roff/nroff/nroff.sh: Implement -v.
4612         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4613         * src/roff/nroff/nroff.man: Updated.
4614         
4615         * src/preproc/eqn/main.cc (main): Fix comment typo.
4617         * MORE.STUFF: Added info about djgpp port of grap.
4619 2000-11-14  Werner LEMBERG  <wl@gnu.org>
4621         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4622         mode (or rather, implemented non-compatibility mode).
4623         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4625         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4626         replacing it -- we don't find gxditview otherwise.
4627         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4629         * src/preproc/pic/depend: Removed.  Unnecessary.
4631         Implemented dummy keyword `solid' in pic for compatibility with
4632         AT&T pic.
4634         * lex.cc (lookup_keyword): Added `solid'.
4635         * pic.y: Added SOLID with dummy rule.
4636         * pic.cc, pic_tab.h: Regenerated.
4637         * doc/pic.ms: Updated.
4639 2000-11-13  Werner LEMBERG  <wl@gnu.org>
4641         For security reasons, don't use the current directory but the home
4642         directory while searching and scanning troffrc and troffrc-end.
4643         Similarly, replace the current directory with the home directory
4644         in the font path.
4646         * Makefile.in (fontpath, tmacpath): Remove current directory.
4648         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4649         two parameters `add_home' and `add_current'.
4650         (search_path::~search_path, search_path::command_line_dir,
4651         search_path::open_file): Remove tests for `dirs' being zero.
4652         * src/include/searchpath.h: Adjust.
4653         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4654         `safer_macro_path'.
4655         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4657         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4658         * src/roff/troff/input.cc: Use `mac_path', initialized with
4659         `macro_path'.
4660         (process_startup_file): Set `mac_path' to `safer_macro_path'.
4661         * src/roff/troff/env.cc: Use `mac_path'.
4663         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4665         * NEWS, man/roff.man, src/roff/troff/troff.man,
4666         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4667         Updated.
4669 2000-11-12  Werner LEMBERG  <wl@gnu.org>
4671         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4673         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4674         * configure.in: Fix typo in comment.
4675         * configure: Regenerated.
4677         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4678         copyright dates.
4680 2000-11-08  Werner LEMBERG  <wl@gnu.org>
4682         Add system tmac directory (/usr/local/lib/groff/site-tmac).
4684         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4685         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4686         $(systemtmacdir).
4687         Use @libdir@.
4688         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4689         * tmac/Makefile.sub (install_data): Create
4690         $(systemtmacdir) and $(localtmacdir).
4691         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4692         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4693         NEWS, doc/groff.texinfo: Updated and minor fixes.
4695         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4696         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4697         $(systemtmacdir) since the wrapper files are platform-dependent.
4699 2000-11-01  Werner LEMBERG  <wl@gnu.org>
4701         * doc/groff.texinfo: Fix typo.
4703 2000-10-26  Werner LEMBERG  <wl@gnu.org>
4705         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
4706           tmac.doc.old -> doc-old.tmac
4707           tmac.an.old  -> an-old.tmac
4709         * tmac/tmac.*: Moved to ...
4710         * tmac/*.tmac: this.
4711         * tmac/man.local: Fix comment.
4712         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4713         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
4714         Added some `FILES' sections.  More use of @...@ directives.  Other
4715         minor updates.
4716         * arch/djgpp/README, font/devutf8/NOTES: Updated.
4717         * doc/homepage.ms, doc/groff.texinfo: Updated.
4718         * man/groff.man, man/roff.man: Updated.
4719         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4720         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4721         src/devices/grotty/grotty.man: Updated.
4722         * src/preproc/pic/pic.man: Updated.
4723         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4724         instead of -mdoc.old.
4725         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4726         * src/roff/nroff/nroff.man: Updated.
4727         * NEWS: Updated.
4729         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4731         * tmac/mm.diff: Removed -- it has no use now since the mm package
4732         is part of groff.
4734         * tmac/*: Removed trailing spaces.
4736         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4737         the tmac subdirectory also).
4739         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4740         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4741         stuff since it is no longer needed.
4743         * README, PROBLEMS: Updated.
4745 2000-10-25  Werner LEMBERG  <wl@gnu.org>
4747         Invert current behaviour: Search first FOOBAR.tmac, then
4748         tmac.FOOBAR.
4750         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4751         (open_mac_file, macro_source): Implement it.
4752         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4753         doc/groff.texinfo, NEWS: Document it.
4755         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4756         Small documentation improvements.
4758         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4759         subdirectory also).
4761         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4763 2000-10-24  Werner LEMBERG  <wl@gnu.org>
4765         Add local tmac directory (groff/site-tmac).
4767         * Makefile.in: Add $(localtmacdir).
4768         (uninstall_dirs): Add $(localtmacdir).
4769         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4770         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4771         in $(localtmacdir).  Create $(localtmacdir).
4772         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4773         Updated and minor fixes.
4775         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4777         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4779 2000-10-23  Werner LEMBERG  <wl@gnu.org>
4781         Move hyphen.us to tmac directory.
4783         * src/roff/troff/hyphen.us: Removed.
4784         * src/tmac/hyphen.us: Added.
4785         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4787         Change installation structure for data files from .../groff/... to
4788         .../groff/<version><revision>/... to be conform with other GNU
4789         programs.
4791         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4792         doc/Makefile: Implement it.
4793         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4794         * configure: Updated.
4795         * arch/djgpp/README, font/devutf8/NOTES: Use it.
4796         * NEWS: Document it.
4797         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4798         @MACRODIR@ instead of hard-coded directories.
4800 2000-10-22  Werner LEMBERG  <wl@gnu.org>
4802         Implement $GROFF_BIN_PATH environment variable (which defaults to
4803         $bindir) used for child programs of groff and similar wrappers.
4805         * gendefs.sh: Improve documentation.
4806         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4807         src/preproc/eqn/Makefile.sub (neqn),
4808         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4809         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4810         $GROFF_BIN_PATH.
4811         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4812         $GROFF_PATH__ (the latter for communication with troff).
4813         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4814         set.
4815         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4816         doc/groff.texinfo: Document it.
4818         * doc/groff.texinfo: Improve documentation of troff's -a option.
4820 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
4822         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4823         non-intrusive eol marker.
4824         (troff_output_file::determine_line_limits): New function.
4825         (troff_output_file::draw): Use it.
4826         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4827         output_pending_lines() instead of output_line().
4828         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4829         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4830         createImage): Small fixes.
4831         
4832 2000-10-14  Werner LEMBERG  <wl@gnu.org>
4834         Replace tmac.safer with a real secure solution.
4836         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4837         system_request, pipe_output): Disable requests if in safer mode.
4838         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4839         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4840         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4841         doc/groff.texinfo, src/roff/groff/groff.man,
4842         src/roff/troff/troff.man, arch/djgpp/README: Updated.
4844         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4845         (resource_manager::output_prolog): Replace setenv() with putenv().
4847 2000-10-09  Werner LEMBERG  <wl@gnu.org>
4849         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4850         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4851         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4852         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4853         compilation errors with some compilers.  It seems that this code
4854         is no longer necessary -- if yes, it is easy to add some #ifdef's
4855         for that particular old-fashioned compiler.
4857         * MORE.STUFF: Added info about Meta-tbl.
4859         * doc/groff.texinfo: Added more info about `.if "..."..."'.
4861 2000-10-07  Werner LEMBERG  <wl@gnu.org>
4863         Adding a new escape sequence \B'...': If the string between
4864         the delimiters is a valid numeric expression, return the character
4865         `1', and `0' otherwise.  This is an analogon to \A.
4867         * src/roff/troff/input.cc (do_expr_test): Implement it.
4868         (token::next): Use it.
4869         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4871         * tmac/tmac.trace: Made independent from escape character.
4873 2000-10-06  Werner LEMBERG  <wl@gnu.org>
4875         Adding a new request .dei: define indirect.  The first and second
4876         parameter of .dei are taken from string registers instead directly;
4877         this very special request is needed to make tmac.trace independent
4878         from the escape character (which might even be disabled).
4880         * src/roff/troff/input.cc (do_define_macro): Implement it.
4881         (define_macro_indirect): New function.
4882         (init_input_requests): Use it.
4884         Adding two requests .ecs and .ecr: Save and restore the escape
4885         character.  These two requests are needed to make tmac.trace
4886         independent from the escape character (which might even be
4887         disabled).
4889         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4890         Implement it.
4891         (init_input_requests): Use it.
4893         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4895 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
4897         Adding a new option -P and new environment variable GROPS_PROLOGUE
4898         to grops, selecting a different prologue file (minor modifications
4899         by WL).
4901         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4902         src/devices/grops/ps.cc (main): Implement it.
4903         * src/devices/grops/grops.man, NEWS: Document it.
4905 2000-09-22  Werner LEMBERG  <wl@gnu.org>
4907         * INSTALL: Add info about selecting paper format.
4909 2000-09-21  Werner LEMBERG  <wl@gnu.org>
4911         * src/roff/troff/input.cc (main): Fixing compiler warning.
4912         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4913         strings.h from the former to the latter.
4914         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4915         stuff from the former to the latter.
4917 2000-09-11  Werner LEMBERG  <wl@gnu.org>
4919         Implementing two new requests .tm1 and .tmc: The former is similar
4920         to .tm but can output leading spaces; its syntax is similar to
4921         defining a string, i.e., a `"' can be used to mark the beginning of
4922         the string to be written to stderr: `.tm1 " test'.  The latter is
4923         similar to .tm1 but doesn't write out a final newline character.
4925         * src/roff/troff/input.cc (terminal1, terminal_continue,
4926         do_terminal): New functions.
4927         (init_input_requests): Use them.
4928         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4930 2000-09-09  Werner LEMBERG  <wl@gnu.org>
4932         * tmac/groff_mdoc.samples.man: Small fixes.
4934 2000-09-08  Werner LEMBERG  <wl@gnu.org>
4936         * tmac/groff_mdoc.man: Fixing typo.
4938 2000-09-02  Werner LEMBERG  <wl@gnu.org>
4940         Implementing a .nop request which does nothing.
4942         * src/roff/troff/input.cc (nop_request): New function.
4943         (init_input_requests): Use it.
4944         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4946 2000-09-01  Werner LEMBERG  <wl@gnu.org>
4948         * doc/groff.texinfo: Added some comments.
4950 2000-08-30  Werner LEMBERG  <wl@gnu.org>
4952         * src/roff/troff/TODO: Updated.
4954 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4956         * doc/groff.texinfo: Fix comment how to compile the DVI file.
4958 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4960         * font/devps/generate/Makefile (SHELL): Define explicitly to
4961         "/bin/sh", for non-Unix platforms.
4962         (extraclean): Use a more portable "" quoting instead of a
4963         backslash (which doesn't work on DOS/Windows).
4964         
4965         * font/devlj4/generate/Makefile (extraclean): Ditto.
4967         * font/devdvi/generate/Makefile (extraclean): Ditto.
4969 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4971         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4972         src/roff/troff/troff.man: Document Eli's latest changes.
4974 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4976         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4977         macro file names of the form NAME.tmac as well as tmac.NAME.
4979 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4981         * src/include/posix.h: Remove definition of FILENAME_MAX.
4983         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4984         `sys_fatal' and `stop' function().
4986         * test-groff: Updated.
4988 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
4990         Added the new troff command .output <arg> to suppress output (while
4991         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4992         registers (for passing the output dimensions to the output device).
4994         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4995         parameter.
4996         * src/roff/troff/node.h, src/roff/troff/node.cc
4997         (troff_output_file::really_print_line,
4998         ascii_output_file::really_print_line,
4999         supress_output_file::really_print_line): Use `width' parameter.
5000         (troff_output_file::really_on, troff_output_file::really_off,
5001         output_file::on, output_file::off, real_output_file::on,
5002         real_output_file::off, real_output_file::really_on,
5003         real_output_file::really_off): New functions.
5004         (real_output_file:public output_file): New variable `output_on'.
5005         (real_output_file::begin_page, real_output_file::copy_file,
5006         real_output_file::transparent_char, real_output_file::print_line):
5007         Use it.
5008         (real_output_file::print_line): Use check_output_limits.
5009         * src/roff/troff/reg.h, src/roff/troff/request.h,
5010         src/roff/troff/input.cc (assign_registers): New function to remove
5011         two `goto's.
5012         (do_ps_file): Use it.
5013         (check_output_limits, reset_output_registers, output_request,
5014         init_output_requests): New functions.
5015         (init_input_requests): Updated.
5017         Added new grohtml2 device and html2 preprocessor (coding
5018         not yet finished) which will eventually replace grohtml.
5020         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
5021         Updated.
5022         * src/include/htmlindicate.h, src/include/htmlindicate
5023         (html_begin_suppress, html_end_suppress): New functions.
5024         * src/preproc/tbl/main.cc: Use it.
5025         * src/roff/groff/groff.cc: Add support for html2 device (which will
5026         automatically invoke the html2 preprocessor).
5027         * src/roff/troff/input.cc (is_html2): New variable.
5028         * src/roff/troff/troff.h, src/roff/troff/env.h,
5029         src/roff/troff/env.cc (environment::add_html_tag): New function
5030         (uses `is_html2').
5031         (environment::do_break): Use it.
5032         * font/devhtml2/*: New files.
5033         * src/devices/grohtml2: New device.
5034         * src/preproc/html2: New preprocessor.
5035         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
5037 2000-08-23  Werner LEMBERG  <wl@gnu.org>
5039         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
5041 2000-08-22  Werner LEMBERG  <wl@gnu.org>
5043         * src/include/lib.h: Provide a fix for IRIX to not include
5044         groff-getopt.h.
5046 2000-08-18  Werner LEMBERG  <wl@gnu.org>
5048         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
5049         since some non-GNU sed programs can't handle null regexps.
5050         * configure, src/preproc/eqn/Makefile.sub,
5051         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
5053         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
5054         bug (string.h and strings.h are both needed according to latest
5055         POSIX standard).
5057         * MORE.STUFF: Added info about unroff and troffcvt.
5059 2000-08-08  Werner LEMBERG  <wl@gnu.org>
5061         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
5062         used before -ms.
5064         * tmac/tmac.man.old: Remove unused number register.
5066         * tmac.doc: Minor documentation fix.
5068 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5070         * src/roff/groff/pipeline.c (is_system_shell):
5071         Fix typo: "monocased_shell" no longer exists.
5073 2000-08-07  Paul Eggert  <eggert@twinsun.com>
5075         Remove FILENAME_MAX limits.
5077         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
5078         that the argument length is less than FILENAME_MAX.
5079         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
5080         Use struct hack to allocate and free file name.
5081         (struct xtmpfile_list): fname is now part of the structure,
5082         not a pointer to another string.
5084 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5086         * src/include/posix.h: Add a default value for FILENAME_MAX.
5088 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5090         Add support for new BSD-style man pages (with ".Dd" instead of
5091         ".TH"), so that "groff -man" understands both styles, even
5092         when running "groff -man" on a host whose system man page
5093         macros don't support ".Dd".
5095         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5096         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5097         in case the system man macros don't define Dd or TH.
5099         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5100         * tmac/tmac.an: New one-line file.
5101         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5103 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5105         * src/roff/troff/troff.man: Fixing typos.
5107 Version 1.16.1 released
5108 =======================
5110 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5112         Preparing release 1.16.1.
5114         * REVISION: Revision number set to 1.
5115         * MORE.STUFF: Added info about port to DOS.
5116         * NEWS, win32-diffs: Updated.
5118         * src/include/nonposix.h: Remove first line -- this file is used
5119         in C also.
5121         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5122         link to it.
5124 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5126         * doc/texinfo.tex: Update to latest version.
5128 2000-06-28  Paul Eggert  <eggert@twinsun.com>
5130         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5131         commands that fail.  Don't assume that "export a=b" is valid shell
5132         syntax.  This is needed for Solaris 2.5.1.
5134         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5135         comment about missing Solaris headers.
5137         * PROBLEMS: Add section about problems with Sun Make and VPATH.
5139 2000-06-25  Werner LEMBERG  <wl@gnu.org>
5141         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5142         SET_BINARY().
5144         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5146         * win32-diffs: Updated.
5147         * README.WIN32: Added CRs to make all Windows editors happy.
5149         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5150         src/roff/groff/pipeline.c).
5152 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5154         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5155         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5157 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
5159         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5160         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5161         are binary files.
5162         (main): Support non-Posix systems with several different styles of
5163         slash characters in file names.
5165         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5166         (main) [SET_BINARY]: Switch stdin into binary mode.
5168         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5169         (main): Support file names with several possible slash-type
5170         characters, as given by DIR_SEPS[] in nonposix.h.
5171         (main) [__MSDOS__]: If renaming the temporary index file fails
5172         because it has more than one dot in its trunk, replace the dot
5173         with an underscore and try again.
5174         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
5175         Newline.
5176         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5178         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5179         (File::File): Open the input file in binary mode.  Strip CR
5180         characters from each CR-LF pair.
5181         (xbasename): Support file names with several possible slash-type
5182         characters, as given by DIR_SEPS[] in nonposix.h.
5184         * src/include/Makefile.sub (HDRS): Add nonposix.h.
5186         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5187         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5188         [!_POSIX_VERSION]: Define for traditional Unix systems.
5189         (real_output_file::real_output_file): Remove the MSVC-specific
5190         call to popen, use instead POPEN_WT, appropriately defined on
5191         nonposix.h.  #include nonposix.h.
5192         (real_output_file::~real_output_file): Remove the MSVC-specific
5193         call to pclose, a suitable macro is now defined on nonposix.h.
5194         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5195         and WEXITSTATUS instead of assuming traditional Unix
5196         interpretation of the status returned by pclose.
5198         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5199         call to popen, use POPEN_RT instead (appropriately defined on
5200         nonposix.h).  #include nonposix.h.
5201         (ps_bbox_request): Open the PostScript file in binary mode.
5202         Close the file after processing it.
5203         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5204         nonposix.h.
5206         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5207         A version of run_pipeline that doesn't use `fork'.
5208         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5209         (system_shell_name, system_shell_dash_c)
5210         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5211         the ugliness of testing DOS/Windows file names for equality, and
5212         support both stock shells and ports of Unix shells.
5214         * src/roff/groff/groff.cc: #include nonposix.h.
5215         (BSHELL): Definition moved to nonposix.h.
5216         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
5217         instead of a literal "-c".
5218         (xbasename): Support file names with several possible slash-type
5219         characters, as given by DIR_SEPS[] in nonposix.h.
5220         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5221         of literal strings.
5223         * src/preproc/soelim/soelim.cc: #include nonposix.h.
5224         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5226         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5227         pic_tab.h.
5229         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5231         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5232         eqn_tab.h.
5234         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5236         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5237         P_tmpdir is defined, use it instead of the literal "/tmp".
5238         (remove_tmp_files, add_tmp_file): New functions.
5239         (xtmpfile): Record temporary files and register an atexit function
5240         to delete them explicitly, instead of relying on the OS to do
5241         that, which doesn't work on non-Unix systems.
5243         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5244         (search_path::search_path): Use PATH_SEP instead of a literal
5245         colon.
5246         (search_path::command_line_dir): Ditto.
5247         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5248         to support non-Posix systems.
5250         * src/libs/libbib/search.cc: #include nonposix.h.
5251         (search_list::add_file): Open the file in binary mode.
5253         * src/libs/libbib/linear.cc: #include nonposix.h.
5254         (file_buffer::load): Remove \r characters preceding \n from the
5255         loaded buffer.
5257         * src/libs/libbib/index.cc: #include nonposix.h.
5258         (make_index_search_item): Open index_filename in O_BINARY mode.
5259         (index_search_item_iterator::get_tag): Ditto.  Remove \r
5260         characters before \n characters.
5261         (index_search_item::check_files): Open files in binary mode.
5262         (index_search_item::munge_filename): Support DOS-style file names
5263         with backslashes and drive letters, use IS_ABSOLUTE.
5265         * src/devices/grops/ps.cc: #include nonposix.h.
5266         (main) [SET_BINARY]: Switch stdout to binary mode.
5268         * src/devices/grolj4/lj4.cc: #include nonposix.h.
5269         (main) [SET_BINARY]: Switch stdout to binary mode.
5271         * src/devices/grolbp/lbp.cc: #include nonposix.h
5272         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5274         * src/devices/grodvi/dvi.cc: #include nonposix.h.
5275         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5276         nonposix.h).
5277         (main) [SET_BINARY]: Switch stdout to binary mode.
5278         [_MSC_VER]: Remove an explicit call to _setmode.
5280         * src/include/nonposix.h: New file.
5282         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5283         operation when building with DJGPP.
5284         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5285         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5286         ENVSETUP.
5288         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5289         MS-DOS.
5290         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5291         etc. can include a semi-colon on DOS/Windows.
5292         (depend.temp): Use depend1.temp instead of depend.temp1, to
5293         prevent files from overerwiting each other on 8+3 filesystems.
5295         * gendef.sh (t): Change definition to work with DOS/Windows.
5297         doc/groff.texinfo: Apart of some typo corrections, I also changed
5298         some index entris, to make them more non-ambiguous, and also put
5299         @ignore around some parts that are not yet written, to allow the
5300         Info output be readable.
5302 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
5304         Replaced specific checks for function declarations with a generic
5305         routine taken from GNU bfd.
5307         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5308         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5309         * configure.in: Use it.
5310         * src/devices/grolbp/lbp.cc, src/include/lib.h,
5311         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5312         src/roff/groff/groff.cc: Use it.
5313         * Makefile.in, configure: Updated.
5315 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
5317         * src/devides/grolbp/lbp.h: Removed unused variables.
5319 2000-05-31  Keith Thompson  <kst@sdsc.edu>
5321         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5322         strncasecmp().
5324 2000-05-31  Werner LEMBERG  <wl@gnu.org>
5326         * aclocal.m4 (GROFF_SRAND): New function to test the return value
5327         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5328         * configure.in: Use it.
5329         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5330         * configure, Makefile.in: Updated.
5332         * configure.in: Add test for strncasecmp().
5333         * src/include/lib.h: Use it.
5335 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
5337         * src/preproc/grn/Makefile.sub: Add MLIB.
5339 2000-05-29  Nix  <nix@esperi.demon.co.uk>
5341         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5343 2000-05-29  Werner LEMBERG  <wl@gnu.org>
5345         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5347         * PROBLEMS: Small update.
5349         * src/devices/grolbp/lbp.cc: Various small fixes.
5351 2000-05-28  Keith Thompson  <kst@sdsc.edu>
5353         * src/roff/nroff/nroff.sh: Fix main loop syntax.
5355         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5357 2000-05-25  Werner LEMBERG  <wl@gnu.org>
5359         * man/roff.man: Removed unused macro.
5361 2000-05-24  Werner LEMBERG  <wl@gnu.org>
5363         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
5364         This is needed e.g. if you do
5365         `make distclean; ./configure; make dist'.
5367 Version 1.16 released
5368 =====================
5370 2000-05-23  Werner LEMBERG  <wl@gnu.org>
5372         Adding font CWI (constant width italic) to devdvi.
5374         * font/devdvi/CWI: New file.
5375         * font/devdvi/generate/Makefile: Add generating rule.
5376         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5377         tmac/tmac.dvi: Use it.
5378         * NEWS: Announce it.
5380         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5381         * font/devlj4/generate/Makefile: Cosmetic changes only.
5383         * man/groff.man: Removed most of the redundant description of
5384         special characters (which is in groff_char.man).  Added font
5385         translation CB->CR for devdvi.  Other minor fixes.
5387         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5388         (registered) symbols.
5390 2000-05-22  Werner LEMBERG  <wl@gnu.org>
5392         * doc/Makefile: Added rule for creating info files.
5394         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
5395         AMS font metrics.
5396         * font/devdvi/generate/Makefile: Fixed dependencies.
5398         * font/devps/*: Regenerated.  Heavy changes for Bookman and
5399         NewCentury Schoolbook!
5400         * font/devps/generate/afmname: Will now run with GNU awk.
5401         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5402         * font/devps/generate/Makefile: Cosmetic changes only.
5404 2000-05-21  Werner LEMBERG  <wl@gnu.org>
5406         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5407         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
5408         `.SS' now produces a heading with a smaller size than `.SH'. 
5409         Completely formatted.
5410         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5412         * man/groff.man: Improved table appearance.  Use of `eo' request
5413         to reduce number of doubled backslashes in macro definitions.
5414         Replacing `\e' with `\(rs'.  Other minor fixes.
5416         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5417         to have correct line number.
5419         * INSTALL: Small improvement.
5421 2000-05-20  Bernd Warken  <bwarken@mayn.de>
5423         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5424         WL).
5426 2000-05-19  Bernd Warken  <bwarken@mayn.de>
5428         * man/groff.man: Complete update (with a lot of corrections by WL).
5430 2000-05-18  Werner LEMBERG  <wl@gnu.org>
5432         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5434         * font/*/*: Implement it.
5435         * man/groff_char.man, NEWS: Document it.
5437         * src/include/unix.h: Removed.  It isn't used.
5439         * doc/groff.texinfo: Slight improvements.
5441 2000-05-17  Werner LEMBERG  <wl@gnu.org>
5443         * README, win32-diffs: Small fixes and improvements.
5445 2000-05-16  Werner LEMBERG  <wl@gnu.org>
5447         * FDL: New file (the Free Documentation License version 1.1).
5449         * doc/groff.texinfo: Added many start-up values for gtroff.
5450         Some structural improvements of the source code.
5452 2000-05-15  Werner LEMBERG  <wl@gnu.org>
5454         * src/roff/troff/input.cc: Added small comment about troffrc-end.
5455         * src/roff/troff/troff.man: Added info about troffrc-end.
5457 2000-05-14  Werner LEMBERG  <wl@gnu.org>
5459         * Makefile.in (EXTRADIRS): Fix typos.
5460         (dist): Handle deletion of old .tar.gz file correctly.
5461         (DISTDIRS): Include all tty output devices.
5463         * doc/groff.texinfo: Adding more cross references; countless other
5464         fixes.
5466 2000-05-13  Werner LEMBERG  <wl@gnu.org>
5468         * MORE.STUFF: Added Robert Marks's utilities.
5470 2000-05-12  Werner LEMBERG  <wl@gnu.org>
5472         Added win32 port contributed by Blake McBride
5473         <blake@florida-software.com>.
5475         * README.WIN32, win32-diffs: New files.
5476         * NEWS: Updated.
5478         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5479         (tmove, tmove2): Added parentheses to avoid compiler warnings.
5480         (change): Removed unused variables.
5482         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5483         (savebounds): Changed return value from `int' to `void'.
5484         * src/preproc/grn/hdb.cc: Ditto.
5486         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5487         final backslash in comment to avoid compiler warning.
5489         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5491         * doc/groff.texinfo: More fixes.
5493 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5495         * tmac/tmac.doc: Documentation fix.
5497 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5499         * doc/groff.texinfo: Reading the source code shows up a lot of
5500         omissions and incorrect data...  More conversion to @Deffn macros.
5502 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5504         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5505         dependency.
5507         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5509 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5511         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5512         improvements.
5514         * doc/groff.texinfo: Extended history section.  More conversion to
5515         @Deffn macros.  More .tr documentation.
5517 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5519         * doc/groff.texinfo: Completed tab section.  Added info about
5520         fields.
5522 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5524         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5526 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5528         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5529         LaTeX 2e).
5530         * NEWS: Document it.
5532         * man/troff.man: Minor optical improvements.
5534 2000-05-03  Werner LEMBERG  <wl@gnu.org>
5536         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5538         * font/*/*: Implement it.
5539         * man/groff_char.man, NEWS: Document it.
5541 2000-05-02  Werner LEMBERG  <wl@gnu.org>
5543         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5544         expansion.
5545         * NEWS: Document the three new man pages.
5547         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5548         * configure: Updated.
5550         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5552 2000-05-01  Werner LEMBERG  <wl@gnu.org>
5554         Added grap support to grog.
5556         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5557         * src/roff/grog/grog.man: Document it.
5559         * doc/groff.texinfo, NEWS: Add info about grap support.
5561         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5562         (with slight fixes by me).
5564         * tmac/groff_tmac.man: New file documenting tmac mechanism.
5565         * tmac/Makefile.sub: Add groff_tmac.man.
5566         * man/roff.man: New file giving overview of roff system.
5567         * man/troff.man: A short reference of troff.
5568         * man/Makefile.sub: Add roff.man and troff.man.
5570 2000-04-30  Werner LEMBERG  <wl@gnu.org>
5572         Added grap support to groff.
5574         * src/roff/groff/groff.cc: Implement it.
5575         * src/roff/groff/groff.man: Document it.
5577         * src/devices/grotty/grotty.man: Add cp1047 device.
5578         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5579         Ditto.
5580         * src/roff/groff/groff.man: Ditto.
5581         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5582         * doc/groff.texinfo: Ditto.
5584         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5585         for cp1047.
5587 2000-04-29  Werner LEMBERG  <wl@gnu.org>
5589         * man/groff_char.man: Add `pc' glyph.
5590         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5591         * tmac/tmac.tty: Add `pc' glyph.
5592         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
5593         we use cp1047 output device.
5595         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5596         there are still hardcoded latin1->unicode values in utf8's font
5597         definition files.
5598         * configure: Updated.
5599         * NEWS: Minor clarification.  Updated.
5601         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
5602         Unix.
5604 2000-04-28  Werner LEMBERG  <wl@gnu.org>
5606         Adding EBCDIC code page 1047.
5608         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5609         font/devcp1047/DESC.proto: New files.
5611         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5612         either ascii/latin1 or cp1047.
5613         * Makefile.in: Use it.
5614         * configure: Updated.
5616         Replacing and/or adding `md' (mathdot) glyph with `pc'
5617         (periodcentered) in all text fonts.
5619         * font/*/*: Change it.
5621 2000-04-27  Werner LEMBERG  <wl@gnu.org>
5623         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5625         * configure.in: Add check for strings.h.
5626         * src/include/driver.h: Use HAVE_STRINGS_H.
5627         * src/devices/grolbp/lpb.cc: Remove string.h.
5629         * src/include/groff-getopt.h: New file.  It will be used instead of
5630         getopt.h (to be included in lib.h) to avoid endless problems with
5631         picky C++ compilers.
5632         * src/include/lib.h: Use groff-getopt.h.
5633         * src/include/Makefile.sub: Updated.
5635         * configure: Updated.
5636         * Makefile.in: Updated.
5638         * NEWS: Mention EBCDIC support.
5640 2000-04-26  Werner LEMBERG  <wl@gnu.org>
5642         * TODO: Some additions.
5644 2000-04-25  Werner LEMBERG  <wl@gnu.org>
5646         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5647         of mso request.
5649 2000-04-23  Werner LEMBERG  <wl@gnu.org>
5651         * src/roff/troff/troff.man: Minor fixes.
5653 2000-04-22  Werner LEMBERG  <wl@gnu.org>
5655         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5656         `.T' string register and the incompatible definition of the `.T'
5657         number register (compared to Unix troff).
5659         * man/groff_char.man: Add some missing characters.
5660         * font/devutf8/NOTES: Update.
5662 2000-04-21  Werner LEMBERG  <wl@gnu.org>
5664         * src/include/htmlindicate.h, src/include/lib.h,
5665         src/include/posix.h: Fix copyright.
5667         * src/include/Makefile.sub: Update.
5669 2000-04-20  Werner LEMBERG  <wl@gnu.org>
5671         * src/roff/troff/input.cc (input_char_description): Removing
5672         superfluous space char.
5674         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5676         * doc/groff.texinfo: Document EBCDIC.
5678 2000-04-19  Werner LEMBERG  <wl@gnu.org>
5680         Introducing `shc' as the glyph name for the soft hyphen character.
5682         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5683         font/devlatin1/R.proto: Use it.
5685         * NEWS: Updated.
5687 2000-04-18  Werner LEMBERG  <wl@gnu.org>
5689         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5690         dependency on ASCII order.
5692 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
5694         * src/libs/libgroff/illegal.c: Added EBCDIC table.
5695         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5697         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5698         to increase portability.
5700 2000-04-15  Werner LEMBERG  <wl@gnu.org>
5702         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5703         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5704         the generic `\n' if under OS/390 Unix.
5706         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5708         * configure: Regenerated.
5710 2000-04-14  Werner LEMBERG  <wl@gnu.org>
5712         * doc/groff.texinfo: More conversions to @Deffn.
5714 2000-04-12  Werner LEMBERG  <wl@gnu.org>
5716         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5717         with `:'.
5719         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5721 2000-04-10  Werner LEMBERG  <wl@gnu.org>
5723         * doc/groff.texinfo: More conversions to @Deffn.
5725 2000-04-08  Werner LEMBERG  <wl@gnu.org>
5727         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5728         Updated to latest version (glibc 2.1.3).
5730 2000-04-07  Werner LEMBERG  <wl@gnu.org>
5732         * doc/Makefile (clean): Include more index files.
5733         Add rule texinfo->dvi.
5735 2000-04-05  Werner LEMBERG  <wl@gnu.org>
5737         * doc/groff.texinfo: Added new index `op' for operators.  More
5738         info on end of sentence characters.  More use of @Deffn.
5740 2000-03-30  Werner LEMBERG  <wl@gnu.org>
5742         * */*.man: Adding a note that a whitespace can be inserted between
5743         a command line option and its parameter -- we are using GNU getopt.
5745         * src/roff/groff/groff.man: Add example of `-m mandoc'.
5747 2000-03-28  Werner LEMBERG  <wl@gnu.org>
5749         Correct anachronism of calling the man macro file with `-man'
5750         instead of `-m man' etc.
5752         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5753         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5754         load tmac.<package>.
5756         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
5758         * NEWS: Updated.
5760         * doc/groff.texinfo: Updated.
5762         * tmac/groff_man.man: Copyright added.
5764 2000-03-27  Werner LEMBERG  <wl@gnu.org>
5766         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5767         typeset the request resp. escape name with a tt font -- due to a
5768         bug in texinfo.tex it is necessary to use the `-e' switch with
5769         texi2dvi.
5771         Improving info about usage of groff units.
5773         Other minor fixes.
5775 2000-03-20  Werner LEMBERG  <wl@gnu.org>
5777         * doc/groff.texinfo: Added section about man macro package
5778         (I've basically taken groff_man.man).  Introducing new indices `ma'
5779         for macros/strings and `gl' for glyph names.  Other minor fixes.
5781         * tmac/groff_man.man: Fixed some typos.
5783 2000-03-19  Werner LEMBERG  <wl@gnu.org>
5785         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5786         Other minor fixes.
5788         * doc/texinfo.tex: New file.
5790 2000-03-18  Werner LEMBERG  <wl@gnu.org>
5792         * doc/groff.texinfo: Improved section on number registers.  Other
5793         minor updates.
5795 2000-03-16  Werner LEMBERG  <wl@gnu.org>
5797         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
5798         synopsis.
5800         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5801         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5802         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5803         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5805         * src/preproc/grn/grn.man: Better synopsis; added copyright.
5807         * src/roff/grog/grog.man: Updated copyright date.
5809 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
5811         * configure.in: Added test for strdup.
5813         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5814         is available.
5816         Replaced dynamic allocation of arrays `[...]' with `new' operator.
5818         Other minor fixes.
5820 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
5822         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5824 2000-03-11  Werner LEMBERG  <wl@gnu.org>
5826         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5827         compilers silent.
5828         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5829         * src/include/lib.h: Remove some spaces.
5831 2000-03-10  Werner LEMBERG  <wl@gnu.org>
5833         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5834         initializers from arguments (some compilers don't like this).
5836 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
5838         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5839         used by pic and eqn to tell grohtml where the graphic regions start
5840         and end.
5841         * src/libs/libgroff/Makefile.sub: Use it.
5842         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5843         graphic_start() and graphic_end() from htmlindicate.cc.
5845 2000-03-09  Werner LEMBERG  <wl@gnu.org>
5847         * tmac/tmac.safer: Will now work correctly in compatibility mode.
5848         * tmac/groff_man.man: More fixes.
5850 2000-03-08  Werner LEMBERG  <wl@gnu.org>
5852         * doc/Makefile: Added texput.log to the `clean' target.
5853         * doc/groff.texinfo: Added info about delimiters for escapes.
5855 2000-03-08  Bernd Warken  <bwarken@mayn.de>
5857         * src/preproc/pic/pic.man: Add info on conversion of pic images to
5858         other graphic formats.
5860 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
5862         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5863         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5864         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5865         files.
5867 2000-03-07  Werner LEMBERG  <wl@gnu.org>
5869         * doc/groff.texinfo: Spelling fixes.
5871 2000-03-06  Werner LEMBERG  <wl@gnu.org>
5873         * tmac/groff_man.man: Completely revised to cover everything in
5874         tmac.an.
5876         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5877         Other minor fixings.
5878         * src/roff/troff/env.cc (environment_copy): Improve error message and
5879         fix itoa->i_to_a.
5880         * src/roff/troff/TODO: Updated.
5882         * doc/Makefile: Bug fixes -- this is still provisional, though...
5884         * tmac/eqnrc: Small fixes.
5886 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
5888         Adding a request `evc' to copy environments.
5890         * src/roff/troff/env.cc (environment::copy, environment_copy):
5891         Implement it.
5892         * src/roff/troff/env.h: Add prototype.
5894 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
5896         Adding strsep() -- Solaris 8 doesn't have it.
5898         * configure.in: Test it.
5899         * src/devices/grolbp/lbp.cc: Add code.
5901 2000-03-05  Werner LEMBERG  <wl@gnu.org>
5903         * src/roff/troff/div.cc (macro_diversion::output,
5904         top_level_diversion::output): Fixing an incompatibility with
5905         original troff: \x'0' updates the .a register also.  Thanks to
5906         <Andries.Brouwer@cwi.nl> for pointing this out.
5907         * doc/groff.texinfo: Document it.
5909         * Makefile.in: Create Makefile.dep if necessary before calling the
5910         submake process to avoid warning about nonexistent file.
5912         * NEWS, PROJECTS: Updated.
5914 2000-03-04  Werner LEMBERG  <wl@gnu.org>
5916         * tmac/troffrc: Add tmac.lbp.
5918 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
5920         * tmac/tmac.lbp: New file.
5921         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5922         command.
5924 2000-03-03  Werner LEMBERG  <wl@gnu.org>
5926         * Makefile.in: Fixing $(subdir).
5928         * README, NEWS: Small fixes.
5930         * test-groff: Adding path to grolbp.
5932         * configure.in: The (new) file src/xditview/Imakefile.in will be
5933         also configured -- it is now possible to build gxditview in a
5934         directory different from $srcdir.
5936 2000-03-02  Blake McBride  <blake@florida-software.com>
5938         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5940         * MORE.STUFF: Added website of bell labs and info about plot2dev.
5942 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
5944         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5945         files.
5947 2000-02-29  Werner LEMBERG  <wl@gnu.org>
5949         Adding GNU getopt to the groff distribution.
5951         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5952         New files.
5953         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5954         * aclocal.a4: Remove GROFF_GETOPT function.
5955         * configure.in, Makefile.in, PROBLEMS: Update.
5956         * src/include/lib.h: Replace getopt tests with getopt.h.
5957         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5959         * doc/groff.texinfo: Further checking/updating.  Adding more index
5960         entries.
5962         * man/groff_out.man: Fix nroff mode activation (for emacs).
5963         * man/groff_font.man: Add missing ligature.
5965 2000-02-28  Werner LEMBERG  <wl@gnu.org>
5967         * doc/groff.texinfo: Further checking/updating.  Adding more index
5968         entries.
5970         * src/devices/grolbp/grolbp.man: Added a comment line at the
5971         beginning of the file (similar to shell scripts) which indicates
5972         that `tbl' should be used as a preprocessor.
5974 2000-02-27  Blake McBride  <blake@florida-software.com>
5976         Adapting groff to MS Visual C++ 6.0 compiler (tested with
5977         Windows NT 4.0).  Uses _MSC_VER define where necessary.
5979         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5980         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5981         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5982         src/include/lib.h, src/libs/libgroff/errarg.cc,
5983         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5984         src/preproc/refer/label.y, src/preproc/refer/label.cc,
5985         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5986         src/roff/troff/div.cc, src/roff/troff/env.cc,
5987         src/roff/troff/input.cc, src/roff/troff/node.cc,
5988         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5989         if_to_a() to avoid name clashes.
5990         * src/include/posix.h: Don't use unistd.h.
5991         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5992         clause for integrating non-Unix xtmpfile() code.
5993         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5994         structure; use "rt" for popen() in pipe_source(); add getpid()
5995         dummy function.
5996         * src/roff/troff/node.cc: Use special versions of popen() in
5997         real_output_file() and pclose() in ~real_output_file().
5999 2000-02-27  Werner LEMBERG  <wl@gnu.org>
6001         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
6002         LBP-8 series laser printers).  This code has been contributed by
6003         Francisco Andrés Verdú <pandres@dragonet.es>.
6005         * src/devices/grolbp/*: The grolbp output device.
6006         * font/devlpb/*: The font description files.
6007         * Makefile.in: Add grolpb and devlbp subdirectories.
6009         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
6010         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
6011         typographic fixes.
6013         * doc/groff.texinfo: Further checking/updating.  Adding more index
6014         entries.
6016         * NEWS: Updated.
6018         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
6020         * man/groff_font.man: Adding info about obsolete DESC keywords.
6021         * src/devices/grolj4/grolj4.man: Documenting additional DESC
6022         keywords.
6024 2000-02-26  Werner LEMBERG  <wl@gnu.org>
6026         * src/preproc/grn/grn.man: Added info about the gremlin file format
6027         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
6029 2000-02-25  Werner LEMBERG  <wl@gnu.org>
6031         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
6032         friends to be non-integer.
6034         * src/preproc/grn/grn.man: Document it.
6036         * doc/groff.texinfo: Further checking/updating.  Adding more index
6037         entries.
6039 2000-02-24  Werner LEMBERG  <wl@gnu.org>
6041         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
6042         line thicknesses to be integer multiples of this value.
6044         * src/preproc/grn/grn.man: Commenting out the -s option -- the
6045         corresponding code doesn't work (yet).
6047         * doc/groff.texinfo: Further checking/updating.  Adding more index
6048         entries.
6050 2000-02-23  Werner LEMBERG  <wl@gnu.org>
6052         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
6053         specify line thickness instead of base units.  The new default
6054         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
6055         thick lines respectively.
6057         Removed unused variable `prevval'.
6059         * src/preproc/grn/grn.man: Updated.
6061 2000-02-22  Werner LEMBERG  <wl@gnu.org>
6063         * src/preproc/grn/main.cc: Slight formatting.
6065         * src/roff/groff/groff.man: Formatting fix.
6066         * src/preproc/grn/grn.man: Ditto.
6068         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
6070         * doc/groff.texinfo: Further checking/updating.
6072 2000-02-21  Werner LEMBERG  <wl@gnu.org>
6074         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
6076         * test-groff: Added grn subdir to path.
6078         * doc/groff.texinfo: Some restructing and other small improvements.
6080         * src/roff/groff/groff.cc (help): Fixed info string.
6082 2000-02-20  Werner LEMBERG  <wl@gnu.org>
6084         * doc/meref.me: Fix description of .GS request.
6086         * src/roff/troff/troff.man: Fixing typo.
6088         Adding the `grn' preprocessor for gremlin graphic files.
6090         * src/preproc/grn/*: This is the Berkeley distribution written by
6091         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6092         Senderowicz and Werner Lemberg.
6094         * doc/grnexampl.{me,g}: A sample for grn.
6096         * Makefile.in: Added subdirectory entry for grn.
6098         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6099         called with the switch `-g'.
6101         * src/roff/groff/groff.man: Updated.
6103         * src/roff/grog/grog.{man,pl,sh}: Updated.
6105         * NEWS: Updated.
6107 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6109         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6110         parametrically polymorphic.
6112         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6113         and the alterations to xtmpfile.
6114         xtmpfile can be requested to return the filename created
6115         and asked not to unlink the temp file.  The default behaviour
6116         if parameters are absent is exactly the same as before.
6118 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6120         A new request `length' is available which returns the length of a
6121         string in a number register:
6123         * src/roff/troff/input.cc (length_macro): Implement it.
6124         * src/roff/troff/input.cc (init_input_requests): Register it.
6126 2000-02-11  Werner LEMBERG  <wl@gnu.org>
6128         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6129         of the `substring' request.
6131         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6132         request.
6134         * src/roff/troff/TODO, NEWS: Updated.
6136 2000-02-09  Werner LEMBERG  <wl@gnu.org>
6138         * src/roff/groff/groff.man: Added an example.
6140 2000-02-06  Werner LEMBERG  <wl@gnu.org>
6142         I've considerably modified the directory structure of the
6143         distribution to get a more vertical layout.  For example, the number
6144         of top level directories has been reduced from 42 to 6.
6146         As a consequence, many changes, especially to the makefiles, were
6147         necessary:
6149         * The makefile variables `top_builddir' and `top_srcdir' have been
6150         introduced.  Virtually all relative paths have been replaced with
6151         absolute ones using these two variables.
6153         * Dependencies (in the files `Makefile.dep') are no longer part of
6154         the distribution.  Instead, they are created during a `make install'
6155         in the build directory.
6157         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6158         make `top_srcdir' and `top_builddir' absolute.
6160         Some other changes:
6162         * Man pages now depend on the files `VERSION' and `REVISION'.
6164         * The added shell script `mkinstalldirs' will replace `mkdir' in
6165         almost all cases.
6167         * VERSION: Version number increased to 1.16.
6169 2000-02-04  Werner LEMBERG  <wl@gnu.org>
6171         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6173         * Makefile.in: Removed $(tmac_m) since it is no longer needed
6174         (after an update of the mm stuff).
6176         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6178 2000-02-03  Werner LEMBERG  <wl@gnu.org>
6180         The .psbb request will now also accept Mac PS images (i.e. using LF
6181         as the EOL character).
6183         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6184         (with slight modifications).
6185         * troff/input.cc (do_ps_file): Use it.
6187         * test-groff: Add grohtml and grolj4 output devices to PATH.
6189 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6191         * NEWS, MORE.STUFF: Updated.
6193 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
6195         Add the `srand' command to pic.
6197         * pic/lex.cc, pic/pic.y: Implement it.
6198         * pic/pic.man: Document it.
6199         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6201 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6203         Add a new request `.psbb'.  This does exactly what the external
6204         program psbb did.  It scans a PostScript image file for a
6205         %%BoundingBox comment and extracts the bounding box values (in
6206         PostScript units) which are then stored in the four new (read-only)
6207         number registers `llx', `lly', `urx', and `ury'.
6209         This will allow the usage of the .PSPIC macro without worrying
6210         about unsafe behaviour of groff, i.e., it will work without the
6211         `-U' switch of groff.
6213         * troff/input.cc: Implement it.
6214         * tmac/tmac.pspic: Use it.
6215         * troff/troff.man, grops/grops.man, NEWS: Document it.
6216         * psbb/*, Makefile.in: Remove it since it is no longer needed.
6218         This is bloody C code simply adapted from psbb.c!  Any improvements
6219         welcome.
6221 2000-01-29  Werner LEMBERG  <wl@gnu.org>
6223         * man/groff_font.man: Minor clarifications.
6225         * NEWS: Updated.
6227 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6229         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6231 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
6233         * man/groff_font.man: Brought up to date regarding tcommand
6234         extensions.
6235         * libgroff/font.cc: Handle everything after `--' as a comment
6236         in the font files.
6237         * devps/*: Added comment delimiter inside devps font files.
6239 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6241         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6242         \fC...\fP (which now works as expected).
6244         * troff/troff.man: Fix typo.
6246 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6248         Completed the pass_filenames implementation in troff.
6250         * libdriver/input.cc: Will read the new `F' tcommand.
6251         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6252         * troff/input.cc: Use it.
6254 2000-01-26  Werner LEMBERG  <wl@gnu.org>
6256         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
6257         font will now be updated even if an invalid font is selected.
6259 2000-01-24  Werner LEMBERG  <wl@gnu.org>
6261         * doc/homepage.ms: Updated for new tmac.arkup.
6263         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6265         * tmac/tmac.arkup: Cleanup.
6267         Added `\&' to .HTML macro to `leave vertical mode', so to say.
6269         Removed obsolete .LINK macro completely.
6271         The macros .URL, .FTP, and .MAILTO now accept a third argument which
6272         will be immediately appended to the second argument (to be used with
6273         punctuation, for example).
6275         Disabled .CDFTP macro temporarily for security reasons.
6277         * tmac/groff_markup.man: Complete revision for latest changes in
6278         tmac.arkup -- note that it does not yet format correctly with
6279         grohtml :-(
6281 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
6283         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6284         * devutf8/R.proto: Add mappings for wp, lh, rh.
6285         * devutf8/NOTES: Updated.
6287 2000-01-23  Werner LEMBERG  <wl@gnu.org>
6289         * doc/groff.texinfo: Updated version/copyright info.
6291 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
6293         Added support for two new directives in device descriptions:
6294         `pass_filenames' (to pass the input file name to the output device)
6295         and `use_charnames_in_special' (to support e.g. accented characters
6296         in the `X' request).
6298         * include/font.h, troff/charinfo.h: Declare it.
6300         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6302         * devhtml/DESC: Use it.
6304         * troff/input.cc: New function encoded_char.
6306         * troff/token.h: Add test for `specialness'.
6308 2000-01-21  Werner LEMBERG  <wl@gnu.org>
6310         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6311         mistake from the list of files to be installed.
6313 2000-01-18  Werner LEMBERG  <wl@gnu.org>
6315         * README: Added info how to apply patches.
6317 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
6319         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
6321 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6323         * troff/input.cc: Add support for troffrc-end.
6325         * tbl/main.cc: Altered to issue table-start and table-end special
6326         characters if using the html device.
6328         * devhtml/*: Modified font files to incorporate html encoding of
6329         characters.
6331         * tmac/groff_markup.man: New file documenting tmac.arkup.
6333         * tmac/troffrc-end: New file.  This is invoked after all user
6334         specified macros.  Currently used by the html device to include
6335         tmac.html.  Thus no need for users to specify -mhtml anymore.
6337         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6338         (MAN7): Add groff_markup.man.
6340         * tmac/tmac.an, tmac/tmac.html: Small html updates.
6342         * tmac/troffrc: tmac.arkup will now be called for the html device.
6344         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6345         extra device specific information about fonts.
6347         * doc/homepage.ms: New file.  It is an example how an HTML home page
6348         could look like with grohtml.
6350         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
6352 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
6354         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
6355         of Im, Re.
6357         * devutf8/NOTES: Updated.
6359 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
6361         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6362         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6363         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6364         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6365         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6366         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6367         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6368         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6369         warnings.
6371         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6373 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
6375         grolj4: Paper size will be searched case-insensitively.
6377         * include/lib.h: Add check for strcasecmp().
6378         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6379         * configure.in: Check for strcasecmp().
6381 2000-01-11  Werner LEMBERG  <wl@gnu.org>
6383         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6384         `REVISION'.
6386 2000-01-10  Werner LEMBERG  <wl@gnu.org>
6388         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6389         revision scheme.
6391         Add a new read-only register, `.Y', which contains the groff
6392         revision.
6394         * troff/input.cc (init_input_requests): Define it.
6395         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6396         * doc/groff.texinfo, troff/troff.man: Document it.
6398         * libgroff/Makefile.sub (version.cc): Add definition of
6399         `Version_string[]', consisting of `<major>.<minor>.<revision>'
6400         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6401         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6402         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6403         troff/input.cc, pfbtops/pfbtops.c: Use it.
6405 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
6407         Add a revision scheme to the groff package.
6409         * REVISION: New file.
6410         * libgroff/Makefile.sub (version.cc): Use it to define
6411         `revision_string[]'.
6412         * grops/psrm.cc: Use revision_string (converted to an unsigned
6413         integer) in constructor of resource_manager.
6415 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
6417         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6418         files.
6419         * Makefile.in (DEVDIRS): Add devutf8.
6420         * grotty/tty.cc: Include device.h.
6421         (glyph): Change type of `code' to `unsigned int'.
6422         (tty_printer): New field is_utf8.  Constructor takes device argument.
6423         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6424         (tty_printer::add_char): Change type of first arg to `unsigned int'.
6425         (tty_printer::put_char): New function.
6426         (tty_printer::end_page): Use put_char() instead of ::putchar().
6427         (make_printer): Pass device to tty_printer constructor.
6428         * nroff.sh: Determine default device by calling 'locale'.  As a
6429         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6430         Recognize UTF-8 locales.
6431         * tmac/eqnrc: Recognize utf8 like latin1.
6432         * tmac/troffrc: Device utf8 needs tmac.tty.
6434 2000-01-07  Werner LEMBERG  <wl@gnu.org>
6436         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6438 2000-01-07  Paul Eggert  <eggert@twinsun.com>
6440         Add a new predefined writeable number register, `year',
6441         which contains the current year.
6443         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6444         * tmac/tmac.s: Use it.
6445         * troff/input.cc (init_registers): Initialize it.
6447 2000-01-06  Werner LEMBERG  <wl@gnu.org>
6449         * PROBLEMS: Fixed typo.
6451 2000-01-04  Paul Eggert  <eggert@twinsun.com>
6453         * PROBLEMS: Add Y2k advice for the yr number register.
6455 2000-01-03  Paul Eggert  <eggert@twinsun.com>
6457         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6459 2000-01-02  Werner LEMBERG  <wl@gnu.org>
6461         * tmac/tmac.arkup: Slight modification of macros to provide better
6462         appearance for non-HTML formats.
6464 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
6466         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6467         does not automatically translate to malloc(n) on all OSes
6468         (e.g., SunOS) so do it explicitly.  Also, check the returned
6469         value.
6471 2000-01-01  Werner LEMBERG  <wl@gnu.org>
6473         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
6475         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6476         expects this variable
6478 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
6480         * doc/Makefile: Added instructions to create HTML and text
6481         versions of some files.
6483 1999-12-31  Werner LEMBERG  <wl@gnu.org>
6485         * Updated INSTALL.gen.
6487         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6488         better resp. correctly with non-HTML devices.
6490 Version 1.15 released
6491 =====================
6493 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6495         * NEWS, VERSION: Changed to 1.15
6497 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6499         * nroff/nroff.man: -S is safer, not safe.
6501         * groff/groff.cc (main): Use `safer', not `safe', in variable
6502         names.  This does not change the behavior.
6504         * troff/input.cc (main): Likewise.
6506         * nroff/nroff.sh: Likewise.
6508         * troff/input.cc (prepend_string): New function.
6509         (main): Prepend -msafer, so that we check macro libraries for
6510         safety.
6512         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6514 Version 1.14 released
6515 =====================
6517 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6519         * NEWS, VERSION: Changed to 1.14.
6521 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6523         * refer/refer.cc: Fixing the last fix.
6525 Version 1.13 released
6526 =====================
6528 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6530         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6531         number disappear.
6533         * NEWS: Updated.
6535         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6537         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6538         document conventions, the version number must be a real.
6540 Version 1.12.1 released
6541 =======================
6543 1999-12-22  Werner LEMBERG  <wl@gnu.org>
6545         * VERSION: Changed to 1.12.1.
6547 1999-12-22  Alan Rooks  <arooks@istar.ca>
6549         * refer/refer.cc (do_file): Slight modification to satisfy the
6550         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6551         UnixWare 7.1.
6553 1999-12-20  Werner LEMBERG  <wl@gnu.org>
6555         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6556         notices.
6558         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6559         list of unsafe requests.
6561         * pic/pic.man: Fixed a typo.
6563         * man/groff_out.man: Fixed a typo.
6565 1999-12-18  Werner LEMBERG  <wl@gnu.org>
6567         * Makefile.in: Doc fixes.
6569 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
6571         * groff/groff.cc: Missing `U' option added to getopt().
6573         * troff/troff.man: Missing `U' option added to synopsis.
6575 Version 1.12 released
6576 =====================
6578 1999-12-14  Werner LEMBERG  <wl@gnu.org>
6580         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6581         to the synopsis.
6583         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6584         with the more appropriate terms `safer' and `unsafe'.
6586         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6587         sys_nerr and sys_errlist[].
6589         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6591         * pic/pic.y, pic/pic.cc: Added check for fmod().
6593 1999-12-13  Werner LEMBERG  <wl@gnu.org>
6595         * VERSION: Changed to 1.12.
6597         Here some patches from various sources; most of them taken from
6598         the Debian distribution.
6600         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6601         tmac/Makefile.sub: New files copied directly from the NetBSD
6602         distribution.  Probably, some additional adaptation later on is
6603         necessary...
6605         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6606         of unsafe requests.
6608         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6609         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6610         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
6611         (`-S') is now the default.
6613         * README, NEWS: Updated.
6615 1999-12-09  Werner LEMBERG  <wl@gnu.org>
6617         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6619         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6621 1999-12-06  Werner LEMBERG  <wl@gnu.org>
6623         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6624         grief than relief today.  Additionally, it is against the GNU
6625         coding standards.
6627         * configure: Recreated.
6629 1999-12-05  Werner LEMBERG  <wl@gnu.org>
6631         * configure.in: Added GROFF_LIBM.
6633         * configure: Recreated.
6635         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6636         necessary.
6638         * Makefile.in: Added definition of $(LIBM).
6640         * Makefile.comm (LIBM): Removed.
6642         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6644 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
6646         * doc/Makefile: Added rule for generation pic.html.
6648         (clean): Files produced by grohtml will be removed also.
6650         * doc/pic.ms: Small fix.
6652         * tmac/tmac.html: Fixed suppression of headers.
6654 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
6656         * tmac/tmac.html: Fixing horizontal arrows.
6658         Turning off hyphenation.
6660         * tmac/tmac.an: Improved support for grohtml; better indentation,
6661         no footers/headers.
6663 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
6665         * tmac/tmac.arkup: Added CDFTP macro
6667         * tmac/tmac.html: All headers are turned off for ms, me, and mm
6668         macros.
6670         * tmac/troffrc: Some additions for HTML stuff.
6672 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
6674         * tmac/tmac.html: Small changes.
6676 1999-09-26  Werner LEMBERG  <wl@gnu.org>
6678         * doc/groff.texinfo: Minor fixes.
6680 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
6682         * devhtml/TR: Changed spacewidth to 3.
6684         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6686         * tmac/tmac.html: Moved markup macros to tmap.arkup.
6688         * tmac/tmac.arkup: New file.
6690         * grohtml/ChangeLog: New file.
6692 1999-09-16  Werner LEMBERG  <wl@gnu.org>
6694         * doc/groff.texinfo (Common Features): Added Copying chapter.
6695         Changed format to @smallbook.
6697 1999-09-15  Werner LEMBERG  <wl@gnu.org>
6699         * NEWS: Added info about groff.texinfo.
6701         * doc/groff.texinfo: Will now compile (using texi2dvi) without
6702         warning messages.
6704 1999-09-14  Werner LEMBERG  <wl@gnu.org>
6706         * groff/groff.man: More updates.
6708 1999-09-13  Werner LEMBERG  <wl@gnu.org>
6710         * doc/groff.texinfo: New file.  This manual is still very
6711         rudimentary.  It has been originally contributed by Trent
6712         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6713         additions by me.
6715         * INSTALL: Added information about the `doc' subdir
6717         * troff/troff.man: Minor fixes.
6719         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6720         reordered options.
6722         * troff/input.cc (usage): Added missing `-ffam' to usage message.
6724         * Makefile.in (dist): groff-$(version).tar.gz must be removed
6725         also, otherwise it is included itself in another call of `make
6726         dist'.
6728         * groff/groff.cc (synopsis): Removed superfluous space.
6730         * PROJECTS, PROBLEMS, NEWS: Updated.
6732         * VERSION: Updated to 1.12beta.
6734         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
6736         * README: Updated: Included documentation about CVS repository,
6737         mailing lists, and daily snapshots.
6739         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6741 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6743         * tmac/tmac.an: If the tag didn't fit into the space that the
6744         macro `TP' specifies, the rest of the tag went into the space for
6745         the next line.
6747 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
6749         * grolj4/lj4.cc: Added duplex printing (option `-d').
6751         * grolj4/grolj4.man: Document duplex printing.
6753 1999-09-12  Werner LEMBERG  <wl@gnu.org>
6755         * doc/Makefile (pic.ps): Fixed rule which caused problems with
6756         non-GNUish sed programs.
6758         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6759         definition.
6761         * configure.in (LIBS): Added `-lc'
6763         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6765         * pic/tex.cc (solid_arc): Casting M_PI to double.
6767         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6769         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6770         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6771         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6773         * groff/groff_man.man: New file.  This manual page was originally
6774         written for the Debian GNU/Linux system by Susan G. Kleinmann
6775         <sgk@debian.org>.
6777         * eqn/list.cc (list_box::compute_metrics,
6778         list_box::compute_sublist_width): Removed variable declaration to
6779         avoid shadowing warnings.
6781         * grops/psrm.cc (resource_manager::process_file): Ditto.
6783         * tfmtodit/tfmtodit.cc (main): Ditto.
6785         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6786         to avoid shadowing warnings.
6788         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6789         shadowing loop variable.
6791         * groff/groff.man, troff/troff.man: Added doc about grohtml.
6793 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
6795         New grohtml frontend to convert groff input to html.
6797         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6799         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6801         * tmac/eqnrc: Added html device.
6803         * tmac/tmac.html: New file.
6805         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6806         (troff_output::start_picture, troff_output::finish_picture),
6807         tbl/main.cc (process_input_file):
6808         Surrounded output with `graphics_start' and `graphics_end' so that
6809         the html driver can identify non-text portions.
6811         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6812         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6813         grotty/tty.ps (tty_printer::set_char): Additional parameter
6814         `name'.
6816         * include/printer.h: Class printer: New function
6817         set_char_and_width; new variables (is_char_named, is_named_set,
6818         named_command, named_char_s, named_char_n) to hold information
6819         about named characters -- needed by the html driver.
6821         * libdriver/printer.cc (printer::set_ascii_char,
6822         printer::set_special_char): Use set_char_and_width.
6824         * devhtml/*: New device files for html driver.
6826         * grohtml/*: New driver grohtml.
6828 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
6830         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6831         default strings.
6833 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
6835         * libgroff/string.cc (search): Small fix to test against NULL
6836         pointer.
6838 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
6840         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6841         \b'abc') were stacked in reverse order when processed in a
6842         diversion.
6844         * troff/node.h: Added `*last' to struct `node' to make the above
6845         fix work.
6847         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6848         The default scale for the 'f' and 't' graphics functions were 'm'
6849         rather than 'u' (i.e., no scaling).
6851 1999-09-11  Peter Miller  <peterm@jna.com.au>
6853         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6854         do_file), soelim/soelim.man: Added `-I file' option to soelim,
6855         defining include paths.
6857         * soelim/soelim.cc (include_path_append): New function.
6859 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
6861         * tbl/main.cc (process_options): Unix (at least Documenter's
6862         Workbench) tbl allows arbitrary non-alpha characters between
6863         options.
6865 1999-09-11  Paul Eggert  <eggert@twinsun.com>
6867         Y2k fixes.  Don't assume that the current year precedes 2000.
6869         * doc/meref.me: Add \n(y2, \n(y4.
6871         * tmac/doc-common (Yr): New number register.
6872         (Dd): Don't assume current year precedes 2000.
6874         * tmac/tmac.e (td): Likewise.
6875         (y2, y4): New number registers.
6877         * pic/pic.man: Update reference for pic paper to May, 1991
6878         version.
6880 1999-09-11  Werner LEMBERG  <wl@gnu.org>
6882         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6883         Removed quotation marks which prevented correct expansion of
6884         $(tmac_wrap).
6886         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6888 1999-09-10  Werner LEMBERG  <wl@gnu.org>
6890         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6891         `config.cache'.
6893         * Removed configure.old.
6895 1999-08-31  Werner LEMBERG  <wl@gnu.org>
6897         * VERSION: Updated to 1.11.1
6899 1999-05-27  Werner LEMBERG  <wl@gnu.org>
6901         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6903         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6904         added quotations around $(tmac_wrap) to avoid syntax error if
6905         variable is empty.
6907         * configure: Newly generated using autoconf 2.13.
6909         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6911 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
6913         * README, PROJECTS, NEWS, INSTALL, VERSION, 
6914         doc/Makefile. doc/pic.ms, groff/groff.man:
6915         Prepare for 1.11 release.  No code changes.
6916         Documentation for pic added (doc/pic.ms).
6918 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
6920         * Version 1.10 released.
6922 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
6924         * afmtodit/afmtodit.pl: Avoid comment on first line.
6926 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
6928         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6929         * configure.in: Call it.
6931         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6932         (distfiles): Doesn't depend on config.log or config.cache.
6934 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
6936         * grog/grog.sh: Use print "" rather than print in END rule.
6938 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
6940         * tbl/main.cc (process_data): Don't give error for excess data
6941         entries that are comments.
6943 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
6945         * tbl/main.cc (process_data): Fix case where new for-scope rules
6946         silently change meaning of code.
6948 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
6950         * troff/env.cc (hyphenate): Loop over all consecutive sequences
6951         of non-zero hyphenation codes.
6953 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
6955         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6957 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
6959         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6961 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
6963         * tmac/tmac.andoc: Make it work in compatibility mode.
6965         * refer/token.h (token_info::is_range_sep): New function.
6966         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6967         * refer/ref.cc (reference::output): More sophisticated check for
6968         multiple pages.
6970         * devps/prologue.ps (MANUAL): New procedure.
6971         * grops/ps.cc (main): New -m option.
6972         (usage): Include -m.
6973         (ps_printer::~ps_printer): Implement -m.
6975         * aclocal.m4 (GROFF_G): New macro.
6976         * configure.in: Call it.
6977         * Makefile.in (g): Provided by configure.
6979         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6981         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
6982         translations.
6984         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6985         (tmac_m, tmac_s): Deleted.
6986         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6987         tmac_s_prefix): New variables.
6988         (MDEFINES): Change accordingly.
6989         * Makefile.comm (.man.n): Use new TMAC_* variables.
6990         * configure.in (GROFF_TMAC): Call.
6991         * aclocal.m4 (GROFF_TMAC): Define.
6992         * tmac/Makefile.sub (stamp_wrap): New target.
6993         (install_data, uninstall_sub): Handle macro wrapping.
6995 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
6997         * tbl/main.cc (main): Ignore -T option.
6999 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
7001         * devlj4/generate/special.map: Add definition of \(nb.
7003         * tmac/tmac.dvi: Add definition of \(nb.
7005         * troff/dictionary.c (dictionary::dictionary): association::v gets
7006         initialized by association::association.
7008         * tmac/Makefile.sub: Avoid using temporary files when installing.
7010         * troff/env.cc (environment::set_font): Make bad font number a
7011         warning.
7013         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
7015         * Makefile.in (datadir): Use share rather than lib.
7017         * groff/groff.cc (basename): Rename to xbasename.
7019 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
7021         * Makefile (CCLIBS): Don't use.
7022         * Makefile.ccpg: Likewise.
7024         * acgroff.m4: Rename to...
7025         * aclocal.m4: Modify extensively for autoconf 2.
7026         * configure.in: Likewise.
7027         * Makefile.in: Likewise.
7029         * groff/pipeline.c (const): Declare as empty if __STDC__ not
7030         defined.
7031         (xstrsignal): Check for definition of NSIG. Conditionalize
7032         on SYS_SIGLIST_DECLARED.  Make return type const.
7034 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
7036         * troff/input.cc (interpolate_macro): Rephrase missing space
7037         warning.
7039 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
7041         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
7042         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
7043         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
7044         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
7045         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
7046         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
7047         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
7048         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
7049         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
7050         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
7051         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
7052         Fix 'for' scoping.
7054 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
7056         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
7057         string_iterator.
7058         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
7059         file.
7060         (macro_iterator::macro_iterator): Add additional argument.
7062 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
7064         * troff/div.cc (vertical_size::vertical_size): In place of integer
7065         specifying line spacing use cunits specifying post vertical
7066         space.
7067         (macro_diversion::output, top_level_diversion::output): Likewise.
7068         * troff/div.h: Change declarations accordingly.
7069         * troff/env.cc (pending_output_line): Replace ls field by post_vs
7070         field.
7071         (pending_output_line::pending_output_line,
7072         pending_output_line::output, environment::output,
7073         environment::output_line, environment::output_title,
7074         environment::hyphenate_line):  In place of
7075         integer specifying line spacing use cunits specifying post vertical
7076         space.
7077         (environment::environment): Add post_vertical_spacing and
7078         prev_post_vertical_spacing arguments.
7079         (environment::get_post_vertical_spacing): New function.
7080         (environment::total_post_vertical_spacing): New function.
7081         (environment::post_vertical_spacing): New function.
7082         (init_env_requests): Initialize pvs request and .pvs register.
7083         * troff/env.h: Change declarations.
7085 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7087         * tmac/tmac.pspic: Immediately remove the temporary file.
7089 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7091         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7092         height is specified.
7094 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7096         * tbl/table.c (struct vertical rule, class table_entry): Use int
7097         not short for start_row and end_row.
7099 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7101         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7102         functions.
7103         (diverted_space_node::reread, process_input_stack): Call
7104         trapping_blank_line() rather than blank_line().
7105         (init_input_requests): Bind "blm" to blank_line_macro().
7107         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7109 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7111         * troff/env.cc (environment::possibly_break_line): Require that
7112         width total excluding width of final space node be greater than
7113         the target text length.
7115 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7117         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7119 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7121         * troff/node.cc (charinfo_node): New class.
7122         (glyph_node, composite_node): Derive from charinfo_node.  Change
7123         member functions accordingly.
7125 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
7127         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7129 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
7131         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7133         * devps/generate/textmap (notsubset): Add.
7135         * tmac/tmac.a4: New file.
7137 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
7139         * pic/main.cc (had_parse_error): New variable.
7140         (do_picture, do_whole_file): Set had_parse_error if yyparse()
7141         returns non-zero.
7142         (main): Return 1 if had_parse_error is true.
7144 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
7146         * grolj4/lj4.cc (main): Avoid use of strtoul.
7148 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
7150         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7151         iso_8859_1 or $LESSCHARSET is latin1.
7153 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
7155         * hpftodit: New directory.
7156         * Makefile.in (CCPROGDIRS): Add hpftodit.
7157         * devlj4/generate: New directory.
7159 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
7161         * configure.in: Don't use AC_VFORK.
7162         * groff/pipeline.c (run_pipeline): Use fork() always.
7164 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
7166         * grops/ps.cc (main): Use %1 not %s in error message for -w.
7168         * Makefile.in (CCPROGDIRS): Add grolj4.
7169         (DEVDIRS): Add devlj4.
7170         * grolj4, devlj4: New directories.
7171         * tmac/troffrc: Handle lj4.
7172         * tmac/tmac.lj4: New file.
7174 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
7176         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7178 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
7180         * troff/input.cc (do_if_request): At end of second string, switch
7181         environments before getting next token.
7183 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
7185         * devps/psstrip.sed: Split rule that strips whitespace on either
7186         side of delimiters.
7188 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
7190         * troff/node.h (font_family::make_definition): Add return value to
7191         declaration.  * troff/symbol.h (symbol::operator==,
7192         symbol::operator!=): Likewise.
7194 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
7196         * groff/groff.cc (main, help, synopsis): Handle -S.
7197         (possible_command::insert_arg): New function.
7199         * tmac/tmac.safer: New file.
7200         * tmac/msafer.man: New file.
7201         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7203 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
7205         * pic/pic.h, pic/main.cc (safer_flag): New variable.
7206         * pic/pic.y (placeless_element): Avoid unsafe operations if
7207         `safer_flag' is set.
7208         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7210 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
7212         * eqn/lex.cc (get_token): Put call to add_context() in block to
7213         work around Sun C++ 4.0 bug.
7215         * include/stringclass.h (operator +): Use ?: instead of `if' to
7216         work around Sun C++ 4.0 bug.
7218 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
7220         * tbl/main.cc (process_format): Accept - as a synonym for the _
7221         key letter.
7223         * libbib/index.cc (minus_one): Don't declare as const.
7225 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
7227         * troff/input.cc (get_char_for_escape_name): Push back a newline.
7229 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
7231         * troff/input.cc (write_macro_request): New function.
7232         (init_input_requests): Bind write_macro_request to writem.
7234 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
7236         * tmac/tmac.s (@EN): Turn filling back on even if there was no
7237         equation.
7239         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7241         * tmac/tmac.s (@TS): Renamed from TS.
7242         (TS): Call LP then TS again.
7243         (cov*ab-init): Alias @TS to TS.
7245         * tmac/tmac.s: Allow QP or RS to initialize.
7247         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
7248         Move initializations of PS and LL here.
7249         (par@init): Don't initialize HY.  Avoid changing environment 0.
7250         (par*env-init): Don't all par@reset.
7252 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
7254         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7256 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
7258         * Makefile.in (MDEFINES): Add LDFLAGS.
7259         (LDFLAGS): Add definition line.
7261 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
7263         * troff/input.cc (get_optional_char): Split off error check into...
7264         (check_missing_character): New function.
7265         * troff/token.h: Declare it.
7266         * troff/env.cc (margin_character): Don't call get_optional_char.
7267         Only call tok.next() after making the node.
7269         * include/lib.h (getopt): Make 2nd argument char *const *.
7271 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
7273         * nroff/conftest.sh: Deleted.
7275 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
7277         * pic/make-dos-dist: Deleted.
7279 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
7281         * devps/psstrip.sed: Strip comments before stripping trailing
7282         white space.
7284 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
7286         * Version 1.09 released.
7288 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
7290         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7292 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
7294         * libgroff/font.cc (font::load_desc): Fix typo in error message.
7296 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
7298         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7299         about returning without a value.
7301         * troff/charinfo.h (charinfo::get_special_translation): Cast
7302         TRANSLATE_NONE to int.
7304         * refer/token.cc (lookup_token, store_token): Remove bogus loop
7305         test.  Fix test so that it works with n unsigned.
7307         * pic/pic.y (defaults_table): Fully bracket initializer.
7308         * pic/lex.cc (lookup_keyword): Likewise.
7309         * eqn/lex.cc (token_table, def_table): Likewise.
7310         * eqn/box.cc (param_table): Likewise.
7311         * troff/input.cc (warning_table): Likewise.
7312         * libgroff/font.cc (table): Likewise.
7313         * grops/ps.cc (ps_printer::special): Likewise.
7314         * grops/psrm.cc (resource_manager::process_file): Likewise.
7315         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7316         * refer/command.cc (command_table): Likewise.
7317         * addftinfo/addftinfo.cc (param_table): Likewise.
7319         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7320         about temp's being unused.
7321         (unused): New function.
7323         * groff/pipeline.cc: Declare c_fatal.
7325         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7326         uchar.
7328         * libbib/index.cc (index_search_item::load): Prevent compiler
7329         warnings about fd_closer's being unused.
7330         (unused): New function.
7332 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
7334         * troff/input.cc (copy_mode_error): Make `prefix' static.
7335         Fix typo.
7337         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7338         defined.
7339         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7340         HAVE_CC_OSFCN_H and modify accordingly.
7342         * troff/input.cc (init_charset_table): radicalex overlaps
7343         horizontally.
7345         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7346         udodo!hans@relay.NL.net).
7347         * groff/configure.in: Call it.
7349         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7350         * groff/configure.in: Call it.
7351         * include/lib.h: Conditionalize declaration of pclose.
7353         * troff/div.cc (last_page_number): New global variable.
7354         (top_level_diversion::begin_page): Exit if we just printed the
7355         last page.
7356         * troff/div.h (last_page_number): Declare it.
7357         * troff/input.cc (parse_output_page_list): Set last_page_number.
7359         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7360         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7361         tmac/tmac.X: Likewise.
7362         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7363         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7365 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
7367         * tmac/doc-ditroff (hK): Remove groff specific code which
7368         prevented page-breaks between separate manual entries.  If this is
7369         the first page, don't set the page number to 1.
7371         * acgroff.m4 (GROFF_POSIX): New macro.
7372         * configure.in: Use it.
7374         * troff/node.cc (class real_output_file,
7375         real_output_file::real_output_file,
7376         real_output_file::~real_output_file): Conditionalize use of
7377         popen/pclose on POPEN_MISSING.
7378         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7379         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7380         (pipe_source): Similarily.
7382         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7384         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7385         presence of declarations by trying to compile example with
7386         conflicting declarations.  (gcc only gives a warning for missing
7387         declarations.)
7389 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
7391         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7392         (from Ulrich Lauther).
7394 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
7396         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7398 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
7400         * indxbib/indxbib.cc (write_hash_table): Add code for case where
7401         pointers and ints have different sizes.
7403 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
7405         * tmac/tmac.s (par*env-init): Call par@reset.
7407 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
7409         * tmac/tmac.s (@IP): Switch to a new environment when diverting
7410         tag.
7411         (par*push-tag-env, par*pop-tag-env): New macros.
7413 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
7415         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7416         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
7418         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7419         comment.  Include <time.h>.
7421 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
7423         * grops/ps.cc (is_small_h, is_small_v): Deleted.
7424         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7425         lines.
7427 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
7429         * troff/input.cc (read_request): Only print a prompt if reading
7430         from the terminal.  Also clearerr on EOF if reading from the
7431         terminal.  Declare isatty.
7433 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
7435         * refer/label.y: Rename map_t to map_func and extractor_t to
7436         extractor_func.
7438 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
7440         * include/assert.h: Don't use volatile.
7441         * libgroff/assert.cc: Likewise.
7443 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
7445         * troff/input.cc (abort_request): Look at character in tok before
7446         calling get_copy().
7448 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
7450         * troff/troff.h (NO_RETURN): Deleted.
7451         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
7452         * troff/input.cc (exit_troff): Likewise
7454         * Makefile.in: Remove `Making ...' messages since GNU make now
7455         gives these. 
7457         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7459 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
7461         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7462         to constant 1 inch.
7464 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
7466         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7468 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
7470         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7471         MARK_REG if there was no left delimiter.
7473 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
7475         * pic/troff.cc (troff_output::text): Set line thickness to
7476         relative before outputting text.
7478         * tmac/tmac.e (@k): Don't zero ?T.
7479         ((z): Likewise.
7481 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
7483         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7485 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
7487         * troff/input.cc (decode_args): Warn about unquoted tabs (from
7488         Paul Eggert).
7490 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7492         * troff/input.cc (ignoring): New variable.
7493         (ignore): Set ignoring during call to do_define_macro.
7494         (do_define_macro): Clear ignoring before interpolating terminating
7495         macro.
7496         (copy_mode_error): New function.
7497         (get_char_for_escape_name, read_long_escape_name,
7498         interpolate_arg): Use copy_mode_error.
7499         (warning_table): Add WARN_IG.
7500         * troff/troff.h (WARN_IG): Declare.
7501         (WARN_TOTAL): Change accordingly.
7503         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7504         * groff/groff.cc (strsignal): Delete declaration.
7506 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7508         * troff/div.cc (page_offset): Use 'm' as default scaling.
7510 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7512         * nroff/nroff.sh: Ignore -u.
7514 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7516         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7518 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7520         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7521         drawing box.
7522         (B2): With -Tascii, leave additional vertical space before
7523         and after. Ensure that the left and right indent is restored to
7524         what it was even if the point size changes.  Don't call
7525         par@finish. Change the indent, line length and title length
7526         directly.  With -Tascii, make the width of the box 1n less.
7527         (B1): Remember 1n at the current point size.  Don't call
7528         par@reset.  Change the indent, line length and title length
7529         directly.  Ensure that the temporary indent is preserved.
7530         (par*box-mark-top): Turn off no spacing mode.
7532 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7534         * Makefile.in (dist): Use .gz suffix.
7536 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
7538         * troff/input.cc (main): Add return 0.
7539         * pic/main.cc (main): Use return instead of exit.
7540         * tbl/main.cc (main): Likewise.
7541         * eqn/main.cc (main): Likewise.
7542         * grops/ps.cc (main): Likewise.
7543         * grotty/tty.cc (main): Likewise.
7544         * groff/groff.cc (main): Likewise.
7545         * grodvi/dvi.cc (main): Likewise.
7546         * refer/refer.cc (main): Likewise.
7547         * indxbib/indxbib.cc (main): Likewise.
7548         * lkbib/lkbib.cc (main): Likewise.
7549         * soelim/soelim.cc (main): Likewise.
7550         * addftinfo/addftinfo.cc (main): Likewise.
7551         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7552         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7554         * troff/token.h (process_input_stack): Don't declare as static.
7555         * troff/input.cc: Likewise.
7557         * troff/node.c (invalidate_fontno): Make it a static member of
7558         class font_family.  Change callers.
7559         * troff/node.c: Change declaration.
7561         * tbl/main.cc (struct input_entry_format): Add explicit public
7562         specifier.
7563         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7564         struct double_hline_stuff): Likewise.
7565         * tbl/table.h (struct entry_format): Likewise.
7566         * pic/object.h (struct saved_state): Likewise.
7568         * include/stringclass.h: Add forward declarations of friend
7569         functions that are later declared as inline.  Don't include inline
7570         specifier in friend declaration.
7572         * libgroff/lib.h: Declare popen and pclose.
7573         * acgroff.m4 (GROFF_POPEN): New macro.
7574         * configure.in: Call it.
7576         * include/lib.h (PI): New constant. Undef first if necessary.
7577         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7578         * grops/ps.cc (degrees, radians): Likewise.
7579         * libgroff/font.cc (font::get_skew): Likewise.
7581         * grops/ps.cc (is_ascii): New function.
7582         (ps_output::put_string): Use is_ascii.  Use csprint rather than
7583         isprint.
7584         (ps_printer::define_encoding): Use csspace.
7585         * libgroff/strtol.c (ISASCII): New macro.
7586         (strtol): Cast arguments to is*() and tolower() to unsigned char.
7587         Use ISASCII rather than isascii.
7588         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7589         * libgroff/cset.cc: Likewise.
7590         * libdriver/input.cc: Include cset.h.
7591         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7592         than isdigit().
7594         * refer/refer.cc (main): Use %ld rather than %d for longs.
7596         * libbib/index.cc (index_search_item_iterator::get_tag): Use
7597         S_ISREG macro.
7599         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7601 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
7603         * troff/input.cc (hyphenation_code): Skip white space between
7604         char/code pairs.
7606 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
7608         * tbl/table.h (table::entry_list_tailp): New member.
7609         (table::table): Initialize it.
7610         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7611         behaviour.
7613 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
7615         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7616         with negative horizontal positions. Remove casts of glyph::hpos to
7617         int.
7618         (USHRT_MAX): Delete definition.
7619         (SHRT_MAX, SHRT_MIN): New definitions.
7620         (glyph::hpos): Change type to short.
7621         (tty_printer::end_page): Output multiple backspaces if necessary.
7622          Remove casts of glyph::hpos to int.
7623         
7624 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
7626         * tmac/tmac.s (@RT): New definition.
7628 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
7630         * refer/refer.cc (do_file): Make sure current_filename is set when
7631         filename is "-".
7633         * pic/common.cc (common_output::dot_line): Handle zero length
7634         lines.
7636 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
7638         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7639         (par@init): Initialize \n[HY].
7641 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
7643         * troff/dictionary.cc (dictionary::remove): Continue when
7644         r < j < i.
7646 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
7648         * Makefile.com (.y.cc): Avoid ending up with two versions of
7649         $(YTABH).
7651 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
7653         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7654         (\(,C): Likewise.  Also fix typo.
7656 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
7658         * lib.h: Delete extraneous semi-colon.
7660         * Add pso request: `so' from a pipe.
7661         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7662         (file_iterator::close): New function.
7663         (file_iterator::~file_iterator, file_iterator::next_file): Use
7664         file_iterator::close.
7665         (file_iterator::backtrace): Say `process' rather than `file' when
7666         the stream is popened.
7667         (pipe_source): New function.
7668         (init_input_requests): Bind ".pso" to pipe_source.
7670 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
7672         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7674         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
7675         digits in lower case.
7677 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
7679         * Version 1.08 released.
7681         * Makefile.in (dist): Insert || true after ln -s commands that
7682         might fail.
7684         * mm: Update to mm 1.16.
7686         * acgroff.m4 (GROFF_CSH_HACK): New macro.
7687         * configure.in: Call GROFF_CSH_HACK.  Substitute for
7688         SH_SCRIPT_SED_CMD.
7689         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
7690         MDEFINES.
7691         * nroff/Makefile.sub (nroff): New target.
7692         (install_data): Install nroff.
7693         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7694         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7696 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
7698         * eqn/Makefile.sub (neqn): Add chmod +x.
7700         * grog/Makefile.sub (grog): Remove spurious semi-colon.
7702 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
7704         * troff/input.cc (string_iterator::string_iterator()): Initialize
7705         lineno and count.
7707 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
7709         * troff/div.cc (macro_diversion::space,
7710         top_level_diversion::space): Don't set high_water_mark.
7711         (macro_diversion::output, top_level_diversion::output): Don't
7712         include post line space in high water mark.
7714 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
7716         * eqn/eqn.y: Don't define YYDEBUG.
7717         * pic/pic.y: Likewise.
7719 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
7721         * tmac/tmac.e ([3): Add space after comma following editors.
7722         Change double spaces to single spaces.
7723         ([4): Change double spaces to single spaces.
7725         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7726         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7727         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7728         after %!PS-Adobe- (for Newsprint).
7730         * troff/div.cc (top_level_diversion::begin_page): When
7731         before_first_page is 1, set page_number to 1.
7733 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
7735         * eqn/box.cc (box::top_level): Protect equation with \&.
7737 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
7739         * groff/groff.cc (possible_command::set_name): Delete old name.
7741         * groff/groff.cc (possible_command::~possible_command): Use
7742         a_delete.
7744         * troff/node.cc (troff_output_file::begun_page): New member.
7745         (troff_output_file::troff_output_file): Initialize it.
7746         (troff_output_file::really_begin_page): Only output V command if a
7747         page has been begun.
7749         * pic/pic.y (placeless_element): Delete argument to PRINT after
7750         use.
7752 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
7754         * Make wrapman work.
7755         * troff/div.h (class top_level_diversion): Replace
7756         first_page_begun by before_first_page (with opposite sense).
7757         * Change first_page_begun to before_first_page inverting sense.
7758         * troff/div.cc (class nl_reg): New class.
7759         (init_div_requests): Use class nl_reg for \n(nl.
7760         (top_level_diversion::begin_page): Don't call
7761         output_file::begin_page if before_first_page is 2;
7762         reset before_first_page afterwards.  If have_next_page_number is
7763         false, then always increment page_number.
7764         * tmac/tmac.an: Set traps within TH rather than at the top-level.
7765         Restore compatibility mode after loading, and then disable
7766         compatibility mode in TH.
7768 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
7770         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7771         past last line.
7772         * troff/node.h (output_file::trailer): Declare.
7773         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7774         * troff/node.cc (output_file::trailer): New function.
7775         (troff_output_file::~troff_output_file): Move most code into...
7776         (troff_output_file::trailer): New function.
7777         (class troff_output_file): Delete page_length member. Declare
7778         trailer().
7779         (troff_output_file::really_begin_page): Use current page length
7780         for final V command.
7782         * tbl/main.cc (struct options): New decimal_point_char member.
7783         (options::options): Initialize this.
7784         (process_options): Implement decimalpoint option.
7785         (process_data): Pass decimal_point_char option to table::table.
7786         * tbl/table.h (class table): New decimal_point_char member.
7787         (table::table): Add additional argument.
7788         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7789         second argument specifying decimal point character.  Use this
7790         instead of '.'.
7791         (table::table): Initialize decimal_point_char.
7792         (table::add_entry): Change call to find_dot.
7794         * troff/input.cc (get_copy, token::next): Implement \V.
7795         (interpolate_environment_variable): New function.
7797 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
7799         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7800         * pic/pic.y: Likewise.
7802         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7803         Add casts to int.
7804         * refer/ref.cc (reference::insert_field, reference::delete_field):
7805         Likewise.
7806         * troff/number.cc (parse_term): Likewise.
7808         * acgroff.m4 (GROFF_PROG_YACC): New macro.
7809         * configure.in: Use GROFF_PROG_YACC.
7811         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7812         and g++.
7813         * Makefile.in (OPTIMIZE): New define.
7814         (DEBUG): Empty by default.
7815         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7817         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7818         (GROFF_ARRAY_DELETE): Likewise.
7819         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7821         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7823         * devps/psstrip.sed: Use different delimiter on last line (so that
7824         it works with BSD 4.4 sed.)
7826 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
7828         * devps/psstrip.sed: Delete comments.
7830         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7831         optind, opterr, optarg.
7832         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7833         opterr, optarg.
7835 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
7837         * Makefile.in (check): Dummy target.
7839 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
7841         * Version 1.07 released.
7843         * Integrate mm 1.11.
7845         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7846         where start_col was meant.
7848 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
7850         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7852 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
7854         * troff/input.cc (token::next): Make \z\o'...' and similar things
7855         work.
7857         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7858         constants.
7859         (environment): Add margin_character_flags member.
7860         * env.cc (environment::environment(symbol),
7861         environment::environment(const environment *): Initialize
7862         margin_character_flags.
7863         (margin_character): Rewrite.
7864         (environment::output_line): Add a margin character if
7865         margin_character_flags is non-zero.  Turn off the
7866         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
7867         zero, use margin_character_node without copying and then set
7868         margin_character_node to 0.
7870         * devps/DESC.in: Change minimum size to 1000.
7872 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
7874         * troff/symbol.h (symbol::hash): Change return type to unsigned
7875         long.
7876         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7877         Add casts to int.
7879         * test-groff: Use -r rather than -x.
7881         * grops/psfig.diff: Include in distribution again.
7883 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
7885         * Makefile.in (dist): Use gzip.
7887 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
7889         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7890         unistd.h as well as in stdlib.h.
7891         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7892         defined; otherwise include <sys/types.h> and <unistd.h> if
7893         UNISTD_H_DECLARES_GETOPT is defined.
7895         * configure.in: use builtin(include, ... rather than include(...
7896         * configure: Regenerate with autoconf 1.3.
7898         * libdriver/print.cc (printer::adjust_arc_center): Use new
7899         algorithm suggested by Andy Fyfe.
7901         * libdriver/printer.cc (printer::adjust_arc_center): New function.
7902         * include/printer.h: Declare this.
7903         * grops/ps.cc (ps_printer::draw): Use it.
7904         * grodvi/dvi.cc (dvi_printer::draw): Use it.
7906 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
7908         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7910 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
7912         * eqn/main.cc (main): Handle "eqn -".
7914 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
7916         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7918         * mm: Integrate version 1.08.
7920         * pic/troff.cc (troff_output::finish_picture): Set
7921         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7922         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7923         if it's not defined. Check whether the register is non-zero rather
7924         than whether it's not defined.
7925         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7927         * indxbib/indxbib.cc: Move all signal handling into...
7928         * indxbib/signal.c: New file.
7929         * configure.in: Call AC_RETSIGTYPE.
7931         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7932         * configure.in: Call GROFF_STRUCT_EXCEPTION.
7933         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7935         * troff/input.cc (token::token, token::operator=): Work round SGI
7936         C++ bug.
7937         * pic/object.cc (position::position): Likewise.
7939 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
7941         * pic/pic.h: Move declaration of hypot().
7943 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
7945         * pic/pic.h: Declare hypot().
7947         * pic/pic.h: Define M_PI if necessary.
7949 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
7951         * tmac/tmac.e (re): Add alternative version that doesn't use groff
7952         `.ta T' feature.
7954         * devps/prologue.ps (RE): Handle the possibility that the old font
7955         doesn't have a FontName entry.
7957 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
7959         * tmac/tmac.e (fam): Redefine to set family in environment 2.
7960         (@C): Use @fam not fam.
7962 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
7964         * lookbib/lookbib.cc (main): Change type of start to const char *.
7965         * lkbib/lkbib.cc (main): Likewise.
7967         * eqn/lex.cc (definition::definition): Don't use member
7968         initializer syntax for members of anonymous unions.
7970         * troff/input.cc (input_stack::backtrace): Change type of to const
7971         char *.
7973 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
7975         * include/stringclass.h (class string): Declare inline friend
7976         functions as inline in class declaration.
7977         * troff/hvunits.h (class hunits, class vunits): Likewise.
7978         * include/refid.h (class reference_id): Likewise
7979         * troff/troff.h (points_to_units(units), scale(units, double)):
7980         Delete declarations.
7981         * libdriver/input.cc (get_char): Delete declaration.
7982         * include/lib.h: Change 2nd argument of getopt from const char **
7983         to char **.
7984         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7985         char **' before assigning to a `const char **'.
7986         * tbl/table.cc: Delete extra declarations of prints().
7988 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
7990         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7991         char **' before assigning to a `const char **'.
7993         * libgroff/errarg.cc (errarg::errarg): Don't use member
7994         initializer syntax for members of anonymous unions.
7996 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
7998         * mm: Integrate version 1.07.
8000 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
8002         * troff/input.c (translate2): Rename to
8003         (translate_no_transparent).
8004         (init_input_requests): Rename tr2 to trnt.
8006 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
8008         * troff/charinfo.h (class charinfo): Add transparent_translate field.
8009         (charinfo::set_translation, charinfo::set_special_translation):
8010         Add second argument that specifies value for
8011         transparent_translate.
8012         (charinfo::get_translation, charinfo::get_special_translation):
8013         Add optional second argument that specifies whether translation is
8014         being used for transparent throughput.
8015         * troff/input.cc (charinfo::set_translation,
8016         charinfo::set_special_translation): Handle second argument.
8017         (charinfo::charinfo): Initialize transparent_translate.
8018         (translate): Split main part off into
8019         (do_translate): New function.  Pass argument saying whether
8020         translation applies to transparent throughput.
8021         (translate2): New request.
8022         (init_input_requests): Bind translate2 to `tr2'.
8024 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
8026         * tbl/table.h (class table): Add `nokeep' flag.
8027         * tbl/main.cc (process_options): Handle `nokeep' option.
8028         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
8029         table::do_bottom): Don't output keep/release macro definitions or
8030         calls when `nokeep' option has been specified.
8032 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
8034         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
8036 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
8038         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
8039         block_entry::divert, alphabetic_block_entry::divert): Add extra
8040         argument giving column separation.
8041         (table::compute_widths): Pass column separation to
8042         table_entry::divert().
8043         (block_entry::do_divert): If an entry spans multiple columns and a
8044         minimumum width has been specified for each column, then set the
8045         line length to the sum of the widths (plus possibly the column
8046         separations).
8048         * troff/input.cc (set_escape_char): Don't set the escape_char
8049         until after calling has_arg().
8051 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
8053         * tbl/table.cc (table::do_top): Add missing \s0 for double box
8054         case.
8056         * tbl/table.cc (table::print_double_hline): Avoid extra new line
8057         in case where r > nrows - 1.
8059         * tbl/table.cc (BODY_HEIGHT): Deleted.
8060         (LINE_SEP): New definition.
8061         (table::print_single_hline, table::print_double_hline,
8062         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
8063         table::do_row, table::do_top): Use LINE_SEP space before a line
8064         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
8066         * tbl/table.cc (text_entry::print_contents): New function.
8067         (text_string_name, right_text_string_name): Deleted.
8068         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
8069         (simple_text_entry::do_width, numeric_text_entry::do_width,
8070         alphabetic_text_entry::do_width): Don't store the contents of the
8071         entry in a string.
8072         (left_text_entry::simple_print, right_text_entry::simple_print,
8073         center_text_entry::simple_print,
8074         alphabetic_text_entry::simple_print,
8075         numeric_text_entry::simple_print): Print the entry directly
8076         instead of using the stored string.
8078 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
8080         * devps/Makefile: Strip PostScript files.
8081         * devps/prologue: Rename to...
8082         * devps/prologue.ps.
8083         * devps/psstrip.sed: New file.
8084         * devps/download: Use .pfa rather than .ps for installed versions
8085         of fonts.
8087 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8089         * troff/env.cc (input_trap): Give a warning if the argument is out
8090         of range.
8092         * troff/env.cc (adjust): Treat negative argument as missing. Round
8093         argument > 5 down to 5.
8095         * troff/env.cc (center, right_justify): Make negative argument zero.
8097         * troff/div.cc (page_offset, vertical_position_traps): Treat
8098         invalid argument as missing.
8099         * troff/env.cc (line_spacing, line_length, title_length, indent,
8100         underline, hyphen_line_max_request, control_char,
8101         no_break_control_char, widow_control_request, adjust, input_trap,
8102         point_size): Likewise.
8103         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8104         constant_space): Likewise.
8105         * troff/input.cc (compatible, shift, warn_request,
8106         set_escape_char): Likewise.
8108         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8109         * tbl/table.cc (table::table): Likewise.
8111         * Makefile.dev (install_dev): depends on $(DEVFILES).
8113 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8115         * devX75, devX75-12, devX100, devX100-12: New directories.
8116         * Makefile.in: Add these to DEVDIRS.
8118         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8119         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8120         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8121         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8122         targets.
8123         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8124         (uninstall): New target.
8125         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8126         uninstall_prog, uninstall_dev): New targets.
8128         * troff/div.cc (return_request): Treat an invalid argument as
8129         missing.
8131 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
8133         * tmac/tmac.e ((f): Set up the environment even when there's a
8134         current diversion.  Transperently throughput a call to @N.
8135         (@N): New macro.
8137 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
8139         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8140         up to vertical resolution.
8142         * tbl/table.cc (table::do_row): Change row number after printing
8143         stuff list.
8145         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8147 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
8149         * Rename CHANGES to NEWS.
8151 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
8153         * libgroff/new.cc (operator new): Avoid calling malloc(0).
8155 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
8157         * man.ultrix: Removed.
8159 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
8161         * Makefile.comm (extraclean): Delete files whose names begin with
8162         `='.
8164         * pic/troff.cc (troff_output::text): Fix typo in implementation of
8165         aligned text.
8167 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
8169         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8170         * troff/div.cc (page_length, need_space, space_request): Treat
8171         invalid optional argument as missing.
8172         * troff/env.cc (number_lines): If the first argument is present
8173         but not a number, turn on line numbering, don't change the next
8174         line number and parse the remaining arguments.
8176         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8178 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
8180         * eqn/box.h: Change declaration accordingly.
8181         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
8182         the specified size was bad but don't give an error.  Check for
8183         overflow.
8184         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8185         * eqn/lex (do_size): Likewise.
8187 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
8189         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8190         compatible headers.
8192 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
8194         * tbl/table.cc (table::init_output): Improve error message when
8195         table won't fit on one page.
8197 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
8199         * pic/troff.cc (troff_output::start_picture): Generate line
8200         containing a horizontal motion equal to the width of the picture.
8202         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8203         using GROFF_COMMAND_PREFIX environment variable.
8205 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
8207         * mdate.sh: Use $NF rather than $(NF).
8209 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
8211         * pic/main.cc (main):  Use %1 not %c in argument to warning.
8213         * eqn/main.cc (main): Output code to check that geqn was given the
8214         correct -T option.
8216 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
8218         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8219         `ln -s ../Makefile .; make; rm -f Makefile'.
8221         * troff/hyphen: Rename to...
8222         * troff/hyphen.us:
8223         * troff/input.cc (main): Delete -H option. Don't call
8224         read_hyphen_file().
8225         * troff/env.cc: Include searchpath.h and macropath.h.
8226         (exception_dictionary): Deleted.
8227         (ht): Deleted.
8228         (read_hyphen_file): Deleted.
8229         (hyphenation_language): New struct.
8230         (class trie, class hyphen_trie): Move declarations up.
8231         (trie_node::~trie_node): Deleted.
8232         (trie::delete_trie_node): New function.
8233         (trie::do_delete): New pure virtual function.
8234         (hyphen_trie::do_delete): New function.
8235         (trie::~trie): New function.
8236         (hyphen_trie::~hyphen_trie): New function.
8237         (trie::clear): No need to chcek that tp is not 0.
8238         (current_language, language_dictionary): New variables.
8239         (hyphen_word): Give an error if no current language.  Use
8240         exceptions dictionary in current language.
8241         (hyphen_trie::read_patterns_file): Find file using macro_path.
8242         Allow comments (starting with %) in patterns file.  Don't make it
8243         a fatal error if the file can't be found.
8244         (hyphenate): Return if no current language.  Get the exceptions
8245         dictionary and the hyphenation patterns from the current language.
8246         (set_hyphenation_language): New variable.
8247         (hyphenation_patterns_file): New function.
8248         (hyphenation_language_reg): New class.
8249         (hyphenation_language_reg::get_string): New function.
8250         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8251         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
8252         register.
8253         * groff/groff.cc (main, help, synopsis): Delete -H option.
8254         * include/Makefile.sub: Don't define HYPHENFILE.
8255         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8256         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8257         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8258         hyphenation patterns.
8260 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
8262         * eqn/neqn.sh: New file.
8263         * eqn/Makefile.sub: Handle neqn.sh.
8265         * eqn/eqn.h: Declare `nroff' variable.
8266         * eqn/box.cc (param_table): Add `nroff' param.
8267         (nroff): Define it.
8268         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8269         variable.
8270         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8272         * troff/troff.h (WARN_FONT): New warning.
8273         (WARN_TOTAL): Change accordingly.
8274         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8275         (warning_table): Add WARN_FONT.
8276         * troff/node.cc (mount_font_no_translate): Pass argument to
8277         font::load_font.  If this is non-zero, give a warning.
8278         Don't give an error message when accessing a font that has already
8279         been found to be invalid.
8280         * include/font.h (font::load, font::load_font): Add additional
8281         optional argument which suppresses error message if the font is
8282         not found.
8283         * libgroff/font.cc (font::load_font): Handle additional argument.
8284         (font::load): Add additional argument. If this is non-null, set it
8285         to 1 and don't give error message.
8287         * include/printer.h (printer::end_page): Add argument giving
8288         length of page.
8289         * libdriver/input.cc (do_file): Pass this.
8290         * grops/ps.cc (ps_printer::end_page): Add argument.
8291         * grodvi/dvi.cc (dvi_printer::end_page,
8292         draw_dvi_printer::end_page): Add argument.
8293         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8294         columns_per_page members. New member nlines.
8295         (DEFAULT_LINES_PER_PAGE): Deleted.
8296         (tty_printer::tty_printer): Don't compute lines_per_page from
8297         font::paperlength. Don't compute columns_per_page from
8298         font::paperwidth.
8299         (tty_printer::add_char): Don't check horizontal position against
8300         columns_per_page. Grow glyphs vector if neccessary.
8301         (tty_printer::end_page): Add argument giving page_length in units.
8302         Discard lines past end of page.
8304 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
8306         * tmac/tmac.tty-char: Fix definition of \(/l.
8308         * tmac/tmac.X: Define \(en.
8310 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
8312         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8313         lpq, then use lp rather than lpr.
8315         * tmac/tmac.s (par@reset): Don't call `ad'.
8316         (par*env-init): Call `ad'.
8318 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
8320         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8321         date.
8323         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8324         * indxbib/indxbib.cc: Likewise.
8326 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
8328         * libgroff/putenv.c: New file.
8329         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8330         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8331         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8332         stdlib.h with AC_HAVE_HEADERS.
8334 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
8336         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8337         does not exist.
8339 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
8341         * eqn/box.cc (gsize): Make it an int.
8342         (set_gsize): Parse argument handling increment or decrement.
8343         (box::top_level): Convert gsize to a string.
8345         * troff/input.cc (exit_troff): Make buf unsigned char [].
8346         Call to make_temp_iterator casts buf to char*.
8348         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8350         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8351         * Makefile.cpg (depend.temp): Likewise.
8353         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8355         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8357 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
8359         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8361 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
8363         * Version 1.06 released.
8365         * Integrate mm 1.04.
8367 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
8369         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8371 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
8373         * afmtodit/afmtodit.pl: Add -n option that disables generation of
8374         ligatures command.
8375         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8376         afmtodit. Regenerate.
8378         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8379         @f back past the current position.
8381         * tmac/tmac.e: Change calls to @R so that comments are not part of
8382         arguments.
8384 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
8386         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8388         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8389         check that we can link a call to a function declared in <stdio.h>.
8390         (GROFF_UNISTD_H): New macro.
8391         * configure.in: Call it.
8392         * Makefile.in: Document it.
8393         * include/posix.h: New file.
8394         * troff/troff.h: Don't include <osfcn.h>
8395         * troff/input.cc: Include posix.h.
8396         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8397         osfcn.h.
8398         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8399         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8400         <fcntl.h>.
8401         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8402         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8403         * libbib/search.cc (O_RDONLY): Delete definition.
8404         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8405         Don't include <osfcn.h>.
8407         * acgroff.m4 (GROFF_TIME_T): New macro.
8408         * configure.in: Call it.
8409         * Makefile.in: Document it.
8411         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8412         * configure.in: Call it.
8413         * Makefile.in: Document -DTRADITIONAL_CPP.
8414         * include/ptable.h: Don't include generic.h.
8415         (name2): Define it.
8417         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8418         Afterwards remove [T1 and [T2.
8419         (ref*spec!0, ref*spec!2): Use T1 rather than T.
8420         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8421         (ref*add-T2): Renamed from ref*add-T.
8422         (ref*add-T1): New macro.
8424 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
8426         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8428         * libbib/index.cc: Include <fcntl.h>.
8429         (O_RDONLY): Define if necessary.
8430         (make_index_search_item, index_search_item_iterator::get_tag,
8431         index_search_item::check_files): Use O_RDONLY.
8432         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8433         (O_RDONLY): Define if necessary.
8434         (search_list::add_file): Use O_RDONLY.
8435         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8436         <sys/stat.h>.
8437         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8438         (main): Use these.
8440         * libbib/index.cc (S_ISREG): Define it if necessary.
8441         (index_search_item::load): Use S_ISREG.
8443         * include/driver.h: Include <errno.h>.
8445 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
8447         * eqn/box.cc (body_height): Increase default value to 85.
8448         (body_depth): Increase default value to 35.
8450 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
8452         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8453         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8454         protected from expansion with \E.
8456         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8458         * Makefile (Makefile): New target.
8460         * Makefile.sub (configure, distfiles): New targets.
8462         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8463         construct.
8465 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
8467         * eqn/box.cc (param_table): Add body_height and body_depth.
8469         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8471 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
8473         * psbb/Makefile.sub: Don't link with libgroff.a.
8475         * acgroff.m4 (GROFF_PUTENV): New macro.
8476         * configure.in: Call GROFF_PUTENV.
8477         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8478         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8479         is defined.
8481         * troff/env.cc (distribute_space): Rename force_forward argument
8482         to force_reverse.  Reverse the list if force_reverse is true.
8484 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
8486         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8488         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8489         height or depth to be negative.  Guard against SUP_RAISE quantity
8490         being negative.
8492 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8494         * devps/generate/textmap: Add `an' (arrowhorizex).
8495         * tmac/tmac.ps: \(an overlaps horizontally.
8496         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8498         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8499         * devps/textmap: Add arrowvertex.
8500         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8501         updownarrow delimiters.
8502         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8504         * tbl/table.cc (simple_entry::position_vertically,
8505         block_entry::position_vertically):  For a centered entry, perform
8506         the motion in two stages.
8508         * refer/refer.cc (split_punct): Don't call lookup_token if there
8509         is no token.
8511 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8513         * troff/input.cc (token::next): Delete token_node after copying
8514         token.
8516         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8517         cur_point_size.
8519         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8521         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8523 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8525         * grops/ps.cc (usage): -b option takes an argument.
8527         * devps/prologue (PLG): New procedure.
8528         * grops/ps.cc (main, usage): New -g option.
8529         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8530         length using PLG.
8532 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8534         * include/cset.h: Include <limits.h> if we have it.
8536         * libgroff/illegal.cc: New file.
8537         * include/lib.h (illegal_input_char): Use table.
8538         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8539         * pic/lex.cc (ARG1): Renumber to 14.
8540         * eqn/lex.cc (ARG1: Likewise.
8542         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8543         (eg 1.05.90) correctly.
8545 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
8547         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8548         Rename $r and $R registers to $v and $V.
8549         ($r, $R): Initialize to 0.
8550         (@v, @V): New macros.
8551         (sz): Call @v.
8552         (@M): Call @V.
8554         * troff/input.cc (main, usage): Add -R option that says not to
8555         load troffrc.
8556         * eqn/main.cc (main, usage): Rename -n to -R.
8558 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
8560         * devps/DESC.in: Leave font positions 5-9 blank.
8561         * devdvi/DESC.in: Likewise.
8563         * grog/grog.pl: Handle `.PS <file' correctly.
8565         * troff/input.cc (input_stack::push): Improve error message when
8566         input stack limit exceeded.
8568 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
8570         * refer/refer.cc (main): Fix typo in handling of `a' option.
8572         * refer/refer.cc (do_bib): In state START after a newline remain
8573         in state START.
8575         * groff/groff.sh: Deleted.
8576         * groff/Makefile.sub: Delete handling of groff.sh.
8578         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8579         to determine whether to use \X'ps:...'.
8580         * tmac/troffrc: Set 0p register to 0.
8581         * tmac/tmac.ps: Set 0p register to 1.
8583         * groff/groff.cc: Support -X option. Give warning for -TXps and
8584         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8585         * tmac/troffrc: Support -r.X=1.
8587         * pic/troff.cc (troff_output::dot): Don't test
8588         zero_length_line_flag.
8590 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
8592         * include/lib.h: Declare getopt() and friends unless
8593         STDLIB_H_DECLARES_GETOPT is defined.
8595         * doc/chars.tr: Delete.
8596         * man/groff_char.man: New file.
8598 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
8600         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8601         user has changed register format.
8603 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
8605         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
8606         `postpro' command in DESC file.  Get spooler command from `print'
8607         command in DESC file.  Execute spooler command with /bin/sh.
8609         * groff/groff.cc: Split Unix-specific parts into...
8610         * groff/pipeline.c: New file.
8612         * LICENSE: Delete.
8613         * COPYING: New file.
8614         * all files: Update copyright notices.
8616         * Rearrange files.  Redo Makefiles.  Use autoconf.
8618 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
8620         * troff/input.c (charinfo_to_node_list): Interpret character
8621         definition with escape_char of `\'.
8623 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
8625         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8626         Define INT_DIGITS as big enough for 64-bit integer.
8627         * lib/strtol.c: Don't include lib.h.
8628         * lib/lib.h: Delete ifdef __cplusplus stuff.
8630 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
8632         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
8633         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
8634         get DESC from current directory.
8636 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
8638         * tbl/main.c (main): Always reset the line number when reading
8639         from stdin.
8641         * tbl/table.c (table::print_single_hline, table::print_double_hline,
8642         table::define_bottom_macro, table::do_row, table::do_top): Round
8643         vertical spacing up to vertical resolution.
8645 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
8647         * ps/ps.h (enum resource_type): Avoid comma at end of
8648         enumerator-list.
8649         * dvi/dvi.c (class dvi_printer): Likewise.
8650         * dvi/tfmtodit.c (gf::load): Likewise.
8651         * refer/label.y (struct expression): Likewise.
8652         * refer/refer.c (class label_processing_state): Likewise.
8653         * refer/indxbib.c (do_file): Likewise.
8654         * troff/troff.c (enum warning_type): Likewise.
8655         * tbl/main.c (process_data): Likewise.
8656         * troff/charinfo.h (class charinfo):
8658 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
8660         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
8662 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
8664         * groff.c: Move to new groff subdirectory.
8665         * groff/Makefile: New file.
8666         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8668         * man/mdate.sh: Use ls -L if supported.
8670         * Consolidate all header files produced by gendef into lib/defs.h.
8671         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8672         Don't include path.h.
8673         * lib/Makefile (path.h): Don't generate.
8674         * troff/input.c: Include defs.h. Don't include config.h.
8675         * troff/Makefile (config.h): Don't generate.
8676         * refer/index.h: Don't include suffix.h.
8677         * refer/index.c: Include defs.h.
8678         * refer/indxbib.c: Include defs.h.
8679         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8680         defs.h.
8681         * refer/Makefile (suffix.h, path.h): Don't generate.
8682         * groff.c: Don't include config.h. Include defs.h.
8683         * Makefile (config.h): Don't generate.
8684         (lib/defs.h): Generate.
8685         (topclean): Remove lib/defs.h.
8687 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
8689         * lib/malloc.c, lib/getpagesize.h: Deleted.
8690         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
8691         related stuff.
8692         * lib/Makefile: Delete malloc-related stuff.
8693         * lib/new.c: Workaround COOKIE_BUG if necessary.
8695         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
8696         needed header files directly.
8697         * refer/refer.h: Omit definition of DEFAULT_INDEX.
8698         * Makefile: Include definition of DEFAULT_INDEX in path.h.
8700 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
8702         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8703         argument.
8704         * lib/font (font::load_desc, font::load): Don't split argument of
8705         unknown command.
8706         (font::handle_unknown_font_command): Change type.
8707         * ps/ps.c (ps_font::handle_unknown_font_command,
8708         handle_unknown_desc_command): Change type.
8709         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8711 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
8713         * lib/font.h (font::handle_unknown_font_command): Add file and
8714         line arguments.
8715         * lib/font.c (font::handle_unknown_font_command):
8716         * ps/ps.c (ps_font::handle_unknown_font_command):
8717         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8718         lineno arguments.  Use _with_file_and_line functions for error
8719         reporting.
8721         * lib/fontfile.c (font::unknown_desc_command_handler): New static
8722         data member.
8723         * lib/font.c (font::set_unknown_desc_command_handler): New
8724         function.
8725         (font::load_desc): For unknown commands, call
8726         unknown_desc_command_handler if not null.
8727         * lib/font.h (class font): Declare them.
8728         (FONT_COMMAND_HANDLER): New typedef.
8729         * ps/ps.c (handle_unknown_desc_command): New function.
8730         (main): Set bflag if we had a -b option. Call
8731         font::set_unknown_desc_command_handler.
8732         (broken.h): Don't include.
8733         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
8734         submake 
8735         * ps/devps/Makefile: Add `broken' command to DESC file using
8736         BROKEN_SPOOLER_FLAGS.
8738         * macros/tmac.e ([, ]): Add as synonyms for { and }.
8740         * macros/tmac.e ($p): Only exdent if \$3 > 0.
8742         * macros/tmac.e (@R, @S): New macros.
8743         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8744         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8745         Declare $H, $[0-9], .. macros with @S.
8746         Declare |0, |1, |2, |3 strings with @S.
8748         * macros/tmac.e (@S): Rename to @U.
8750         * macros/tmac.e (@z): Define @b and bp as empty instead of
8751         deleting them,
8753         * macros/tmac.e (@m): Deleted.
8754         (@h): Don't call @m.
8755         (@z): Don't set @m trap.
8757         * macros/tmac.e ($h, $f): Define |z as empty string.
8759         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8760         (@q): Likewise.
8762         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8763         removing them.
8764         ()f): Likewise for * register.
8766         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8767         argument is missing, don't change $R.  Call sr with three
8768         arguments when initializing.
8770 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
8772         * macros/tmac.e (sr): New macro.
8773         Initialize $r and $R using sr.
8775         * macros/tmac.e (,): Delete \*(#[.
8777         * troff/env.c (set_tabs): Read the tab type even if the position
8778         is bad.  Allow the position of the first tab stop to be negative.
8780 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
8782         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8783         _POSIX_VERSION.
8784         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8785         rather than -DPATHCONF_MISSING.
8786         * Makefile: Get rid of PATHCONF_MISSING.
8788         * refer/map.c: New file.
8789         * refer/index.c: Interface to mmap through map.c.  Rename map_size
8790         to map_len.
8791         * refer/Makefile: Handle map.c.
8792         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8794 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
8796         * Makefile: RANLIB should be `true' if there is no ranlib.
8797         * lib/Makefile (libgroff.a): Simplify.
8798         * driver/Makefile (libdriver.a): Simplify.
8800         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8801         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
8802         defined.
8804 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
8806         * troff/env.c (compare_ranges): Declare as extern "C".
8808         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8810         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8812 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
8814         * pic/troff.c (troff_output::text): Merge in grops_output::text,
8815         but conditionalize use of \X based on \*(.T.
8816         (grops_output::*): Deleted.
8817         * pic/output.h: Delete declaration of make_grops_output.
8818         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
8819         by default. -n sets it to 0.
8820         (usage): Corresponding changes.
8821         * groff.c (main): Don't pass -x or -p to pic.
8822         * groff.sh: Likewise.
8824         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8825         to be non-zero.
8827         * ps/devps/afmtodit: Change calculation of asc_boundary and
8828         desc_boundary.  Make these bounds inclusive.
8829         * ps/devps: Regenerate font files.
8831 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
8833         * macros/tmac.latin1: New file.
8834         * macros/tmac.tty-char: Use tmac.latin1.
8835         (tmac.tty-tr): Deleted.
8836         * macros/Makefile: Install tmac.latin1.
8837         * macros/tmac.dvi: Use tmac.latin1.
8838         * macros/troffrc: Translate \[char160] onto no-break space here.
8839         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8841 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
8843         * macros/tmac.Xps: Use `do' request.
8845         * macros/tmac.ps: Use `do' request.
8847         * macros/tmac.e (@C): Use `do' request.
8849         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8850         * macros/Makefile: Install tmac.X*.
8852         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8853         * tty/Makefile: Don't install tmac.tty*.
8854         * macros/Makefile: Install tmac.tty*.
8856         * dvi/tmac.dvi: Move to macros.
8857         * dvi/Makefile: Don't install tmac.dvi.
8858         * macros/Makefile: Install tmac.dvi.
8860         * ps/tmac.ps*: Move to macros.
8861         * ps/Makefile: Don't install tmac.ps*.
8862         * macros/Makefile: Install tmac.ps*.
8864         * eqn/box.c: Provide draw_lines parameter corresponding to -D
8865         option.
8866         * macros/eqnrc: Set draw_lines parameter based on device.
8867         * groff.c: Don't pass -D flag to eqn.
8868         * groff.sh: Likewise.
8869         * eqn/main.c: Warn about use of -D.
8871         * troff/input.c (process_startup_file): New function.
8872         (main): Call process_startup_file().
8873         * macros/troffrc: New file.
8874         * macros/Makefile: Install troffrc.
8875         * groff.c (main): Don't pass extra -m option to troff. For a 
8876         pseudo device pass the name of the pseudo device to troff using
8877         -d.
8878         * groff.sh: Likewise.
8879         * groff.c (possible_command::prepend_arg): Deleted.
8881         * troff/input.c (do_request): New function.
8882         (init_input_requests): Bind "do" to do_request.
8884         * eqn/main.c (main): Instead of loading eqnchar from device directory,
8885         load eqnrc from macro directory.
8886         * macros/eqnrc: New file.
8887         * macros/Makefile: Install eqnrc.
8888         * ps/devps/eqnchar: Deleted.
8889         * ps/devps/Makefile: Don't install eqnchar.
8890         * dvi/devdvi/eqnchar: Deleted.
8891         * dvi/devdvi/Makefile: Don't install eqnchar.
8892         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8893         variable optM.
8895         * lib/device.[ch]: New files.
8896         * lib/font.h (font::set_device_name, font::get_device_name):
8897         Deleted.
8898         * lib/fontfile.c: Use device.h.
8899         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8900         * troff/input.c: Delete definition of `device'.
8901         (main): Don't initialize device.
8902         * troff/troff.h: Include device.h rather than declaring device.
8903         * troff/Makefile: No need to handle DEVICE.
8904         * driver/input.c: Include device.h. Don't use
8905         font::{set,get}_device_name.
8906         * groff.c, Makefile: Rename device.h to config.h.
8907         * groff.c: Use library device variable.
8908         * eqn/main.c: Use library device variable.
8909         * eqn/Makefile: No need to handle DEVICE.
8911         * lib/searchpath.[ch]: New files.
8912         * lib/Makefile: Handle searchpath.[ch].
8913         * troff/input.c (open_file, init_dirs): Deleted.
8914         (macro_dirs): Deleted.
8915         (open_mac_file, macro_source): Use class search_path.
8916         (add_string, struct string_list): Move definition.
8917         (main): Change -M option to use macro_path. Delete call to
8918         init_dirs().
8919         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8920         Rewrite to use class search_path.
8921         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8922         * lib/Makefile: fontfile.c depends on searchpath.h.
8923         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8924         MACROPATH.
8925         * lib/macropath.[ch]: New files.
8926         * troff/Makefile: No need to handle MACROPATH.
8928         * troff/input.c: Delete DUMP code.
8929         * lib/fontfile.c, lib/font.h: Delete
8930         font::forget_command_line_font_dirs.
8932         * troff/input.c (push_token): New function.
8933         (handle_first_page_transition): Use push_token().
8934         (process_input_stack): Change handling of a space at the beginning
8935         of the line.
8937 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
8939         * troff/input.c (font_dirs): Delete unused variable.
8941         * eqn/lex.c (do_set): Correct error messages.
8943 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
8945         * troff/input.c (do_define_string): Allow the string name to be
8946         followed immediately by a tab.
8947         (define_character): Likewise.
8949 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
8951         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8952         be negative.
8954         * troff/input.c (input_iterator::is_file): New virtual function.
8955         (file_iterator::is_file): New function.
8956         (input_stack::end_file): New function.
8957         (input_stack::next_file): Handle the situation where there is no
8958         file on the input stack correctly.  Avoid making two passes over
8959         the input stack.
8960         (next_file): Make the filename optional; in this case call
8961         input_stack::end_file().
8963 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
8965         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8966         produce a real _ charater when the current font is CW and _
8967         otherwise.
8969         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8970         expression to work around gcc 2.2 bug.
8972 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
8974         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8976         * troff/env.c (environment::add_padding): New function.
8977         (environment::add_char): Use add_padding().
8978         (environment::space): Likewise.
8979         (environment::wrap_up_field): Add some padding if there is none
8980         and there's no current tab.
8981         * troff/env.h: Declare environment::add_padding.
8983 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
8985         * pic/pic.y: undef fmod and rand before declaring them.
8987 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
8989         * troff/input.c (main): If the DESC file specifies a font name of
8990         0, then leave the corresponding font position empty.
8992         * nroff.sh: New file.
8993         * Makefile (install.nobin): Install nroff.sh.
8995         * tty/devlatin1/R.proto: Add ao as synonym for de.
8996         * tty/tmac.tty-char: Define ao as o.
8998         * tty/dev{ascii,latin1}/R.proto: Add aq.
8999         * tty/tmac.tty-char: Delete definition of aq.
9001 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
9003         * troff/input.c (init_charset_table): Don't translate 0240.
9004         * ps/tmac.ps: Translate char160 to space.
9005         * dvi/tmac.dvi: Likewise.
9006         * tty/tmac.tty: Likewise.
9008 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
9010         * dvi/tmac.dvi: Add support for all Latin-1 characters.
9012         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
9013         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
9014         \(oe, \(r?, \(r!.
9016         * tty/tmac.tty-char: Add \(ah.
9018         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
9019         No need to define \(FM and \(!/. Conditionalize all character
9020         definitions.
9022         * ps/devps/lgreekmap: Add +h, +f, +p.
9024         * ps/tmac.psnew: New file.
9025         * ps/Makefile: Install tmac.psnew.
9027         * troff/input.c (charinfo_to_node_list): Don't ever interpret
9028         character definitions in compatible mode.
9030         * troff/input.c (remove_character): New function.
9031         (init_input_requests): Bind remove_character to "rchar".
9033         * ps/tmac.psold: New file.
9034         * ps/Makefile: Install tmac.psold.
9035         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
9036         characters into tmac.psold.  Make these definitions unconditional.
9038         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
9040         * ps/tmac.ps: Don't define \('c and \('C.
9042         * ps/devps/textmap: Move Greek characters to...
9043         * ps/devps/symbolchars:
9045 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
9047         * ps/devps/text.enc: Add quotesingle.
9048         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
9049         * tty/tmac.tty-char: Likewise.
9050         * dvi/devdvi/texmi.map: Add +h, +f, +p.
9051         * dvi/devdvi/texi.map: Add Fn.
9052         * dvi/devdvi/msam.map: Add lz.
9053         * dvi/tmac.dvi: Handle Bq, bq, aq.
9055         * pic/lex.c (get_token): Recognize 'th.
9056         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
9058 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
9060         * ps/devps/textmap: Move di, mu, +- to...
9061         * ps/devps/symbolchars:
9063         * macros/tmac.s (@XS): Don't call par@reset or fi.
9064         (XA): Call LP. Turn off adjustment. Reduce line length.
9066         * macros/tmac.s: Initially alias XS to LP.
9067         (XS): Rename to @XS.
9068         (cov*ab-init): Alias XS to @XS.
9070 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
9072         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
9073         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
9074         (token::is_size, token::changes_env): Deleted.
9075         * troff/number.c (parse_term): No need to process \s explicitly.
9076         Call tok.next() only after scale indicator has been processed.
9077         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
9078         \f etc explicitly.
9079         (token::next): Handle \s, \f, \S, \H immediately rather than
9080         returning them as tokens.
9081         (token::operator==, token::description, token::add_to_node_list,
9082         token::process): Remove handling of deleted tokens.
9084         * troff/env.c (environment::add_char): When adding padding
9085         indicator character, call start_line() if necessary.
9087 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9089         * ps/devps/afmtodit: Don't output 0 kerns.
9091         * ps/devps/afmtodit: Remove directory from name of encoding in
9092         font description file.
9094         * ps/devps/afmtodit: Improve error messages.
9096         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9098         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9099         * ps/devps/FontMakefile: Deleted.
9100         * ps/devps/afmname: New file.
9102         * ps/devps/symbol.sed: New file.
9103         * ps/devps/symbol.diff: Deleted.
9104         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9105         Generate zapfdr.afm from zapfd.afm.
9107         * tty/tmac.tty (tty-char): Prefix definition with ".
9109         * macros/tmac.an (TP): Don't start a diversion if one has already
9110         been started.
9112         * tty/tmac.tty-char: Add Latin-1 characters.
9114         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9116 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9118         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9119         Move declaration of struct horizontal_span.
9121         * tbl/table.c (table::table): Initialize span_list.
9122         (table::~table): Delete span_list.
9124         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9126         * ps/devps/Makefile: Avoid dependency on GNU make.
9128         * ps/tmac.ps: Check that character does not already exist before
9129         defining it.
9131         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9132         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9133         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9134         files.
9136         * tty/tmac.tty-char: New file.
9137         * tty/Makefile: Install tmac.tty-char.
9138         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9139         tmac.tty-char.
9141         * tty/tmac.tty: Fix definition of \(34.
9143         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9144         bracket-drawing characters onto |. Add *o.
9146         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9147         only if current_field.
9149         * troff/dictionary.c (dictionary::lookup): Free old_table after
9150         rehashing. 
9152 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
9154         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9155         whose glyphs are identical to glyphs of some Roman character.
9157         * tty/devlatin1/R.proto (bu): Deleted.
9158         * tty/devascii/R.proto (bu): Deleted.
9159         * tty/tmac.tty: Add definition of \(bu.
9161         * eqn/main.c (do_file): Pass FILE as argument.
9162         (main): Automatically load eqnchar.  New options -F and -n.
9163         Pass do_file an opened FILE.
9164         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9165         No need to include font.h.
9166         * groff.sh: Likewise.  Don't need to use - for standard input.
9167         Prefix files with -- if first file starts with -.
9169         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9171         * troff/env.c (environment::possibly_break_line): Don't set line
9172         to 0 across call to output_line().  Don't call output_line() until
9173         after discarding nodes after break.
9175 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
9177         * request.h (macro::empty): Declare it.
9178         * input.c (macro::empty): New method.
9179         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
9180         macro is empty.
9182 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
9184         * troff/env.c (environment::start_field): Decrement space_total
9185         when a space is frozen.
9187 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
9189         * macros/tmac.an (R): Delete macro.
9191         * troff/input.c (get_copy, token::next): Support \# (like \" but
9192         newline is ignored).
9194         * troff/input.c (token::next): Fix error message in 'Y' case.
9196 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
9198         * eqn/delim.c (define_extensible_string): Recognize any prefix of
9199         a delimiter name.
9201 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
9203         * c++test.c: Include <osfcn.h>.
9205         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9206         <errno.h> doesn't.
9208 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
9210         * tbl/table.c (table::divide_span): Don't count column separation
9211         if expand was specified.
9213         * tbl/main.c (process_format): Don't ignore width specs in
9214         continued format.  Give warning for changing equal widths or
9215         column separation in continued format.
9216         (process_data): Set column separation, minimum width, equal
9217         columns at end of table.
9219 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
9221         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9222         node::add_discretionary_hyphen): Use soft_hyphen_char.
9223         (set_soft_hyphen_char): New function.
9224         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
9226         * Makefile (c++tested): Give more helpful message if test fails.
9228 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
9230         * troff/input.c (init_charset_table): Translate 0240 to
9231         an unbreakable space.
9233         * troff/token.h (token::hyphen_indicator): New function.
9234         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9235         translation.
9236         * troff/input.c (translate): Allow translation to \%.
9237         * troff/node.c (node::add_char): Handle
9238         TRANSLATE_HYPHEN_INDICATOR.     
9239         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9241         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9242         for \(hy.
9244         * tty/devlatin1/R.proto: \(hy and - should print as 055.
9246 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
9248         * groff.c (run_commands): If the last command gets a SIGPIPE send
9249         a SIGPIPE to all children than haven't yet terminated.  When
9250         command terminates, set pid field to -1.
9252 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
9254         * groff.c (main): Pass an appropriate -filename option to gxditview.
9256 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
9258         * Makefile.bd (install): Remove existing program before copying.
9260         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9261         programs which have Unix counterparts to be installed with
9262         user-specified prefix.
9264         * troff/input.c (exit_troff): Don't check if exit_started.
9265         (exit_request): Don't call exit_troff if exit_started.
9267         * Makefile.bd (install.mm): Rename to install.dwbmm.
9269 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
9271         * driver/input.c (do_file): Add missing break for '#' case.
9273 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
9275         * troff/input.c (input_stack::clear):  Clear past any boundaries and
9276         then add the boundaries back.
9278         * troff/input.c (exit_troff): Return immediately if already
9279         exiting.
9281         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
9282         end macro.
9283         (pg*end-page): If the text has ended and there are no more
9284         footnotes or keeps, exit.
9286         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9288         * troff/input.c (init_charset_table): Make \(rq transparent by
9289         default.
9291         * macros/tmac.an: Define lq and rq strings.
9293         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9295 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
9297         * troff/env.c (environment::final_break): New function.
9298         (environment::newline): Set prev_line_interrupted to 2 if
9299         exit_started.
9300         * troff/env.h: Declare environment::final_break.
9301         * troff/input.c (exit_troff): Call environment::final_break()
9302         instead of environment::do_break().
9304         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9305         doesn't already exist.
9306         * macros/man.local: New file.
9307         * macros/tmac.an: Load man.local.
9308         * macros/man.ultrix: New file.
9310 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
9312         * troff/input.c (exit_groff): Rename to...
9313         (exit_troff): New function.
9315         * troff/div.c (exit_started, done_end_macro,
9316         seen_last_page_ejector): New global variables.
9317         (began_page_in_end_macro): New static variable.
9318         (exit_flag): Deleted.
9319         (top_level_diversion::top_level_diversion): Initialize
9320         last_page_count.
9321         (top_level_diversion): More elaborate test for whether
9322         cleanup_and_exit() should be called.
9323         Set began_page_in_end_macro if the end macro isn't yet finished.
9324         * troff/div.h (top_level_diversion::last_page_count): New data
9325         member.
9326         (top_level_diversion::set_last_page): New function.
9327         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9328         * troff/env.c (do_break): Zero prev_line_interrupted.
9329         * troff/input.c (exit_flag): Delete declaration.
9330         (LAST_PAGE_EJECTOR): New magic cookie.
9331         (token::next): Handle LAST_PAGE_EJECTOR.
9332         (exit_groff): Set exit_started and done_end_macro instead of
9333         exit_flag.  Call top_level_diversion::set_last_page.  Push a
9334         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
9335         another ejection after setting seen_last_page_ejector.
9337 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
9339         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9341         * macros/tmac.e (TH): Make sure there's room for the initial
9342         header.
9344         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9345         Set FVS in points rather than units.
9347 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
9349         * troff/div.c (top_level_diversion::add_trap): Don't consider the
9350         position of empty slots.
9352 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
9354         * ps/devps/S: Fix height and depth of parenrightex.
9355         * ps/devps/symbol.diff: Regenerate.
9357 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
9359         * tmac.e (u): Do underlining as in -mgs.
9361 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
9363         * tty/tty.c (tty_printer::end_page): If overstriking is
9364         suppressed, still turn overstruck horizontal and vertical lines
9365         into +.
9367         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9368         2.1.
9370         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9372 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
9374         * Version 1.05 released.
9376 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
9378         * tty/tty.c: Instead of keeping an array of glyphs and then
9379         sorting it, keep a ordered linked list of glyphs for each line.
9381         * driver/driver.h: Include stddef.h.
9383         * tty/tty.c (compare_glyph):
9384         * refer/refer.c (rcompare):
9385         * troff/env.c (compare_ranges): Arguments of qsort comparison
9386         function should be const void *.
9388         * troff/number.c (parse_term):
9389         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9390         switch statement.
9392         * refer/label.y (consider_authors): Don't access variables
9393         constructed under a condition outside that condition: put braces
9394         round for statement containing declaration; redeclare use of same
9395         variable later.
9397         * pic/pic.y (text_expr): Delete production that allows
9398         parenthesised text_expr.
9399         (expr): Allow a conditional_expr to appear in parentheses.
9400         (conditional_expr): Rename to any_expr.
9402         * mm: Install new version 1.01 from jh.
9404         * lib/font.c (font::get_width): Cache scaled widths.
9405         (font::font): Initialize widths_cache.
9406         (font::~font): Destroy widths_cache.
9407         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9409 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
9411         * c++test.c, c++test.ref: New files.
9412         * Makefile: Check that the C++ compiler works.
9414         * ps/tmac.pspic (PSPIC): Do a break.
9416         * ps/tmac.ps: Move definition of PSPIC into...
9417         * ps/tmac.pspic: New file.
9418         (PSPIC): Draw box around picture, but make it invisible to grops.
9419         * ps/tmac.ps: Load tmac.pspic.
9420         * ps/Makefile: Install tmac.pspic.
9422 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
9424         * lib/font.c (scale_round): If n is negative,
9425         subtract .5 before truncating floating point result.
9427         * lib/fontfile.c: Include <errno.h>.
9429 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
9431         * driver/input.c (get_char): Inline. Don't update current_lineno.
9432         Change callers to up date current_lineno if necessary.
9433         Use get_char() instead of getc(current_file).
9435 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
9437         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9439 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
9441         * tty/tty.c (tmac.tty): Define \(rg as (R).
9443 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
9445         * lib/lib.h: New define a_delete.
9446         * Use a_delete instead of delete when deleting an array of objects
9447         without destructors.
9449         * lib/lib.h: Rename adelete to ad_delete.
9450         * Change uses of adelete.
9452 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
9454         * eqn/eqn.y: Include lib.h.
9456         * troff/node.c (grow_font_table): Delete old_font_table.
9458         * mm: Install new version from jh.
9460 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
9462         * tbl/table.h (format_type): Make global instead of local to class
9463         entry_format.  Prefix enumerators with FORMAT_.
9464         * tbl/table.c, tbl/main.c: Corresponding changes.
9465         * refer/token.h (token_type): Make global.  Prefix enumerators
9466         with TOKEN_.
9467         * refer/token.[ch]: Corresponding changes.
9468         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9470         * troff/div.c (node::set_vertical_size): Don't name argument.
9472 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
9474         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9475         * lib/lib.h: Define adelete accordingly.
9476         * pic/object.c (graphic_object::graphic_object):
9477         * tbl/main.c (format::~format):
9478         * tbl/table.c (table::~table):
9479         * refer/ref.c (reference::~reference, reference::merge,
9480         reference::insert_field, reference::delete_field): Use adelete.
9482         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9483         * refer/token.h:
9484         * tbl/table.h: Corresponding changes.
9486         * common.c (common_output::dashed_arc, common_output::dotted_arc):
9487         Ensure total_angle is positive.
9489 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9491         * refer/ref.c (reference::merge, reference::insert_field,
9492         reference::delete_field): Avoid delete[0].
9494         * refer/token.c (init_special_chars): Move calls to cmupper
9495         outside calls to init_two_char_letter to work around bug in gcc
9496         2.0.
9498 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9500         * lib/new.c (operator new): Use __builtin_new for g++.
9502         * pic/object.c (graphic_object::~graphic_object):  Don't use
9503         delete [] on 0.
9505         * pic/object.c (output::compute_scale): Initialize max_width and
9506         max_height.
9508 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9510         * troff/input.c (write_request): Call fflush.
9512         * troff/node.h (class composite_node): Move declaration to node.c
9513         * troff/input.c (charinfo_to_node): Rename to ...
9514         (charinfo_to_node_list): Return node list rather than composite
9515         node.
9516         * troff/node.c (make_composite_node): New function.
9517         (make_node, add_char): Call make_composite_node instead of
9518         charinfo_to_node.
9519         (class composite_node): Add a tfont * member.  Delete font_size
9520         member.
9521         (composite_node::composite_node, composite_node::copy,
9522         composite_node::size): Corresponding changes.
9523         (composite_node::tprint): Provide constant spacing, emboldening
9524         and track kerning as specified in tfont.
9525         (composite_node::width): Change width calculation accordingly.
9526         * troff/env.h (environment::composite): New member.
9527         (environment::is_composite, environment::set_composite): New
9528         functions.
9529         * troff/env.c (environment::environment): Initialize composite.
9530         * troff/input.c (charinfo_to_node): Call
9531         environment::set_composite.
9532         * troff/node.c (make_composite_node, make_glyph_node): Use the
9533         plain version of the tfont if the environment is composite.
9535         * troff/node.c (font_info::get_space_width): Additional argument
9536         giving space_size.  Handle constant space correctly. Scale by
9537         space_size unless constant spaced.
9538         (env_sentence_space_width): New function.
9539         * troff/node.h: Declare it.
9540         * troff/env.h (environment::get_space_size,
9541         environment::get_sentence_space_size,
9542         environment::get_narrow_space_width,
9543         environment::get_half_narrow_space_width): Make inline.
9544         (environment::get_space_width): Make inline.  Just call
9545         env_space_width.
9546         * troff/env.c: Delete definitions for funtions made inline.
9547         (environment::space_newline, environment::space): Use
9548         env_sentence_space_width(). Don't scale by space_size.
9549         * troff/node.h: Move declarations of env*space_width() functions
9550         into env.h.
9552 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
9554         * macros/tmac.s (PS): Don't try to set negative indent.
9556 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
9558         * pic/pic.y: Fix min function.
9560 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
9562         * man/mdate.sh: Clear LANGUAGE.
9564 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
9566         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9567         * pic/lex.c: New COMMAND keyword.
9568         * pic/pic.y (print_args, print_arg): New rules.
9569         (placeless_element): Use print_args for PRINT.
9570         New COMMAND element.
9572 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
9574         * troff/input.c (terminal): Handle missing argument correctly.
9576         * pic/pic.y (text_expr): New rule.
9578         * pic/pic.y: Implement := operator.
9580 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
9582         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9583         mdoc.
9585 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
9587         * ps/devps/dingbatsrmap: Include this in the distribution.
9589         * macros/tmac.doc: Replace with new version from 2nd Networking
9590         Release. Fix loading of doc-* files.
9591         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9592         * macros/tmac.doc.old: New file.  Apply fixes that had been
9593         applied to old tmac.doc.
9594         * macros/tmac.andoc: Check that we're running under groff.
9595         * macros/Makefile: Rework.
9597 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
9599         * tbl/table.h (format_type): 
9600         * refer/token.h (token_type): If NESTED_TYPES is defined, use
9601         typedef to make these types visible at file scope.
9602         * Makefile: Add NESTED_TYPES configuration option.
9604         * troff/div.c (mark): At the top level use the value of
9605         nl_reg_contents rather than the current vertical position.
9607 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
9609         * tty/tty.c: Implement \D for horizontal or vertical lines.
9610         (tty_printer::set_char): Use vec_used+2 as serial number.
9611         Don't allow size of vector to exceed USHRT_MAX-2.
9612         Split off part into...
9613         (tty_printer::add_char): New function.
9614         (tty_printer::draw): New function.
9615         (compare_glyph): Handle equal serial numbers.
9616         (tty_printer::end_page): Handle overstruck characters from \D.
9617         (main, usage): Implement -d option.
9619 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
9621         * tbl/main.c (process_format):
9622         * eqn/text.c (split_text):
9623         * troff/input.c (token::next): Use inner block for declarations
9624         with initializers in switch statement.
9626 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
9628         * pic/common.c (common_output::dash_line): Cope with zero-length
9629         lines.
9631 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
9633         * Version 1.04 released.
9635 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
9637         * macros/tmac.an (TH): Define a macro an-init to define variables
9638         based on command line arguments.
9639         (an-header): Call it.
9641 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
9643         * Makefile (install.mm): Rename to install.dwbmm.
9645         * Makefile: Integrate mm.
9646         * mm: New directory.
9648 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
9650         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9651         <sys/types.h>.
9653         * pic/troff.c (troff_output::simple_spline,
9654         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9655         shadowing parameter.
9657         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9659         * lib/ptable.h: Add explicit casts when converting from unsigned
9660         long to unsigned.
9662         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9663         * dvi/devdvi/Makefile: Install SA, SB.
9665         * refer/indxbib.c: Add declaration of mktemp.
9667         * refer/lookbib.c: Add declaration of isatty.
9669 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
9671         * pic/lex.c (interpolate_macro_with_args):  While collecting
9672         arguments, keep track of whether we're in a string.
9674 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
9676         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9677         down with \v, so as to avoid problems with top of page trap
9678         setting no space mode.
9680 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
9682         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9684 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
9686         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9687         Improve error message.
9689 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
9691         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9692         printf("%03o");
9694 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
9696         * groff.c (possible_command::execp): Always use _exit() after a
9697         failed exec.
9699         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9700         NO_SYS_WAIT_H   configuration options.
9701         * groff.c: Use these options.  Use POSIX-style macros to extract
9702         fields from the status returned by wait().
9704 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
9706         * tbl/table.c (table::compute_separation_factor): Allow the
9707         separation factor to drop to 0.
9709 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
9711         * refer/search.c: Include <errno.h>.
9713 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
9715         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9717         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9718         C++. 
9720         * pic/lex.c (input_stack::bol): Move definition out of class body.
9722         * pic/main.c: On MSDOS munge argv[0].
9724         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9726         * lib/ptable.c (hash_string): Use unsigned long rather than
9727         unsigned.
9728         (next_ptable_size): Use unsigned rather than int.  Give an error
9729         message if we've hit the largest table size.
9730         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
9731         table size.
9733         * pic/object.h (object_spec): Make flags unsigned long.  Declare
9734         flags as const unisgned long rather than as enums.
9736         * pic/output.c: Deleted.
9738         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9740         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9741         Add additional argument.
9742         (line_entry::note_double_vrule_on_{left,right}): Set value of
9743         douvle_vrule_on_{right,left} flag according to argument.
9744         (simple_line_entry::simple_print,
9745         simple_line_entry::double_line_print): If adjacent to double vrule
9746         on a corner extend rather than shorten the rule by half the double
9747         vrule sep.
9749         * troff/number.c (parse_term): In checking for overflow, handle the
9750         case where the current horizontal position is negative.
9752 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
9754         * pic/object.c (draw_arrow): Check for object having zero length.
9756 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
9758         * eqn/main.c (do_file): Split off inline equation handling into...
9759         (inline_equation): New function.  Search for starting delimiter
9760         using...
9761         (delim_search): New function. Don't recognize a delimiter that
9762         occurs in the name of an escape sequence, number register, string
9763         etc.
9765 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
9767         * eqn/delim.c (delim_box::compute_metrics): Don't call
9768         define_extensible_string if left is 0.
9769         (delim_box::output):  Don't print the left delimiter if left is 0.
9770         (delim_box::debug_print): Check for left == 0 before calling printf.
9772 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
9774         * troff/Makefile (majorminor.c): Include only digits in
9775         minor_version.
9777 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
9779         * refer/dirnamemax.c: new file.
9780         * refer/genlimits.c: Deleted.
9781         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9782         Don't check path length.
9783         * refer/Makefile: Add dir_name_max.o; delete genlimits.
9784         * Makefile: Add PATHCONF_MISSING option.
9786         * refer/indxbib.c (get_cwd): New function.
9787         (main): Use get_cwd().
9788         * lib/getcwd.c: New file.
9789         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9790         GETCWD in SUBFLAGS.
9791         * lib/Makefile: Compile getcwd.o.
9793         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9794         userdict.
9796         * refer/indxbib.c (main): Check success of mktemp.
9798         * lib/tmpfile.c: New file.
9799         * lib/Makefile: Add tmpfile.c.
9800         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9801         * ps/ps.h: Delete declaration of mktemp().
9802         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9803         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9804         * driver/driver.h: No need now to include errno.h.
9806         * everywhere: Set errno to 0 before calling fopen().
9808         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9809         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9810         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9812 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
9814         * troff/env.h (translate_space_to_dummy): Declare it.
9815         * troff/env.c (environment::space_newline, environment::space):
9816         If translate_space_to_dummy is set then make the width of spaces 0.
9817         * troff/input.c (translate): If the second character of a
9818         translation is a space, translate to unbreakable space.  If the
9819         first character is a space, set or clear translate_space_to_dummy
9820         according to whether the second character is \&.  Weird!
9822 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
9824         * groff.c (run_commands): Don't use non-zero exit code because a
9825         command gets SIGPIPE.
9827         * groff.c, groff.sh: Use -mXps with -TXps.
9829         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9830         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9831         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9832         (ps_printer::special): New specials invis and endinvis.
9833         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9834         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
9835         (ps_printer::end_page): Check that invis_count == 0.
9836         (ps_printer::invis_count): New member.
9837         (ps_printer::ps_printer): Initialize invis_count to 0.
9839         * troff/env.c (environment::hyphenate_line): Hyphenation
9840         indicator at beginning of word inhibits splitting after -, \(em
9841         etc.
9843         * pic/pic.y (element): Allow another element to follow } without
9844         any intervening separator.
9846 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
9848         * pic/lex.c (get_delimited): Allow tabs before delimiter.
9850 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
9852         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
9853         declaration of wait() in header files.
9854         * Makefile: Get rid of -DHAVE_UNION_WAIT.
9856         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9858         * lib/lib.h: Declare return type of strerror as char *.
9860         * man/Makefile: Add g flag to sed substitutions.
9861         * Makefile (shgroff, bindist): Likewise.
9863 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
9865         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9866         * ps/devps/prologue (PBEGIN): Define showpage after pushing
9867         userdict.
9869 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
9871         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9872         userdict.
9874 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
9876         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9877         group.
9879 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
9881         * troff/input.c (define_number_reg):  If currently undefined,
9882         don't define it if the argument is an invalid expression.
9884         * Makefile: Ignore return value of `if' commands without `else'
9885         parts.
9887         * Makefile: Split up CPPDEFINES into a series of separate
9888         configuration options.
9890         * troff/input.c (init_registers): Use time_t instead of long
9891         unless LONG_FOR_TIME_T is defined.  Use returned result rather
9892         than passing pointer.
9893         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9895         * lib/Makefile (fontpath.h): Use gendef.
9897 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
9899         * troff/input.c (input_iterator::shift): Delete argument name.
9900         * troff/node.c (suppress_output_file::really_begin_page,
9901         suppress_output_file::really_transparent_char, node::ascii_print,
9902         node::tprint): Delete names of unused arguments.
9904 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
9906         * refer/label.y (string):  Pass $4 to command_error.
9908 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
9910         * Version 1.03 released.
9912 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
9914         * Makefile: Pass definition of SHELL in SUBFLAGS.
9916         * gendef: New file.
9917         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9918         ps/Makefile: Use gendef to construct header files that are
9919         constructed from the Makefile.
9921         * macros/Makefile: make all should build stripped version of tmac.e.
9923         * refer/Makefile (clean): Remove y.output.
9925 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
9927         * ps/pfbtops.c (main): Add -v option which prints out a version
9928         number.
9929         * ps/Makefile (pfbtops): Link with libgroff.a.
9931 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
9933         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9934         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9936         * refer/lkbib.c (main): Always terminate reference with blank
9937         line.
9938         * refer/lookbib.c (main): Likewise.
9940         * refer/linear.c (file_buffer::load): Check that the file is not a
9941         binary file.
9943         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9944         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9945         Delete second inclusion of <sys/param.h>.
9947 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
9949         * troff/token.h (token::special): Deleted.
9951         * tbl/main.c (process_format): Rework so that opt->tab_char is
9952         recognized only when appropriate.
9954         * ps/Makefile (clean): Remove pfbtops.
9956 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
9958         * lib/font.c (text_file::next): Don't return if we have got a
9959         blank line.
9961 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
9963         * refer/refer.c (store_reference): Get hash code from old_table[i]
9964         when rehashing the table.
9966 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
9968         * eqn/box.c (box::top_level): Save size and prev size using \R and
9969         restore it afterwards. Set the size to the size at the beginning
9970         of the line.
9971         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9972         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9974         * refer/Makefile (limits.h): Use ./genlimits.
9976 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
9978         * refer/index.c: Delete declarations of stat() and fstat().
9980 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
9982         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9984 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
9986         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9988 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
9990         * troff/input.c (token::get_char): Handle \e.
9992         * refer/linear.c: Delete declarations of fstat() and stat().
9994 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
9996         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9997         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9999 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
10001         * troff/input.c (do_define_macro): Improve error handling for end
10002         of file while defining macro.
10004 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
10006         * eqn/box.h: Fix declaration of set_gsize.
10007         * eqn/box.c (set_gsize): Make argument const char *.
10008         (gsize): Declare as char *.
10009         * eqn/main.c (main): Don't convert gsize to int.
10010         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
10012         * Version 1.02 released.
10014 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
10016         * macros/tmac.andoc: New file.
10017         * macros/Makefile: Install tmac.andoc.
10019         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
10020         operator new and delete on OP_DELETE_BROKEN not being defined.
10021         * Makefile: Mention OP_DELETE_BROKEN.
10023 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
10025         * Makefile (bindist): Pass SUBFLAGS.
10027 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
10029         * Makefile, groff.c: Pass definitions to groff.c via device.h.
10031         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
10032         parameter.
10034         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
10036         * ps/ps.h, ps/psrm.c: Make comment_table and
10037         header_comment_table local to resource_manager::process_file.
10039         * groff.sh: With -TXps pass -printCommand option to gxditview.
10041         * groff.c (possible_command::print): Implement using
10042         append_arg_to_string.
10044         * xditview: Merge in new implementation with own ChangeLog.
10046 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
10048         * groff.c (main): Implement PRINT_OPTION.
10049         (append_arg_to_string): New command.
10050         (device_table): Set PRINT_OPTION flag for Xps.
10052 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
10054         * troff/groff.h: Rename to troff.h.
10056         * pic/lex.c (lookup_keyword, docmp): New functions.
10057         (get_token): Use new lookup_keyword.
10058         Don't include key.h.
10059         * pic/key.[ch], pic/pic.gperf: Deleted.
10060         * pic/Makefile: Remove gperf stuff.
10062         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
10063         into output.h.
10064         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
10066         * troff/Makefile, troff/node.c: Move definition of
10067         STORE_WIDTH into node.c.
10069         * etc/grog.pl, etc/grog.sh: Support -mdoc.
10071 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
10073         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
10074         dvi/devdvi/texb.map: Add lq and rq.
10075         dvi/devdvi: Regenerate fonts.
10076         * ps/devps/textmap: Add lq and rq.
10077         * ps/devps: Regenerate fonts.
10078         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
10079         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
10081         * pic/object.c (position_rectangle): When checking radius
10082         cope with possiblity that width or height is negative.
10083         (box_object::box_object): Have separate xrad and yrad with
10084         signs matching signs of dim components.
10085         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10086         (box_object::print): With rounded boxes use absolute values
10087         for dim and rad arguments.
10089         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10090         in fontpath.h.
10092         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10094         * various files: Add explicit destructors to keep Saber CC +d
10095         happy.
10097 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10099         * eqn/box.c (box::top_level): Restore fonts correctly after
10100         font changes in line containing inline equation.  Also
10101         restore previous font as well as current font.
10102         * eqn/pbox.h: Define necessary string and register names.
10104         * troff/input.c (token::next): Case 'R' calls do_register.
10105         (do_register): New function.
10107 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10109         * groff.c, groff.sh: Support Xps device.  Allow each device
10110         to have a pseudo_name and a real_name.
10112         * groff.c (run_commands): Don't print `Broken pipe' messages.
10114         * ps/pfbtops.c: New file.
10115         * ps/Makefile: Add pfbtops.
10117         * troff/number.c (parse_term): Improved error message.
10119 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10121         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10123         * Makefile: Integrate refer.
10124         * refer: New directory.
10125         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10126         man/lkbib.man: New files.
10127         * man/Makefile: Support refer man pages.
10129         * lib/lib.h: Declare is_prime.
10130         * lib/prime.c: New file.
10132         * troff/input.c (macro_source): New function.
10133         (init_input_requests): Bind "mso" to macro_source.
10135         * troff/env.c (environment::possibly_break_line): Maintain
10136         pointer to pointer to node to be split in ndp so as to avoid
10137         using address of freed node.
10139         * troff/env.c (environment::hyphenate_line): Maintain pointer to
10140         pointer to first node to be hyphenated in startp so as to
10141         avoid using address of freed node.
10143         * troff/env.c (class trie, class hyphen_trie): Make the
10144         elements of the trie be of type char not unsigned char.
10145         Declare arguments to be const char* instead of unsigned char *.
10146         
10147         * troff/env.c (hyphenate): Initialize hbuf[0].
10149         * troff/input.c (set_string): Declare p to be char * and cast
10150         *p to unsigned char when necessary.
10152         * troff/input.c (do_define_macro): Declare s to be const
10153         char*. Cast element to unisgned char when necessary, Declare
10154         d to be an int.  Handle EOF better.
10156         * troff/Makefile, troff/input.c: Different scheme for passing
10157         definitions of MACROPATH, HYPHENFILE and DEVICE.
10159 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
10161         * tty/devascii/R.proto: Delete entry for em.
10162         * tty/devlatin1/R.proto: Likewise.
10164 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
10166         * troff/input.c (translate): Stop when we get a space. Treat eof
10167         like newline.
10169         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10171 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
10173         * tbl/main.c (process_format): A font name following a `f'
10174         modifier that starts with a digit can be only one character long.
10175         Also deal with EOF on the second character of the font name.
10177 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
10179         * troff/input.c (token::next): Turn \~ into an
10180         unbreakable_space_node.
10181         * troff/node.c (unbreakable_space_node): New class.
10182         * troff/node.h: Declare it.
10184 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
10186         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
10187         it's >= 0, before outputting it as a single byte.
10189 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
10191         * lib/font.c: Make font_char_metric::code an int.
10192         (font::get_code): Change return type to int.
10193         (font::load): Allow code to be arbitrary integer.
10194         * lib/font.h (font::get_code): Change return type to int.
10195         (font::number_to_index): Change argument type to int.
10196         * troff/input.c (token::next):  In case 'N', allow any value.
10197         Store value in token::val.
10198         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10199         (token::get_char, token::add_to_node_list, token::process): Get
10200         number from val.
10201         (charinfo::set_number): Change argument to int.
10202         (charinfo::get_number):  Require that NUMBERED flag be set.
10203         (get_charinfo_by_number): Store numbered characters not between 0
10204         and 255 in a dictionary.
10205         * troff/charinfo.h (get_charinfo_by_number): Change argument type
10206         to int.
10207         (charinfo::number): Change type to int.
10208         (charinfo::set_number): Change type of set_number to int.
10209         * troff/node.c (troff_output_file::put_char_width,
10210         troff_output_file::put_char): Test whether character is numbered
10211         using charinfo::numbered().
10212         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10213         values of num.
10214         * lib/nametoindex.c: New implementation to cope with arbitrary
10215         number characters.
10217         * troff/input.c (token::operator==): Test val for
10218         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10219         TOKEN_SIZE.
10221         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10222         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
10224 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
10226         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
10227         variable.
10229         * all Makefiles: rm targets of cp and >.
10231         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10232         it.
10234         * eqn/lex.c (def_table): Add dollar.
10236 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
10238         * troff/input.c (do_width): Push back newline before closing delim
10239         like do_bracket.
10241 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
10243         * groff.c (possible_command::prepend_arg): New function.
10244         (main): Prepend device -m option.
10245         * groff.sh: Put device -m options before command-line options.
10247 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
10249         * macros/tmac.an (IP): Quote argument to TP.
10251         * ps/ps.c (main): New option -b, which sets...
10252         (broken_flags): New variable.
10253         (ps_printer::~ps_printer): Incorporate the setup section in the
10254         prolog if (broken_flags & NO_SETUP_SECTION).
10255         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10256         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10257         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10258         ps_printer::print_needed_font_comment,
10259         ps_printer::print_supplied_font_comment,
10260         ps_printer::print_include_font_comments,
10261         ps_printer::lookup_doc_font, ps_printer::download_fonts,
10262         ps_printer::read_download_file, read_document_fonts, add_font,
10263         skip_line, parse_fonts_arg, document_font::document_font,
10264         document_font::~document_font, document_font::download,
10265         ps_output::include_file):  Deleted.
10266         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10267         rather than %!PS-Adobe-2.0.  Make calls to
10268         resource_manager::need_font for each font that we used. Replace
10269         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10270         print_supplied_font_comment, print_needed_font_comment by call to
10271         resource_manager::print_header_comments. Output %%Orientation
10272         comment. Output %%Requirements: numcopies comment if ncopies > 1.
10273         Don't output the prolog directly.  Instead call
10274         resource_manager::output_prolog.  Only define #copies when ncopies
10275         > 1.  Delete calls to print_include_font_comments  and
10276         download_fonts.  Add call to resource_manager::document_setup.
10277         (ps_printer::do_file): Call resource_manager::import_file instead
10278         of including it ourselves.
10279         (ps_printer::do_import): Likewise.  Also don't call
10280         merge_import_fonts. Push userdict on the dictionary stack before
10281         and pop it afterwards.
10282         Move declaration of ps_output into ps.h.
10283         * ps/psrm.c: New file implementing resource_manager class.
10284         * ps/ps.h: New file declaring ps_output and resource_manager
10285         classes.
10286         * ps/devps/zapfdr.ps:
10287         * ps/devps/symbolsl.ps:
10288         * ps/devps/prologue:  Use 3.0 conventions.
10289         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10290         Add default definition of BROKEN_SPOOLER_FLAGS.
10291         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
10292         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10294 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
10296         * etc/grog.pl: New file.
10297         * Makefile (GROG): New variable.
10298         Add GROG to SUBFLAGS.
10299         * etc/Makefile (GROG): New variable.
10300         (install.nobin): Install $(GROG) rather than grog.sh.
10302 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
10304         * eqn/special.c (special_box::compute_metrics): Make the input and
10305         output strings the same.  Get the new height and depth from the
10306         predefined height and depth registers.  Also make subscript kern
10307         and skew available.
10308         (special_box::compute_subscript_kern, special_box::compute_skew):
10309         New functions.
10311         * eqn/box.c (pointer_box::compute_skew,
10312         simple_box::compute_metrics, box::top_level)
10313         * eqn/text.c (prime_box::compute_metrics,
10314         prime_box::comput_subscript_kern)
10315         * eqn/limit.c (limit_box::compute_metrics):
10316         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10317         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10318         negative numbers in `nr' requests with a leading 0.
10320 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
10322         * eqn/special.c: New file.
10323         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
10324         Add new rule for simple.
10325         * eqn/lex.c (token_table): Add SPECIAL.
10326         * eqn/box.h: Declare make_special_box.
10327         * eqn/Makefile: Add special.[co].
10329 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
10331         * ps/devps/prologue: Possibly set packing to true while defining.
10332         Create grops dictionary here.  Initialize local variables before
10333         defining procedures.
10334         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10335         the dictionary stack. Set strokeadjust and overprint to false if
10336         the relevant operators are defined.
10337         (PEND): New procedure.
10338         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10339         prologue.  Do everything else in the setup section.
10340         (ps_printer::do_import): Just call PBEGIN and PEND around the
10341         picture. Also push userdict before, and pop it afterwards.
10343 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
10345         * troff/node.c (bracket_node::tprint): Brackets were being printed
10346         1m too low.
10348         * macros/tmac.an (SH, SS): Set fill mode.
10350 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
10352         * troff/div.c (top_level_diversion::begin_page): Set
10353         high_water_mark to 0.
10355 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
10357         * man/mdate.sh: New file.
10358         * man/mdate.c: Deleted.
10359         * man/Makefile: Use mdate.sh instead of mdate.
10360         (mdate): Deleted.
10362         * eqn/lex.c (do_gsize): Supply missing argument to error message.
10364 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
10366         * man/mdate.c: New file.
10367         * man/*.man: Replace modification date by @MDATE@.
10368         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10369         (mdate): New target.
10371         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10372         Remove illegal input characters.
10374 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
10376         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10378 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
10380         * troff/div.c (begin_page): Change behaviour when
10381         !first_page_begun and !break_flag.
10383         * troff/input.c (do_name_test): Return 0 if argument is empty.
10385         * troff/input.c (read_long_escape_name): Require closing ] to be
10386         at same input level as opening [.
10388         * troff/input.c (read_increment_and_escape_name): New function.
10389         (get_copy, process_input_stack): Use this for \n.
10391 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
10393         * troff/div.c (top_level_diversion::begin_page): Ignore the
10394         current value of page_number if !first_page_begun.
10396         * groff.c (main): Fix declaration of buf.
10398         * troff/input.c (do_name_test): New function.
10399         (token::next): Implement \A.
10400         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10401         (token::description, token::add_to_node_list, token::process):
10402         Handle TOKEN_ESCAPE.
10403         * troff/token.h: New token TOKEN_ESCAPE.
10405 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
10407         * pic/main.c (do_picture): Allow space before and after filename
10408         following `<'.  Check that the filename is not empty.
10410 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
10412         * Version 1.01 released. 
10414         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10416         * dvi/tmac.dvi: ftr HR to H.
10418         * macros/tmac.e: Round up computation of $r.
10420         * xditview/tmac.X:  Don't give up completely in compatibility mode.
10421         Use \n(.s instead of \n[.s].
10423         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10424         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10425         Add u to factors inside \s[...]. Rename frac to dvi-frac.
10426         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10427         short names in the char definitions.
10429         * ps/tmac.ps: Don't give up completely in compatibility mode.
10430         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10431         quote in front of \n(.s. Add u to factors inside \s[...].
10433 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
10435         * tty/tmac.tty: Call the nroff request.
10437         * macros/tmac.e ((x, )x):  Better definitions that work properly
10438         in a diversion.
10439         (@0, @1): Helper macros for (x.
10441         * macros/tmac.e ($s, hl): Use \l rather than \D.
10443         * tty/tmac.tty: Make it work better in compatibility mode.
10444         (pchar): Rename to tty-char.
10446         * macros/tmac.e (@E): New macro.
10447         (r, i, b, rb, bi): Use @E.
10449         * macros/tmac.e (@F): Don't use (;...) syntax.
10451         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
10452         it was modified for groff.
10454         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10456         * macros/tmac.e (<., .>): Removed.
10457         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10459         * macros/tmac.e: Remove check that groff is being used.
10461         * macros/tmac.e (@C): Change families only if using groff; turn
10462         compatibility mode off while changing familes. Save compatibility
10463         mode before changing families and restore it afterwards.
10465         * macros/tmac.e (@h): Remove test for offset + line length.
10467         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
10468         (lo, th, ac): Define to call @S instead of using als.
10470         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10471         the ratio of the vertical spacing to the point size in units
10472         expressed as a percentage.  Use these instead of $10r and $10R,
10473         Delete $10r and $10R.
10475         * lib/font.c (font::load): In default computation of space_width,
10476         divide by sizescale.  Use scale_round.
10478         * macros/tmac.an (TP): Don't call `nf'.
10479         (an-do-tag): Don't call `fi'.
10481 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
10483         * troff/input.c (process_input_stack): Handle the case where
10484         spaces at the beginning of an input line are followed by a
10485         newline.
10487 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10489         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10490         * groff.sh: Use pic -x with the dvi device.
10492         * dvi/devdvi/FontMakefile (H): Don't use -s.
10494         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10495         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10496         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10497         in FONTS.
10499 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10501         * ps/psfig.diff: New file.
10502         * ps/tmac.psfig: New file.
10504 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10506         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10507         (]-): Don't call ref*do-tl.
10509         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10511         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10512         (fn@do-FS): Rename to fn*do-FS.
10514         * troff/input.c (transparent_translate): New function.
10515         (process_input_stack): Apply transparent_translate before calling
10516         diversion::transparent_output(unsigned char).
10518 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10520         * troff/input.c (do_define_macro): Define the macro before calling
10521         skip_line.
10523         * xditview/Makefile: Add DEVICES variable.  Change install target
10524         to use this.
10526 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10528         * groff.c (run_commands): Handle the possibility that there are
10529         child processes other than those forked by us.
10531 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10533         * lib/string.c (string::append): New function.
10534         * lib/stringclass.h: Declare it.
10536 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
10538         * eqn/main.c (main): New option -N which sets
10539         no_newline_in_delim_flag. 
10540         (do_file): If no_newline_in_delim_flag is set don't allow newlines
10541         in delimiters.
10542         * groff.c (main): Pass -N on to eqn.
10543         (help, synopsis): Mention -N.
10544         * groff.sh: Implement -N.
10546 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
10548         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10549         (]-): Call ref*do-tl if ref*need-tl is non-zero.
10550         (XP): Allow as initializer.
10552 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
10554         * troff/env.c (environment::wrap_up_field): If field_spaces are
10555         non-zero and we have a current_tab, subtract padding from
10556         tab_distance.  If this makes tab_distance <= 0, use the next tab
10557         stop instead.  If there isn't any next tab or it's a left tab,
10558         wrap up the current tab.
10559         (environment::start_field): Initialize tab_precedes_field.
10560         (environment::wrap_up_tab): If there's a current field, update
10561         pre_field_width, field_distance and tab_precedes_field.
10562         * troff/env.h (environment::tab_precedes_field): New member.
10564 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
10566         * ps/ps.c (ps_printer::do_file): New function.
10567         (ps_printer::special): Bind to `file' special.
10568         (ps_printer::do_exec): Set ndefined_styles to 0.
10570 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
10572         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10573         Avoid stripping first character from the start of unrecognized
10574         escapes.  Use lex_error instead of error to report errors.
10575         * eqn/lex.c (get_token): Rework handling of escapes.
10576         (lex_error): Move declaration into...
10577         * eqn/eqn.h.
10579         * xditview/xditview.c (main): Make -page option work.
10581         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10583 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
10585         * macros/tmac.s (B2): Correct size of box.
10587 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
10589         * macros/tmac.s (B2): Postpone drawing the box until in the
10590         top-level diversion.
10592         * tty/tmac.tty: Add font translations for C, CR, CW.
10594         * groff.c (synopsis, help): Document -i.
10595         * groff.sh: Implement -i.
10597         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10598         Simplify the construction of SN.
10600         * troff/number.c (parse_term): Give `|' a higher precedence.
10601         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10602         accordingly.
10604         * macros/tmac.s (B2): Use par@finish instead of par@reset.
10606 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
10608         * lib/string.c (string::move): New function.
10609         * lib/stringclass.h: Declare it.
10611 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
10613         * troff/env.c (distribute_space): Add optional argument
10614         `force_forward'.
10615         (environment::wrap_up_field): Call distribute_space with
10616         `force_forward' argument of 1.
10618 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
10620         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10621         Inline it.  Move reallocation into...
10622         (string::grow1): New function.
10623         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10624         dependencies to include library header files.
10625         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10627 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
10629         * macros/tmac.s (@NH): Use the same number registers than -ms does
10630         for the heading level counters.  Use the same string that -ms does
10631         for the number for this heading.
10633 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
10635         * lib/new.c (operator new): Cast result of malloc to char *.
10637         * troff/input.c (spring_trap, lookup_request): Add assert that nm
10638         is not null.
10640 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
10642         * groff.c (main): Support -i.
10644 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
10646         * pic/pic.h: Include <osfcn.h>.
10648         * ps/ps.c: Add declaration of mktemp.
10650         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10651         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10652         argument as union wait *.
10653         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10654         argument to union wait *.
10656 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
10658         * tty/tmac.tty: Add definition of \(co.
10660         * pic/object.c (make_arc): Only increase radius when radius
10661         strictly less than d.
10662         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10663         more than once.
10665         * troff/env.c (environment::environment(symbol),
10666         environment::environment(const environment *)):  Initialize
10667         input_trap_count.
10669 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
10671         * tbl/main.c (main): Add exit(0).
10673         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10675         * pic/main.c (main):
10676         * eqn/main.c (main):
10677         * tbl/main.c (main):
10678         * etc/soelim.c (main):
10679         * driver/printer.c (printer::~printer):
10680         * troff/node.c (real_output_file::~real_output_file,
10681         real_output_file::flush):  Check for errors on stdout.
10683         * most files: Add 1991 to copyright notice.
10685         * macros/tmac.s: Don't test \n(.x and \n(.y.
10687         * troff/input.c (token::next): Rename `escape_char' label to
10688         `handle_escape_char' and `normal_char' label to
10689         `handle_normal_char'.
10691 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
10693         * groff.c (main, synopsis, help): Support -a option.
10694         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
10695         to trflags while parsing options.
10697 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
10699         * troff/number.c (parse_term): With `m', `M' and `n' scale
10700         indicators, convert scale factor to hunits before scaling.
10702 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
10704         * lib/font.c (scale_round): Better test for overflow when n is
10705         negative.
10707 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
10709         * tbl/main.c (process_format): Add second argument of type
10710         options*. Change callers.  Allow opt->tab_char as well as '\t'
10711         between format items.
10713 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
10715         * macros/tmac.an (PD): With no arguments, make sure register PD is
10716         at least \n[.V].
10717         (TH): Call PD with no argument, instead of setting register PD
10718         directly.
10720 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
10722         * Version 1.00 released.
10724 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
10726         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10728         * dvi/devdvi/DESC: Mount CW instead of CR.
10730         * dvi/tmac.dvi: Add definition of \(tm.
10732         * dvi/devdvi/texsy.map: Add lh, and rh.
10733         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10734         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10736         * dvi/devdvi/FontMakefile: Generate H from cmss10.
10737         * dvi/devdvi/Makefile: Install H.
10738         * dvi/devdvi/H: New file.
10740 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
10742         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10743         be 0.
10745 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
10747         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10749         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10751         * macros/tmac.s (@EN): Handle the case where the equation is empty
10752         but the label is not.
10754 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
10756         * troff/groff.h: New warning category WARN_SPACE.
10757         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10758         WARN_SPACE to warning_table.
10759         (interpolate_macro): Give a warning of type WARN_SPACE if the name
10760         is longer than two characters and is not defined, but the first
10761         two characters do make a defined name.
10763         * PROBLEMS: New file.
10765         * CHANGES: New file.
10766         * README-0.6, README-1.00: Deleted.
10768         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10769         * xditview/devX75/Makefile: Make devX75-12.
10770         * xditview/devX100/Makefile: Make devX100-12.
10772         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10773         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10775 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
10777         * README-0.7: Rename to README-1.00.
10779         * macros/tmac.pic: New file.
10780         * macros/Makefile (install.nobin): Install tmac.pic.
10782 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
10784         * troff/env.c (hyphen_word): Correct the test for whether the
10785         token is a hyphen.  Reset npos to 0.
10787         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10789 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
10791         * macros/tmac.s (ds*common-end): Call par*reset.
10792         (PE): Likewise.
10793         (par@reset-indent): Deleted.
10795         * macros/tmac.s (@IP): Divert the label.
10797 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
10799         * xditview/draw.c (setGC): Use a line width of .1m rather than
10800         .04m by default; round rather than truncate value.
10802         * tbl/table.c (class empty_entry): New class.
10803         (empty_entry::empty_entry, empty_entry::line_type): New functions.
10804         (table::add_entry): Represent empty entries by objects of type
10805         empty_entry.
10806         (table_entry::line_type): Return -1.
10807         (table::determine_row_type): Ignore entries with line_type 0.
10808         Treat type -1 as non-lines.
10810 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
10812         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10813         macros/tmac.s: Rename \(-d to \(Sd.
10815 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
10817         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10818         * xditview/libXdvi/DviChar.c: Likewise.
10819         * dvi/devdvi/texsy.map: Add `<<', `>>'.
10821 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
10823         * troff/div.c (top_level_diversion::begin_page): Call
10824         init_output() if the_output is 0.
10826 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
10828         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10829         ESCAPE_c.
10830         (get_copy): Turn \E into ESCAPE_E.
10831         (token::process, asciify): Handle ESCAPE_E.
10833         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10834         (RD): New macro.
10835         (DS): Implement `.DS R'.
10837 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
10839         * macros/tmac.s (FS): New macro.
10841         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10843         * macros/tmac.s (cov*tl-init): Remove after first execution
10844         instead of aliasing to @nop.  Call top of page macro explicitly
10845         instead of setting trap; call @init first.  Set pg@top as top of
10846         page macro.
10847         (cov*auto-init): Deleted.  Set cov*tl-init instead of
10848         cov*auto-init as top of page trap. 
10849         (TL, LP): Do a break instead of calling cov*tl-init.
10850         (cov*print): With RP format but no TL, alias FS and FE to @FS and
10851         @FE; in this case also give a warning and always start another
10852         page. No need to set pg@top here.
10853         (cov*tl-init): Rename to cov*first-page-init.
10855         * macros/tmac.s (RP): Do `.pn 0'.
10856         (cov*tl-init): With RP format don't do `.pn 0'.
10858         * macros/tmac.s (pg@cs-top): Set no space mode.
10860         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10861         (cov*ab-init): Alias TL, AU and AI to these.
10863 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
10865         * macros/tmac.s (@EQ): Move the space before the equation into @EN
10866         (@EN): Do nothing unless \n[dl] is > 0.
10868 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
10870         * pic/object.c (ellipse_object::radius): New function.
10872         * VERSION: Change version to 0.7.
10874         * tbl/table.c (block_entry::do_divert): Declare return type as
10875         void.
10876         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10878 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
10880         * troff/column.c: New file.
10881         * troff/Makefile: Corresponding changes.
10883         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
10884         Friend of vunits.
10886         * troff/div.c (top_level_diversion::space): If the space causes
10887         the first-page transition and springs a trap, truncate the space
10888         to 0.
10890 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
10892         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10893         the document.
10895         * pic/troff.c (troff_output::line_thickness,
10896         troff_output::set_fill): Do a horizontal motion to compensate for
10897         the width of the \D escape sequence.
10899 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
10901         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10902         (not X75).
10904         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
10905         to printf.
10907         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10908         Supply empty definition.
10909         (text_entry::simple_print, simple_text_entry::simple_print):
10910         Delete declarations.
10911         (table::add_entry): Represent empty entries by objects of type
10912         `simple_entry'.
10914 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
10916         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10918         * tbl/table.c (left_text_entry::add_tab): New function.
10920         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
10921         initialize like LP.
10923 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
10925         * troff/env.c (environment::start_field): Give an error message if
10926         there is no next tab.
10928 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
10930         * troff/env.c (hyphenate): Skip initial elements with zero
10931         hyphenation code.
10933         * macros/tmac.s (par@init): Keep VS in points rather than units.
10935 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
10937         * pic/main.c (main): Implement `-c' option.
10938         * pic/output.h: Declare make_tpic_output().
10939         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10940         protected.
10941         (tpic_output): New class.
10942         (tpic_output::tpic_output, tpic_output::set_pen_size,
10943         tpic_output::command, make_tpic_output): New functions.
10945 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
10947         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
10948         if they're not already defined.
10949         * tbl/table.c (init_output): Don't test \n(.g.
10951         * troff/input.c (do_if_request): Delete `g' condition. Recognize
10952         `d', `r' and `c' conditions even in compatibility mode.
10954 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
10956         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10957         box.
10959 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
10961         * troff/env.h (environment::prev_line_interrupted): New member.
10962         (environment::get_prev_line_interrupted): New function.
10963         * troff/env.c (environment::newline): Set prev_line_interrupted.
10964         (environment::environment(const environment *),
10965         environment::environment(symbol)): Initialize
10966         prev_line_interrupted.
10967         * troff/input.c (process_input_stack): Don't give special
10968         treatment to space and newline at the beginning of the line if the
10969         previous line was interrupted.
10971 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
10973         * eqn/eqn.y: Disallow PRIME by itself.
10974         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10975         PRIME.
10976         (def_table): Remove definition of '.  Define prime to be `.
10978         * eqn/eqn.y: Split off part of rule `script' into a new rule
10979         `nonsup'.
10981 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
10983         * macros/tmac.s ({, }): New string aliases.
10985 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
10987         * README-0.7: New file.
10989 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
10991         * macros/tmac.s: New file.
10992         * man/groff_ms.man: New file.
10993         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10994         * Makefile.bd: Similarily.
10995         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10996         definition of TMAC_S.
10997         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10998         * macros/TODO: New file.
11000 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
11002         * troff/env.c (right_justify): New function.
11003         (init_env_requests): Bind this to request "rj".
11004         (center_lines): Set right_justify_lines to 0. If we get a bad
11005         integer, center 1 line.
11006         (environment::environment(symbol), environment::environment(const
11007         environment *)): Initialize right_justify_lines.
11008         (environment::get_right_justify_lines): New function.
11009         (init_env_requests): Bind this to number_register ".rj".
11011         * troff/env.c (environment::choose_breakpoint): Implement
11012         hyphenation_margin and hyphenation_space.
11013         (environment::get_hyphenation_space,
11014         environment::get_hyphenation_margin): New functions.
11015         (init_env_requests): Bind these to .hys and .hym.
11016         (hyphenation_space_request, hyphenation_margin_request): New
11017         functions
11018         (init_env_requests): Bind these to hys and hym.
11019         (environment::environment(symbol), environment::environment(const
11020         environment *)): Initialize hyphenation_margin and
11021         hyphenation_space.
11022         * troff/env.h: Corresponding changes to class environment.
11024 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
11026         * troff/div.c (blank_line): Always do a break.
11028         * eqn/box.c (do_text): Turn off escapes while appending text to
11029         string.
11031 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
11033         * troff/input.c (while_break_request, while_continue_request): New
11034         functions.
11035         (init_input_requests): Bind these to "break" and "continue".
11036         (while_depth, while_break_flag): New variables.
11037         (while_request): Update while_depth.  Break out of loop if
11038         while_break_flag is set.
11040 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
11042         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
11043         rather than 0.
11045 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
11047         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
11049         * stringify: New file.
11050         * Makefile (groff.o): Use stringify.
11052         * xditview/tmac.X: Remove definition of \(rn.
11053         * xditview/libXdvi/DviChar.c: Remove radicalex from
11054         Adobe_symbol_map.
11056 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
11058         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
11059         (alphabetic_block_entry::alphabetic_block_entry,
11060         alphabetic_block_entry::divert, alphabetic_block_entry::print):
11061         New functions.
11062         (block_entry::divert): Split off body into ...
11063         (block_entry::do_divert): If the block is alphabetic, subtract 2n
11064         from the line length; also update the span width to dl+2n, and the
11065         alphabetic span width to dl.
11067         * driver/input.c (do_file):  While reading argument to D command,
11068         when expanding buffer, multiply szp by sizeof(int) rather than 2
11069         in the argument to memcpy.
11071         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
11072         width of alphabetic columns.
11074 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
11076         * troff/node.c (lookup_family): Supply second argument to lookup.
11078         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
11079         search, return immediately if v is 0.
11081         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
11082         (troff_output::start_picture): Set this reg.
11083         (troff_output::end_picture): Remove this reg
11084         * eqn/box.c (box::extra_space): Don't produce `\x's if
11085         EQN_NO_EXTRA_SPACE_REG is defined.
11087         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11088         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11089         character.
11091 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11093         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11094         requests.
11096         * troff/div.c (top_level_diversion::top_level_diversion):
11097         Initialize page_number to 0.
11099 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11101         * groff/troff (environment::environment(const environment *)):
11102         Initialize name to e->name, rather than "anonymous".
11104 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11106         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11107         requested_page.  Split middle part into ...
11108         (FindPage): New function.
11109         (SetValues): If we don't yet know the last page, and the requested
11110         page is greater than the current page, call FindPage.
11111         Update the font_map_string before doing this.
11113         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11114         Translate \(lh and \(rh into left and right double arrows.
11116         * troff/node.c (class hyphen_inhibitor_node): New class.
11117         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11118         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11119         hyphen_inhibitor_node::type,
11120         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11121         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11122         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11123         word.
11125 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
11127         * troff/node.h (dummy_node::get_hyphenation_type,
11128         transparent_dummy_node::get_hyphenation_type):  Declare them.
11129         * troff/node.c: (dummy_node::get_hyphenation_type,
11130         transparent_dummy_node::get_hyphenation_type): New functions.
11132 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
11134         * xditview/libXdvi/draw.c: If M_PI not defined after including
11135         math.h, then define it.
11137         * xditview/Makefile: Add definition of AR. Pass it to the submake
11138         in libXdvi.
11139         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11141 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
11143         * troff/dictionary.h (object_dictionary::alias): Declare return
11144         value as int.
11145         * troff/dictionary.c (object_dictionary::alias): Return non-zero
11146         if the old name was defined.
11147         * troff/input.c (alias_macro): Give a warning if the old name was
11148         not defined.
11149         * troff/reg.c (alias_reg): Likewise.
11151 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
11153         * troff/input.c (token::next): Delete implementation of \R.
11155         * macros/Makefile: Strip comments from tmac.e while installing it.
11157         * troff/input.c: New variable `nroff_mode'.
11158         (troff_request, nroff_request): New functions.
11159         (init_input_requests): Bind `troff' and `nroff' to troff_request
11160         and nroff_request.
11161         (do_if_request): Compute results of t and n conditions from
11162         nroff_mode.
11164         * text/text.c (split_text): Fix typo in >=.
11166         * eqn/lex.c: Add definition of `==' to def_table.
11168 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
11170         * pic/tex.c (tex_output::start_picture): Change the definitions of
11171         \graph and \graphtemp so that they work properly with Plain TeX.
11173         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11174         argument to `ar' is not less than the first.
11176         * pic/pic.y: Allow a comma between elements of the variable list
11177         in the argument to `reset'.
11179         * pic/object.c (arc_object::arc_object): Fix computation of
11180         radius.
11182         * eqn/main.c (main): Add exit(0).
11184 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
11186         * troff/div.c (begin_page): Test no_space_mode after doing the
11187         break, but still push the page ejector cookie before doing the
11188         break.  Also set the next page number after doing the break.
11189         
11190         * xditview/xditview.c (NewFile): Don't set the title and icon name
11191         if this is the first file and its name is `-'.
11192         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
11193         the X75 and X100 devices.
11194         (main): If a device has the XT_OPTION flag set and there's exactly
11195         one file argument, pass the driver -xrm and -title options to set
11196         the icon name and window title to the name of the file.
11198         * troff/env.c (environment_switch): If there was an argument but
11199         it wasn't a valid number or name, then pop an environment but
11200         don't give an error message on underflow.
11202         * troff/number.c (start_number): Correct spelling in error message.
11204         * troff/input.c (token::delimiter): Don't print an error message
11205         if err is false.
11207         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11208         ParseDrawFunction if dw->display_enable is true.
11210 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
11212         * pic/pic.y: Parse text positioning like normal attributes, so as
11213         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
11214         positioning attribute.
11216 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
11218         * tbl/main.c (process_data): When in state START while reading a
11219         text block, don't change to state MIDDLE if c is a newline.
11221 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
11223         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11224         so as to avoid shadowing parameter.
11226 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
11228         * tbl/table.c (trim_space): Deleted.
11229         (table::add_entry): Don't call trim_space.
11231 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
11233         * VERSION: Change version to 0.6.
11235         * troff/number.c (parse_expr): Make == work.
11237 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
11239         * man/grog.man: New file.
11240         * man/Makefile: Add grog.n to MAN1PAGES.
11241         * etc/grog.sh: New file.
11242         * etc/Makefile: Install grog.sh as grog.
11244 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
11246         * troff/input.c (token::next): Implement \E.
11248 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
11250         * xditview/tmac.X: Change font translations to match tmac.ps.
11252         * troff/input.c (non_empty_name_warning): Don't give a warning if
11253         `\{' terminates the name.
11255 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
11257         * ps/devps/symbol.diff: New file.
11258         * ps/devps/FontMakefile: Mention symbol.diff.
11260 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
11262         * troff/node.c (font_position): Use get_long_name to read the
11263         external_name.
11265         * troff/env.c (environment_switch): If we get a number that's < 0
11266         or >= NENVIRONMENTS, treat it like a name.
11267         Change NENVIRONMENTS to 10.
11269         * troff/groff.h: Remove definition of FONTS_MAX.
11270         * troff/node.h (class font_family): Make map a pointer instead of
11271         an array. Add a map_size member. Make it a class. Make nm const
11272         and public. Make invalidate_fontno a friend.
11273         * troff/node.c: Define font_table_size. Make font_info a pointer
11274         rather than an array.
11275         (class troff_output_file): Allocate font_position dynamically. Add
11276         nfont_positions member.
11277         (troff_output_file::set_font): Grow font_position if necessary.
11278         (troff_output_file::~troff_output_file): Delete font_position.
11279         (troff_output_file::troff_output_file): Allocate font_position.
11280         (grow_font_table): New function.
11281         (troff_output_file::really_begin_page,
11282         troff_output_file:really_copy_page): Use nfont_positions rather
11283         than FONTS_MAX.
11284         (mount_font_no_translate, mount_style): Call grow_font_table if
11285         necessary.
11286         (font_family::font_family): Allocate map.
11287         (font_family::make_definite): Grow map if necessary. Use
11288         font_table_size instead of FONTS_MAX.
11289         (font_family::~font_family): New function.
11290         (invalidate_fontno): Use font_family::map_size.
11291         (get_fontno, env_space_width, env_half_narrow_space_width,
11292         env_narrow_space_width, symbol_fotno, is_good_fontno,
11293         get_bold_fontno, make_glyph_node): Use font_table_size rather than
11294         FONTS_MAX.
11295         (next_available_font_position): Never return 0.
11297 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
11299         * ps/tmac.ps: Add font translations for compatibility with dpost.
11301 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
11303         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11304         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11305         Move definitions baseline_sep, shift_down, column_sep,
11306         matrix_side_sep into...
11307         * eqn/box.c: Add them to param_table.
11308         * eqn/pbox.h: Add declarations to pbox.h.
11310         * troff/input.c (set_string): Cast value to unsigned char *.
11312         * troff/token.h (process_input_stack): Declare it static before
11313         declaring it a friend.
11315 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
11317         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11318         and bottom.
11319         * dvi/devdvi/EX: Regenerate.
11321         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11322         transparent.
11324 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
11326         * eqn/lex.c: In defaults_table, make definition of `dot' call
11327         `dot_def'.  Don't explicitly make it roman.  Similarily for other
11328         accents.
11330         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11331         argument.
11332         (for_input::get, for_input::peek): Use this.
11333         (do_for): Add by_is_multiplicative argument.
11334         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11335         Change semantic value of optional_by to be a double plus a flag
11336         saying whethet the by clause is multiplicative.
11338         * eqn/lex.c (get_delimited_text): Remember location of start of
11339         definition.  Improve error handling when EOF is encountered.
11341         * lib/font.h: Rename handle_x_command to
11342         handle_unknown_font_command.
11343         * lib/font.c (font::load): Call handle_unknown_font_command for
11344         any unknown command in the font description file.  Don't call
11345         handle_x_command. Include the name of the command in the argv.
11346         Improve message for unknown command after kernpairs or charset
11347         command.
11348         * ps/ps.c (ps_font::handle_x_command): Rename to
11349         handle_unknown_font_command.  Remove message about `x download'
11350         command.  Give error message for wrong number of arguments.
11351         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11352         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11353         handle_unknown_font_command. Give an error message for wrong
11354         number of arguments.  Rename design_size to designsize.
11355         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11356         checksum', `designsize' instead of `design_size'.
11358 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
11360         * eqn/*.[chy]: Change underaccent to uaccent.
11362         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
11363         give it the same precedence as ACCENT.
11364         * eqn/other.c (make_underaccent_box): New function.
11365         * eqn/box.h: Declare it.
11366         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11367         def_table.
11369 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
11371         * pic/pic.y (reset_all): New function. Called in rule for RESET.
11372         (parse_init): Call reset_all.
11373         (define_variable): When defining scale reset only those
11374         pre-defined variables that are scaled.
11375         (defaults_table): Add `scale' as non-scaled value.
11377         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11378         together with the text; allow any number of positioning words;
11379         allow center as a positioning word.
11381         * pic/object.c (output::compute_scale): Get picture maximum height
11382         and width from variables called maxpswid and maxpsht.
11383         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11385 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
11387         * pic/object.c (object_spec::make_text): Multiply textht by number
11388         of text items.
11390         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11391         occur.
11392         (do_sprintf): New function.
11393         (pic.gperf): Add sprintf token.
11394         (text, sprintf): New rules.
11396         * pic/pic.y: `rand()' with no arguments returns a random number
11397         in the range [0,1).
11399         * pic/pic.y: Allow a bare expression to be an attribute: change
11400         precedences to support this.  Change optional_ordinal rule to
11401         optional_ordinal_last to avoid reduce/reduce conflict.
11402         * pic/object.c (object_spec::object_spec): Initialize direction.
11404         * pic/pic.y: Implement ^ operator meaning exponentiation.
11406         * troff/node.h: Add default argument to mount_font.
11407         * troff/node.c (font_position): Read an optional third argument
11408         giving the external_name.
11409         (mount_font): Add optional argument giving the external_name.
11410         (mount_font_not_translate): Have additional argument giving
11411         external name.  Use this name to load the font.  Pass both names
11412         to font_info::font_info.
11413         (font_info::font_info): Have additional argument giving
11414         external_name.
11415         (class tfont): New member external_name.
11416         (font_info::get_tfont): Use external name to construct tfont_spec.
11418 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
11420         * eqn/lex.c (init_table): Add argument giving device.  Define
11421         name of device to be "1".
11422         (do_ifdef): Counts as true if the argument has been defined with
11423         `define'.
11424         * eqn/main.c (main): Call init_table with device argument. Make
11425         device local to main.
11426         * eqn/eqn.h: Change declaration of init_table. Remove declaration
11427         of device.
11429         * pic/lex.c (get_delimited): Allow text to be delimited by
11430         matching {}s.  Don't recognize ending delimiter within a string.
11432         * troff/input.c (get_delim_name): New function.
11433         (token::next): Implement \C.
11435         * lib/font.c (font::load): Grok ---.  Add an alias for each
11436         character based on its code.
11437         (font::get_code_width): Deleted.
11438         * lib/font.h (class font): Declare font::number_to_index().
11439         Remove declaration of font::get_code_width.
11440         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11441         to indices of named characters.
11442         (font::number_to_index): New function.
11443         * troff/input.c (font::number_to_index): New function.
11444         (get_charinfo_by_number, charinfo::get_number,
11445         charinfo::set_number): New functions.
11446         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11447         (token::process, token::description, token::get_char,
11448         token::add_to_node_list, token::operator==): Handle
11449         TOKEN_NUMBERED_CHAR.
11450         * troff/charinfo.h: Declare get_charinfo_by_number,
11451         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
11452         charinfo class.
11453         (charinfo::numbered): New function.
11454         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11455         * troff/env.h (class environment): Remove declaration of ...
11456         * troff/env.c (environment::make_numbered_char_node): Deleted.
11457         * troff/node.c (make_numbered_node): Deleted.
11458         (class numbered_glyph_node): Remove.
11459         (troff_output_file::put_char_width, troff_output_file::put_char):
11460         Handle numbered chars.
11461         (troff_output_file::numbered_char): Removed.
11462         (tfont::get_code_width): Removed.
11463         (make_glyph_node): Don't search special fonts for numbered
11464         characters.
11465         * troff/node.h: Remove declaration of make_numbered_node.
11466         * driver/input.c (do_file): Handle N command.
11467         * driver/printer.h: Add declaration of ...
11468         * driver/printer.c (printer::set_numbered_char): New function.
11469         * dvi/tfmtodit.c (main): Generate unnamed entries.
11470         * ps/devps/afmtodit: Likewise.
11471         * xditview/xtotroff.c (MapFont): Likewise.
11472         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11474         * tbl/main.c (process_format): If multiple widths are specified
11475         for a column but all the widths are the same, don't give an error
11476         message.
11478         * tbl/table.c (table::do_row): If the current row is all lines and
11479         the stuff doesn't contains a line, mark the top of the row after
11480         printing stuff before the row.  If the current row is not all
11481         lines and the stuff doesn't contain a line, don't unnecessarily
11482         mark the top of the row before printing the stuff.
11483         
11484 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
11486         * troff/groff.h: Remove MAX_PATH.
11487         * troff/input.c (open_file): Dynamically allocate space for the
11488         path.
11489         (open_mac_file, process_macro_file): Corresponding changes.
11491 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11493         * troff/node.h (class output_file): Make copy_file pure.  Add
11494         vspace method ifdef COLUMN. Add is_printing method.
11495         * troff/node.c: Add class printing_reg. Add class
11496         real_output_file. Derive other output_file classes from
11497         real_output_file; in these classes rename begin_page to
11498         really_begin_page, print_line to really_print_line, copy_file to
11499         really_copy_file, transparent_char to really_transparent_char.
11500         Move output_file::flush to real_output_file. Add printing member
11501         to class output_file.
11502         * troff/div.h: Remove printing member from top_level_diversion.
11503         Add vspace member function to class diversion ifdef COLUMN. Add
11504         some declarations ifdef COLUMN.
11505         * troff/div.c (top_level_diversion::copy_file,
11506         top_level_diversion::transparent_output,
11507         top_level_diversion::output): Don't test printing member before
11508         output.
11509         * troff/input.c: Handle initial variable_space_request ifdef
11510         COLUMN.
11511         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11512         but comment it out.
11514 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11516         * troff/div.c (diversion::need): Make any space forced.  If we
11517         sprung a trap, set truncated_space to minus the distance to the
11518         trap and set needed_space to the amount that was needed.
11519         (top_level_diversion::space): A forced space turns no_space_mode
11520         off.
11521         (class constant_vunits_reg): New class.
11522         (init_div_requests): Implement number registers .trunc and .ne
11523         using constant_vunits_reg.
11524         (class truncated_space_reg): Deleted.   
11526         * troff/div.h: Don't have a no_space_mode member in diversion.
11527         Instead have it in top_level_diversion.
11528         * troff/div.c (diversion::diversion): Don't initialize
11529         no_space_mode.
11530         (top_level_diversion::top_level_diversion): Initialize
11531         no_space_mode.
11532         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11533         (macro_diversion::output): Don't clear no_space_mode.
11535         * troff/input.c (diverted_space_node::reread): Don't call
11536         environment::do_break.  In fill mode, act like a blank line.
11537         (diverted_copy_file_node::reread): Don't call
11538         environment::do_break.
11540         * troff/div.c (blank_line): New function.
11541         * troff/div.h: Declare it.
11542         * troff/input.c (process_input_stack): Call it.
11544         * troff/div.c (truncated_space_reg::get_string): New function.
11545         (init_div_requests): Bind to .trunc.
11546         (space_request, top_level_diversion::space,
11547         top_level_diversion::output, macro_diversion::space,
11548         macro_diversion::output): Update truncated_space.
11549         (macro_diversion::output): Redo calculations when trap sprung.
11550         (macro_diversion::output, macro_diversion::space): No need for
11551         trap_flag.
11553         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11554         after truncating post line spacing.
11556 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
11558         * ps/devps/prologue (MF, SF): Make them work even if setfont is
11559         defined as a procedure rather than as an operator.
11561 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
11563         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11565 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
11567         * troff/div.c (top_level_diversion::output): Merge
11568         output_file::print_line and output_file::end_of_line member
11569         functions.
11570         * troff/div.h (class output_file):
11571         * troff/node.c (troff_output_file::print_line,
11572         troff_output_file::end_of_line, output_file::end_of_line,
11573         ascii_output_file::print_line, suppress_output_file::print_line):
11574         Corresponding changes.  
11576 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
11578         * troff/input.c (token::next): Don't give a warning for `\.'.
11580         * troff/env.c (environment::get_center_lines): New function.
11581         (init_env_requests): Bind number register .ce to it.
11582         * troff/env.h: Declare it.
11583         * tbl/table.c (table::init_output): Define reset macro to restore
11584         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
11585         Then do .ce 0.
11586         (table::print): If center option not given, then imply center
11587         option if SAVED_CENTER_REG > 0.
11589 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
11591         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11592         Troff.ps from DOWNLOAD.
11593         
11594         * troff/Makefile: Change comment in DEFINES to avoid confusing
11595         System V make.
11597         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11598         code.  Don't try to catch errors with stopped.
11599         (check_line_lengths): New function.
11600         * ps/devps/prologue (EXEC): Deleted.
11601         (EBEGIN, EEND): New procedures.
11603 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
11605         * troff/input.c: Include request.h before node.h.
11606         * troff/node.c: Likewise.
11607         * troff/env.c: Likewise.
11608         * troff/div.c: Likewise.
11609         * troff/node.h (class special_node): Store argument as a macro
11610         rather than a char *.
11611         * troff/node.c (special_node::special_node, special_node::copy):
11612         Grok this.
11613         (special_node::~special_node): Deleted.
11614         (special_node::tprint): Deleted.
11615         (special_node::tprint_start, special_node::tprint_end,
11616         special_node::tprint_char): New functions.
11617         (troff_output_file::special): Deleted.
11618         (troff_output_file::start_special, troff_output_file::end_special,
11619         troff_output_file::special_char): New functions.
11620         * troff/input.c (special_node::tprint): New function.
11621         (do_special): Use macro not char *.
11622         (do_transparent_macro): Deleted.
11623         (token::next): Don't call do_transparent_macro.
11625         * troff/input.c (token::next): Add 'Y' case.
11626         (do_transparent_macro): New function.
11627         * troff/node.c (troff_output_file::special): Handle newlines with
11628         argument using new continuation convention.
11629         * driver/input.c (get_string): Cope with continuation convention.
11630         (do_file): Don't call skip_line after calling get_string(1).
11631         * ps/ps.c (ps_printer::special, ps_printer::do_import,
11632         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11633         arg.
11634         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11635         with +.
11637 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
11639         * troff/input.c (asciify): By default, illegal input characters
11640         should return empty string.
11642         * troff/input.c (copy_file): Handle first page transition like title.
11643         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11645         * troff/input.c (token::next): Improve error message for EOF after
11646         escape character.
11647         (input_char_description): New function.
11648         (get_char_for_escape_name): Use input_char_description.
11649         (token::next): Warn about unrecognized escape sequences.
11650         (warning_table): Add WARN_ESCAPE.
11651         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11652         accordingly.
11654         * troff/token.h: Remove declaration of process_input_stack.
11656         * troff/input.c: Remove declaration of init_hyphen_requests.
11657         * troff/request.h: Correct spelling in declaration of same.
11659         * troff/input.c (token::next): Check whether escape_char is 0.
11661 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
11663         * groff.c (main, usage, help): Implement -P and -L options.
11664         * groff.sh: Likewise.
11666         * troff/input.c (token::next): Use some gotos to avoid code
11667         duplication.
11669         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11670         Avoid calling symbol::symbol if name empty.
11672 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
11674         * troff/input.c (init_input_requests): Make \n(.x return the major
11675         version number and \n(.y return the minor version number.
11676         * troff/Makefile: Construct file majorminor.c defining
11677         major_version and minor_version automatically from ../VERSION.
11679         * troff/node.c (class glyph_node): Make operator new and operator
11680         delete public.
11681         (class ligature_node): Similarily.
11683         * troff/input.c (operator==(const macro &, const macro &)): New
11684         function.
11685         (non_interpreted_node::same): Use this.
11686         (string_iterator::string_iterator): Make macro& argument const.
11688         * troff/input.c (input_iterator::get): New function. Don't make
11689         asciify_macro or class non_interpreted_node friends of class
11690         input_iterator.
11691         (non_interpreted_node::interpret): Use input_iterator::get.
11692         (asciify_macro): Likewise.
11694         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11695         ~non_interpreted_node): Deleted.
11696         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11697         Deleted.
11699         * troff/symbol.h: Make all symbol member functions const.
11701         * lib/strtol.c: New file.
11702         * lib/Makefile: Add strtol.c.
11703         * Makefile: Define STRTOL as strtol.o to include strtol in
11704         libgroff.a.
11706 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
11708         * pic/troff.c (troff_output::simple_circle): Divide by scale.
11710 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
11712         * troff/input.c (do_special): Use input_level.
11714         * troff/token.h (TOKEN_BACKSPACE): New token.
11715         (token::backspace): New function.
11716         * troff/input.c (token::description, token::next, token::process):
11717         Grok TOKEN_BACKSPACE.
11718         (do_special): Turn TOKEN_BACKSPACE back into \b.
11720         * troff/token.h (token::leader): New function.
11721         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11723         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11725         * troff/input.c (do_special): Use token::description in error
11726         message.
11728 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
11730         * troff/input.c (decode_args): Combine quoted and
11731         quote_input_level variables. Make it a for (;;) loop.
11733         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11735         * troff/input.c (read_long_escape_name): The test for whether to
11736         expand buffer was off by 1.
11737         (read_string): Similarily.
11739 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
11741         * troff/input.c: Use `const int' rather than `static const int'.
11743         * troff/div.h (diversion::copy_file): Declare as pure virtual.
11744         (macro_diversion::copy_file): New function.
11745         * troff/node.h: New class diverted_copy_file_node.
11746         * troff/node.c: Implement it.
11747         * troff/input.c (copy_file): Use diversion::copy_file. Handle
11748         first page transition by pushing a diverted_copy_file_node.
11749         * troff/input.c (token::next, process_input_stack): Don't handle
11750         COPY_FILE_REQUEST.
11752 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
11754         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11755         whether space widths need adjusting.
11757         * troff/charinfo.h: Generalize translated_to_space to
11758         special_translation so as to allow translation to \&.
11759         * troff/input.c (translate): Allow translation to \&.
11760         (charinfo::*): Corresponding changes.
11761         * troff/node.c (make_node, node::add_char): Corresponding changes.
11762         * troff/node.h (dummy_node::dummy_node): Allow optional first
11763         argument.
11765         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11766         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11767         TOKEN_REQUEST.
11768         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11769         TOKEN_REQUEST with an argument of TITLE_REQUEST.
11770         (token::process): Grok that.
11771         * troff/input.c (copy_file): Handle first page transition like
11772         title by pushing a COPY_FILE_REQUEST cookie.
11773         (token::next, process_input_stack): Grok that.
11774         * troff/node.h (output_file::copy_file): Add x and y arguments.
11775         Make it non-pure.
11776         * troff/div.c (top_level_diversion::copy_file): Supply them.
11777         * troff/node.c (troff_output_file::copy_file): Add x and y
11778         arguments; moveto specified position.  Invalidate font_position
11779         array after copying file.
11780         (output_file::copy_file): New function.
11781         (suppressed_output_file::copy_file, ascii_output::copy_file):
11782         Removed.
11783         * troff/input.c (transparent_file): New function.
11784         (init_input_requests): Bind to "trf".
11785         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11786         (process_input_stack): Likewise.
11788         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11790         * troff/node.c (init_node_requests): New number registers .kern
11791         pointing to global_kern_mode, and .lg pointing to
11792         global_ligature_mode.
11794         * troff/node.c (ligature): Don't change it if we get a bad
11795         integer.
11797         * troff/input.c (do_define_string): Don't strip tabs.
11799         * troff/input.c (asciify_macro): Make the string_iterator auto.
11801         * troff/node.c (init_font_requests): Rename to...
11802         (init_node_requests):
11803         * troff/node.h: Change declaration.
11804         * troff/input.c (main): Change call.
11806         * troff/input.c (node::reread, diverted_space_node::reread): New
11807         methods.
11808         (process_input_stack): Call reread rather than
11809         get_diverted_space_node.
11810         * troff/node.c (node::get_diverted_space_node,
11811         diverted_space_node::get_diverted_space_node): Removed.
11812         * troff/node.h: Declare reread methods instead of
11813         get_diverted_space_node methods. Make `n' member private.
11814         * troff/input.c: (token::diverted_space): Removed.
11815         * troff/token.h: Removed declaration.
11816         
11818 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
11820         * eqn/script.c (script_box::compute_metrics): Don't let
11821         SUP_RAISE_FORMAT become negative.
11823         * tbl/table.c (table::do_row): Entries that don't end in the
11824         this row shouldn't make the row non-blank.
11825         
11826         * tbl/table.c (table::make_columns_equal): Only set the width of
11827         columns which are marked as equal.
11828         
11829         * tbl/main.c (process_data): Before issuing excess data error,
11830         if last character was a newline unget it; then get it again after
11831         the error.  Also include the contents of the entry in the message.
11833         * groff.c: New file.
11834         * Makefile: Build groff from groff.c.  Make it possible to use
11835         either groff.sh or groff.c as groff.
11836         * Makefile.bd: Similarily.
11838 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
11840         * groff.sh: Don't delay expansion of $@ in assignment to files.
11841         Remove occurrences of \".
11843 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
11845         * all Makefiles: Simplify and rearrange.
11847         * Makefile: Handle fmod like malloc.
11848         * lib/Makefile: Similarily.
11849         * lib/fmod.c: Remove #ifdef NEED_FMOD.
11851         * Makefile: Rename OPTIMISE to OPTIMIZE.
11853         * groff.sh: Remove assignment to PATH.
11854         * Makefile: Remove SHPATH variable.
11855         * Makefile.bd: Similarily.
11857         * groff.sh: Add -V option to print the pipeline instead of
11858         executing it.
11860 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
11862         * lib/font.c: Split off file searching into ...
11863         * lib/fontfile.c: New file.
11865         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11867 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
11869         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11870         Also change misleading comment.
11871         (table::do_vspan): Change similarily misleading comment.
11872         * tbl/main.c (process_data): A format row with an explicit `s'
11873         uses up a data line, even if all the other columns are `_' or `='.
11875         * troff/input.c (token::description): Fix description of
11876         TOKEN_DUMMY and TOKEN_EMPTY.
11878 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
11880         * groff.sh: Fix description of -Z in help message.
11882 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
11884         * pic/object.c (object_spec::make_object): Allow negative and zero
11885         line thicknesses.
11886         * pic/pic.y: Give linethick default value of -1.0.
11887         * pic/troff.c (troff_output::troff_output): Initialize
11888         last_line_thickness to BAD_THICKNESS.
11889         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11890         (troff_output::line_thickness): Canonicalize negative thicknesses
11891         to RELATIVE_THICKNESS.
11892         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11893         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11894         to -1.0.
11895         (tex_output::start_picture): Set pen_size to -2.0.
11897         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11898         0, then use 0 linewidth.
11899         (ps_printer::ps_printer): Initialize line_thickness to -1.
11901         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11903         * ps/devps/symbolchars: Remove `or'.
11904         * ps/tmac.ps: Implement \(or with .char.
11906         * ps/devps/symbolchars: Move most characters into textmap.
11907         * ps/devps/textmap: Add names for troff bracket characters. Remove
11908         ul, ru, br, bv.
11910         * ps/devps/TSymbol.ps: Removed.
11911         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11912         * ps/tmac.ps: Do with .char what TSymbol did.
11913         * ps/devps/download: Remove TSymbol.
11915         * ps/devps/T: Removed.
11916         * ps/devps/Troff.ps: Removed.
11917         * ps/devps/Troff.afm: Removed.
11918         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11919         * ps/devps/download: Remove Troff.
11920         * ps/devps/FontMakefile: Remove T target.
11921         * ps/devps/DESC-A4: Remove T from font list.
11922         * ps/devps/DESC-letter: Likewise.
11924         * troff/input.c (macro_to_node): Rename to ...
11925         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
11926         character's definition while processing it.
11927         * troff/node.c (node::add_char, make_node): Change calls to
11928         macro_to_node accordingly.
11930         * troff/input.c (token::next): Translate \_ to \(ul.
11932         * tty/devascii/R.proto: Add `|'.
11933         * tty/devlatin1/R.proto: Likewise.
11935 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
11937         * man: Put the version number in all the man pages.
11939 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
11941         * Makefile.bd: New file.
11942         * README.bd: New file.
11944         * VERSION: New file.
11945         * lib/version.c: Removed.
11946         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11947         in clean target.
11949         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11950         environment variable.
11952         * all Makefiles: Split install target into install.bin for
11953         binaries, and install.nobin for everything else.
11954         * Makefile: Add bindist target.
11956         * man/afmtodit.man: New file.
11957         * man/Makefile: Add afmtodit.n to MAN1PAGES.
11958         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11959         in BINDIR.
11960         * ps/Makefile: Pass BINDIR to make install in devps.
11962         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11963         the space character.
11965         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11967 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
11969         * ps/ps.c: Redo font downloading.
11970         * ps/devps/download: New file.
11971         * ps/devps/Makefile: Add download to DEVICEFILES.
11972         * ps/devps/afmtodit: Remove -d option.
11973         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11974         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11975         * ps/devps/zapfdr.ps: Likewise.
11976         * ps/devps/TSymbol.ps: Likewise.
11978 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
11980         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11982 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
11984         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11985         then strip the first line if it starts with %.
11986         * Makefile: Add a comment about this.
11988         * man/tfmtodit.man: New file.
11989         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11990         * dvi/Makefile: Install tfmtodit in BINDIR.
11992         * dvi/tfmtodit.c (usage): Mention -v option.
11994 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
11996         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11997         * troff/node.c (troff_output_file::transparent_char): Don't call
11998         flush_tbuf.
12000         * eqn: Add check_tabs method to most box classes.
12001         * eqn/box.c (box::top_level): Call check_tabs.
12003         * eqn/script.c (script_box::output): Use \Z.
12004         * eqn/limit.c (limit_box::output): Use \Z.
12006         * eqn/box.c (box::top_level): Use itoa.
12008 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
12010         * dvi/tmac.dvi: Add font translations for CR, C, TT.
12011         * dvi/devdvi/Makefile: Don't make links to CW.
12013         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
12014         HX, HD.
12015         * xditview/tmac.X: Likewise.
12017         * troff/node.c: Add font translation feature.
12018         (get_font_translation): New function.
12019         (symbol_fontno): Translate the font name.
12020         (mount_font_no_translate): Rename to mount_font to this.
12021         (mount_font): New function.
12022         (font_family::make_definite): Call mount_font_no_translate instead
12023         of mount_font.
12024         (mount_style): Translate the font name.
12025         (font_translate): New function.
12026         (init_font_requests): Bind "ftr" to font_translate.
12028         * ps/devps/prologue (SN): New procedure that rounds a position to
12029         the nearest (pixel + (.25,.25)).
12030         (DL): Use SN to round endpoints.
12032         * lib/version.c: Changed version to 0.5.
12034 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
12036         * Makefile: Move definition of PAGE to the very beginning, so that
12037         people are less likely to miss it.
12039 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
12041         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
12043         * troff/env.c (environment::choose_breakpoint): Make `can't find
12044         breakpoint' error a warning of type WARN_BREAK.  Change message to
12045         `can't break line'.
12046         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
12047         code 040000.
12048         * troff/input.c: Add WARN_BREAK to warning_table.  Include
12049         WARN_BREAK in DEFAULT_WARNING_MASK.
12051         * tty/tmac.tty: Add definition of \(+-.
12053         * groff.sh: Remove `--' option to set command.
12055         * dvi/devdvi/texsy.map: Remove duplicate md entry.
12057         * ps/devps/eqnchar: Better definition of cdot using md.
12058         * dvi/devdvi/eqnchar:  Likewise.
12059         * xditview/devX100/eqnchar:  Likewise.
12060         * xditview/devX75/eqnchar: Likewise.
12061         * eqn/lex.c: Add definition of cdot.
12063 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
12065         * troff/input.c (get_optional_char): New function.
12066         * troff/input.c (set_page_character): Use get_optional_char(),
12067         rather than has_arg() and tok.get_char(1).
12068         * troff/env.c (tab_character, leader_character, hyphen_char,
12069         field_characters): Likewise.
12070         (margin_character): Likewise.  Also always delete the
12071         margin_character_node.
12073         * troff/input.c (token::get_char): Use token::description.
12075         * troff/input.c (has_arg): Don't skip over tab and \}.
12076         * troff/number.c (start_number): Give a warning if the number
12077         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
12079 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
12081         * troff/input.c (empty_name_warning, non_empty_name_warning): New
12082         functions.
12083         (get_name, get_long_name): Use these.  Rename `warn' argument to
12084         `required'.
12086         * troff/node.c (get_fontno): Test that the symbol is not null.
12088         * troff/input.c (token::description): New function.
12089         * troff/number.c (parse_term): Use token::description in `numeric
12090         expression expected' message.
12091         * troff/groff.h: Add WARN_MISSING.
12092         * troff/number.c (start_number): New function.
12093         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12094         get_incr_number): Use start_number().
12095         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12096         default.
12097         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12098         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12099         token::descripion.
12100         * troff/input.c (token::get_char): Use WARN_MISSING.
12101         * troff/input.c (token::delimiter): Use token::description.
12102         * troff/env.c (environment_switch): Back out Aug 3 change.
12103         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12104         warning.
12105         * troff/token.h (token::tab): New function.
12106         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12107         * troff/reg.c (alter_format): Likewise.
12108         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12110 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12112         * troff (most files): Redo warnings. Divide warnings into various
12113         categories; warning() has an additional first argument indicating
12114         the category it falls into.
12115         * troff/input.c (main): -w now takes an argument. New option -W.
12116         (enable_warning, disable_warning): New functions.
12118         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12119         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12121 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12123         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12124         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12125         * xditview/devX75/eqnchar: Likewise.
12126         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12128         * eqn/other.c: When bar or over applies to a single character
12129         don't produce an overline_box or an underline_box. Instead produce
12130         an accent_box or an underaccent_box, with the accent a line
12131         whose width is accent_width.  New classes underaccent_box,
12132         overline_char_box and underline_char_box.
12133         * eqn/box.h: Move overline_box, underline_box, accent_box class
12134         declarations into eqn/other.c. Add declarations of
12135         make_underline_box, make_overline_box, make_accent_box.
12136         * eqn/eqn.y: Call make_overline_box, make_underline_box
12137         make_accent_box instead of constructors.
12138         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12140         * eqn/other.c: Add accent_box::~accent_box.
12141         * eqn/box.h: Declare it.
12143         * groff.sh: With -Tps, use eqn -D.
12145         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12146         rather than \l.
12147         (underline_box::output): Similarily.
12148         (accent_box::output): Use \Z.
12150         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12151         bit smaller.)
12153 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
12155         * troff/div.c (top_level_diversion::transparent_output(unsigned
12156         char)): Use asciify.
12157         * troff/input.c (asciify): Don't make it static.
12158         * troff/token.h (asciify): Declare it.
12159         
12160         * troff/input.c (get_name, get_long_name, token::get_char,
12161         token::delimiter): Add an extra default argument which says
12162         whether a warning should be printed.
12163         * troff: Pass a non-zero argument to one of these rather than
12164         printing a warning directly.
12166 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
12168         * troff: Consistently use symbol::is_null.
12170         * troff/dictionary.h: Move some inline functions into
12171         dictionary.c.
12173         * troff/request.h: Move inline functions into input.c.
12174         (request_or_macro::invoke): Make it pure.
12176         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12177         * troff/input.c (init_input_requests): Use class constant_int_reg.
12178         (class compatible_reg): Deleted.
12179         * troff/div.c (init_div_requests): Use class constant_int_reg.
12180         (class last_post_line_extra_space_reg): Deleted.
12182         * troff/env.c (tab_character): Don't change the tab character if
12183         we get an invalid argument.
12184         (hyphen_char): Similarily.
12186         * troff/reg.c (alter_format): Check that nm is not null.
12188         * Makefile, groff.sh: Make it possible to customize the commands
12189         used for printing PostScript and dvi files. Also make it possible
12190         to customize the path used by groff.sh.
12192         * eqn/eqn.y: Make `left' right associative.
12194 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
12196         * pic/pic.h: Added definition of M_SQRT2 for those systems that
12197         don't have it.
12199         * pic/pic.h: Removed definition of INT_MAX.
12201         * troff/node.c (italic_corrected_node::vertical_extent): Omit
12202         `return'.
12204         * troff/input.c (token::next):  Handle \R like \n.
12206 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
12208         * ps/tmac.pc (PSPIC): Simplify.
12210         * troff/env.c (tab_stops::to_string):
12211         * pic/pic.y (object_type_name):
12212         * pic/troff.c (simple_output::line):
12213         * pic/tex.c (tex_output::spline):
12214         * pic/object.c (object_spec::make_object):
12215         * tbl/main.c (process_data):  Add cases to switch statements to
12216         avoid cfront warnings. (Some of these are spurious, since the
12217         switch already has a default case.)
12219         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
12220         `ps-'.  Don't test systat; instead check number of arguments to
12221         ps-bb.
12223 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
12225         * macros/tmac.e: Do not decrease the page offset by 0.5i.
12227         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12228         Unlink the file as soon as we have opened it, so that we don't
12229         have to bother with signal handlers.
12230         (handler): Deleted.
12231         (fatal_error_exit): Deleted.
12232         (main): Don't call signal.
12234         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12235         can be ignored.
12236         * dvi/devdvi/Makefile: Use the -k option with S and MI.
12238         * pic/pic.y:  If there is a label, or an nth construction before
12239         the first `.' in the argument to `with', ignore it and generate a
12240         warning.
12241         * pic/lex.c (lex_warning): New function.
12243         * tbl/table.c (table::init_output): In section keep and release
12244         macro, use 0 indent when diverting and the correct indent when
12245         rereading.
12247         * troff/input.c (interpolate_number_format): Do not interpolate
12248         anything if the number register is not defined.
12250         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12252 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
12254         * ps/devps/prologue (PICTURE): Set components of graphics state to
12255         their default values.
12257         * ps/devps/text.enc: Add trademark
12258         * ps/devps/textmap: Add names for club, spade, heart, diamond,
12259         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12260         * ps/devps/symbolchars: Add names for summation and product.
12262         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12263         suchthat. Add pp. Add upper-case letters.
12265         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12266         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12267         Upsilon.
12269         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12270         rA (right angle bracket) to ra.  Introduce names for double-headed
12271         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12272         * ps/devps/textmap: Likewise for ps device.
12273         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12274         * tty/devascii/R.proto: Rename lA to la and rA to ra.
12275         * tty/devascii/R.proto: Likewise.
12276         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12277         \(uA, \(dA.
12278         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12280         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12282         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12283         def_table.
12285 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
12287         * troff/div.c (when_request): Use symbol::is_null rather than
12288         has_arg to determine whether we have an argument.
12289         (change_trap): Remove the trap if we get an invalid number. Give
12290         an error if we don't get at least the macro name.
12291         (diversion_trap): Remove trap if we get an invalid name or number.
12293         * troff/env.c (environment_switch): Pop if we get an invalid
12294         symbol or numeric expression.
12296         * troff/input.c (do_define_macro):  If EOF is encoutered while
12297         defining the macro, do tok.next() before returning.
12299         * troff/token.h (has_arg): Move definition from here, to ...
12300         * troff/input.c (has_arg): ... here
12302         * troff/env.c (space_size): Do nothing if we get an invalid argument.
12303         * troff/input.c (shift): Likewise.
12305         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
12306         for `.c'.
12308         * pic/troff.c (troff_output::start_picture):  Comment out calls to
12309         `..'.
12311         * eqn/main.c (do_file): Subtract 1 from current_lineno if
12312         interpret_lf_args succeeds.
12314         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12315         \\.  This avoids problems with \$N.
12317         * groff.sh: Pass -C to preprocessors.
12319         * lib/lf.c (interpret_lf_args):  Be more flexible.
12321         * tbl/main.c (main): Add -C option.
12322         (table_input::get): Do not recognize TE if followed by character
12323         other than a space or newline unless -C option given.
12324         (process_input_file): Likewise for lf, TS.
12325         (process_data): Likewise for lf in text blocks.
12327         * eqn/main.c (main): Add -C option.
12328         (do_file): Don't recognize EQ, EN or lf if followed by character
12329         other than space or newline unless -C option given.
12330         * eqn/lex.c (file_input::read_line): Similarily.
12331         * eqn/eqn.h: Declare compatible_flag.
12333         * etc/soelim.c (main): Add -C option.
12334         (interpret_lf_args): Use version in libgroff.
12335         (do_file):
12337         * pic/main.c (main): Add -C option, which sets compatible_flag.
12338         (top_input::get), (top_input::peek):  If -C option not given,
12339         do not recognize .PS/.PE/.PF/.lf if followed by a character
12340         other than space or newline.
12341         * pic/lex.c (file_input::read_line): Similarily.
12342         * pic/pic.h: Add declaration of compatible_flag.
12344 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
12346         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12348         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
12349         derived from node.  New class space_char_hmotion_node.
12350         * troff/input.c (asciify_macro): New function.
12351         * troff/input.c (init_input_requests): New request `asciify' bound
12352         to asciify_macro.
12353         * macros/mm.diff: New file.
12354         * Makefile:  In install.mm target use `patch' to apply
12355         macros/mm.diff.
12357         * troff/input.c (macro::print_size): Just print the size in bytes.
12359         * troff/div.c (return_request): Correct the argument
12360         interpretation.
12362 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
12364         * troff/node.h (class composite_node): Add sz member.
12365         * troff/node.c (composite_node::size): Return sz.
12366         * troff/input.c (macro_to_node):  Use the initial size in the
12367         environment as the size of the composite_node.
12369         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
12370         default.
12372 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
12374         * troff/div.c (change_trap): If we get a bad number expression,
12375         do nothing.
12377 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
12379         * lib/matherr.c (matherr): Define this only if math.h defines
12380         TLOSS.
12382 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
12384         * troff/div.c (macro_diversion::distance_to_next_trap): If there
12385         no diversion trap return vunits(INT_MAX - vresolution).
12387 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
12389         * troff/input.c (do_zero_width): New implementation that doesn't
12390         use a temporary environment. Use instead:
12391         (token::add_to_node_list): New function.
12392         * troff/env.c (environment::get_prev_char_height),
12393         (environment::get_prev_char_height),
12394         (environment::get_prev_char_skew): New functions.
12395         (environment::get_prev_char): New function.
12396         (environment::get_prev_char_width): Change to use get_prev_char.
12397         (init_env_request): Implement new registers .cht, .cdp, .csk.
12398         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12399         \Z being processed in a separate environment.
12401 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
12403         * tbl/table.c: Removed TABLE_BOTTOM_REG.
12405         * tbl/table.c (table::init_output): In the section release macro,
12406         give a warning message if the section won't fit on one page.
12408         * tbl/table.c (table::do_top): Emit table keep only if table is
12409         boxed.
12410         (table::do_bottom): Likewise for table release.
12411         (table::table), (table::add_vertical_rule):  Remove reference to
12412         keep member.
12413         * tbl/table.h: Remove keep member.
12415         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12416         SECTION_RELEASE_MACRO, if there's not enough space before the next
12417         trap to output the diversion, call T# ourselves, set
12418         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12419         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
12420         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
12421         vertical position and return to it before turning traps on again.
12422         
12423 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
12425         * troff/node.c, troff/node.h: In classes derived from node,
12426         replace prev_char_width method by last_char_node method.
12427         * troff/env.c (environment::get_prev_char_width): Use
12428         node::last_char_node rather than node::get_prev_char_width.
12430         * Makefile: Added comment about -fno-inline on 68030-based
12431         Apollos.
12433         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12434         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12435         expressions using sizeof to int.
12436         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12438         * macros/tmac.e (TS):  Don't move @f back past the current
12439         position.
12441 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
12443         * ps/ps.c (main): Buffer stderr.
12444         * dvi/dvi.c (main): Likewise.
12445         * tty/tty.c (main): Likewise.
12447         * ps/ps.c (ps_printer::do_import): Improve error handling.
12449         * troff/input.c (abort_request): Use asciify.
12451         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12452         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12453         type of first argument int rather than char.  This works around a
12454         bug on the 68030 based Apollo using g++ 1.37.1.
12456         * tbl/table.h (class table): Add `keep' member.
12457         * tbl/table.c (table::table): Initialize `keep'.
12458         (table::add_vertical_rule): Set `keep' to 1.
12459         (table::do_top): Only emit table keep macro is `keep' is non-zero.
12460         (table::do_bottom): Likewise for table release macro.
12461         (table::do_row): Emit section keep macro even if the row is 0.
12463 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
12465         * macros/tmac.e (@C): Preserve the font family across the change
12466         in environments.
12468 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
12470         * lib/font.c: Initialize font::hor and font::vert to 1.
12471         (font::load_desc): Check the values of font::hor and font::vert.
12473         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12474         be included in a C compilation.
12475         (iftoa): Use INT_DIGITS. Include lib.h.
12476         (itoa): Likewise.
12477         (as_string): Likewise.
12478         * tbl/table.c: Removed definition of INT_DIGITS.
12479         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12480         * troff/input.c (input_input_requests): Likewise.
12481         * ps/ps.c (make_encoding_name): Likewise.
12482         (ps_printer::set_style): Likewise.
12483         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12485         * tty/devascii/R.proto: Map fm onto '.
12486         * tty/devlatin1/R.proto: Likewise.
12488 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12490         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12491         argument to \w is at a different input level.
12493         * tbl/table.c (table::init_output): Define a new macro
12494         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12495         transparently outputs itself.
12496         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12497         vpt.
12498         (table::do_row): Likewise.
12500         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12501         TRANSPARENT_STRING_NAME.
12503         * tbl/table.c (table::init_output): In the table release macro
12504         print an error message and don't produce any output if after
12505         issuing the need request the table still will not fit.  Also
12506         remove the diversion after bringing it back.
12508         * tbl/table.c (table::init_output): Define a new macro
12509         REPEATED_MARK_MACRO, like mk but if in a diversion also
12510         transparently outputs itself.
12511         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12512         is necessary because .TH might not call .T#.
12513         (table::do_top): Likewise TOP_REG.
12514         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12515         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12516         table header might contain just the two top rules.
12518 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12520         * troff/div.c: Implement new request `ptr' to print all traps.
12522         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12523         init_string_env_reg.
12524         * troff/env.c (class tab_reg): Deleted.
12526 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12528         * troff/div.c: New number register .pn returns the number of the
12529         next page as set by the pn request.
12531         * macros/tmac.an: Redid headers and footers.  Number each manual
12532         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12533         optional 5th argument to .TH which specifies the manual name and
12534         appears in the center of the header.  Understand the X, P and D
12535         registers like Sun.
12537 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
12539         * troff/env.c (init_env_requests): New number register `.lt' to
12540         return the title length.
12542         * troff/node.h (class transparent_dummy_node): New class.
12543         * troff/node.c (class transparent_dummy_node): Provide member
12544         functions. 
12545         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12546         than a dummy_node.
12548         * troff/input.c (token::next): New escape sequence \).
12549         * troff/input.c (get_copy): Recognize \) in copy mode.
12551         * troff/input.c (input_stack::clear): New function.
12552         * troff/input.c (exit_request): Use input_stack::clear.
12554         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12555         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12557         * troff/env.c: Move set_page_character to input.c.  Move
12558         page_character to input.c also.
12559         * troff/env.c (title): Split off the reading of the parts of the
12560         title into read_title_parts.
12561         * troff/input.c (read_title_parts): New function.  Check the
12562         input_level when testing whether a token matches the delimiter.
12564         * troff/input.c (exit_request): New function.
12565         * troff/input.c (init_input_requests): Bind ex request to
12566         exit_request rather than exit_groff.
12568         * troff/input.c (exit_groff): Call tok.next() before
12569         process_input_stack().
12571 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
12573         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12574         * troff/env.h: ditto.
12575         * troff/input.c: ditto.
12577         * troff/env.c (environment::is_empty): Test pending_lines.
12579         * troff/env.c (environment::have_pending_lines): Removed.
12581         * troff/input.c: Add request to flush pending lines from the
12582         environment.
12584         * troff/env.c, troff/env.h: Add automatic widow control feature.
12586         * troff/input.c (exit_groff):  Do process_input_stack() after
12587         do_break() but before setting exit_flag to 2.
12589         * troff/input.c: Remove FLUSH_PENDING_LINES and
12590         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12591         environment after END_TRAP token seen, but only if there aren't
12592         any more traps still unfinished.
12593         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12595 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
12597         * troff/env.c: Rename the `retain_size' member of class
12598         pending_output_line to `no_fill'.
12600         * troff/env.c (title): When the line is output, make the
12601         retain_size argument !fill.
12603         * troff/node.h: Add `hyphenated' member to struct breakpoint.
12604         * troff/node.c (space_node::get_breakpoints),
12605         (dbreak_node::get_breakpoints):  Fill this in.
12606         * troff/env.c:  Allow specification of maximum number of
12607         consecutive hyphenated lines.
12609         * troff/env.c (environment::is_empty): Add test for !current_tab.
12611 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
12613         * troff/env.c (environment::hyphenate_line): Don't completely give
12614         up if the word is not to be hyphenated; continue so that breaks
12615         can be made at break_char_node's.
12617         * lib/lib.h: Only define INT_MAX if it's not already defined;
12618         undef INT_MIN if it's already defined.
12620         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12622         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12623         This works around a bug in AT&T C++ 2.0 used with an ANSI C
12624         compiler.
12625         
12626         * macros/tmac.an (an-header): Set no-space mode.
12628         * macros/tmac.an (TH): Start a new page if necessary.
12630         * Started using ChangeLog at version 0.4.
12632 Local Variables:
12633 version-control: never
12634 coding: latin-1
12635 End: