* Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
[s-roff.git] / ChangeLog
blob415a47430f134a631bd9f82335b22d7fbaa02b3f
1 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
4         should be removed only if builddir is not srcdir.
5         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
6         (clean): Depend on `mostlyclean'.
7         (distclean): Depend on `clean'.
8         (realclean, extraclean): Depend on `distclean'.
9         (.y.cc, .y.o): Simplified.  The output files are no longer written
10         to srcdir but to builddir.
11         * Makefile.in (MDEFINES): Add `version' and `revision'.
12         (uninstall_dirs): Fix order of directories.
13         * doc/Makefile.sub (version, revision): Removed.
14         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
15         Added `HTMLDOCFILES'.
16         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
17         * contrib/mom/Makefile.sub (uninstall_sub): Don't use `momdocdir'
18         but `htmldocdir'.
19         Add missing backslash.
20         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
21         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
22         as prefix.
24         * doc/texinfo.tex (\authortt): New macro.
25         (\shortcontt): Define.
26         (\titlepage): Set \tt to \authortt while defining \authorfont.
27         (\appendixbox): New macro.
28         (\chapmacro, \appendixentry): Use \appendixbox to get even
29         indentation for letters.
30         (\summarycontents): Set \tt.
31         (\internalpagesize): Add two arguments for real paper width and
32         height as needed by pdfTeX.
33         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
34         Updated.
35         (\tempdima, \tempdimb): New temporary dimensions.
36         (\pagesizesyyy): Updated.
38 2002-06-02  Werner LEMBERG  <wl@gnu.org>
40         Adding a new keyword `papersize' to the DESC file format (similar
41         but not completely identical to grolbp's extension).  grops now has
42         a -p command line option to override `papersize'.  Finally, grolbp
43         has been adapted to the new syntax.
45         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
46         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
47         elements.
48         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
49         (CCSRCS): Add `paper.cc'.
51         * src/include/font.h (font): Add `papersize' element.
52         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
53         (font::scan_papersize): New function.
54         (font::load_desc): Use it for handling `papersize' keyword.
55         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
57         * src/devices/grops/ps.cc: Include paper.h.
58         (user_paper_length): New global variable.
59         (ps_printer): Use paper length as initializer.
60         (make_printer): Updated.
61         (main): Handle new `-p' option.
62         * src/devices/grops/grops.man: Updated.
64         * src/devices/grolbp/lbp.cc: Include paper.h.
65         s/papersizes/lbp_papersizes/.
66         (set_papersize): Use new `papersizes' array.
67         (handle_unknown_desc_command): Don't handle `papersize'.
68         (main): Use `font::scan_papersize' for handling `-p' option.
69         * src/devices/grolbp/grolbp.man: Updated.
71         * man/groff_font.man: Document `papersize'.
72         * NEWS: Updated.
74 2002-05-30  Werner LEMBERG  <wl@gnu.org>
76         * src/devices/grops/TODO: Updated.
77         * src/devices/grops/grops.man: More info on paper formats.
78         * man/groff_font.man: Document `paperheight' and `paperwidth'.
80 2002-05-29  Werner LEMBERG  <wl@gnu.org>
82         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
83         to list only if srcdir != currdir.
84         (distfiles): New target.
86         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
87         (NOMAKEDIRS): New variable.
88         (DISTDIRS): Use it.
90 2002-05-26  Werner LEMBERG  <wl@gnu.org>
92         Add .output request, similar to \! at top-level.
94         * src/roff/troff/input.cc (transparent): Remove unused declaration.
95         (output_request): New function.
96         (init_input_requests): Add it.
97         Sorted.
98         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
99         Document it.
101         * Makefile.in (MDEFINES): Add INSTALL_INFO.
102         (prepare_examples): Fix typo.
103         * doc/groff.texinfo (@direntry): Fix it.
105 2002-05-25  Werner LEMBERG  <wl@gnu.org>
107         Including the doc subdir into groff's Makefile system.
109         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
110         * configure.ac: Use it.
111         Generate `doc/Makefile'.
112         * configure: Regenerated.
114         * Makefile.in (infodir, INSTALL_INFO): New variables.
115         (MDEFINES, uninstall_dirs): Updated.
116         (OTHERDIRS): Add `doc'.
117         * Makefile.comm (CLEANDIRADD): New variable.
118         (mostlyclean): Use it.
120         * doc/Makefile.sub, doc/Makefile.in: New files.
121         * doc/Makefile: Removed.
123         * NEWS, INSTALL: Updated.
125 2002-05-24  Werner LEMBERG  <wl@gnu.org>
127         * doc/homepage.ms: Renamed to ...
128         * doc/webpage.ms: This.
129         Use `.NHR'.
130         * contrib/mom/Makefile.sub (momdocdir): Removed.
131         (HTMLDOCFILES): Prepend `momdoc/'.
132         (EXTRAEXAMPLEFILES): Removed.  Added entries to...
133         (EXAMPLEFILES): This.
134         (.SUFFIXES, .mom.ps): New.
135         (prepare_make_examples): Updated.
136         (examples/*.ps): Removed; .mom.ps will handle this.
137         (install_data): Updated.
139 2002-05-23  Werner LEMBERG  <wl@gnu.org>
141         Integrating the `mom' macro package, contributed by Peter Schaffter
142         <df191@ncf.ca>.
144         * contrib/mom/*: New subdirectory tree.
145         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
146         be used for documentation files.
147         (MDEFINES, uninstall_dirs): Use them.
148         (OTHERDIRS): Add contrib/mom.
149         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
150         @HTMLDOCDIR@.
151         * MANIFEST, NEWS: Updated.
153 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
155         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
156         if at outer level; at start-up we are at outer level.
158         * src/roff/troff/input.cc (do_suppress): Implement it.
159         Simplify \O[3].
161         Add option -p to show progress information.
162         pre-grohtml will now render only one page at a time, reducing the
163         size of needed disk resources enormously.
165         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
166         (imagePageName): New global variable.
167         (psPageName, show_progress, currentPageNo): New global variables.
168         (html_system): Close saved stderr and stdout handles.
169         (write_end_image): Accept a parameter to control \O escape.
170         (write_start_image): Adapted to new \O meaning.
171         (char_buffer::write_upto_newline): Updated.
172         (createAllPages): Replaced with...
173         (createPage): This new function to create a single page for images.
174         It uses `psselect' from the psutils package.
175         (removeAllPages): Removed.
176         (createImage): Updated.
177         Handle progress display.
178         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
179         (scanArguments): Add option -p.
180         (makeTempFiles): Updated to create temp files for psPageName and
181         imagePageName.
182         (removeTempFiles): Removed.
183         (main): Updated.
185         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
186         html_printer::write_header): Append `\0' to `buffer'.
187         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
188         (main): Handle -p.
189         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
190         Handle `text_emitted'.
191         (html_text::table_is_void): Slightly rewritten.
192         (stop): New external symbol.
193         (html_text::do_push) [DEBUGGING]: Use it and simplify.
194         (html_text::shutdown): Call `dump_stack'.
195         (html_text::do_space): Rewritten.
196         * src/devices/grohtml/grohtml.man: Document -p and the need of
197         `psselect'.
199         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
200         new \O syntax.
201         Call \O[0] if `ps4html' is active.
202         * tmac/s.tmac (@EQ, @EN): Handle html better.
203         (@TS, TE): Ditto.
204         * tmac/html.tmac: Don't use black for background colour.
206         * src/roff/troff/node.cc: Include `div.h'.
207         (troff_output_file::really_print_line): Don't use `is_on'. 
208         (troff_output_file::word_marker, troff_output_file::flush_tbuf
209         troff_output_file::check_charinfo,
210         troff_output_file::put_char_width, troff_output_file::put_char,
211         troff_output_file::determine_line_limits, troff_output_file::draw,
212         real_output_file::begin_page, glyph_color_node::tprintf,
213         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
214         Use `is_on'.
215         (troff_output_file::really_on): Call `do_motion'.
216         (suppress_node::tprint): Use `get_page_number' instead of `%'
217         register.
218         Call `reset_output_registers' conditionally on `is_on'.
220         * doc/groff.texinfo: Document new syntax of \O.
221         * NEWS, man/groff_diff.man: Updated.
223 2002-05-22  Werner LEMBERG  <wl@gnu.org>
225         * MORE.STUFF: Add info about David Frey's deroff implementation.
226         Mention troff.org.
228 2002-05-16  Werner LEMBERG  <wl@gnu.org>
230         Pic's `with' attribute now accepts positions.
232         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
233         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
234         conflicts.
235         (object_spec): Add rule for `WITH' and `position'.
236         (relative_path): Give `corner' the precedence of `CHOP'.
237         * src/preproc/pic/object.h (path): New members `pos' and
238         `is_position'.
239         * src/preproc/pic/object.cc: Updated initializers of `path'.
240         (path::follow): Handle `is_position'.
242         * doc/pic.ms: Completely updated grammar description.
243         Many typographical improvements.
245 2002-05-15  Werner LEMBERG  <wl@gnu.org>
247         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
248         code of x in range 0-127) also.
249         * doc/groff.texinfo, man/groff_diff.man: Updated.
251         Added keywords `north', `south', `east', and `west' for corners
252         in pic.
254         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
255         and WEST.
256         (yylex): Handle them.
257         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
258         (corner): Handle them.
260 2002-05-14  Werner LEMBERG  <wl@gnu.org>
262         * src/devices/grops/grops.man: Clarify handling of `download' file.
264 2002-05-11  Werner LEMBERG  <wl@gnu.org>
266         Adding `warnscale' and `spreadwarn' requests, based on a patch from
267         Jeffrey Friedl <jfriedl@yahoo.com>.
269         * src/roff/troff/input.cc (spread_limit, warn_scale,
270         warn_scaling_indicator): New global variables.
271         (warnscale_request, spreadwarn_requests): New functions.
272         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
273         (init_input_requests): Updated.
274         (error_type): Add `OUTPUT_WARNING'.
275         (do_error): Handle it.
276         (output_warning): New warning function which shows output location.
277         * src/roff/troff/env.h (spread_limit): New external variable.
278         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
279         `output_warning'.
280         (distribute_space): Emit warning if added space is larger than
281         `spread_limit'.
282         (environment::possibly_break_line): Emit warning if a line can't
283         be adjusted on both sides.
285         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
287 2002-05-08  Werner LEMBERG  <wl@gnu.org>
289         * src/roff/troff/node.cc (special_node::special_node): Use
290         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
291         \X''\% crashes, for example.
293         * doc/groff.texinfo: Document \! and \? used at top-level.
295 2002-05-06  Werner LEMBERG  <wl@gnu.org>
297         * src/preproc/pic/pic.man: Fix some keyword syntax.
298         Other minor typographical fixes.
300         * src/roff/groff/groff.man: Fix typos.
302 2002-05-04  Werner LEMBERG  <wl@gnu.org>
304         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
305         (ShortOpt[]): This to avoid problems with refer.
307         * doc/pic.ms: Fix typo.
308         Fix pic grammar description.
310         * tmac/an-old.tmac (ne): Use de1, not de.
312 2002-05-03  Werner LEMBERG  <wl@gnu.org>
314         * doc/groff.texinfo: Finished separation of glyphs and characters.
315         Don't use the string `Appendix' for appendix headers (both in
316         the text and the table of contents).
317         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
318         directories.
320         Use registers LL and LT (similar to -ms) for controlling the
321         length of title and line, respectively, in the -man and -mdoc
322         macro packages.
324         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
325         (doc-setup-page-layout): Use \n[LL] and \n[LT].
326         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
327         (TH): Use \n[LL].
328         (an-header, an-p-footer): Use \n[LT].
329         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
330         doc/groff.texinfo: Document it.
332 2002-05-02  Werner LEMBERG  <wl@gnu.org>
334         * doc/fdl.texi: New file.
335         * doc/groff.texinfo: Include it.
336         Define and use @copying.
337         Starting with separating glyph, symbol, and character.
339 2002-04-27  Werner LEMBERG  <wl@gnu.org>
341         * Makefile.in (EXEEXT): Set it.
342         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
343         programs.
345         * src/include/nonposix.h: Define GS_NAME.
346         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
348         Some preliminary changes for EMX support under OS/2.
350         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
351         __EMX__ similar to __MSDOS__.
352         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
354 2002-04-25  Werner LEMBERG  <wl@gnu.org>
356         * doc/groff.texinfo: Integrated groff_out.man.
357         Some macro fixes.
359 2002-04-23  Werner LEMBERG  <wl@gnu.org>
361         * man/groff_out.man: Minor fixes.
363 2002-04-23  Werner LEMBERG  <wl@gnu.org>
365         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
366         correct page references.
367         Fixed many index entries.
369 2002-04-23  Bernd Warken  <bwarken@mayn.de>
371         * man/roff.man: Enlarged.
373 2002-04-22  Werner LEMBERG  <wl@gnu.org>
375         * doc/groff.texinfo: More examples, other fixes.
377 2002-04-20  Werner LEMBERG  <wl@gnu.org>
379         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
380         will now form a chain, e.g.
382           .pi foo
383           .pi bar
385         is now the same as
387           .pi foo | bar
389         This is for compatibility with plan 9's troff.
391         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
392         with UNIX troff.
393         * NEWS: Updated.
395         * doc/groff.texinfo: Add documentation of remaining requests and
396         registers.
398 2002-04-19  Werner LEMBERG  <wl@gnu.org>
400         * doc/groff.texinfo: Add documentation of remaining escapes.
402         * font/devdvi/generate/tc.map: Remove entry for `sr'.
403         * font/devdvi/*TC: Regenerated.
405 2002-04-18  Werner LEMBERG  <wl@gnu.org>
407         * src/roff/troff/input.cc (token::next): Make \H behave consistently
408         if not in compatibility mode, i.e., increment relative to the
409         previous height.
410         * doc/groff.texinfo: Updated accordingly.
412 2002-04-17  Werner LEMBERG  <wl@gnu.org>
414         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
416 2002-04-16  Bernd Warken  <bwarken@mayn.de>
418         * src/roff/groff/groff.man: Improve documentation of -P option.
419         Other minor fixes.
421 2002-04-15  Werner LEMBERG  <wl@gnu.org>
423         Add new escape \F to switch font family.
425         * src/roff/troff/input.cc (token::next): Handle \F.
426         * src/roff/troff/env.cc (environment::set_family): Handle
427         `interrupted' flag.
428         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
429         Document it.
431 2002-04-14  Werner LEMBERG  <wl@gnu.org>
433         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
434         spaces in tags.
436 2002-04-13  Werner LEMBERG  <wl@gnu.org>
438         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
439         \m[] and \M[], respectively.
441         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
442         (symbol::symbol): Handle NULL string and empty string differently.
443         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
444         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
445         Add optional parameter.
446         Updated calling functions.
447         (get_copy, do_glyph_color, do_fill_color, token::next): Use
448         `symbol::is_empty'.
449         * src/roff/troff/env.cc (environment::set_font): Ditto.
451         * src/preproc/pic/troff.cc (troff_output::set_fill,
452         troff_output::reset_color: Updated.
454         * tmac/www.tmac: Updated.
456         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
457         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
458         Updated.
460         * tmac/Xps.tmac: Remove some redundant code.
462         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
463         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
464         man/groff_out.man, man/groff.man, man/groff_diff.man,
465         src/roff/groff/groff.man: Replace \f[P] with \f[].
467 2002-04-13  Bernd Warken  <bwarken@mayn.de>
469         * src/include/printer.h, src/libs/libdriver/printer.cc
470         (printer::change_fill_color): New member function.
471         * src/libs/libdriver/input.cc (parse_D_command): Use it.
473 2002-04-12  Werner LEMBERG  <wl@gnu.org>
475         * doc/groff.texinfo: Completed pass on gtroff reference.
477 2002-04-11  Werner LEMBERG  <wl@gnu.org>
479         * doc/groff.texinfo: More fixes.
481 2002-04-11  Bernd Warken  <bwarken@mayn.de>
483         * src/include/color.h: Decorate with `const'.
484         Use `size_t'.
485         Include `stddef.h'.
486         * src/libs/libgroff.color.cc: Decorate with `const'.
487         Use `size_t'.
488         (color::color): Initialize members.
489         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
490         command according to the documentation.
492         * man/groff_out.man: Updated.
493         Minor fixes.
495 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
497         * src/preproc/html/pre-html.cc (write_start_image): Remove
498         redundant output.
499         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
501         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
502         \C'hy' caused an assertion failure.
504         * src/roff/troff/env.cc (environment::environment): Initialize
505         `emitted_node'.
506         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
508 2002-04-10  Werner LEMBERG  <wl@gnu.org>
510         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
511         Document pvs request and .pvs register.
513 2002-04-09  Werner LEMBERG  <wl@gnu.org>
515         * doc/groff.texinfo: Improve and fix documentation of diversions
516         and environments.
518 2002-04-08  Werner LEMBERG  <wl@gnu.org>
520         * doc/groff.texinfo: Fix documentation of drawing functions.
521         Other minor fixes.
523 2002-04-07  Werner LEMBERG  <wl@gnu.org>
525         * doc/groff.texinfo: Better documentation of double quotes as
526         arguments.
527         Other minor fixes.
529 2002-04-06  Werner LEMBERG  <wl@gnu.org>
531         * man/groff_font.man: Document names of special characters better.
532         * doc/groff.texinfo: Minor improvements.
534         * tmac/lbp.tmac: Load latin1.tmac.
535         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
537         * font/devX*/*: Regenerated (all chars > 0x80 removed).
539 2002-04-05  Werner LEMBERG  <wl@gnu.org>
541         * tmac/tty.tmac: Don't use shc request.
542         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
543         * NEWS: Updated.
545         * man/groff_diff.man: Minor fixes.
547         * font/devlbp/*: Remove all `charXXX' entities.
549         * src/libs/libgroff/font.cc (font::~font): Deallocate
550         `special_device_coding'.
551         (font::load): Use `new' for allocating `special_device_coding'.
552         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
553         Removed unused member.
555 2002-04-05  Werner LEMBERG  <wl@gnu.org>
557         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
558         (resource_manager::do_begin_binary,
559         resource_manager::do_begin_data): Use it.
561         * doc/texinfo.tex: Updated to version 4.2.
563         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
564         (token::zero_width_break): New inline function.
565         * src/roff/troff/input.cc (token::next): Use it.
566         (token::description): Updated.
567         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
568         (token::add_to_node_list, token::process): Use it.
569         * NEWS, doc/groff.texinfo: Updated.
571         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
572         * tmac/tty.tmac: Add missing backslash.
574 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
576         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
577         `.ps' register instead of `.s' to handle fractional point sizes.
578         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
579         limit_box::output): Ditto.
580         * src/preproc/eqn/other.cc (size_box::compute_metrics,
581         size_box::output): Ditto.
582         * src/preproc/eqn/over.cc (over_box::compute_metrics,
583         over_box::output): Ditto.
584         * src/preproc/eqn/script.cc (script_box::compute_metrics,
585         script_box::output): Ditto.
586         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
587         sqrt_box::output): Ditto.
589 2002-04-03  Michael Selway  <mas@ssl.co.uk>
591         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
592         Fix typo.
594 2002-04-03  Werner LEMBERG  <wl@gnu.org>
596         * doc/homepage.ms: Reduce title size.
597         * doc/groff.texinfo: Fix documentation of .t register.
598         Fix handling of colon.
599         Fix `\' vs. `\\'.
601         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
602         only if page length is positive to avoid a loop.
604         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
605         tbl.
607 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
609         * src/include/nonposix.h, src/roff/groff/pipeline.c:
610         s/__CYGWIN32__/__CYGWIN__/.
612 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
614         * doc/gnu.xpm: New image contributed by Emily Mulley.
615         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
616         (homepage.html): Be dependent on gnu.eps.
617         * doc/homepage.ms: Updated to new image.
619         * src/devices/grohtml/post-html.cc (html_printer): New member
620         `sbuf_prev_hpos'.
621         (html_printer::flush_sbuf, html_printer::set_char): Set it.
622         (html_printer::sbuf_continuation): Use it.
624 2002-03-28  Werner LEMBERG  <wl@gnu.org>
626         * src/libs/libgroff/getopt.c: Updated to latest version.
628         * tmac/README: More on hyphen.tex license.
630 2002-03-26  Larry Kollar  <kollar@alltel.net>
632         * doc/groff.texinfo: Add documentation of most missing requests.
634 2002-03-25  Werner LEMBERG  <wl@gnu.org>
636         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
637         of `+-', `mu', and `di', respectively.
639         * font/devascii/R.proto, font/devutf8/R.proto,
640         font/devlatin1/R.proto, font/devhtml/R.proto,
641         font/devcp1047/R.proto, font/devlpb/*: Add them.
642         * font/devps/generate/textmap: Ditto.
643         * font/devps/*: Regenerated.
644         * font/devlj4/generate/text.map: Add them.
645         * font/devlj4/*: Regenerated.
646         * font/devdvi/generate/tc.map: Use them.
647         * font/devdvi/generate/texsy.map: Add them.
648         * font/devdvi/*: Regenerated.
649         * font/devX*/*: Regenerated.
651         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
652         tmac/tty-char.tmac: Updated.
654         * NEWS, man/groff_char.man: Updated.
656 2002-03-24  Werner LEMBERG  <wl@gnu.org>
658         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
659         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
660         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
661         we use `.fchar' in dvi.tmac.
662         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
663         * tmac/Xps.tmac: Simplify some char definitions.
664         Add definition for \[f/].
665         * man/groff_char.man: Updated for new X.tmac.
667         * tmac/README: New file.
669 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
671         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
672         internal .y.o rule took precendence over the .y.cc rule, compiling
673         the yacc files with gcc instead of g++.
675 2002-03-23  Werner LEMBERG  <wl@gnu.org>
677         * tmac/dvi.tmac: Add replacement font for `CB'.
679         * tmac/doc.tmac: s/request/macro/ in messages.
680         (doc-generic-macro): Improve error message.
681         * tmac/groff_mdoc.man: Minor improvements.
683 2002-03-22  Werner LEMBERG  <wl@gnu.org>
685         * doc/groff.texinfo: Document possible conflict between `tr' and
686         `char' requests.
688 2002-03-21  Werner LEMBERG  <wl@gnu.org>
690         Improve handling of hyphenation patterns.  It is now possible to
691         use most of TeX's pattern files unmodified.  To make the process
692         more flexible, a new request `hpfcode' has been added which
693         provides a character code mapping for the `hpf' request.  See
694         comment before hpf_getc() for more details.
696         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
697         functions.
698         (read_patterns_file): Additional parameter for exception dictionary.
699         Extended to recognize \pattern, \hyphenation, and \endinput.
700         (do_hyphenation_patterns_file): Updated.
701         * src/roff/troff/env.h (hpf_code_table): New extern.
703         * src/roff/troff/input.cc (hpf_code_table): New array.
704         (init_hpf_code_table, hyphenation_patterns_file_code): New
705         functions.
706         (hyphenation_code): Handle translation from `trin' correctly.
707         (main, init_input_requests): Updated.
708         (charinfo::set_translation): Handle hyphenation code also.
710         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
711         inline function.
713         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
714         char' is used for offsets in hyphenation exceptions.
716         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
718         * NEWS, man/groff_diff.man, man/groff.man: Document it.
720 2002-03-20  Larry Kollar  <kollar@alltel.net>
722         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
723         requests.
725 2002-03-18  Werner LEMBERG  <wl@gnu.org>
727         * tmac/html.tmac: Fix serious typo.
729 2002-03-17  Larry Kollar  <kollar@alltel.net>
731         * doc/groff.texinfo: Add documentation for `writec' request.
733 2002-03-17  Werner LEMBERG  <wl@gnu.org>
735         Added request `hpfa' to append hyphenation patterns.
737         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
738         parameter `append'.
739         (hyphenation_patterns_file): Renamed to...
740         (do_hyphenation_patterns_file): This.
741         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
742         functions.
743         (init_hyphen_requests): Updated.
744         * NEWS, man/groff.man, man/groff_diff.man: Document it.
746 2002-03-16  Werner LEMBERG  <wl@gnu.org>
748         Added request `writec' in analogy to `tmc'.
750         * src/roff/troff/input.cc (write_request): Renamed to...
751         (do_write_request): This.
752         Added one parameter.
753         (write_request, write_request_continue): New functions.
754         (init_input_requests): Updated.
755         * NEWS, man/groff.man, man/groff_diff.man: Document it.
757         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
758         5-10000pt.
759         * NEWS: Document it.
761 2002-03-15  Werner LEMBERG  <wl@gnu.org>
763         * man/groff.man: Add writem request.
765         Add request `trin' (translate input) to make `.asciify' work
766         correctly.  This is necessary since `charXXX' entity names are no
767         longer hardcoded in font definition files.
769         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
770         `translate_input' members.
771         (charinfo::set_asciify_code, charinfo::get_asciify_code,
772         charinfo::set_translation_input): New methods.
773         (charinfo::set_translation): Add third argument.
774         * src/roff/troff/input.cc (charinfo:set_translation): Set
775         `asciify_code'.
776         (do_translate): Add second argument.
777         (translate_input): New function.
778         (init_input_requests): Updated.
779         * src/roff/troff/node.cc (glyph_node::asciify,
780         composite_node::asciify): Use `get_asciify_code'.
782         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
784         * NEWS, man/groff.man, man/groff_diff.man: Updated.
786 2002-03-14  Larry Kollar  <kollar@alltel.net>
788         * doc/groff.texinfo: Improve documentation of .RS and .RE.
790 2002-03-14  Werner LEMBERG  <wl@gnu.org>
792         Add a new request `sizes' similar to the `sizes' command in DESC
793         files.
795         * src/roff/troff/env.cc (override_sizes): New function.
796         (init_env_requests): Use it.
797         * src/roff/troff/token.h: Export `read_string'.
798         * NEWS, man/groff_diff.man, man/groff.man: Document it.
800 2002-03-12  Werner LEMBERG  <wl@gnu.org>
802         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
804 2002-03-10  Werner LEMBERG  <wl@gnu.org>
806         * tmac/pspic.tmac: Add support for -Tdvi.
807         * tmac/dvi.tmac: Include pspic.tmac.
808         * src/devices/grodvi/grodvi.man: Document it.
809         * NEWS: Updated.
811         * font/devlj4/generate/Makefile: Fix URL of metric files.
813 2002-03-09  Werner LEMBERG  <wl@gnu.org>
815         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
817 2002-03-09  Larry Kollar  <kollar@alltel.net>
819         * tmac/groff_ms.man: Add documentation for RS and RE macros.
821 2002-03-08  Werner LEMBERG  <wl@gnu.org>
823         * doc/groff.texinfo: Fixes for texinfo 4.1.
825 2002-03-07  Werner LEMBERG  <wl@gnu.org>
827         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
828         included.
829         Handle CYGWIN properly.
831 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
833         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
834         * tmac/lbp.tmac: Add some font translations.
836 2002-03-02  Werner LEMBERG  <wl@gnu.org>
838         * font/devcp1047/R.proto, font/devlatin1/R.proto,
839         font/devhtml/R.proto: Remove `charXXX'  entries.
840         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
841         where appropriate.
843         * font/devlj4/generate/text.map: Remove `charXXX' entries.
844         * font/devlj4/*: Regenerated all font definition files.
845         * tmac/lj4.tmac: Load latin1.tmac.
847         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
848         from 2000-06-17: LJ4 metric files are *not* text files.
850         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
851         register to test for EBCDIC.
853 2002-03-01  Werner LEMBERG  <wl@gnu.org>
855         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
856         files (as grops already does).
857         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
858         files.
859         * src/devices/grops/grops.man: Document comment lines in encoding
860         files.
862         * tmac/cp1047.tmac: New file.
863         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
864         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
865         * tmac/Makefile.sub (NORMALFILES): Updated.
867         * tmac/ec.tmac: Don't load latin1.tmac again.
869         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
870         font/devps/generate/dingbats.map,
871         font/devps/generate/dingbats.rmap, font/devps/text.enc,
872         font/devps/generate/Makefile (symbolmap): Add header comment.
873         * font/devps/generate/textmap: Ditto.
874         Remove `charXXX' entries.
875         * font/devps/symbolmap: Regenerated.
876         * font/devps/*: Regenerated all font definition files.
878 2002-02-28  Werner LEMBERG  <wl@gnu.org>
880         Add color support to grodvi (for drawing colors are currently
881         translated to gray values).
883         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
884         (dvi_printer): Add `cur_color' member.
885         (dvi_printer::set_color): New function.
886         (draw_dvi_printer): Remove `fill'.
887         (draw_dvi_printer::fill_next): Pass environment as parameter.
888         Update code for new color support translated to gray.
889         (dvi_printer::set_char): Updated.
890         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
891         changes crossing the page border.
892         (dvi_printer::draw): Updated.
893         Remove cases `f' and `F'.
894         * tmac/dvi.tmac: Add color definitions.
895         * NEWS, src/devices/grodvi/grodvi.man: Updated.
897         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
898         used incorrectly.
900         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
901         versions of autoconf.
902         * configure: Updated.
904         * doc/homepage.ms: Use `.blm'.
905         * tmac/www.tmac (www-depth): New auxiliary variable.
906         (www-pop-level): Don't issue HTML tag.
907         (ULS, ULE, LI): Use absolute indentation.
909         * src/devices/grops/ps.cc (ps_printer::begin_page,
910         ps_printer::end_page): Switch forth and back to default color while
911         starting a new page.
913 2002-02-27  Werner LEMBERG  <wl@gnu.org>
915         Add EC and TC fonts to devdvi.
917         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
918         * font/devdvi/generate/cork.map: Renamed to...
919         * font/devdvi/generate/ec.map: This.
920         Remove entry for `aq'.
921         * font/devdvi/generate/tc.map: New file.
922         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
923         EC and TC fonts.
924         (FONTS): Updated.
925         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
926         * font/devdvi/Makefile.sub (DEVFILES): Updated.
927         * tmac/ec.tmac: New file.
928         * tmac/Makefile.sub (NORMALFILES): Updated.
929         * NEWS, src/devices/grodvi/grodvi.man: Updated.
930         * man/groff_char.man: Check `ECFONTS' register.
932         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
934 2002-02-26  Werner LEMBERG  <wl@gnu.org>
936         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
937         * font/devdvi/generate/cork.map: Add 'y and 'Y.
938         * font/devdvi/*: Updated.
939         * tmac/dvi.tmac: Formatting.
941         Add font `HBI' for the dvi output.
942         Add support for font families `T' and `H'.
944         * font/devdvi/HBI: New file.
945         * font/devdvi/B: Renamed to ...
946         * font/devdvi/TB: This.
947         * font/devdvi/BI: Renamed to ...
948         * font/devdvi/TBI: This.
949         * font/devdvi/I: Renamed to ...
950         * font/devdvi/TI: This.
951         * font/devdvi/R: Renamed to ...
952         * font/devdvi/TR: This.
953         * font/devdvi/H: Renamed to ...
954         * font/devdvi/HR: This.
955         * font/devdvi/Makefile.sub (DEVFILES): Updated.
956         * font/devdvi/generate/Makefile (HBI): New rule.
957         (FONTS): Updated.
958         (R, I, B, BI, H): Renamed to ...
959         (TR, TI, TB, TBI, HR): This, respectively.
960         (srcdir): Fixed.
961         * NEWS, src/devices/grodvi/grodvi.man: Updated.
962         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
963         Add `styles' and `family' keywords.
964         * tmac/dvi.tmac: Alias `H' to `HR'.
965         Add some fspecial requests for italic fonts.
966         Add TR and TI as special.
967         Add support for `_' with font CWI.
969         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
970         operator `:'.  Until now, the expression `0:1' would return 2
971         instead of 1.
973 2002-02-25  Werner LEMBERG  <wl@gnu.org>
975         * man/groff_char.man: Added some missing PS glyph names (from the
976         Adobe Glyph List).
977         * font/devps/generate/textmap, font/devps/symbolmap: Add
978         `arrowupdn'.
980         * doc/groff.texinfo: Minor additions and fixes.
981         * man/groff_diff.man: Remove documentation of fp request.  This
982         is already covered in the original troff manual.
983         Updated to be consistent with other doc files.
984         * NEWS: Updated.
986 2002-02-24  Werner LEMBERG  <wl@gnu.org>
988         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
989         TTYDEVDIRS.
990         Define new variable OTHERDEVDIRS (containing `font/devlj4
991         font/devlbp' if not EBCDIC).
992         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
993         (OTHERDEVDIRS): New variable.
994         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
995         * configure: Regenerated.
997         * NEWS, src/devices/grotty/grotty.man: Updated.
999 2002-02-23  Werner LEMBERG  <wl@gnu.org>
1001         * src/roff/troff/input.cc (do_overstrike, do_bracket,
1002         get_line_arg): Honour input level.
1004         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
1006         * font/*/*: Implement it in all font files.
1007         * font/devps/generate/textmap, font/devps/generate/symbolchars,
1008         * font/devps/symbolmap: Updated.
1009         * font/devlj4/generate/text.map: Updated.
1010         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
1011         * font/devdvi/generate/texmi.map: Updated.
1013         * font/devutf8/R.proto: Remove all `charXXX' entries.
1014         * font/devutf8/NOTES: Updated.
1016         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
1017         version 4.1.0.
1019         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
1021         * NEWS, man/groff_char.man: Updated.
1023 2002-02-21  Phil Lobbes <phil@perkpartners.com>
1025         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
1027 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1029         * src/roff/grog/grog.pl: Fix computation of $refer.
1031 2002-02-19  Werner LEMBERG  <wl@gnu.org>
1033         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
1034         `snprintf' and `vsnprintf'.
1036         * src/include/htmlindicate.h: Renamed to...
1037         * src/include/htmlhint.h: This.
1038         * src/include/Makefile.sub: Updated.
1039         * src/preproc/eqn/main.cc: Updated.
1041 2002-02-18  Werner LEMBERG  <wl@gnu.org>
1043         * man/roff.man, man/groff_out.man, man/groff.man,
1044         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
1045         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
1047         * win32-diffs: Updated.
1049 2002-02-17  Werner LEMBERG  <wl@gnu.org>
1051         * doc/Makefile (clean): Add *.eps.
1052         (MEMACROS): Removed.
1053         (TFLAG): New variable.
1054         (TROFF): Use it.
1055         Add -ww.
1056         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
1057         (.me.dit): Fixed.
1058         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
1060         * tmac/www.tmac: Use dummy diversion while resetting and disabling
1061         `.tl'.
1062         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
1063         unstripped.
1064         * src/roff/troff/troff.man: Fix order of parameter description.
1066         * NEWS: Updated.
1068 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
1070         Simplify image handling for grohtml.
1071         Fix <p> bug.
1073         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
1074         comment out.
1075         (html_text::dump_stack): Don't emit newline while debugging.
1076         (html_text::do_push) [DEBUGGING]: Print more info.
1077         (html_text::check_emit_text): Fix handling of <p>.
1078         * src/devices/grohtml/html.h: Updated.
1079         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
1080         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
1081         send its data to stderr also.
1082         Update all callers.
1083         (simple_output::space_or_newline) [DEBUGGING]: Removed.
1084         * src/devices/grohtml/post-html.cc (html_printer::do_links,
1085         html_printer::html_printer): Remove `DEBUGGING' conditionals.
1087         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
1088         Removed.
1089         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
1090         is_inline_image): Removed.
1091         (html_begin_suppress, html_end_suppress): Don't take a parameter.
1092         (graphic_start, graphic_end): Removed.
1093         * src/include/htmlindicate.h: Updated.
1094         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
1095         (macroset_template): New global variable.
1096         (makeFileName): Use `macroset_template'.
1097         (write_end_image): Don't take a parameter.
1098         Don't emit newline.
1099         (write_start_image: Don't emit newline.
1100         (char_buffer::write_upto_newline): Updated.
1101         (char_buffer::skip_to_newline): Renamed to ...
1102         (char_buffer::skip_until_newline): This.
1103         Fix code.
1104         (char_buffer::write_file_troff, char_buffer::write_file_html):
1105         Simplified.
1106         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
1107         (removeAllPages): Remove `DEBUGGING' conditionals.
1108         (addRegDef, dump_args): New functions.
1109         (char_buffer::do_html, char_buffer::do_image): Handle
1110         `www-image-template' command line variable.
1111         Add more debugging code.
1112         (addps4html): Removed.
1113         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
1115         * src/preproc/eqn/main.cc: Include `ctype.h'.
1116         (suppress_html): Removed.
1117         (do_file): Updated.
1118         (inline_equation): Use `html_begin_suppress' and
1119         `html_end_suppress'.
1120         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
1121         (troff_output::start_picture, troff_output::finish_picture):
1122         Updated.
1123         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
1124         (process_input_file): Updated.
1126         * src/roff/troff/div.cc (page_number): Set page number only if the
1127         `ps4html' register isn't defined.
1128         * src/roff/troff/input.cc (image_no): New external variable.
1129         (do_suppress): Use it.
1130         * src/roff/troff/node.h (suppress_node::image_id): New member.
1131         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
1132         (suppress_node::suppress_node): Initialize `image_id' member.
1133         (suppress_node::same): Handle `image_id' also.
1134         (suppress_node::copy): Updated.
1135         (last_image_id): New global variable.
1136         (suppress_node::tprint): Use it.
1138         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
1139         HTML-IMAGE-END.
1140         * tmac/pspic.mac (PSPIC): Fix html support.
1141         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
1142         * tmac/www.tmac (www-image-template): Set up.
1143         (HTMLINDEX): Renamed to...
1144         (HX): This.
1145         (BODYCOLOR): Renamed to...
1146         (BCL): This.
1147         (BACKGROUND): Renamed to...
1148         (BGIMG): This.
1149         (URL): Change order of parameters for consistency.
1150         (MAILTO): Renamed to...
1151         (MTO): This.
1152         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
1153         (IMG, PIMG, MPIMG): This.
1154         (HTML-H-BEGIN, HTML-H-END): Renamed to...
1155         (HnS, HnE): This.
1156         (LINKS): Renamed to...
1157         (LK): This.
1158         (LINE): Renamed to...
1159         (HR): This.
1160         (NO-AUTO-RULE): Renamed to...
1161         (NHR): This.
1162         (HTML-TL): Renamed to...
1163         (HTL): This.
1164         (UL-BEGIN, UL-END): Renamed to...
1165         (ULS, ULE): This.
1166         (DROPCAP): Renamed to...
1167         (DC): This.
1168         (TS, TE, EQ, EN): Provide default definitions.
1169         (www-make-unique-name): Updated.
1170         (HTML-IMAGE-INLINE): Fix typo.
1171         * tmac/groff_www.man: Updated.
1173         * doc/Makefile (homepage.html): Add option -r to grohtml.
1174         Use shortened image name.
1175         * doc/groff.texinfo: Updated info on grohtml strings and macros.
1176         * doc/homepage.ms: Updated and extended.
1178 2002-02-14  Werner LEMBERG  <wl@gnu.org>
1180         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
1182         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
1183         SGR_BACK_DEFAULT_COLOR): Replaced with ...
1184         (tty_printer::put_color): Use it.
1185         (ttr_printer::end_page): Simplify.
1187 2002-02-13  Werner LEMBERG  <wl@gnu.org>
1189         * tmac/groff_tmac.man: Moved to...
1190         * man/groff_tmac.man: This place.
1191         * tmac/Makefile.sub, man/Makefile.sub: Updated.
1193 2002-02-12  Werner LEMBERG  <wl@gnu.org>
1195         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
1196         $(COMPILE.c) to not include groff's assert.h.
1198         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
1199         variable.
1200         * NEWS, src/drivers/grotty/grotty.man: Document it.
1202 2002-02-11  Werner LEMBERG  <wl@gnu.org>
1204         * src/libs/snprintf/snprintf.c: Updated to latest version
1205         (2002-02-11).
1207         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
1208         test whether there is `.]' also.
1209         Don't check for spaces after `.['.
1210         * src/roff/grog/grog.sh: Do the same.
1212 2002-02-10  Werner LEMBERG  <wl@gnu.org>
1214         Illegal -> Invalid.
1216         * src/libs/libgroff/illegal.cc: Renamed to ...
1217         * src/libs/libgroff/invalid.cc: This.
1218         (illegal_char_table): Renamed to ...
1219         (invalid_char_table): This.
1220         * src/libs/libgroff/Makefile.sub: Updated.
1221         * win32-diffs: Updated.
1223         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
1224         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
1225         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
1226         font::load), src/preproc/eqn/main.cc (read_line, main),
1227         src/preproc/eqn/lex.cc (file_input::read_line),
1228         src/preproc/pic/lex.cc (file_input::read_line,
1229         simple_file_input::get, simple_file_input::peek),
1230         src/preproc/pic/main.cc (top_input::get, top_input::peek),
1231         src/preproc/pic/pic.man, src/preproc/refer/main.cc
1232         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
1233         do_bib), src/preproc/tbl/main.cc (table_input::get),
1234         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
1235         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
1236         do_zero_width, read_request, encode_char, ps_get_line,
1237         transparent_file, get_char_for_escape_name, transparent_translate,
1238         asciify, input_char_description, read_string, set_string),
1239         src/roff/troff/env.cc (environment::add_html_tag),
1240         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
1242         * src/include/lib.h: Updated.
1244         * src/preproc/eqn/eqn.cc: Removed.
1246         * NEWS: Updated.
1248         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
1250 2002-02-09  Werner LEMBERG  <wl@gnu.org>
1252         * doc/gnu.xpm: New image.
1253         * doc/Makefile (DOCS): Add homepage.ps.
1254         Add rules for converting xpm->png and xpm->eps.
1255         Use `gnu.{xpm,eps}' as image names.
1256         * doc/homepage.ms: Updated.
1258 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
1260         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
1261         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
1262         Remove calls to `B1' and `B2'
1263         (PNG-IMAGE): New macro for inclusion of images in PNG format.
1264         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
1265         auxiliary variables for MARGIN-PNG-IMAGE.
1266         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
1267         auxiliary macros for MARGIN-PNG-IMAGE.
1268         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
1269         the margin.
1270         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
1271         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
1272         (DROPCAP): New macro to produce dropcap characters.
1273         (www-do-image): Renamed back to...
1274         (HTML-DO-IMAGE): This.
1275         Updated all callers.
1277         * doc/Makefile (gnubw.eps): Updated.
1278         * doc/homepage.ms: Updated.
1280 2002-02-08  Werner LEMBERG  <wl@gnu.org>
1282         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
1283         Added `linethick' to table in section `Style Variables'.
1285 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
1287         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
1289 2002-02-07  Werner LEMBERG  <wl@gnu.org>
1291         Adding options -C (compatibility mode) and -c (grotty's old output
1292         scheme) to nroff.
1294         * src/roff/nroff/nroff.sh: Implement it.
1295         Remove `-Wall'.
1296         * NEWS, src/roff/nroff/nroff.man: Updated.
1298         * PROBLEMS: Document bison 1.32 bug.
1300         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
1302         * src/roff/troff/node.cc (make_tfont): Define it earlier.
1303         * src/roff/troff/div.h: Add prototype for `end_diversions'.
1304         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
1305         * src/roff/troff/env.h: Add prototype for `title'.
1307         Adding EBCDIC support to grotty.
1309         * src/devices/grotty/tty.cc (CSI): New macro.
1310         (SGR_*, tty_printer::put_color): Use it.
1312 2002-02-06  Werner LEMBERG  <wl@gnu.org>
1314         Implementing color support in grotty.  The new switch -c activates
1315         the old drawing scheme, disabling color at the same time.  The new
1316         switch `-i' selects italic instead of underlining (SGR only).
1318         * src/devices/grotty/tty.cc (putstring): New define instead of
1319         `fputs'.  Updated all callers.
1320         (old_drawing_scheme): New global variable.
1321         (COLOR_CHANGE): New enum value.
1322         (SGR_*): New defines containing color handling escape sequences.
1323         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
1324         (glyph): New members `back_color_idx' and `fore_color_idx'.
1325         (glyph::order): Add COLOR_CHANGE.
1326         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
1327         `is_underline', `is_bold', `cu_flag', `tty_colors'.
1328         New methods `make_underline', `make_bold', `color_to_idx',
1329         `change_color', `put_color'.
1330         (cu_flag): Moved into `tty_printer' class.
1331         (tty_printer::tty_printer): Initialize colors.
1332         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
1333         tty_printer::draw, tty_printer::end_page): Handle colors also.
1334         (main): Add options `-c' and `-i'.
1335         (usage): Updated.
1336         * NEWS, src/devices/grotty/grotty.man: Updated.
1338         * src/include/errarg.h (errarg): Add support for `unsigned int'.
1339         * src/libs/libgroff/errarg.c: Implement it.
1341         * src/include/printer.h (printer): Add `change_color' method
1342         (currently used by grotty only).
1343         * src/libs/libdriver/printer.cc: Implement it.
1344         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
1345         call to `pr->change_color'.
1347         * src/roff/troff/node.cc (troff_output_file::fill_color,
1348         troff_output_file::glyph_color): Call `do_motion'.
1350         * tmac/tty.tmac: Add color definitions.
1352         * src/roff/groff/groff.man: Minor fixes.
1354 2002-02-05  Bernd Warken  <bwarken@mayn.de>
1356         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
1357         it.  This is a preparation for future changes.
1359 2002-02-05  Werner LEMBERG  <wl@gnu.org>
1361         * src/roff/troff/input.cc (process_input_stack): Fix the case
1362         where leading spaces are followed by \f or \s; previously, an
1363         incorrect space width has been used.
1365         * doc/roff.man (quoted_char): Fix argument.
1366         (comment): Define string.
1368 2002-02-04  Larry Kollar  <kollar@alltel.net>
1370         * doc/groff.texinfo: More fixes.
1372 2002-02-04  Werner LEMBERG  <wl@gnu.org>
1374         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
1375         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
1376         `restore_compatibility' before `output_string' -- the LINE_STRING
1377         register now already contains proper switches from and to
1378         compatibility mode.
1380         * man/groff_char.man: Add Euro symbol.
1381         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
1382         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
1383         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
1384         Other minor fixes.
1386         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
1387         texinfo->pdf.
1388         (.texinfo.html): Add support for texinfo->html.
1390 2002-02-03  Werner LEMBERG  <wl@gnu.org>
1392         Added three new requests `ds1', `as1', and `ami'.  The former two
1393         are equivalent to `ds' and `as' with the difference that
1394         compatibility mode is saved on entry, switched off during string
1395         expansion, and restored on exit.  The latter is the pendant to `dei'
1396         for `am'.
1398         (do_define_string): Use `define_mode' and `calling mode'.
1399         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
1400         end of string, respectively.
1401         (define_string, append_string): Use `calling_mode'.
1402         (define_nocomp_string, append_nocomp_string,
1403         define_string_indirect): New functions.
1404         (init_input_requests): Updated.
1405         * NEWS, man/groff_diff.man, man/groff.man: Document it.
1407         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
1408         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
1409         mm macro package accesses this string register directly.
1410         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
1412         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
1413         compatibility mode.
1415 2002-02-02  Larry Kollar  <kollar@alltel.net>
1417         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
1419 2002-01-31  Werner LEMBERG  <wl@gnu.org>
1421         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
1423 2002-01-31  Bernd Warken  <bwarken@mayn.de>
1425         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
1426         * man/groff_out.man: Revised and updated.
1428 2002-01-30  Bernd Warken  <bwarken@mayn.de>
1430         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
1431         out the unused `{' and `}' commands.  Undefined by default.
1432         (IntArray): Make `data' private.
1433         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
1434         new methods instead.
1435         (skip_line_D, skip_to_end_of_line): New functions.
1436         (get_D_fixed_args): Use `skip_line_D'.
1437         Changed to handle dummy odd arguments by ...
1438         (get_D_fixed_args_odd_dummy): This new function.
1439         (get_D_variable_args): Split some code into ...
1440         (get_possibly_integer_args): This new function.
1441         (send_draw): Use more `const'.
1442         (delete_current_env): New function.
1443         (position_to_end_of_args): Use `size_t'.
1444         Updated.
1445         (send_draw): Updated.
1446         (parse_D_command): Handle `c', `C', and `t' better.
1447         Updated.
1448         (do_file): Updated.
1450 2002-01-29  Werner LEMBERG  <wl@gnu.org>
1452         * NEWS: Revised.
1453         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
1454         @Def...ListEnd which replaces @Def...x.  This is necessary to get
1455         proper HTML output -- see the comment in the file for more
1456         information.
1457         Updated all calls.
1459 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
1461         Fixes to make color changes of 2002-01-21 work with grohtml.
1463         * src/devices/grohtml/post-html.cc (style): Updated.
1464         (html_printer): Remove unused methods.
1465         (html_printer::do_font, html_printer::draw, html_printer::set_char,
1466         html_printer::special): Updated.
1467         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
1468         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
1469         Added some debugging code.
1470         (html_text::start_tag): Updated.
1471         (html_text::do_push): New method.
1472         (html_text::push_para): Call it.
1473         Add method for handling color.
1474         (html_text::do_color): Updated.
1475         (html_text::shutdown): Handle color.
1476         * src/devices/grohtml/html-text.h (tag_definition): New member
1477         `col'.
1478         Updated.
1480 2002-01-28  Werner LEMBERG  <wl@gnu.org>
1482         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
1484 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
1486         Add two switches -a and -g to control the antialiasing bits for
1487         text and graphics, respectively.
1489         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
1490         `-g'.
1491         * src/devices/grohtml/grohtml.man: Document them.
1492         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
1493         New macros.
1494         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
1495         (setupAntiAlias): New function.
1496         (createAllPages): Updated.
1497         (scanArguments): Handle `-a' and `-g'.
1498         (main): Call `setupAntiAlias'.
1499         * NEWS: Updated.
1501 2002-01-27  Werner LEMBERG  <wl@gnu.org>
1503         * doc/groff.texinfo (Def*): Call index function after deffn.
1505         * tmac/html.tmac: Call `nroff' request.
1507 2002-01-26  Larry Kollar  <kollar@alltel.net>
1509         * tmac/groff_ms.man: Add some omissions.
1511 2002-01-25  Larry Kollar  <kollar@alltel.net>
1513         * tmac/groff_ms.man: Typographical improvements.
1515 2002-01-25  Werner LEMBERG  <wl@gnu.org>
1517         * doc/groff.texinfo: Updated version and copyright.
1518         * src/devices/grops/grops.man: Updated.
1520         * tmac/groff_tmac.man: Fix `ig' macro.
1522         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
1523         nroff mode.
1524         Use `.ne' unconditionally everywhere.
1525         (TS): Only insert some vertical space.  Doing a page break is no
1526         longer necessary due to the redefinition of the `ne' request.
1528         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
1529         warning for unknown subcommands but parse and pass them to the
1530         device driver.
1532 2002-01-24  Werner LEMBERG  <wl@gnu.org>
1534         * tmac/groff_www.man, NEWS: Fix typos.
1536 2002-01-21  Werner LEMBERG  <wl@gnu.org>
1538         Complete revision of color support:
1540           Adapt programs to the new libdriver/input.cc.
1542           Color spaces are no longer converted to RGB but transferred as-is
1543           in the troff intermediate output format.
1545           Handle default color gracefully.  troff now supports a `default'
1546           color (which can't be changed).
1548           grops will now use the proper color space functions if available.
1550           Update pic.
1552         Note that currently grohtml doesn't handle colors properly.  This
1553         has to be fixed.
1555         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
1556         (ui_to_a): New function.
1557         * src/include/lib.h: Updated.
1559         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
1560         (color): Simplified; removed all `double' members and methods.
1561         A new array `components' now holds the color parameters.
1562         (color::is_default, color::get_components): New methods.
1563         (color::operator==, color:operator!=): New.
1564         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
1565         to make access to the `components' array more comprehensible.
1566         * src/libs/libgroff/color.cc: Implement new color support.
1567         (atoh): Small fixes.
1568         (color::read_encoding): Simplified for new troff intermediate color
1569         output format.
1570         (default_color): New global variable.
1572         * src/roff/troff/input.cc (default_symbol): New global variable.
1573         (lookup_color): Use it.
1574         (default_black): Removed.
1575         (do_glyph_color, do_fill_color): Simplified.
1576         (define_color): Handle default color.
1577         Improve warnings.
1578         (do_if_request): Handle default color.
1579         * src/roff/troff/env.cc (environment::environment): Initialize
1580         colors with `default_color'.
1581         * src/roff/troff/node.cc (troff_output_file::put): Add method
1582         for `unsigned int'.
1583         (troff_output_file::hex): Removed.
1584         (troff_output_file::fill_color, troff_output_file::glyph_color):
1585         Updated to include/color.h and libdriver/input.cc.
1587         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
1588         fill color properly (identically to the outline color).  \D'f...'
1589         doesn't work any more.
1590         All function calls to it updated.
1592         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
1593         Updated.
1594         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
1595         Updated.
1597         * src/devices/grops/ps.cc (ps_output::put_color): New method.
1598         (ps_printer::sbuf_color): Make a real member instead of pointer.
1599         (ps_printer::fill_color, ps_printer::output_color): Removed.
1600         (ps_printer::ps_printer): Updated.
1601         (ps_printer::set_char): Ditto.
1602         (ps_printer::set_color): Use various color schemes.
1603         Use `put_color' method.
1604         (ps_printer::flush_sbuf): Don't set color.
1605         (ps_printer::fill_path): Take `environment' as parameter.
1606         Simplify color handling.
1607         (ps_printer::set_line_thickness): Renamed to ...
1608         (ps_printer::set_line_thickness_and_color): This (and updated).
1609         (ps_printer::set_color): Change second parameter from `complete'
1610         to `fill' which better describes what it does.
1611         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
1612         and text in the right order.
1613         Updated.
1614         Remove branches for `f' and `F'; this is handled by
1615         libdriver/input.cc.
1616         * src/devices/grops/ps.h: Updated.
1617         * font/devps/prologue (FL): Redefined.
1618         ({F,C}r,k,g: New color functions (with and without filling).
1620         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
1621         * man/groff_diff.man, man/groff.man, man/groff_out.man,
1622         doc/groff.texinfo, NEWS: Updated.
1624 2002-01-20  Bernd Warken  <bwarken@mayn.de>
1626         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
1627         in this file for what has been changed.
1629 2002-01-19  Werner LEMBERG  <wl@gnu.org>
1631         * test-groff: Fix GROFF_FONT_PATH.
1632         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
1633         is read before .TH or .Dd is parsed.
1635 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
1637         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
1638         quadrant boundaries.
1640 2002-01-18  Werner LEMBERG  <wl@gnu.org>
1642         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
1643         applied last patch.
1645 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
1647         * tmac/doc.common: Initialize %I register for the %I macro to
1648         avoid (harmless) warning.
1649         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
1650         when in the SYNOPSIS section.
1652 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
1654         * src/preproc/pic/lex.cc (get_token): Fix typo.
1656 2002-01-17  Werner LEMBERG  <wl@gnu.org>
1658         * devices/grops/ps.cc: Fix incorrectly applied last patch.
1660 2002-01-17  Larry Kollar  <kollar@alltel.net>
1662         * tmac/groff_ms.man: Completely rewritten.
1664 2002-01-16  Werner LEMBERG  <wl@gnu.org>
1666         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
1668 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
1670         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
1671         fill colors.
1672         (ps_printer::draw): Ditto.
1674 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
1676         * tmac/groff_mdoc.man: Minor fixes.
1678 2002-01-13  Werner LEMBERG  <wl@gnu.org>
1680         * man/groff_out.man: Some fixes.
1682 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
1684         * doc/pic.ms: Fix typos.
1686 2002-01-12  Werner LEMBERG  <wl@gnu.org>
1688         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
1690 2002-01-10  Werner LEMBERG  <wl@gnu.org>
1692         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
1693         symbols.
1694         * NEWS: Updated.
1696 2002-01-09  Bernd Warken  <bwarken@mayn.de>
1698         * man/groff_out.man: Revised.
1699         * man/roff.man: Minor fixes.
1700         * src/roff/troff/troff.man: Some reordering.
1702 2002-01-09  Werner LEMBERG  <wl@gnu.org>
1704         * tmac/an-old.tmac: Add dummy macros for equation support.
1706 2002-01-07  Werner LEMBERG  <wl@gnu.org>
1708         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
1710         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
1711         man pages.
1712         * tmac/groff_man.man: Small improvements.
1714 2002-01-07  Bernd Warken  <bwarken@mayn.de>
1716         * man/groff_diff.man: Revised.
1718 2002-01-06  Werner LEMBERG  <wl@gnu.org>
1720         * tmac/www.tmac: Remove extraneous backslash.
1722 2002-01-06  Bernd Warken  <bwarken@mayn.de>
1724         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
1726 2002-01-05  Werner LEMBERG  <wl@gnu.org>
1728         Integrated groffer, contributed by Bernd Warken.
1730         * contrib/groffer/*: New.       
1731         * Makefile.in, NEWS: Updated.
1733 2002-01-04  Werner LEMBERG  <wl@gnu.org>
1735         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
1736         registers defined in macro packages.
1737         Revising the ms part.
1739 2002-01-04  Larry Kollar  <kollar@alltel.net>
1741         * doc/groff.texinfo: Add documentation for ms macros.
1743 2002-01-02  Werner LEMBERG  <wl@gnu.org>
1745         First step in adding PS support for the Euro symbol.  `eu' is the
1746         official Euro logo, `Eu' is a font-specific glyph variant.
1748         * font/devps/text.enc: Add `Euro' at position 9.
1749         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
1750         * font/devps/symbolmap: Regenerated.
1752         * NEWS: Updated.
1754 2002-01-02  Bernd Warken  <bwarken@mayn.de>
1756         * man/roff.man: Revised.
1758 2002-01-01  Bernd Warken  <bwarken@mayn.de>
1760         * src/roff/groff/groff.man: Completely rewritten.
1762 2001-12-31  Werner LEMBERG  <wl@gnu.org>
1764         * doc/Makefile: Updated.
1766 2001-12-30  Werner LEMBERG  <wl@gnu.org>
1768         * tmac/www.tmac: Make all names of internal macros/registers/strings
1769         lowercase, and prepend `www-'.
1770         Other minor changes.
1771         * src/roff/troff/troff.man: Add preprocessor string at BOF.
1773 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
1775         Implement option `-b' in grohtml to set the HTML background colour.
1777         * src/devices/grohtml/post-html.cc (default_background): New global
1778         variable.
1779         (html_printer::html_printer): Initialize `background' to
1780         `default_background'.
1781         (main): Implement option `-b'.
1782         (usage): Updated.
1783         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
1784         of `-b' option.
1785         * src/devices/grohtml/grohtml.man: Updated.
1786         * doc/Makefile (.ms.html): Use `-b'.
1787         * tmac/html.tmac: Don't set background color.
1789         Add new grohtml tag `.html-tl'.
1791         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
1792         member variable.
1793         (title_desc::title_desc): Updated.
1794         (html_printer::troff_tag): Handle `.html-tl'.
1795         (html_printer::write_title): Use `with_h1'.
1796         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
1797         (HTML-TL): New macro.
1799         Add support for unordered lists in HTML.
1801         * tmac/www.tmac (www-level): New auxiliary register.
1802         (www-level1, www-level2, www-level3): New auxiliary strings.
1803         (www-push-level, www-pop-level): New auxiliary macros
1804         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
1806         Miscellaneous.
1808         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
1809         (DEFAULT_VERTICAL_OFFSET): Removed.
1810         (IMAGE_BOARDER_PIXELS): Set to 0.
1811         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
1812         (vertical_offset): Initialize with 0.
1813         (gsPaper): New global variable.
1814         (get_resolution): Scan for and return unsigned int.
1815         (get_papersize): New function to get paper length from devps/DESC.
1816         (determine_vertical_offset): New function.
1817         (createAllPages): Produce gray-level images and use proper page
1818         length.
1819         (createImage): Use `-quiet' option of pnmcrop.
1820         (addZ): Fix passing of `-Z'.
1821         (scanArguments): Fix handling of `-o'.
1822         (main): Call `determine_vertical_offset'.
1823         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
1824         code for `l'.
1826         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
1827         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
1828         glyph descenders properly.
1830         * doc/homepage.ms: Include `gnubw.eps'.
1831         * doc/Makefile (gnubw.eps): New rule.
1832         (homepage.html): Depend on `gnubw.eps'.
1834 2001-12-25  Werner LEMBERG  <wl@gnu.org>
1836         * src/roff/troff/input.cc (default_black): Fix return value.
1838 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
1840         * tmac/doc-common (Dt): Change output of architecture strings.
1841         Do some syntax cleanup.
1842         * tmac/groff_mdoc.man: Updated.
1844 2001-12-23  Werner LEMBERG  <wl@gnu.org>
1846         Adding an `itc' request (input line trap accepting \c).
1848         * src/roff/troff/env.h (environment): New member
1849         `continued_input_trap'.
1850         Make `do_input_trap' a friend function instead of `input_trap'.
1851         * src/roff/troff/env.cc (environment::environment,
1852         environment::copy): Updated.
1853         (environment::newline): Implement it.
1854         (do_input_trap): New function.
1855         (input_trap): Call `do_input_trap'.
1856         (input_trap_continued): New function.
1857         (init_env_requests): Updated.
1858         * src/roff/troff/TODO: Updated.
1860         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
1861         `.it'.
1863         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
1865 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
1867         * tmac/doc-common, tmac/doc-syms: Small updates.
1869 2001-12-22  Colin Watson  <cjwatson@debian.org>
1871         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
1873 2001-12-22  Bernd Warken  <bwarken@mayn.de>
1875         * MANIFEST: New file.
1877 2001-12-22  Werner LEMBERG  <wl@gnu.org>
1879         * src/preproc/grn/grn.man: Updated.
1881 2001-12-22  Solar Designer  <solar@openwall.com>
1883         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
1884         (DBRead): Use it.
1886 2001-12-19  Werner LEMBERG  <wl@gnu.org>
1888         Implement a fallback character request `.fchar'.
1890         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
1891         (is_fallback): New inline function.
1892         * src/roff/troff/input.cc (do_define_character): New function.
1893         (define_character): Call `do_define_character'.
1894         (define_fallback_character): New function.
1895         (init_input_requests): Add `fchar'.
1896         (charinfo::charinfo): Updated.
1897         (charinfo::set_macro): New argument to set `fallback' flag.
1898         * src/roff/troff/node.cc (make_glyph_node, make_node,
1899         node::add_char): Check `fallback' flag.
1900         * NEWS, man/groff_diff.man, man/groff_man: Updated.
1902 2001-12-16  Werner LEMBERG  <wl@gnu.org>
1904         * groff.texinfo: Document exact search algorithm for glyphs.
1906 2001-12-15  Werner LEMBERG  <wl@gnu.org>
1908         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
1909         the left side of $(MANPAGES) rule to make it always non-empty.
1911 2001-12-14  Werner LEMBERG  <wl@gnu.org>
1913         * src/roff/troff/input.cc (default_black): Define default color
1914         `black' if not yet defined.
1916 2001-12-13  Werner LEMBERG  <wl@gnu.org>
1918         Implement new string-valued register `.fn' to return the current
1919         real (internal) font name.
1921         * env.cc (environment::get_font_name_string): New function.
1922         (init_env_requests): Add `.fn' register.
1923         * env.h (environment): Updated.
1924         * node.cc (font_info): Make `get_font_name' a friend.
1925         (get_font_name): New function.
1926         * node.h: Updated.
1928         * man/groff_diff.man, man/groff.man, NEWS: Updated.
1930 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1932         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
1934 2001-12-12  Werner LEMBERG  <wl@gnu.org>
1936         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
1938 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
1940         * man/groff_diff.man: Adding documentation for \O.
1942 2001-12-10  Werner LEMBERG  <wl@gnu.org>
1944         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
1945         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
1947 2001-12-09  Werner LEMBERG  <wl@gnu.org>
1949         * man/roff.man: Revised.
1950         * src/roff/groff/groff.man: Replace man page references with a
1951         pointer to roff.man.
1953 2001-12-09  Bernd Warken  <bwarken@mayn.de>
1955         * man/roff.man: Completely rewritten.
1957 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
1959         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
1961 2001-12-05  Werner LEMBERG  <wl@gnu.org>
1963         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
1964         longer used.
1965         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
1966         order of initializers.
1967         * NEWS: Updated.
1969 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
1971         * doc/groff.texinfo: Fix documentation of \O.
1973         * src/devices/grohtml/html-text.cc (html_text::do_indent,
1974         html_text::do_table, html_text::do_emittext, html_text::do_para):
1975         Use `const' for first argument.
1976         (html_text::do_table): Use cast.
1977         * src/devices/grohtml/html-text.h: Updated.
1978         * src/devices/grohtml/output.cc (simple_output::put_string): Add
1979         method for `const string &s'.
1980         * src/devices/grohtml/html.h: Updated.
1981         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
1982         (ANCHOR_TEMPLATE): Modified.
1983         (manufacture_headings): New global variable to handle `-h' option.
1984         (is_subsection): Removed.
1985         (char_buffer::add_string): Add `const' to first argument.
1986         Protect against invalid string argument.
1987         Add method for `const string &s'.
1988         (text_glob): Completely redesigned.
1989         (page): Use `const' for strings and remove string length variable.
1990         (page::add_html): Removed.
1991         (page::add_end_encode): New member function.
1992         (to_unicode): Moved upwards.
1993         (title_desc, header_desc): Updated.
1994         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
1995         definition.
1996         (html_printer::is_bold, html_printer::make_bold): New member
1997         functions.
1998         (html_printer::end_of_line): Updated.
1999         (generate_img_src, html_printer::do_auto_image,
2000         html_printer::do_title, html_printer::write_header,
2001         html_printer::determine_header_level, html_printer::do_heading,
2002         html_printer::do_linelength, html_printer::do_pageoffset,
2003         html_printer::do_indentation, html_printer::do_tempindent,
2004         html_printer::do_indentedparagraph, html_printer::do_break,
2005         html_printer::flush_sbuf, get_html_translation,
2006         html_printer::begin_page, html_printer::special): Rewritten to get
2007         rid of static string length limit.
2008         (html_printer::troff_tag): Added `.no-auto-rule'.
2009         (html_printer::flush_globs): Small fix.
2010         (html_printer::determine_space): Don't compute `space_width'.
2011         (html_printer::translate_to_html): Renamed to ...
2012         (html_printer::emit_html): This (with updates).
2013         (html_printer::write_header): Implement `-h' option.
2014         (html_printer::draw): Remove commented-out code.  Handle `F'
2015         command.
2016         (html_printer::add_char_to_sbuf): Removed.
2017         (html_printer::add_to_sbuf): Rewritten.
2018         (html_printer::sbuf_continuation): Fixed.
2019         (html_printer::seen_backwards_escape, reverse,
2020         html_printer::remove_last_char_from_sbuf): Removed.
2021         (char_translate_to_html, str_translate_to_html): Removed.
2022         (html_printer::overstrike): New function member.
2023         (html_printer::set_char): Use it.
2024         (html_printer::do_body): New function member.
2025         (html_printer::~html_printer): Use it.
2026         (main): Handle `-h' option.
2027         (usage): Updated.
2028         * src/devices/grohtml/grohtml.man: Document -h switch.
2030         * src/preproc/html/pre-html.cc: Include searchpath.h
2031         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
2032         (get_resolution): New function.
2033         (checkImageDir): Use `0777' permissions in mkdir()
2034         (write_start_image): Rewritten to use `\O[5...]'.
2035         (createImage, generateImages): Updated.
2036         (main): Handle `F' and `h' options.
2037         Use `get_resolution'.
2039         * src/roff/troff/input.cc (begin, end, image): Removed.
2040         (do_suppress): Take parameter.
2041         Handle modified syntax of `\O'.
2042         (token::next): Updated.
2043         (init_markup_requests): Removed.
2044         (main): Updated.
2046         * src/roff/troff/div.h: Add declaration for begin_page().
2048         * tmac/color-html.tmac: Removed.  Contents moved to...
2049         * tmac/html.tmac: Here.  Set background color.
2050         * tmac/color.tmac: Removed.  Contents moved to...
2051         * tmac/ps.tmac: Here.
2052         * tmac/www.tmac: Remove the title command when generating images
2053         for html.
2054         (NO_AUTO_RULE): New macro.
2055         (HTML_DO_IMAGE): Use revised `\O' escapes.
2056         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
2058 2001-12-02  Werner LEMBERG  <wl@gnu.org>
2060         * tmac/groff_mdoc.man: Fix typo.
2062 2001-12-01  Colin Watson  <cjwatson@debian.org>
2064         * man/roff.man: Fix typo.
2066 2001-11-29  Werner LEMBERG  <wl@gnu.org>
2068         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
2069         stdlib.h.
2071         * src/roff/troff/input.cc (read_draw_node): Emit error message if
2072         more than one argument to \D'f ...'.
2074         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
2076 2001-11-28  Werner LEMBERG  <wl@gnu.org>
2078         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
2079         loaded only once.
2081         * tmac/groff_man.man: Minor cosmetic fix.
2083 2001-11-27  Werner LEMBERG  <wl@gnu.org>
2085         * src/roff/groff/groff.man, tmac/groff_tmac.man,
2086         tmac/groff_www.man: s/mwww/www/.
2088 2001-11-26  Werner LEMBERG  <wl@gnu.org>
2090         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
2091         * configure: Regenerated.
2092         * win32-diffs: Updated.
2094         * tmac/groff_mwww.tmac: Renamed to ...
2095         * tmac/groff_www.tmac: This.
2096         * tmac/mwww.tmac: Removed.
2097         * NEWS, tmac/Makefile.sub: Updated.
2099 2001-11-21  Werner LEMBERG  <wl@gnu.org>
2101         * doc/groff.texinfo: Improve documentation of the `\v' escape.
2102         Fix explanation of `\D' and `rt'.
2104 2001-11-20  Werner LEMBERG  <wl@gnu.org>
2106         * tmac/an-old.tmac (an-header): Set header length equal to page
2107         width.
2108         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
2109         minor fixes.
2110         * NEWS: Small fix.
2112 2001-11-19  Werner LEMBERG  <wl@gnu.org>
2114         * NEWS, man/Makefile.sub: Updated.
2116 2001-11-19  Bernd Warken  <bwarken@mayn.de>
2118         * man/ditroff.man: New file.
2120 2001-11-17  Werner LEMBERG  <wl@gnu.org>
2122         * man/groff_differences.man: Renamed to ...
2123         * man/groff_diff.man: This.  Updated.
2124         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
2126         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
2127         * src/preproc/html/pushback.cc: This.  Updated.
2128         * src/preproc/html/pushbackbuffer.h: Renamed to ...
2129         * src/preproc/html/pushback.h: This.
2130         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
2131         Updated.
2133         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
2134         * src/libs/libgroff/htmlhint.cc: This.
2135         * src/libs/libgroff/Makefile.sub: Updated.
2137         * tmac/an-old.tmac (an-end): Fix page length.
2139 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2141         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
2142         * man/Makefile.sub: Include groff_differences.man.
2143         * VERSION: Set to 1.18.
2144         * REVISION: Set to 0.
2146 2001-11-16  Bernd Warken  <bwarken@mayn.de>
2148         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
2149         the second dot (or ending macro name) to end a macro.
2150         * doc/groff.texinfo: Doc fix.
2152 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
2154         * tmac/doc-common (doc-header): Handle very long document titles
2155         better.
2157 2001-11-16  Werner LEMBERG  <wl@gnu.org>
2159         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
2161 2001-11-15  Werner LEMBERG  <wl@gnu.org>
2163         * src/roff/troff/troff.man: Revised and split into troff.man and...
2164         * man/groff_differences.man: New file.
2165         * NEWS: Updated.
2167 2001-11-13  Werner LEMBERG  <wl@gnu.org>
2169         * tmac/an-old.tmac (TS, TE): New macros for table support.
2171 2001-11-12  Werner LEMBERG  <wl@gnu.org>
2173         * src/include/lib.h: Provide a fix for emx to not include
2174         groff-getopt.h.
2176 2001-10-27  Werner LEMBERG  <wl@gnu.org>
2178         * src/roff/troff/input.cc (substring_macro): Fix computation of
2179         boundary values.
2181 2001-10-20  Werner LEMBERG  <wl@gnu.org>
2183         Undo change from 2001-08-28.
2185         * src/roff/troff/input.cc (have_input): New global variable.
2186         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
2187         in compatibility mode.
2188         (process_input_stack): Use it.
2190 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
2192         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
2193         being handled as end-of-sentence characters,
2195 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
2197         * src/roff/troff/input.cc (file_iterator): New members
2198         `suppress_newline_flag' and `seen_escape'.
2199         (file_iterator::next_file): Updated.
2200         (file_iterator::fill): Use it.
2201         (string_iterator): New member `suppress_newline_flag'.
2202         (string_iterator::fill): Set it.
2203         (get_color_element): Use MAX_COLOR_VAL.
2204         * src/roff/troff/env.cc (environment): Remove `need_eol'.
2205         (no_fill): Don't set `env->ignore_next_eol'.
2206         (environment::newline): Handle `eol' tag properly.
2207         Emit `eol.ce'.
2208         (environment::add_html_tag): Set `env->ignore_next_eol'.
2209         Don't handle `.ce'.
2210         * src/roff/troff/env.h (environment): Updated.
2212         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
2213         member function.
2214         (html_printer::outstanding_eol): New member function.
2215         (html_printer::do_title): Use new functions.
2216         (html_printer::troff_tag): Test `id_eol_ce'.
2218 2001-10-10  Werner LEMBERG  <wl@gnu.org>
2220         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
2221         files work with -C also.
2223 2001-10-05  Werner LEMBERG  <wl@gnu.org>
2225         * doc/pic.ms: Minor fix.
2226         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
2227         as a valid command line switch.
2228         * src/devices/grohtml/post-html.cc (main): Ditto.
2229         (usage): Updated.
2230         * src/devices/grohtml/grohtml.man: Updated.
2231         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
2233 2001-10-04  Werner LEMBERG  <wl@gnu.org>
2235         Implementing color support in troff, pic, grops, and grohtml.  These
2236         changes are based on a major patch provided by Gaius Mulley
2237         <gaius@glam.ac.uk>.
2239         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
2240         definitions with both hex values and fractions.
2242         New escapes: \m and \M for drawing and background color,
2243         respectively.  This corresponds to the troff output commands `m'
2244         and `DF'.
2246         groff and troff accept command line switch `-c' to disable color
2247         output (which is automatically disabled in compatibility mode).
2249         New scaling indicator `f' for fractions (1f = 65536u).
2251         New conditional operator `m' to test for defined colors with `if'
2252         and `ie'.
2254         New keywords `color' (or `colour', `colored', `coloured'), `outline'
2255         (or `outlined'), and `shaded' added to pic.
2257         * src/include/color.h: New file.
2258         * src/include/driver.h: Include it.
2259         * src/include/printer.h: Include color.h.
2260         (environment): New members `col' and `fill'.
2261         (printer): Remove `adjust_arc_center' member function.
2262         * src/include/Makefile.sub: Updated.
2264         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
2265         `env.fill'.
2266         Handle `m' and `DF' troff commands.
2267         * src/libs/libgroff/color.cc: New file.
2268         * src/libs/libgroff/Makefile.sub: Updated.
2270         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
2271         (stop): Removed.
2272         (createImage): Fix computation of `y2'.
2273         Use `pnmcrop' also.
2274         (buffer::write_file_html): Remove calls to `stop'.
2276         * src/preproc/pic/common.h (common_output): New abstract function
2277         members `set_color', `reset_color', `get_last_filled', and
2278         `get_outline_color'.
2279         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
2280         (object_spec): Add members `shaded' and `outlined'.
2281         * src/preproc/pic/output.h (output): `command' is now abstract.
2282         New function members `set_color', `reset_color', `get_last_filled',
2283         and `get_outline_color'.
2284         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
2285         `outline[d]', and `shaded'.
2286         * src/preproc/pic/object.cc (output::command): Removed.
2287         (output::set_location): Moved to output.h.
2288         (graphic_object): Add protected members `outline_color' and
2289         `color_fill'.
2290         Add member functions `set_outline_color', `get_outline_color', and
2291         `set_fill_color'.
2292         (closed_object): Add member function `set_fill_color'.
2293         Add member `color_fill'.
2294         (graphic_object::print_text): Use `out->set_color' and
2295         `out->reset_color'.
2296         (box_object::print, ellipse_object::print, circle_object::print,
2297         line_object::print, spline_object::print, arc_object::print): Ditto.
2298         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
2299         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
2300         `SHADED', making them `%left'.
2301         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
2302         * src/preproc/pic/tex.cc (tex_output): New dummy function members
2303         `set_color', `reset_color', `get_last_filled', and
2304         `get_outline_color'.
2305         * src/preproc/pic/troff.cc (simple_output): New abstract function
2306         members `set_color', `reset_color', and `get_last_filled'.
2307         (simple_output::polygon, simple_output::circle,
2308         simple_output::ellipse): Use `get_last_filled'.
2309         (troff_output): New members `last_filled' and `last_outlined'.
2310         New function members `set_color', `reset_color', `get_last_filled',
2311         and `get_outline_color'.
2312         (troff_output::finish_picture): Use `reset_color'.
2313         (troff_output::set_fill): Test `last_filled'.
2314         * src/preproc/pic/pic.man: Updated.
2316         * src/roff/groff/groff.cc (main): Implement `-c' option.
2317         (synopsis, help): Updated.
2318         src/roff/groff/groff.man: Updated.
2320         * src/roff/troff/troff.h: Include color.h.
2321         (warning_type): Add WARN_COLOR.
2322         * src/roff/troff/env.h (environment): New members
2323         `{cur,prev}_{glyph,fill}_color'.
2324         New member functions `get_{prev_,}{glyph,fill}_color'.
2325         * src/roff/troff/env.cc: Initialize and implement them.
2326         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
2327         Replace `NULL' with `0' everywhere for consistency.
2328         (lookup_color, default_black, do_glyph_color, do_fill_color,
2329         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
2330         define_color): New functions.
2331         (token::next): Implement \M and \m escapes.
2332         (do_if_request): Implement `m' operator.
2333         (usage): Updated.
2334         (main): Implement `-c' option.
2335         (init_markup_requests): Add `defcolor' request.
2336         (warning_table): Add `color' warning.
2337         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
2338         classes.
2339         * src/roff/troff/node.cc (troff_output_file): New members
2340         `current_{page,glyph}color'.  New member functions `put_hex',
2341         `glyph_color', and `fill_color'.
2342         (glyph_color_node::*, fill_color_node::*): Implement it.
2343         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
2344         (parse_term): Add support for `f'.
2345         * src/roff/troff/troff.man: Updated.
2347         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
2348         entry for `F'.
2349         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
2350         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
2352         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
2353         (tag_definition): Use `void *' for arg1.
2354         (html_text): New member functions `do_color' and `done_color'.
2355         Use `void *' for second parameter of `push_para' member function.
2356         New `push_para' member function with a single parameter.
2357         Use `char *' for parameter of `issue_table_begin' member funtion.
2358         New `issue_color_begin' member function.
2359         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
2360         COLOR_TAG.
2361         (html_text::issue_color_begin): New function.
2362         (html_text::issue_table_begin): Use `char *' for parameter.
2363         (html_text::start_tag, html_text::shutdown,
2364         html_text::check_emit_text): Updated.
2365         (html_text::push_para): Use `void *' for second parameter.
2366         Add same function with only one parameter.
2367         (html_text::do_*): Updated.
2368         (html_text::do_color, html_text::done_color): New functions.
2369         * src/devices/grohtml/post-html.cc (style): New member `col'.
2370         Mew member `style' with 6 parameters.
2371         (style::style, style::operator==): Updated.
2372         (html_printer::do_font): Use it.
2373         (html_printer::draw): Add dummy entry for `F'.
2374         (html_printer::set_char): Updated.
2375         * src/devices/grohtml/grohtml.man: Updated.
2377         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
2378         trailing zeroes removed.
2379         (ps_printer): New members `sbuf_color', `fill_color', and
2380         `output_color'.
2381         Removed member `fill'.
2382         New member function `set_color'.
2383         (ps_printer::ps_printer, ps_printer::set_char): Updated.
2384         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
2385         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
2387         * tmac/color-html.tmac, tmac/color.tmac: New files.
2388         * tmac/troffrc: Include them.
2389         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
2390         * tmac/Makefile.sub: Updated.
2392         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
2393         man/groff.man: Updated.
2394         * font/devps/prologue.ps: Define FC and CO functions.
2396 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
2398         Fix incorrect cropping of images and incorrect handling of special
2399         characters.  Fix handling of file names in \O.
2401         * src/include/geometry.h: New file.
2402         * src/libs/libgroff/geometry.cc: New file.
2403         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
2404         to `geometry.cc'.
2405         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
2406         initial spaces.
2407         (do_suppress): Updated.
2408         * src/roff/troff/node.cc: Include geometry.h.
2409         (troff_output_file::flush_tbuf): Fixed parameters to
2410         `check_output_limits'.
2411         (troff_output_file::check_charinfo): Ditto.
2412         (troff_output_file::determine_line_limits): Add support for `Da'
2413         and `Dl' commands.
2415         * src/devices/grohtml/post-html.cc (str_translate_to_html):
2416         Add new parameter `is_special' to decode special characters from
2417         escape sequences.
2418         (html_printer::do_title, html_printer::do_heading,
2419         html_printer::do_indentedparagraph,
2420         html_printer::translate_to_html, html_printer::special): Updated.
2422 2001-10-03  Werner LEMBERG  <wl@gnu.org>
2424         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
2425         Fix entry for config.h.
2426         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
2427         * tmac/troffrc: Translate nonbreakable space character to `\~'.
2428         * src/preproc/eqn/eqn.man: Document -d command line option.
2430 2001-09-27  Werner LEMBERG  <wl@gnu.org>
2432         * man/groff.man: Use
2434           .ev xxx
2435           .na
2436           .nh
2437           <table>
2438           .ev
2440         instead of the old code (`.ad .hy' after the table) to suppress
2441         incorrect hyphenation for grohtml output.
2443 2001-09-22  Werner LEMBERG  <wl@gnu.org>
2445         * man/groff_font.man, man/groff_out.man: Minor fixes.
2447 2001-09-20  Werner LEMBERG  <wl@gnu.org>
2449         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
2450         Arnold Robbins <arnold@skeeve.com>).
2452 2001-09-09  Werner LEMBERG  <wl@gnu.org>
2454         * configure: Regenerated with autoconf 2.52.
2456         * doc/groff.texinfo: Complete revision of indices.
2458 2001-09-07  Werner LEMBERG  <wl@gnu.org>
2460         * doc/Makefile (clean): Updated to delete all indices.
2462 2001-09-05  Werner LEMBERG  <wl@gnu.org>
2464         * src/roff/troff/troff.man: Remove superfluous line.
2466         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
2467         given on the command line (or rather, if only the default warnings
2468         are set).
2470 2001-09-03  Werner LEMBERG  <wl@gnu.org>
2472         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
2473         use .ne for TTY devices.
2475 2001-08-31  Werner LEMBERG  <wl@gnu.org>
2477         * src/roff/troff/token.h, src/roff/troff/input.cc:
2478         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
2480 2001-08-28  Werner LEMBERG  <wl@gnu.org>
2482         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
2483         * src/roff/troff/input.cc (token::next): Return
2484         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
2485         compatibility mode.
2486         (token::description): Updated.
2487         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
2488         (token::add_to_node_list, token::process): Ignore
2489         TOKEN_TRANSPARENT_ESCAPE.
2491 2001-08-27  Werner LEMBERG  <wl@gnu.org>
2493         * tmac/an-old.tmac: Fix `S' string.
2495 2001-08-26  Werner LEMBERG  <wl@gnu.org>
2497         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
2499 2001-08-25  Werner LEMBERG  <wl@gnu.org>
2501         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
2502         backslashes).
2503         Many other minor fixes.
2505         * configure.ac: Add message at end to inform how to compile
2506         xditview.
2507         * configure: Regenerated.
2509 2001-08-24  Werner LEMBERG  <wl@gnu.org>
2511         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
2512         Updated to latest version of libc.
2514 2001-08-23  Werner LEMBERG  <wl@gnu.org>
2516         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
2517         Autoconf 2.50 and newer can handle this.
2518         * configure: Regenerated.
2520 2001-08-21  Werner LEMBERG  <wl@gnu.org>
2522         * doc/pic.ms: Fix typo.
2523         * src/preproc/tbl/tbl.man: Document case of global options.
2525 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2527         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
2528         handling of `CR' font.
2530 2001-08-20  Werner LEMBERG  <wl@gnu.org>
2532         Use a config.h file.
2534         * src/include/lib.h: Include config.h.
2535         * All C files: Ditto (if necessary).
2536         * All C++ source and header files: Include lib.h first (if
2537         necessary).
2539         * src/include/config.hin: New file (autogenerated by autoheader).
2540         * stamp-h.in: New file.
2541         * configure.ac: Updated.
2542         * aclocal.m4: Add third parameters to AC_DEFINE macros.
2543         (GROFF_ARRAY_DELETE): Simplified.
2544         * Makefile.sub (DISTCLEANFILES): Updated.
2545         Added targets for remaking config.status, config.hin, config.h,
2546         stamp-h.in, and stamp-h.
2547         * configure: Regenerated.
2549 2001-08-19  Werner LEMBERG  <wl@gnu.org>
2551         * NEWS: Updated.
2553 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
2555         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
2556         (do_sprintf): Use snprintf().
2558 2001-08-18  Werner LEMBERG  <wl@gnu.org>
2560         * src/libs/snprintf/*: Added an snprintf module written by Mark
2561         Martinec.
2562         * src/libs/libgroff/Makefile.sub: Updated.
2563         * configure.ac: Add test for snprintf().
2564         * Makefile.in: Updated.
2565         * configure: Regenerated.
2567         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
2568         uses snprintf().
2570 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
2572         * tmac/doc.tmac (Ex): New implementation.
2573         * tmac/doc-common, tmac/groff_tmac.man: Updated.
2575 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
2577         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
2578         argument.
2579         * tmac/groff_tmac.man: Updated.
2581 2001-08-13  Werner LEMBERG  <wl@gnu.org>
2583         * src/preproc/tbl/tbl.man: Minor documentation update.
2585 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2587         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
2588         * configure.ac: Add declaration test for gettimeofday().
2589         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
2590         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
2591         * configure: Regenerated.
2593 2001-08-11  Werner LEMBERG  <wl@gnu.org>
2595         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
2596         * configure.ac: Add declaration test for strcasecmp().
2597         * Makefile.in: Updated.
2598         * configure: Regenerated.
2599         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
2600         this is necessary because groff's mkstemp.cc is C++.
2601         Add declaration conditionally for strcasecmp().
2603 2001-08-10  Werner LEMBERG  <wl@gnu.org>
2605         Integrated pic2graph, contributed by Eric S. Raymond.
2607         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
2608         files.
2609         * Makefile.in, NEWS: Updated.
2611         * src/preproc/tbl/tbl.man: Revised.
2613 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
2615         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
2617 2001-08-09  Werner LEMBERG  <wl@gnu.org>
2619         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
2620         requests.
2622 2001-08-08  Paul Eggert  <eggert@twinsun.com>
2624         * Makefile.sub (configure): Depend on configure.ac, not
2625         configure.in.
2626         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
2628 2001-08-07  Werner LEMBERG  <wl@gnu.org>
2630         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
2631         fixes.
2633 2001-08-06  Werner LEMBERG  <wl@gnu.org>
2635         * src/roff/troff/troff.man: Improve documentation of -E option.
2637 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2639         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
2640         Simplified.
2642 2001-07-27  Werner LEMBERG  <wl@gnu.org>
2644         * src/preproc/refer/refer.cc: Undo last change.
2645         * src/devices/grohtml/post-html.cc: Ditto.
2647 2001-07-26  Werner LEMBERG  <wl@gnu.org>
2649         * src/preproc/refer/refer.cc: Include `lib.h'.
2650         * src/devices/grohtml/post-html.cc: Ditto.
2652 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
2654         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
2655         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
2656         * Makefile.in: Comment updated.
2657         * configure: Regenerated.
2659 2001-07-25  Werner LEMBERG  <wl@gnu.org>
2661         * src/preproc/pic/pic.cc: Removed.
2662         * src/preproc/pic/pic_tab.h: Removed.
2663         * src/preproc/refer/label.cc: Removed.
2665         * doc/Makefile (.ms.html): Don't use a file name extension in
2666         argument to grohtml's -I option.
2667         * Makefile.in (dist): Remove CVS directories.
2668         Call `distfiles' target.
2670         * src/devices/grohtml/grohtml.man: Add information about valid
2671         versions of pnmtopng.
2672         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
2673         name instead of number.
2675 2001-07-24  Werner LEMBERG  <wl@gnu.org>
2677         * doc/groff.texinfo: Minor fixes.
2679 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
2681         * doc/Makefile (.ms.html): Put image files into a subdirectory.
2682         (clean): Updated.
2684 2001-07-20  Werner LEMBERG  <wl@gnu.org>
2686         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
2687         * src/libs/libgroff/mkstemp.cc: New file.
2688         * src/libs/libgroff/mksdir.cc: New file.
2689         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
2690         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
2691         * src/libs/libgroff/Makefile.sub: Updated.
2692         * src/include/lib.h: Add mksdir() prototype.
2693         * src/include/posix.h: Define S_IXUSR if not yet defined.
2695         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
2696         (createAllPages): Use mksdir() instead of current code.
2697         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
2698         (main): [!HAVE_MKSTEMP]: Removed.
2700         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
2701         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
2702         macros.
2703         * configure.ac: Add tests for stdint.h, sys/time.h, and
2704         gettimeofday().
2705         Call new GROFF_xxx macros.
2706         * configure: Regenerated.
2707         * Makefile.in: Comments updated.
2709 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
2711         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
2712         instead of current code.
2713         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
2714         * src/roff/groff/groff.cc (possible_command::insert_args): New
2715         function.
2716         (main): Use it for predriver handling instead of insert_arg().
2718 2001-07-19  Werner LEMBERG  <wl@gnu.org>
2720         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
2721         groff also.
2723         * src/include/posix.h: Define S_IWUSR if not yet defined.
2725 2001-07-18  Werner LEMBERG  <wl@gnu.org>
2727         * NEWS: Updated.
2729 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
2731         * tmac/groff_mdoc.man: Document new -width and -column syntax.
2732         Some other minor fixes.
2733         * tmac/an-old.tmac: Add `AT' and `UC' macros.
2735 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
2737         Replace call to `troff' with `groff -Z' to make it aware of
2738         GROFF_BIN_PATH.
2740         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
2741         (troff_command, command_prefix): Removed.
2742         (alterDeviceTo): Use groff.
2743         (addZ): New function.
2744         (char_buffer::do_html): Use it.
2745         (scanArguments): Use TROFF_COMMAND.
2746         (findPrefix): Removed.
2747         (main): Updated.
2748         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
2750 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
2752         * doc/pic.ms: Documentation fixes.
2754 2001-07-17  Werner LEMBERG  <wl@gnu.org>
2756         Replace atexit() with global destructor.
2758         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
2759         (xtmpfile_list_init): New global structure to deallocate
2760         xtmpfile_list on exit.  Its destructor inherits most code from
2761         remove_tmp_files().
2762         (remove_tmp_files): Deleted.
2763         (add_tmp_file): Simplified.
2765 2001-07-16  Werner LEMBERG  <wl@gnu.org>
2767         Replace strdup() with strsave().
2769         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
2770         (set_papersize): Use strsave() and a_delete.
2771         (main): Use strsave().
2772         * src/preproc/html/pre-html.cc (make_message, createAllPages,
2773         removeAllPages): Use strsave() and a_delete.
2775         * configure.ac: Remove test for strdup.
2776         * Makefile.in: Comment updated.
2777         * configure: Regenerated.
2779 2001-07-15  Werner LEMBERG  <wl@gnu.org>
2781         * win32-diffs: Updated.
2783 2001-07-14  Werner LEMBERG  <wl@gnu.org>
2785         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
2786         removing the old one.
2787         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
2789 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2791         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
2793 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
2795         Merge -xwidth into -width.  Add -xwidth functionality to -column
2796         also.
2798         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
2799         avoid warning.
2800         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
2801         string immediately following a leading dot starts with a valid mdoc
2802         argument.
2803         Add similar code to the -column branch.
2804         (doc-Bl-usage): Updated.
2805         * groff_mdoc.man: s/-xwidth/-width/.
2807 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
2809         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
2810         running into centered or non-formatted text.
2812 2001-07-11  Werner LEMBERG  <wl@gnu.org>
2814         Introduce short and long prefixes to have the selection at run-time
2815         whether there is a 8+3 limit for names of temporary files.
2817         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
2818         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
2819         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
2820         variables.
2821         (temp_init): New global structure to initialize above three
2822         variables.
2823         (xtmptemplate): Use two parameters for long and short prefix.
2824         Simplify code use above three variables.
2825         (xtmpfile): Use long and short prefixes as parameters.
2826         * src/include/lib.h: Updated.
2828         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
2829         with ...
2830         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
2831         (createAllPages, makeTempFiles): Updated.
2833 2001-07-09  Werner LEMBERG  <wl@gnu.org>
2835         * REVISION: Increased to 3.
2837 Version 1.17.2 released
2838 =======================
2840 2001-07-07  Werner LEMBERG  <wl@gnu.org>
2842         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
2843         to size_t.
2845 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2847         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
2848         Fix synopsis.
2849         * tmac/groff_mdoc.man: Fix synopsis.
2851 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2853         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
2854         Restore `doc-Pa-font'.
2856 2001-07-04  Werner LEMBERG  <wl@gnu.org>
2858         * src/utils/indxbib/dirnamemax.c: Moved to ...
2859         * src/libs/libgroff/maxfilename.cc: Here.
2860         s/dir_name_max/file_name_max/.
2861         Add copyright.
2862         * src/include/lib.h: Add file_name_max.
2863         * src/utils/indxbib/indxbib.cc: Updated.
2864         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
2865         Updated.
2867         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
2868         as empty.
2869         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
2871         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
2872         REGION_TEMPLATE): New macros.
2873         (createAllPages, makeTempFiles): Use them.
2874         Include `nonposix.h'.
2875         (html_system): New function.
2876         (createAllPages, createImage): Use it.
2877         Use EXE_EXT.
2879         * tmac/www.tmac: Fix typos.
2881 2001-07-03  Werner LEMBERG  <wl@gnu.org>
2883         * tmac/www.tmac: Disable hyphenation in normal text only if output
2884         device is html.
2885         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
2886         * tmac/groff_mwww.man, NEWS: Updated.
2888 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
2890         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
2891         image location.
2893 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
2895         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
2896         doc-display-ps-stack): Implement font and font size stack for
2897         displays.
2899 2001-07-02  Werner LEMBERG  <wl@gnu.org>
2901         * REVISION: Increased to 2.
2902         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
2904         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
2905         beginning of a line.
2906         * src/groff/grog/grog.sh: Ditto.
2908 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
2910         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
2911         make it portable.
2913 2001-06-27  Werner LEMBERG  <wl@gnu.org>
2915         Fix problems with preprocessor string for `man' program.
2917         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
2918         Updated/added copyright.
2919         Moved Emacs's local variable to identify nroff mode to the end of
2920         the file; add local variable if missing.
2922 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
2924         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
2925         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
2926         * configure: Regenerated.
2928 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
2930         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
2931         * configure: Regenerated.
2933 2001-06-24  Werner LEMBERG  <wl@gnu.org>
2935         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
2936         but www.tmac.
2937         * doc/pic.ms: Fix typos.
2939 Version 1.17.1 released
2940 =======================
2942 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
2944         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
2945         * configure: Updated.
2947 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
2949         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
2950         image names.
2951         * src/roff/troff/dic.cc (blank_line): Add html tag.
2953 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
2955         * src/roff/troff/input.cc (do_suppress): Fix typo.
2957 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
2959         Added two new options (-D and -I) to specify image names and a
2960         subdirectory to place the images in.
2962         Change syntax from \\Ox to \\O[x].
2964         * src/devices/grohtml/post-html.cc (main): Add options.
2965         (usage): Updated.
2966         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
2967         Use `NULL' instead of `0' for null string pointers.
2968         (MAX_RETRIES): New macro.
2969         (lengthOfintToStr, intToStr, make_message): New functions.
2970         (makeFileName): Make function static.
2971         Implement -D and -I options.
2972         (checkImageDir): New function.
2973         (write_end_image, write_start_image): Use new syntax of \O.
2974         (createAllPages, removeAllPages): Implement -D and -I options.  Use
2975         make_message().
2976         (createImage): Use make_message().
2977         (addps4html): Add guard for malloc().
2978         (usage, scanArguments): Updated.
2979         (makeTempFiles): Use mkstemp().
2980         (removeTempFiles): Use unlink().
2981         (findPrefix): Add guard for malloc().
2982         (main): Updated.
2983         * src/roff/troff/input.cc (get_delim_file_name): New function to
2984         parse \O.
2985         (do_suppress): Updated to parse new syntax.
2986         * src/devices/grohtml/grohtml.man: Updated.
2987         * tmac/www.tmac: Updated to new syntax.
2989         * NEWS: Updated.
2991 2001-06-15  Werner LEMBERG  <wl@gnu.org>
2993         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
2995         * src/devices/grohtml/grohtml.man: Minor improvements.
2997 2001-06-14  Werner LEMBERG  <wl@gnu.org>
2999         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
3001 2001-06-11  Werner LEMBERG  <wl@gnu.org>
3003         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
3004         line to specify preprocessor options -- mandb 2.3.1 only recognizes
3005         the former.
3006         * src/preproc/grn/grn.man: Add proper '\" string.
3008 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
3010         * test-groff: Don't use PATH but GROFF_BIN_PATH.
3012 2001-06-08  Werner LEMBERG  <wl@gnu.org>
3014         Updated to autoconf 2.50.
3016         * configure.in: Renamed to...
3017         * configure.ac: This.
3018         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
3019         (GROFF_OS390): Updated.
3020         * configure: Regenerated.
3022 2001-05-18  Werner LEMBERG  <wl@gnu.org>
3024         * src/roff/troff/env.c, src/roff/troff/env.h,
3025         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
3026         from 2000-12-21.
3028 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
3030         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
3032 2001-05-16  Werner LEMBERG  <wl@gnu.org>
3034         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
3035         less than or equal zero; set it to 1 then.
3036         * src/roff/troff/node.h (node::node): Initialize `last'.
3038 2001-05-08  Werner LEMBERG  <wl@gnu.org>
3040         * tmac/an-old.tmac: Make predefined strings work in compatibility
3041         mode.
3042         Add troff version guard.
3043         * tmac/doc.tmac: Simplify version guard.
3045 2001-05-07  Werner LEMBERG  <wl@gnu.org>
3047         The .ns and .rs requests are now honoured not only in the top-level
3048         but in all diversions (similar to UNIX troff).
3050         This change is based on a patch from Tadziu Hoffmann
3051         <hoffmann@usm.uni-muenchen.de>.
3053         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
3054         (top_level_diversion): Remove `no_space_mode' member.
3055         * src/roff/troff/div.cc (diversion::diversion,
3056         top_level_diversion::top_level_diversion): Updated.
3057         (macro_diversion::output): Reset `no_space_mode'.
3058         (no_space, restore_spacing): Use `curdiv' unconditionally.
3059         (space_request, blank_line): Check `curdiv->no_space_mode'.
3060         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
3061         `curdiv' unconditionally.
3062         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3063         Updated.
3065 2001-05-06  Werner LEMBERG  <wl@gnu.org>
3067         Added two new requests `de1' and `am1' which are similar to `de' and
3068         `am' with the difference that compatibility mode is saved on entry,
3069         switched off during macro execution, and restored on exit.
3071         * src/roff/troff/input.h: Added two new special characters
3072         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
3073         * src/roff/troff/input.cc (input_iterator): Added two member
3074         functions `save_compatible_flag' and `get_compatible_flag'.
3075         (input_stack): Ditto.
3076         (string_iterator): Ditto.  Also add private member
3077         `saved_compatible_flag'.
3078         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
3079         (calling_mode): New enumeration.
3080         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
3081         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
3082         (define_macro, define_indirect_macro, append_macro, ignore): Use
3083         `calling_mode'.
3084         (define_nocomp_macro, append_nocomp_macro): New functions.
3085         (init_input_requests): Updated.
3086         (do_request): Rename local variable `saved_compatible_flag' to
3087         `old_compatible_flag'.
3088         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3090         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
3091         public and trap-invoked macros.  As a consequence, the man macros
3092         work in compatibility mode also.
3094 2001-05-06  Solar Designer  <solar@openwall.com>
3096         * Makefile.in: Use $(mandir).
3098 2001-05-06  Alexios Zavras  <zvr@pobox.com>
3100         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
3102 2001-05-05  Werner LEMBERG  <wl@gnu.org>
3104         Added `.ns' number register: Returns 1 in no-space mode (if in
3105         top-level diversion), 0 otherwise.
3107         * src/roff/troff/div.cc (no_space_mode_reg): New class.
3108         (init_div_requests): Updated.
3109         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
3110         Document it.
3112 2001-05-04  Werner LEMBERG  <wl@gnu.org>
3114         * src/roff/nroff/nroff.man: Improved documentation (especially
3115         locales).
3117 2001-05-02  Werner LEMBERG  <wl@gnu.org>
3119         Added `brp' request: This is \p as a request.
3121         * src/roff/troff/env.cc (environment::do_break): Add parameter
3122         `spread'.
3123         (do_break_request): New function (was `break_request').
3124         (break_request): Calls `do_break_request'.
3125         (break_spread_request): New; calls `do_break_request'.
3126         (init_env_requests): Updated.
3127         * src/roff/troff/env.h: Updated.
3128         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3130         * REVISION: Increased to 1.
3131         * win32-diffs: Updated.
3133 2001-05-01  Werner LEMBERG  <wl@gnu.org>
3135         * tmac/an-old.tmac: Fix minor compatibility mode issue.
3136         * tmac/troffrc-end: Make it really work in compatibility mode.
3138 2001-04-27  Werner LEMBERG  <wl@gnu.org>
3140         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
3141         stdlib.h.
3143 2001-04-22  Werner LEMBERG  <wl@gnu.org>
3145         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
3146         latest versions from glibc CVS archive.
3148         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
3149         <c.zeelenberg@hccnet.nl>.
3151 2001-04-21  Werner LEMBERG  <wl@gnu.org>
3153         * configure.in: Move check for mkstemp() to...
3154         * aclocal.m4 (GROFF_MKSTEMP): This new function.
3155         * configure: Regenerated.
3157         * src/include/groff-getopt.h: Don't use variable names in
3158         declarations.
3160         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
3161         * src/devices/grohtml/Makefile.sub,
3162         src/devices/grohtml/post-html.cc: Updated.
3164 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
3166         * configure.in: Add special check for mkstemp().
3167         * src/libs/libgroff/tmpfile.cc: Use it.
3168         * src/utils/indxbib/indxbib.cc: Ditto.
3169         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
3170         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
3171         `const'.
3173 2001-04-20  Bruce Lilly  <blilly@erols.com>
3175         `Version_string' as C++ object was not visible to linker from C
3176         object files.
3177         Add `const' to `Version_string'.
3179         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
3180         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
3181         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
3182         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
3183         (scanArguments), src/preproc/refer/refer.cc (main),
3184         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
3185         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3186         (main), src/devices/grohtml/post-html.cc (main),
3187         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
3188         (main), src/utils/hpftodit/hpftodit.cc (main),
3189         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
3190         (main), src/utils/lkbib/lkbib.cc (main),
3191         src/utils/addftinfo/addftinfo.cc (main): Implement it.
3193         * src/roff/groff/pipeline.c: Add _UWIN.
3194         * src/include/nonposix.h: Ditto.
3196 2001-04-20  Werner LEMBERG  <wl@gnu.org>
3198         * src/include/lib.h: Use HAVE_STRERROR.
3199         * src/roff/groff/pipeline.c: Ditto.
3200         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
3201         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
3202         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
3203         * win32-diffs: Updated.
3204         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
3206 2001-04-19  Werner LEMBERG  <wl@gnu.org>
3208         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
3209         instead of hardwired `"troff"'.
3210         (char_buffer::read_file): Remove unused variables.
3211         (char_buffer::write_file_troff): Ditto.
3212         (char_buffer::write_file_html): Ditto.
3213         (generateImages): Ditto.
3214         (abs): Removed.
3215         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
3217         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
3219         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
3220         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
3221         index_search_item::search1): Ditto.
3222         * src/roff/troff/node.h (width_list): Reorder members.
3223         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
3224         (lookup_warning): Ditto.
3225         (prepend_string): Commented out.
3226         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
3227         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
3228         * src/preproc/tbl/main.cc (process_format): Ditto.
3229         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
3230         compiler warnings.
3231         * src/preproc/pic/pic.cc: Updated.
3232         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
3233         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
3234         * src/preproc/refer/command.cc (execute_command): Ditto.
3235         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
3236         * src/preproc/refer/token.cc (lookup_token): Ditto.
3237         * src/preproc/soelim/soelim.cc: Ditto.
3238         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
3239         (isHexDigit): Commented out.
3240         (pushBackBuffer::isString): Remove unused variable.
3241         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
3242         warning.
3243         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
3244         resource_manager::read_resource_arg, read_one_of, parse_extensions):
3245         Ditto.
3246         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
3247         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
3248         lookup_paper_size): Ditto.
3249         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
3250         (text_glob, element_list): Reorder members.
3251         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
3252         compiler warning.
3253         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
3254         return value to `void'.
3255         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
3256         of initializers.
3257         * src/devices/grohtml/html.h (simple_output::check_newline,
3258         simple_output::space_or_newline, simple_output::enable_newlines):
3259         Add return value.
3260         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
3261         compiler warnings.
3262         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
3263         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
3264         output_ligatures, output_charset, read_map): Ditto.
3265         * src/utils/lookbib/lookbib.cc (main): Ditto.
3266         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
3267         (do_file): Fix typo (`=' -> `==').
3268         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
3269         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
3271 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
3273         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
3274         Fix usage of GROFF_BIN_PATH.
3275         * src/roff/nroff/nroff.man: Updated.
3277 2001-04-18  Werner LEMBERG  <wl@gnu.org>
3279         * NEWS: Fixing typos.
3280         Updated.
3282 Version 1.17 released
3283 =====================
3285 2001-04-17  Werner LEMBERG  <wl@gnu.org>
3287         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
3288         directory, not in $(srcdir).
3290 2001-04-16  Werner LEMBERG  <wl@gnu.org>
3292         * doc/groff.texinfo: More info on conditionals.
3294 2001-04-15  Werner LEMBERG  <wl@gnu.org>
3296         * doc/groff.texinfo: Added some info about groff internals.
3298         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
3299         about missing special character only if the name is non-null.
3301 2001-04-14  Werner LEMBERG  <wl@gnu.org>
3303         Removing the grohtml-old device driver which is now obsolete.
3305         * src/devices/grohtml-old/*: Removed.
3306         * font/devhtml-old/*: Removed.
3307         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
3308         Remove comments.
3309         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
3310         * test-groff (PATH): Updated.
3311         * tmac/Makefile.sub (NORMALFILES): Updated.
3312         * tmac/an-old.tmac: Remove special code for html-old device.
3313         Replace `html-or-html-old' register with `an-html'.
3314         * tmac/eqnrc: Updated.
3315         * tmac/html-old.tmac: Removed.
3316         * tmac/troffrc, tmac/troffrc-end: Updated.
3317         * tmac/www.tmac: Remove special code for html-old device.
3318         Replace `html-or-html-old' register with `www-html'.
3320         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
3321         src/libs/libgroff/htmlindicate.cc (graphic_end),
3322         include/htmlindicate.h, src/preproc/grn/*.cc,
3323         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
3324         single argument for consistency with rest of source code.
3326         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
3328 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
3330         * src/roff/troff/troff.man: Fixing typos.
3332 2001-04-13  Werner LEMBERG  <wl@gnu.org>
3334         * doc/pic.ms: Fixing many font switches.
3335         * doc/groff.texinfo: Fixes, additions.
3336         * MORE.STUFF: Updated.
3338 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
3340         * src/devices/grohtml/grohtml.man: Updated manual page regarding
3341         simple anchor.
3342         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
3343         cropping of images.
3344         (removeTempFiles): New function to tidy up temporary files.
3345         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
3346         Many fixes to do with the new inline suppress node and image regions
3347         are much tighter.
3348         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
3349         (generate_img_src): New function.
3350         (html_printer::do_auto_image): Utilizes it.
3351         (do_heading, do_title): Include inline images within their contents.
3352         (html_printer::begin_page): Tidied up comments that are issued to
3353         the html output file.
3354         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
3355         than courier.
3356         (text_glob::is_br): New method used by do_heading.
3357         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
3358         equivalent diversion.
3359         * src/include/html-strings.h: Altered image tags to reflect the
3360         inline image node.
3361         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
3362         parameter.
3363         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
3364         it is already inside a pic image.  Only emit tags if the argument
3365         `-Tps:html' is present.
3366         * src/preproc/tbl/main.cc: Changes to reflect additional
3367         `html_end_suppress' parameter.
3368         * src/roff/troff/env.cc: Only emit eol tag if a node has been
3369         emitted since the last eol tag was written.
3370         * src/roff/troff/env.h: New boolean `emitted_node'.
3371         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
3372         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
3373         * src/roff/troff/node.cc (check_charinfo): New method. 
3374         (troff_output_file::determine_line_limits): Alterations to limit
3375         checking.
3376         * tmac/www.tmac: Changes to reflect new suppress nodes.
3377           
3378 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
3380         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
3381         Escape the html_glyph in the buffer.
3382         (str_translate_to_html): Output the unescaped escaped_char.
3383         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
3384         `frame=void', not `frame=none'.  Add `border=0'.
3386 2001-04-12  Werner LEMBERG  <wl@gnu.org>
3388         * PROBLEMS: Add some words on how to avoid wrapper macros.
3390 2001-04-11  Blake McBride  <blake@florida-software.com>
3392         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
3394 2001-04-11  Werner LEMBERG  <wl@gnu.org>
3396         * font/devlbp/Makefile.sub (CLEANADD): Set it.
3397         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
3398         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
3399         * Makefile.sub (DISTCLEANFILES): Here.
3401         * libs/libgroff/new.cc: Include `nonposix.h'.
3402         * win32-diffs: Updated.
3404 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
3406         Added skeleton macro for defunct macros.
3408         Updated documentation.
3410         When inside displays, an empty input line warning should be
3411         suppressed.  If another macro call is put inside a display,
3412         all subsequent empty lines found in that display caused a
3413         warning to be emitted.
3415         * tmac/doc.tmac (doc-defunct-macro): New macro.
3416         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
3417         (doc-restore-global-vars): Fixed typo.
3418         (doc-empty-line): Check the `doc-display-depth' register to
3419         determine whether we are inside display or not.
3421         * tmac/doc-common: Removed `Or' and `Sf' registers.
3422         Moved obsolete `Ds' macro to doc.tmac.
3424         * tmac/groff_mdoc.man: Bump document date.
3425         Document `.Vt' under ``Variable Types''.
3426         Removed documentation for obsolete `.Or' macro.
3428 2001-04-10  Werner LEMBERG  <wl@gnu.org>
3430         * NEWS: Updated.
3431         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
3433 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
3435         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
3436         (usage): Add stream argument. Don't exit.
3437         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
3438         Write --version output to stdout, not stderr.
3439         (usage): Add stream argument. Don't exit.
3440         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
3441         (usage): Add stream argument. Don't exit.
3442         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
3443         constants.
3444         (usage): Add stream argument. Don't exit.
3445         (main): Write --help output to stdout, not stderr.
3446         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
3447         (usage): Add stream argument. Don't exit.
3448         * src/devices/grops/ps.cc (main): Accept --help and --version.
3449         (usage): Add stream argument. Don't exit.
3450         * src/devices/grotty/tty.cc (main): Accept --help and --version.
3451         (usage): Add stream argument. Don't exit.
3452         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
3453         (main): Accept --help and --version.
3454         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
3455         (main): Accept --help and --version.
3456         * src/preproc/html/pre-html.cc (usage): Add stream argument.
3457         (scanArguments): Accept --help and --version.
3458         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
3459         (main): Accept --help and --version.
3460         * src/preproc/refer/refer.cc (main): Accept --help and --version.
3461         (usage): Add stream argument. Don't exit.
3462         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
3463         exit.
3464         (main): Accept --help and --version.
3465         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
3466         (main): Accept --help and --version.
3467         * src/roff/groff/groff.cc (main): Accept --help and --version.
3468         (synopsis): Add stream argument.
3469         (help): Write --help output to stdout, not stderr.
3470         (usage): Add stream argument. Don't exit.
3471         * src/roff/grog/grog.pl: Accept --help and --version.
3472         (help): New sub.
3473         * src/roff/grog/grog.sh: Accept --help and --version.
3474         * src/roff/nroff/nroff.sh: Accept --help and --version.
3475         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
3476         (usage): Add stream argument. Don't exit.
3477         (main): Accept --help and --version.
3478         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
3479         (usage): New function with stream argument, doesn't exit.
3480         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
3481         (usage): New function with stream argument, doesn't exit.
3482         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
3483         (usage): Add stream argument. Don't exit.
3484         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
3485         (main): Accept --help and --version.
3486         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
3487         exit.
3488         (main): Accept --help and --version.
3489         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
3490         (main): Accept --help and --version.
3491         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
3492         (usage): Add stream argument. Don't exit.
3494 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
3496         Fix indentation in SYNOPSIS.
3498         Updated to include changes of latest BSD mdoc version (basically,
3499         the only change is that `.Fn' and `.Fc' put a final semicolon after
3500         a function declaration in the SYNOPSIS section).
3502         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
3503         (doc-in-synopsis-section): New variable.  Updated all related
3504         functions.
3505         (doc-indent-synopsis-active): New register.
3506         (Nd, Fn, Fo): Use it.
3507         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
3508         `.Cd' with long argument line produces indented wrapped lines. 
3509         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
3510         undesirable line break to be output.
3511         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
3512         `.rs'.
3513         (Fn, Fc): Add final `;' to output.
3514         (doc-save-global-vars, doc-restore-global-vars): Updated.
3515         * tmac/doc-common: Remove `Ex' register.
3516         Updated.
3517         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
3518         copyright.
3520 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3522         * tmac/doc.tmac (Cd): Simplify code.
3523         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
3525 2001-04-06  Werner LEMBERG  <wl@gnu.org>
3527         Implement continuous underlining for nroff mode.  To do that, a new
3528         request in the ditroff language has been added: `x u N' (N is 0
3529         or 1).
3531         \X and \Y are now transparent to end-of-sentence recognition.
3533         * src/include/printer.h (printer): Add `type' parameter to `special'
3534         method.
3535         * src/libs/libdriver/printer.cc (printer::special): Updated.
3536         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
3538         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
3539         specials of type `p'.
3540         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
3541         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
3542         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
3543         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
3544         (glyph::order): New method.
3545         (tty_printer::add_char): Use it.
3546         (tty_printer::special): New method.
3547         (tty_printer::end_page): Implement it.
3549         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
3550         * src/roff/troff/node.cc (special_node::special_node): Add parameter
3551         to set `no_init_string'.
3552         (special_node::tprint_start): Use it.
3553         (special_node::same, special_node::copy): Updated.
3554         (special_node::ends_sentence): New method.
3555         (troff_output_file::start_special): Add parameter to include
3556         inititialization of special conditionally.
3558         * src/roff/troff/env.h (environment): New member `underline_spaces'.
3559         * src/roff/troff/env.cc (do_underline_special): New function.
3560         (environment::set_font): Use it.
3561         (do_underline): Use it.  This was `underline()'.
3562         (underline): Call `do_underline()'.
3563         (continuous_underline): New function which calls `do_underline()'.
3564         (environment::newline): Use `do_underline_special()'.
3565         (init_env_requests): Updated.
3567         * NEWS, man/troff_out.man: Updated.
3569 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
3571         * font/devutf8/R.proto: Fix code of 'shc'.
3573 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
3575         Many fixes.  Diag lists can now be nested also; additionally,
3576         `-compact' and `-offset' are supported.
3578         * tmac/doc.tmac (doc-have-indent): Replaced with ...
3579         (doc-list-have-indent-stackXXX): A new register stack.
3580         (doc-have-diag-list): Removed.
3581         (Bl): Use `doc-list-have-indent-stackXXX'.
3582         (El): Updated.
3583         (doc-diag-list): Use `doc-compact-list-stackXXX'.
3584         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
3585         (doc-set-vertical-and-indent): Ditto.
3586         (doc-next-list-depth): Removed.
3587         (doc-increment-list-stack): Updated.
3588         (doc-decrement-list-stack): Use `doc-list-depth' instead of
3589         `doc-next-list-depth'.
3590         (doc-end-list, doc-end-column-list): Don't use
3591         `doc-increment-list-stack'.
3592         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
3593         (doc-save-global-vars, doc-restore-global-vars): Updated.
3594         * tmac/doc-common: Updated.
3595         * tmac/groff_mdoc.man: Updated.
3596         * NEWS: Fix typo.
3598 2001-04-02  Werner LEMBERG  <wl@gnu.org>
3600         * src/devices/grotty/grotty.man: Fix grammatical error.
3602 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
3604         Remove .Ld from mdoc package; replace it with special handling of
3605         `...'.
3607         * tmac/doc-common: Remove `Ld' register.
3608         Uncomment `doc-volume-ds-*' strings.
3609         Remove `doc-operating-system-default'.
3610         (Os): Updated.
3611         * tmac/doc-syms (Ld): Removed.
3612         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
3613         `...' specially.
3614         * NEWS: Updated.
3616         * tmac/groff_mdoc.man: Many fixes and updates.
3618 2001-03-29  Werner LEMBERG  <wl@gnu.org>
3620         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
3621         Bond <tkb@tkb.mpl.com>.
3622         * tmac/www.tmac: Save compatibility mode.
3624 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
3626         * tmac/groff_mdoc.man: Many fixes.
3628 2001-03-28  Werner LEMBERG  <wl@gnu.org>
3630         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
3631         isn't recognized.
3633 2001-03-27  Werner LEMBERG  <wl@gnu.org>
3635         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
3636         diversion.  This fixes overlong tags.
3638 2001-03-26  Werner LEMBERG  <wl@gnu.org>
3640         * doc/groff.texinfo: Fixed and improved documentation of fonts.
3641         * tmac/doc-syms: Fix error messages.
3642         * tmac/an-old.tmac: Remove incorrect double backslashes.
3644 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
3646         * tmac/Makefile.sub: Strip mdoc.local also
3647         * tmac/strip.sed: Fixed.
3649 2001-03-24  Werner LEMBERG  <wl@gnu.org>
3651         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
3652         selecting the font size.
3653         * tmac/groff_mdoc.man, NEWS: Document it.
3655 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3657         * src/roff/troff/div.cc (save_vertical_space): Add default argument
3658         to `sv' request.
3659         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
3660         argument to restore previous font family.
3661         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
3663         * doc/groff.texinfo: More fixes and additions (mainly for font
3664         manipulating commands).
3666         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
3667         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
3668         * tmac/Makefile.sub, NEWS: Updated.
3670 2001-03-23  Werner LEMBERG  <wl@gnu.org>
3672         Replaced mdoc implementation.  The new version is `state of the
3673         art', using almost all new features of groff 1.17 -- it won't run
3674         with older versions.
3676         * tmac/doc.tmac: Completely rewritten.
3677         * tmac/doc-common: Ditto.
3678         * tmac/doc-nroff: Ditto.
3679         * tmac/doc-ditroff: Ditto.
3680         * tmac/doc-syms: Ditto.
3681         * tmac/mdoc.local: New file.
3682         * tmac/groff_mdoc.samples.man: Replaced with ...
3683         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
3684         * tmac/strip.sed: Updated.
3685         * tmac/Makefile.sub: Updated.
3686         * INSTALL: Updated.
3688         * tmac/groff_man.man: Add `man.local' to the FILES section.
3690 2001-03-22  Werner LEMBERG  <wl@gnu.org>
3692         * doc/groff.texinfo: Added many @noindent.
3693         Replaced @end_Example -> @endExample.
3694         Added info whether registers are r/o.
3695         Many other additions and fixes.
3697 2001-03-21  Werner LEMBERG  <wl@gnu.org>
3699         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
3700         in makeinfo of texinfo 4.0) to be used in @Def* macros.
3701         Improved @Def* macros: Now the exact syntax of request, register,
3702         and escapes is shown.
3703         Added macros for parentheses and brackets to be used in @Def*.
3704         Many fixes and improvements of the documentation.
3706 2001-03-20  Werner LEMBERG  <wl@gnu.org>
3708         * doc/groff.texinfo: Added new index: `st' (for strings).
3709         Added macros @Defstr(x).
3710         Added macro @Example (adding @group).
3711         Other minor improvements.
3713 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3715         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
3716         `rq' for requests.  `fn' is no longer used.
3717         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
3718         Removed @Deffn(x).
3720         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
3721         number with name of man page.
3723 2001-03-19  Larry Kollar  <kollar@alltel.net>
3725         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
3726         consistency.
3728 2001-03-19  Werner LEMBERG  <wl@gnu.org>
3730         * man/groff_font.man: Document `prepro', `postpro', and `print'.
3731         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
3732         * src/devices/grohtml/grohtml.man: Fixing typos.
3734 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
3736         * tmac/s.tmac (@IP): Pass `.ip' html tag.
3737         * tmac/groff_mwww.man: Remove .LINE macro
3738         * tmac/www.tmac (LINE): Add `.ti'.
3740         * src/devices/grohtml/post-html.cc (html_printer): New member
3741         `indent'.
3742         (html_printer::emit_raw): Use it.
3743         (html_printer::do_linelength): Ditto.
3744         (html_printer::do_pageoffset): Ditto.
3745         (html_printer::do_indentation): Ditto.
3746         (html_printer::do_tempindent): Ditto.
3747         (html_printer::do_break): Ditto.
3748         (html_printer::begin_page): Ditto.
3749         (html_printer::do_indentedparagraph): New function.
3750         (html_printer::troff_tag): Handle `.ip'.
3751         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
3752         Add `<td width=...>' handling.
3753         (html_text::do_table): Add parameter.
3754         (html_text::do_indent): Updated.
3755         * src/devices/groohtml/html-text.h: Updated.
3757 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
3759         Introduced simple html tables to implement indentation.
3761         * src/devices/grohtml/html.h (word, word_list): New structures.
3762         (simple_output): Use it.
3763         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
3764         (html_printer): Improve indentation handling.
3765         (html_printer::emit_raw): Set `in_table' element.  Handle
3766         indentation if set.
3767         (html_printer::write_header): Move conditional downwards.
3768         Don't allow whitespace in tags.
3769         (html_printer::do_linelength): Handle line length and indentation
3770         conditionally.
3771         (html_printer::do_pageoffset): Handle indentation conditionally.
3772         (html_printer::do_indentation): Ditto.
3773         (html_printer::do_tempindent): New function member.
3774         (html_printer::do_fill): Take care of indentation.
3775         (html_printer::do_flush): Finish table.
3776         (html_printer::do_links): Ditto.
3777         (html_printer::do_break): New function for handling `.br' and `.ti'.
3778         (html_printer::troff_tag): Use it.
3779         Handle `.ti'.
3780         (html_printer::flush_globs): Fix.
3781         (html_printer::flush_page): Finish table.
3782         (html_printer::html_printer): Fix error message.  Set up
3783         `linelength'.
3784         (html_printer::add_to_sbuf): Remove special handling of character
3785         code 255.
3786         (to_unicode): Remove `stop()'.
3787         (html_printer::write_title): Cleanup.
3788         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
3789         (html_printer::~html_printer): Flush text and end the line.
3790         Use `put_string()'.
3791         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
3792         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
3793         emission of tags.
3794         (html_text::start_tag): Disable newlines.
3795         (html_text::table_is_void): New function.
3796         (html_text::issue_table_begin): Ditto.
3797         (html_text::issue_table_end): Ditto.
3798         (html_text::push_para): Better table handling.
3799         (html_text::do_indent): New function.
3800         (html_text::do_table): Ditto.
3801         (html_text::done_table): Ditto.
3802         (html_text::do_tt): Handle PRE_TAG.
3803         (html_text::is_in_table): New function.
3804         (html_text::check_emit_text): Handle tables.
3805         (html_text::do_emittext): Use `nl()'.
3806         (html_text::do_para): Handle table.
3807         (html_text::remove_def): New function.
3808         * src/devices/grohtml/output.cc (word, word_list): Implement
3809         methods.
3810         (simple_output::end_line): Flush last word.
3811         (simple_output::simple_comment): Ditto.
3812         (simple_output::begin_comment): Recoded.
3813         (simple_output::end_comment): Ditto.
3814         (simple_output::comment_arg): Removed.
3815         (simple_output::check_newline): Improve test and flush last word.
3816         (simple_output::space_or_newline): Improved.
3817         (simple_output::write_newline): Replaced with...
3818         (simple_output::nl): This.
3819         (simple_output::put_raw_char): Flush last word.
3820         (simple_output::check_space): Removed.
3821         (simple_output::put_translated_string): Ditto.
3822         (simple_output::put_string): Simplified.
3823         (simple_output::put_number): Updated.
3824         (simple_output::put_float): Ditto.
3825         (simple_output::put_symbol): Removed.
3826         (simple_output::enable_newlines): Add `check_newline()'.
3827         (simple_output::flush_last_word): New function.
3829         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
3830         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
3832         * tmac/s.tmac (@PP, @IP): Add html conditional code.
3833         * tmac/an-old.tmac (TP): Ditto.
3835 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
3837         * mdate.sh: Make it POSIX compliant.
3839 2001-03-09  Werner LEMBERG  <wl@gnu.org>
3841         Added the `return' request to end a macro immediately.  It simply
3842         pops iterators from the input stack until a macro iterator is found.
3844         * src/roff/troff/input.cc (input_iterator::is_macro,
3845         macro_iterator::is_macro): New member.
3846         (input_return_boundary): New class to signal an immediate return
3847         to while_request().
3848         (input_stack::add_return_boundary, input_stack::is_return_boundary):
3849         New functions.
3850         (input_stack::clear): Use it.
3851         (input_stack::pop_macro): New function.
3852         (while_request): Use `is_return_boundary()'.
3853         (return_macro_request): New function.
3854         (init_input_requests): Use it.
3856         * src/roff/troff/TODO: Updated.
3857         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
3859 2001-03-08  Werner LEMBERG  <wl@gnu.org>
3861         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
3862         cleanup.
3864 2001-03-07  Werner LEMBERG  <wl@gnu.org>
3866         Make `\B' more rigid.
3868         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
3869         parameter.
3870         (get_number_rigidly): New function.
3871         * src/roff/troff/input.cc (do_expr_test): Use it.
3872         * src/roff/troff/token.h: Updated.
3874         * src/roff/troff/request.h: Fix typo (init_html_request ->
3875         init_markup_request).
3877 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
3879         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
3880         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
3881         are now `.begin', `.end', `.image'.
3883         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
3884         (html_printer::add_to_sbuf): Changing type of `code' parameter.
3885         Use add_char_to_sbuf().
3886         (to_unicode): New function.
3887         (char_translate_to_html): Changing type of `ch' parameter.
3888         Use `to_unicode()'.
3889         (html_printer::~html_printer): Comment out doctype string.
3890         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
3891         instead of `.html-end'.
3892         (write_start_image): Use `.begin' and `.image' instead of
3893         `.html-begin' and `.html-image'.
3894         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
3895         (html_begin): Renamed to ...
3896         (begin): This.
3897         (html_end): Renamed to ...
3898         (end): This.
3899         (html_image): Renamed to ...
3900         (image): This.
3901         (init_html_requests): Renamed to ...
3902         (init_markup_requests): This.
3903         * tmac/www.tmac: Updated.
3905 2001-02-28  Bram  <bram@avontuur.org>
3907         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
3908         constructor.
3910 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
3912         * doc/meref.me: Fixing some typos.
3914 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3916         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
3917         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
3918         * src/roff/troff/node.h: Updated.
3920 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
3922         * tmac/groff_tmac.man: Fix typo.
3924 2001-02-16  Werner LEMBERG  <wl@gnu.org>
3926         Fixing a bug which prevented proper end-of-sentence recognition
3927         between an `unformatted' box and the following text.  As a
3928         consequence, vertical line distances are no longer preserved in
3929         boxes after a call to `.unformat' -- because boxes aren't
3930         line-oriented (contrary to diversions), this doesn't make sense
3931         anyway.
3933         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
3934         value.
3935         (vertical_size_node::set_unformat_flag): New method.
3936         * src/roff/troff/node.hh: Updated.
3937         * src/roff/troff/input.cc (word_space_node::reread,
3938         hmotion_node::reread): Reset `unformat' flag after usage.
3939         (unformat_macro): Append only if `set_unformat_flag()' returns
3940         non-zero.
3941         * src/roff/troff/troff.man: Updated.
3943 2001-02-15  Werner LEMBERG  <wl@gnu.org>
3945         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
3946         documentation of `asciify' and `unformat' requests.
3948 2001-02-13  Werner LEMBERG  <wl@gnu.org>
3950         Redesigned the `unformat' request.  It is no longer connected with
3951         `asciify' but rather uses new `reread()' methods if the `unformat'
3952         flag is set.  Additionally, the handling of space characters after
3953         unformatting has been fixed so that they retain their width.
3955         * src/roff/troff/node.h (width_list): New structure to store
3956         original widths of spaces.
3957         (node): Added `unformat' member.
3958         Replaced `num_spaces' variable with `orig_width' list.
3959         * src/roff/troff/node.cc (*node::asciify,
3960         asciify_reverse_node_list): Removed `unformat_only' flag and related
3961         code.
3962         (word_space_node::asciify, word_space_node::word_space_node): Use
3963         `orig_width'.
3964         (word_space_node::~word_space_node): New destructor.
3965         (word_space_node::copy): Updated to handle `orig_width'.
3966         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
3967         (*node::merge_space): Update `orig_width' list if necessary.
3968         (*node::set_unformat_flag): New methods to set the `unformat' flag.
3969         * src/roff/troff/enc.cc (environment::space_newline): Use
3970         `width_list'.
3971         (environment::space): Added method to handle space width and
3972         sentence space width as parameters.  Use `width_list'.
3973         (environment::make_tab_node): Updated.
3974         * src/roff/troff/env.h: Updated.
3975         * src/roff/troff/input.cc (word_space_node::reread,
3976         unbreakable_space_node::reread, hmotion_node::reread): New methods
3977         to handle nodes specially if `unformat' flag is set.
3978         (do_asciify_macro): Renamed back to ...
3979         (asciify_macro): This.
3980         (unformat_macro): New implementation to simply set the `unformat'
3981         flag.
3983         * MORE.STUFF: Added more info about deroff.
3985 2001-02-08  Werner LEMBERG  <wl@gnu.org>
3987         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
3988         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
3989         and `add_self()' methods to avoid hyphenation.  For example, the
3990         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
3991         soft hyphen after `foo'.  Now the hyphen list is correctly
3992         `foo<ignore><ignore>bar'.
3994 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
3996         * tmac/groff_tmac.man: Fix `BIR' macro.
3998 2001-02-04  Werner LEMBERG  <wl@gnu.org>
4000         A new escape sequence `\:', inserting a zero-width break point.
4002         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
4003         * src/roff/troff/input.cc (get_copy, token::next, asciify):
4004         Implement it.
4005         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
4006         method.
4007         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
4008         and `asciify()' methods.
4009         * src/roff/troff/node.cc (space_node::space_node): Updated.
4010         (space_node::asciify): Handle `was_escape_colon'.
4011         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4013         Handle `\~' similar to other comparable requests.
4015         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
4016         label.
4017         (token::next): Move creation of an unbreakable_space_node to...
4018         (token::add_to_node_list): Here.
4020         Fix a bug which sometimes prevented hyphenation of words connected
4021         with `\~' or `\ ' (and other escape sequences handled as
4022         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
4023         (after a call to the `unformat' request).
4025         * src/roff/troff/env.h (environment::possibly_break_line,
4026         environment::hyphenate_line): Introducing `start_here' parameter.
4027         * src/roff/troff/env.cc (environment::space_newline,
4028         environment::space): Use it.
4029         (environment::possibly_break_line, environment::hyphenate_line):
4030         Implement it.
4031         * src/roff/troff/input.cc (process_input_stack): Use it.
4032         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
4033         space_char_hmotion_node, overstrike_node): Add
4034         `get_hyphenation_type()' method.
4035         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
4036         if `unformat_only' is active.
4038 2001-01-30  Werner LEMBERG  <wl@gnu.org>
4040         Implemented new read-only number register `.linetabs' which
4041         returns 1 if in line-tabs mode, 0 otherwise.
4043         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
4044         * src/roff/troff/env.cc (get_line_tabs): New function.
4045         (init_env_requests): Use it.
4046         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4048         * VERSION, REVISION: Changing to 1.17.0.
4050 2001-01-28  Werner LEMBERG  <wl@gnu.org>
4052         Fixed a bug which prevented hyphenation of words which are finished
4053         with `\)'.
4055         * src/roff/troff/token.h (token): Add enum type
4056         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
4057         * src/roff/troff/input.cc (token::next, token::description,
4058         get_line_arg, token::add_to_node_list, token::process): Use it.
4060 2001-01-27  Werner LEMBERG  <wl@gnu.org>
4062         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
4063         * src/roff/troff/div.cc (do_divert): Use it.
4065         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
4067 2001-01-25  Werner LEMBERG  <wl@gnu.org>
4069         Adding the `linetabs' request.  If set, tab distances are not
4070         computed relative to the input line but relative to the output line.
4072         * src/roff/troff/env.h (environment): New member `line_tabs'.
4073         * src/roff/troff/env.cc (line_tabs_request): Implement request.
4074         (environment::environment, environment::copy): Updated.
4075         (environment::distance_to_next_tab): Use `line_tabs'.
4076         (init_env_requests): Register request.
4077         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
4078         fixes.
4080 2001-01-24  Werner LEMBERG  <wl@gnu.org>
4082         Introducing a new read-only register `.int' which is set to a
4083         positive value if the last output line is interrupted (i.e., if it
4084         contains `\c').
4086         * src/roff/troff/env.cc (init_env_requests): Add it.
4087         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4089 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
4091         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
4092         * src/preproc/html/pre-html.cc (findPrefix): New function which
4093         generates the troff executable name via the system prefix.
4094         * src/preproc/eqn/main.cc: Modified warning message.
4096 2001-01-23  Werner LEMBERG  <wl@gnu.org>
4098         troff's `box' and `boxa' requests didn't preserve temporary
4099         indentation.
4101         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
4102         `saved_target_text_length' members.
4103         * src/roff/troff/div.cc (do_divert): Use them.
4105         Tabs (but not yet leaders and fields) are now handled correctly by
4106         `asciify' request.
4108         * node.h (hmotion_node): Add field `was_tab'.
4109         * env.cc (environment::make_tab_node): Set it.
4110         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
4112         Added new request `unformat' which will, contrary to `asciify',
4113         preserve font information after unformatting (i.e., only nodes
4114         dealing with horizontal space are converted back to input
4115         characters).
4117         * input.cc (asciify_macro): Renamed to ...
4118         (do_asciify_macro): this, having a new parameter `unformat_only'.
4119         (asciify_macro, unformat_macro): New; using do_asciify_macro.
4120         (init_input_requests): Added `unformat'.
4121         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
4122         parameter to control asciification process.
4123         * node.h (*_node::asciify): Ditto.
4124         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4126 2001-01-20  Werner LEMBERG  <wl@gnu.org>
4128         * doc/groff.texinfo: Minor improvement of `.in' documentation.
4130 2001-01-18  Werner LEMBERG  <wl@gnu.org>
4132         * tmac/ps.tmac: Remove call of psold.tmac.
4133         * tmac/psold.tmac: Comment updated.
4134         * tmac/psnew.tmac: Removed since no longer needed.
4135         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
4137         * font/devutf8/R.proto: Adding `shc' glyph.
4138         * font/devutf8/NOTES: Updated.
4140         * test-groff: Updated.
4142 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4144         First cut of the new html device driver.  Changes to pre-html and
4145         the new grohtml are too numerous to be documented here.
4147         Stuff related to `html' has been renamed to `html-old' and `html2'
4148         stuff has been renamed to `html' (including directories).  The new
4149         html device driver is therefore invoked as `-Thtml'.
4151         Added new `\O' escape to suppress output (needed by html driver).
4153         Added functions and code to pass info about input-level commands
4154         (`.in', `.fl', etc.) to html driver.
4156         Three new functions (.html-begin, .html-end, and .html-image) for
4157         better html handling: `html-begin' will execute the remaining line
4158         if at the outermost nesting level, increasing an internal counter.
4159         `html-end' does the same but decreases the internal counter.
4160         `html_image' puts its arguments into a special node (suppress_node)
4161         to define an image region.
4163         The `output' request has been removed.
4165         * tmac/html-tags.tmac: Removed.
4166         * tmac/arkup.tmac: Updated and renamed to ...
4167         * tmac/www.tmac: New file.
4168         * tmac/markup.tmac Updated and renamed to ...
4169         * tmac/mwww.tmac: New file.
4170         * tmac/Makefile.sub: Updated.
4171         * tmac/an-old.tmac: Updated.
4172         * tmac/eqnrc: Updated.
4173         * tmac/groff_man.man
4174         * tmac/groff_markup.man: Updated and renamed to ...
4175         * tmac/groff_mwww.man: New file.
4176         * tmac/groff_tmac.man: Updated.
4177         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
4178         * tmac/html.tmac: Updated and renamed from html2.tmac.
4179         * tmac/pspic.tmac: Updated html support.
4180         * tmac/s.tmac: Added html output support.
4181         * tmac/troffrc, tmac/troffrc-end: Updated.
4183         * Makefile.in, doc/Makefile: Updated.
4184         * doc/groff.texinfo: Added info about new `\O' escape.
4185         * doc/homepage.ms: Use `MAILTO' macro.
4187         * font/devhtml/DESC.proto: Add `C' font.
4188         * font/devhtml/Makefile.sub: Updated.
4189         * font/devhtml/R.proto: Minor fixes.
4190         * font/devhtml-old/Makefile.sub: Updated.
4192         * src/devices/grohtml-old/Makefile.sub: Updated.
4194         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
4195         method.
4196         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
4197         graphic_start): Add `inline' parameter.  Update.
4198         (html_end_suppress, graphic_end): Update.
4200         * src/include/html-strings.h: New file.
4201         * src/include/htmlindicate.h: Comments updated.
4202         * src/include/printer.h: Updated.
4204         * src/preproc/eqn/main.cc (do_file, main): Updated.
4205         * src/preproc/pic/troff.cc (troff_output::start_picture,
4206         troff_output::finish_picture): Updated.
4207         * src/preproc/tbl/main.cc (process_input_file): Updated.
4209         * src/roff/groff/groff.cc (main): Updated.
4210         Pass device arguments to predrivers also.
4211         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
4212         * src/roff/troff/env.h (environment): Updated.
4213         New elements `need_eol' and `ignore_next_eol' (for html output).
4214         * src/roff/troff/env.cc (environment::environment): Add initializers
4215         for `need_eol' and `ignore_next_eol'.
4216         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
4217         functions.
4218         (point_size, fill, no_fill, center, right_justify, line_length,
4219         indent, temporary_indent, break_request, handle_tab): Use
4220         `add_html_tag()'.
4221         (set_tabs): Use `add_html_tag_tabs()'.
4222         (environment::add_html_tag): Updated.
4223         (environment::do_break): Updated.
4224         * src/roff/troff/div.cc (space_request, flush_output): Use
4225         `environment::add_html_tag()'.
4226         * src/roff/troff/input.cc: Updated.
4227         New variable `html_level' to indicate nested `html-begin' requests.
4228         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
4229         (non_interpreted_char_node, token_node, non_interpreted_node): Add
4230         `force_tprint()' method.
4231         (token::next): Handle `\O'.
4232         (do_suppress): Implement it.
4233         (html_begin, html_end, html_image): New functions.
4234         (init_output_requests): Renamed to ...
4235         (init_html_requests): this.
4236         (main): Use it.
4237         (macro::append_str, macro::append_unsigned, macro::append_int): New
4238         methods.
4239         New variable `output_low_mark_miny' to limit minimal value of y.
4240         (reset_output_registers): Use it.
4241         (output_request): Removed.
4242         (get_output_registers): New function.
4243         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
4244         (*_node): Added `force_tprint()' if necessary.
4245         (special_node): New elements `tf' and `get_tfont()'.
4246         (suppress_node): New class.
4247         * src/roff/troff/node.cc:
4248         New global variables `image_no' and `suppress_start_page'.
4249         (real_output_file): New method `is_on()'.
4250         (troff_output_file): New method `start_special(tfont)'.
4251         (troff_output_file::really_print_line): Use `tprint' conditionally.
4252         (real_output_file::print_line): Updated.
4253         (real_output_file::on): Updated.
4254         (*_node): Added `force_tprint()'.
4255         (special_node::special_node): Initializer updated.
4256         (special_node::same, special_node::copy, special_node::tprint_start):
4257         Updated.
4258         (get_reg_int, get_reg_str): New functions.
4259         (suppress_node::*): New methods.
4260         New global variables last_position, last_image_filename;
4261         (min): New inline function.
4262         * src/roff/troff/reg.h, src/roff/troff/request.h,
4263         src/roff/troff/troff.h: Updated.
4265 2001-01-13  Werner LEMBERG  <wl@gnu.org>
4267         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
4268         documentation of `asciify' request.
4270 2001-01-12  Werner LEMBERG  <wl@gnu.org>
4272         * src/roff/troff/input.cc: Move definition of special characters
4273         like `ESCAPE_TILDE' to ...
4274         * src/roff/troff/input.h: New file.
4275         * src/roff/troff/Makefile.sub (HDRS): Add it.
4277         Extending the .asciify request to `unformat' space characters also.
4279         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
4280         to count input space characters.
4281         Update constructors to take care of it.
4282         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
4283         `ESCAPE_SPACE' instead of normal space.
4284         (word_space_node::asciify): New method.
4285         (unbreakable_space_node::asciify): New method.
4286         (word_space_node::merge_space): New method.
4287         * src/roff/troff/env.cc (environment::space_newline,
4288         environment::space): Add code to initialize `num_spaces' (using the
4289         constructor of `word_space_node').
4290         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
4291         Document it.
4293 2001-01-09  Werner LEMBERG  <wl@gnu.org>
4295         * man/groff_char.man: Use table header traps only conditionally.
4297 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
4299         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
4301 2001-01-08  Werner LEMBERG  <wl@gnu.org>
4303         Introducing the `box' and `boxa' requests which are similar to
4304         `di' resp. `da' but omitting a partially filled line (which is
4305         restored after ending the diversion).
4307         * src/roff/troff/div.h (diversion): Add elements to save partially
4308         filled line.
4309         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
4310         partially filled line.
4311         (divert, divert_append): Updated.
4312         (box, box_append): New functions.
4313         (init_div_requests): Use them.
4314         * src/roff/troff/env.h (environment): do_divert() is now a friend.
4315         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
4317         * doc/groff.texinfo: Fix documentation of `lf' request.
4319 2000-12-25  Werner LEMBERG  <wl@gnu.org>
4321         * src/roff/troff/troff.man, NEWS: Document `writem' request.
4323 2000-12-21  Werner LEMBERG  <wl@gnu.org>
4325         Ignore `ss' request if in compatibility mode.
4327         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
4328         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
4329         * src/roff/troff/env.cc (space_size): Use it.
4331         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
4332         `ss' request in nroff mode.
4334         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
4335         changes.
4337 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
4339         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
4341 2000-12-13  Werner LEMBERG  <wl@gnu.org>
4343         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
4344         * src/preproc/eqn/neqn.man: Small fixes and additions.
4346 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
4348         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
4349         Fixing typo.
4351         * src/preproc/eqn/neqn.man: New file.
4353         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
4354         negative' warning.
4356         * tmac/e.tmac: Add `T&' macro.
4357         Fix `indent cannot be negative' warning.
4358         * tmac/s.tmac: Fix `indent cannot be negative' warning.
4360 2000-12-07  Werner LEMBERG  <wl@gnu.org>
4362         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
4364 2000-12-06  Werner LEMBERG  <wl@gnu.org>
4366         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
4367         `alloca' symbol .
4369         * MORE.STUFF: Added info about deroff for djgpp.
4371         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
4372         documentation of -rcR switch.
4374 2000-12-03  Werner LEMBERG  <wl@gnu.org>
4376         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
4377         if -rcR=1 (which is now the default in nroff mode), a single, very
4378         long page is created instead of multiple pages: All `ne' and `wh'
4379         requests are put into conditionals; a new macro `an-end' is added to
4380         be called with `em'.
4382         Some other minor cleanups.
4384         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
4386 2000-12-02  Werner LEMBERG  <wl@gnu.org>
4388         Fixing a bug which prevented hyphenation in words followed
4389         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
4391         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
4392         Adding possibly_break_line().
4393         * src/roff/troff/env.h (environment): Make possibly_break_line()
4394         public.
4396         Make `\~' usable in .tr request.
4398         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
4399         (token): Add stretchable_space().
4400         * src/roff/troff/input.cc (token::next, token::delimiter,
4401         token::description, process_input_stack, do_translate,
4402         add_to_node_list, token::process): Use it.
4403         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
4404         for adjusting the space.
4405         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
4406         for stretchable space.
4407         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
4408         (make_node): Add code for stretchable space.
4409         * src/roff/troff/env.cc (environment::add_char): Use it.
4410         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
4411         (get_copy, token::next, transparent_translate, asciify): Use it.
4413         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
4414         doc/groff.texinfo: Updated.
4415         * man/groff.man: Small reorderings.
4417 2000-11-23  Werner LEMBERG  <wl@gnu.org>
4419         * NEWS: Fixes.
4420         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
4421         option.
4422         * src/roff/troff/input.cc (main): Add `config_macro_path' and
4423         `safer_macro_path' to -M option.
4424         * src/roff/troff/troff.man: Fixes.
4426 2000-11-22  Werner LEMBERG  <wl@gnu.org>
4428         Use safer path (except for config files) if -U isn't specified.  Add
4429         a special macro path (without home and current directory) for config
4430         files.  Add home directory to unsafe path for consistency.  Don't
4431         include the home directory in the font path.
4433         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
4434         `macro_path'.
4435         * src/include/macropath.h: Add `config_macrp_path'.
4436         * src/libs/libgroff/fontfile.cc: Fix font path.
4437         * src/roff/troff/input.cc (process_startup_file): Use
4438         `config_macro_path'.
4439         (main): Select unsafe path if -U is given.
4441         * src/preproc/eqn/main.cc (main): Fixing search path for
4442         configuration file.
4443         * src/preproc/eqn/eqn.man: Updated.
4445         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
4446         Updated.
4448         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
4449         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
4450         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4451         src/devices/grotty/grotty.man: Updated.
4453         * Makefile.in: Fix comments.
4455 2000-11-17  Werner LEMBERG  <wl@gnu.org>
4457         * tmac/safer.tmac: Empty file added (again) for compatibility
4458         reasons.
4459         * tmac/Makefile.sub: Updated.
4461 2000-11-16  Werner LEMBERG  <wl@gnu.org>
4463         * src/devices/grodvi/dvi.cc (main),
4464         src/devices/grohtml2/post-html.cc (main),
4465         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4466         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4467         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4468         (main), src/preproc/html2/pre-html.cc (main),
4469         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4470         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4471         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4472         (main), src/utils/hpftodit/hpftodit.cc (main),
4473         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
4474         (main), src/utils/lookbib/lookbib.cc (main),
4475         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
4476         (main): Use stdout for -v.
4477         * src/roff/groff/groff.cc (run_commands),
4478         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
4479         to make direct printing to stdout possible.
4480         * src/roff/groff/pipeline.h: Updated.
4482         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
4483         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
4484         * src/utils/afmtodit/afmtodit.man: Updated.
4486         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
4487         (version): New function.
4488         (usage): Updated.
4489         * src/utils/addftinfo/addftinfo.man: Updated.
4491         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
4492         Fixing copyright dates.
4494         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
4495         replacing it.
4497         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
4498         version_string.
4500         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
4502 2000-11-15  Werner LEMBERG  <wl@gnu.org>
4504         In all programs, make -v return immediately with exit status 0 to
4505         be compliant with the GNU standard.
4507         * src/devices/grodvi/dvi.cc (main),
4508         src/devices/grohtml2/post-html.cc (main),
4509         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
4510         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
4511         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
4512         (main), src/preproc/html2/pre-html.cc (main),
4513         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
4514         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
4515         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
4516         (main): Implement it.
4517         * NEWS: Updated.
4519         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
4520         and postprocessors to the -v option.
4522         * src/roff/grog/grog.pl: Implement -v.
4523         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
4524         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4526         * src/roff/nroff/nroff.sh: Implement -v.
4527         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
4528         * src/roff/nroff/nroff.man: Updated.
4529         
4530         * src/preproc/eqn/main.cc (main): Fix comment typo.
4532         * MORE.STUFF: Added info about djgpp port of grap.
4534 2000-11-14  Werner LEMBERG  <wl@gnu.org>
4536         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
4537         mode (or rather, implemented non-compatibility mode).
4538         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
4540         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
4541         replacing it -- we don't find gxditview otherwise.
4542         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
4544         * src/preproc/pic/depend: Removed.  Unnecessary.
4546         Implemented dummy keyword `solid' in pic for compatibility with
4547         AT&T pic.
4549         * lex.cc (lookup_keyword): Added `solid'.
4550         * pic.y: Added SOLID with dummy rule.
4551         * pic.cc, pic_tab.h: Regenerated.
4552         * doc/pic.ms: Updated.
4554 2000-11-13  Werner LEMBERG  <wl@gnu.org>
4556         For security reasons, don't use the current directory but the home
4557         directory while searching and scanning troffrc and troffrc-end.
4558         Similarly, replace the current directory with the home directory
4559         in the font path.
4561         * Makefile.in (fontpath, tmacpath): Remove current directory.
4563         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
4564         two parameters `add_home' and `add_current'.
4565         (search_path::~search_path, search_path::command_line_dir,
4566         search_path::open_file): Remove tests for `dirs' being zero.
4567         * src/include/searchpath.h: Adjust.
4568         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
4569         `safer_macro_path'.
4570         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
4572         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
4573         * src/roff/troff/input.cc: Use `mac_path', initialized with
4574         `macro_path'.
4575         (process_startup_file): Set `mac_path' to `safer_macro_path'.
4576         * src/roff/troff/env.cc: Use `mac_path'.
4578         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
4580         * NEWS, man/roff.man, src/roff/troff/troff.man,
4581         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
4582         Updated.
4584 2000-11-12  Werner LEMBERG  <wl@gnu.org>
4586         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
4588         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
4589         * configure.in: Fix typo in comment.
4590         * configure: Regenerated.
4592         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
4593         copyright dates.
4595 2000-11-08  Werner LEMBERG  <wl@gnu.org>
4597         Add system tmac directory (/usr/local/lib/groff/site-tmac).
4599         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
4600         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
4601         $(systemtmacdir).
4602         Use @libdir@.
4603         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
4604         * tmac/Makefile.sub (install_data): Create
4605         $(systemtmacdir) and $(localtmacdir).
4606         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
4607         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
4608         NEWS, doc/groff.texinfo: Updated and minor fixes.
4610         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
4611         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
4612         $(systemtmacdir) since the wrapper files are platform-dependent.
4614 2000-11-01  Werner LEMBERG  <wl@gnu.org>
4616         * doc/groff.texinfo: Fix typo.
4618 2000-10-26  Werner LEMBERG  <wl@gnu.org>
4620         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
4621           tmac.doc.old -> doc-old.tmac
4622           tmac.an.old  -> an-old.tmac
4624         * tmac/tmac.*: Moved to ...
4625         * tmac/*.tmac: this.
4626         * tmac/man.local: Fix comment.
4627         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
4628         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
4629         Added some `FILES' sections.  More use of @...@ directives.  Other
4630         minor updates.
4631         * arch/djgpp/README, font/devutf8/NOTES: Updated.
4632         * doc/homepage.ms, doc/groff.texinfo: Updated.
4633         * man/groff.man, man/roff.man: Updated.
4634         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
4635         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
4636         src/devices/grotty/grotty.man: Updated.
4637         * src/preproc/pic/pic.man: Updated.
4638         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
4639         instead of -mdoc.old.
4640         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
4641         * src/roff/nroff/nroff.man: Updated.
4642         * NEWS: Updated.
4644         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
4646         * tmac/mm.diff: Removed -- it has no use now since the mm package
4647         is part of groff.
4649         * tmac/*: Removed trailing spaces.
4651         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
4652         the tmac subdirectory also).
4654         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
4655         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
4656         stuff since it is no longer needed.
4658         * README, PROBLEMS: Updated.
4660 2000-10-25  Werner LEMBERG  <wl@gnu.org>
4662         Invert current behaviour: Search first FOOBAR.tmac, then
4663         tmac.FOOBAR.
4665         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
4666         (open_mac_file, macro_source): Implement it.
4667         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
4668         doc/groff.texinfo, NEWS: Document it.
4670         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
4671         Small documentation improvements.
4673         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
4674         subdirectory also).
4676         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
4678 2000-10-24  Werner LEMBERG  <wl@gnu.org>
4680         Add local tmac directory (groff/site-tmac).
4682         * Makefile.in: Add $(localtmacdir).
4683         (uninstall_dirs): Add $(localtmacdir).
4684         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
4685         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
4686         in $(localtmacdir).  Create $(localtmacdir).
4687         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
4688         Updated and minor fixes.
4690         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
4692         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
4694 2000-10-23  Werner LEMBERG  <wl@gnu.org>
4696         Move hyphen.us to tmac directory.
4698         * src/roff/troff/hyphen.us: Removed.
4699         * src/tmac/hyphen.us: Added.
4700         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
4702         Change installation structure for data files from .../groff/... to
4703         .../groff/<version><revision>/... to be conform with other GNU
4704         programs.
4706         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
4707         doc/Makefile: Implement it.
4708         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
4709         * configure: Updated.
4710         * arch/djgpp/README, font/devutf8/NOTES: Use it.
4711         * NEWS: Document it.
4712         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
4713         @MACRODIR@ instead of hard-coded directories.
4715 2000-10-22  Werner LEMBERG  <wl@gnu.org>
4717         Implement $GROFF_BIN_PATH environment variable (which defaults to
4718         $bindir) used for child programs of groff and similar wrappers.
4720         * gendefs.sh: Improve documentation.
4721         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
4722         src/preproc/eqn/Makefile.sub (neqn),
4723         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
4724         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
4725         $GROFF_BIN_PATH.
4726         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
4727         $GROFF_PATH__ (the latter for communication with troff).
4728         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
4729         set.
4730         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
4731         doc/groff.texinfo: Document it.
4733         * doc/groff.texinfo: Improve documentation of troff's -a option.
4735 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
4737         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
4738         non-intrusive eol marker.
4739         (troff_output_file::determine_line_limits): New function.
4740         (troff_output_file::draw): Use it.
4741         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
4742         output_pending_lines() instead of output_line().
4743         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
4744         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
4745         createImage): Small fixes.
4746         
4747 2000-10-14  Werner LEMBERG  <wl@gnu.org>
4749         Replace tmac.safer with a real secure solution.
4751         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
4752         system_request, pipe_output): Disable requests if in safer mode.
4753         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
4754         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
4755         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
4756         doc/groff.texinfo, src/roff/groff/groff.man,
4757         src/roff/troff/troff.man, arch/djgpp/README: Updated.
4759         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
4760         (resource_manager::output_prolog): Replace setenv() with putenv().
4762 2000-10-09  Werner LEMBERG  <wl@gnu.org>
4764         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
4765         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
4766         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
4767         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
4768         compilation errors with some compilers.  It seems that this code
4769         is no longer necessary -- if yes, it is easy to add some #ifdef's
4770         for that particular old-fashioned compiler.
4772         * MORE.STUFF: Added info about Meta-tbl.
4774         * doc/groff.texinfo: Added more info about `.if "..."..."'.
4776 2000-10-07  Werner LEMBERG  <wl@gnu.org>
4778         Adding a new escape sequence \B'...': If the string between
4779         the delimiters is a valid numeric expression, return the character
4780         `1', and `0' otherwise.  This is an analogon to \A.
4782         * src/roff/troff/input.cc (do_expr_test): Implement it.
4783         (token::next): Use it.
4784         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
4786         * tmac/tmac.trace: Made independent from escape character.
4788 2000-10-06  Werner LEMBERG  <wl@gnu.org>
4790         Adding a new request .dei: define indirect.  The first and second
4791         parameter of .dei are taken from string registers instead directly;
4792         this very special request is needed to make tmac.trace independent
4793         from the escape character (which might even be disabled).
4795         * src/roff/troff/input.cc (do_define_macro): Implement it.
4796         (define_macro_indirect): New function.
4797         (init_input_requests): Use it.
4799         Adding two requests .ecs and .ecr: Save and restore the escape
4800         character.  These two requests are needed to make tmac.trace
4801         independent from the escape character (which might even be
4802         disabled).
4804         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
4805         Implement it.
4806         (init_input_requests): Use it.
4808         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4810 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
4812         Adding a new option -P and new environment variable GROPS_PROLOGUE
4813         to grops, selecting a different prologue file (minor modifications
4814         by WL).
4816         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
4817         src/devices/grops/ps.cc (main): Implement it.
4818         * src/devices/grops/grops.man, NEWS: Document it.
4820 2000-09-22  Werner LEMBERG  <wl@gnu.org>
4822         * INSTALL: Add info about selecting paper format.
4824 2000-09-21  Werner LEMBERG  <wl@gnu.org>
4826         * src/roff/troff/input.cc (main): Fixing compiler warning.
4827         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
4828         strings.h from the former to the latter.
4829         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
4830         stuff from the former to the latter.
4832 2000-09-11  Werner LEMBERG  <wl@gnu.org>
4834         Implementing two new requests .tm1 and .tmc: The former is similar
4835         to .tm but can output leading spaces; its syntax is similar to
4836         defining a string, i.e., a `"' can be used to mark the beginning of
4837         the string to be written to stderr: `.tm1 " test'.  The latter is
4838         similar to .tm1 but doesn't write out a final newline character.
4840         * src/roff/troff/input.cc (terminal1, terminal_continue,
4841         do_terminal): New functions.
4842         (init_input_requests): Use them.
4843         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4845 2000-09-09  Werner LEMBERG  <wl@gnu.org>
4847         * tmac/groff_mdoc.samples.man: Small fixes.
4849 2000-09-08  Werner LEMBERG  <wl@gnu.org>
4851         * tmac/groff_mdoc.man: Fixing typo.
4853 2000-09-02  Werner LEMBERG  <wl@gnu.org>
4855         Implementing a .nop request which does nothing.
4857         * src/roff/troff/input.cc (nop_request): New function.
4858         (init_input_requests): Use it.
4859         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
4861 2000-09-01  Werner LEMBERG  <wl@gnu.org>
4863         * doc/groff.texinfo: Added some comments.
4865 2000-08-30  Werner LEMBERG  <wl@gnu.org>
4867         * src/roff/troff/TODO: Updated.
4869 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4871         * doc/groff.texinfo: Fix comment how to compile the DVI file.
4873 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4875         * font/devps/generate/Makefile (SHELL): Define explicitly to
4876         "/bin/sh", for non-Unix platforms.
4877         (extraclean): Use a more portable "" quoting instead of a
4878         backslash (which doesn't work on DOS/Windows).
4879         
4880         * font/devlj4/generate/Makefile (extraclean): Ditto.
4882         * font/devdvi/generate/Makefile (extraclean): Ditto.
4884 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4886         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
4887         src/roff/troff/troff.man: Document Eli's latest changes.
4889 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
4891         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
4892         macro file names of the form NAME.tmac as well as tmac.NAME.
4894 2000-08-25  Werner LEMBERG  <wl@gnu.org>
4896         * src/include/posix.h: Remove definition of FILENAME_MAX.
4898         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
4899         `sys_fatal' and `stop' function().
4901         * test-groff: Updated.
4903 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
4905         Added the new troff command .output <arg> to suppress output (while
4906         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
4907         registers (for passing the output dimensions to the output device).
4909         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
4910         parameter.
4911         * src/roff/troff/node.h, src/roff/troff/node.cc
4912         (troff_output_file::really_print_line,
4913         ascii_output_file::really_print_line,
4914         supress_output_file::really_print_line): Use `width' parameter.
4915         (troff_output_file::really_on, troff_output_file::really_off,
4916         output_file::on, output_file::off, real_output_file::on,
4917         real_output_file::off, real_output_file::really_on,
4918         real_output_file::really_off): New functions.
4919         (real_output_file:public output_file): New variable `output_on'.
4920         (real_output_file::begin_page, real_output_file::copy_file,
4921         real_output_file::transparent_char, real_output_file::print_line):
4922         Use it.
4923         (real_output_file::print_line): Use check_output_limits.
4924         * src/roff/troff/reg.h, src/roff/troff/request.h,
4925         src/roff/troff/input.cc (assign_registers): New function to remove
4926         two `goto's.
4927         (do_ps_file): Use it.
4928         (check_output_limits, reset_output_registers, output_request,
4929         init_output_requests): New functions.
4930         (init_input_requests): Updated.
4932         Added new grohtml2 device and html2 preprocessor (coding
4933         not yet finished) which will eventually replace grohtml.
4935         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
4936         Updated.
4937         * src/include/htmlindicate.h, src/include/htmlindicate
4938         (html_begin_suppress, html_end_suppress): New functions.
4939         * src/preproc/tbl/main.cc: Use it.
4940         * src/roff/groff/groff.cc: Add support for html2 device (which will
4941         automatically invoke the html2 preprocessor).
4942         * src/roff/troff/input.cc (is_html2): New variable.
4943         * src/roff/troff/troff.h, src/roff/troff/env.h,
4944         src/roff/troff/env.cc (environment::add_html_tag): New function
4945         (uses `is_html2').
4946         (environment::do_break): Use it.
4947         * font/devhtml2/*: New files.
4948         * src/devices/grohtml2: New device.
4949         * src/preproc/html2: New preprocessor.
4950         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
4952 2000-08-23  Werner LEMBERG  <wl@gnu.org>
4954         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
4956 2000-08-22  Werner LEMBERG  <wl@gnu.org>
4958         * src/include/lib.h: Provide a fix for IRIX to not include
4959         groff-getopt.h.
4961 2000-08-18  Werner LEMBERG  <wl@gnu.org>
4963         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
4964         since some non-GNU sed programs can't handle null regexps.
4965         * configure, src/preproc/eqn/Makefile.sub,
4966         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
4968         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
4969         bug (string.h and strings.h are both needed according to latest
4970         POSIX standard).
4972         * MORE.STUFF: Added info about unroff and troffcvt.
4974 2000-08-08  Werner LEMBERG  <wl@gnu.org>
4976         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
4977         used before -ms.
4979         * tmac/tmac.man.old: Remove unused number register.
4981         * tmac.doc: Minor documentation fix.
4983 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4985         * src/roff/groff/pipeline.c (is_system_shell):
4986         Fix typo: "monocased_shell" no longer exists.
4988 2000-08-07  Paul Eggert  <eggert@twinsun.com>
4990         Remove FILENAME_MAX limits.
4992         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
4993         that the argument length is less than FILENAME_MAX.
4994         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
4995         Use struct hack to allocate and free file name.
4996         (struct xtmpfile_list): fname is now part of the structure,
4997         not a pointer to another string.
4999 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
5001         * src/include/posix.h: Add a default value for FILENAME_MAX.
5003 2000-08-06  Paul Eggert  <eggert@twinsun.com>
5005         Add support for new BSD-style man pages (with ".Dd" instead of
5006         ".TH"), so that "groff -man" understands both styles, even
5007         when running "groff -man" on a host whose system man page
5008         macros don't support ".Dd".
5010         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
5011         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
5012         in case the system man macros don't define Dd or TH.
5014         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
5015         * tmac/tmac.an: New one-line file.
5016         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
5018 2000-08-06  Werner LEMBERG  <wl@gnu.org>
5020         * src/roff/troff/troff.man: Fixing typos.
5022 Version 1.16.1 released
5023 =======================
5025 2000-07-31  Werner LEMBERG  <wl@gnu.org>
5027         Preparing release 1.16.1.
5029         * REVISION: Revision number set to 1.
5030         * MORE.STUFF: Added info about port to DOS.
5031         * NEWS, win32-diffs: Updated.
5033         * src/include/nonposix.h: Remove first line -- this file is used
5034         in C also.
5036         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
5037         link to it.
5039 2000-07-30  Werner LEMBERG  <wl@gnu.org>
5041         * doc/texinfo.tex: Update to latest version.
5043 2000-06-28  Paul Eggert  <eggert@twinsun.com>
5045         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
5046         commands that fail.  Don't assume that "export a=b" is valid shell
5047         syntax.  This is needed for Solaris 2.5.1.
5049         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
5050         comment about missing Solaris headers.
5052         * PROBLEMS: Add section about problems with Sun Make and VPATH.
5054 2000-06-25  Werner LEMBERG  <wl@gnu.org>
5056         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
5057         SET_BINARY().
5059         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
5061         * win32-diffs: Updated.
5062         * README.WIN32: Added CRs to make all Windows editors happy.
5064         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
5065         src/roff/groff/pipeline.c).
5067 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5069         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
5070         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
5072 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
5074         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
5075         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
5076         are binary files.
5077         (main): Support non-Posix systems with several different styles of
5078         slash characters in file names.
5080         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
5081         (main) [SET_BINARY]: Switch stdin into binary mode.
5083         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
5084         (main): Support file names with several possible slash-type
5085         characters, as given by DIR_SEPS[] in nonposix.h.
5086         (main) [__MSDOS__]: If renaming the temporary index file fails
5087         because it has more than one dot in its trunk, replace the dot
5088         with an underscore and try again.
5089         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
5090         Newline.
5091         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
5093         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
5094         (File::File): Open the input file in binary mode.  Strip CR
5095         characters from each CR-LF pair.
5096         (xbasename): Support file names with several possible slash-type
5097         characters, as given by DIR_SEPS[] in nonposix.h.
5099         * src/include/Makefile.sub (HDRS): Add nonposix.h.
5101         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
5102         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
5103         [!_POSIX_VERSION]: Define for traditional Unix systems.
5104         (real_output_file::real_output_file): Remove the MSVC-specific
5105         call to popen, use instead POPEN_WT, appropriately defined on
5106         nonposix.h.  #include nonposix.h.
5107         (real_output_file::~real_output_file): Remove the MSVC-specific
5108         call to pclose, a suitable macro is now defined on nonposix.h.
5109         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
5110         and WEXITSTATUS instead of assuming traditional Unix
5111         interpretation of the status returned by pclose.
5113         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
5114         call to popen, use POPEN_RT instead (appropriately defined on
5115         nonposix.h).  #include nonposix.h.
5116         (ps_bbox_request): Open the PostScript file in binary mode.
5117         Close the file after processing it.
5118         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
5119         nonposix.h.
5121         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
5122         A version of run_pipeline that doesn't use `fork'.
5123         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
5124         (system_shell_name, system_shell_dash_c)
5125         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
5126         the ugliness of testing DOS/Windows file names for equality, and
5127         support both stock shells and ports of Unix shells.
5129         * src/roff/groff/groff.cc: #include nonposix.h.
5130         (BSHELL): Definition moved to nonposix.h.
5131         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
5132         instead of a literal "-c".
5133         (xbasename): Support file names with several possible slash-type
5134         characters, as given by DIR_SEPS[] in nonposix.h.
5135         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
5136         of literal strings.
5138         * src/preproc/soelim/soelim.cc: #include nonposix.h.
5139         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
5141         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
5142         pic_tab.h.
5144         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
5146         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
5147         eqn_tab.h.
5149         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
5151         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
5152         P_tmpdir is defined, use it instead of the literal "/tmp".
5153         (remove_tmp_files, add_tmp_file): New functions.
5154         (xtmpfile): Record temporary files and register an atexit function
5155         to delete them explicitly, instead of relying on the OS to do
5156         that, which doesn't work on non-Unix systems.
5158         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
5159         (search_path::search_path): Use PATH_SEP instead of a literal
5160         colon.
5161         (search_path::command_line_dir): Ditto.
5162         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
5163         to support non-Posix systems.
5165         * src/libs/libbib/search.cc: #include nonposix.h.
5166         (search_list::add_file): Open the file in binary mode.
5168         * src/libs/libbib/linear.cc: #include nonposix.h.
5169         (file_buffer::load): Remove \r characters preceding \n from the
5170         loaded buffer.
5172         * src/libs/libbib/index.cc: #include nonposix.h.
5173         (make_index_search_item): Open index_filename in O_BINARY mode.
5174         (index_search_item_iterator::get_tag): Ditto.  Remove \r
5175         characters before \n characters.
5176         (index_search_item::check_files): Open files in binary mode.
5177         (index_search_item::munge_filename): Support DOS-style file names
5178         with backslashes and drive letters, use IS_ABSOLUTE.
5180         * src/devices/grops/ps.cc: #include nonposix.h.
5181         (main) [SET_BINARY]: Switch stdout to binary mode.
5183         * src/devices/grolj4/lj4.cc: #include nonposix.h.
5184         (main) [SET_BINARY]: Switch stdout to binary mode.
5186         * src/devices/grolbp/lbp.cc: #include nonposix.h
5187         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
5189         * src/devices/grodvi/dvi.cc: #include nonposix.h.
5190         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
5191         nonposix.h).
5192         (main) [SET_BINARY]: Switch stdout to binary mode.
5193         [_MSC_VER]: Remove an explicit call to _setmode.
5195         * src/include/nonposix.h: New file.
5197         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
5198         operation when building with DJGPP.
5199         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
5200         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
5201         ENVSETUP.
5203         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
5204         MS-DOS.
5205         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
5206         etc. can include a semi-colon on DOS/Windows.
5207         (depend.temp): Use depend1.temp instead of depend.temp1, to
5208         prevent files from overerwiting each other on 8+3 filesystems.
5210         * gendef.sh (t): Change definition to work with DOS/Windows.
5212         doc/groff.texinfo: Apart of some typo corrections, I also changed
5213         some index entris, to make them more non-ambiguous, and also put
5214         @ignore around some parts that are not yet written, to allow the
5215         Info output be readable.
5217 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
5219         Replaced specific checks for function declarations with a generic
5220         routine taken from GNU bfd.
5222         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
5223         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
5224         * configure.in: Use it.
5225         * src/devices/grolbp/lbp.cc, src/include/lib.h,
5226         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
5227         src/roff/groff/groff.cc: Use it.
5228         * Makefile.in, configure: Updated.
5230 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
5232         * src/devides/grolbp/lbp.h: Removed unused variables.
5234 2000-05-31  Keith Thompson  <kst@sdsc.edu>
5236         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
5237         strncasecmp().
5239 2000-05-31  Werner LEMBERG  <wl@gnu.org>
5241         * aclocal.m4 (GROFF_SRAND): New function to test the return value
5242         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
5243         * configure.in: Use it.
5244         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
5245         * configure, Makefile.in: Updated.
5247         * configure.in: Add test for strncasecmp().
5248         * src/include/lib.h: Use it.
5250 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
5252         * src/preproc/grn/Makefile.sub: Add MLIB.
5254 2000-05-29  Nix  <nix@esperi.demon.co.uk>
5256         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
5258 2000-05-29  Werner LEMBERG  <wl@gnu.org>
5260         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
5262         * PROBLEMS: Small update.
5264         * src/devices/grolbp/lbp.cc: Various small fixes.
5266 2000-05-28  Keith Thompson  <kst@sdsc.edu>
5268         * src/roff/nroff/nroff.sh: Fix main loop syntax.
5270         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
5272 2000-05-25  Werner LEMBERG  <wl@gnu.org>
5274         * man/roff.man: Removed unused macro.
5276 2000-05-24  Werner LEMBERG  <wl@gnu.org>
5278         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
5279         This is needed e.g. if you do
5280         `make distclean; ./configure; make dist'.
5282 Version 1.16 released
5283 =====================
5285 2000-05-23  Werner LEMBERG  <wl@gnu.org>
5287         Adding font CWI (constant width italic) to devdvi.
5289         * font/devdvi/CWI: New file.
5290         * font/devdvi/generate/Makefile: Add generating rule.
5291         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
5292         tmac/tmac.dvi: Use it.
5293         * NEWS: Announce it.
5295         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
5296         * font/devlj4/generate/Makefile: Cosmetic changes only.
5298         * man/groff.man: Removed most of the redundant description of
5299         special characters (which is in groff_char.man).  Added font
5300         translation CB->CR for devdvi.  Other minor fixes.
5302         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
5303         (registered) symbols.
5305 2000-05-22  Werner LEMBERG  <wl@gnu.org>
5307         * doc/Makefile: Added rule for creating info files.
5309         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
5310         AMS font metrics.
5311         * font/devdvi/generate/Makefile: Fixed dependencies.
5313         * font/devps/*: Regenerated.  Heavy changes for Bookman and
5314         NewCentury Schoolbook!
5315         * font/devps/generate/afmname: Will now run with GNU awk.
5316         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
5317         * font/devps/generate/Makefile: Cosmetic changes only.
5319 2000-05-21  Werner LEMBERG  <wl@gnu.org>
5321         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
5322         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
5323         `.SS' now produces a heading with a smaller size than `.SH'. 
5324         Completely formatted.
5325         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
5327         * man/groff.man: Improved table appearance.  Use of `eo' request
5328         to reduce number of doubled backslashes in macro definitions.
5329         Replacing `\e' with `\(rs'.  Other minor fixes.
5331         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
5332         to have correct line number.
5334         * INSTALL: Small improvement.
5336 2000-05-20  Bernd Warken  <bwarken@mayn.de>
5338         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
5339         WL).
5341 2000-05-19  Bernd Warken  <bwarken@mayn.de>
5343         * man/groff.man: Complete update (with a lot of corrections by WL).
5345 2000-05-18  Werner LEMBERG  <wl@gnu.org>
5347         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
5349         * font/*/*: Implement it.
5350         * man/groff_char.man, NEWS: Document it.
5352         * src/include/unix.h: Removed.  It isn't used.
5354         * doc/groff.texinfo: Slight improvements.
5356 2000-05-17  Werner LEMBERG  <wl@gnu.org>
5358         * README, win32-diffs: Small fixes and improvements.
5360 2000-05-16  Werner LEMBERG  <wl@gnu.org>
5362         * FDL: New file (the Free Documentation License version 1.1).
5364         * doc/groff.texinfo: Added many start-up values for gtroff.
5365         Some structural improvements of the source code.
5367 2000-05-15  Werner LEMBERG  <wl@gnu.org>
5369         * src/roff/troff/input.cc: Added small comment about troffrc-end.
5370         * src/roff/troff/troff.man: Added info about troffrc-end.
5372 2000-05-14  Werner LEMBERG  <wl@gnu.org>
5374         * Makefile.in (EXTRADIRS): Fix typos.
5375         (dist): Handle deletion of old .tar.gz file correctly.
5376         (DISTDIRS): Include all tty output devices.
5378         * doc/groff.texinfo: Adding more cross references; countless other
5379         fixes.
5381 2000-05-13  Werner LEMBERG  <wl@gnu.org>
5383         * MORE.STUFF: Added Robert Marks's utilities.
5385 2000-05-12  Werner LEMBERG  <wl@gnu.org>
5387         Added win32 port contributed by Blake McBride
5388         <blake@florida-software.com>.
5390         * README.WIN32, win32-diffs: New files.
5391         * NEWS: Updated.
5393         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
5394         (tmove, tmove2): Added parentheses to avoid compiler warnings.
5395         (change): Removed unused variables.
5397         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
5398         (savebounds): Changed return value from `int' to `void'.
5399         * src/preproc/grn/hdb.cc: Ditto.
5401         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
5402         final backslash in comment to avoid compiler warning.
5404         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
5406         * doc/groff.texinfo: More fixes.
5408 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
5410         * tmac/tmac.doc: Documentation fix.
5412 2000-05-11  Werner LEMBERG  <wl@gnu.org>
5414         * doc/groff.texinfo: Reading the source code shows up a lot of
5415         omissions and incorrect data...  More conversion to @Deffn macros.
5417 2000-05-10  Werner LEMBERG  <wl@gnu.org>
5419         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
5420         dependency.
5422         * src/roff/troff/request.h: Removing unused `no_break_flag'.
5424 2000-05-09  Werner LEMBERG  <wl@gnu.org>
5426         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
5427         improvements.
5429         * doc/groff.texinfo: Extended history section.  More conversion to
5430         @Deffn macros.  More .tr documentation.
5432 2000-05-07  Werner LEMBERG  <wl@gnu.org>
5434         * doc/groff.texinfo: Completed tab section.  Added info about
5435         fields.
5437 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
5439         * PROBLEMS: Describe configure script fix for OS/390 Unix.
5441 2000-05-05  Werner LEMBERG  <wl@gnu.org>
5443         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
5444         LaTeX 2e).
5445         * NEWS: Document it.
5447         * man/troff.man: Minor optical improvements.
5449 2000-05-03  Werner LEMBERG  <wl@gnu.org>
5451         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
5453         * font/*/*: Implement it.
5454         * man/groff_char.man, NEWS: Document it.
5456 2000-05-02  Werner LEMBERG  <wl@gnu.org>
5458         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
5459         expansion.
5460         * NEWS: Document the three new man pages.
5462         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
5463         * configure: Updated.
5465         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
5467 2000-05-01  Werner LEMBERG  <wl@gnu.org>
5469         Added grap support to grog.
5471         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
5472         * src/roff/grog/grog.man: Document it.
5474         * doc/groff.texinfo, NEWS: Add info about grap support.
5476         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
5477         (with slight fixes by me).
5479         * tmac/groff_tmac.man: New file documenting tmac mechanism.
5480         * tmac/Makefile.sub: Add groff_tmac.man.
5481         * man/roff.man: New file giving overview of roff system.
5482         * man/troff.man: A short reference of troff.
5483         * man/Makefile.sub: Add roff.man and troff.man.
5485 2000-04-30  Werner LEMBERG  <wl@gnu.org>
5487         Added grap support to groff.
5489         * src/roff/groff/groff.cc: Implement it.
5490         * src/roff/groff/groff.man: Document it.
5492         * src/devices/grotty/grotty.man: Add cp1047 device.
5493         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
5494         Ditto.
5495         * src/roff/groff/groff.man: Ditto.
5496         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
5497         * doc/groff.texinfo: Ditto.
5499         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
5500         for cp1047.
5502 2000-04-29  Werner LEMBERG  <wl@gnu.org>
5504         * man/groff_char.man: Add `pc' glyph.
5505         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
5506         * tmac/tmac.tty: Add `pc' glyph.
5507         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
5508         we use cp1047 output device.
5510         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
5511         there are still hardcoded latin1->unicode values in utf8's font
5512         definition files.
5513         * configure: Updated.
5514         * NEWS: Minor clarification.  Updated.
5516         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
5517         Unix.
5519 2000-04-28  Werner LEMBERG  <wl@gnu.org>
5521         Adding EBCDIC code page 1047.
5523         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
5524         font/devcp1047/DESC.proto: New files.
5526         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
5527         either ascii/latin1 or cp1047.
5528         * Makefile.in: Use it.
5529         * configure: Updated.
5531         Replacing and/or adding `md' (mathdot) glyph with `pc'
5532         (periodcentered) in all text fonts.
5534         * font/*/*: Change it.
5536 2000-04-27  Werner LEMBERG  <wl@gnu.org>
5538         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
5540         * configure.in: Add check for strings.h.
5541         * src/include/driver.h: Use HAVE_STRINGS_H.
5542         * src/devices/grolbp/lpb.cc: Remove string.h.
5544         * src/include/groff-getopt.h: New file.  It will be used instead of
5545         getopt.h (to be included in lib.h) to avoid endless problems with
5546         picky C++ compilers.
5547         * src/include/lib.h: Use groff-getopt.h.
5548         * src/include/Makefile.sub: Updated.
5550         * configure: Updated.
5551         * Makefile.in: Updated.
5553         * NEWS: Mention EBCDIC support.
5555 2000-04-26  Werner LEMBERG  <wl@gnu.org>
5557         * TODO: Some additions.
5559 2000-04-25  Werner LEMBERG  <wl@gnu.org>
5561         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
5562         of mso request.
5564 2000-04-23  Werner LEMBERG  <wl@gnu.org>
5566         * src/roff/troff/troff.man: Minor fixes.
5568 2000-04-22  Werner LEMBERG  <wl@gnu.org>
5570         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
5571         `.T' string register and the incompatible definition of the `.T'
5572         number register (compared to Unix troff).
5574         * man/groff_char.man: Add some missing characters.
5575         * font/devutf8/NOTES: Update.
5577 2000-04-21  Werner LEMBERG  <wl@gnu.org>
5579         * src/include/htmlindicate.h, src/include/lib.h,
5580         src/include/posix.h: Fix copyright.
5582         * src/include/Makefile.sub: Update.
5584 2000-04-20  Werner LEMBERG  <wl@gnu.org>
5586         * src/roff/troff/input.cc (input_char_description): Removing
5587         superfluous space char.
5589         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
5591         * doc/groff.texinfo: Document EBCDIC.
5593 2000-04-19  Werner LEMBERG  <wl@gnu.org>
5595         Introducing `shc' as the glyph name for the soft hyphen character.
5597         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
5598         font/devlatin1/R.proto: Use it.
5600         * NEWS: Updated.
5602 2000-04-18  Werner LEMBERG  <wl@gnu.org>
5604         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
5605         dependency on ASCII order.
5607 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
5609         * src/libs/libgroff/illegal.c: Added EBCDIC table.
5610         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
5612         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
5613         to increase portability.
5615 2000-04-15  Werner LEMBERG  <wl@gnu.org>
5617         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
5618         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
5619         the generic `\n' if under OS/390 Unix.
5621         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
5623         * configure: Regenerated.
5625 2000-04-14  Werner LEMBERG  <wl@gnu.org>
5627         * doc/groff.texinfo: More conversions to @Deffn.
5629 2000-04-12  Werner LEMBERG  <wl@gnu.org>
5631         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
5632         with `:'.
5634         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
5636 2000-04-10  Werner LEMBERG  <wl@gnu.org>
5638         * doc/groff.texinfo: More conversions to @Deffn.
5640 2000-04-08  Werner LEMBERG  <wl@gnu.org>
5642         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
5643         Updated to latest version (glibc 2.1.3).
5645 2000-04-07  Werner LEMBERG  <wl@gnu.org>
5647         * doc/Makefile (clean): Include more index files.
5648         Add rule texinfo->dvi.
5650 2000-04-05  Werner LEMBERG  <wl@gnu.org>
5652         * doc/groff.texinfo: Added new index `op' for operators.  More
5653         info on end of sentence characters.  More use of @Deffn.
5655 2000-03-30  Werner LEMBERG  <wl@gnu.org>
5657         * */*.man: Adding a note that a whitespace can be inserted between
5658         a command line option and its parameter -- we are using GNU getopt.
5660         * src/roff/groff/groff.man: Add example of `-m mandoc'.
5662 2000-03-28  Werner LEMBERG  <wl@gnu.org>
5664         Correct anachronism of calling the man macro file with `-man'
5665         instead of `-m man' etc.
5667         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
5668         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
5669         load tmac.<package>.
5671         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
5673         * NEWS: Updated.
5675         * doc/groff.texinfo: Updated.
5677         * tmac/groff_man.man: Copyright added.
5679 2000-03-27  Werner LEMBERG  <wl@gnu.org>
5681         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
5682         typeset the request resp. escape name with a tt font -- due to a
5683         bug in texinfo.tex it is necessary to use the `-e' switch with
5684         texi2dvi.
5686         Improving info about usage of groff units.
5688         Other minor fixes.
5690 2000-03-20  Werner LEMBERG  <wl@gnu.org>
5692         * doc/groff.texinfo: Added section about man macro package
5693         (I've basically taken groff_man.man).  Introducing new indices `ma'
5694         for macros/strings and `gl' for glyph names.  Other minor fixes.
5696         * tmac/groff_man.man: Fixed some typos.
5698 2000-03-19  Werner LEMBERG  <wl@gnu.org>
5700         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
5701         Other minor fixes.
5703         * doc/texinfo.tex: New file.
5705 2000-03-18  Werner LEMBERG  <wl@gnu.org>
5707         * doc/groff.texinfo: Improved section on number registers.  Other
5708         minor updates.
5710 2000-03-16  Werner LEMBERG  <wl@gnu.org>
5712         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
5713         synopsis.
5715         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
5716         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
5717         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
5718         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
5720         * src/preproc/grn/grn.man: Better synopsis; added copyright.
5722         * src/roff/grog/grog.man: Updated copyright date.
5724 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
5726         * configure.in: Added test for strdup.
5728         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
5729         is available.
5731         Replaced dynamic allocation of arrays `[...]' with `new' operator.
5733         Other minor fixes.
5735 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
5737         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
5739 2000-03-11  Werner LEMBERG  <wl@gnu.org>
5741         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
5742         compilers silent.
5743         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
5744         * src/include/lib.h: Remove some spaces.
5746 2000-03-10  Werner LEMBERG  <wl@gnu.org>
5748         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
5749         initializers from arguments (some compilers don't like this).
5751 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
5753         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
5754         used by pic and eqn to tell grohtml where the graphic regions start
5755         and end.
5756         * src/libs/libgroff/Makefile.sub: Use it.
5757         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
5758         graphic_start() and graphic_end() from htmlindicate.cc.
5760 2000-03-09  Werner LEMBERG  <wl@gnu.org>
5762         * tmac/tmac.safer: Will now work correctly in compatibility mode.
5763         * tmac/groff_man.man: More fixes.
5765 2000-03-08  Werner LEMBERG  <wl@gnu.org>
5767         * doc/Makefile: Added texput.log to the `clean' target.
5768         * doc/groff.texinfo: Added info about delimiters for escapes.
5770 2000-03-08  Bernd Warken  <bwarken@mayn.de>
5772         * src/preproc/pic/pic.man: Add info on conversion of pic images to
5773         other graphic formats.
5775 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
5777         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
5778         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
5779         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
5780         files.
5782 2000-03-07  Werner LEMBERG  <wl@gnu.org>
5784         * doc/groff.texinfo: Spelling fixes.
5786 2000-03-06  Werner LEMBERG  <wl@gnu.org>
5788         * tmac/groff_man.man: Completely revised to cover everything in
5789         tmac.an.
5791         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
5792         Other minor fixings.
5793         * src/roff/troff/env.cc (environment_copy): Improve error message and
5794         fix itoa->i_to_a.
5795         * src/roff/troff/TODO: Updated.
5797         * doc/Makefile: Bug fixes -- this is still provisional, though...
5799         * tmac/eqnrc: Small fixes.
5801 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
5803         Adding a request `evc' to copy environments.
5805         * src/roff/troff/env.cc (environment::copy, environment_copy):
5806         Implement it.
5807         * src/roff/troff/env.h: Add prototype.
5809 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
5811         Adding strsep() -- Solaris 8 doesn't have it.
5813         * configure.in: Test it.
5814         * src/devices/grolbp/lbp.cc: Add code.
5816 2000-03-05  Werner LEMBERG  <wl@gnu.org>
5818         * src/roff/troff/div.cc (macro_diversion::output,
5819         top_level_diversion::output): Fixing an incompatibility with
5820         original troff: \x'0' updates the .a register also.  Thanks to
5821         <Andries.Brouwer@cwi.nl> for pointing this out.
5822         * doc/groff.texinfo: Document it.
5824         * Makefile.in: Create Makefile.dep if necessary before calling the
5825         submake process to avoid warning about nonexistent file.
5827         * NEWS, PROJECTS: Updated.
5829 2000-03-04  Werner LEMBERG  <wl@gnu.org>
5831         * tmac/troffrc: Add tmac.lbp.
5833 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
5835         * tmac/tmac.lbp: New file.
5836         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
5837         command.
5839 2000-03-03  Werner LEMBERG  <wl@gnu.org>
5841         * Makefile.in: Fixing $(subdir).
5843         * README, NEWS: Small fixes.
5845         * test-groff: Adding path to grolbp.
5847         * configure.in: The (new) file src/xditview/Imakefile.in will be
5848         also configured -- it is now possible to build gxditview in a
5849         directory different from $srcdir.
5851 2000-03-02  Blake McBride  <blake@florida-software.com>
5853         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
5855         * MORE.STUFF: Added website of bell labs and info about plot2dev.
5857 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
5859         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
5860         files.
5862 2000-02-29  Werner LEMBERG  <wl@gnu.org>
5864         Adding GNU getopt to the groff distribution.
5866         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
5867         New files.
5868         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
5869         * aclocal.a4: Remove GROFF_GETOPT function.
5870         * configure.in, Makefile.in, PROBLEMS: Update.
5871         * src/include/lib.h: Replace getopt tests with getopt.h.
5872         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
5874         * doc/groff.texinfo: Further checking/updating.  Adding more index
5875         entries.
5877         * man/groff_out.man: Fix nroff mode activation (for emacs).
5878         * man/groff_font.man: Add missing ligature.
5880 2000-02-28  Werner LEMBERG  <wl@gnu.org>
5882         * doc/groff.texinfo: Further checking/updating.  Adding more index
5883         entries.
5885         * src/devices/grolbp/grolbp.man: Added a comment line at the
5886         beginning of the file (similar to shell scripts) which indicates
5887         that `tbl' should be used as a preprocessor.
5889 2000-02-27  Blake McBride  <blake@florida-software.com>
5891         Adapting groff to MS Visual C++ 6.0 compiler (tested with
5892         Windows NT 4.0).  Uses _MSC_VER define where necessary.
5894         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
5895         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
5896         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
5897         src/include/lib.h, src/libs/libgroff/errarg.cc,
5898         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
5899         src/preproc/refer/label.y, src/preproc/refer/label.cc,
5900         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
5901         src/roff/troff/div.cc, src/roff/troff/env.cc,
5902         src/roff/troff/input.cc, src/roff/troff/node.cc,
5903         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
5904         if_to_a() to avoid name clashes.
5905         * src/include/posix.h: Don't use unistd.h.
5906         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
5907         clause for integrating non-Unix xtmpfile() code.
5908         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
5909         structure; use "rt" for popen() in pipe_source(); add getpid()
5910         dummy function.
5911         * src/roff/troff/node.cc: Use special versions of popen() in
5912         real_output_file() and pclose() in ~real_output_file().
5914 2000-02-27  Werner LEMBERG  <wl@gnu.org>
5916         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
5917         LBP-8 series laser printers).  This code has been contributed by
5918         Francisco Andrés Verdú <pandres@dragonet.es>.
5920         * src/devices/grolbp/*: The grolbp output device.
5921         * font/devlpb/*: The font description files.
5922         * Makefile.in: Add grolpb and devlbp subdirectories.
5924         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
5925         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
5926         typographic fixes.
5928         * doc/groff.texinfo: Further checking/updating.  Adding more index
5929         entries.
5931         * NEWS: Updated.
5933         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
5935         * man/groff_font.man: Adding info about obsolete DESC keywords.
5936         * src/devices/grolj4/grolj4.man: Documenting additional DESC
5937         keywords.
5939 2000-02-26  Werner LEMBERG  <wl@gnu.org>
5941         * src/preproc/grn/grn.man: Added info about the gremlin file format
5942         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
5944 2000-02-25  Werner LEMBERG  <wl@gnu.org>
5946         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
5947         friends to be non-integer.
5949         * src/preproc/grn/grn.man: Document it.
5951         * doc/groff.texinfo: Further checking/updating.  Adding more index
5952         entries.
5954 2000-02-24  Werner LEMBERG  <wl@gnu.org>
5956         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
5957         line thicknesses to be integer multiples of this value.
5959         * src/preproc/grn/grn.man: Commenting out the -s option -- the
5960         corresponding code doesn't work (yet).
5962         * doc/groff.texinfo: Further checking/updating.  Adding more index
5963         entries.
5965 2000-02-23  Werner LEMBERG  <wl@gnu.org>
5967         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
5968         specify line thickness instead of base units.  The new default
5969         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
5970         thick lines respectively.
5972         Removed unused variable `prevval'.
5974         * src/preproc/grn/grn.man: Updated.
5976 2000-02-22  Werner LEMBERG  <wl@gnu.org>
5978         * src/preproc/grn/main.cc: Slight formatting.
5980         * src/roff/groff/groff.man: Formatting fix.
5981         * src/preproc/grn/grn.man: Ditto.
5983         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
5985         * doc/groff.texinfo: Further checking/updating.
5987 2000-02-21  Werner LEMBERG  <wl@gnu.org>
5989         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
5991         * test-groff: Added grn subdir to path.
5993         * doc/groff.texinfo: Some restructing and other small improvements.
5995         * src/roff/groff/groff.cc (help): Fixed info string.
5997 2000-02-20  Werner LEMBERG  <wl@gnu.org>
5999         * doc/meref.me: Fix description of .GS request.
6001         * src/roff/troff/troff.man: Fixing typo.
6003         Adding the `grn' preprocessor for gremlin graphic files.
6005         * src/preproc/grn/*: This is the Berkeley distribution written by
6006         David Slattengren and Barry Roitblat, adapted to groff by Daniel
6007         Senderowicz and Werner Lemberg.
6009         * doc/grnexampl.{me,g}: A sample for grn.
6011         * Makefile.in: Added subdirectory entry for grn.
6013         * src/roff/groff/groff.cc: Added support for grn.  It can be now
6014         called with the switch `-g'.
6016         * src/roff/groff/groff.man: Updated.
6018         * src/roff/grog/grog.{man,pl,sh}: Updated.
6020         * NEWS: Updated.
6022 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
6024         * src/include/lib.h: Added xtmptemplate and made xtmpfile
6025         parametrically polymorphic.
6027         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
6028         and the alterations to xtmpfile.
6029         xtmpfile can be requested to return the filename created
6030         and asked not to unlink the temp file.  The default behaviour
6031         if parameters are absent is exactly the same as before.
6033 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
6035         A new request `length' is available which returns the length of a
6036         string in a number register:
6038         * src/roff/troff/input.cc (length_macro): Implement it.
6039         * src/roff/troff/input.cc (init_input_requests): Register it.
6041 2000-02-11  Werner LEMBERG  <wl@gnu.org>
6043         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
6044         of the `substring' request.
6046         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
6047         request.
6049         * src/roff/troff/TODO, NEWS: Updated.
6051 2000-02-09  Werner LEMBERG  <wl@gnu.org>
6053         * src/roff/groff/groff.man: Added an example.
6055 2000-02-06  Werner LEMBERG  <wl@gnu.org>
6057         I've considerably modified the directory structure of the
6058         distribution to get a more vertical layout.  For example, the number
6059         of top level directories has been reduced from 42 to 6.
6061         As a consequence, many changes, especially to the makefiles, were
6062         necessary:
6064         * The makefile variables `top_builddir' and `top_srcdir' have been
6065         introduced.  Virtually all relative paths have been replaced with
6066         absolute ones using these two variables.
6068         * Dependencies (in the files `Makefile.dep') are no longer part of
6069         the distribution.  Instead, they are created during a `make install'
6070         in the build directory.
6072         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
6073         make `top_srcdir' and `top_builddir' absolute.
6075         Some other changes:
6077         * Man pages now depend on the files `VERSION' and `REVISION'.
6079         * The added shell script `mkinstalldirs' will replace `mkdir' in
6080         almost all cases.
6082         * VERSION: Version number increased to 1.16.
6084 2000-02-04  Werner LEMBERG  <wl@gnu.org>
6086         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
6088         * Makefile.in: Removed $(tmac_m) since it is no longer needed
6089         (after an update of the mm stuff).
6091         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
6093 2000-02-03  Werner LEMBERG  <wl@gnu.org>
6095         The .psbb request will now also accept Mac PS images (i.e. using LF
6096         as the EOL character).
6098         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
6099         (with slight modifications).
6100         * troff/input.cc (do_ps_file): Use it.
6102         * test-groff: Add grohtml and grolj4 output devices to PATH.
6104 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6106         * NEWS, MORE.STUFF: Updated.
6108 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
6110         Add the `srand' command to pic.
6112         * pic/lex.cc, pic/pic.y: Implement it.
6113         * pic/pic.man: Document it.
6114         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
6116 2000-01-30  Werner LEMBERG  <wl@gnu.org>
6118         Add a new request `.psbb'.  This does exactly what the external
6119         program psbb did.  It scans a PostScript image file for a
6120         %%BoundingBox comment and extracts the bounding box values (in
6121         PostScript units) which are then stored in the four new (read-only)
6122         number registers `llx', `lly', `urx', and `ury'.
6124         This will allow the usage of the .PSPIC macro without worrying
6125         about unsafe behaviour of groff, i.e., it will work without the
6126         `-U' switch of groff.
6128         * troff/input.cc: Implement it.
6129         * tmac/tmac.pspic: Use it.
6130         * troff/troff.man, grops/grops.man, NEWS: Document it.
6131         * psbb/*, Makefile.in: Remove it since it is no longer needed.
6133         This is bloody C code simply adapted from psbb.c!  Any improvements
6134         welcome.
6136 2000-01-29  Werner LEMBERG  <wl@gnu.org>
6138         * man/groff_font.man: Minor clarifications.
6140         * NEWS: Updated.
6142 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6144         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
6146 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
6148         * man/groff_font.man: Brought up to date regarding tcommand
6149         extensions.
6150         * libgroff/font.cc: Handle everything after `--' as a comment
6151         in the font files.
6152         * devps/*: Added comment delimiter inside devps font files.
6154 2000-01-28  Werner LEMBERG  <wl@gnu.org>
6156         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
6157         \fC...\fP (which now works as expected).
6159         * troff/troff.man: Fix typo.
6161 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
6163         Completed the pass_filenames implementation in troff.
6165         * libdriver/input.cc: Will read the new `F' tcommand.
6166         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
6167         * troff/input.cc: Use it.
6169 2000-01-26  Werner LEMBERG  <wl@gnu.org>
6171         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
6172         font will now be updated even if an invalid font is selected.
6174 2000-01-24  Werner LEMBERG  <wl@gnu.org>
6176         * doc/homepage.ms: Updated for new tmac.arkup.
6178         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
6180         * tmac/tmac.arkup: Cleanup.
6182         Added `\&' to .HTML macro to `leave vertical mode', so to say.
6184         Removed obsolete .LINK macro completely.
6186         The macros .URL, .FTP, and .MAILTO now accept a third argument which
6187         will be immediately appended to the second argument (to be used with
6188         punctuation, for example).
6190         Disabled .CDFTP macro temporarily for security reasons.
6192         * tmac/groff_markup.man: Complete revision for latest changes in
6193         tmac.arkup -- note that it does not yet format correctly with
6194         grohtml :-(
6196 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
6198         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
6199         * devutf8/R.proto: Add mappings for wp, lh, rh.
6200         * devutf8/NOTES: Updated.
6202 2000-01-23  Werner LEMBERG  <wl@gnu.org>
6204         * doc/groff.texinfo: Updated version/copyright info.
6206 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
6208         Added support for two new directives in device descriptions:
6209         `pass_filenames' (to pass the input file name to the output device)
6210         and `use_charnames_in_special' (to support e.g. accented characters
6211         in the `X' request).
6213         * include/font.h, troff/charinfo.h: Declare it.
6215         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
6217         * devhtml/DESC: Use it.
6219         * troff/input.cc: New function encoded_char.
6221         * troff/token.h: Add test for `specialness'.
6223 2000-01-21  Werner LEMBERG  <wl@gnu.org>
6225         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
6226         mistake from the list of files to be installed.
6228 2000-01-18  Werner LEMBERG  <wl@gnu.org>
6230         * README: Added info how to apply patches.
6232 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
6234         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
6236 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
6238         * troff/input.cc: Add support for troffrc-end.
6240         * tbl/main.cc: Altered to issue table-start and table-end special
6241         characters if using the html device.
6243         * devhtml/*: Modified font files to incorporate html encoding of
6244         characters.
6246         * tmac/groff_markup.man: New file documenting tmac.arkup.
6248         * tmac/troffrc-end: New file.  This is invoked after all user
6249         specified macros.  Currently used by the html device to include
6250         tmac.html.  Thus no need for users to specify -mhtml anymore.
6252         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
6253         (MAN7): Add groff_markup.man.
6255         * tmac/tmac.an, tmac/tmac.html: Small html updates.
6257         * tmac/troffrc: tmac.arkup will now be called for the html device.
6259         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
6260         extra device specific information about fonts.
6262         * doc/homepage.ms: New file.  It is an example how an HTML home page
6263         could look like with grohtml.
6265         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
6267 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
6269         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
6270         of Im, Re.
6272         * devutf8/NOTES: Updated.
6274 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
6276         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
6277         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
6278         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6279         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
6280         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
6281         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
6282         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
6283         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
6284         warnings.
6286         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
6288 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
6290         grolj4: Paper size will be searched case-insensitively.
6292         * include/lib.h: Add check for strcasecmp().
6293         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
6294         * configure.in: Check for strcasecmp().
6296 2000-01-11  Werner LEMBERG  <wl@gnu.org>
6298         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
6299         `REVISION'.
6301 2000-01-10  Werner LEMBERG  <wl@gnu.org>
6303         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
6304         revision scheme.
6306         Add a new read-only register, `.Y', which contains the groff
6307         revision.
6309         * troff/input.cc (init_input_requests): Define it.
6310         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
6311         * doc/groff.texinfo, troff/troff.man: Document it.
6313         * libgroff/Makefile.sub (version.cc): Add definition of
6314         `Version_string[]', consisting of `<major>.<minor>.<revision>'
6315         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
6316         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
6317         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
6318         troff/input.cc, pfbtops/pfbtops.c: Use it.
6320 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
6322         Add a revision scheme to the groff package.
6324         * REVISION: New file.
6325         * libgroff/Makefile.sub (version.cc): Use it to define
6326         `revision_string[]'.
6327         * grops/psrm.cc: Use revision_string (converted to an unsigned
6328         integer) in constructor of resource_manager.
6330 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
6332         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
6333         files.
6334         * Makefile.in (DEVDIRS): Add devutf8.
6335         * grotty/tty.cc: Include device.h.
6336         (glyph): Change type of `code' to `unsigned int'.
6337         (tty_printer): New field is_utf8.  Constructor takes device argument.
6338         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
6339         (tty_printer::add_char): Change type of first arg to `unsigned int'.
6340         (tty_printer::put_char): New function.
6341         (tty_printer::end_page): Use put_char() instead of ::putchar().
6342         (make_printer): Pass device to tty_printer constructor.
6343         * nroff.sh: Determine default device by calling 'locale'.  As a
6344         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
6345         Recognize UTF-8 locales.
6346         * tmac/eqnrc: Recognize utf8 like latin1.
6347         * tmac/troffrc: Device utf8 needs tmac.tty.
6349 2000-01-07  Werner LEMBERG  <wl@gnu.org>
6351         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
6353 2000-01-07  Paul Eggert  <eggert@twinsun.com>
6355         Add a new predefined writeable number register, `year',
6356         which contains the current year.
6358         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
6359         * tmac/tmac.s: Use it.
6360         * troff/input.cc (init_registers): Initialize it.
6362 2000-01-06  Werner LEMBERG  <wl@gnu.org>
6364         * PROBLEMS: Fixed typo.
6366 2000-01-04  Paul Eggert  <eggert@twinsun.com>
6368         * PROBLEMS: Add Y2k advice for the yr number register.
6370 2000-01-03  Paul Eggert  <eggert@twinsun.com>
6372         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
6374 2000-01-02  Werner LEMBERG  <wl@gnu.org>
6376         * tmac/tmac.arkup: Slight modification of macros to provide better
6377         appearance for non-HTML formats.
6379 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
6381         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
6382         does not automatically translate to malloc(n) on all OSes
6383         (e.g., SunOS) so do it explicitly.  Also, check the returned
6384         value.
6386 2000-01-01  Werner LEMBERG  <wl@gnu.org>
6388         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
6390         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
6391         expects this variable
6393 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
6395         * doc/Makefile: Added instructions to create HTML and text
6396         versions of some files.
6398 1999-12-31  Werner LEMBERG  <wl@gnu.org>
6400         * Updated INSTALL.gen.
6402         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
6403         better resp. correctly with non-HTML devices.
6405 Version 1.15 released
6406 =====================
6408 1999-12-28  Werner LEMBERG  <wl@gnu.org>
6410         * NEWS, VERSION: Changed to 1.15
6412 1999-12-27  Paul Eggert  <eggert@twinsun.com>
6414         * nroff/nroff.man: -S is safer, not safe.
6416         * groff/groff.cc (main): Use `safer', not `safe', in variable
6417         names.  This does not change the behavior.
6419         * troff/input.cc (main): Likewise.
6421         * nroff/nroff.sh: Likewise.
6423         * troff/input.cc (prepend_string): New function.
6424         (main): Prepend -msafer, so that we check macro libraries for
6425         safety.
6427         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
6429 Version 1.14 released
6430 =====================
6432 1999-12-26  Werner LEMBERG  <wl@gnu.org>
6434         * NEWS, VERSION: Changed to 1.14.
6436 1999-12-24  Werner LEMBERG  <wl@gnu.org>
6438         * refer/refer.cc: Fixing the last fix.
6440 Version 1.13 released
6441 =====================
6443 1999-12-23  Werner LEMBERG  <wl@gnu.org>
6445         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
6446         number disappear.
6448         * NEWS: Updated.
6450         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
6452         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
6453         document conventions, the version number must be a real.
6455 Version 1.12.1 released
6456 =======================
6458 1999-12-22  Werner LEMBERG  <wl@gnu.org>
6460         * VERSION: Changed to 1.12.1.
6462 1999-12-22  Alan Rooks  <arooks@istar.ca>
6464         * refer/refer.cc (do_file): Slight modification to satisfy the
6465         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
6466         UnixWare 7.1.
6468 1999-12-20  Werner LEMBERG  <wl@gnu.org>
6470         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
6471         notices.
6473         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
6474         list of unsafe requests.
6476         * pic/pic.man: Fixed a typo.
6478         * man/groff_out.man: Fixed a typo.
6480 1999-12-18  Werner LEMBERG  <wl@gnu.org>
6482         * Makefile.in: Doc fixes.
6484 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
6486         * groff/groff.cc: Missing `U' option added to getopt().
6488         * troff/troff.man: Missing `U' option added to synopsis.
6490 Version 1.12 released
6491 =====================
6493 1999-12-14  Werner LEMBERG  <wl@gnu.org>
6495         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
6496         to the synopsis.
6498         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
6499         with the more appropriate terms `safer' and `unsafe'.
6501         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
6502         sys_nerr and sys_errlist[].
6504         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
6506         * pic/pic.y, pic/pic.cc: Added check for fmod().
6508 1999-12-13  Werner LEMBERG  <wl@gnu.org>
6510         * VERSION: Changed to 1.12.
6512         Here some patches from various sources; most of them taken from
6513         the Debian distribution.
6515         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
6516         tmac/Makefile.sub: New files copied directly from the NetBSD
6517         distribution.  Probably, some additional adaptation later on is
6518         necessary...
6520         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
6521         of unsafe requests.
6523         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
6524         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
6525         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
6526         (`-S') is now the default.
6528         * README, NEWS: Updated.
6530 1999-12-09  Werner LEMBERG  <wl@gnu.org>
6532         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
6534         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
6536 1999-12-06  Werner LEMBERG  <wl@gnu.org>
6538         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
6539         grief than relief today.  Additionally, it is against the GNU
6540         coding standards.
6542         * configure: Recreated.
6544 1999-12-05  Werner LEMBERG  <wl@gnu.org>
6546         * configure.in: Added GROFF_LIBM.
6548         * configure: Recreated.
6550         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
6551         necessary.
6553         * Makefile.in: Added definition of $(LIBM).
6555         * Makefile.comm (LIBM): Removed.
6557         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
6559 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
6561         * doc/Makefile: Added rule for generation pic.html.
6563         (clean): Files produced by grohtml will be removed also.
6565         * doc/pic.ms: Small fix.
6567         * tmac/tmac.html: Fixed suppression of headers.
6569 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
6571         * tmac/tmac.html: Fixing horizontal arrows.
6573         Turning off hyphenation.
6575         * tmac/tmac.an: Improved support for grohtml; better indentation,
6576         no footers/headers.
6578 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
6580         * tmac/tmac.arkup: Added CDFTP macro
6582         * tmac/tmac.html: All headers are turned off for ms, me, and mm
6583         macros.
6585         * tmac/troffrc: Some additions for HTML stuff.
6587 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
6589         * tmac/tmac.html: Small changes.
6591 1999-09-26  Werner LEMBERG  <wl@gnu.org>
6593         * doc/groff.texinfo: Minor fixes.
6595 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
6597         * devhtml/TR: Changed spacewidth to 3.
6599         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
6601         * tmac/tmac.html: Moved markup macros to tmap.arkup.
6603         * tmac/tmac.arkup: New file.
6605         * grohtml/ChangeLog: New file.
6607 1999-09-16  Werner LEMBERG  <wl@gnu.org>
6609         * doc/groff.texinfo (Common Features): Added Copying chapter.
6610         Changed format to @smallbook.
6612 1999-09-15  Werner LEMBERG  <wl@gnu.org>
6614         * NEWS: Added info about groff.texinfo.
6616         * doc/groff.texinfo: Will now compile (using texi2dvi) without
6617         warning messages.
6619 1999-09-14  Werner LEMBERG  <wl@gnu.org>
6621         * groff/groff.man: More updates.
6623 1999-09-13  Werner LEMBERG  <wl@gnu.org>
6625         * doc/groff.texinfo: New file.  This manual is still very
6626         rudimentary.  It has been originally contributed by Trent
6627         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
6628         additions by me.
6630         * INSTALL: Added information about the `doc' subdir
6632         * troff/troff.man: Minor fixes.
6634         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
6635         reordered options.
6637         * troff/input.cc (usage): Added missing `-ffam' to usage message.
6639         * Makefile.in (dist): groff-$(version).tar.gz must be removed
6640         also, otherwise it is included itself in another call of `make
6641         dist'.
6643         * groff/groff.cc (synopsis): Removed superfluous space.
6645         * PROJECTS, PROBLEMS, NEWS: Updated.
6647         * VERSION: Updated to 1.12beta.
6649         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
6651         * README: Updated: Included documentation about CVS repository,
6652         mailing lists, and daily snapshots.
6654         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
6656 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
6658         * tmac/tmac.an: If the tag didn't fit into the space that the
6659         macro `TP' specifies, the rest of the tag went into the space for
6660         the next line.
6662 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
6664         * grolj4/lj4.cc: Added duplex printing (option `-d').
6666         * grolj4/grolj4.man: Document duplex printing.
6668 1999-09-12  Werner LEMBERG  <wl@gnu.org>
6670         * doc/Makefile (pic.ps): Fixed rule which caused problems with
6671         non-GNUish sed programs.
6673         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
6674         definition.
6676         * configure.in (LIBS): Added `-lc'
6678         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
6680         * pic/tex.cc (solid_arc): Casting M_PI to double.
6682         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
6684         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
6685         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
6686         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
6688         * groff/groff_man.man: New file.  This manual page was originally
6689         written for the Debian GNU/Linux system by Susan G. Kleinmann
6690         <sgk@debian.org>.
6692         * eqn/list.cc (list_box::compute_metrics,
6693         list_box::compute_sublist_width): Removed variable declaration to
6694         avoid shadowing warnings.
6696         * grops/psrm.cc (resource_manager::process_file): Ditto.
6698         * tfmtodit/tfmtodit.cc (main): Ditto.
6700         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
6701         to avoid shadowing warnings.
6703         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
6704         shadowing loop variable.
6706         * groff/groff.man, troff/troff.man: Added doc about grohtml.
6708 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
6710         New grohtml frontend to convert groff input to html.
6712         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
6714         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
6716         * tmac/eqnrc: Added html device.
6718         * tmac/tmac.html: New file.
6720         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
6721         (troff_output::start_picture, troff_output::finish_picture),
6722         tbl/main.cc (process_input_file):
6723         Surrounded output with `graphics_start' and `graphics_end' so that
6724         the html driver can identify non-text portions.
6726         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
6727         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
6728         grotty/tty.ps (tty_printer::set_char): Additional parameter
6729         `name'.
6731         * include/printer.h: Class printer: New function
6732         set_char_and_width; new variables (is_char_named, is_named_set,
6733         named_command, named_char_s, named_char_n) to hold information
6734         about named characters -- needed by the html driver.
6736         * libdriver/printer.cc (printer::set_ascii_char,
6737         printer::set_special_char): Use set_char_and_width.
6739         * devhtml/*: New device files for html driver.
6741         * grohtml/*: New driver grohtml.
6743 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
6745         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
6746         default strings.
6748 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
6750         * libgroff/string.cc (search): Small fix to test against NULL
6751         pointer.
6753 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
6755         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
6756         \b'abc') were stacked in reverse order when processed in a
6757         diversion.
6759         * troff/node.h: Added `*last' to struct `node' to make the above
6760         fix work.
6762         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
6763         The default scale for the 'f' and 't' graphics functions were 'm'
6764         rather than 'u' (i.e., no scaling).
6766 1999-09-11  Peter Miller  <peterm@jna.com.au>
6768         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
6769         do_file), soelim/soelim.man: Added `-I file' option to soelim,
6770         defining include paths.
6772         * soelim/soelim.cc (include_path_append): New function.
6774 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
6776         * tbl/main.cc (process_options): Unix (at least Documenter's
6777         Workbench) tbl allows arbitrary non-alpha characters between
6778         options.
6780 1999-09-11  Paul Eggert  <eggert@twinsun.com>
6782         Y2k fixes.  Don't assume that the current year precedes 2000.
6784         * doc/meref.me: Add \n(y2, \n(y4.
6786         * tmac/doc-common (Yr): New number register.
6787         (Dd): Don't assume current year precedes 2000.
6789         * tmac/tmac.e (td): Likewise.
6790         (y2, y4): New number registers.
6792         * pic/pic.man: Update reference for pic paper to May, 1991
6793         version.
6795 1999-09-11  Werner LEMBERG  <wl@gnu.org>
6797         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6798         Removed quotation marks which prevented correct expansion of
6799         $(tmac_wrap).
6801         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
6803 1999-09-10  Werner LEMBERG  <wl@gnu.org>
6805         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
6806         `config.cache'.
6808         * Removed configure.old.
6810 1999-08-31  Werner LEMBERG  <wl@gnu.org>
6812         * VERSION: Updated to 1.11.1
6814 1999-05-27  Werner LEMBERG  <wl@gnu.org>
6816         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
6818         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
6819         added quotations around $(tmac_wrap) to avoid syntax error if
6820         variable is empty.
6822         * configure: Newly generated using autoconf 2.13.
6824         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
6826 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
6828         * README, PROJECTS, NEWS, INSTALL, VERSION, 
6829         doc/Makefile. doc/pic.ms, groff/groff.man:
6830         Prepare for 1.11 release.  No code changes.
6831         Documentation for pic added (doc/pic.ms).
6833 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
6835         * Version 1.10 released.
6837 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
6839         * afmtodit/afmtodit.pl: Avoid comment on first line.
6841 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
6843         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
6844         * configure.in: Call it.
6846         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
6847         (distfiles): Doesn't depend on config.log or config.cache.
6849 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
6851         * grog/grog.sh: Use print "" rather than print in END rule.
6853 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
6855         * tbl/main.cc (process_data): Don't give error for excess data
6856         entries that are comments.
6858 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
6860         * tbl/main.cc (process_data): Fix case where new for-scope rules
6861         silently change meaning of code.
6863 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
6865         * troff/env.cc (hyphenate): Loop over all consecutive sequences
6866         of non-zero hyphenation codes.
6868 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
6870         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
6872 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
6874         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
6876 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
6878         * tmac/tmac.andoc: Make it work in compatibility mode.
6880         * refer/token.h (token_info::is_range_sep): New function.
6881         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
6882         * refer/ref.cc (reference::output): More sophisticated check for
6883         multiple pages.
6885         * devps/prologue.ps (MANUAL): New procedure.
6886         * grops/ps.cc (main): New -m option.
6887         (usage): Include -m.
6888         (ps_printer::~ps_printer): Implement -m.
6890         * aclocal.m4 (GROFF_G): New macro.
6891         * configure.in: Call it.
6892         * Makefile.in (g): Provided by configure.
6894         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
6896         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
6897         translations.
6899         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
6900         (tmac_m, tmac_s): Deleted.
6901         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
6902         tmac_s_prefix): New variables.
6903         (MDEFINES): Change accordingly.
6904         * Makefile.comm (.man.n): Use new TMAC_* variables.
6905         * configure.in (GROFF_TMAC): Call.
6906         * aclocal.m4 (GROFF_TMAC): Define.
6907         * tmac/Makefile.sub (stamp_wrap): New target.
6908         (install_data, uninstall_sub): Handle macro wrapping.
6910 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
6912         * tbl/main.cc (main): Ignore -T option.
6914 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
6916         * devlj4/generate/special.map: Add definition of \(nb.
6918         * tmac/tmac.dvi: Add definition of \(nb.
6920         * troff/dictionary.c (dictionary::dictionary): association::v gets
6921         initialized by association::association.
6923         * tmac/Makefile.sub: Avoid using temporary files when installing.
6925         * troff/env.cc (environment::set_font): Make bad font number a
6926         warning.
6928         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
6930         * Makefile.in (datadir): Use share rather than lib.
6932         * groff/groff.cc (basename): Rename to xbasename.
6934 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
6936         * Makefile (CCLIBS): Don't use.
6937         * Makefile.ccpg: Likewise.
6939         * acgroff.m4: Rename to...
6940         * aclocal.m4: Modify extensively for autoconf 2.
6941         * configure.in: Likewise.
6942         * Makefile.in: Likewise.
6944         * groff/pipeline.c (const): Declare as empty if __STDC__ not
6945         defined.
6946         (xstrsignal): Check for definition of NSIG. Conditionalize
6947         on SYS_SIGLIST_DECLARED.  Make return type const.
6949 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
6951         * troff/input.cc (interpolate_macro): Rephrase missing space
6952         warning.
6954 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
6956         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
6957         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
6958         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
6959         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
6960         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
6961         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
6962         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
6963         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
6964         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
6965         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
6966         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
6967         Fix 'for' scoping.
6969 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
6971         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
6972         string_iterator.
6973         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
6974         file.
6975         (macro_iterator::macro_iterator): Add additional argument.
6977 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
6979         * troff/div.cc (vertical_size::vertical_size): In place of integer
6980         specifying line spacing use cunits specifying post vertical
6981         space.
6982         (macro_diversion::output, top_level_diversion::output): Likewise.
6983         * troff/div.h: Change declarations accordingly.
6984         * troff/env.cc (pending_output_line): Replace ls field by post_vs
6985         field.
6986         (pending_output_line::pending_output_line,
6987         pending_output_line::output, environment::output,
6988         environment::output_line, environment::output_title,
6989         environment::hyphenate_line):  In place of
6990         integer specifying line spacing use cunits specifying post vertical
6991         space.
6992         (environment::environment): Add post_vertical_spacing and
6993         prev_post_vertical_spacing arguments.
6994         (environment::get_post_vertical_spacing): New function.
6995         (environment::total_post_vertical_spacing): New function.
6996         (environment::post_vertical_spacing): New function.
6997         (init_env_requests): Initialize pvs request and .pvs register.
6998         * troff/env.h: Change declarations.
7000 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
7002         * tmac/tmac.pspic: Immediately remove the temporary file.
7004 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
7006         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
7007         height is specified.
7009 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
7011         * tbl/table.c (struct vertical rule, class table_entry): Use int
7012         not short for start_row and end_row.
7014 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
7016         * troff/input.cc (trapping_blank_line, blank_line_macro): New
7017         functions.
7018         (diverted_space_node::reread, process_input_stack): Call
7019         trapping_blank_line() rather than blank_line().
7020         (init_input_requests): Bind "blm" to blank_line_macro().
7022         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
7024 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
7026         * troff/env.cc (environment::possibly_break_line): Require that
7027         width total excluding width of final space node be greater than
7028         the target text length.
7030 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
7032         * troff/node.cc (kern_pair_node::vertical_extent): New function.
7034 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
7036         * troff/node.cc (charinfo_node): New class.
7037         (glyph_node, composite_node): Derive from charinfo_node.  Change
7038         member functions accordingly.
7040 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
7042         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
7044 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
7046         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
7048         * devps/generate/textmap (notsubset): Add.
7050         * tmac/tmac.a4: New file.
7052 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
7054         * pic/main.cc (had_parse_error): New variable.
7055         (do_picture, do_whole_file): Set had_parse_error if yyparse()
7056         returns non-zero.
7057         (main): Return 1 if had_parse_error is true.
7059 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
7061         * grolj4/lj4.cc (main): Avoid use of strtoul.
7063 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
7065         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
7066         iso_8859_1 or $LESSCHARSET is latin1.
7068 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
7070         * hpftodit: New directory.
7071         * Makefile.in (CCPROGDIRS): Add hpftodit.
7072         * devlj4/generate: New directory.
7074 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
7076         * configure.in: Don't use AC_VFORK.
7077         * groff/pipeline.c (run_pipeline): Use fork() always.
7079 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
7081         * grops/ps.cc (main): Use %1 not %s in error message for -w.
7083         * Makefile.in (CCPROGDIRS): Add grolj4.
7084         (DEVDIRS): Add devlj4.
7085         * grolj4, devlj4: New directories.
7086         * tmac/troffrc: Handle lj4.
7087         * tmac/tmac.lj4: New file.
7089 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
7091         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
7093 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
7095         * troff/input.cc (do_if_request): At end of second string, switch
7096         environments before getting next token.
7098 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
7100         * devps/psstrip.sed: Split rule that strips whitespace on either
7101         side of delimiters.
7103 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
7105         * troff/node.h (font_family::make_definition): Add return value to
7106         declaration.  * troff/symbol.h (symbol::operator==,
7107         symbol::operator!=): Likewise.
7109 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
7111         * groff/groff.cc (main, help, synopsis): Handle -S.
7112         (possible_command::insert_arg): New function.
7114         * tmac/tmac.safer: New file.
7115         * tmac/msafer.man: New file.
7116         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
7118 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
7120         * pic/pic.h, pic/main.cc (safer_flag): New variable.
7121         * pic/pic.y (placeless_element): Avoid unsafe operations if
7122         `safer_flag' is set.
7123         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
7125 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
7127         * eqn/lex.cc (get_token): Put call to add_context() in block to
7128         work around Sun C++ 4.0 bug.
7130         * include/stringclass.h (operator +): Use ?: instead of `if' to
7131         work around Sun C++ 4.0 bug.
7133 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
7135         * tbl/main.cc (process_format): Accept - as a synonym for the _
7136         key letter.
7138         * libbib/index.cc (minus_one): Don't declare as const.
7140 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
7142         * troff/input.cc (get_char_for_escape_name): Push back a newline.
7144 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
7146         * troff/input.cc (write_macro_request): New function.
7147         (init_input_requests): Bind write_macro_request to writem.
7149 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
7151         * tmac/tmac.s (@EN): Turn filling back on even if there was no
7152         equation.
7154         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
7156         * tmac/tmac.s (@TS): Renamed from TS.
7157         (TS): Call LP then TS again.
7158         (cov*ab-init): Alias @TS to TS.
7160         * tmac/tmac.s: Allow QP or RS to initialize.
7162         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
7163         Move initializations of PS and LL here.
7164         (par@init): Don't initialize HY.  Avoid changing environment 0.
7165         (par*env-init): Don't all par@reset.
7167 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
7169         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
7171 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
7173         * Makefile.in (MDEFINES): Add LDFLAGS.
7174         (LDFLAGS): Add definition line.
7176 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
7178         * troff/input.cc (get_optional_char): Split off error check into...
7179         (check_missing_character): New function.
7180         * troff/token.h: Declare it.
7181         * troff/env.cc (margin_character): Don't call get_optional_char.
7182         Only call tok.next() after making the node.
7184         * include/lib.h (getopt): Make 2nd argument char *const *.
7186 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
7188         * nroff/conftest.sh: Deleted.
7190 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
7192         * pic/make-dos-dist: Deleted.
7194 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
7196         * devps/psstrip.sed: Strip comments before stripping trailing
7197         white space.
7199 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
7201         * Version 1.09 released.
7203 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
7205         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
7207 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
7209         * libgroff/font.cc (font::load_desc): Fix typo in error message.
7211 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
7213         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
7214         about returning without a value.
7216         * troff/charinfo.h (charinfo::get_special_translation): Cast
7217         TRANSLATE_NONE to int.
7219         * refer/token.cc (lookup_token, store_token): Remove bogus loop
7220         test.  Fix test so that it works with n unsigned.
7222         * pic/pic.y (defaults_table): Fully bracket initializer.
7223         * pic/lex.cc (lookup_keyword): Likewise.
7224         * eqn/lex.cc (token_table, def_table): Likewise.
7225         * eqn/box.cc (param_table): Likewise.
7226         * troff/input.cc (warning_table): Likewise.
7227         * libgroff/font.cc (table): Likewise.
7228         * grops/ps.cc (ps_printer::special): Likewise.
7229         * grops/psrm.cc (resource_manager::process_file): Likewise.
7230         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
7231         * refer/command.cc (command_table): Likewise.
7232         * addftinfo/addftinfo.cc (param_table): Likewise.
7234         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
7235         about temp's being unused.
7236         (unused): New function.
7238         * groff/pipeline.cc: Declare c_fatal.
7240         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
7241         uchar.
7243         * libbib/index.cc (index_search_item::load): Prevent compiler
7244         warnings about fd_closer's being unused.
7245         (unused): New function.
7247 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
7249         * troff/input.cc (copy_mode_error): Make `prefix' static.
7250         Fix typo.
7252         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
7253         defined.
7254         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
7255         HAVE_CC_OSFCN_H and modify accordingly.
7257         * troff/input.cc (init_charset_table): radicalex overlaps
7258         horizontally.
7260         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
7261         udodo!hans@relay.NL.net).
7262         * groff/configure.in: Call it.
7264         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
7265         * groff/configure.in: Call it.
7266         * include/lib.h: Conditionalize declaration of pclose.
7268         * troff/div.cc (last_page_number): New global variable.
7269         (top_level_diversion::begin_page): Exit if we just printed the
7270         last page.
7271         * troff/div.h (last_page_number): Declare it.
7272         * troff/input.cc (parse_output_page_list): Set last_page_number.
7274         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
7275         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
7276         tmac/tmac.X: Likewise.
7277         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
7278         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
7280 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
7282         * tmac/doc-ditroff (hK): Remove groff specific code which
7283         prevented page-breaks between separate manual entries.  If this is
7284         the first page, don't set the page number to 1.
7286         * acgroff.m4 (GROFF_POSIX): New macro.
7287         * configure.in: Use it.
7289         * troff/node.cc (class real_output_file,
7290         real_output_file::real_output_file,
7291         real_output_file::~real_output_file): Conditionalize use of
7292         popen/pclose on POPEN_MISSING.
7293         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
7294         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
7295         (pipe_source): Similarily.
7297         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
7299         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
7300         presence of declarations by trying to compile example with
7301         conflicting declarations.  (gcc only gives a warning for missing
7302         declarations.)
7304 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
7306         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
7307         (from Ulrich Lauther).
7309 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
7311         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
7313 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
7315         * indxbib/indxbib.cc (write_hash_table): Add code for case where
7316         pointers and ints have different sizes.
7318 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
7320         * tmac/tmac.s (par*env-init): Call par@reset.
7322 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
7324         * tmac/tmac.s (@IP): Switch to a new environment when diverting
7325         tag.
7326         (par*push-tag-env, par*pop-tag-env): New macros.
7328 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
7330         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
7331         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
7333         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
7334         comment.  Include <time.h>.
7336 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
7338         * grops/ps.cc (is_small_h, is_small_v): Deleted.
7339         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
7340         lines.
7342 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
7344         * troff/input.cc (read_request): Only print a prompt if reading
7345         from the terminal.  Also clearerr on EOF if reading from the
7346         terminal.  Declare isatty.
7348 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
7350         * refer/label.y: Rename map_t to map_func and extractor_t to
7351         extractor_func.
7353 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
7355         * include/assert.h: Don't use volatile.
7356         * libgroff/assert.cc: Likewise.
7358 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
7360         * troff/input.cc (abort_request): Look at character in tok before
7361         calling get_copy().
7363 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
7365         * troff/troff.h (NO_RETURN): Deleted.
7366         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
7367         * troff/input.cc (exit_troff): Likewise
7369         * Makefile.in: Remove `Making ...' messages since GNU make now
7370         gives these. 
7372         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
7374 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
7376         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
7377         to constant 1 inch.
7379 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
7381         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
7383 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
7385         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
7386         MARK_REG if there was no left delimiter.
7388 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
7390         * pic/troff.cc (troff_output::text): Set line thickness to
7391         relative before outputting text.
7393         * tmac/tmac.e (@k): Don't zero ?T.
7394         ((z): Likewise.
7396 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
7398         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
7400 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
7402         * troff/input.cc (decode_args): Warn about unquoted tabs (from
7403         Paul Eggert).
7405 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
7407         * troff/input.cc (ignoring): New variable.
7408         (ignore): Set ignoring during call to do_define_macro.
7409         (do_define_macro): Clear ignoring before interpolating terminating
7410         macro.
7411         (copy_mode_error): New function.
7412         (get_char_for_escape_name, read_long_escape_name,
7413         interpolate_arg): Use copy_mode_error.
7414         (warning_table): Add WARN_IG.
7415         * troff/troff.h (WARN_IG): Declare.
7416         (WARN_TOTAL): Change accordingly.
7418         * groff/pipeline.c (strsignal): Rename to xstrsignal.
7419         * groff/groff.cc (strsignal): Delete declaration.
7421 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
7423         * troff/div.cc (page_offset): Use 'm' as default scaling.
7425 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
7427         * nroff/nroff.sh: Ignore -u.
7429 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
7431         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
7433 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
7435         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
7436         drawing box.
7437         (B2): With -Tascii, leave additional vertical space before
7438         and after. Ensure that the left and right indent is restored to
7439         what it was even if the point size changes.  Don't call
7440         par@finish. Change the indent, line length and title length
7441         directly.  With -Tascii, make the width of the box 1n less.
7442         (B1): Remember 1n at the current point size.  Don't call
7443         par@reset.  Change the indent, line length and title length
7444         directly.  Ensure that the temporary indent is preserved.
7445         (par*box-mark-top): Turn off no spacing mode.
7447 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
7449         * Makefile.in (dist): Use .gz suffix.
7451 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
7453         * troff/input.cc (main): Add return 0.
7454         * pic/main.cc (main): Use return instead of exit.
7455         * tbl/main.cc (main): Likewise.
7456         * eqn/main.cc (main): Likewise.
7457         * grops/ps.cc (main): Likewise.
7458         * grotty/tty.cc (main): Likewise.
7459         * groff/groff.cc (main): Likewise.
7460         * grodvi/dvi.cc (main): Likewise.
7461         * refer/refer.cc (main): Likewise.
7462         * indxbib/indxbib.cc (main): Likewise.
7463         * lkbib/lkbib.cc (main): Likewise.
7464         * soelim/soelim.cc (main): Likewise.
7465         * addftinfo/addftinfo.cc (main): Likewise.
7466         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
7467         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
7469         * troff/token.h (process_input_stack): Don't declare as static.
7470         * troff/input.cc: Likewise.
7472         * troff/node.c (invalidate_fontno): Make it a static member of
7473         class font_family.  Change callers.
7474         * troff/node.c: Change declaration.
7476         * tbl/main.cc (struct input_entry_format): Add explicit public
7477         specifier.
7478         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
7479         struct double_hline_stuff): Likewise.
7480         * tbl/table.h (struct entry_format): Likewise.
7481         * pic/object.h (struct saved_state): Likewise.
7483         * include/stringclass.h: Add forward declarations of friend
7484         functions that are later declared as inline.  Don't include inline
7485         specifier in friend declaration.
7487         * libgroff/lib.h: Declare popen and pclose.
7488         * acgroff.m4 (GROFF_POPEN): New macro.
7489         * configure.in: Call it.
7491         * include/lib.h (PI): New constant. Undef first if necessary.
7492         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
7493         * grops/ps.cc (degrees, radians): Likewise.
7494         * libgroff/font.cc (font::get_skew): Likewise.
7496         * grops/ps.cc (is_ascii): New function.
7497         (ps_output::put_string): Use is_ascii.  Use csprint rather than
7498         isprint.
7499         (ps_printer::define_encoding): Use csspace.
7500         * libgroff/strtol.c (ISASCII): New macro.
7501         (strtol): Cast arguments to is*() and tolower() to unsigned char.
7502         Use ISASCII rather than isascii.
7503         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
7504         * libgroff/cset.cc: Likewise.
7505         * libdriver/input.cc: Include cset.h.
7506         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
7507         than isdigit().
7509         * refer/refer.cc (main): Use %ld rather than %d for longs.
7511         * libbib/index.cc (index_search_item_iterator::get_tag): Use
7512         S_ISREG macro.
7514         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
7516 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
7518         * troff/input.cc (hyphenation_code): Skip white space between
7519         char/code pairs.
7521 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
7523         * tbl/table.h (table::entry_list_tailp): New member.
7524         (table::table): Initialize it.
7525         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
7526         behaviour.
7528 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
7530         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
7531         with negative horizontal positions. Remove casts of glyph::hpos to
7532         int.
7533         (USHRT_MAX): Delete definition.
7534         (SHRT_MAX, SHRT_MIN): New definitions.
7535         (glyph::hpos): Change type to short.
7536         (tty_printer::end_page): Output multiple backspaces if necessary.
7537          Remove casts of glyph::hpos to int.
7538         
7539 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
7541         * tmac/tmac.s (@RT): New definition.
7543 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
7545         * refer/refer.cc (do_file): Make sure current_filename is set when
7546         filename is "-".
7548         * pic/common.cc (common_output::dot_line): Handle zero length
7549         lines.
7551 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
7553         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
7554         (par@init): Initialize \n[HY].
7556 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
7558         * troff/dictionary.cc (dictionary::remove): Continue when
7559         r < j < i.
7561 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
7563         * Makefile.com (.y.cc): Avoid ending up with two versions of
7564         $(YTABH).
7566 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
7568         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
7569         (\(,C): Likewise.  Also fix typo.
7571 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
7573         * lib.h: Delete extraneous semi-colon.
7575         * Add pso request: `so' from a pipe.
7576         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
7577         (file_iterator::close): New function.
7578         (file_iterator::~file_iterator, file_iterator::next_file): Use
7579         file_iterator::close.
7580         (file_iterator::backtrace): Say `process' rather than `file' when
7581         the stream is popened.
7582         (pipe_source): New function.
7583         (init_input_requests): Bind ".pso" to pipe_source.
7585 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
7587         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
7589         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
7590         digits in lower case.
7592 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
7594         * Version 1.08 released.
7596         * Makefile.in (dist): Insert || true after ln -s commands that
7597         might fail.
7599         * mm: Update to mm 1.16.
7601         * acgroff.m4 (GROFF_CSH_HACK): New macro.
7602         * configure.in: Call GROFF_CSH_HACK.  Substitute for
7603         SH_SCRIPT_SED_CMD.
7604         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
7605         MDEFINES.
7606         * nroff/Makefile.sub (nroff): New target.
7607         (install_data): Install nroff.
7608         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
7609         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
7611 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
7613         * eqn/Makefile.sub (neqn): Add chmod +x.
7615         * grog/Makefile.sub (grog): Remove spurious semi-colon.
7617 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
7619         * troff/input.cc (string_iterator::string_iterator()): Initialize
7620         lineno and count.
7622 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
7624         * troff/div.cc (macro_diversion::space,
7625         top_level_diversion::space): Don't set high_water_mark.
7626         (macro_diversion::output, top_level_diversion::output): Don't
7627         include post line space in high water mark.
7629 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
7631         * eqn/eqn.y: Don't define YYDEBUG.
7632         * pic/pic.y: Likewise.
7634 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
7636         * tmac/tmac.e ([3): Add space after comma following editors.
7637         Change double spaces to single spaces.
7638         ([4): Change double spaces to single spaces.
7640         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
7641         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
7642         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
7643         after %!PS-Adobe- (for Newsprint).
7645         * troff/div.cc (top_level_diversion::begin_page): When
7646         before_first_page is 1, set page_number to 1.
7648 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
7650         * eqn/box.cc (box::top_level): Protect equation with \&.
7652 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
7654         * groff/groff.cc (possible_command::set_name): Delete old name.
7656         * groff/groff.cc (possible_command::~possible_command): Use
7657         a_delete.
7659         * troff/node.cc (troff_output_file::begun_page): New member.
7660         (troff_output_file::troff_output_file): Initialize it.
7661         (troff_output_file::really_begin_page): Only output V command if a
7662         page has been begun.
7664         * pic/pic.y (placeless_element): Delete argument to PRINT after
7665         use.
7667 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
7669         * Make wrapman work.
7670         * troff/div.h (class top_level_diversion): Replace
7671         first_page_begun by before_first_page (with opposite sense).
7672         * Change first_page_begun to before_first_page inverting sense.
7673         * troff/div.cc (class nl_reg): New class.
7674         (init_div_requests): Use class nl_reg for \n(nl.
7675         (top_level_diversion::begin_page): Don't call
7676         output_file::begin_page if before_first_page is 2;
7677         reset before_first_page afterwards.  If have_next_page_number is
7678         false, then always increment page_number.
7679         * tmac/tmac.an: Set traps within TH rather than at the top-level.
7680         Restore compatibility mode after loading, and then disable
7681         compatibility mode in TH.
7683 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
7685         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
7686         past last line.
7687         * troff/node.h (output_file::trailer): Declare.
7688         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
7689         * troff/node.cc (output_file::trailer): New function.
7690         (troff_output_file::~troff_output_file): Move most code into...
7691         (troff_output_file::trailer): New function.
7692         (class troff_output_file): Delete page_length member. Declare
7693         trailer().
7694         (troff_output_file::really_begin_page): Use current page length
7695         for final V command.
7697         * tbl/main.cc (struct options): New decimal_point_char member.
7698         (options::options): Initialize this.
7699         (process_options): Implement decimalpoint option.
7700         (process_data): Pass decimal_point_char option to table::table.
7701         * tbl/table.h (class table): New decimal_point_char member.
7702         (table::table): Add additional argument.
7703         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
7704         second argument specifying decimal point character.  Use this
7705         instead of '.'.
7706         (table::table): Initialize decimal_point_char.
7707         (table::add_entry): Change call to find_dot.
7709         * troff/input.cc (get_copy, token::next): Implement \V.
7710         (interpolate_environment_variable): New function.
7712 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
7714         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
7715         * pic/pic.y: Likewise.
7717         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
7718         Add casts to int.
7719         * refer/ref.cc (reference::insert_field, reference::delete_field):
7720         Likewise.
7721         * troff/number.cc (parse_term): Likewise.
7723         * acgroff.m4 (GROFF_PROG_YACC): New macro.
7724         * configure.in: Use GROFF_PROG_YACC.
7726         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
7727         and g++.
7728         * Makefile.in (OPTIMIZE): New define.
7729         (DEBUG): Empty by default.
7730         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
7732         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
7733         (GROFF_ARRAY_DELETE): Likewise.
7734         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
7736         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
7738         * devps/psstrip.sed: Use different delimiter on last line (so that
7739         it works with BSD 4.4 sed.)
7741 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
7743         * devps/psstrip.sed: Delete comments.
7745         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
7746         optind, opterr, optarg.
7747         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
7748         opterr, optarg.
7750 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
7752         * Makefile.in (check): Dummy target.
7754 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
7756         * Version 1.07 released.
7758         * Integrate mm 1.11.
7760         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
7761         where start_col was meant.
7763 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
7765         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
7767 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
7769         * troff/input.cc (token::next): Make \z\o'...' and similar things
7770         work.
7772         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
7773         constants.
7774         (environment): Add margin_character_flags member.
7775         * env.cc (environment::environment(symbol),
7776         environment::environment(const environment *): Initialize
7777         margin_character_flags.
7778         (margin_character): Rewrite.
7779         (environment::output_line): Add a margin character if
7780         margin_character_flags is non-zero.  Turn off the
7781         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
7782         zero, use margin_character_node without copying and then set
7783         margin_character_node to 0.
7785         * devps/DESC.in: Change minimum size to 1000.
7787 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
7789         * troff/symbol.h (symbol::hash): Change return type to unsigned
7790         long.
7791         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
7792         Add casts to int.
7794         * test-groff: Use -r rather than -x.
7796         * grops/psfig.diff: Include in distribution again.
7798 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
7800         * Makefile.in (dist): Use gzip.
7802 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
7804         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
7805         unistd.h as well as in stdlib.h.
7806         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
7807         defined; otherwise include <sys/types.h> and <unistd.h> if
7808         UNISTD_H_DECLARES_GETOPT is defined.
7810         * configure.in: use builtin(include, ... rather than include(...
7811         * configure: Regenerate with autoconf 1.3.
7813         * libdriver/print.cc (printer::adjust_arc_center): Use new
7814         algorithm suggested by Andy Fyfe.
7816         * libdriver/printer.cc (printer::adjust_arc_center): New function.
7817         * include/printer.h: Declare this.
7818         * grops/ps.cc (ps_printer::draw): Use it.
7819         * grodvi/dvi.cc (dvi_printer::draw): Use it.
7821 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
7823         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
7825 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
7827         * eqn/main.cc (main): Handle "eqn -".
7829 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
7831         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
7833         * mm: Integrate version 1.08.
7835         * pic/troff.cc (troff_output::finish_picture): Set
7836         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
7837         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
7838         if it's not defined. Check whether the register is non-zero rather
7839         than whether it's not defined.
7840         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
7842         * indxbib/indxbib.cc: Move all signal handling into...
7843         * indxbib/signal.c: New file.
7844         * configure.in: Call AC_RETSIGTYPE.
7846         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
7847         * configure.in: Call GROFF_STRUCT_EXCEPTION.
7848         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
7850         * troff/input.cc (token::token, token::operator=): Work round SGI
7851         C++ bug.
7852         * pic/object.cc (position::position): Likewise.
7854 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
7856         * pic/pic.h: Move declaration of hypot().
7858 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
7860         * pic/pic.h: Declare hypot().
7862         * pic/pic.h: Define M_PI if necessary.
7864 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
7866         * tmac/tmac.e (re): Add alternative version that doesn't use groff
7867         `.ta T' feature.
7869         * devps/prologue.ps (RE): Handle the possibility that the old font
7870         doesn't have a FontName entry.
7872 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
7874         * tmac/tmac.e (fam): Redefine to set family in environment 2.
7875         (@C): Use @fam not fam.
7877 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
7879         * lookbib/lookbib.cc (main): Change type of start to const char *.
7880         * lkbib/lkbib.cc (main): Likewise.
7882         * eqn/lex.cc (definition::definition): Don't use member
7883         initializer syntax for members of anonymous unions.
7885         * troff/input.cc (input_stack::backtrace): Change type of to const
7886         char *.
7888 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
7890         * include/stringclass.h (class string): Declare inline friend
7891         functions as inline in class declaration.
7892         * troff/hvunits.h (class hunits, class vunits): Likewise.
7893         * include/refid.h (class reference_id): Likewise
7894         * troff/troff.h (points_to_units(units), scale(units, double)):
7895         Delete declarations.
7896         * libdriver/input.cc (get_char): Delete declaration.
7897         * include/lib.h: Change 2nd argument of getopt from const char **
7898         to char **.
7899         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
7900         char **' before assigning to a `const char **'.
7901         * tbl/table.cc: Delete extra declarations of prints().
7903 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
7905         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
7906         char **' before assigning to a `const char **'.
7908         * libgroff/errarg.cc (errarg::errarg): Don't use member
7909         initializer syntax for members of anonymous unions.
7911 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
7913         * mm: Integrate version 1.07.
7915 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
7917         * troff/input.c (translate2): Rename to
7918         (translate_no_transparent).
7919         (init_input_requests): Rename tr2 to trnt.
7921 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
7923         * troff/charinfo.h (class charinfo): Add transparent_translate field.
7924         (charinfo::set_translation, charinfo::set_special_translation):
7925         Add second argument that specifies value for
7926         transparent_translate.
7927         (charinfo::get_translation, charinfo::get_special_translation):
7928         Add optional second argument that specifies whether translation is
7929         being used for transparent throughput.
7930         * troff/input.cc (charinfo::set_translation,
7931         charinfo::set_special_translation): Handle second argument.
7932         (charinfo::charinfo): Initialize transparent_translate.
7933         (translate): Split main part off into
7934         (do_translate): New function.  Pass argument saying whether
7935         translation applies to transparent throughput.
7936         (translate2): New request.
7937         (init_input_requests): Bind translate2 to `tr2'.
7939 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
7941         * tbl/table.h (class table): Add `nokeep' flag.
7942         * tbl/main.cc (process_options): Handle `nokeep' option.
7943         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
7944         table::do_bottom): Don't output keep/release macro definitions or
7945         calls when `nokeep' option has been specified.
7947 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
7949         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
7951 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
7953         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
7954         block_entry::divert, alphabetic_block_entry::divert): Add extra
7955         argument giving column separation.
7956         (table::compute_widths): Pass column separation to
7957         table_entry::divert().
7958         (block_entry::do_divert): If an entry spans multiple columns and a
7959         minimumum width has been specified for each column, then set the
7960         line length to the sum of the widths (plus possibly the column
7961         separations).
7963         * troff/input.cc (set_escape_char): Don't set the escape_char
7964         until after calling has_arg().
7966 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
7968         * tbl/table.cc (table::do_top): Add missing \s0 for double box
7969         case.
7971         * tbl/table.cc (table::print_double_hline): Avoid extra new line
7972         in case where r > nrows - 1.
7974         * tbl/table.cc (BODY_HEIGHT): Deleted.
7975         (LINE_SEP): New definition.
7976         (table::print_single_hline, table::print_double_hline,
7977         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
7978         table::do_row, table::do_top): Use LINE_SEP space before a line
7979         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
7981         * tbl/table.cc (text_entry::print_contents): New function.
7982         (text_string_name, right_text_string_name): Deleted.
7983         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
7984         (simple_text_entry::do_width, numeric_text_entry::do_width,
7985         alphabetic_text_entry::do_width): Don't store the contents of the
7986         entry in a string.
7987         (left_text_entry::simple_print, right_text_entry::simple_print,
7988         center_text_entry::simple_print,
7989         alphabetic_text_entry::simple_print,
7990         numeric_text_entry::simple_print): Print the entry directly
7991         instead of using the stored string.
7993 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
7995         * devps/Makefile: Strip PostScript files.
7996         * devps/prologue: Rename to...
7997         * devps/prologue.ps.
7998         * devps/psstrip.sed: New file.
7999         * devps/download: Use .pfa rather than .ps for installed versions
8000         of fonts.
8002 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
8004         * troff/env.cc (input_trap): Give a warning if the argument is out
8005         of range.
8007         * troff/env.cc (adjust): Treat negative argument as missing. Round
8008         argument > 5 down to 5.
8010         * troff/env.cc (center, right_justify): Make negative argument zero.
8012         * troff/div.cc (page_offset, vertical_position_traps): Treat
8013         invalid argument as missing.
8014         * troff/env.cc (line_spacing, line_length, title_length, indent,
8015         underline, hyphen_line_max_request, control_char,
8016         no_break_control_char, widow_control_request, adjust, input_trap,
8017         point_size): Likewise.
8018         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
8019         constant_space): Likewise.
8020         * troff/input.cc (compatible, shift, warn_request,
8021         set_escape_char): Likewise.
8023         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
8024         * tbl/table.cc (table::table): Likewise.
8026         * Makefile.dev (install_dev): depends on $(DEVFILES).
8028 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
8030         * devX75, devX75-12, devX100, devX100-12: New directories.
8031         * Makefile.in: Add these to DEVDIRS.
8033         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
8034         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
8035         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
8036         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
8037         targets.
8038         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
8039         (uninstall): New target.
8040         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
8041         uninstall_prog, uninstall_dev): New targets.
8043         * troff/div.cc (return_request): Treat an invalid argument as
8044         missing.
8046 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
8048         * tmac/tmac.e ((f): Set up the environment even when there's a
8049         current diversion.  Transperently throughput a call to @N.
8050         (@N): New macro.
8052 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
8054         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
8055         up to vertical resolution.
8057         * tbl/table.cc (table::do_row): Change row number after printing
8058         stuff list.
8060         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
8062 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
8064         * Rename CHANGES to NEWS.
8066 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
8068         * libgroff/new.cc (operator new): Avoid calling malloc(0).
8070 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
8072         * man.ultrix: Removed.
8074 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
8076         * Makefile.comm (extraclean): Delete files whose names begin with
8077         `='.
8079         * pic/troff.cc (troff_output::text): Fix typo in implementation of
8080         aligned text.
8082 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
8084         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
8085         * troff/div.cc (page_length, need_space, space_request): Treat
8086         invalid optional argument as missing.
8087         * troff/env.cc (number_lines): If the first argument is present
8088         but not a number, turn on line numbering, don't change the next
8089         line number and parse the remaining arguments.
8091         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
8093 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
8095         * eqn/box.h: Change declaration accordingly.
8096         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
8097         the specified size was bad but don't give an error.  Check for
8098         overflow.
8099         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
8100         * eqn/lex (do_size): Likewise.
8102 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
8104         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
8105         compatible headers.
8107 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
8109         * tbl/table.cc (table::init_output): Improve error message when
8110         table won't fit on one page.
8112 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
8114         * pic/troff.cc (troff_output::start_picture): Generate line
8115         containing a horizontal motion equal to the width of the picture.
8117         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
8118         using GROFF_COMMAND_PREFIX environment variable.
8120 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
8122         * mdate.sh: Use $NF rather than $(NF).
8124 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
8126         * pic/main.cc (main):  Use %1 not %c in argument to warning.
8128         * eqn/main.cc (main): Output code to check that geqn was given the
8129         correct -T option.
8131 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
8133         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
8134         `ln -s ../Makefile .; make; rm -f Makefile'.
8136         * troff/hyphen: Rename to...
8137         * troff/hyphen.us:
8138         * troff/input.cc (main): Delete -H option. Don't call
8139         read_hyphen_file().
8140         * troff/env.cc: Include searchpath.h and macropath.h.
8141         (exception_dictionary): Deleted.
8142         (ht): Deleted.
8143         (read_hyphen_file): Deleted.
8144         (hyphenation_language): New struct.
8145         (class trie, class hyphen_trie): Move declarations up.
8146         (trie_node::~trie_node): Deleted.
8147         (trie::delete_trie_node): New function.
8148         (trie::do_delete): New pure virtual function.
8149         (hyphen_trie::do_delete): New function.
8150         (trie::~trie): New function.
8151         (hyphen_trie::~hyphen_trie): New function.
8152         (trie::clear): No need to chcek that tp is not 0.
8153         (current_language, language_dictionary): New variables.
8154         (hyphen_word): Give an error if no current language.  Use
8155         exceptions dictionary in current language.
8156         (hyphen_trie::read_patterns_file): Find file using macro_path.
8157         Allow comments (starting with %) in patterns file.  Don't make it
8158         a fatal error if the file can't be found.
8159         (hyphenate): Return if no current language.  Get the exceptions
8160         dictionary and the hyphenation patterns from the current language.
8161         (set_hyphenation_language): New variable.
8162         (hyphenation_patterns_file): New function.
8163         (hyphenation_language_reg): New class.
8164         (hyphenation_language_reg::get_string): New function.
8165         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
8166         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
8167         register.
8168         * groff/groff.cc (main, help, synopsis): Delete -H option.
8169         * include/Makefile.sub: Don't define HYPHENFILE.
8170         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
8171         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
8172         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
8173         hyphenation patterns.
8175 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
8177         * eqn/neqn.sh: New file.
8178         * eqn/Makefile.sub: Handle neqn.sh.
8180         * eqn/eqn.h: Declare `nroff' variable.
8181         * eqn/box.cc (param_table): Add `nroff' param.
8182         (nroff): Define it.
8183         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
8184         variable.
8185         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
8187         * troff/troff.h (WARN_FONT): New warning.
8188         (WARN_TOTAL): Change accordingly.
8189         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
8190         (warning_table): Add WARN_FONT.
8191         * troff/node.cc (mount_font_no_translate): Pass argument to
8192         font::load_font.  If this is non-zero, give a warning.
8193         Don't give an error message when accessing a font that has already
8194         been found to be invalid.
8195         * include/font.h (font::load, font::load_font): Add additional
8196         optional argument which suppresses error message if the font is
8197         not found.
8198         * libgroff/font.cc (font::load_font): Handle additional argument.
8199         (font::load): Add additional argument. If this is non-null, set it
8200         to 1 and don't give error message.
8202         * include/printer.h (printer::end_page): Add argument giving
8203         length of page.
8204         * libdriver/input.cc (do_file): Pass this.
8205         * grops/ps.cc (ps_printer::end_page): Add argument.
8206         * grodvi/dvi.cc (dvi_printer::end_page,
8207         draw_dvi_printer::end_page): Add argument.
8208         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
8209         columns_per_page members. New member nlines.
8210         (DEFAULT_LINES_PER_PAGE): Deleted.
8211         (tty_printer::tty_printer): Don't compute lines_per_page from
8212         font::paperlength. Don't compute columns_per_page from
8213         font::paperwidth.
8214         (tty_printer::add_char): Don't check horizontal position against
8215         columns_per_page. Grow glyphs vector if neccessary.
8216         (tty_printer::end_page): Add argument giving page_length in units.
8217         Discard lines past end of page.
8219 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
8221         * tmac/tmac.tty-char: Fix definition of \(/l.
8223         * tmac/tmac.X: Define \(en.
8225 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
8227         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
8228         lpq, then use lp rather than lpr.
8230         * tmac/tmac.s (par@reset): Don't call `ad'.
8231         (par*env-init): Call `ad'.
8233 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
8235         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
8236         date.
8238         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
8239         * indxbib/indxbib.cc: Likewise.
8241 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
8243         * libgroff/putenv.c: New file.
8244         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
8245         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
8246         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
8247         stdlib.h with AC_HAVE_HEADERS.
8249 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
8251         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
8252         does not exist.
8254 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
8256         * eqn/box.cc (gsize): Make it an int.
8257         (set_gsize): Parse argument handling increment or decrement.
8258         (box::top_level): Convert gsize to a string.
8260         * troff/input.cc (exit_troff): Make buf unsigned char [].
8261         Call to make_temp_iterator casts buf to char*.
8263         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
8265         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
8266         * Makefile.cpg (depend.temp): Likewise.
8268         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
8270         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
8272 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
8274         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
8276 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
8278         * Version 1.06 released.
8280         * Integrate mm 1.04.
8282 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
8284         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
8286 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
8288         * afmtodit/afmtodit.pl: Add -n option that disables generation of
8289         ligatures command.
8290         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
8291         afmtodit. Regenerate.
8293         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
8294         @f back past the current position.
8296         * tmac/tmac.e: Change calls to @R so that comments are not part of
8297         arguments.
8299 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
8301         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
8303         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
8304         check that we can link a call to a function declared in <stdio.h>.
8305         (GROFF_UNISTD_H): New macro.
8306         * configure.in: Call it.
8307         * Makefile.in: Document it.
8308         * include/posix.h: New file.
8309         * troff/troff.h: Don't include <osfcn.h>
8310         * troff/input.cc: Include posix.h.
8311         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
8312         osfcn.h.
8313         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
8314         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
8315         <fcntl.h>.
8316         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
8317         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
8318         * libbib/search.cc (O_RDONLY): Delete definition.
8319         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
8320         Don't include <osfcn.h>.
8322         * acgroff.m4 (GROFF_TIME_T): New macro.
8323         * configure.in: Call it.
8324         * Makefile.in: Document it.
8326         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
8327         * configure.in: Call it.
8328         * Makefile.in: Document -DTRADITIONAL_CPP.
8329         * include/ptable.h: Don't include generic.h.
8330         (name2): Define it.
8332         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
8333         Afterwards remove [T1 and [T2.
8334         (ref*spec!0, ref*spec!2): Use T1 rather than T.
8335         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
8336         (ref*add-T2): Renamed from ref*add-T.
8337         (ref*add-T1): New macro.
8339 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
8341         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
8343         * libbib/index.cc: Include <fcntl.h>.
8344         (O_RDONLY): Define if necessary.
8345         (make_index_search_item, index_search_item_iterator::get_tag,
8346         index_search_item::check_files): Use O_RDONLY.
8347         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
8348         (O_RDONLY): Define if necessary.
8349         (search_list::add_file): Use O_RDONLY.
8350         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
8351         <sys/stat.h>.
8352         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
8353         (main): Use these.
8355         * libbib/index.cc (S_ISREG): Define it if necessary.
8356         (index_search_item::load): Use S_ISREG.
8358         * include/driver.h: Include <errno.h>.
8360 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
8362         * eqn/box.cc (body_height): Increase default value to 85.
8363         (body_depth): Increase default value to 35.
8365 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
8367         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
8368         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
8369         protected from expansion with \E.
8371         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
8373         * Makefile (Makefile): New target.
8375         * Makefile.sub (configure, distfiles): New targets.
8377         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
8378         construct.
8380 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
8382         * eqn/box.cc (param_table): Add body_height and body_depth.
8384         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
8386 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
8388         * psbb/Makefile.sub: Don't link with libgroff.a.
8390         * acgroff.m4 (GROFF_PUTENV): New macro.
8391         * configure.in: Call GROFF_PUTENV.
8392         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
8393         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
8394         is defined.
8396         * troff/env.cc (distribute_space): Rename force_forward argument
8397         to force_reverse.  Reverse the list if force_reverse is true.
8399 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
8401         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
8403         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
8404         height or depth to be negative.  Guard against SUP_RAISE quantity
8405         being negative.
8407 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
8409         * devps/generate/textmap: Add `an' (arrowhorizex).
8410         * tmac/tmac.ps: \(an overlaps horizontally.
8411         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
8413         * devps/symbolchars: Add arrowverttp, arrowvertbt.
8414         * devps/textmap: Add arrowvertex.
8415         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
8416         updownarrow delimiters.
8417         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
8419         * tbl/table.cc (simple_entry::position_vertically,
8420         block_entry::position_vertically):  For a centered entry, perform
8421         the motion in two stages.
8423         * refer/refer.cc (split_punct): Don't call lookup_token if there
8424         is no token.
8426 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
8428         * troff/input.cc (token::next): Delete token_node after copying
8429         token.
8431         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
8432         cur_point_size.
8434         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
8436         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
8438 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
8440         * grops/ps.cc (usage): -b option takes an argument.
8442         * devps/prologue (PLG): New procedure.
8443         * grops/ps.cc (main, usage): New -g option.
8444         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
8445         length using PLG.
8447 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
8449         * include/cset.h: Include <limits.h> if we have it.
8451         * libgroff/illegal.cc: New file.
8452         * include/lib.h (illegal_input_char): Use table.
8453         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
8454         * pic/lex.cc (ARG1): Renumber to 14.
8455         * eqn/lex.cc (ARG1: Likewise.
8457         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
8458         (eg 1.05.90) correctly.
8460 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
8462         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
8463         Rename $r and $R registers to $v and $V.
8464         ($r, $R): Initialize to 0.
8465         (@v, @V): New macros.
8466         (sz): Call @v.
8467         (@M): Call @V.
8469         * troff/input.cc (main, usage): Add -R option that says not to
8470         load troffrc.
8471         * eqn/main.cc (main, usage): Rename -n to -R.
8473 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
8475         * devps/DESC.in: Leave font positions 5-9 blank.
8476         * devdvi/DESC.in: Likewise.
8478         * grog/grog.pl: Handle `.PS <file' correctly.
8480         * troff/input.cc (input_stack::push): Improve error message when
8481         input stack limit exceeded.
8483 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
8485         * refer/refer.cc (main): Fix typo in handling of `a' option.
8487         * refer/refer.cc (do_bib): In state START after a newline remain
8488         in state START.
8490         * groff/groff.sh: Deleted.
8491         * groff/Makefile.sub: Delete handling of groff.sh.
8493         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
8494         to determine whether to use \X'ps:...'.
8495         * tmac/troffrc: Set 0p register to 0.
8496         * tmac/tmac.ps: Set 0p register to 1.
8498         * groff/groff.cc: Support -X option. Give warning for -TXps and
8499         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
8500         * tmac/troffrc: Support -r.X=1.
8502         * pic/troff.cc (troff_output::dot): Don't test
8503         zero_length_line_flag.
8505 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
8507         * include/lib.h: Declare getopt() and friends unless
8508         STDLIB_H_DECLARES_GETOPT is defined.
8510         * doc/chars.tr: Delete.
8511         * man/groff_char.man: New file.
8513 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
8515         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
8516         user has changed register format.
8518 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
8520         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
8521         `postpro' command in DESC file.  Get spooler command from `print'
8522         command in DESC file.  Execute spooler command with /bin/sh.
8524         * groff/groff.cc: Split Unix-specific parts into...
8525         * groff/pipeline.c: New file.
8527         * LICENSE: Delete.
8528         * COPYING: New file.
8529         * all files: Update copyright notices.
8531         * Rearrange files.  Redo Makefiles.  Use autoconf.
8533 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
8535         * troff/input.c (charinfo_to_node_list): Interpret character
8536         definition with escape_char of `\'.
8538 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
8540         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
8541         Define INT_DIGITS as big enough for 64-bit integer.
8542         * lib/strtol.c: Don't include lib.h.
8543         * lib/lib.h: Delete ifdef __cplusplus stuff.
8545 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
8547         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
8548         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
8549         get DESC from current directory.
8551 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
8553         * tbl/main.c (main): Always reset the line number when reading
8554         from stdin.
8556         * tbl/table.c (table::print_single_hline, table::print_double_hline,
8557         table::define_bottom_macro, table::do_row, table::do_top): Round
8558         vertical spacing up to vertical resolution.
8560 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
8562         * ps/ps.h (enum resource_type): Avoid comma at end of
8563         enumerator-list.
8564         * dvi/dvi.c (class dvi_printer): Likewise.
8565         * dvi/tfmtodit.c (gf::load): Likewise.
8566         * refer/label.y (struct expression): Likewise.
8567         * refer/refer.c (class label_processing_state): Likewise.
8568         * refer/indxbib.c (do_file): Likewise.
8569         * troff/troff.c (enum warning_type): Likewise.
8570         * tbl/main.c (process_data): Likewise.
8571         * troff/charinfo.h (class charinfo):
8573 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
8575         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
8577 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
8579         * groff.c: Move to new groff subdirectory.
8580         * groff/Makefile: New file.
8581         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
8583         * man/mdate.sh: Use ls -L if supported.
8585         * Consolidate all header files produced by gendef into lib/defs.h.
8586         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
8587         Don't include path.h.
8588         * lib/Makefile (path.h): Don't generate.
8589         * troff/input.c: Include defs.h. Don't include config.h.
8590         * troff/Makefile (config.h): Don't generate.
8591         * refer/index.h: Don't include suffix.h.
8592         * refer/index.c: Include defs.h.
8593         * refer/indxbib.c: Include defs.h.
8594         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
8595         defs.h.
8596         * refer/Makefile (suffix.h, path.h): Don't generate.
8597         * groff.c: Don't include config.h. Include defs.h.
8598         * Makefile (config.h): Don't generate.
8599         (lib/defs.h): Generate.
8600         (topclean): Remove lib/defs.h.
8602 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
8604         * lib/malloc.c, lib/getpagesize.h: Deleted.
8605         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
8606         related stuff.
8607         * lib/Makefile: Delete malloc-related stuff.
8608         * lib/new.c: Workaround COOKIE_BUG if necessary.
8610         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
8611         needed header files directly.
8612         * refer/refer.h: Omit definition of DEFAULT_INDEX.
8613         * Makefile: Include definition of DEFAULT_INDEX in path.h.
8615 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
8617         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
8618         argument.
8619         * lib/font (font::load_desc, font::load): Don't split argument of
8620         unknown command.
8621         (font::handle_unknown_font_command): Change type.
8622         * ps/ps.c (ps_font::handle_unknown_font_command,
8623         handle_unknown_desc_command): Change type.
8624         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
8626 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
8628         * lib/font.h (font::handle_unknown_font_command): Add file and
8629         line arguments.
8630         * lib/font.c (font::handle_unknown_font_command):
8631         * ps/ps.c (ps_font::handle_unknown_font_command):
8632         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
8633         lineno arguments.  Use _with_file_and_line functions for error
8634         reporting.
8636         * lib/fontfile.c (font::unknown_desc_command_handler): New static
8637         data member.
8638         * lib/font.c (font::set_unknown_desc_command_handler): New
8639         function.
8640         (font::load_desc): For unknown commands, call
8641         unknown_desc_command_handler if not null.
8642         * lib/font.h (class font): Declare them.
8643         (FONT_COMMAND_HANDLER): New typedef.
8644         * ps/ps.c (handle_unknown_desc_command): New function.
8645         (main): Set bflag if we had a -b option. Call
8646         font::set_unknown_desc_command_handler.
8647         (broken.h): Don't include.
8648         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
8649         submake 
8650         * ps/devps/Makefile: Add `broken' command to DESC file using
8651         BROKEN_SPOOLER_FLAGS.
8653         * macros/tmac.e ([, ]): Add as synonyms for { and }.
8655         * macros/tmac.e ($p): Only exdent if \$3 > 0.
8657         * macros/tmac.e (@R, @S): New macros.
8658         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
8659         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
8660         Declare $H, $[0-9], .. macros with @S.
8661         Declare |0, |1, |2, |3 strings with @S.
8663         * macros/tmac.e (@S): Rename to @U.
8665         * macros/tmac.e (@z): Define @b and bp as empty instead of
8666         deleting them,
8668         * macros/tmac.e (@m): Deleted.
8669         (@h): Don't call @m.
8670         (@z): Don't set @m trap.
8672         * macros/tmac.e ($h, $f): Define |z as empty string.
8674         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
8675         (@q): Likewise.
8677         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
8678         removing them.
8679         ()f): Likewise for * register.
8681         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
8682         argument is missing, don't change $R.  Call sr with three
8683         arguments when initializing.
8685 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
8687         * macros/tmac.e (sr): New macro.
8688         Initialize $r and $R using sr.
8690         * macros/tmac.e (,): Delete \*(#[.
8692         * troff/env.c (set_tabs): Read the tab type even if the position
8693         is bad.  Allow the position of the first tab stop to be negative.
8695 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
8697         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
8698         _POSIX_VERSION.
8699         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
8700         rather than -DPATHCONF_MISSING.
8701         * Makefile: Get rid of PATHCONF_MISSING.
8703         * refer/map.c: New file.
8704         * refer/index.c: Interface to mmap through map.c.  Rename map_size
8705         to map_len.
8706         * refer/Makefile: Handle map.c.
8707         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
8709 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
8711         * Makefile: RANLIB should be `true' if there is no ranlib.
8712         * lib/Makefile (libgroff.a): Simplify.
8713         * driver/Makefile (libdriver.a): Simplify.
8715         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
8716         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
8717         defined.
8719 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
8721         * troff/env.c (compare_ranges): Declare as extern "C".
8723         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
8725         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
8727 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
8729         * pic/troff.c (troff_output::text): Merge in grops_output::text,
8730         but conditionalize use of \X based on \*(.T.
8731         (grops_output::*): Deleted.
8732         * pic/output.h: Delete declaration of make_grops_output.
8733         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
8734         by default. -n sets it to 0.
8735         (usage): Corresponding changes.
8736         * groff.c (main): Don't pass -x or -p to pic.
8737         * groff.sh: Likewise.
8739         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
8740         to be non-zero.
8742         * ps/devps/afmtodit: Change calculation of asc_boundary and
8743         desc_boundary.  Make these bounds inclusive.
8744         * ps/devps: Regenerate font files.
8746 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
8748         * macros/tmac.latin1: New file.
8749         * macros/tmac.tty-char: Use tmac.latin1.
8750         (tmac.tty-tr): Deleted.
8751         * macros/Makefile: Install tmac.latin1.
8752         * macros/tmac.dvi: Use tmac.latin1.
8753         * macros/troffrc: Translate \[char160] onto no-break space here.
8754         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
8756 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
8758         * macros/tmac.Xps: Use `do' request.
8760         * macros/tmac.ps: Use `do' request.
8762         * macros/tmac.e (@C): Use `do' request.
8764         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
8765         * macros/Makefile: Install tmac.X*.
8767         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
8768         * tty/Makefile: Don't install tmac.tty*.
8769         * macros/Makefile: Install tmac.tty*.
8771         * dvi/tmac.dvi: Move to macros.
8772         * dvi/Makefile: Don't install tmac.dvi.
8773         * macros/Makefile: Install tmac.dvi.
8775         * ps/tmac.ps*: Move to macros.
8776         * ps/Makefile: Don't install tmac.ps*.
8777         * macros/Makefile: Install tmac.ps*.
8779         * eqn/box.c: Provide draw_lines parameter corresponding to -D
8780         option.
8781         * macros/eqnrc: Set draw_lines parameter based on device.
8782         * groff.c: Don't pass -D flag to eqn.
8783         * groff.sh: Likewise.
8784         * eqn/main.c: Warn about use of -D.
8786         * troff/input.c (process_startup_file): New function.
8787         (main): Call process_startup_file().
8788         * macros/troffrc: New file.
8789         * macros/Makefile: Install troffrc.
8790         * groff.c (main): Don't pass extra -m option to troff. For a 
8791         pseudo device pass the name of the pseudo device to troff using
8792         -d.
8793         * groff.sh: Likewise.
8794         * groff.c (possible_command::prepend_arg): Deleted.
8796         * troff/input.c (do_request): New function.
8797         (init_input_requests): Bind "do" to do_request.
8799         * eqn/main.c (main): Instead of loading eqnchar from device directory,
8800         load eqnrc from macro directory.
8801         * macros/eqnrc: New file.
8802         * macros/Makefile: Install eqnrc.
8803         * ps/devps/eqnchar: Deleted.
8804         * ps/devps/Makefile: Don't install eqnchar.
8805         * dvi/devdvi/eqnchar: Deleted.
8806         * dvi/devdvi/Makefile: Don't install eqnchar.
8807         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
8808         variable optM.
8810         * lib/device.[ch]: New files.
8811         * lib/font.h (font::set_device_name, font::get_device_name):
8812         Deleted.
8813         * lib/fontfile.c: Use device.h.
8814         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
8815         * troff/input.c: Delete definition of `device'.
8816         (main): Don't initialize device.
8817         * troff/troff.h: Include device.h rather than declaring device.
8818         * troff/Makefile: No need to handle DEVICE.
8819         * driver/input.c: Include device.h. Don't use
8820         font::{set,get}_device_name.
8821         * groff.c, Makefile: Rename device.h to config.h.
8822         * groff.c: Use library device variable.
8823         * eqn/main.c: Use library device variable.
8824         * eqn/Makefile: No need to handle DEVICE.
8826         * lib/searchpath.[ch]: New files.
8827         * lib/Makefile: Handle searchpath.[ch].
8828         * troff/input.c (open_file, init_dirs): Deleted.
8829         (macro_dirs): Deleted.
8830         (open_mac_file, macro_source): Use class search_path.
8831         (add_string, struct string_list): Move definition.
8832         (main): Change -M option to use macro_path. Delete call to
8833         init_dirs().
8834         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
8835         Rewrite to use class search_path.
8836         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
8837         * lib/Makefile: fontfile.c depends on searchpath.h.
8838         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
8839         MACROPATH.
8840         * lib/macropath.[ch]: New files.
8841         * troff/Makefile: No need to handle MACROPATH.
8843         * troff/input.c: Delete DUMP code.
8844         * lib/fontfile.c, lib/font.h: Delete
8845         font::forget_command_line_font_dirs.
8847         * troff/input.c (push_token): New function.
8848         (handle_first_page_transition): Use push_token().
8849         (process_input_stack): Change handling of a space at the beginning
8850         of the line.
8852 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
8854         * troff/input.c (font_dirs): Delete unused variable.
8856         * eqn/lex.c (do_set): Correct error messages.
8858 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
8860         * troff/input.c (do_define_string): Allow the string name to be
8861         followed immediately by a tab.
8862         (define_character): Likewise.
8864 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
8866         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
8867         be negative.
8869         * troff/input.c (input_iterator::is_file): New virtual function.
8870         (file_iterator::is_file): New function.
8871         (input_stack::end_file): New function.
8872         (input_stack::next_file): Handle the situation where there is no
8873         file on the input stack correctly.  Avoid making two passes over
8874         the input stack.
8875         (next_file): Make the filename optional; in this case call
8876         input_stack::end_file().
8878 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
8880         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
8881         produce a real _ charater when the current font is CW and _
8882         otherwise.
8884         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
8885         expression to work around gcc 2.2 bug.
8887 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
8889         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
8891         * troff/env.c (environment::add_padding): New function.
8892         (environment::add_char): Use add_padding().
8893         (environment::space): Likewise.
8894         (environment::wrap_up_field): Add some padding if there is none
8895         and there's no current tab.
8896         * troff/env.h: Declare environment::add_padding.
8898 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
8900         * pic/pic.y: undef fmod and rand before declaring them.
8902 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
8904         * troff/input.c (main): If the DESC file specifies a font name of
8905         0, then leave the corresponding font position empty.
8907         * nroff.sh: New file.
8908         * Makefile (install.nobin): Install nroff.sh.
8910         * tty/devlatin1/R.proto: Add ao as synonym for de.
8911         * tty/tmac.tty-char: Define ao as o.
8913         * tty/dev{ascii,latin1}/R.proto: Add aq.
8914         * tty/tmac.tty-char: Delete definition of aq.
8916 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
8918         * troff/input.c (init_charset_table): Don't translate 0240.
8919         * ps/tmac.ps: Translate char160 to space.
8920         * dvi/tmac.dvi: Likewise.
8921         * tty/tmac.tty: Likewise.
8923 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
8925         * dvi/tmac.dvi: Add support for all Latin-1 characters.
8927         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
8928         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
8929         \(oe, \(r?, \(r!.
8931         * tty/tmac.tty-char: Add \(ah.
8933         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
8934         No need to define \(FM and \(!/. Conditionalize all character
8935         definitions.
8937         * ps/devps/lgreekmap: Add +h, +f, +p.
8939         * ps/tmac.psnew: New file.
8940         * ps/Makefile: Install tmac.psnew.
8942         * troff/input.c (charinfo_to_node_list): Don't ever interpret
8943         character definitions in compatible mode.
8945         * troff/input.c (remove_character): New function.
8946         (init_input_requests): Bind remove_character to "rchar".
8948         * ps/tmac.psold: New file.
8949         * ps/Makefile: Install tmac.psold.
8950         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
8951         characters into tmac.psold.  Make these definitions unconditional.
8953         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
8955         * ps/tmac.ps: Don't define \('c and \('C.
8957         * ps/devps/textmap: Move Greek characters to...
8958         * ps/devps/symbolchars:
8960 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
8962         * ps/devps/text.enc: Add quotesingle.
8963         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
8964         * tty/tmac.tty-char: Likewise.
8965         * dvi/devdvi/texmi.map: Add +h, +f, +p.
8966         * dvi/devdvi/texi.map: Add Fn.
8967         * dvi/devdvi/msam.map: Add lz.
8968         * dvi/tmac.dvi: Handle Bq, bq, aq.
8970         * pic/lex.c (get_token): Recognize 'th.
8971         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
8973 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
8975         * ps/devps/textmap: Move di, mu, +- to...
8976         * ps/devps/symbolchars:
8978         * macros/tmac.s (@XS): Don't call par@reset or fi.
8979         (XA): Call LP. Turn off adjustment. Reduce line length.
8981         * macros/tmac.s: Initially alias XS to LP.
8982         (XS): Rename to @XS.
8983         (cov*ab-init): Alias XS to @XS.
8985 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
8987         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
8988         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
8989         (token::is_size, token::changes_env): Deleted.
8990         * troff/number.c (parse_term): No need to process \s explicitly.
8991         Call tok.next() only after scale indicator has been processed.
8992         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
8993         \f etc explicitly.
8994         (token::next): Handle \s, \f, \S, \H immediately rather than
8995         returning them as tokens.
8996         (token::operator==, token::description, token::add_to_node_list,
8997         token::process): Remove handling of deleted tokens.
8999         * troff/env.c (environment::add_char): When adding padding
9000         indicator character, call start_line() if necessary.
9002 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
9004         * ps/devps/afmtodit: Don't output 0 kerns.
9006         * ps/devps/afmtodit: Remove directory from name of encoding in
9007         font description file.
9009         * ps/devps/afmtodit: Improve error messages.
9011         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
9013         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
9014         * ps/devps/FontMakefile: Deleted.
9015         * ps/devps/afmname: New file.
9017         * ps/devps/symbol.sed: New file.
9018         * ps/devps/symbol.diff: Deleted.
9019         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
9020         Generate zapfdr.afm from zapfd.afm.
9022         * tty/tmac.tty (tty-char): Prefix definition with ".
9024         * macros/tmac.an (TP): Don't start a diversion if one has already
9025         been started.
9027         * tty/tmac.tty-char: Add Latin-1 characters.
9029         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
9031 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
9033         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
9034         Move declaration of struct horizontal_span.
9036         * tbl/table.c (table::table): Initialize span_list.
9037         (table::~table): Delete span_list.
9039         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
9041         * ps/devps/Makefile: Avoid dependency on GNU make.
9043         * ps/tmac.ps: Check that character does not already exist before
9044         defining it.
9046         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
9047         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
9048         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
9049         files.
9051         * tty/tmac.tty-char: New file.
9052         * tty/Makefile: Install tmac.tty-char.
9053         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
9054         tmac.tty-char.
9056         * tty/tmac.tty: Fix definition of \(34.
9058         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
9059         bracket-drawing characters onto |. Add *o.
9061         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
9062         only if current_field.
9064         * troff/dictionary.c (dictionary::lookup): Free old_table after
9065         rehashing. 
9067 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
9069         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
9070         whose glyphs are identical to glyphs of some Roman character.
9072         * tty/devlatin1/R.proto (bu): Deleted.
9073         * tty/devascii/R.proto (bu): Deleted.
9074         * tty/tmac.tty: Add definition of \(bu.
9076         * eqn/main.c (do_file): Pass FILE as argument.
9077         (main): Automatically load eqnchar.  New options -F and -n.
9078         Pass do_file an opened FILE.
9079         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
9080         No need to include font.h.
9081         * groff.sh: Likewise.  Don't need to use - for standard input.
9082         Prefix files with -- if first file starts with -.
9084         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
9086         * troff/env.c (environment::possibly_break_line): Don't set line
9087         to 0 across call to output_line().  Don't call output_line() until
9088         after discarding nodes after break.
9090 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
9092         * request.h (macro::empty): Declare it.
9093         * input.c (macro::empty): New method.
9094         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
9095         macro is empty.
9097 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
9099         * troff/env.c (environment::start_field): Decrement space_total
9100         when a space is frozen.
9102 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
9104         * macros/tmac.an (R): Delete macro.
9106         * troff/input.c (get_copy, token::next): Support \# (like \" but
9107         newline is ignored).
9109         * troff/input.c (token::next): Fix error message in 'Y' case.
9111 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
9113         * eqn/delim.c (define_extensible_string): Recognize any prefix of
9114         a delimiter name.
9116 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
9118         * c++test.c: Include <osfcn.h>.
9120         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
9121         <errno.h> doesn't.
9123 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
9125         * tbl/table.c (table::divide_span): Don't count column separation
9126         if expand was specified.
9128         * tbl/main.c (process_format): Don't ignore width specs in
9129         continued format.  Give warning for changing equal widths or
9130         column separation in continued format.
9131         (process_data): Set column separation, minimum width, equal
9132         columns at end of table.
9134 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
9136         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
9137         node::add_discretionary_hyphen): Use soft_hyphen_char.
9138         (set_soft_hyphen_char): New function.
9139         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
9141         * Makefile (c++tested): Give more helpful message if test fails.
9143 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
9145         * troff/input.c (init_charset_table): Translate 0240 to
9146         an unbreakable space.
9148         * troff/token.h (token::hyphen_indicator): New function.
9149         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
9150         translation.
9151         * troff/input.c (translate): Allow translation to \%.
9152         * troff/node.c (node::add_char): Handle
9153         TRANSLATE_HYPHEN_INDICATOR.     
9154         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
9156         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
9157         for \(hy.
9159         * tty/devlatin1/R.proto: \(hy and - should print as 055.
9161 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
9163         * groff.c (run_commands): If the last command gets a SIGPIPE send
9164         a SIGPIPE to all children than haven't yet terminated.  When
9165         command terminates, set pid field to -1.
9167 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
9169         * groff.c (main): Pass an appropriate -filename option to gxditview.
9171 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
9173         * Makefile.bd (install): Remove existing program before copying.
9175         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
9176         programs which have Unix counterparts to be installed with
9177         user-specified prefix.
9179         * troff/input.c (exit_troff): Don't check if exit_started.
9180         (exit_request): Don't call exit_troff if exit_started.
9182         * Makefile.bd (install.mm): Rename to install.dwbmm.
9184 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
9186         * driver/input.c (do_file): Add missing break for '#' case.
9188 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
9190         * troff/input.c (input_stack::clear):  Clear past any boundaries and
9191         then add the boundaries back.
9193         * troff/input.c (exit_troff): Return immediately if already
9194         exiting.
9196         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
9197         end macro.
9198         (pg*end-page): If the text has ended and there are no more
9199         footnotes or keeps, exit.
9201         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
9203         * troff/input.c (init_charset_table): Make \(rq transparent by
9204         default.
9206         * macros/tmac.an: Define lq and rq strings.
9208         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
9210 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
9212         * troff/env.c (environment::final_break): New function.
9213         (environment::newline): Set prev_line_interrupted to 2 if
9214         exit_started.
9215         * troff/env.h: Declare environment::final_break.
9216         * troff/input.c (exit_troff): Call environment::final_break()
9217         instead of environment::do_break().
9219         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
9220         doesn't already exist.
9221         * macros/man.local: New file.
9222         * macros/tmac.an: Load man.local.
9223         * macros/man.ultrix: New file.
9225 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
9227         * troff/input.c (exit_groff): Rename to...
9228         (exit_troff): New function.
9230         * troff/div.c (exit_started, done_end_macro,
9231         seen_last_page_ejector): New global variables.
9232         (began_page_in_end_macro): New static variable.
9233         (exit_flag): Deleted.
9234         (top_level_diversion::top_level_diversion): Initialize
9235         last_page_count.
9236         (top_level_diversion): More elaborate test for whether
9237         cleanup_and_exit() should be called.
9238         Set began_page_in_end_macro if the end macro isn't yet finished.
9239         * troff/div.h (top_level_diversion::last_page_count): New data
9240         member.
9241         (top_level_diversion::set_last_page): New function.
9242         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
9243         * troff/env.c (do_break): Zero prev_line_interrupted.
9244         * troff/input.c (exit_flag): Delete declaration.
9245         (LAST_PAGE_EJECTOR): New magic cookie.
9246         (token::next): Handle LAST_PAGE_EJECTOR.
9247         (exit_groff): Set exit_started and done_end_macro instead of
9248         exit_flag.  Call top_level_diversion::set_last_page.  Push a
9249         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
9250         another ejection after setting seen_last_page_ejector.
9252 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
9254         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
9256         * macros/tmac.e (TH): Make sure there's room for the initial
9257         header.
9259         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
9260         Set FVS in points rather than units.
9262 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
9264         * troff/div.c (top_level_diversion::add_trap): Don't consider the
9265         position of empty slots.
9267 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
9269         * ps/devps/S: Fix height and depth of parenrightex.
9270         * ps/devps/symbol.diff: Regenerate.
9272 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
9274         * tmac.e (u): Do underlining as in -mgs.
9276 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
9278         * tty/tty.c (tty_printer::end_page): If overstriking is
9279         suppressed, still turn overstruck horizontal and vertical lines
9280         into +.
9282         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
9283         2.1.
9285         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
9287 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
9289         * Version 1.05 released.
9291 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
9293         * tty/tty.c: Instead of keeping an array of glyphs and then
9294         sorting it, keep a ordered linked list of glyphs for each line.
9296         * driver/driver.h: Include stddef.h.
9298         * tty/tty.c (compare_glyph):
9299         * refer/refer.c (rcompare):
9300         * troff/env.c (compare_ranges): Arguments of qsort comparison
9301         function should be const void *.
9303         * troff/number.c (parse_term):
9304         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
9305         switch statement.
9307         * refer/label.y (consider_authors): Don't access variables
9308         constructed under a condition outside that condition: put braces
9309         round for statement containing declaration; redeclare use of same
9310         variable later.
9312         * pic/pic.y (text_expr): Delete production that allows
9313         parenthesised text_expr.
9314         (expr): Allow a conditional_expr to appear in parentheses.
9315         (conditional_expr): Rename to any_expr.
9317         * mm: Install new version 1.01 from jh.
9319         * lib/font.c (font::get_width): Cache scaled widths.
9320         (font::font): Initialize widths_cache.
9321         (font::~font): Destroy widths_cache.
9322         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
9324 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
9326         * c++test.c, c++test.ref: New files.
9327         * Makefile: Check that the C++ compiler works.
9329         * ps/tmac.pspic (PSPIC): Do a break.
9331         * ps/tmac.ps: Move definition of PSPIC into...
9332         * ps/tmac.pspic: New file.
9333         (PSPIC): Draw box around picture, but make it invisible to grops.
9334         * ps/tmac.ps: Load tmac.pspic.
9335         * ps/Makefile: Install tmac.pspic.
9337 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
9339         * lib/font.c (scale_round): If n is negative,
9340         subtract .5 before truncating floating point result.
9342         * lib/fontfile.c: Include <errno.h>.
9344 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
9346         * driver/input.c (get_char): Inline. Don't update current_lineno.
9347         Change callers to up date current_lineno if necessary.
9348         Use get_char() instead of getc(current_file).
9350 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
9352         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
9354 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
9356         * tty/tty.c (tmac.tty): Define \(rg as (R).
9358 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
9360         * lib/lib.h: New define a_delete.
9361         * Use a_delete instead of delete when deleting an array of objects
9362         without destructors.
9364         * lib/lib.h: Rename adelete to ad_delete.
9365         * Change uses of adelete.
9367 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
9369         * eqn/eqn.y: Include lib.h.
9371         * troff/node.c (grow_font_table): Delete old_font_table.
9373         * mm: Install new version from jh.
9375 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
9377         * tbl/table.h (format_type): Make global instead of local to class
9378         entry_format.  Prefix enumerators with FORMAT_.
9379         * tbl/table.c, tbl/main.c: Corresponding changes.
9380         * refer/token.h (token_type): Make global.  Prefix enumerators
9381         with TOKEN_.
9382         * refer/token.[ch]: Corresponding changes.
9383         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
9385         * troff/div.c (node::set_vertical_size): Don't name argument.
9387 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
9389         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
9390         * lib/lib.h: Define adelete accordingly.
9391         * pic/object.c (graphic_object::graphic_object):
9392         * tbl/main.c (format::~format):
9393         * tbl/table.c (table::~table):
9394         * refer/ref.c (reference::~reference, reference::merge,
9395         reference::insert_field, reference::delete_field): Use adelete.
9397         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
9398         * refer/token.h:
9399         * tbl/table.h: Corresponding changes.
9401         * common.c (common_output::dashed_arc, common_output::dotted_arc):
9402         Ensure total_angle is positive.
9404 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
9406         * refer/ref.c (reference::merge, reference::insert_field,
9407         reference::delete_field): Avoid delete[0].
9409         * refer/token.c (init_special_chars): Move calls to cmupper
9410         outside calls to init_two_char_letter to work around bug in gcc
9411         2.0.
9413 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
9415         * lib/new.c (operator new): Use __builtin_new for g++.
9417         * pic/object.c (graphic_object::~graphic_object):  Don't use
9418         delete [] on 0.
9420         * pic/object.c (output::compute_scale): Initialize max_width and
9421         max_height.
9423 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
9425         * troff/input.c (write_request): Call fflush.
9427         * troff/node.h (class composite_node): Move declaration to node.c
9428         * troff/input.c (charinfo_to_node): Rename to ...
9429         (charinfo_to_node_list): Return node list rather than composite
9430         node.
9431         * troff/node.c (make_composite_node): New function.
9432         (make_node, add_char): Call make_composite_node instead of
9433         charinfo_to_node.
9434         (class composite_node): Add a tfont * member.  Delete font_size
9435         member.
9436         (composite_node::composite_node, composite_node::copy,
9437         composite_node::size): Corresponding changes.
9438         (composite_node::tprint): Provide constant spacing, emboldening
9439         and track kerning as specified in tfont.
9440         (composite_node::width): Change width calculation accordingly.
9441         * troff/env.h (environment::composite): New member.
9442         (environment::is_composite, environment::set_composite): New
9443         functions.
9444         * troff/env.c (environment::environment): Initialize composite.
9445         * troff/input.c (charinfo_to_node): Call
9446         environment::set_composite.
9447         * troff/node.c (make_composite_node, make_glyph_node): Use the
9448         plain version of the tfont if the environment is composite.
9450         * troff/node.c (font_info::get_space_width): Additional argument
9451         giving space_size.  Handle constant space correctly. Scale by
9452         space_size unless constant spaced.
9453         (env_sentence_space_width): New function.
9454         * troff/node.h: Declare it.
9455         * troff/env.h (environment::get_space_size,
9456         environment::get_sentence_space_size,
9457         environment::get_narrow_space_width,
9458         environment::get_half_narrow_space_width): Make inline.
9459         (environment::get_space_width): Make inline.  Just call
9460         env_space_width.
9461         * troff/env.c: Delete definitions for funtions made inline.
9462         (environment::space_newline, environment::space): Use
9463         env_sentence_space_width(). Don't scale by space_size.
9464         * troff/node.h: Move declarations of env*space_width() functions
9465         into env.h.
9467 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
9469         * macros/tmac.s (PS): Don't try to set negative indent.
9471 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
9473         * pic/pic.y: Fix min function.
9475 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
9477         * man/mdate.sh: Clear LANGUAGE.
9479 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
9481         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
9482         * pic/lex.c: New COMMAND keyword.
9483         * pic/pic.y (print_args, print_arg): New rules.
9484         (placeless_element): Use print_args for PRINT.
9485         New COMMAND element.
9487 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
9489         * troff/input.c (terminal): Handle missing argument correctly.
9491         * pic/pic.y (text_expr): New rule.
9493         * pic/pic.y: Implement := operator.
9495 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
9497         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
9498         mdoc.
9500 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
9502         * ps/devps/dingbatsrmap: Include this in the distribution.
9504         * macros/tmac.doc: Replace with new version from 2nd Networking
9505         Release. Fix loading of doc-* files.
9506         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
9507         * macros/tmac.doc.old: New file.  Apply fixes that had been
9508         applied to old tmac.doc.
9509         * macros/tmac.andoc: Check that we're running under groff.
9510         * macros/Makefile: Rework.
9512 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
9514         * tbl/table.h (format_type): 
9515         * refer/token.h (token_type): If NESTED_TYPES is defined, use
9516         typedef to make these types visible at file scope.
9517         * Makefile: Add NESTED_TYPES configuration option.
9519         * troff/div.c (mark): At the top level use the value of
9520         nl_reg_contents rather than the current vertical position.
9522 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
9524         * tty/tty.c: Implement \D for horizontal or vertical lines.
9525         (tty_printer::set_char): Use vec_used+2 as serial number.
9526         Don't allow size of vector to exceed USHRT_MAX-2.
9527         Split off part into...
9528         (tty_printer::add_char): New function.
9529         (tty_printer::draw): New function.
9530         (compare_glyph): Handle equal serial numbers.
9531         (tty_printer::end_page): Handle overstruck characters from \D.
9532         (main, usage): Implement -d option.
9534 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
9536         * tbl/main.c (process_format):
9537         * eqn/text.c (split_text):
9538         * troff/input.c (token::next): Use inner block for declarations
9539         with initializers in switch statement.
9541 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
9543         * pic/common.c (common_output::dash_line): Cope with zero-length
9544         lines.
9546 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
9548         * Version 1.04 released.
9550 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
9552         * macros/tmac.an (TH): Define a macro an-init to define variables
9553         based on command line arguments.
9554         (an-header): Call it.
9556 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
9558         * Makefile (install.mm): Rename to install.dwbmm.
9560         * Makefile: Integrate mm.
9561         * mm: New directory.
9563 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
9565         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
9566         <sys/types.h>.
9568         * pic/troff.c (troff_output::simple_spline,
9569         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
9570         shadowing parameter.
9572         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
9574         * lib/ptable.h: Add explicit casts when converting from unsigned
9575         long to unsigned.
9577         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
9578         * dvi/devdvi/Makefile: Install SA, SB.
9580         * refer/indxbib.c: Add declaration of mktemp.
9582         * refer/lookbib.c: Add declaration of isatty.
9584 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
9586         * pic/lex.c (interpolate_macro_with_args):  While collecting
9587         arguments, keep track of whether we're in a string.
9589 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
9591         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
9592         down with \v, so as to avoid problems with top of page trap
9593         setting no space mode.
9595 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
9597         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
9599 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
9601         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
9602         Improve error message.
9604 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
9606         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
9607         printf("%03o");
9609 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
9611         * groff.c (possible_command::execp): Always use _exit() after a
9612         failed exec.
9614         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
9615         NO_SYS_WAIT_H   configuration options.
9616         * groff.c: Use these options.  Use POSIX-style macros to extract
9617         fields from the status returned by wait().
9619 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
9621         * tbl/table.c (table::compute_separation_factor): Allow the
9622         separation factor to drop to 0.
9624 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
9626         * refer/search.c: Include <errno.h>.
9628 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
9630         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
9632         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
9633         C++. 
9635         * pic/lex.c (input_stack::bol): Move definition out of class body.
9637         * pic/main.c: On MSDOS munge argv[0].
9639         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
9641         * lib/ptable.c (hash_string): Use unsigned long rather than
9642         unsigned.
9643         (next_ptable_size): Use unsigned rather than int.  Give an error
9644         message if we've hit the largest table size.
9645         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
9646         table size.
9648         * pic/object.h (object_spec): Make flags unsigned long.  Declare
9649         flags as const unisgned long rather than as enums.
9651         * pic/output.c: Deleted.
9653         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
9655         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
9656         Add additional argument.
9657         (line_entry::note_double_vrule_on_{left,right}): Set value of
9658         douvle_vrule_on_{right,left} flag according to argument.
9659         (simple_line_entry::simple_print,
9660         simple_line_entry::double_line_print): If adjacent to double vrule
9661         on a corner extend rather than shorten the rule by half the double
9662         vrule sep.
9664         * troff/number.c (parse_term): In checking for overflow, handle the
9665         case where the current horizontal position is negative.
9667 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
9669         * pic/object.c (draw_arrow): Check for object having zero length.
9671 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
9673         * eqn/main.c (do_file): Split off inline equation handling into...
9674         (inline_equation): New function.  Search for starting delimiter
9675         using...
9676         (delim_search): New function. Don't recognize a delimiter that
9677         occurs in the name of an escape sequence, number register, string
9678         etc.
9680 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
9682         * eqn/delim.c (delim_box::compute_metrics): Don't call
9683         define_extensible_string if left is 0.
9684         (delim_box::output):  Don't print the left delimiter if left is 0.
9685         (delim_box::debug_print): Check for left == 0 before calling printf.
9687 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
9689         * troff/Makefile (majorminor.c): Include only digits in
9690         minor_version.
9692 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
9694         * refer/dirnamemax.c: new file.
9695         * refer/genlimits.c: Deleted.
9696         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
9697         Don't check path length.
9698         * refer/Makefile: Add dir_name_max.o; delete genlimits.
9699         * Makefile: Add PATHCONF_MISSING option.
9701         * refer/indxbib.c (get_cwd): New function.
9702         (main): Use get_cwd().
9703         * lib/getcwd.c: New file.
9704         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
9705         GETCWD in SUBFLAGS.
9706         * lib/Makefile: Compile getcwd.o.
9708         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
9709         userdict.
9711         * refer/indxbib.c (main): Check success of mktemp.
9713         * lib/tmpfile.c: New file.
9714         * lib/Makefile: Add tmpfile.c.
9715         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
9716         * ps/ps.h: Delete declaration of mktemp().
9717         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
9718         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
9719         * driver/driver.h: No need now to include errno.h.
9721         * everywhere: Set errno to 0 before calling fopen().
9723         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
9724         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
9725         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
9727 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
9729         * troff/env.h (translate_space_to_dummy): Declare it.
9730         * troff/env.c (environment::space_newline, environment::space):
9731         If translate_space_to_dummy is set then make the width of spaces 0.
9732         * troff/input.c (translate): If the second character of a
9733         translation is a space, translate to unbreakable space.  If the
9734         first character is a space, set or clear translate_space_to_dummy
9735         according to whether the second character is \&.  Weird!
9737 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
9739         * groff.c (run_commands): Don't use non-zero exit code because a
9740         command gets SIGPIPE.
9742         * groff.c, groff.sh: Use -mXps with -TXps.
9744         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
9745         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
9746         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
9747         (ps_printer::special): New specials invis and endinvis.
9748         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
9749         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
9750         (ps_printer::end_page): Check that invis_count == 0.
9751         (ps_printer::invis_count): New member.
9752         (ps_printer::ps_printer): Initialize invis_count to 0.
9754         * troff/env.c (environment::hyphenate_line): Hyphenation
9755         indicator at beginning of word inhibits splitting after -, \(em
9756         etc.
9758         * pic/pic.y (element): Allow another element to follow } without
9759         any intervening separator.
9761 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
9763         * pic/lex.c (get_delimited): Allow tabs before delimiter.
9765 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
9767         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
9768         declaration of wait() in header files.
9769         * Makefile: Get rid of -DHAVE_UNION_WAIT.
9771         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
9773         * lib/lib.h: Declare return type of strerror as char *.
9775         * man/Makefile: Add g flag to sed substitutions.
9776         * Makefile (shgroff, bindist): Likewise.
9778 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
9780         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
9781         * ps/devps/prologue (PBEGIN): Define showpage after pushing
9782         userdict.
9784 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
9786         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
9787         userdict.
9789 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
9791         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
9792         group.
9794 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
9796         * troff/input.c (define_number_reg):  If currently undefined,
9797         don't define it if the argument is an invalid expression.
9799         * Makefile: Ignore return value of `if' commands without `else'
9800         parts.
9802         * Makefile: Split up CPPDEFINES into a series of separate
9803         configuration options.
9805         * troff/input.c (init_registers): Use time_t instead of long
9806         unless LONG_FOR_TIME_T is defined.  Use returned result rather
9807         than passing pointer.
9808         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
9810         * lib/Makefile (fontpath.h): Use gendef.
9812 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
9814         * troff/input.c (input_iterator::shift): Delete argument name.
9815         * troff/node.c (suppress_output_file::really_begin_page,
9816         suppress_output_file::really_transparent_char, node::ascii_print,
9817         node::tprint): Delete names of unused arguments.
9819 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
9821         * refer/label.y (string):  Pass $4 to command_error.
9823 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
9825         * Version 1.03 released.
9827 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
9829         * Makefile: Pass definition of SHELL in SUBFLAGS.
9831         * gendef: New file.
9832         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
9833         ps/Makefile: Use gendef to construct header files that are
9834         constructed from the Makefile.
9836         * macros/Makefile: make all should build stripped version of tmac.e.
9838         * refer/Makefile (clean): Remove y.output.
9840 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
9842         * ps/pfbtops.c (main): Add -v option which prints out a version
9843         number.
9844         * ps/Makefile (pfbtops): Link with libgroff.a.
9846 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
9848         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
9849         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
9851         * refer/lkbib.c (main): Always terminate reference with blank
9852         line.
9853         * refer/lookbib.c (main): Likewise.
9855         * refer/linear.c (file_buffer::load): Check that the file is not a
9856         binary file.
9858         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
9859         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
9860         Delete second inclusion of <sys/param.h>.
9862 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
9864         * troff/token.h (token::special): Deleted.
9866         * tbl/main.c (process_format): Rework so that opt->tab_char is
9867         recognized only when appropriate.
9869         * ps/Makefile (clean): Remove pfbtops.
9871 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
9873         * lib/font.c (text_file::next): Don't return if we have got a
9874         blank line.
9876 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
9878         * refer/refer.c (store_reference): Get hash code from old_table[i]
9879         when rehashing the table.
9881 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
9883         * eqn/box.c (box::top_level): Save size and prev size using \R and
9884         restore it afterwards. Set the size to the size at the beginning
9885         of the line.
9886         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
9887         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
9889         * refer/Makefile (limits.h): Use ./genlimits.
9891 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
9893         * refer/index.c: Delete declarations of stat() and fstat().
9895 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
9897         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
9899 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
9901         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
9903 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
9905         * troff/input.c (token::get_char): Handle \e.
9907         * refer/linear.c: Delete declarations of fstat() and stat().
9909 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
9911         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
9912         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
9914 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
9916         * troff/input.c (do_define_macro): Improve error handling for end
9917         of file while defining macro.
9919 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
9921         * eqn/box.h: Fix declaration of set_gsize.
9922         * eqn/box.c (set_gsize): Make argument const char *.
9923         (gsize): Declare as char *.
9924         * eqn/main.c (main): Don't convert gsize to int.
9925         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
9927         * Version 1.02 released.
9929 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
9931         * macros/tmac.andoc: New file.
9932         * macros/Makefile: Install tmac.andoc.
9934         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
9935         operator new and delete on OP_DELETE_BROKEN not being defined.
9936         * Makefile: Mention OP_DELETE_BROKEN.
9938 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
9940         * Makefile (bindist): Pass SUBFLAGS.
9942 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
9944         * Makefile, groff.c: Pass definitions to groff.c via device.h.
9946         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
9947         parameter.
9949         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
9951         * ps/ps.h, ps/psrm.c: Make comment_table and
9952         header_comment_table local to resource_manager::process_file.
9954         * groff.sh: With -TXps pass -printCommand option to gxditview.
9956         * groff.c (possible_command::print): Implement using
9957         append_arg_to_string.
9959         * xditview: Merge in new implementation with own ChangeLog.
9961 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
9963         * groff.c (main): Implement PRINT_OPTION.
9964         (append_arg_to_string): New command.
9965         (device_table): Set PRINT_OPTION flag for Xps.
9967 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
9969         * troff/groff.h: Rename to troff.h.
9971         * pic/lex.c (lookup_keyword, docmp): New functions.
9972         (get_token): Use new lookup_keyword.
9973         Don't include key.h.
9974         * pic/key.[ch], pic/pic.gperf: Deleted.
9975         * pic/Makefile: Remove gperf stuff.
9977         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
9978         into output.h.
9979         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
9981         * troff/Makefile, troff/node.c: Move definition of
9982         STORE_WIDTH into node.c.
9984         * etc/grog.pl, etc/grog.sh: Support -mdoc.
9986 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
9988         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
9989         dvi/devdvi/texb.map: Add lq and rq.
9990         dvi/devdvi: Regenerate fonts.
9991         * ps/devps/textmap: Add lq and rq.
9992         * ps/devps: Regenerate fonts.
9993         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
9994         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
9996         * pic/object.c (position_rectangle): When checking radius
9997         cope with possiblity that width or height is negative.
9998         (box_object::box_object): Have separate xrad and yrad with
9999         signs matching signs of dim components.
10000         (box_object::{north,south}_{east,west}): Use xrad and yrad.
10001         (box_object::print): With rounded boxes use absolute values
10002         for dim and rad arguments.
10004         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
10005         in fontpath.h.
10007         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
10009         * various files: Add explicit destructors to keep Saber CC +d
10010         happy.
10012 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
10014         * eqn/box.c (box::top_level): Restore fonts correctly after
10015         font changes in line containing inline equation.  Also
10016         restore previous font as well as current font.
10017         * eqn/pbox.h: Define necessary string and register names.
10019         * troff/input.c (token::next): Case 'R' calls do_register.
10020         (do_register): New function.
10022 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
10024         * groff.c, groff.sh: Support Xps device.  Allow each device
10025         to have a pseudo_name and a real_name.
10027         * groff.c (run_commands): Don't print `Broken pipe' messages.
10029         * ps/pfbtops.c: New file.
10030         * ps/Makefile: Add pfbtops.
10032         * troff/number.c (parse_term): Improved error message.
10034 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
10036         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
10038         * Makefile: Integrate refer.
10039         * refer: New directory.
10040         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
10041         man/lkbib.man: New files.
10042         * man/Makefile: Support refer man pages.
10044         * lib/lib.h: Declare is_prime.
10045         * lib/prime.c: New file.
10047         * troff/input.c (macro_source): New function.
10048         (init_input_requests): Bind "mso" to macro_source.
10050         * troff/env.c (environment::possibly_break_line): Maintain
10051         pointer to pointer to node to be split in ndp so as to avoid
10052         using address of freed node.
10054         * troff/env.c (environment::hyphenate_line): Maintain pointer to
10055         pointer to first node to be hyphenated in startp so as to
10056         avoid using address of freed node.
10058         * troff/env.c (class trie, class hyphen_trie): Make the
10059         elements of the trie be of type char not unsigned char.
10060         Declare arguments to be const char* instead of unsigned char *.
10061         
10062         * troff/env.c (hyphenate): Initialize hbuf[0].
10064         * troff/input.c (set_string): Declare p to be char * and cast
10065         *p to unsigned char when necessary.
10067         * troff/input.c (do_define_macro): Declare s to be const
10068         char*. Cast element to unisgned char when necessary, Declare
10069         d to be an int.  Handle EOF better.
10071         * troff/Makefile, troff/input.c: Different scheme for passing
10072         definitions of MACROPATH, HYPHENFILE and DEVICE.
10074 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
10076         * tty/devascii/R.proto: Delete entry for em.
10077         * tty/devlatin1/R.proto: Likewise.
10079 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
10081         * troff/input.c (translate): Stop when we get a space. Treat eof
10082         like newline.
10084         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
10086 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
10088         * tbl/main.c (process_format): A font name following a `f'
10089         modifier that starts with a digit can be only one character long.
10090         Also deal with EOF on the second character of the font name.
10092 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
10094         * troff/input.c (token::next): Turn \~ into an
10095         unbreakable_space_node.
10096         * troff/node.c (unbreakable_space_node): New class.
10097         * troff/node.h: Declare it.
10099 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
10101         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
10102         it's >= 0, before outputting it as a single byte.
10104 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
10106         * lib/font.c: Make font_char_metric::code an int.
10107         (font::get_code): Change return type to int.
10108         (font::load): Allow code to be arbitrary integer.
10109         * lib/font.h (font::get_code): Change return type to int.
10110         (font::number_to_index): Change argument type to int.
10111         * troff/input.c (token::next):  In case 'N', allow any value.
10112         Store value in token::val.
10113         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
10114         (token::get_char, token::add_to_node_list, token::process): Get
10115         number from val.
10116         (charinfo::set_number): Change argument to int.
10117         (charinfo::get_number):  Require that NUMBERED flag be set.
10118         (get_charinfo_by_number): Store numbered characters not between 0
10119         and 255 in a dictionary.
10120         * troff/charinfo.h (get_charinfo_by_number): Change argument type
10121         to int.
10122         (charinfo::number): Change type to int.
10123         (charinfo::set_number): Change type of set_number to int.
10124         * troff/node.c (troff_output_file::put_char_width,
10125         troff_output_file::put_char): Test whether character is numbered
10126         using charinfo::numbered().
10127         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
10128         values of num.
10129         * lib/nametoindex.c: New implementation to cope with arbitrary
10130         number characters.
10132         * troff/input.c (token::operator==): Test val for
10133         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
10134         TOKEN_SIZE.
10136         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
10137         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
10139 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
10141         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
10142         variable.
10144         * all Makefiles: rm targets of cp and >.
10146         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
10147         it.
10149         * eqn/lex.c (def_table): Add dollar.
10151 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
10153         * troff/input.c (do_width): Push back newline before closing delim
10154         like do_bracket.
10156 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
10158         * groff.c (possible_command::prepend_arg): New function.
10159         (main): Prepend device -m option.
10160         * groff.sh: Put device -m options before command-line options.
10162 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
10164         * macros/tmac.an (IP): Quote argument to TP.
10166         * ps/ps.c (main): New option -b, which sets...
10167         (broken_flags): New variable.
10168         (ps_printer::~ps_printer): Incorporate the setup section in the
10169         prolog if (broken_flags & NO_SETUP_SECTION).
10170         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
10171         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
10172         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
10173         ps_printer::print_needed_font_comment,
10174         ps_printer::print_supplied_font_comment,
10175         ps_printer::print_include_font_comments,
10176         ps_printer::lookup_doc_font, ps_printer::download_fonts,
10177         ps_printer::read_download_file, read_document_fonts, add_font,
10178         skip_line, parse_fonts_arg, document_font::document_font,
10179         document_font::~document_font, document_font::download,
10180         ps_output::include_file):  Deleted.
10181         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
10182         rather than %!PS-Adobe-2.0.  Make calls to
10183         resource_manager::need_font for each font that we used. Replace
10184         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
10185         print_supplied_font_comment, print_needed_font_comment by call to
10186         resource_manager::print_header_comments. Output %%Orientation
10187         comment. Output %%Requirements: numcopies comment if ncopies > 1.
10188         Don't output the prolog directly.  Instead call
10189         resource_manager::output_prolog.  Only define #copies when ncopies
10190         > 1.  Delete calls to print_include_font_comments  and
10191         download_fonts.  Add call to resource_manager::document_setup.
10192         (ps_printer::do_file): Call resource_manager::import_file instead
10193         of including it ourselves.
10194         (ps_printer::do_import): Likewise.  Also don't call
10195         merge_import_fonts. Push userdict on the dictionary stack before
10196         and pop it afterwards.
10197         Move declaration of ps_output into ps.h.
10198         * ps/psrm.c: New file implementing resource_manager class.
10199         * ps/ps.h: New file declaring ps_output and resource_manager
10200         classes.
10201         * ps/devps/zapfdr.ps:
10202         * ps/devps/symbolsl.ps:
10203         * ps/devps/prologue:  Use 3.0 conventions.
10204         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
10205         Add default definition of BROKEN_SPOOLER_FLAGS.
10206         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
10207         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
10209 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
10211         * etc/grog.pl: New file.
10212         * Makefile (GROG): New variable.
10213         Add GROG to SUBFLAGS.
10214         * etc/Makefile (GROG): New variable.
10215         (install.nobin): Install $(GROG) rather than grog.sh.
10217 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
10219         * eqn/special.c (special_box::compute_metrics): Make the input and
10220         output strings the same.  Get the new height and depth from the
10221         predefined height and depth registers.  Also make subscript kern
10222         and skew available.
10223         (special_box::compute_subscript_kern, special_box::compute_skew):
10224         New functions.
10226         * eqn/box.c (pointer_box::compute_skew,
10227         simple_box::compute_metrics, box::top_level)
10228         * eqn/text.c (prime_box::compute_metrics,
10229         prime_box::comput_subscript_kern)
10230         * eqn/limit.c (limit_box::compute_metrics):
10231         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
10232         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
10233         negative numbers in `nr' requests with a leading 0.
10235 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
10237         * eqn/special.c: New file.
10238         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
10239         Add new rule for simple.
10240         * eqn/lex.c (token_table): Add SPECIAL.
10241         * eqn/box.h: Declare make_special_box.
10242         * eqn/Makefile: Add special.[co].
10244 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
10246         * ps/devps/prologue: Possibly set packing to true while defining.
10247         Create grops dictionary here.  Initialize local variables before
10248         defining procedures.
10249         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
10250         the dictionary stack. Set strokeadjust and overprint to false if
10251         the relevant operators are defined.
10252         (PEND): New procedure.
10253         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
10254         prologue.  Do everything else in the setup section.
10255         (ps_printer::do_import): Just call PBEGIN and PEND around the
10256         picture. Also push userdict before, and pop it afterwards.
10258 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
10260         * troff/node.c (bracket_node::tprint): Brackets were being printed
10261         1m too low.
10263         * macros/tmac.an (SH, SS): Set fill mode.
10265 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
10267         * troff/div.c (top_level_diversion::begin_page): Set
10268         high_water_mark to 0.
10270 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
10272         * man/mdate.sh: New file.
10273         * man/mdate.c: Deleted.
10274         * man/Makefile: Use mdate.sh instead of mdate.
10275         (mdate): Deleted.
10277         * eqn/lex.c (do_gsize): Supply missing argument to error message.
10279 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
10281         * man/mdate.c: New file.
10282         * man/*.man: Replace modification date by @MDATE@.
10283         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
10284         (mdate): New target.
10286         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
10287         Remove illegal input characters.
10289 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
10291         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
10293 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
10295         * troff/div.c (begin_page): Change behaviour when
10296         !first_page_begun and !break_flag.
10298         * troff/input.c (do_name_test): Return 0 if argument is empty.
10300         * troff/input.c (read_long_escape_name): Require closing ] to be
10301         at same input level as opening [.
10303         * troff/input.c (read_increment_and_escape_name): New function.
10304         (get_copy, process_input_stack): Use this for \n.
10306 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
10308         * troff/div.c (top_level_diversion::begin_page): Ignore the
10309         current value of page_number if !first_page_begun.
10311         * groff.c (main): Fix declaration of buf.
10313         * troff/input.c (do_name_test): New function.
10314         (token::next): Implement \A.
10315         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
10316         (token::description, token::add_to_node_list, token::process):
10317         Handle TOKEN_ESCAPE.
10318         * troff/token.h: New token TOKEN_ESCAPE.
10320 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
10322         * pic/main.c (do_picture): Allow space before and after filename
10323         following `<'.  Check that the filename is not empty.
10325 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
10327         * Version 1.01 released. 
10329         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
10331         * dvi/tmac.dvi: ftr HR to H.
10333         * macros/tmac.e: Round up computation of $r.
10335         * xditview/tmac.X:  Don't give up completely in compatibility mode.
10336         Use \n(.s instead of \n[.s].
10338         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
10339         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
10340         Add u to factors inside \s[...]. Rename frac to dvi-frac.
10341         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
10342         short names in the char definitions.
10344         * ps/tmac.ps: Don't give up completely in compatibility mode.
10345         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
10346         quote in front of \n(.s. Add u to factors inside \s[...].
10348 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
10350         * tty/tmac.tty: Call the nroff request.
10352         * macros/tmac.e ((x, )x):  Better definitions that work properly
10353         in a diversion.
10354         (@0, @1): Helper macros for (x.
10356         * macros/tmac.e ($s, hl): Use \l rather than \D.
10358         * tty/tmac.tty: Make it work better in compatibility mode.
10359         (pchar): Rename to tty-char.
10361         * macros/tmac.e (@E): New macro.
10362         (r, i, b, rb, bi): Use @E.
10364         * macros/tmac.e (@F): Don't use (;...) syntax.
10366         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
10367         it was modified for groff.
10369         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
10371         * macros/tmac.e (<., .>): Removed.
10372         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
10374         * macros/tmac.e: Remove check that groff is being used.
10376         * macros/tmac.e (@C): Change families only if using groff; turn
10377         compatibility mode off while changing familes. Save compatibility
10378         mode before changing families and restore it afterwards.
10380         * macros/tmac.e (@h): Remove test for offset + line length.
10382         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
10383         (lo, th, ac): Define to call @S instead of using als.
10385         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
10386         the ratio of the vertical spacing to the point size in units
10387         expressed as a percentage.  Use these instead of $10r and $10R,
10388         Delete $10r and $10R.
10390         * lib/font.c (font::load): In default computation of space_width,
10391         divide by sizescale.  Use scale_round.
10393         * macros/tmac.an (TP): Don't call `nf'.
10394         (an-do-tag): Don't call `fi'.
10396 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
10398         * troff/input.c (process_input_stack): Handle the case where
10399         spaces at the beginning of an input line are followed by a
10400         newline.
10402 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
10404         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
10405         * groff.sh: Use pic -x with the dvi device.
10407         * dvi/devdvi/FontMakefile (H): Don't use -s.
10409         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
10410         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
10411         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
10412         in FONTS.
10414 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
10416         * ps/psfig.diff: New file.
10417         * ps/tmac.psfig: New file.
10419 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
10421         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
10422         (]-): Don't call ref*do-tl.
10424         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
10426         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
10427         (fn@do-FS): Rename to fn*do-FS.
10429         * troff/input.c (transparent_translate): New function.
10430         (process_input_stack): Apply transparent_translate before calling
10431         diversion::transparent_output(unsigned char).
10433 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
10435         * troff/input.c (do_define_macro): Define the macro before calling
10436         skip_line.
10438         * xditview/Makefile: Add DEVICES variable.  Change install target
10439         to use this.
10441 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
10443         * groff.c (run_commands): Handle the possibility that there are
10444         child processes other than those forked by us.
10446 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
10448         * lib/string.c (string::append): New function.
10449         * lib/stringclass.h: Declare it.
10451 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
10453         * eqn/main.c (main): New option -N which sets
10454         no_newline_in_delim_flag. 
10455         (do_file): If no_newline_in_delim_flag is set don't allow newlines
10456         in delimiters.
10457         * groff.c (main): Pass -N on to eqn.
10458         (help, synopsis): Mention -N.
10459         * groff.sh: Implement -N.
10461 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
10463         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
10464         (]-): Call ref*do-tl if ref*need-tl is non-zero.
10465         (XP): Allow as initializer.
10467 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
10469         * troff/env.c (environment::wrap_up_field): If field_spaces are
10470         non-zero and we have a current_tab, subtract padding from
10471         tab_distance.  If this makes tab_distance <= 0, use the next tab
10472         stop instead.  If there isn't any next tab or it's a left tab,
10473         wrap up the current tab.
10474         (environment::start_field): Initialize tab_precedes_field.
10475         (environment::wrap_up_tab): If there's a current field, update
10476         pre_field_width, field_distance and tab_precedes_field.
10477         * troff/env.h (environment::tab_precedes_field): New member.
10479 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
10481         * ps/ps.c (ps_printer::do_file): New function.
10482         (ps_printer::special): Bind to `file' special.
10483         (ps_printer::do_exec): Set ndefined_styles to 0.
10485 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
10487         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
10488         Avoid stripping first character from the start of unrecognized
10489         escapes.  Use lex_error instead of error to report errors.
10490         * eqn/lex.c (get_token): Rework handling of escapes.
10491         (lex_error): Move declaration into...
10492         * eqn/eqn.h.
10494         * xditview/xditview.c (main): Make -page option work.
10496         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
10498 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
10500         * macros/tmac.s (B2): Correct size of box.
10502 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
10504         * macros/tmac.s (B2): Postpone drawing the box until in the
10505         top-level diversion.
10507         * tty/tmac.tty: Add font translations for C, CR, CW.
10509         * groff.c (synopsis, help): Document -i.
10510         * groff.sh: Implement -i.
10512         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
10513         Simplify the construction of SN.
10515         * troff/number.c (parse_term): Give `|' a higher precedence.
10516         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
10517         accordingly.
10519         * macros/tmac.s (B2): Use par@finish instead of par@reset.
10521 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
10523         * lib/string.c (string::move): New function.
10524         * lib/stringclass.h: Declare it.
10526 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
10528         * troff/env.c (distribute_space): Add optional argument
10529         `force_forward'.
10530         (environment::wrap_up_field): Call distribute_space with
10531         `force_forward' argument of 1.
10533 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
10535         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
10536         Inline it.  Move reallocation into...
10537         (string::grow1): New function.
10538         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
10539         dependencies to include library header files.
10540         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
10542 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
10544         * macros/tmac.s (@NH): Use the same number registers than -ms does
10545         for the heading level counters.  Use the same string that -ms does
10546         for the number for this heading.
10548 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
10550         * lib/new.c (operator new): Cast result of malloc to char *.
10552         * troff/input.c (spring_trap, lookup_request): Add assert that nm
10553         is not null.
10555 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
10557         * groff.c (main): Support -i.
10559 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
10561         * pic/pic.h: Include <osfcn.h>.
10563         * ps/ps.c: Add declaration of mktemp.
10565         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
10566         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
10567         argument as union wait *.
10568         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
10569         argument to union wait *.
10571 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
10573         * tty/tmac.tty: Add definition of \(co.
10575         * pic/object.c (make_arc): Only increase radius when radius
10576         strictly less than d.
10577         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
10578         more than once.
10580         * troff/env.c (environment::environment(symbol),
10581         environment::environment(const environment *)):  Initialize
10582         input_trap_count.
10584 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
10586         * tbl/main.c (main): Add exit(0).
10588         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
10590         * pic/main.c (main):
10591         * eqn/main.c (main):
10592         * tbl/main.c (main):
10593         * etc/soelim.c (main):
10594         * driver/printer.c (printer::~printer):
10595         * troff/node.c (real_output_file::~real_output_file,
10596         real_output_file::flush):  Check for errors on stdout.
10598         * most files: Add 1991 to copyright notice.
10600         * macros/tmac.s: Don't test \n(.x and \n(.y.
10602         * troff/input.c (token::next): Rename `escape_char' label to
10603         `handle_escape_char' and `normal_char' label to
10604         `handle_normal_char'.
10606 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
10608         * groff.c (main, synopsis, help): Support -a option.
10609         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
10610         to trflags while parsing options.
10612 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
10614         * troff/number.c (parse_term): With `m', `M' and `n' scale
10615         indicators, convert scale factor to hunits before scaling.
10617 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
10619         * lib/font.c (scale_round): Better test for overflow when n is
10620         negative.
10622 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
10624         * tbl/main.c (process_format): Add second argument of type
10625         options*. Change callers.  Allow opt->tab_char as well as '\t'
10626         between format items.
10628 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
10630         * macros/tmac.an (PD): With no arguments, make sure register PD is
10631         at least \n[.V].
10632         (TH): Call PD with no argument, instead of setting register PD
10633         directly.
10635 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
10637         * Version 1.00 released.
10639 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
10641         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
10643         * dvi/devdvi/DESC: Mount CW instead of CR.
10645         * dvi/tmac.dvi: Add definition of \(tm.
10647         * dvi/devdvi/texsy.map: Add lh, and rh.
10648         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
10649         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
10651         * dvi/devdvi/FontMakefile: Generate H from cmss10.
10652         * dvi/devdvi/Makefile: Install H.
10653         * dvi/devdvi/H: New file.
10655 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
10657         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
10658         be 0.
10660 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
10662         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
10664         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
10666         * macros/tmac.s (@EN): Handle the case where the equation is empty
10667         but the label is not.
10669 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
10671         * troff/groff.h: New warning category WARN_SPACE.
10672         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
10673         WARN_SPACE to warning_table.
10674         (interpolate_macro): Give a warning of type WARN_SPACE if the name
10675         is longer than two characters and is not defined, but the first
10676         two characters do make a defined name.
10678         * PROBLEMS: New file.
10680         * CHANGES: New file.
10681         * README-0.6, README-1.00: Deleted.
10683         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
10684         * xditview/devX75/Makefile: Make devX75-12.
10685         * xditview/devX100/Makefile: Make devX100-12.
10687         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
10688         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
10690 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
10692         * README-0.7: Rename to README-1.00.
10694         * macros/tmac.pic: New file.
10695         * macros/Makefile (install.nobin): Install tmac.pic.
10697 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
10699         * troff/env.c (hyphen_word): Correct the test for whether the
10700         token is a hyphen.  Reset npos to 0.
10702         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
10704 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
10706         * macros/tmac.s (ds*common-end): Call par*reset.
10707         (PE): Likewise.
10708         (par@reset-indent): Deleted.
10710         * macros/tmac.s (@IP): Divert the label.
10712 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
10714         * xditview/draw.c (setGC): Use a line width of .1m rather than
10715         .04m by default; round rather than truncate value.
10717         * tbl/table.c (class empty_entry): New class.
10718         (empty_entry::empty_entry, empty_entry::line_type): New functions.
10719         (table::add_entry): Represent empty entries by objects of type
10720         empty_entry.
10721         (table_entry::line_type): Return -1.
10722         (table::determine_row_type): Ignore entries with line_type 0.
10723         Treat type -1 as non-lines.
10725 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
10727         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
10728         macros/tmac.s: Rename \(-d to \(Sd.
10730 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
10732         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
10733         * xditview/libXdvi/DviChar.c: Likewise.
10734         * dvi/devdvi/texsy.map: Add `<<', `>>'.
10736 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
10738         * troff/div.c (top_level_diversion::begin_page): Call
10739         init_output() if the_output is 0.
10741 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
10743         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
10744         ESCAPE_c.
10745         (get_copy): Turn \E into ESCAPE_E.
10746         (token::process, asciify): Handle ESCAPE_E.
10748         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
10749         (RD): New macro.
10750         (DS): Implement `.DS R'.
10752 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
10754         * macros/tmac.s (FS): New macro.
10756         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
10758         * macros/tmac.s (cov*tl-init): Remove after first execution
10759         instead of aliasing to @nop.  Call top of page macro explicitly
10760         instead of setting trap; call @init first.  Set pg@top as top of
10761         page macro.
10762         (cov*auto-init): Deleted.  Set cov*tl-init instead of
10763         cov*auto-init as top of page trap. 
10764         (TL, LP): Do a break instead of calling cov*tl-init.
10765         (cov*print): With RP format but no TL, alias FS and FE to @FS and
10766         @FE; in this case also give a warning and always start another
10767         page. No need to set pg@top here.
10768         (cov*tl-init): Rename to cov*first-page-init.
10770         * macros/tmac.s (RP): Do `.pn 0'.
10771         (cov*tl-init): With RP format don't do `.pn 0'.
10773         * macros/tmac.s (pg@cs-top): Set no space mode.
10775         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
10776         (cov*ab-init): Alias TL, AU and AI to these.
10778 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
10780         * macros/tmac.s (@EQ): Move the space before the equation into @EN
10781         (@EN): Do nothing unless \n[dl] is > 0.
10783 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
10785         * pic/object.c (ellipse_object::radius): New function.
10787         * VERSION: Change version to 0.7.
10789         * tbl/table.c (block_entry::do_divert): Declare return type as
10790         void.
10791         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
10793 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
10795         * troff/column.c: New file.
10796         * troff/Makefile: Corresponding changes.
10798         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
10799         Friend of vunits.
10801         * troff/div.c (top_level_diversion::space): If the space causes
10802         the first-page transition and springs a trap, truncate the space
10803         to 0.
10805 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
10807         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
10808         the document.
10810         * pic/troff.c (troff_output::line_thickness,
10811         troff_output::set_fill): Do a horizontal motion to compensate for
10812         the width of the \D escape sequence.
10814 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
10816         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
10817         (not X75).
10819         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
10820         to printf.
10822         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
10823         Supply empty definition.
10824         (text_entry::simple_print, simple_text_entry::simple_print):
10825         Delete declarations.
10826         (table::add_entry): Represent empty entries by objects of type
10827         `simple_entry'.
10829 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
10831         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
10833         * tbl/table.c (left_text_entry::add_tab): New function.
10835         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
10836         initialize like LP.
10838 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
10840         * troff/env.c (environment::start_field): Give an error message if
10841         there is no next tab.
10843 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
10845         * troff/env.c (hyphenate): Skip initial elements with zero
10846         hyphenation code.
10848         * macros/tmac.s (par@init): Keep VS in points rather than units.
10850 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
10852         * pic/main.c (main): Implement `-c' option.
10853         * pic/output.h: Declare make_tpic_output().
10854         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
10855         protected.
10856         (tpic_output): New class.
10857         (tpic_output::tpic_output, tpic_output::set_pen_size,
10858         tpic_output::command, make_tpic_output): New functions.
10860 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
10862         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
10863         if they're not already defined.
10864         * tbl/table.c (init_output): Don't test \n(.g.
10866         * troff/input.c (do_if_request): Delete `g' condition. Recognize
10867         `d', `r' and `c' conditions even in compatibility mode.
10869 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
10871         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
10872         box.
10874 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
10876         * troff/env.h (environment::prev_line_interrupted): New member.
10877         (environment::get_prev_line_interrupted): New function.
10878         * troff/env.c (environment::newline): Set prev_line_interrupted.
10879         (environment::environment(const environment *),
10880         environment::environment(symbol)): Initialize
10881         prev_line_interrupted.
10882         * troff/input.c (process_input_stack): Don't give special
10883         treatment to space and newline at the beginning of the line if the
10884         previous line was interrupted.
10886 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
10888         * eqn/eqn.y: Disallow PRIME by itself.
10889         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
10890         PRIME.
10891         (def_table): Remove definition of '.  Define prime to be `.
10893         * eqn/eqn.y: Split off part of rule `script' into a new rule
10894         `nonsup'.
10896 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
10898         * macros/tmac.s ({, }): New string aliases.
10900 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
10902         * README-0.7: New file.
10904 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
10906         * macros/tmac.s: New file.
10907         * man/groff_ms.man: New file.
10908         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
10909         * Makefile.bd: Similarily.
10910         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
10911         definition of TMAC_S.
10912         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
10913         * macros/TODO: New file.
10915 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
10917         * troff/env.c (right_justify): New function.
10918         (init_env_requests): Bind this to request "rj".
10919         (center_lines): Set right_justify_lines to 0. If we get a bad
10920         integer, center 1 line.
10921         (environment::environment(symbol), environment::environment(const
10922         environment *)): Initialize right_justify_lines.
10923         (environment::get_right_justify_lines): New function.
10924         (init_env_requests): Bind this to number_register ".rj".
10926         * troff/env.c (environment::choose_breakpoint): Implement
10927         hyphenation_margin and hyphenation_space.
10928         (environment::get_hyphenation_space,
10929         environment::get_hyphenation_margin): New functions.
10930         (init_env_requests): Bind these to .hys and .hym.
10931         (hyphenation_space_request, hyphenation_margin_request): New
10932         functions
10933         (init_env_requests): Bind these to hys and hym.
10934         (environment::environment(symbol), environment::environment(const
10935         environment *)): Initialize hyphenation_margin and
10936         hyphenation_space.
10937         * troff/env.h: Corresponding changes to class environment.
10939 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
10941         * troff/div.c (blank_line): Always do a break.
10943         * eqn/box.c (do_text): Turn off escapes while appending text to
10944         string.
10946 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
10948         * troff/input.c (while_break_request, while_continue_request): New
10949         functions.
10950         (init_input_requests): Bind these to "break" and "continue".
10951         (while_depth, while_break_flag): New variables.
10952         (while_request): Update while_depth.  Break out of loop if
10953         while_break_flag is set.
10955 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
10957         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
10958         rather than 0.
10960 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
10962         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
10964         * stringify: New file.
10965         * Makefile (groff.o): Use stringify.
10967         * xditview/tmac.X: Remove definition of \(rn.
10968         * xditview/libXdvi/DviChar.c: Remove radicalex from
10969         Adobe_symbol_map.
10971 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
10973         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
10974         (alphabetic_block_entry::alphabetic_block_entry,
10975         alphabetic_block_entry::divert, alphabetic_block_entry::print):
10976         New functions.
10977         (block_entry::divert): Split off body into ...
10978         (block_entry::do_divert): If the block is alphabetic, subtract 2n
10979         from the line length; also update the span width to dl+2n, and the
10980         alphabetic span width to dl.
10982         * driver/input.c (do_file):  While reading argument to D command,
10983         when expanding buffer, multiply szp by sizeof(int) rather than 2
10984         in the argument to memcpy.
10986         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
10987         width of alphabetic columns.
10989 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
10991         * troff/node.c (lookup_family): Supply second argument to lookup.
10993         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
10994         search, return immediately if v is 0.
10996         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
10997         (troff_output::start_picture): Set this reg.
10998         (troff_output::end_picture): Remove this reg
10999         * eqn/box.c (box::extra_space): Don't produce `\x's if
11000         EQN_NO_EXTRA_SPACE_REG is defined.
11002         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
11003         * eqn/text.c (split_text): Map ' to \(fm when it's the first
11004         character.
11006 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
11008         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
11009         requests.
11011         * troff/div.c (top_level_diversion::top_level_diversion):
11012         Initialize page_number to 0.
11014 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
11016         * groff/troff (environment::environment(const environment *)):
11017         Initialize name to e->name, rather than "anonymous".
11019 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
11021         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
11022         requested_page.  Split middle part into ...
11023         (FindPage): New function.
11024         (SetValues): If we don't yet know the last page, and the requested
11025         page is greater than the current page, call FindPage.
11026         Update the font_map_string before doing this.
11028         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
11029         Translate \(lh and \(rh into left and right double arrows.
11031         * troff/node.c (class hyphen_inhibitor_node): New class.
11032         (hyphen_inhibitor_node::hyphen_inhibitor_node,
11033         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
11034         hyphen_inhibitor_node::type,
11035         hyphen_inhibitor_node::get_hyphenation_type): New functions.
11036         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
11037         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
11038         word.
11040 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
11042         * troff/node.h (dummy_node::get_hyphenation_type,
11043         transparent_dummy_node::get_hyphenation_type):  Declare them.
11044         * troff/node.c: (dummy_node::get_hyphenation_type,
11045         transparent_dummy_node::get_hyphenation_type): New functions.
11047 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
11049         * xditview/libXdvi/draw.c: If M_PI not defined after including
11050         math.h, then define it.
11052         * xditview/Makefile: Add definition of AR. Pass it to the submake
11053         in libXdvi.
11054         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
11056 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
11058         * troff/dictionary.h (object_dictionary::alias): Declare return
11059         value as int.
11060         * troff/dictionary.c (object_dictionary::alias): Return non-zero
11061         if the old name was defined.
11062         * troff/input.c (alias_macro): Give a warning if the old name was
11063         not defined.
11064         * troff/reg.c (alias_reg): Likewise.
11066 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
11068         * troff/input.c (token::next): Delete implementation of \R.
11070         * macros/Makefile: Strip comments from tmac.e while installing it.
11072         * troff/input.c: New variable `nroff_mode'.
11073         (troff_request, nroff_request): New functions.
11074         (init_input_requests): Bind `troff' and `nroff' to troff_request
11075         and nroff_request.
11076         (do_if_request): Compute results of t and n conditions from
11077         nroff_mode.
11079         * text/text.c (split_text): Fix typo in >=.
11081         * eqn/lex.c: Add definition of `==' to def_table.
11083 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
11085         * pic/tex.c (tex_output::start_picture): Change the definitions of
11086         \graph and \graphtemp so that they work properly with Plain TeX.
11088         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
11089         argument to `ar' is not less than the first.
11091         * pic/pic.y: Allow a comma between elements of the variable list
11092         in the argument to `reset'.
11094         * pic/object.c (arc_object::arc_object): Fix computation of
11095         radius.
11097         * eqn/main.c (main): Add exit(0).
11099 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
11101         * troff/div.c (begin_page): Test no_space_mode after doing the
11102         break, but still push the page ejector cookie before doing the
11103         break.  Also set the next page number after doing the break.
11104         
11105         * xditview/xditview.c (NewFile): Don't set the title and icon name
11106         if this is the first file and its name is `-'.
11107         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
11108         the X75 and X100 devices.
11109         (main): If a device has the XT_OPTION flag set and there's exactly
11110         one file argument, pass the driver -xrm and -title options to set
11111         the icon name and window title to the name of the file.
11113         * troff/env.c (environment_switch): If there was an argument but
11114         it wasn't a valid number or name, then pop an environment but
11115         don't give an error message on underflow.
11117         * troff/number.c (start_number): Correct spelling in error message.
11119         * troff/input.c (token::delimiter): Don't print an error message
11120         if err is false.
11122         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
11123         ParseDrawFunction if dw->display_enable is true.
11125 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
11127         * pic/pic.y: Parse text positioning like normal attributes, so as
11128         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
11129         positioning attribute.
11131 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
11133         * tbl/main.c (process_data): When in state START while reading a
11134         text block, don't change to state MIDDLE if c is a newline.
11136 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
11138         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
11139         so as to avoid shadowing parameter.
11141 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
11143         * tbl/table.c (trim_space): Deleted.
11144         (table::add_entry): Don't call trim_space.
11146 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
11148         * VERSION: Change version to 0.6.
11150         * troff/number.c (parse_expr): Make == work.
11152 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
11154         * man/grog.man: New file.
11155         * man/Makefile: Add grog.n to MAN1PAGES.
11156         * etc/grog.sh: New file.
11157         * etc/Makefile: Install grog.sh as grog.
11159 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
11161         * troff/input.c (token::next): Implement \E.
11163 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
11165         * xditview/tmac.X: Change font translations to match tmac.ps.
11167         * troff/input.c (non_empty_name_warning): Don't give a warning if
11168         `\{' terminates the name.
11170 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
11172         * ps/devps/symbol.diff: New file.
11173         * ps/devps/FontMakefile: Mention symbol.diff.
11175 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
11177         * troff/node.c (font_position): Use get_long_name to read the
11178         external_name.
11180         * troff/env.c (environment_switch): If we get a number that's < 0
11181         or >= NENVIRONMENTS, treat it like a name.
11182         Change NENVIRONMENTS to 10.
11184         * troff/groff.h: Remove definition of FONTS_MAX.
11185         * troff/node.h (class font_family): Make map a pointer instead of
11186         an array. Add a map_size member. Make it a class. Make nm const
11187         and public. Make invalidate_fontno a friend.
11188         * troff/node.c: Define font_table_size. Make font_info a pointer
11189         rather than an array.
11190         (class troff_output_file): Allocate font_position dynamically. Add
11191         nfont_positions member.
11192         (troff_output_file::set_font): Grow font_position if necessary.
11193         (troff_output_file::~troff_output_file): Delete font_position.
11194         (troff_output_file::troff_output_file): Allocate font_position.
11195         (grow_font_table): New function.
11196         (troff_output_file::really_begin_page,
11197         troff_output_file:really_copy_page): Use nfont_positions rather
11198         than FONTS_MAX.
11199         (mount_font_no_translate, mount_style): Call grow_font_table if
11200         necessary.
11201         (font_family::font_family): Allocate map.
11202         (font_family::make_definite): Grow map if necessary. Use
11203         font_table_size instead of FONTS_MAX.
11204         (font_family::~font_family): New function.
11205         (invalidate_fontno): Use font_family::map_size.
11206         (get_fontno, env_space_width, env_half_narrow_space_width,
11207         env_narrow_space_width, symbol_fotno, is_good_fontno,
11208         get_bold_fontno, make_glyph_node): Use font_table_size rather than
11209         FONTS_MAX.
11210         (next_available_font_position): Never return 0.
11212 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
11214         * ps/tmac.ps: Add font translations for compatibility with dpost.
11216 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
11218         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
11219         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
11220         Move definitions baseline_sep, shift_down, column_sep,
11221         matrix_side_sep into...
11222         * eqn/box.c: Add them to param_table.
11223         * eqn/pbox.h: Add declarations to pbox.h.
11225         * troff/input.c (set_string): Cast value to unsigned char *.
11227         * troff/token.h (process_input_stack): Declare it static before
11228         declaring it a friend.
11230 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
11232         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
11233         and bottom.
11234         * dvi/devdvi/EX: Regenerate.
11236         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
11237         transparent.
11239 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
11241         * eqn/lex.c: In defaults_table, make definition of `dot' call
11242         `dot_def'.  Don't explicitly make it roman.  Similarily for other
11243         accents.
11245         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
11246         argument.
11247         (for_input::get, for_input::peek): Use this.
11248         (do_for): Add by_is_multiplicative argument.
11249         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
11250         Change semantic value of optional_by to be a double plus a flag
11251         saying whethet the by clause is multiplicative.
11253         * eqn/lex.c (get_delimited_text): Remember location of start of
11254         definition.  Improve error handling when EOF is encountered.
11256         * lib/font.h: Rename handle_x_command to
11257         handle_unknown_font_command.
11258         * lib/font.c (font::load): Call handle_unknown_font_command for
11259         any unknown command in the font description file.  Don't call
11260         handle_x_command. Include the name of the command in the argv.
11261         Improve message for unknown command after kernpairs or charset
11262         command.
11263         * ps/ps.c (ps_font::handle_x_command): Rename to
11264         handle_unknown_font_command.  Remove message about `x download'
11265         command.  Give error message for wrong number of arguments.
11266         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
11267         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
11268         handle_unknown_font_command. Give an error message for wrong
11269         number of arguments.  Rename design_size to designsize.
11270         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
11271         checksum', `designsize' instead of `design_size'.
11273 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
11275         * eqn/*.[chy]: Change underaccent to uaccent.
11277         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
11278         give it the same precedence as ACCENT.
11279         * eqn/other.c (make_underaccent_box): New function.
11280         * eqn/box.h: Declare it.
11281         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
11282         def_table.
11284 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
11286         * pic/pic.y (reset_all): New function. Called in rule for RESET.
11287         (parse_init): Call reset_all.
11288         (define_variable): When defining scale reset only those
11289         pre-defined variables that are scaled.
11290         (defaults_table): Add `scale' as non-scaled value.
11292         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
11293         together with the text; allow any number of positioning words;
11294         allow center as a positioning word.
11296         * pic/object.c (output::compute_scale): Get picture maximum height
11297         and width from variables called maxpswid and maxpsht.
11298         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
11300 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
11302         * pic/object.c (object_spec::make_text): Multiply textht by number
11303         of text items.
11305         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
11306         occur.
11307         (do_sprintf): New function.
11308         (pic.gperf): Add sprintf token.
11309         (text, sprintf): New rules.
11311         * pic/pic.y: `rand()' with no arguments returns a random number
11312         in the range [0,1).
11314         * pic/pic.y: Allow a bare expression to be an attribute: change
11315         precedences to support this.  Change optional_ordinal rule to
11316         optional_ordinal_last to avoid reduce/reduce conflict.
11317         * pic/object.c (object_spec::object_spec): Initialize direction.
11319         * pic/pic.y: Implement ^ operator meaning exponentiation.
11321         * troff/node.h: Add default argument to mount_font.
11322         * troff/node.c (font_position): Read an optional third argument
11323         giving the external_name.
11324         (mount_font): Add optional argument giving the external_name.
11325         (mount_font_not_translate): Have additional argument giving
11326         external name.  Use this name to load the font.  Pass both names
11327         to font_info::font_info.
11328         (font_info::font_info): Have additional argument giving
11329         external_name.
11330         (class tfont): New member external_name.
11331         (font_info::get_tfont): Use external name to construct tfont_spec.
11333 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
11335         * eqn/lex.c (init_table): Add argument giving device.  Define
11336         name of device to be "1".
11337         (do_ifdef): Counts as true if the argument has been defined with
11338         `define'.
11339         * eqn/main.c (main): Call init_table with device argument. Make
11340         device local to main.
11341         * eqn/eqn.h: Change declaration of init_table. Remove declaration
11342         of device.
11344         * pic/lex.c (get_delimited): Allow text to be delimited by
11345         matching {}s.  Don't recognize ending delimiter within a string.
11347         * troff/input.c (get_delim_name): New function.
11348         (token::next): Implement \C.
11350         * lib/font.c (font::load): Grok ---.  Add an alias for each
11351         character based on its code.
11352         (font::get_code_width): Deleted.
11353         * lib/font.h (class font): Declare font::number_to_index().
11354         Remove declaration of font::get_code_width.
11355         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
11356         to indices of named characters.
11357         (font::number_to_index): New function.
11358         * troff/input.c (font::number_to_index): New function.
11359         (get_charinfo_by_number, charinfo::get_number,
11360         charinfo::set_number): New functions.
11361         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
11362         (token::process, token::description, token::get_char,
11363         token::add_to_node_list, token::operator==): Handle
11364         TOKEN_NUMBERED_CHAR.
11365         * troff/charinfo.h: Declare get_charinfo_by_number,
11366         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
11367         charinfo class.
11368         (charinfo::numbered): New function.
11369         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
11370         * troff/env.h (class environment): Remove declaration of ...
11371         * troff/env.c (environment::make_numbered_char_node): Deleted.
11372         * troff/node.c (make_numbered_node): Deleted.
11373         (class numbered_glyph_node): Remove.
11374         (troff_output_file::put_char_width, troff_output_file::put_char):
11375         Handle numbered chars.
11376         (troff_output_file::numbered_char): Removed.
11377         (tfont::get_code_width): Removed.
11378         (make_glyph_node): Don't search special fonts for numbered
11379         characters.
11380         * troff/node.h: Remove declaration of make_numbered_node.
11381         * driver/input.c (do_file): Handle N command.
11382         * driver/printer.h: Add declaration of ...
11383         * driver/printer.c (printer::set_numbered_char): New function.
11384         * dvi/tfmtodit.c (main): Generate unnamed entries.
11385         * ps/devps/afmtodit: Likewise.
11386         * xditview/xtotroff.c (MapFont): Likewise.
11387         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
11389         * tbl/main.c (process_format): If multiple widths are specified
11390         for a column but all the widths are the same, don't give an error
11391         message.
11393         * tbl/table.c (table::do_row): If the current row is all lines and
11394         the stuff doesn't contains a line, mark the top of the row after
11395         printing stuff before the row.  If the current row is not all
11396         lines and the stuff doesn't contain a line, don't unnecessarily
11397         mark the top of the row before printing the stuff.
11398         
11399 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
11401         * troff/groff.h: Remove MAX_PATH.
11402         * troff/input.c (open_file): Dynamically allocate space for the
11403         path.
11404         (open_mac_file, process_macro_file): Corresponding changes.
11406 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
11408         * troff/node.h (class output_file): Make copy_file pure.  Add
11409         vspace method ifdef COLUMN. Add is_printing method.
11410         * troff/node.c: Add class printing_reg. Add class
11411         real_output_file. Derive other output_file classes from
11412         real_output_file; in these classes rename begin_page to
11413         really_begin_page, print_line to really_print_line, copy_file to
11414         really_copy_file, transparent_char to really_transparent_char.
11415         Move output_file::flush to real_output_file. Add printing member
11416         to class output_file.
11417         * troff/div.h: Remove printing member from top_level_diversion.
11418         Add vspace member function to class diversion ifdef COLUMN. Add
11419         some declarations ifdef COLUMN.
11420         * troff/div.c (top_level_diversion::copy_file,
11421         top_level_diversion::transparent_output,
11422         top_level_diversion::output): Don't test printing member before
11423         output.
11424         * troff/input.c: Handle initial variable_space_request ifdef
11425         COLUMN.
11426         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
11427         but comment it out.
11429 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
11431         * troff/div.c (diversion::need): Make any space forced.  If we
11432         sprung a trap, set truncated_space to minus the distance to the
11433         trap and set needed_space to the amount that was needed.
11434         (top_level_diversion::space): A forced space turns no_space_mode
11435         off.
11436         (class constant_vunits_reg): New class.
11437         (init_div_requests): Implement number registers .trunc and .ne
11438         using constant_vunits_reg.
11439         (class truncated_space_reg): Deleted.   
11441         * troff/div.h: Don't have a no_space_mode member in diversion.
11442         Instead have it in top_level_diversion.
11443         * troff/div.c (diversion::diversion): Don't initialize
11444         no_space_mode.
11445         (top_level_diversion::top_level_diversion): Initialize
11446         no_space_mode.
11447         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
11448         (macro_diversion::output): Don't clear no_space_mode.
11450         * troff/input.c (diverted_space_node::reread): Don't call
11451         environment::do_break.  In fill mode, act like a blank line.
11452         (diverted_copy_file_node::reread): Don't call
11453         environment::do_break.
11455         * troff/div.c (blank_line): New function.
11456         * troff/div.h: Declare it.
11457         * troff/input.c (process_input_stack): Call it.
11459         * troff/div.c (truncated_space_reg::get_string): New function.
11460         (init_div_requests): Bind to .trunc.
11461         (space_request, top_level_diversion::space,
11462         top_level_diversion::output, macro_diversion::space,
11463         macro_diversion::output): Update truncated_space.
11464         (macro_diversion::output): Redo calculations when trap sprung.
11465         (macro_diversion::output, macro_diversion::space): No need for
11466         trap_flag.
11468         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
11469         after truncating post line spacing.
11471 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
11473         * ps/devps/prologue (MF, SF): Make them work even if setfont is
11474         defined as a procedure rather than as an operator.
11476 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
11478         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
11480 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
11482         * troff/div.c (top_level_diversion::output): Merge
11483         output_file::print_line and output_file::end_of_line member
11484         functions.
11485         * troff/div.h (class output_file):
11486         * troff/node.c (troff_output_file::print_line,
11487         troff_output_file::end_of_line, output_file::end_of_line,
11488         ascii_output_file::print_line, suppress_output_file::print_line):
11489         Corresponding changes.  
11491 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
11493         * troff/input.c (token::next): Don't give a warning for `\.'.
11495         * troff/env.c (environment::get_center_lines): New function.
11496         (init_env_requests): Bind number register .ce to it.
11497         * troff/env.h: Declare it.
11498         * tbl/table.c (table::init_output): Define reset macro to restore
11499         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
11500         Then do .ce 0.
11501         (table::print): If center option not given, then imply center
11502         option if SAVED_CENTER_REG > 0.
11504 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
11506         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
11507         Troff.ps from DOWNLOAD.
11508         
11509         * troff/Makefile: Change comment in DEFINES to avoid confusing
11510         System V make.
11512         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
11513         code.  Don't try to catch errors with stopped.
11514         (check_line_lengths): New function.
11515         * ps/devps/prologue (EXEC): Deleted.
11516         (EBEGIN, EEND): New procedures.
11518 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
11520         * troff/input.c: Include request.h before node.h.
11521         * troff/node.c: Likewise.
11522         * troff/env.c: Likewise.
11523         * troff/div.c: Likewise.
11524         * troff/node.h (class special_node): Store argument as a macro
11525         rather than a char *.
11526         * troff/node.c (special_node::special_node, special_node::copy):
11527         Grok this.
11528         (special_node::~special_node): Deleted.
11529         (special_node::tprint): Deleted.
11530         (special_node::tprint_start, special_node::tprint_end,
11531         special_node::tprint_char): New functions.
11532         (troff_output_file::special): Deleted.
11533         (troff_output_file::start_special, troff_output_file::end_special,
11534         troff_output_file::special_char): New functions.
11535         * troff/input.c (special_node::tprint): New function.
11536         (do_special): Use macro not char *.
11537         (do_transparent_macro): Deleted.
11538         (token::next): Don't call do_transparent_macro.
11540         * troff/input.c (token::next): Add 'Y' case.
11541         (do_transparent_macro): New function.
11542         * troff/node.c (troff_output_file::special): Handle newlines with
11543         argument using new continuation convention.
11544         * driver/input.c (get_string): Cope with continuation convention.
11545         (do_file): Don't call skip_line after calling get_string(1).
11546         * ps/ps.c (ps_printer::special, ps_printer::do_import,
11547         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
11548         arg.
11549         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
11550         with +.
11552 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
11554         * troff/input.c (asciify): By default, illegal input characters
11555         should return empty string.
11557         * troff/input.c (copy_file): Handle first page transition like title.
11558         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
11560         * troff/input.c (token::next): Improve error message for EOF after
11561         escape character.
11562         (input_char_description): New function.
11563         (get_char_for_escape_name): Use input_char_description.
11564         (token::next): Warn about unrecognized escape sequences.
11565         (warning_table): Add WARN_ESCAPE.
11566         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
11567         accordingly.
11569         * troff/token.h: Remove declaration of process_input_stack.
11571         * troff/input.c: Remove declaration of init_hyphen_requests.
11572         * troff/request.h: Correct spelling in declaration of same.
11574         * troff/input.c (token::next): Check whether escape_char is 0.
11576 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
11578         * groff.c (main, usage, help): Implement -P and -L options.
11579         * groff.sh: Likewise.
11581         * troff/input.c (token::next): Use some gotos to avoid code
11582         duplication.
11584         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
11585         Avoid calling symbol::symbol if name empty.
11587 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
11589         * troff/input.c (init_input_requests): Make \n(.x return the major
11590         version number and \n(.y return the minor version number.
11591         * troff/Makefile: Construct file majorminor.c defining
11592         major_version and minor_version automatically from ../VERSION.
11594         * troff/node.c (class glyph_node): Make operator new and operator
11595         delete public.
11596         (class ligature_node): Similarily.
11598         * troff/input.c (operator==(const macro &, const macro &)): New
11599         function.
11600         (non_interpreted_node::same): Use this.
11601         (string_iterator::string_iterator): Make macro& argument const.
11603         * troff/input.c (input_iterator::get): New function. Don't make
11604         asciify_macro or class non_interpreted_node friends of class
11605         input_iterator.
11606         (non_interpreted_node::interpret): Use input_iterator::get.
11607         (asciify_macro): Likewise.
11609         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
11610         ~non_interpreted_node): Deleted.
11611         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
11612         Deleted.
11614         * troff/symbol.h: Make all symbol member functions const.
11616         * lib/strtol.c: New file.
11617         * lib/Makefile: Add strtol.c.
11618         * Makefile: Define STRTOL as strtol.o to include strtol in
11619         libgroff.a.
11621 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
11623         * pic/troff.c (troff_output::simple_circle): Divide by scale.
11625 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
11627         * troff/input.c (do_special): Use input_level.
11629         * troff/token.h (TOKEN_BACKSPACE): New token.
11630         (token::backspace): New function.
11631         * troff/input.c (token::description, token::next, token::process):
11632         Grok TOKEN_BACKSPACE.
11633         (do_special): Turn TOKEN_BACKSPACE back into \b.
11635         * troff/token.h (token::leader): New function.
11636         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
11638         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
11640         * troff/input.c (do_special): Use token::description in error
11641         message.
11643 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
11645         * troff/input.c (decode_args): Combine quoted and
11646         quote_input_level variables. Make it a for (;;) loop.
11648         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
11650         * troff/input.c (read_long_escape_name): The test for whether to
11651         expand buffer was off by 1.
11652         (read_string): Similarily.
11654 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
11656         * troff/input.c: Use `const int' rather than `static const int'.
11658         * troff/div.h (diversion::copy_file): Declare as pure virtual.
11659         (macro_diversion::copy_file): New function.
11660         * troff/node.h: New class diverted_copy_file_node.
11661         * troff/node.c: Implement it.
11662         * troff/input.c (copy_file): Use diversion::copy_file. Handle
11663         first page transition by pushing a diverted_copy_file_node.
11664         * troff/input.c (token::next, process_input_stack): Don't handle
11665         COPY_FILE_REQUEST.
11667 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
11669         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
11670         whether space widths need adjusting.
11672         * troff/charinfo.h: Generalize translated_to_space to
11673         special_translation so as to allow translation to \&.
11674         * troff/input.c (translate): Allow translation to \&.
11675         (charinfo::*): Corresponding changes.
11676         * troff/node.c (make_node, node::add_char): Corresponding changes.
11677         * troff/node.h (dummy_node::dummy_node): Allow optional first
11678         argument.
11680         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
11681         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
11682         TOKEN_REQUEST.
11683         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
11684         TOKEN_REQUEST with an argument of TITLE_REQUEST.
11685         (token::process): Grok that.
11686         * troff/input.c (copy_file): Handle first page transition like
11687         title by pushing a COPY_FILE_REQUEST cookie.
11688         (token::next, process_input_stack): Grok that.
11689         * troff/node.h (output_file::copy_file): Add x and y arguments.
11690         Make it non-pure.
11691         * troff/div.c (top_level_diversion::copy_file): Supply them.
11692         * troff/node.c (troff_output_file::copy_file): Add x and y
11693         arguments; moveto specified position.  Invalidate font_position
11694         array after copying file.
11695         (output_file::copy_file): New function.
11696         (suppressed_output_file::copy_file, ascii_output::copy_file):
11697         Removed.
11698         * troff/input.c (transparent_file): New function.
11699         (init_input_requests): Bind to "trf".
11700         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
11701         (process_input_stack): Likewise.
11703         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
11705         * troff/node.c (init_node_requests): New number registers .kern
11706         pointing to global_kern_mode, and .lg pointing to
11707         global_ligature_mode.
11709         * troff/node.c (ligature): Don't change it if we get a bad
11710         integer.
11712         * troff/input.c (do_define_string): Don't strip tabs.
11714         * troff/input.c (asciify_macro): Make the string_iterator auto.
11716         * troff/node.c (init_font_requests): Rename to...
11717         (init_node_requests):
11718         * troff/node.h: Change declaration.
11719         * troff/input.c (main): Change call.
11721         * troff/input.c (node::reread, diverted_space_node::reread): New
11722         methods.
11723         (process_input_stack): Call reread rather than
11724         get_diverted_space_node.
11725         * troff/node.c (node::get_diverted_space_node,
11726         diverted_space_node::get_diverted_space_node): Removed.
11727         * troff/node.h: Declare reread methods instead of
11728         get_diverted_space_node methods. Make `n' member private.
11729         * troff/input.c: (token::diverted_space): Removed.
11730         * troff/token.h: Removed declaration.
11731         
11733 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
11735         * eqn/script.c (script_box::compute_metrics): Don't let
11736         SUP_RAISE_FORMAT become negative.
11738         * tbl/table.c (table::do_row): Entries that don't end in the
11739         this row shouldn't make the row non-blank.
11740         
11741         * tbl/table.c (table::make_columns_equal): Only set the width of
11742         columns which are marked as equal.
11743         
11744         * tbl/main.c (process_data): Before issuing excess data error,
11745         if last character was a newline unget it; then get it again after
11746         the error.  Also include the contents of the entry in the message.
11748         * groff.c: New file.
11749         * Makefile: Build groff from groff.c.  Make it possible to use
11750         either groff.sh or groff.c as groff.
11751         * Makefile.bd: Similarily.
11753 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
11755         * groff.sh: Don't delay expansion of $@ in assignment to files.
11756         Remove occurrences of \".
11758 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
11760         * all Makefiles: Simplify and rearrange.
11762         * Makefile: Handle fmod like malloc.
11763         * lib/Makefile: Similarily.
11764         * lib/fmod.c: Remove #ifdef NEED_FMOD.
11766         * Makefile: Rename OPTIMISE to OPTIMIZE.
11768         * groff.sh: Remove assignment to PATH.
11769         * Makefile: Remove SHPATH variable.
11770         * Makefile.bd: Similarily.
11772         * groff.sh: Add -V option to print the pipeline instead of
11773         executing it.
11775 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
11777         * lib/font.c: Split off file searching into ...
11778         * lib/fontfile.c: New file.
11780         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
11782 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
11784         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
11785         Also change misleading comment.
11786         (table::do_vspan): Change similarily misleading comment.
11787         * tbl/main.c (process_data): A format row with an explicit `s'
11788         uses up a data line, even if all the other columns are `_' or `='.
11790         * troff/input.c (token::description): Fix description of
11791         TOKEN_DUMMY and TOKEN_EMPTY.
11793 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
11795         * groff.sh: Fix description of -Z in help message.
11797 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
11799         * pic/object.c (object_spec::make_object): Allow negative and zero
11800         line thicknesses.
11801         * pic/pic.y: Give linethick default value of -1.0.
11802         * pic/troff.c (troff_output::troff_output): Initialize
11803         last_line_thickness to BAD_THICKNESS.
11804         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
11805         (troff_output::line_thickness): Canonicalize negative thicknesses
11806         to RELATIVE_THICKNESS.
11807         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
11808         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
11809         to -1.0.
11810         (tex_output::start_picture): Set pen_size to -2.0.
11812         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
11813         0, then use 0 linewidth.
11814         (ps_printer::ps_printer): Initialize line_thickness to -1.
11816         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
11818         * ps/devps/symbolchars: Remove `or'.
11819         * ps/tmac.ps: Implement \(or with .char.
11821         * ps/devps/symbolchars: Move most characters into textmap.
11822         * ps/devps/textmap: Add names for troff bracket characters. Remove
11823         ul, ru, br, bv.
11825         * ps/devps/TSymbol.ps: Removed.
11826         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
11827         * ps/tmac.ps: Do with .char what TSymbol did.
11828         * ps/devps/download: Remove TSymbol.
11830         * ps/devps/T: Removed.
11831         * ps/devps/Troff.ps: Removed.
11832         * ps/devps/Troff.afm: Removed.
11833         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
11834         * ps/devps/download: Remove Troff.
11835         * ps/devps/FontMakefile: Remove T target.
11836         * ps/devps/DESC-A4: Remove T from font list.
11837         * ps/devps/DESC-letter: Likewise.
11839         * troff/input.c (macro_to_node): Rename to ...
11840         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
11841         character's definition while processing it.
11842         * troff/node.c (node::add_char, make_node): Change calls to
11843         macro_to_node accordingly.
11845         * troff/input.c (token::next): Translate \_ to \(ul.
11847         * tty/devascii/R.proto: Add `|'.
11848         * tty/devlatin1/R.proto: Likewise.
11850 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
11852         * man: Put the version number in all the man pages.
11854 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
11856         * Makefile.bd: New file.
11857         * README.bd: New file.
11859         * VERSION: New file.
11860         * lib/version.c: Removed.
11861         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
11862         in clean target.
11864         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
11865         environment variable.
11867         * all Makefiles: Split install target into install.bin for
11868         binaries, and install.nobin for everything else.
11869         * Makefile: Add bindist target.
11871         * man/afmtodit.man: New file.
11872         * man/Makefile: Add afmtodit.n to MAN1PAGES.
11873         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
11874         in BINDIR.
11875         * ps/Makefile: Pass BINDIR to make install in devps.
11877         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
11878         the space character.
11880         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
11882 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
11884         * ps/ps.c: Redo font downloading.
11885         * ps/devps/download: New file.
11886         * ps/devps/Makefile: Add download to DEVICEFILES.
11887         * ps/devps/afmtodit: Remove -d option.
11888         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
11889         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
11890         * ps/devps/zapfdr.ps: Likewise.
11891         * ps/devps/TSymbol.ps: Likewise.
11893 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
11895         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
11897 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
11899         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
11900         then strip the first line if it starts with %.
11901         * Makefile: Add a comment about this.
11903         * man/tfmtodit.man: New file.
11904         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
11905         * dvi/Makefile: Install tfmtodit in BINDIR.
11907         * dvi/tfmtodit.c (usage): Mention -v option.
11909 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
11911         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
11912         * troff/node.c (troff_output_file::transparent_char): Don't call
11913         flush_tbuf.
11915         * eqn: Add check_tabs method to most box classes.
11916         * eqn/box.c (box::top_level): Call check_tabs.
11918         * eqn/script.c (script_box::output): Use \Z.
11919         * eqn/limit.c (limit_box::output): Use \Z.
11921         * eqn/box.c (box::top_level): Use itoa.
11923 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
11925         * dvi/tmac.dvi: Add font translations for CR, C, TT.
11926         * dvi/devdvi/Makefile: Don't make links to CW.
11928         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
11929         HX, HD.
11930         * xditview/tmac.X: Likewise.
11932         * troff/node.c: Add font translation feature.
11933         (get_font_translation): New function.
11934         (symbol_fontno): Translate the font name.
11935         (mount_font_no_translate): Rename to mount_font to this.
11936         (mount_font): New function.
11937         (font_family::make_definite): Call mount_font_no_translate instead
11938         of mount_font.
11939         (mount_style): Translate the font name.
11940         (font_translate): New function.
11941         (init_font_requests): Bind "ftr" to font_translate.
11943         * ps/devps/prologue (SN): New procedure that rounds a position to
11944         the nearest (pixel + (.25,.25)).
11945         (DL): Use SN to round endpoints.
11947         * lib/version.c: Changed version to 0.5.
11949 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
11951         * Makefile: Move definition of PAGE to the very beginning, so that
11952         people are less likely to miss it.
11954 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
11956         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
11958         * troff/env.c (environment::choose_breakpoint): Make `can't find
11959         breakpoint' error a warning of type WARN_BREAK.  Change message to
11960         `can't break line'.
11961         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
11962         code 040000.
11963         * troff/input.c: Add WARN_BREAK to warning_table.  Include
11964         WARN_BREAK in DEFAULT_WARNING_MASK.
11966         * tty/tmac.tty: Add definition of \(+-.
11968         * groff.sh: Remove `--' option to set command.
11970         * dvi/devdvi/texsy.map: Remove duplicate md entry.
11972         * ps/devps/eqnchar: Better definition of cdot using md.
11973         * dvi/devdvi/eqnchar:  Likewise.
11974         * xditview/devX100/eqnchar:  Likewise.
11975         * xditview/devX75/eqnchar: Likewise.
11976         * eqn/lex.c: Add definition of cdot.
11978 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
11980         * troff/input.c (get_optional_char): New function.
11981         * troff/input.c (set_page_character): Use get_optional_char(),
11982         rather than has_arg() and tok.get_char(1).
11983         * troff/env.c (tab_character, leader_character, hyphen_char,
11984         field_characters): Likewise.
11985         (margin_character): Likewise.  Also always delete the
11986         margin_character_node.
11988         * troff/input.c (token::get_char): Use token::description.
11990         * troff/input.c (has_arg): Don't skip over tab and \}.
11991         * troff/number.c (start_number): Give a warning if the number
11992         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
11994 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
11996         * troff/input.c (empty_name_warning, non_empty_name_warning): New
11997         functions.
11998         (get_name, get_long_name): Use these.  Rename `warn' argument to
11999         `required'.
12001         * troff/node.c (get_fontno): Test that the symbol is not null.
12003         * troff/input.c (token::description): New function.
12004         * troff/number.c (parse_term): Use token::description in `numeric
12005         expression expected' message.
12006         * troff/groff.h: Add WARN_MISSING.
12007         * troff/number.c (start_number): New function.
12008         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
12009         get_incr_number): Use start_number().
12010         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
12011         default.
12012         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
12013         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
12014         token::descripion.
12015         * troff/input.c (token::get_char): Use WARN_MISSING.
12016         * troff/input.c (token::delimiter): Use token::description.
12017         * troff/env.c (environment_switch): Back out Aug 3 change.
12018         * troff/input.c (has_arg): Skip over \}s and tabs but give a
12019         warning.
12020         * troff/token.h (token::tab): New function.
12021         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
12022         * troff/reg.c (alter_format): Likewise.
12023         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
12025 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
12027         * troff (most files): Redo warnings. Divide warnings into various
12028         categories; warning() has an additional first argument indicating
12029         the category it falls into.
12030         * troff/input.c (main): -w now takes an argument. New option -W.
12031         (enable_warning, disable_warning): New functions.
12033         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
12034         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
12036 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
12038         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
12039         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
12040         * xditview/devX75/eqnchar: Likewise.
12041         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
12043         * eqn/other.c: When bar or over applies to a single character
12044         don't produce an overline_box or an underline_box. Instead produce
12045         an accent_box or an underaccent_box, with the accent a line
12046         whose width is accent_width.  New classes underaccent_box,
12047         overline_char_box and underline_char_box.
12048         * eqn/box.h: Move overline_box, underline_box, accent_box class
12049         declarations into eqn/other.c. Add declarations of
12050         make_underline_box, make_overline_box, make_accent_box.
12051         * eqn/eqn.y: Call make_overline_box, make_underline_box
12052         make_accent_box instead of constructors.
12053         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
12055         * eqn/other.c: Add accent_box::~accent_box.
12056         * eqn/box.h: Declare it.
12058         * groff.sh: With -Tps, use eqn -D.
12060         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
12061         rather than \l.
12062         (underline_box::output): Similarily.
12063         (accent_box::output): Use \Z.
12065         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
12066         bit smaller.)
12068 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
12070         * troff/div.c (top_level_diversion::transparent_output(unsigned
12071         char)): Use asciify.
12072         * troff/input.c (asciify): Don't make it static.
12073         * troff/token.h (asciify): Declare it.
12074         
12075         * troff/input.c (get_name, get_long_name, token::get_char,
12076         token::delimiter): Add an extra default argument which says
12077         whether a warning should be printed.
12078         * troff: Pass a non-zero argument to one of these rather than
12079         printing a warning directly.
12081 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
12083         * troff: Consistently use symbol::is_null.
12085         * troff/dictionary.h: Move some inline functions into
12086         dictionary.c.
12088         * troff/request.h: Move inline functions into input.c.
12089         (request_or_macro::invoke): Make it pure.
12091         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
12092         * troff/input.c (init_input_requests): Use class constant_int_reg.
12093         (class compatible_reg): Deleted.
12094         * troff/div.c (init_div_requests): Use class constant_int_reg.
12095         (class last_post_line_extra_space_reg): Deleted.
12097         * troff/env.c (tab_character): Don't change the tab character if
12098         we get an invalid argument.
12099         (hyphen_char): Similarily.
12101         * troff/reg.c (alter_format): Check that nm is not null.
12103         * Makefile, groff.sh: Make it possible to customize the commands
12104         used for printing PostScript and dvi files. Also make it possible
12105         to customize the path used by groff.sh.
12107         * eqn/eqn.y: Make `left' right associative.
12109 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
12111         * pic/pic.h: Added definition of M_SQRT2 for those systems that
12112         don't have it.
12114         * pic/pic.h: Removed definition of INT_MAX.
12116         * troff/node.c (italic_corrected_node::vertical_extent): Omit
12117         `return'.
12119         * troff/input.c (token::next):  Handle \R like \n.
12121 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
12123         * ps/tmac.pc (PSPIC): Simplify.
12125         * troff/env.c (tab_stops::to_string):
12126         * pic/pic.y (object_type_name):
12127         * pic/troff.c (simple_output::line):
12128         * pic/tex.c (tex_output::spline):
12129         * pic/object.c (object_spec::make_object):
12130         * tbl/main.c (process_data):  Add cases to switch statements to
12131         avoid cfront warnings. (Some of these are spurious, since the
12132         switch already has a default case.)
12134         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
12135         `ps-'.  Don't test systat; instead check number of arguments to
12136         ps-bb.
12138 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
12140         * macros/tmac.e: Do not decrease the page offset by 0.5i.
12142         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
12143         Unlink the file as soon as we have opened it, so that we don't
12144         have to bother with signal handlers.
12145         (handler): Deleted.
12146         (fatal_error_exit): Deleted.
12147         (main): Don't call signal.
12149         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
12150         can be ignored.
12151         * dvi/devdvi/Makefile: Use the -k option with S and MI.
12153         * pic/pic.y:  If there is a label, or an nth construction before
12154         the first `.' in the argument to `with', ignore it and generate a
12155         warning.
12156         * pic/lex.c (lex_warning): New function.
12158         * tbl/table.c (table::init_output): In section keep and release
12159         macro, use 0 indent when diverting and the correct indent when
12160         rereading.
12162         * troff/input.c (interpolate_number_format): Do not interpolate
12163         anything if the number register is not defined.
12165         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
12167 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
12169         * ps/devps/prologue (PICTURE): Set components of graphics state to
12170         their default values.
12172         * ps/devps/text.enc: Add trademark
12173         * ps/devps/textmap: Add names for club, spade, heart, diamond,
12174         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
12175         * ps/devps/symbolchars: Add names for summation and product.
12177         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
12178         suchthat. Add pp. Add upper-case letters.
12180         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
12181         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
12182         Upsilon.
12184         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
12185         rA (right angle bracket) to ra.  Introduce names for double-headed
12186         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
12187         * ps/devps/textmap: Likewise for ps device.
12188         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
12189         * tty/devascii/R.proto: Rename lA to la and rA to ra.
12190         * tty/devascii/R.proto: Likewise.
12191         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
12192         \(uA, \(dA.
12193         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
12195         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
12197         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
12198         def_table.
12200 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
12202         * troff/div.c (when_request): Use symbol::is_null rather than
12203         has_arg to determine whether we have an argument.
12204         (change_trap): Remove the trap if we get an invalid number. Give
12205         an error if we don't get at least the macro name.
12206         (diversion_trap): Remove trap if we get an invalid name or number.
12208         * troff/env.c (environment_switch): Pop if we get an invalid
12209         symbol or numeric expression.
12211         * troff/input.c (do_define_macro):  If EOF is encoutered while
12212         defining the macro, do tok.next() before returning.
12214         * troff/token.h (has_arg): Move definition from here, to ...
12215         * troff/input.c (has_arg): ... here
12217         * troff/env.c (space_size): Do nothing if we get an invalid argument.
12218         * troff/input.c (shift): Likewise.
12220         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
12221         for `.c'.
12223         * pic/troff.c (troff_output::start_picture):  Comment out calls to
12224         `..'.
12226         * eqn/main.c (do_file): Subtract 1 from current_lineno if
12227         interpret_lf_args succeeds.
12229         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
12230         \\.  This avoids problems with \$N.
12232         * groff.sh: Pass -C to preprocessors.
12234         * lib/lf.c (interpret_lf_args):  Be more flexible.
12236         * tbl/main.c (main): Add -C option.
12237         (table_input::get): Do not recognize TE if followed by character
12238         other than a space or newline unless -C option given.
12239         (process_input_file): Likewise for lf, TS.
12240         (process_data): Likewise for lf in text blocks.
12242         * eqn/main.c (main): Add -C option.
12243         (do_file): Don't recognize EQ, EN or lf if followed by character
12244         other than space or newline unless -C option given.
12245         * eqn/lex.c (file_input::read_line): Similarily.
12246         * eqn/eqn.h: Declare compatible_flag.
12248         * etc/soelim.c (main): Add -C option.
12249         (interpret_lf_args): Use version in libgroff.
12250         (do_file):
12252         * pic/main.c (main): Add -C option, which sets compatible_flag.
12253         (top_input::get), (top_input::peek):  If -C option not given,
12254         do not recognize .PS/.PE/.PF/.lf if followed by a character
12255         other than space or newline.
12256         * pic/lex.c (file_input::read_line): Similarily.
12257         * pic/pic.h: Add declaration of compatible_flag.
12259 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
12261         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
12263         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
12264         derived from node.  New class space_char_hmotion_node.
12265         * troff/input.c (asciify_macro): New function.
12266         * troff/input.c (init_input_requests): New request `asciify' bound
12267         to asciify_macro.
12268         * macros/mm.diff: New file.
12269         * Makefile:  In install.mm target use `patch' to apply
12270         macros/mm.diff.
12272         * troff/input.c (macro::print_size): Just print the size in bytes.
12274         * troff/div.c (return_request): Correct the argument
12275         interpretation.
12277 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
12279         * troff/node.h (class composite_node): Add sz member.
12280         * troff/node.c (composite_node::size): Return sz.
12281         * troff/input.c (macro_to_node):  Use the initial size in the
12282         environment as the size of the composite_node.
12284         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
12285         default.
12287 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
12289         * troff/div.c (change_trap): If we get a bad number expression,
12290         do nothing.
12292 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
12294         * lib/matherr.c (matherr): Define this only if math.h defines
12295         TLOSS.
12297 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
12299         * troff/div.c (macro_diversion::distance_to_next_trap): If there
12300         no diversion trap return vunits(INT_MAX - vresolution).
12302 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
12304         * troff/input.c (do_zero_width): New implementation that doesn't
12305         use a temporary environment. Use instead:
12306         (token::add_to_node_list): New function.
12307         * troff/env.c (environment::get_prev_char_height),
12308         (environment::get_prev_char_height),
12309         (environment::get_prev_char_skew): New functions.
12310         (environment::get_prev_char): New function.
12311         (environment::get_prev_char_width): Change to use get_prev_char.
12312         (init_env_request): Implement new registers .cht, .cdp, .csk.
12313         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
12314         \Z being processed in a separate environment.
12316 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
12318         * tbl/table.c: Removed TABLE_BOTTOM_REG.
12320         * tbl/table.c (table::init_output): In the section release macro,
12321         give a warning message if the section won't fit on one page.
12323         * tbl/table.c (table::do_top): Emit table keep only if table is
12324         boxed.
12325         (table::do_bottom): Likewise for table release.
12326         (table::table), (table::add_vertical_rule):  Remove reference to
12327         keep member.
12328         * tbl/table.h: Remove keep member.
12330         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
12331         SECTION_RELEASE_MACRO, if there's not enough space before the next
12332         trap to output the diversion, call T# ourselves, set
12333         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
12334         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
12335         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
12336         vertical position and return to it before turning traps on again.
12337         
12338 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
12340         * troff/node.c, troff/node.h: In classes derived from node,
12341         replace prev_char_width method by last_char_node method.
12342         * troff/env.c (environment::get_prev_char_width): Use
12343         node::last_char_node rather than node::get_prev_char_width.
12345         * Makefile: Added comment about -fno-inline on 68030-based
12346         Apollos.
12348         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
12349         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
12350         expressions using sizeof to int.
12351         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
12353         * macros/tmac.e (TS):  Don't move @f back past the current
12354         position.
12356 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
12358         * ps/ps.c (main): Buffer stderr.
12359         * dvi/dvi.c (main): Likewise.
12360         * tty/tty.c (main): Likewise.
12362         * ps/ps.c (ps_printer::do_import): Improve error handling.
12364         * troff/input.c (abort_request): Use asciify.
12366         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
12367         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
12368         type of first argument int rather than char.  This works around a
12369         bug on the 68030 based Apollo using g++ 1.37.1.
12371         * tbl/table.h (class table): Add `keep' member.
12372         * tbl/table.c (table::table): Initialize `keep'.
12373         (table::add_vertical_rule): Set `keep' to 1.
12374         (table::do_top): Only emit table keep macro is `keep' is non-zero.
12375         (table::do_bottom): Likewise for table release macro.
12376         (table::do_row): Emit section keep macro even if the row is 0.
12378 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
12380         * macros/tmac.e (@C): Preserve the font family across the change
12381         in environments.
12383 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
12385         * lib/font.c: Initialize font::hor and font::vert to 1.
12386         (font::load_desc): Check the values of font::hor and font::vert.
12388         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
12389         be included in a C compilation.
12390         (iftoa): Use INT_DIGITS. Include lib.h.
12391         (itoa): Likewise.
12392         (as_string): Likewise.
12393         * tbl/table.c: Removed definition of INT_DIGITS.
12394         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
12395         * troff/input.c (input_input_requests): Likewise.
12396         * ps/ps.c (make_encoding_name): Likewise.
12397         (ps_printer::set_style): Likewise.
12398         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
12400         * tty/devascii/R.proto: Map fm onto '.
12401         * tty/devlatin1/R.proto: Likewise.
12403 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
12405         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
12406         argument to \w is at a different input level.
12408         * tbl/table.c (table::init_output): Define a new macro
12409         REPEATED_VPT_MACRO, like vpt but if in a diversion also
12410         transparently outputs itself.
12411         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
12412         vpt.
12413         (table::do_row): Likewise.
12415         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
12416         TRANSPARENT_STRING_NAME.
12418         * tbl/table.c (table::init_output): In the table release macro
12419         print an error message and don't produce any output if after
12420         issuing the need request the table still will not fit.  Also
12421         remove the diversion after bringing it back.
12423         * tbl/table.c (table::init_output): Define a new macro
12424         REPEATED_MARK_MACRO, like mk but if in a diversion also
12425         transparently outputs itself.
12426         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
12427         is necessary because .TH might not call .T#.
12428         (table::do_top): Likewise TOP_REG.
12429         (table::define_bottom_macro): If TOP_REG is no longer valid, use
12430         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
12431         table header might contain just the two top rules.
12433 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
12435         * troff/div.c: Implement new request `ptr' to print all traps.
12437         * troff/env.c (init_env_requests): Implement `.tabs' reg with
12438         init_string_env_reg.
12439         * troff/env.c (class tab_reg): Deleted.
12441 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
12443         * troff/div.c: New number register .pn returns the number of the
12444         next page as set by the pn request.
12446         * macros/tmac.an: Redid headers and footers.  Number each manual
12447         entry starting from 1 unless \nC is > 0, like Sun.  Added an
12448         optional 5th argument to .TH which specifies the manual name and
12449         appears in the center of the header.  Understand the X, P and D
12450         registers like Sun.
12452 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
12454         * troff/env.c (init_env_requests): New number register `.lt' to
12455         return the title length.
12457         * troff/node.h (class transparent_dummy_node): New class.
12458         * troff/node.c (class transparent_dummy_node): Provide member
12459         functions. 
12460         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
12461         than a dummy_node.
12463         * troff/input.c (token::next): New escape sequence \).
12464         * troff/input.c (get_copy): Recognize \) in copy mode.
12466         * troff/input.c (input_stack::clear): New function.
12467         * troff/input.c (exit_request): Use input_stack::clear.
12469         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
12470         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
12472         * troff/env.c: Move set_page_character to input.c.  Move
12473         page_character to input.c also.
12474         * troff/env.c (title): Split off the reading of the parts of the
12475         title into read_title_parts.
12476         * troff/input.c (read_title_parts): New function.  Check the
12477         input_level when testing whether a token matches the delimiter.
12479         * troff/input.c (exit_request): New function.
12480         * troff/input.c (init_input_requests): Bind ex request to
12481         exit_request rather than exit_groff.
12483         * troff/input.c (exit_groff): Call tok.next() before
12484         process_input_stack().
12486 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
12488         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
12489         * troff/env.h: ditto.
12490         * troff/input.c: ditto.
12492         * troff/env.c (environment::is_empty): Test pending_lines.
12494         * troff/env.c (environment::have_pending_lines): Removed.
12496         * troff/input.c: Add request to flush pending lines from the
12497         environment.
12499         * troff/env.c, troff/env.h: Add automatic widow control feature.
12501         * troff/input.c (exit_groff):  Do process_input_stack() after
12502         do_break() but before setting exit_flag to 2.
12504         * troff/input.c: Remove FLUSH_PENDING_LINES and
12505         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
12506         environment after END_TRAP token seen, but only if there aren't
12507         any more traps still unfinished.
12508         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
12510 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
12512         * troff/env.c: Rename the `retain_size' member of class
12513         pending_output_line to `no_fill'.
12515         * troff/env.c (title): When the line is output, make the
12516         retain_size argument !fill.
12518         * troff/node.h: Add `hyphenated' member to struct breakpoint.
12519         * troff/node.c (space_node::get_breakpoints),
12520         (dbreak_node::get_breakpoints):  Fill this in.
12521         * troff/env.c:  Allow specification of maximum number of
12522         consecutive hyphenated lines.
12524         * troff/env.c (environment::is_empty): Add test for !current_tab.
12526 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
12528         * troff/env.c (environment::hyphenate_line): Don't completely give
12529         up if the word is not to be hyphenated; continue so that breaks
12530         can be made at break_char_node's.
12532         * lib/lib.h: Only define INT_MAX if it's not already defined;
12533         undef INT_MIN if it's already defined.
12535         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
12537         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
12538         This works around a bug in AT&T C++ 2.0 used with an ANSI C
12539         compiler.
12540         
12541         * macros/tmac.an (an-header): Set no-space mode.
12543         * macros/tmac.an (TH): Start a new page if necessary.
12545         * Started using ChangeLog at version 0.4.
12547 Local Variables:
12548 version-control: never
12549 coding: latin-1
12550 End: