* doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
[s-roff.git] / ChangeLog
blob4bf07130869de74897f6caed1e2f561f4434549d
1 2003-07-24  Werner LEMBERG  <wl@gnu.org>
3         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
4         * doc/texinfo.tex: Updated from texinfo 4.6.
5         * README.CVS: From now on we need texinfo 4.6.
7 2003-07-23  Werner LEMBERG  <wl@gnu.org>
9         Add requests `dei1' and `ami1' for completeness.
11         * src/roff/troff/input.cc (calling_mode): Remove
12         CALLING_DISABLE_COMP.
13         (comp_mode): New enumeration.
14         (do_define_string, define_string, define_nocomp_string,
15         append_string, append_nocomp_string): Updated.
16         (do_define_macro): Add third parameter.
17         (define_macro, define_nocomp_macro, define_indirect_macro,
18         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
19         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
20         functions.
21         (ignore): Updated.
22         (init_input_requests): Add `dei1' and `ami1'.
24         * tmac/trace.tmac: Handle de1 and am1.
25         (de): Improve tracing message.
26         (am): Add missing `do'.
27         (return): Use de1.
29         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
30         Document new requests.
32 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
34         Add option -G to .MPIMG to insert a gap between text and the image.
36         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
37         www-finish-left-ll): Updated.
38         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
39         (MPIMG): Make option -L and -R optional.
40         Implement option -G.
42 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
44         * src/devices/grohtml/post-html.cpp
45         (html_printer::do_file_components): Don't use `stdout' as lvalue
46         since it can be a macro.
48 2003-07-22  Werner LEMBERG  <wl@gnu.org>
50         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
51         the corresponding test in aclocal.m4.
53 2003-07-21  Werner LEMBERG  <wl@gnu.org>
55         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
56         names but RGB values directly.  Otherwise pnmtopng depends on
57         an external file `rgb.txt' which maps colour names to values.
59 2003-07-20  Werner LEMBERG  <wl@gnu.org>
61         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
62         * configure, src/include/config.hin: Regenerated.
64         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
66 2003-07-19  Werner LEMBERG  <wl@gnu.org>
68         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
70 2003-07-18  Werner LEMBERG  <wl@gnu.org>
72         * *.man: Switch to non-compatibility mode temporarily if GNU
73         syntax extensions are used in the particular man page.
75         * PROBLEMS: Add solutions for SGR problems.
77 2003-07-17  Werner LEMBERG  <wl@gnu.org>
79         Don't ignore grotty's command line options if \X'tty: sgr ...' is
80         used to change the drawing scheme.
82         * src/devives/grotty/tty.cpp (bold_flag_option,
83         underline_flag_option, italic_flag_option, reverse_flag_option,
84         bold_underline_mode_option): New global variables.
85         (update_options): New function.
86         (tty_printer::special): Call update_options.
87         (main): Don't set xxx_flag but xxx_flag_option, then call
88         update_options.
90 2003-07-14  Werner LEMBERG  <wl@gnu.org>
92         Make grotty emit proper Unicode box drawing characters for -Tutf8.
94         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
95         values.
96         (hline_char, vline_char): New global variables.
97         (tty_printer::tty_printer): Initialize them.
98         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
99         horizontal and vertical lines.
100         (crossings): New global array.
101         (tty_printer::end_page): Use it to determine the proper crossing
102         character for -Tutf8.
104 2003-07-12  Werner LEMBERG  <wl@gnu.org>
106         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
107         (HTMLDOCFILES): Revert to `pic.html'.
108         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
110 2003-07-11  Werner LEMBERG  <wl@gnu.org>
112         * doc/pic.ms: Improve documentation of absolute coordinates.
113         Document absolute positioning of pictures.
115         * NEWS: Add new pic capability.
117 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
119         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
120         Rewritten.
122 2003-07-07  Werner LEMBERG  <wl@gnu.org>
124         Implement support for dashed and dotted ellipses in pic.  Based on
125         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
127         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
128         common_output::dashed_ellipse, common_output::dotted_ellipse): New
129         functions.  Ellipse arcs are approximated with circle arcs.
130         * src/preproc/pic/common.h (common_output): Updated.
131         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
132         functions.
133         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
135         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
137 2003-07-06  Werner LEMBERG  <wl@gnu.org>
139         Make grotty work on platforms which have unsigned char as the
140         default for char.  Based on a patch by Thomas Klausner
141         <wiz@netbsd.org>.
143         * src/devices/grotty/tty.cpp (schar): New typedef.
144         Updated calls to declare_ptable and implement_ptable.
145         (glyph): Use schar for back_color_idx and fore_color_idx.
146         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
147         (tty_printer::tty_color, tty_printer::tty_printer,
148         tty_printer::color_to_idx, tty_printer::put_color): Updated.
150 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
152         * src/roff/nroff/nroff.sh: Add option -d for completeness.
153         * src/roff/nroff/nroff.man: Updated.
155 2003-07-05  Werner LEMBERG  <wl@gnu.org>
157         * NEWS, tmac/groff_www.man: Updated.
158         * doc/Makefile.sub: Updated.
160 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
162         Implement support for multiple HTML output files.
164         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
165         -j command line option.
167         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
168         global variables.
169         (file): New fields `new_output_file', `require_links',
170         `output_file_name'.
171         (file::file): Updated.
172         (files::set_file_name, files::set_links_required,
173         files::are_links_required, files::is_new_output_file,
174         files::file_name, files::next_file_name): New functions.
175         (header_desc): New fields `no_of_level_one_headings',
176         `header_filename'.
177         (header_desc::header_desc): Updated.
178         (header_desc::write_headings): Handle multiple files.
179         (html_printer::write_header): Save file name in which header occurs.
180         (html_printer::determine_header_level): Possibly split files on
181         level one headings.
182         (html_printer::do_links, html_printer::troff_tag): Updated.
183         (html_printer::insert_split_file, html_printer::do_job_name,
184         html_printer::emit_link, html_printer::write_navigation,
185         html_printer::do_file_components): New functions.
186         (html_printer::~html_printer): Handle multiple files.
187         (main): Handle command line option `-j'.
189         * src/devices/grohtml/grohtml.man: Updated.
191         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
192         which splits file.
194         * tmac/www.tmac (JOBNAME): New macro.
195         * tmac/s.tmac (SH-NO-TAG): New macro.
196         (@SH): Call SH-NO-TAG.
197         (@NH): Updated.
199 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
201         * tmac/groff_mdoc.man: Improve documentation of punctuation
202         characters.
204 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
206         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
208 2003-07-03  Werner LEMBERG  <wl@gnu.org>
210         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
212 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
214         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
215         after `/*' and `*/'.
216         Fix spacing.
217         (Fn, Fo): Reduce indentation in synopsis.
219         * tmac/doc-common (doc-check-depth): New macro.
220         (doc-end-macro, Sh, Ss): Use it.
221         (Cd): Fix behaviour in synopsis.
222         (In): Make it parsed and callable.
223         If not in the synopsis, represent the C header file enclosed in
224         angle brackets.
225         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
226         Use minus, not hyphen.
228         * tmc/groff_mdoc.man: Updated.
230 2003-07-01  Werner LEMBERG  <wl@gnu.org>
232         Integrated grap2graph, contributed by Eric S. Raymond.
234         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
235         New files.
236         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
237         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
239 2003-07-01  Colin Watson  <cjwatson@debian.org>
241         * src/xditview/*.c: Add prototypes, fix return types, add includes.
242         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
244 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
246         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
248 2003-06-31  Werner LEMBERG  <wl@gnu.org>
250         * doc/Makefile.sub (CLEANADD): Remove all files created by
251         running `make groff.{pdf,dvi}'.
253         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
254         src/xditview also.
256 2003-06-30  Werner LEMBERG  <wl@gnu.org>
258         * Makefile.in (SHELL): Define as @SHELL@.
259         (mkinstalldirs): Use $(SHELL).
260         (MDEFINES): Add $(SHELL).
261         * Makefile.comm (SHELL): Removed.
263 2003-06-29  Werner LEMBERG  <wl@gnu.org>
265         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
266         The X11 documentation files use them.
267         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
269 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
271         * tmac/e.tmac (@C): Handle .ad also.
273 2003-06-12  Werner LEMBERG  <wl@gnu.org>
275         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
277         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
278         Assign `n' even here.  It is possible to construct a node
279         immediately following an escape character:
281           .di xx
282           \?\\\?a
283           .br
284           .di
285           .xx
287 2003-06-10  Werner LEMBERG  <wl@gnu.org>
289         * README.WIN32: Removed.
290         * MANIFEST: Updated.
292 2003-06-07  Werner LEMBERG  <wl@gnu.org>
294         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
296 2003-06-05  Werner LEMBERG  <wl@gnu.org>
298         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
299         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
301 2003-06-03  Werner LEMBERG  <wl@gnu.org>
303         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
304         is done by the calling function.
306 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
308         * tmac/X.tmac: Fix definition of `em'.
310 2003-05-22  Werner LEMBERG  <wl@gnu.org>
312         * src/roff/troff/input.cc (return_macro_request): Fix detection of
313         argument.
315 2003-05-18  Werner LEMBERG  <wl@gnu.org>
317         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
318         to make items work which consist only of a tag.
320 2003-05-17  Werner LEMBERG  <wl@gnu.org>
322         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
323         aren't stretched in a tag (this can fail with unformatted boxes).
324         Instead, insert a break and go back one line.
326 2003-05-16  Werner LEMBERG  <wl@gnu.org>
328         * src/roff/troff/input.cc (return_macro_request): If called with
329         argument pop macro twice.  We need this to trace `return'.
331         * tmac/trace.tmac: Handle `return'.
332         Fix typos.
334         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
335         Document.
337 2003-05-15  Larry Kollar  <kollar@alltel.net>
339         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
340         registers `FPS', `FVS', and `FPD'.
342 2003-05-15  Werner LEMBERG  <wl@gnu.org>
344         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
345         correctly.
347 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
349         * tmac/groff_mdoc.man: Slight improvements.
351 2003-05-03  Werner LEMBERG  <wl@gnu.org>
353         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
354         `doc-header-space' after header line if register `cR' is set.
356 2003-05-02  Werner LEMBERG  <wl@gnu.org>
358         * TODO: Updated.
360 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
362         * tmac/doc-common (Nd): Use \[em].
364 2003-05-01  Werner LEMBERG  <wl@gnu.org>
366         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
367         doc-footer-space): Initialize to 0.5i.
368         (doc-setup-page-layout): Don't set doc-header-space and
369         doc-footer-space.
371 2003-04-30  Werner LEMBERG  <wl@gnu.org>
373         * REVISION: Set to 1.
375         * doc/pic.ms: Document possible problems with `figname'.
377 2003-04-29  Werner LEMBERG  <wl@gnu.org>
379 Version 1.19 released
380 =====================
382         * VERSION: Set to 1.19.
383         * REVISION: Set to 0.
384         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
386         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
387         Define charset as `US-ASCII' in html output.
389         * tmac/www.tmac (ULE): Add missing scaling indicator.
391         * win32-diffs: Removed.
393 2003-04-28  Werner LEMBERG  <wl@gnu.org>
395         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
396         `.da' and `.boxa'.
397         Document how to insert discardable whitespace with `.ss'.
399 2003-04-27  Werner LEMBERG  <wl@gnu.org>
401         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
402         work with plain TeX also.
404         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
406 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
408         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
409         Use a loose DTD.
411 2003-04-24  Werner LEMBERG  <wl@gnu.org>
413         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
414         vbox with positive height and zero depth if in TeX mode.
416         * NEWS: Document glyph name changes for grodvi and grolj4.
418 2003-04-23  Werner LEMBERG  <wl@gnu.org>
420         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
421         * doc/pic.ms: Fixed.
423 2003-04-21  Werner LEMBERG  <wl@gnu.org>
425         HP-UX 10.20 has `snprintf' but it isn't declared.
427         * configure.ac: Add declaration test for snprintf.
428         * configure: Regenerated.
429         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
430         * src/include/config.hin: Regenerated.
432 2003-04-19  Werner LEMBERG  <wl@gnu.org>
434         Add keyword `figname' to pic, specifying the name of the picture
435         box in TeX mode.  Based on a patch from William J Poser
436         <wjposer@unagi.cis.upenn.edu>.
438         * src/preproc/pic/pic.y: New token `FIGNAME'.
439         (macro_name): New rule of type <str>.
440         (placeless_element): Handle `FIGNAME'.
441         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
442         * src/preproc/pic/main.cpp (graphname): New global variable.
443         (do_picture): Initialize `graphname'.
444         * src/preproc/pic/pic.h: Updated.
445         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
446         `graphname'.
447         Simplify TeX code.
448         (tex_output::text): Beautify output.
449         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
450         `shaded' and `outlined' unconditionally.
451         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
452         Minor improvements.
454         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
455         greater is necessary.
457 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
459         Add option -r to soelim to avoid emission of `.lf' lines.
460         Add option -t to produces TeX comment lines instead of `.lf' lines.
462         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
463         and `tex_flag'.
464         (usage): Updated.
465         (main): Handle `-r' and `-t'.
466         (set_location): Handle `raw_flag' and `tex_flag'.
467         * src/preproc/soelim/soelim.man, NEWS: Updated.
469 2003-04-17  Werner LEMBERG  <wl@gnu.org>
471         * tmac/hyphenex.sh: Replaced with...
472         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
473         nightmares.
475         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
476         if --quiet is used for the configure script.
477         * configure: Regenerated.
479 2003-04-16  Werner LEMBERG  <wl@gnu.org>
481         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
482         Add `const' to second argument.
483         (html_printer::add_table_end): Add `const' to argument.
484         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
485         `const' to arguments.
486         * src/devices/grohtml/html-text.h: Updated.
488         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
489         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
490         argument.
492         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
493         cast for integer constant.
495         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
496         (writeNbytes): Add `const' to first argument.
497         (writeString): Add `const' to argument.
498         (char_buffer::can_see): Add `const' to third argument.
499         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
500         `const' to argument.
501         * src/preproc/html/pushback.h: Updated.
503         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
504         (include_path_append): Add `const' to argument.
505         (do_file): Updated.
507         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
508         for `value'.
509         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
510         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
511         for `value'.
512         (unicode_decompose_init::unicode_decompose_init): Updated.
513         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
514         for `value'.
515         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
516         * src/roff/troff/input.cc (process_startup_file): Add `const' to
517         argument.
519         * tmac/hyphenex.sh: Make script more portable by using a here
520         document.
522 2003-04-15  Werner LEMBERG  <wl@gnu.org>
524         Renamed all `*.cc' files to `*.cpp'.
525         Updated all configuration files, makefiles, and documentation.
527 2003-04-14  Werner LEMBERG  <wl@gnu.org>
529         * tmac/hyphenex.sh: Slight improvements.
531 2003-04-13  Werner LEMBERG  <wl@gnu.org>
533         * font/devascii/R.proto, font/devcp1037/R.proto,
534         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
535         character slots with unnamed glyphs.
537         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
538         (an-first): New global variable.
539         (an-header): Emit vertical space between multiple man pages.
541 2003-04-11  Werner LEMBERG  <wl@gnu.org>
543         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
544         values.
546 2003-04-10  Werner LEMBERG  <wl@gnu.org>
548         * PROBLEMS: Revised.
550 2003-04-10  Bernd Warken  <bwarken@mayn.de>
552         * doc/webpage.ms: Improved.
554 2003-04-09  Werner LEMBERG  <wl@gnu.org>
556         Add register \n[.height] which returns the value of \H.
557         Add register \n[.slant] which returns the value of \S.
559         * src/roff/troff/env.cc (init_env_requests): Implement.
560         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
561         Document.
563 2003-04-08  Werner LEMBERG  <wl@gnu.org>
565         * tmac/html.tmac: Move some of the data into html-end.tmac.
566         Remove most of the character translations for eqn since html fonts
567         now cover those characters.
568         Load www.tmac.
569         * tmac/html-end.tmac: New file.
570         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
571         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
572         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
574 2003-04-07  Werner LEMBERG  <wl@gnu.org>
576         * man/groff_out.man: Document negative values of `N' if -Thtml is
577         used.
579 2003-04-06  Werner LEMBERG  <wl@gnu.org>
581         * Makefile.comm (depend.temp): Check location of YTABC.
583 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
585         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
586         binary path.
587         (groff_bin_path): Rename to GROFF_BIN_PATH.
588         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
589         * doc/Makefile.in (TROFFBIN): New variable for troff
590         binary path.
591         (GROFFBIN): New variable for groff binary path.
592         (groff_bin_path): Rename to GROFF_BIN_PATH.
593         (TROFF): Use TROFFBIN.
594         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
595         * doc/Makefile.sub (GROFFBIN): New variable for groff
596         binary path.
597         (groff_bin_path): Rename to GROFF_BIN_PATH.
598         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
600         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
601         with INSTALL_SCRIPT.
602         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
603         * Makefile.dev (all): Depend on DEVSCRIPTS.
604         (install_dev): Likewise.
605         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
606         scripts.
607         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
608         (DEVGENSCRIPTS): New variable to hold generated scripts.
610 2003-04-05  Werner LEMBERG  <wl@gnu.org>
612         * src/libs/libdriver/input.cc (IntArray::operator[],
613         IntArray::get_data): Remove meaningless `const' in return value.
615         * README.CVS: New file.
617 2003-04-04  Werner LEMBERG  <wl@gnu.org>
619         Check for stdint.h in C++, not in C.
621         * aclocal.m4 (GROFF_STDINT_H): New function,
622         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
623         AC_CHECK_HEADERS.
624         * configure, src/include/config.hin: Regenerated.
625         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
628         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
629         with a negative value, representing the width of the unbreakable
630         space (only for -Thtml).  grohtml then converts this back to
631         &nbsp; and uses the value of N as its width.
633         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
634         unbreakable_space_node::tprint): Emit `N-<width>'.
635         * src/include/printer.h (printer::set_numbered_char): Make it
636         virtual.
637         Make members `font_table' and `nfonts' protected instead of private.
638         * src/devices/grohtml/post-html.cc
639         (html_printer::set_numbered_char): New member function.
642         * src/libs/libgroff/maxfilename.cc:
643         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
645         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
646         emit word marker.
648 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
650         * man/roff.man: Small fixes.
652 2003-04-03  Werner LEMBERG  <wl@gnu.org>
654         Make groff independent from locale's numeric settings.
656         * configure.ac: Check for `setlocale'.
657         * configure, src/include/config.hin: Regenerated.
659         * src/include/lib.h: Handle HAVE_SETLOCALE.
661         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
662         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
663         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
666         * doc/groff.texinfo: Change dir category to `Typesetting'.
667         (Man font macros): Mention that there is no space between arguments
668         of .BI and friends.
670         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
671         (*printer::change_color, *printer::change_fill_color): Add missing
672         `const'.
674 2003-04-02  Werner LEMBERG  <wl@gnu.org>
676         * src/devices/grohtml/html-table.cc (html_table::emit_col,
677         html_table::is_gap): Compute table widths after converting border
678         positions to avoid rounding errors.
680 2003-04-01  Werner LEMBERG  <wl@gnu.org>
682         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
683         `space_emitted' properly.
685 2003-03-31  Werner LEMBERG  <wl@gnu.org>
687         * src/devices/grohtml/html-table.cc: Fix column width calculation.
688         (html_table::set_linelength): Don't add 1.
689         (html_table::add_indent): Don't subtract 1.
691         * tmac/html.tmac: Set default page offset to zero.
693 2003-03-30  Werner LEMBERG  <wl@gnu.org>
695         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
697         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
698         unbreakable_space_node::tprint): New functions.
699         (troff_output_file): Make space_char_hmotion_mode::tprint and
700         unbreakable_space_node::tprint to friends.
701         * src/roff/troff/node.h: Updated.
703         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
704         in the HTML standard).
706 2003-03-29  Werner LEMBERG  <wl@gnu.org>
708         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
709         Otherwise, the following code
711           .di xxx
712           .ps 10
713           a
714           .br
715           .di
716           x\*[xxx]
718         produces `x a' instead of `xa'.  This is a temporary fix, disabling
719         font changes in diversions for -Thtml.
721         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
722         `HTML-TAG'.
723         (an-do-tag-html): Merge with ...
724         (an-do-tag): This macro.
725         Change code slightly to circumvent grohtml bug.
726         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
728         * src/devices/grohtml/html-table.cc (html_table::emit_col,
729         html_table::is_gap): Round `width' properly.
731         * tmac/html.tmac: Provide some default layout parameters for
732         grohtml.
734         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
735         command.
737 2003-03-28  Werner LEMBERG  <wl@gnu.org>
739         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
741 2003-03-27  Werner LEMBERG  <wl@gnu.org>
743         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
744         defined.
746 2003-03-20  Werner LEMBERG  <wl@gnu.org>
748         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
749         `.vs'.
750         * doc/groff.texinfo: Updated.
752 2003-03-19  Werner LEMBERG  <wl@gnu.org>
754         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
755         TOKEN_END_TRAP>: Reset `have_input'.
757 2003-03-18  Werner LEMBERG  <wl@gnu.org>
759         * src/roff/groff/groff.man: Mention groff_trace man page.
761 2003-03-16  Werner LEMBERG  <wl@gnu.org>
763         * Makefile.in (LIBEXT): New variable to indicate the file extension
764         of library files.  Computed heuristically from $(OBJEXT).
765         (MDEFINES): Add $(LIBEXT).
766         * Makefile.lib, Makefile.comm: Use it.
768         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
769         overlong lines into smaller chunks.
770         (get_binary): New function.
771         (main): Use them.
772         * src/utils/pfbtops/pfbtops.man: Updated.
774 2003-03-15  Colin Watson  <cjwatson@debian.org>
776         * src/roff/groff/groff.man: Minor syntax fix.
778 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
780         * src/devices/grops/ps.cc (ps_printer::media_set,
781         ps_printer::~ps_printer): Handle zero paper width and length.
783 2003-03-13  Werner LEMBERG  <wl@gnu.org>
785         Add options -p and -l to grodvi.
787         * src/devices/grodvi/dvi.cc: Include paper.h.
788         (landscape_flag, user_paper_length, user_paper_width): New global
789         variables.
790         (dvi_printer::begin_page): Emit `papersize' special.
791         Set color after initialization of `cur_h' and `cur_v'.
792         (main): Add options `-l' and `-p'.
793         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
794         * src/devices/grodvi/grodvi.man, NEWS: Updated.
796         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
798 2003-03-12  Werner LEMBERG  <wl@gnu.org>
800         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
801         * man/groff_tmac.man: This man page.
802         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
803         deprecated.
805         * tmac/X.tmac: Don't load pspic.tmac.
807 2003-03-11  Werner LEMBERG  <wl@gnu.org>
809         Make variable `pr' local to libdriver/input.cc.  Based on a patch
810         by Bernd Warken <bwarken@mayn.de>.
812         * src/include/driver.h (pr): Removed.
814         * src/libs/libdriver/input.cc (pr): New global variable.
815         (do_file): Deallocate `pr'.
816         * src/libs/libdriver/printer.cc (pr): Removed.
818         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
819         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
820         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
821         (main): Don't delete `pr'.
823 2003-03-10  Werner LEMBERG  <wl@gnu.org>
825         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
826         * tmac/papersize.tmac: New file.
827         * tmac/troffrc: Include `papersize.tmac'.
828         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
829         * tmac/an-old.tmac: Set LT to LL by default.
831         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
832         doc/groff.texinfo: Updated.
834         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
835         bug which caused all odd iso papers to have wrong dimensions.
837         * src/devices/grops/ps.cc (user_paper_width): New global variable.
838         (main) <'p'>: Set `user_paper_width' also.
839         (ps_printer::media_width, ps_printer::media_height): Use values
840         given with option `-p'.
842 2003-03-09  Werner LEMBERG  <wl@gnu.org>
844         * src/include/nonposix.h: Provide default for SET_BINARY.
846         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
847         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
848         unconditionally.
850         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
851         (main): Treat \r\n as \n.
853 2003-03-08  Werner LEMBERG  <wl@gnu.org>
855         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
856         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
858 2003-03-07  Werner LEMBERG  <wl@gnu.org>
860         Added support to access more than 256 glyphs in Type 1 fonts.
862         * src/devices/grops/ps.cc (subencoding): New structure.
863         (style): Add `sub' field.
864         Updated all users.
865         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
866         Add `set_subencoding', `get_subfont' and `encode_subfont' member
867         functions.
868         Updated all users.
869         (ps_printer::set_char): Use `set_subencoding'.
870         (make_subencoding_name): New function.
871         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
872         (ps_printer::~ps_printer): Emit subencoding definitions.
874         * src/devices/grops/psrm.cc (valid_input_table): New array to
875         properly support EBCDIC.
876         (white_space): Add `\f'.
877         (ps_get_line): Change first argument to be of type `string &'.
878         Updated all callers.
879         This allows to get lines of arbitrary length.
880         Use `valid_input_table'.
881         Remove warning about non-conforming PS line length.  This seems
882         not to be of great importance -- for example, dvips don't emit
883         a warning either.
884         (PS_LINE_MAX): Removed.
885         (matches_comment): Change first argument to be of type `string &'.
887         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
889         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
890         %AGL_to_unicode, %default_ligatures): New hash tables.
891         Read all map entries.
892         Add unencoded characters.
893         Check for default ligatures if there are no `L' entries.
894         Print all kern entries.
895         Print all characters in charset.
896         * src/utils/afmtodit/afmtodit.man: Updated.
898         * font/devps/*: Regerated all fonts.
900         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
901         of characters, just use `.trin'.  Otherwise the mapping depends
902         on the font encoding.
903         * tmac/ps.tmac: Add `fi' and `fl'.
904         Improve `Fi' and `Fl'.
905         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
906         * tmac/Xps.tmac: Fix `em'.
908         * NEWS: Updated.
910 2003-03-04  Werner LEMBERG  <wl@gnu.org>
912         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
913         `have_input'.
915 2003-03-03  Werner LEMBERG  <wl@gnu.org>
917         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
919         * font/devps/generate/textmap: Remove entry `similarequal'.
920         * font/devps/symbolmap: Updated.
922 2003-03-02  Werner LEMBERG  <wl@gnu.org>
924         * src/libs/libgroff/font.cc (font::load): Fix error message for
925         bad character type.
927         * src/devices/grops/grops.man: Improve documentation of the -b
928         flag.
930         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
931         `ascii' and `cp1047'.
933 2003-03-01  Werner LEMBERG  <wl@gnu.org>
935         Document composite glyphs and the `composite' request.
937         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
939 2003-02-28  Werner LEMBERG  <wl@gnu.org>
941         * font/devdvi/generate/ec.map: Add some more Unicode entities.
942         * font/devdvi/*EC: Updated.
944         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
945         * tmac/latin1 (latin1-tr): Undo any previous mapping.
946         * tmac/troffrc: Load `composite.tmac'.
947         * tmac/Makefile.sub (NORMALFILES): Updated.
949         * doc/groff.texinfo (Input Encodings): New section.
950         * NEWS: Updated.
952 2003-02-27  Werner LEMBERG  <wl@gnu.org>
954         * doc/texinfo.tex: New version 2003-02-11.06.
956         * tmac/doc-common (Dt): Don't emit warning for unknown section.
957         * tmac/groff_mdoc.man: Fix description of `Dt'.
959 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
961         * font/devps/prologue.ps: Fix for included Postscript that does
962         a setpagedevice -- which is now safely ignored.
964         * NEWS: Updated.
966         * src/devices/grops/ps.cc: Now sets the page size in the generated
967         document.  This is done in two ways: Via a %%-comment for gv and
968         the like, and via a PageSize and setpagedevice for programs that
969         understands Postscript proper, like ps2pdf.
971         * src/devices/grops/ps.h: New broken-flag to avoid page size
972         definition, if required.
974         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
976         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
977         Not really necessary due to the fix in prologue.ps, but cleaner:
978         Such information does not belong in an .eps file.
980         * doc/Makefile.sub: See doc/Makefile.in.
982 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
984         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
985         instead of P1 since the latter is broken in some versions of netpbm.
986         * configure: Updated.
988 2003-02-26  Larry Kollar  <kollar@alltel.net>
990         Make man pages more customizable.
992         * tmac/an-old.tmac (FT): New register holding footer distance from
993         bottom.
994         (HF): New string holding the default heading font.
995         (TH): Handle registers `IN' and `SN' set on the command line.
996         Use `FT'.
997         (PT, BT): New strings to customize header and footer lines.
998         (an-header, an-footer): Use them.
999         (SH, SS): Use `HF'.
1000         * tmac/groff_man.man: Document changes.
1002         * doc/groff.texinfo: Document man changes.
1003         Document Ultrix extensions of man.
1005 2003-02-26  Werner LEMBERG  <wl@gnu.org>
1007         * src/roff/troff/input.cc (do_width, do_if_request): Reset
1008         `have_input' after changing back to old environment.
1010         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
1011         function up to be defined before first call.  This is necessary to
1012         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
1014         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
1015         the default font directory also.  Based on a patch from James
1016         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
1017         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
1018         * src/utils/afmtodit/afmtodit.man: Document it.
1020         * NEWS: Updated.
1022         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
1024 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
1026         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
1027         (GROFF_PNMTOPS_NOSETPAGE): New macro.
1028         * configure.ac: Use it.
1029         * configure: Regenerated.
1030         * Makefile.in: Updated.
1032         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
1033         (CLEANADD): Add www.tmac-sed.
1034         (pnmtops_nosetpage): Define default.
1035         (install_data): Handle www.tmac-sed and substitute
1036         @PNMTOPS_NOSETPAGE@.
1037         (stamp-sed): Add www.tmac.
1038         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
1039         It now breaks URLs at suitable places.
1040         (www:substring_ok): New register set by...
1041         (www:@test_substring): New macro.
1042         (www:error): New alias to www-error.
1043         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
1044         New macros.
1045         (URL): Use www:url_breaks.
1046         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
1047         (CDS, CDE): New macros.
1049 2003-02-25  Werner LEMBERG  <wl@gnu.org>
1051         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
1052         buffer overflow.
1054 2003-02-24  Werner LEMBERG  <wl@gnu.org>
1056         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
1057         can be negative also.
1059         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
1060         `int16'.
1061         (read_char_table): Avoid negative ascenders.
1062         (output_charset): Add cast.
1063         * font/devlj4/*: Regenerated.
1065         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
1066         possible.
1068         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
1069         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
1070         of `<>'.
1071         * font/devdvi/*: Regenerated.
1073         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
1074         normal width, while the previously used characters (U+2329 and
1075         U+232A) are classified as wide due to canonical equivalence with the
1076         CJK punctuation characters U+3008 and U+3009.
1078         * font/devutf8/R.proto: Updated.
1079         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
1081         * man/groff_char.man: Simplify handling of table traps by
1082         introducing `start block' and `end block' macros.
1083         (Ns, Ne, 2s, 2e, Ds, De): New macros.
1084         (DL): Make it work with Unix troff also.
1085         Fix code values of `la' and `ra'.
1087         * tmac/dvi.tmac: Define `<>' for CW and CWI.
1089 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
1091         * src/devices/grohtml/post-html.cc (element_list::~element_list):
1092         New destructor, fixing a major memory leak.
1094 2003-02-22  Werner LEMBERG  <wl@gnu.org>
1096         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
1097         to be in conformance with Unicode 3.0 and newer.
1099         * font/devlj4/generate/text.map: Add `Eu'.
1100         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
1101         * font/devlj4/S: Regenerated.
1103         * man/groff_char.man: Completely rewritten.
1105         * doc/groff.texinfo: Fix description of request and macro arguments.
1107 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
1109         Valgrind fixes.
1111         * src/devices/grohtml/html-table.cc (html_table::~html_table):
1112         Deallocate `columns' list.
1113         * src/devices/grohtml/post-html.cc (char_block::~char_block):
1114         New destructor.
1115         (text_glob::text_glob_html, text_glob::text_glob_special,
1116         text_glob::text_glob_line, text_glob::text_glob_auto_image,
1117         text_glob::text_glob_tag): Avoid memory leaks.
1118         (text_glob::remember_table): Free memory before reassigning.
1120 2003-02-19  Werner LEMBERG  <wl@gnu.org>
1122         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
1123         alias `hbar'), the Planck constant over two pi.
1125         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
1126         `+e' for position 34.
1127         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
1128         `u2662' and `u2661'.
1129         * font/devdvi/{MI,S}: Regenerated.
1130         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
1131         * font/devlbp/*: Add `hbar' alias.
1132         * font/devlj4/generate/special.map: Ditto.
1133         * font/devlj4/S: Regenerated.
1134         * font/devps/generate/symbolchars: Add `+e'.
1135         * font/devps/generate/textmap: Fix PS name for `-h'.
1136         Add `hbar' alias.
1137         * font/devps/symbolmap: Regenerated.
1139         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
1141         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
1142         `-h', `hbar'.
1143         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
1144         `-h'.
1146         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
1147         `hbar'.
1148         * tmac/tty-char.tmac: Add `+e'.
1150 2003-02-17  Werner LEMBERG  <wl@gnu.org>
1152         Another round trying to really fix problems with `have_input'.
1154         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
1155         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
1157         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
1158         handling if both foreground and background colors are default.
1160         * doc/groff.texinfo (Debugging): Document .lf differences to
1161         AT&T troff.
1163 2003-02-16  Werner LEMBERG  <wl@gnu.org>
1165         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
1166         null-bytes in created string.
1168         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
1169         alias_macro, lookup_request): Improve warning messages.
1171         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
1172         not `strdup'.
1173         Free `last_image_filename'.
1175         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
1176         `buffer'.
1177         (imageList::createPage, imageList::createImage): Use `free', not
1178         `a_delete'.
1179         (imageItem::~imageItem): Free `imageName'.
1180         (addRegDef): Use `strsave', not `strdup'.
1181         (get_resolution): Free `pathp'.
1183 2003-02-15  Werner LEMBERG  <wl@gnu.org>
1185         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
1186         to `dummy'.
1188 2003-02-14  Werner LEMBERG  <wl@gnu.org>
1190         Add memory management for colors to deallocate unnamed colors
1191         properly.
1193         * src/include/color.h (color): New members `free_list' and `next'.
1194         New member functions `new' and `delete'.
1195         Add destructor.
1196         * src/libs/libgroff/color.cc: Implement it.
1198         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
1199         for array size of new operator.
1201         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
1202         redundant comparison.
1204         * src/roff/troff/input.cc (word_space_node::reread,
1205         hmotion_node::reread): Avoid warning about unused parameter.
1206         (reset_output_registers): Remove redundant parameter.
1207         (define_color): Undo change 2003-02-12.
1209         * src/roff/troff/reg.h: Updated.
1211         * src/roff/troff/node.cc (troff_output_file::really_print_line,
1212         output_file::put_filename, real_output_file::really_put_filename,
1213         ascii_output_file::really_print_line,
1214         break_char_node::get_hyphen_list): Avoid warning about unused
1215         parameter.
1216         (suppress_node::tprint): Updated.
1218         * configure.ac: Check declaration for rand() and srand().
1219         * configure: Regenerated.
1221         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
1222         conditionally.
1223         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
1224         and srand().
1226         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
1227         to avoid compiler warnings.
1229         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
1230         unused.
1232         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
1233         is unused.
1234         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
1235         (unused) parameter.
1236         Updated all callers.
1238         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
1239         is unused.
1240         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
1241         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
1243         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
1244         Parameter is unused.
1245         (html_printer::add_table_end): Define parameter conditionally.
1246         * src/devices/grohtml/output.cc (simple_output::special): Parameter
1247         is unused.
1249         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
1250         (lbp_printer::set_char): Last parameter is unused.
1252         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
1254 2003-02-13  Werner LEMBERG  <wl@gnu.org>
1256         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
1257         Make \D'f ...' move horizontally again for backwards compatibility.
1258         Replace it with \D'Fg ...' where appropriate to avoid dependency
1259         on horizontal resolution.
1261         * src/roff/troff/input.cc (do_get_long_name): New function.
1262         (get_long_name): Call it.
1264         (read_draw_node): Handle `\D'Fx ...' by calling ...
1265         (read_color_draw_node): New function.
1267         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
1268         `end'.
1269         Pass it to `do_get_long_name' which is used instead of
1270         `get_long_name'.
1272         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
1273         unnecessary value guard.
1274         (parse_D_command) <'f'>: Add horizontal shift.
1276         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
1277         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1278         (FILL_MAX): Removed.
1280         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1281         Updated.
1283 2003-02-12  Werner LEMBERG  <wl@gnu.org>
1285         * src/roff/troff/input.cc (do_name_test, do_expr_test,
1286         do_zero_width): Push `\n' if closing delimiter is missing.
1288         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
1289         <'F'>: Make \F non-transparent at the beginning of line.
1290         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
1291         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
1292         `have_input'.
1294         (define_color): Free color in case of reassignment.
1296         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
1297         @DefescListEnd): Use @Var, not @var.
1298         Fix all calls.
1300         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
1302         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
1303         `shaded' and `outlined' arrays.
1304         (object_spec::object_spec): Initialize `shaded' and `outlined'.
1305         (graphic_object::set_fill_color, graphic_object::set_outline_color):
1306         Use strsave.
1307         (closed_object::set_fill_color): Ditto.
1308         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
1309         instead of strdup.
1310         (troff_output::reset_color): Use a_delete instead of free.
1311         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
1313 2003-02-11  Werner LEMBERG  <wl@gnu.org>
1315         * doc/groff.texinfo: Improve documentation of `ad'.
1316         Document that \D'f...' is dependent on the horizontal resolution.
1317         * man/groff_diff.man: Improve documentation of \D'f...'.
1319         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
1320         compensating \h'...' for \D'f ...' since the latter no longer moves
1321         current position.
1322         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
1324 2003-02-10  Werner LEMBERG  <wl@gnu.org>
1326         Improve error messages for `x F' (and `F') commands.
1328         * src/include/error.h: Add declaration for
1329         `current_source_filename'.
1330         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
1331         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
1332         parameter for source file string.
1333         Updated all callers.
1335         * src/libs/libdriver/input.cc: Add `current_source_filename'.
1336         (remember_source_filename): New function.
1337         (parse_x_command <'F'>, do_file <'F'>): Use it.
1339 2003-02-09  Werner LEMBERG  <wl@gnu.org>
1341         Make grotty not emit warnings about unknown colors more than
1342         necessary.
1344         * src/devices/grotty/tty.cc: Include `ptable.h'.
1345         (TTY_MAX_COLORS): Removed.
1346         (DEFAULT_COLOR_IDX): Defined to -1.
1347         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
1348         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
1349         Change `tty_colors' to be a ptable.
1350         First arg of `put_color' is now `char'.
1351         New functions `make_rgb_string' and `tty_color'.
1352         (tty_printer::tty_printer): Use `tty_color'.
1353         (tty_printer::color_to_idx): Return value is now `char'.
1354         Use `tty_color'.
1356         * src/include/color.h (color): Add `print_color' member function.
1357         * src/libs/libgroff/color.cc (color::print_color): Implement it.
1359 2003-02-08  Werner LEMBERG  <wl@gnu.org>
1361         Valgrind fixes.
1363         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
1364         encoding file.
1366         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
1367         assume that value has been allocated with `new[]', thus use
1368         `a_delete' for deallocation.
1370         * src/libs/libdriver/input.cc (get_integer_arg,
1371         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
1372         where appropriate.
1374         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
1375         * src/libs/libgroff/nametoindex.cc
1376         (character_indexer::named_char_index): Use `new <type>[1]'.
1378         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
1379         <type>[1]'.
1380         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
1381         (split_text): Use `a_delete'.
1383         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
1384         <type>[1]'.
1386         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
1387         harmless memory leak.
1388         (hyphen_trie::read_patterns_file): Initialize `buf'.
1389         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
1390         Initialize `current_fill_color'and `current_glyph_color'.
1391         * src/roff/troff/glyphuni.cc
1392         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
1393         * src/roff/troff/uniuni.cc
1394         (unicode_decompose_init::unicode_decompose_init): Ditto.
1395         * src/roff/troff/uniglyph.cc
1396         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
1398 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1400         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
1401         `access' before calling `unlink'.
1402         (do_file): Handle __EMX__.
1404         * src/include/nonposix.h: Handle __EMX__.
1406         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
1407         (fontpath,tmacpath): Use it.
1408         (MDEFINES): Add it.
1409         Sorted alphabetically.
1411         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
1412         @SEP@.
1413         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
1414         @SEP@.
1416 2003-01-27  Werner LEMBERG  <wl@gnu.org>
1418         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
1419         New files, copied from gnulib.
1420         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
1421         * configure.ac: Updated.
1422         * configure: Regenerated.
1424         * src/include/config.hin: Regenerated.
1425         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
1426         Don't define `strcasecmp' as `strcmp'.
1427         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
1428         Dont define `strncasecmp' as `strncmp'.
1430         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
1431         Removed.
1433 2003-01-26  Werner LEMBERG  <wl@gnu.org>
1435         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
1436         s/unline/unlink/.
1438 2003-01-25  Werner LEMBERG  <wl@gnu.org>
1440         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
1442 2003-01-24  Werner LEMBERG  <wl@gnu.org>
1444         Add US-english hyphenation exceptions (converted from Barbara
1445         Beeton's hyphenation exception log reports which appear irregularly
1446         in TUGBoat).
1448         * tmac/hyphen.us: Updated to latest version.
1449         * tmac/README: Updated.
1450         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
1451         * tmac/troffrc: Load `hyphenex.us'.
1452         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
1453         * doc/groff.texinfo: Updated.
1455 2003-01-23  Werner LEMBERG  <wl@gnu.org>
1457         Improve hyphenation slightly.  This is a first step in redesigning
1458         the hyphenation algorithm to make it more flexible (e.g. allowing
1459         kerns and ligatures between the hyphenation character and the
1460         following character -- while not used normally in English, other
1461         languages like German would benefit).
1463         * src/roff/troff/env.cc (environment::hyphenate_line): Use
1464         assertion instead of if-clause.
1465         Let `get_hyphen_list' return the number of involved characters in
1466         the hyphenation pattern instead of computing it directly (which
1467         often yields too small values).
1468         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
1469         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
1470         parameter.
1472 2003-01-22  Werner LEMBERG  <wl@gnu.org>
1474         Fixing a bug which caused groff to hang if the hyphenation exception
1475         dictionary tried to grow.
1477         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
1478         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
1479         pointer to dictionary.
1481 2003-01-20  Werner LEMBERG  <wl@gnu.org>
1483         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
1484         negative left italic correction.
1485         * src/utils/afmtodit/afmtodit.man: Document it.
1487         * font/devps/generate/Makefile (RFLAG): Add `-m'.
1488         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
1489         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
1491         * NEWS: Updated.
1493 2003-01-16  Werner LEMBERG  <wl@gnu.org>
1495         * NEWS: Updated.
1497 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
1499         * src/preproc/refer/refer.man: Mention REFER environment variable.
1501 2003-01-05  Werner LEMBERG  <wl@gnu.org>
1503         Similar to \[is], the square root glyph (\[sr]) and the square root
1504         extension glyph (\[radicalex]) are now text symbols.  The new
1505         mathematical versions are called \[sqrt] and \[sqrtex],
1506         respectively.
1508         * font/devX*/S: Regenerated.
1509         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
1510         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
1511         * font/devdvi/EX, font/devdvi/S: Regenerated.
1512         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
1513         * font/devlj4/generate/special.map: Add `sqrt'.
1514         * font/devlj4/S: Regenerated.
1515         * font/devps/generate/textmap: Add `sqrt'.
1516         * font/devps/S, font/devps/symbolmap: Regenerated.
1518         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
1519         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
1520         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
1521         overlap horizontally.
1523         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
1524         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
1525         Fix `radicalex'.
1527         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
1528         and `sqrtex' are overlapping glyphs.
1530 2003-01-04  Werner LEMBERG  <wl@gnu.org>
1532         * font/devdvi/generate/texsy.map: Add `is'.
1533         * font/devps/symbolmap: Regenerated.
1534         * font/devdvi/*TC, MI, S: Regenerated.
1536         * tmac/dvi.tmac: Remove `is'.
1538 2003-01-03  Werner LEMBERG  <wl@gnu.org>
1540         `is' is now a text symbol (only relevant for dvi).  The math variant
1541         can be accessed with `integral'.
1543         * font/devX*/S: Regenerated.
1544         * font/devdvi/generate/texex.map: Remove `is'.
1545         * font/devdvi/EX: Updated.
1546         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
1547         * font/devlj4/generate/special.map: Ditto.
1548         * font/devlj4/S: Regenerated.
1549         * font/devps/generate/textmap: Add `integral'.
1550         * font/devps/S: Regenerated.
1552         * tmac/dvi.tmac: Define `is'.
1554         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
1556         * src/preproc/tbl/main.cc (process_format): Fix error message.
1558 2003-01-02  Werner LEMBERG  <wl@gnu.org>
1560         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
1561         * font/devps/textmap: Fix entries for `ne' and `nc'.
1562         * font/devps/symbolmap: Regenerated.
1564         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
1565         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
1566         `38', `58', `78', `-+', `|=', `nc', `ne'.
1568         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
1569         Use `schar' for `aq'.
1570         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
1571         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
1572         * tmac/tty.tmac: Add `ne'.
1574         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
1575         for fallback glyphs.
1577 2002-12-29  Werner LEMBERG  <wl@gnu.org>
1579         Add glyph `|='.
1581         * font/devX*/*: Regenerated.
1582         * font/devdvi/generate/ec.map: Remove `eq'.
1583         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
1584         Assign `|=' to position 39.
1585         * font/devdvi/*EC, S: Regenerated.
1586         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
1587         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
1588         Assign `|=' to position 549.
1589         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
1590         `equalmath'.
1591         Add `uni2243' for `|='.
1593         * tmac/ec.tmac: Add `eq'.
1594         * tmac/dvi.tmac: Add `=~'.
1595         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
1596         `|='.
1598 2002-12-21  Werner LEMBERG  <wl@gnu.org>
1600         * font/devdvi/generate/tc.map: Remove `**'.
1601         * font/devdvi/*TC: Regenerated.
1602         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
1603         `78', `<<', `>>'.
1604         * font/devutf8/NOTES: Updated.
1606         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
1607         Don't give default parameter to `set_macro'.
1608         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
1609         instead of `set_macro'.
1610         (charinfo::setx_macro): Implement it.
1611         (charinfo::set_macro): Don't change `mode'.
1613         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
1614         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
1615         * tmac/dvi.tmac: Define `!=' with `.schar'.
1617 2002-12-20  Werner LEMBERG  <wl@gnu.org>
1619         * font/devX*/S: Regenerated.
1620         * font/devdvi/generate/ec.map: Remove `pl'.
1621         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
1622         * font/devdvi/*{TC,EC}: Regenerated.
1623         * font/devhtml/R.proto: Add `-+'.
1624         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
1625         * font/devlbp/*: Remove `or'.
1626         * font/devlj4/generate/special.map: Remove `or'.
1627         * font/devlj4/S: Regenerated.
1628         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
1629         `seveneighths', `threeeighths'.
1630         Remove `plusmath'.
1631         Replace `minusplus' with `uni2213'.
1632         * font/devps/symbolmap: Regenerated.
1633         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
1634         Add `-+'.
1636         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
1637         function.
1638         * src/roff/troff/node.cc (troff_output_file::put_char_width):
1639         Call glyph_color and fill_color even if tcommand_flag isn't set.
1640         (make_node, node::add_char): Check not ci->is_fallback but
1641         ci->is_normal.
1643         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
1644         * tmac/ec.tmac: Add .rchar entry for `f/'.
1645         Don't remove `12', `14', `34'.
1646         Define `pl' to be always roman.
1647         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
1648         Define `18', `38', `58', `78'.
1649         * tmac/tty.tmac: Add `-+'.
1650         * tmac/dvi.tmac: Define `f/'.
1651         (dvi-frac): Use `f/'.
1652         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
1653         Define `18', `38', `58', `78'.
1655 2002-12-15  Colin Watson  <cjwatson@debian.org>
1657         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
1659 2002-12-10  Werner LEMBERG  <wl@gnu.org>
1661         Add glyph `tno', a textual variant of `no'.
1663         * font/devX*/*: Regenerated.
1664         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
1665         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
1666         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
1667         * font/devdvi/*: Regenerated.
1668         * font/devlbp/*: Add `tno'.
1669         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
1670         * font/devlj4/*: Regenerated.
1671         * font/devps/generate/textmap: Replace `no' with `tno'.
1672         * font/devps/generate/symbolchars: Add `no'.
1673         * font/devps/*: Regenerated.
1675         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
1677         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
1678         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
1680         * NEWS: Updated.
1682         * tmac/dvi.tmac: Replace most `\\' with `\E'.
1683         Add definition for `sd'.
1684         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
1686         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
1688 2002-12-08  Werner LEMBERG  <wl@gnu.org>
1690         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
1691         mode to avoid rounding errors.
1692         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
1694         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
1695         src/roff/troff/troff.man: Improve documentation of -T.
1697 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
1699         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
1700         (run_pipeline) [_WIN32]: Provide working function without `fork'.
1702 2002-12-06  Werner LEMBERG  <wl@gnu.org>
1704         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
1705         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
1706         Scaling Euro.sansserif glyphs down to have the same height as
1707         digits.
1708         Removed unnecessary points; added some extrema.
1710         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1711         Regenerated.
1713 2002-12-04  Werner LEMBERG  <wl@gnu.org>
1715         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
1716         and `Euro.symbol.bold.slanted'.
1717         Improve some glyph offsets and widths.
1718         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
1719         Regenerated.
1720         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
1721         typo.
1722         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
1723         direcory.
1725         * tmac/europs.tmac: Updated to new glyph indices.
1726         Use Euro.symbol for font familiy `A'.
1728         * doc/groff.texinfo: Minor improvements.
1730 2002-12-02  Werner LEMBERG  <wl@gnu.org>
1732         * font/devdvi/generate.tc.map: s/%O/%0/.
1733         * font/devdvi/*TC: Regenerated.
1735         * src/roff/troff/div.cc (init_div_requests): Sorted.
1737         * tmac/dvi.tmac: Remove `Ye'.
1738         * tmac/ec.tmac: Remove `Ye'.
1739         Add .rchar entry for `de'.
1741         * man/groff.man, man/groff_diff.man: Document register `.pe'.
1742         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
1743         * NEWS: Updated.
1745 2002-11-30  Werner LEMBERG  <wl@gnu.org>
1747         Add PS font for various Euro glyphs.
1749         * font/devps/generate/freeeuro.sfd: New master font file for
1750         pfaedit.
1751         * font/devps/generate/sfdtopfa.pe: New conversion script for
1752         pfaedit.
1753         * font/devps/generate/Makefile (FONTS): Add `EURO'.
1754         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
1755         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
1756         `freeeuro.sfd'.
1757         * font/devps/EURO: Generated from `freeeuro.afm'.
1758         * font/devps/download: Add `freeuro.pfa'.
1759         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
1760         `freeeuro.pfa'.
1762         * tmac/europs.tmac: New file.
1763         * tmac/ps.tmac: Include `europs.tmac'.
1764         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
1766 2002-11-29  Werner LEMBERG  <wl@gnu.org>
1768         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
1769         * font/devdvi/S: Regenerated.
1770         * font/devhtml/R.proto: Fix `CR' and `ci'.
1771         Add `OK'.
1772         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
1773         Remove `bs'.
1774         * font/devps/symbolmap: Regenerated.
1775         * font/devutf8/R.proto: Fix `CR' and `ci'.
1776         Add `OK'.
1777         * font/devutf8/NOTES: Updated.
1779         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
1780         `ci'.
1781         Add `OK'.
1782         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1784         * tmac/dvi.tmac: Add `lh' and `rh'.
1785         * tmac/Xps.tmac: Fix `lh' and `rh'.
1786         * tmac/X.tmac: Add `OK'.
1787         * tmac/lj4.tmac: Ditto.
1789 2002-11-24  Werner LEMBERG  <wl@gnu.org>
1791         * font/devX*/S: Regenerated.
1792         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
1793         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
1794         * font/devdvi/generate/texsy.map: Remove `or' glyph.
1795         * font/devdvi/S: Regenerated.
1796         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
1797         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
1798         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
1799         `bracketleftbt', `bracketrighttp', `bracketrightex',
1800         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
1801         `braceex', `braceleftex', `bracerightex', `bracerighttp',
1802         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
1803         `rb', and `bv'.
1804         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
1805         * font/devutf8/NOTES: Updated.
1806         * font/devlj4/generate/special.map: Add glyph `braceex'.
1807         * font/devlj4/S: Regenerated.
1809         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
1811 2002-11-14  Werner LEMBERG  <wl@gnu.org>
1813         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
1814         and `vA'.
1815         Fix code for `an'.
1816         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
1818         * doc/texinfo.tex: New version from texinfo 4.3.
1819         * doc/groff.texinfo: Updated for texinfo 4.3.
1820         Use @tie{} where appropriate.
1821         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
1822         * font/devdvi/generate/tc.map: Remove `rn'.
1823         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
1824         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
1825         Fix code for `an'.
1826         * font/devX100/*, font/devX100-12/*, font/devX75/*,
1827         font/devX75-12/*: Regenerated.
1829         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
1830         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
1831         Improve definition of `an'.
1832         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
1833         `ru'.
1834         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
1835         * tmac/X.tmac: Add definition for `or'.
1836         * tmac/Xps.tmac: Undo change 2002-11-05.
1837         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
1839 2002-11-11  Werner LEMBERG  <wl@gnu.org>
1841         * src/roff/troff/node.cc (troff_output_file::put_char): Always
1842         call flush_tbuf.
1844 2002-11-10  Werner LEMBERG  <wl@gnu.org>
1846         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
1847         defines a glyph which is searched after the check for fonts declared
1848         with `.special' (and before the check for all mounted special
1849         fonts).  `fschar' defines a glyph for a particular font which is
1850         searched after the check for fonts declared with `.fspecial' (and
1851         before the check for fonts declared with `.special').  `rfschar'
1852         removes glyphs defined with `fschar'.
1854         * src/roff/troff/token.h (char_mode): New enum.
1855         Declare do_define_character.
1856         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
1857         `mode'.
1858         (charinfo::is_fallback): Updated.
1859         (charinfo::is_special): New method.
1860         * src/roff/troff/input.cc (do_define_character): Add and use
1861         optional second parameter used as a prefix for font-specific glyph
1862         names.
1863         (define_character, define_fallback_character): Updated.
1864         (define_special_character): New function.
1865         (init_input_requests): Add `schar'.
1866         (charinfo::charinfo, charinfo::set_macro): Updated.
1867         * src/roff/troff/node.cc: Include `stringclass.h'.
1868         (make_glyph_node): Handle special glyphs defined with `.schar' and
1869         `.fschar'.
1870         (define_font_special_character, remove_font_special_character): New
1871         functions.
1872         (init_node_requests): Sorted.
1873         Add `fschar' and `rfschar'.
1874         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1875         Document new requests.
1877         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
1878         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
1880 2002-11-08  Werner LEMBERG  <wl@gnu.org>
1882         Added new font `SC' (cmtex10) to devdvi.
1884         * devdvi/generate/Makefile (FONTS): Add `SC'.
1885         (SC): New rule.
1886         * devdvi/generate/textex.map: New map file for cmtex.
1887         * devdvi/SC: New.
1888         * devdvi/Makefile.sub (DEVFILES): Updated.
1889         * tmac/dvi.tmac: Add fspecial entries for SC.
1890         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
1891         found before `S' since the font position of `SC' is lower due to the
1892         gaps in DESC's `font' line.
1893         * tmac/ec.tmac: Add a `special' call.
1894         * NEWS: Updated.
1896         * font/devhtml/R.proto: Remove double entry for `ti'.
1897         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
1898         * tmac/tty-char.tmac: Remove entry for `bq'.
1899         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
1900         * tmac/ec.tmac: Don't remove `aq' glyph.
1901         * tmac/X.tmac: Fix entry for `em'.
1902         Add entries for `fo' and `fc'.
1903         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
1905         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
1906         documentation of `special' and `fspecial' requests.
1908 2002-11-05  Werner LEMBERG  <wl@gnu.org>
1910         * font/devascii/R.proto, font/devcp1047/R.proto,
1911         font/devlatin1/R.proto: Remove entry for `.i'.
1912         * font/devdvi/generate/textt.map: Add entry for `ad'.
1913         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
1914         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
1915         We need this for getting kerning values to compose `/l' and `/L'.
1916         * font/devdvi: Regenerated font definition files for CM fonts.
1917         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
1918         * font/devutf8/R.proto: Ditto.
1919         Remove double entry for `ti'.
1921         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
1922         for (groff) ligatures, `la', and `ra'.
1923         Add "'C", "'c", `IJ', and `ij'.
1924         Remove double entry for `ti'.
1925         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
1926         double entries.
1927         Add "'C", "'c", `IJ', and `ij'.
1928         Fix entries for (groff) ligatures, `la', and `ra'.
1930         * tmac/ps.tmac (ps-achar): New macro.
1931         Define "'c" and "'C".
1932         * tmac/tty.tmac: Add entry for `.i'.
1933         * tmac/X.tmac (X-achar): New macro.
1934         Define "'c", "'C", and `:Y'.
1935         Add entries for `IJ' and `ij'.
1936         * tmac/Xps.tmac (Xps-achar): New macro.
1937         Define "'c" and "'C".
1938         Add entries for `IJ' and `ij'.
1939         * tmac/lbp.tmac (lbp-achar): New macro.
1940         Add fallback characters for all groff ligatures and many other
1941         glyphs.
1942         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
1943         Add entries for `/l' and `/L'.
1944         Define "'c" and "'C".
1945         Add entries for `IJ' and `ij'.
1947 2002-11-02  Larry Kollar  <kollar@alltel.net>
1949         * PROBLEMS: Document how to solve Mac OS X compilation problems.
1951 2002-11-02  Werner LEMBERG  <wl@gnu.org>
1953         Adding support for composite glyphs: \[xxx yyy ...] and the
1954         `composite' request.
1956         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
1957         to Unicode-based glyph names.
1958         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
1959         glyph names to groff glyph names.
1960         * src/roff/troff/uniuni.cc: New file for canonically decomposing
1961         Unicode-based glyph names.
1962         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
1963         for handling Unicode glyph names.
1964         * src/roff/troff/input.cc: Include unicode.h.
1965         (composite_glyph_name): New function.
1966         (token::next) <'['>: Handle Unicode glyph names and composite
1967         glyphs.
1968         (composite_dictionary): New dictionary for the `composite' request.
1969         (composite_request): Implement `composite' request.
1970         (init_input_requests): Add `composite'.
1971         Alphabetically sorted.
1972         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
1973         commented out).
1974         (init_env_requests): Alphabetically sorted.
1975         Removed `tas' and `tar' (already commented out).
1976         * src/roff/troff/Makefile.sub: Updated.
1978 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
1980         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
1981         of options.
1983 2002-10-29  Werner LEMBERG  <wl@gnu.org>
1985         Fix computation of .trunc register.  Additionally, its value (and
1986         the value of the .ne register) is now always set before entering the
1987         trap.
1989         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
1990         `needed_space' before calling `space'.
1991         (top_level_diversion::space): Remove special code for 'sp before the
1992         first page.
1993         Call `begin_page' with the discarded space as a parameter.
1994         (top_level_diversion::begin_page): Add optional parameter to set
1995         `truncated_space'.
1996         * src/roff/troff/div.h: Updated.
1998         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
1999         \n[.ne].
2001         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
2002         (LP): Remove superfluous call to `br'.
2003         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
2004         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2006 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2008         * tmac/doc-ditroff: Remove useless switch/variable -rC.
2009         (doc-setup-header): Don't set page register `%'.
2010         * tmac/doc-nroff: Remove variable `C'.
2011         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
2012         (doc-setup-header): Don't set page register `%'.
2013         Don't call `bp'.
2014         * tmac/doc-common (doc-header): Call `ns'.
2015         (doc-paragraph): Protect .sp with .br so that it survives traps
2016         possibly set by the user.
2017         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
2019         * tmac/doc*: Replace ' with . for consistency if no effect.
2021 2002-10-26  Werner LEMBERG  <wl@gnu.org>
2023         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
2024         so that it survives traps possibly set by the user.
2026         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
2027         (troff_output_file::set_font): Call flush_tbuf if necessary.
2028         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
2029         flush_tbuf and do_motion only if necessary.
2030         (troff_output_file::start_special,
2031         troff_output_file::put_char_width, troff_output_file::put_char,
2032         troff_output_file::draw): Updated.
2033         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2034         vmotion_node::tprint): Undo change 2002-10-23.
2036 2002-10-25  Werner LEMBERG  <wl@gnu.org>
2038         * tmac/www.tmac (DC): Fix case of overlapping images.
2040 2002-10-23  Werner LEMBERG  <wl@gnu.org>
2042         * src/roff/troff/node.cc (troff_output_file::fill_color,
2043         troff_output_file::glyph_color): Set current color before testing
2044         color_flag.
2045         (troff_output_file::put_char_width, troff_output_file::put_char,
2046         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
2047         before glyph_color.
2048         (troff_output_file::file_color, troff_output_file::glyph_color):
2049         Call do_motion.
2050         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2051         vmotion_node::tprint): Move first, then call fill_color.
2053 2002-10-20  Werner LEMBERG  <wl@gnu.org>
2055         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
2056         possible to use multiple main macro packages.
2058 2002-10-19  Werner LEMBERG  <wl@gnu.org>
2060         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
2061         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
2062         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
2063         is set.
2064         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
2065         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
2067 2002-10-16  Werner LEMBERG  <wl@gnu.org>
2069         * NEWS, doc/webpage.ms: Updated.
2071 2002-10-14  Werner LEMBERG  <wl@gnu.org>
2073         * src/roff/troff/node.cc (troff_output_file::put_char_width,
2074         troff_output_file::put_char, troff_output_file::fill_color,
2075         troff_output_file::glyph_color): Handle case where color pointer
2076         is null.
2078 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
2080         Add the new -r option to grotty.  It is similar to the -i option
2081         except it tells grotty(1) to use the "reverse video" attribute to
2082         render italic fonts.
2084         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
2085         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
2086         (tty_printer::make_underline, tty_printer::put_color,
2087         tty_printer::end_page): Use it.
2088         (main): Add -r switch.
2089         (usage): Updated.
2090         * src/devices/grotty/grotty.man: Document it.
2092 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
2094         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
2095         cast to `unsigned char' to properly read patterns with 8bit
2096         characters.
2098 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2100         * REVISION: Increased to 2.
2102 Version 1.18.1 released
2103 =======================
2105 2002-10-08  Werner LEMBERG  <wl@gnu.org>
2107         * doc/webpage.ms, NEWS: Updated.
2109 2002-10-07  Werner LEMBERG  <wl@gnu.org>
2111         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
2112         suppress additional whitespace after the header.
2114         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
2115         with NetBSD.
2117         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
2119 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
2121         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
2122         (Dt): Use it to improve language localization (especially Russian
2123         and French).
2125 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
2127         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
2128         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
2129         drawing commands.
2130         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
2131         curve type.
2132         Call `picurve' for BSPLINE.
2133         (HGPrintElt): Handle BSPLINE.
2134         * src/preproc/grn/README: Document it.
2136 2002-10-03  Werner LEMBERG  <wl@gnu.org>
2138         * src/roff/troff/node.cc (break_char_node::col): New variable.
2139         Updated constructor.
2140         (space_node::tprint, word_space_node::tprint): Call `fill_color'
2141         unconditionally.
2142         (space_node::space_node): Remove assertion.
2143         (break_char_node::add_self): Pass color argument to space node.
2144         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
2145         Ditto.
2146         * src/roff/troff/env.cc (environment::do_break,
2147         environment::add_padding): Ditto.
2149 2002-10-02  Werner LEMBERG  <wl@gnu.org>
2151         Redesigning color support in troff.  Colors are no longer
2152         represented as separate nodes but are now part of glyph nodes and
2153         friends.  This fixes the current formatting misbehaviour due to the
2154         changes introduced on 2002-09-20.  Some extra code is necessary for
2155         proper grotty support: Without adding color variables to
2156         space-related nodes, the background color would be changed too late.
2158         * src/roff/troff/node.h, src/roff/troff/node.cc:
2159         s/current_pagecolor/current_fill_color/.
2160         s/current_glyphcolor/current_glyph_color/.
2161         (glyph_color_node, fill_color_node): Removed.
2162         (node::get_glyph_color, node::get_fill_color): New virtual member
2163         functions.
2164         (space_node::col): New variable.
2165         Updated constructors of space_node and derived classes accordingly.
2166         (hmotion_node::col): New variable.
2167         Updated constructors of hmotion_node and space_char_hmotion_node
2168         accordingly.
2169         (vmotion_node::col): New variable.
2170         Updated constructor accordingly.
2171         (draw_node::gcol, draw_node::fcol): New variables.
2172         Updated constructor accordingly.
2173         (special_node::gcol, special_node::fcol): New variables.
2174         Updated constructors accordingly.
2175         (troff_output_file::put_char, troff_output_file::put_charwidth,
2176         troff_output_file::draw): Set glyph and fill color.
2177         (troff_output_file::start_special): Set glyph and fill color.
2178         Always set current font.
2179         (troff_output_file::fill_color, troff_output_file::glyph_color):
2180         Don't call `do_motion'.
2181         (glyph_node::gcol, glyph_node::fcol): New variables.
2182         Updated constructors of glyph_node and ligature_node accordingly.
2183         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
2184         member functions.
2185         (glyph_node::merge_glyph_node,
2186         kern_pair_node::add_discretionary_hyphen,
2187         node::add_discretionary_hyphen): Updated.
2188         (break_char_node::merge_self): Updated.
2189         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
2190         vmotion_node::tprint): Handle color.
2191         (make_glyph_node, make_node, node::add_char): Updated.
2193         * src/roff/troff/env.cc (environment::space_newline,
2194         environment::space, environment::output_line, environment::do_break,
2195         environment::make_tab_node, environment::add_padding, title):
2196         Updated.
2197         (environment_switch, environment_copy): Don't add color nodes.
2199         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
2200         nothing.
2201         (token::next): Updated.
2202         \m and \M now are as transparent as \s.
2203         (process_input_stack, token::add_to_node_list, token::process,
2204         read_draw_node): Updated.
2205         (charinfo_to_node_list): Don't add color nodes.
2207         * doc/groff.texinfo: Updated.
2209 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
2211         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
2212         strings.
2214 2002-09-27  Colin Watson  <cjwatson@debian.org>
2216         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
2218 2002-09-23  Werner LEMBERG  <wl@gnu.org>
2220         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
2221         appropriate.
2222         (DEFAULT_LINEWIDTH_FACTOR): New macro.
2223         (linewidth_factor): New global variable.
2224         (lbp_printer::set_line_thickness): Fix case for size < 0, using
2225         linewidth_factor.
2226         (long_options): Add -w/--linewidth option.
2227         (usage): Updated.
2228         (main): Handle -w option to set linewidth_factor.
2229         (lbp_printer::lbp_printer): Initialize req_linethickness, not
2230         line_thickness.
2232         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
2234 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
2236         Fixed a bug in the line thickness setting code.
2238         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
2239         variable.
2240         (lbp_printer::set_line_thickness): Pass environment as second
2241         parameter.
2242         Implement it actually.
2243         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
2244         and `set_line_thickness, depending on the current font size.
2246 2002-09-21  Werner LEMBERG  <wl@gnu.org>
2248         Some Debian patches.
2250         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
2251         * src/roff/troff/node.cc (bracket_node::copy): Initialize
2252         `list->last'.
2254 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2256         * configure: Regenerated with autoconf 2.54.
2258 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2260         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
2261         glyph_color.
2262         Rename cur_fill_color to fill_color.
2263         * src/roff/troff/env.cc: Updated.
2265 2002-09-20  Werner LEMBERG  <wl@gnu.org>
2267         * src/roff/troff/env.cc (title): Copy color status after processing
2268         title.
2269         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
2270         fill color nodes to reset colors properly.
2272         * tmac/www.tmac (DC): Fix color handling.
2274         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
2275         * doc/groff.texinfo: Fixing documentation of `tl' request.
2276         * doc/webpage.ms: Updated.
2278 2002-09-19  Werner LEMBERG  <wl@gnu.org>
2280         * src/roff/troff/env.cc (environent_switch, environment_copy):
2281         Emit glyph and fill color nodes to initialize colors properly.
2283 2002-09-17  Colin Watson  <cjwatson@debian.org>
2285         * src/roff/troff/env.cc (environment::set_glyph_color,
2286         environment::set_fill_color): Fix typo which prevented \m[] work
2287         correctly.
2289 2002-09-17  Werner LEMBERG  <wl@gnu.org>
2291         Add left and right italic correction to non-slanted PS fonts.  This
2292         is an experimental feature to improve image rendering of grohtml.
2294         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
2295         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
2296         * font/devps/*: All non-slanted fonts regenerated.
2297         * NEWS: Updated.
2299 2002-09-16  Werner LEMBERG  <wl@gnu.org>
2301         Add a site-specific font directory.
2303         * Makefile.in (localfontdir, legacyfontdir): New variables.
2304         (fontpath): Use them.
2305         (MDEFINES, uninstall_dirs): Updated.
2306         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
2307         Remove `FONTPATH' and `MACROPATH'.
2309         * src/roff/troff/troff.man, NEWS: Updated.
2310         * doc/groff.texinfo (Font Directories): New section.
2311         Other minor fixes.
2313         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
2314         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
2315         src/preproc/grn/grn.man: Minor fixes.
2317         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
2318         Remove unused variable.
2320 2002-09-11  Werner LEMBERG  <wl@gnu.org>
2322         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
2323         * man/groff_out.man: Fix documentation of 'N'.
2325 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
2327         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
2328         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
2329         set.
2330         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
2331         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
2332         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
2333         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
2334         PRE_TAG>: Call `begin' with `FALSE'.
2336 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2338         * src/libs/libgroff/string.cc (string::extract): Fix position of
2339         terminating null byte.
2341 2002-09-08  Werner LEMBERG  <wl@gnu.org>
2343         Add global option `nospaces' to tbl so that leading and trailing
2344         spaces in data items are ignored.
2346         * src/libs/libgroff/string.cc (string::remove_spaces): New member
2347         function to remove leading and trailing spaces.
2348         * src/include/stringclass.h: Updated.
2350         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
2352         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
2353         option.
2354         Fix typo in error messages.
2355         (process_data): Implement `nospaces' option.
2356         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
2358 2002-09-07  Werner LEMBERG  <wl@gnu.org>
2360         * src/include/config.hin: Add `HAVE_ISATTY'.
2361         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
2362         `fname' member.
2363         * src/libs/libgroff/tmpname.cc: Include `time.h'.
2364         * src/libs/libdriver/input.cc (Char): Add `operator==' and
2365         `operator!=' for `char'.
2366         * doc/groff.texinfo: Replace @ifnottex block for top node with
2367         @ifhtml block.
2369 2002-09-06  Werner LEMBERG  <wl@gnu.org>
2371         * doc/Makefile.in (.texinfo.html): Add -I switch.
2372         * doc/groff.texinfo: Add @ifnottex block for top node to make
2373         translation to HTML work.
2375 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
2377         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
2378         (get_papersize, determine_vertical_offset): Removed.
2379         (char_buffer::do_image): Always specify letter size.
2380         (main): Updated.
2381         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
2382         -sPAPERSIZE.
2384 2002-09-05  Werner LEMBERG  <wl@gnu.org>
2386         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
2387         default indentation.
2389 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
2391         * src/preproc/html/pre-html.cc (imageList::createPage): Use
2392         -sPAPERSIZE for gs.
2393         (generateImages): Clean up push-back buffer.
2395 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
2397         * doc/groff.texinfo: Minor fixes.
2399 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2401         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
2402         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
2403         (gsPaper): Removed.
2404         (determine_vertical_offset): Use LETTER_LENGTH.
2405         (createPage): Moved to ...
2406         (imageList::createPage): This.
2407         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
2408         (imageList::getMaxX): New function.
2409         (createImage): Moved to ...
2410         (imageList::createImage): This.
2411         (imageList::createImages): New function.
2412         (generateImages): Read `maxx' directly.
2413         Updated.
2414         (scanArguments): Don't specify `gsPaper' for `-o'.
2415         (makeTempFiles): Call `xtmpfile' with the last argument set to
2416         `TRUE'.
2418 2002-08-24  Werner LEMBERG  <wl@gnu.org>
2420         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
2421         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
2422         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
2423         * src/preproc/html/pushback.cc: Include nonposix.h.
2424         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
2425         conditionally.
2427 2002-08-23  Werner LEMBERG  <wl@gnu.org>
2429         Use $(OBJEXT) for the object file extension.
2431         * Makefile.comm (.SUFFIXES): Add .obj.
2432         (.cc.obj, .c.obj): New implicit rules.
2433         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
2434         (MDEFINES): Add EXEEXT and OBJEXT.
2435         * */Makefile.sub: s/.o/.$(OBJEXT)/.
2437 2002-08-22  Werner LEMBERG  <wl@gnu.org>
2439         * INSTALL: Mention texinfo 4.2 as a prerequisite.
2441 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
2443         * src/devices/grohtml/post-html.cc (colType): Make enum global to
2444         the file.
2445         (html_printer::update_min_max, html_printer::add_table_end): New
2446         methods.
2447         (html_printer::lookahead_for_tables): Use them.
2448         Reset page offset correctly.
2449         (html_printer::~html_printer): Add creation of creator comment up.
2451 2002-08-20  Werner LEMBERG  <wl@gnu.org>
2453         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
2454         * man/groff_tmac.man: Fix typos.
2455         * man/groff_font.man: Minor reordering.
2456         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
2457         * contrib/groffer/groffer.man: Fix typos.
2459 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2461         Avoid endless loops while scanning for tables.
2463         * src/devices/grohtml/post-html.cc (list::insert): Set
2464         ptr->right->left.
2465         (html_printer::next_horiz_pos): Add `text_glob' argument; update
2466         all callers.
2467         Return immediately if that argument is NULL.
2468         (html_printer::calc_nf): Don't test if `g' is NULL.
2469         (html_printer::lookahead_for_tables): Use
2470         `glyphs.move_right_get_data'.
2471         Don't test if `g' is NULL.
2473 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
2475         A better fix, replacing fix 2002-08-15, for increasing SIZE.
2477         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
2478         a pointer.
2479         (char_block::char_block): Allocate `buffer'.
2480         (char_buffer::add_string): Use it.
2482 2002-08-15  Werner LEMBERG  <wl@gnu.org>
2484         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
2485         src/devices/grodvi/grodvi.man: Document default line thickness.
2487 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
2489         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
2490         8192.
2492 2002-08-14  Werner LEMBERG  <wl@gnu.org>
2494         * doc/webpage.ms: Updated.
2496 2002-08-09  Werner LEMBERG  <wl@gnu.org>
2498         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
2499         unbreakable space.
2501 2002-08-08  Aaron Campbell  <aaron@monkey.org>
2503         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
2504         (&& -> &).
2506 2002-08-08  Werner LEMBERG  <wl@gnu.org>
2508         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
2509         tok.next().
2510         (read_gray): Ditto.
2511         Don't push back a space but a newline onto the stack.
2513 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
2515         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
2516         inadvertently.
2518         * src/devices/grohtml/post-html.cc (html_printer::end_font,
2519         html_printer::start_font): Handle them.
2520         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
2521         reset bold and tt.
2522         (html_text::do_bold): Don't reset italic and tt.
2523         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
2524         * font/devhtml/DESC.proto: Add those fonts.
2525         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
2527 2002-08-07  Werner LEMBERG  <wl@gnu.org>
2529         * MORE.STUFF: Added gpresent.
2531         * tmac/trace.tmac: Show nesting level by a corresponding amount of
2532         whitespace before printing the logging message.
2534 2002-07-31  Colin Watson  <cjwatson@debian.org>
2536         * src/devices/grohtml/html-table.cc (html_table::finish_row):
2537         Initialize `n' to zero.  This fixes a segfault on ARM.
2539 2002-07-30  Werner LEMBERG  <wl@gnu.org>
2541         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
2543 2002-07-29  Werner LEMBERG  <wl@gnu.org>
2545         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
2546         final semicolon.
2548 2002-07-28  Colin Watson  <cjwatson@debian.org>
2550         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
2551         `.ps'.
2552         (html_printer::html_printer): Initialize `pointsize'.
2554 2002-07-26  Werner LEMBERG  <wl@gnu.org>
2556         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
2557         gnu.png.
2558         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
2559         (gnu.eps): Add -rle switch to pnmtops.
2560         (distfiles): Add gnu.eps and gnu.png.
2562 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
2564         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
2565         Add `operator!='.
2567 2002-07-24  Werner LEMBERG  <wl@gnu.org>
2569         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
2570         ' \+' but '  *' for sed.
2571         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
2573 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2575         * doc/groff.texinfo: Document `papersize' keyword.
2576         * NEWS, man/groff_font.man: Updated.
2578 2002-07-23  Colin Watson  <cjwatson@debian.org>
2580         Extend papersize keyword to accept more than a single entry.  The
2581         first valid will be used.
2583         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
2584         (font::scan_papersize): Really skip final newline.
2585         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
2587 2002-07-23  Werner LEMBERG  <wl@gnu.org>
2589         * configure.ac: Test for isatty.
2590         * configure: Regenerated.
2591         * src/include/posix.h: Check HAVE_ISATTY.
2592         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
2593         * src/utils/lookbib/lookbib.cc: Include posix.h.
2594         Don't declare isatty.
2596 2002-07-21  Werner LEMBERG  <wl@gnu.org>
2598         * NEWS: Add `output' request.
2600         * REVISION: Increased to 1.
2602 Version 1.18.0 released
2603 =======================
2605 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
2607         Allow internal glyph indices > 0xFF in grohtml for input characters.
2609         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
2610         as parameter.
2611         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
2612         Updated all callers.
2613         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
2614         (html_printer): Updated.
2616 2002-07-19  Werner LEMBERG  <wl@gnu.org>
2618         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
2619         * font/devutf8/R.proto: Adding some missing glyphs.
2620         * font/devutf8/NOTES: Updated.
2622         * tmac/dvi.tmac: Add more composite glyphs.
2623         * tmac/html.tmac: Updated.
2625         * man/groff_char.man: Add `sum' and `product' entities.
2627         * NEWS: Updated.
2629 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
2631         Improved table, tab, and indenting support.
2633         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
2634         string_iterator::suppress_newline_flag): Removed.  Updated all
2635         function which have used it.
2637         * src/roff/troff/env.cc: Include `input.h'.
2638         (environment::add_node): Accept 0 as parameter.
2639         (environment::add_html_tag): Add `force' parameter.
2640         Updated all callers.
2641         (environment::add_html_tag_tabs): Ditto.
2642         For the moment, support left-aligned tabs only.
2643         (environment::make_html_tag): New function.
2644         (fill, no_fill): Set .br html tag additionally.
2645         (environment::newline): Emit `eol.ce' or `eol' tag for html.
2646         (environment::add_html_tag_eol): Removed.
2647         (tab_stops::distance_to_next_tab): Add variant for handling 
2648         nextpos'.
2649         (environment::distance_to_next_tab): Ditto.
2650         Updated all callers.
2651         (environment::handle_tab): Handle tabs for html.
2652         
2653         * src/roff/troff/env.h: Updated.
2655         * src/roff/troff/div.cc: Updated all callers of
2656         `environment::add_html_tag'.
2658         * src/devices/grohtml/html-table.cc,
2659         src/devices/grohtml/html-table.h: New files.
2661         * src/devices/grohtml/html-text.cc (html_text): New members
2662         `blank_para' and `start_space'.
2663         (html_text::issue_tag): Don't emit TABLE_TAG.
2664         Handle indentation for PRE_TAG and P_TAG.
2665         (html_text::end_tag): Updated.
2666         (html_text::table_is_void, html_text::issue_table_begin,
2667         html_text::issue_table_end): Removed.
2668         (html_text::do_push): Simplified.
2669         [DEBUGGING]: Small fix.
2670         (html_text::push_para): Add new parameter for indentation; updated
2671         all callers.
2672         Handle PRE_TAG.
2673         (html_text::do_indent, html_text::do_table, html_text::done_table,
2674         html_text::is_in_table): Removed.
2675         (html_text::do_pre): Handle P_TAG also.
2676         (html_text::shutdown): Handle p->indent.
2677         (html_text::check_emit_text): Simplified.
2678         (html_text::do_emittext): Reset `blank_para'.
2679         (html_text::do_para): Add new parameter for indentation; updated
2680         all callers.
2681         (html_text::remove_indent): New function.
2682         (html_text::do_space): Handle verbatim text properly.
2683         (html_text::ever_emitted_text, html_text::starts_with_space,
2684         html_text::remove_para_align): New functions.
2685         (html_text::dump_stack_element, html_text::dump_stack): Updated.
2687         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
2688         Updated.
2690         * src/devices/grohtml/post-html.cc: Include html-table.h.
2691         (INDENTATION): Removed.
2692         (text_glob): Added many `is_<foo>' functions.
2693         Added table description `tab'.
2694         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
2695         member functions.
2696         (list): Add `insert' and `move_to' member functions.
2697         (page): Add `insert_tag' member function.
2698         (page::dump_page) [DEBUG_TABLES]: Improved.
2699         (html_printer): Add `table' and `max_linelength' elements.
2700         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
2701         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
2702         `remove_tabs', `remove_courier_tabs'.
2703         (html_printer::emit_raw): Handle indentation.
2704         (html_printer::do_center, html_printer::write_header): Updated.
2705         (html_printer::is_courier_until_eol): Check for tag.
2706         (html_printer::do_linelength): Handle max_linelength.
2707         (html_printer::do_page_offset, html_printer::do_indentation): Handle
2708         fill_on.
2709         (html_printer::do_tempindent): Updated.
2710         (html_printer::do_indentedparagraph): Removed.
2711         (html_printer::do_indent): Simplified.
2712         (html_printer::do_eol): Use `ever_emitted_text'.
2713         (html_printer::do_flush, html_printer::do_links): Don't call
2714         done_table.
2715         (html_printer::do_break): Handle end_tempindent.
2716         (html_printer::troff_tag): Get argument.
2717         Don't handle `.ip'.
2718         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
2719         (html_printer::flush_page): Call `lookahead_for_tables'.
2720         Don't call `done_table'.
2721         (html_printer::add_to_sbuf): Always call do_indent.
2723         * src/devices/grohtml/Makefile.sub: Updated.
2725         * tmac/an-old.tmac (TP): Don't handle html device specially.
2726         (an-do-tag-html): New function which will be used instead of
2727         `an-do-tag' if html device is used.
2729         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
2731         * tmac/s.tmac (@IP): Don't handle html device specially.
2732         (@IP-html): New function which will be used instead of `@IP' if
2733         html device is used.
2735         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
2736         is a hack which will eventually vanish again.
2737         (PIMG): Handle `-C' option correctly if not html.
2738         (HR): Use HTML-NS.
2740 2002-07-17  Werner LEMBERG  <wl@gnu.org>
2742         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
2744 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
2746         * contrib/pic2graph/pic2graph.*: Use convert(1).
2747         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
2749 2002-07-14  Bernd Warken  <bwarken@mayn.de>
2751         * tmac/groff_trace.man: New file.
2752         * tmac/Makefile.sub: Updated.
2753         * NEWS: Updated.
2755 2002-07-13  Werner LEMBERG  <wl@gnu.org>
2757         * src/roff/groff/groff.man: Add some cross references.
2759 2002-07-12  Werner LEMBERG  <wl@gnu.org>
2761         * src/roff/troff/input.cc (substring_request): Add warnings for
2762         string indices out of range.
2764 2002-07-11  Werner LEMBERG  <wl@gnu.org>
2766         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
2767         * font/devdvi/*EC: Regenerated.
2769 2002-07-10  Bernd Warken  <bwarken@mayn.de>
2771         * man/groff_char.man: Updated and extended.
2773 2002-07-10  Werner LEMBERG  <wl@gnu.org>
2775         * src/roff/troff/input.cc (length_macro): Renamed to...
2776         (length_request): This.
2777         Move call of `tok.next()' to the very end, otherwise the register
2778         value hasn't been updated yet.
2779         (init_input_requests): Updated.
2781 2002-07-09  Werner LEMBERG  <wl@gnu.org>
2783         * src/roff/troff/input.cc (substring_macro): Renamed to...
2784         (substring_request): This.
2785         (init_input_requests): Updated.
2786         * src/roff/troff/request.h: Updated.
2788 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
2790         * src/roff/grog/grog.sh: Fix typo.
2792 2002-07-08  Werner LEMBERG  <wl@gnu.org>
2794         * win32-diffs: Updated.
2796         Handle `papersize' keyword properly in DESC.
2798         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
2799         type.
2800         Updated all callers.
2801         * src/libs/libgroff/paper.cc: Add four more paper formats used by
2802         grolj4.
2803         * src/include/paper.h: Updated.
2805         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
2806         Other minor C syntax fixes.
2807         (papersize, paperlength, paperwidth): Renamed to `user_*'.
2808         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
2809         members.
2810         (lbp_printer::lbp_printer): Pass three arguments.
2811         Set paper dimensions properly.
2812         (make_printer, main): Updated.
2813         (handle_unknown_desc_command): Fix error messages.
2814         (main): Handle papersize keyword in DESC properly.
2816         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
2817         `user_paper_size'.
2818         (lbp_printer::lbp_printer): Pass an argument.
2819         Set paper_size properly.
2820         (handle_unknown_desc_command): Removed.
2821         (make_printer, main): Updated.
2822         * src/devices/grolj4/grolj4.man: Minor documentation fix.
2824         * man/groff_font.man, NEWS: Updated.
2826 2002-07-07  Werner LEMBERG  <wl@gnu.org>
2828         Integrated eqn2graph, contributed by Eric S. Raymond.
2830         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
2831         files.
2832         * Makefile.in, NEWS: Updated.
2834 2002-06-04  Werner LEMBERG  <wl@gnu.org>
2836         Changing the substring request to make it fit better with other
2837         string manipulation functions in other programming languages:
2838         Index 0 is now the first character in the string, and index -1
2839         indicates the last character.  Since this request didn't work
2840         properly anyway in the last release, it doesn't harm too much to
2841         change the syntax.
2843         * src/roff/troff/input.cc (substring_macro): Use loops to get
2844         the real string length (ignoring COMPATIBLE_SAVE and
2845         COMPATIBLE_RESTORE) and offsets.
2846         Implement change described above.
2848         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
2849         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
2851         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
2853 2002-06-03  Werner LEMBERG  <wl@gnu.org>
2855         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
2856         COMPATIBLE_RESTORE are completely ignored.
2858         * src/roff/troff/input.cc (char_list::set, char_list::get): New
2859         functions.
2860         (macro): `length' field renamed to `len'.
2861         Added new field `empty_macro' (1 if macro is empty), to be used
2862         instead of checking `len'.
2863         Updated all callers.
2864         (macro::empty): Updated.
2865         (macro::length, macro::set, macro::get): New functions.
2866         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2867         Set `empty_macro'.
2868         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
2869         COMPATIBLE_RESTORE pairs.
2870         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
2871         * src/roff/troff/request.h: Updated.
2873         * doc/groff.texinfo: Document .chop's behaviour better.
2875 2002-06-02  Werner LEMBERG  <wl@gnu.org>
2877         * doc/pic.ms: Fix documentation for the addition of positions.
2879         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
2881 2002-06-29  Werner LEMBERG  <wl@gnu.org>
2883         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
2885         * src/roff/troff/input.cc (have_string_arg): New global variable.
2886         (read_mode): New enumeration.
2887         (read_escape_name): Use it.  Update all calls.
2888         (read_long_escape_name): Use it.  Update all calls.
2889         Set have_string_arg if appropriate.
2890         (get_char_for_escape_name): Add parameter for handling space
2891         character.
2892         (interpolate_string_with_args, decode_string_args): New functions.
2893         (get_copy, token::next): Call it if necessary.
2894         (interpolate_string): Fix error message.
2896         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2897         Document it.
2899 2002-06-24  Bernd Warken  <bwarken@mayn.de>
2901         * man/groff_tmac.man: Updated and extended.
2903 2002-06-24  Werner LEMBERG  <wl@gnu.org>
2905         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
2907 2002-06-23  Werner LEMBERG  <wl@gnu.org>
2909         * doc/pic.ms: Improve documentation of composite block objects.
2911 2002-06-22  Werner LEMBERG  <wl@gnu.org>
2913         * src/roff/troff/input.cc (init_registers): Add three registers
2914         `seconds', `minutes', and `hours' to hold the current time.
2916         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
2917         Updated.
2919 2002-06-20  Werner LEMBERG  <wl@gnu.org>
2921         Make \X accept both `\ ' and `\~', converting them to single space
2922         characters.
2924         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
2925         (token::unstretchable_space): New inline function.
2926         * src/roff/troff/input.cc (token::next, token::delimiter,
2927         token::description, token::add_to_node_list, token::process): Handle
2928         TOKEN_UNSTRETCHABLE_NODE.
2929         (encode_char): Handle tok.stretchable_space and
2930         tok.unstretchable_space.
2932         * NEWS, doc/groff.texinfo: Document it..
2934 2002-06-19  Werner LEMBERG  <wl@gnu.org>
2936         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
2938         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
2939         keyword to enable/disable SGR output.
2940         (tty_printer::change_fill_color): New function.
2941         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
2943         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
2944         call.
2946 2002-06-18  Werner LEMBERG  <wl@gnu.org>
2948         Add a `color' request and a `.color' register to control usage of
2949         colours.
2951         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
2952         (color_flag): This (which is the inverse).
2953         (activate_color): New function.
2954         (main, init_input_requests): Updated.
2955         * src/roff/troff/troff.h, src/roff/troff/node.cc
2956         (troff_output_file::fill_color, troff_output_file::glyph_color):
2957         Updated.
2959         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
2960         Document the changes.
2962 2002-06-17  Colin Watson  <cjwatson@debian.org>
2964         Circumvent bug in autoconf 2.53 regarding top_builddir.
2966         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
2967         * Makefile.in, doc/Makefile.in:
2968         s/@top_builddir@/@groff_top_builddir@/.
2969         * configure: Regenerated (with autoconf 2.53).
2971 2002-06-17  Werner LEMBERG  <wl@gnu.org>
2973         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
2974         `paperwidth' and `paperlength' for the `papersize' keyword.
2976 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
2978         * src/devices/grops/grops.man: Add info about Type 42 fonts.
2980 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
2982         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
2983         html_printer::do_linelength, html_printer::do_pageoffset,
2984         html_printer::do_indentation, html_printer::do_tempindent,
2985         html_printer::do_break, html_printer::begin_page): Clear indented
2986         text.
2987         * tmac/html.tmac: Disable hyphenation.
2989 2002-06-15  Werner LEMBERG  <wl@gnu.org>
2991         Don't produce HTML files if utility programs are missing.
2993         * Makefile.in (make_html, make_install_html): New variables.
2994         (MDEFINES): Updated.
2996         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
2997         utility programs.
2998         * configure.ac: Use it.
2999         * configure: Regenerated.
3001         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
3002         (HTMLEXAMPLESFILES): This new variable.
3003         (EXAMPLESIMAGEFILES): Renamed to...
3004         (HTMLEXAMPLEIMAGEFILES): This.
3005         (CLEANADD): Add HTMLEXAMPLEFILES.
3006         (all): Use `make_html'.
3007         (html): New target.
3008         (install_data): Use `make_install_html'.
3009         Move html stuff to...
3010         (install_html): This new target.
3011         (uninstall_sub): Updated.
3013 2002-06-14  Bernd Warken  <bwarken@mayn.de>
3015         * src/roff/grog/Makefile.sub (grog): Renamed to...
3016         (grog.old): This.
3017         (grog): New rule to always install grog.sh as grog.
3019 2002-06-08  Bernd Warken  <bwarken@mayn.de>
3021         * src/roff/grog/grog.pl: Fix typo.
3023 2002-06-07  Werner LEMBERG  <wl@gnu.org>
3025         * doc/groff.texinfo: Add more info on .tr arguments.
3027 2002-06-05  Werner LEMBERG  <wl@gnu.org>
3029         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
3031         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
3032         * configure: Regenerated.
3034 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
3036         * src/roff/troff/symbol.cc (table_sizes): Add more values.
3038         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
3040 2002-06-04  Werner LEMBERG  <wl@gnu.org>
3042         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
3043         is not initialized at the time we need it in case `--prefix' hasn't
3044         been set.  Check for `ac_default_prefix' also.
3045         Test for `papersize' keyword also and generalize allowed whitespace.
3046         * configure: Regenerated.
3048         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
3049         `paperlength'.
3051         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
3052         with...
3053         (src_version, src_revision): New variables to avoid overwriting
3054         from parent make process.
3055         (version.cc): Updated.
3057         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
3058         (linebuf, linebufsize): New global variables.
3059         (sys_fatal): Use `fatal' to abort properly.
3060         (get_line): New function.
3061         (get_resolution): Use it.
3062         Improve error messages.
3063         (get_papersize): Check `papersize' also.
3064         Use `get_line'.
3065         Improve error messages.
3067 2002-06-03  Werner LEMBERG  <wl@gnu.org>
3069         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
3070         should be removed only if builddir is not srcdir.
3071         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
3072         (clean): Depend on `mostlyclean'.
3073         (distclean): Depend on `clean'.
3074         (realclean, extraclean): Depend on `distclean'.
3075         (.y.cc, .y.o): Simplified.  The output files are no longer written
3076         to srcdir but to builddir.
3077         * Makefile.in (MDEFINES): Add `version' and `revision'.
3078         (uninstall_dirs): Fix order of directories.
3079         * doc/Makefile.sub (version, revision): Removed.
3080         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
3081         Added `HTMLDOCFILES'.
3082         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
3083         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
3084         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
3085         as prefix.
3087         * doc/texinfo.tex (\authortt): New macro.
3088         (\shortcontt): Define.
3089         (\titlepage): Set \tt to \authortt while defining \authorfont.
3090         (\appendixbox): New macro.
3091         (\chapmacro, \appendixentry): Use \appendixbox to get even
3092         indentation for letters.
3093         (\summarycontents): Set \tt.
3094         (\internalpagesize): Add two arguments for real paper width and
3095         height as needed by pdfTeX.
3096         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
3097         Updated.
3098         (\tempdima, \tempdimb): New temporary dimensions.
3099         (\pagesizesyyy): Updated.
3101 2002-06-02  Werner LEMBERG  <wl@gnu.org>
3103         Adding a new keyword `papersize' to the DESC file format (similar
3104         but not completely identical to grolbp's extension).  grops now has
3105         a -p command line option to override `papersize'.  Finally, grolbp
3106         has been adapted to the new syntax.
3108         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
3109         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
3110         elements.
3111         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
3112         (CCSRCS): Add `paper.cc'.
3114         * src/include/font.h (font): Add `papersize' element.
3115         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
3116         (font::scan_papersize): New function.
3117         (font::load_desc): Use it for handling `papersize' keyword.
3118         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
3120         * src/devices/grops/ps.cc: Include paper.h.
3121         (user_paper_length): New global variable.
3122         (ps_printer): Use paper length as initializer.
3123         (make_printer): Updated.
3124         (main): Handle new `-p' option.
3125         * src/devices/grops/grops.man: Updated.
3127         * src/devices/grolbp/lbp.cc: Include paper.h.
3128         s/papersizes/lbp_papersizes/.
3129         (set_papersize): Use new `papersizes' array.
3130         (handle_unknown_desc_command): Don't handle `papersize'.
3131         (main): Use `font::scan_papersize' for handling `-p' option.
3132         * src/devices/grolbp/grolbp.man: Updated.
3134         * man/groff_font.man: Document `papersize'.
3135         * NEWS: Updated.
3137 2002-05-30  Werner LEMBERG  <wl@gnu.org>
3139         * src/devices/grops/TODO: Updated.
3140         * src/devices/grops/grops.man: More info on paper formats.
3141         * man/groff_font.man: Document `paperheight' and `paperwidth'.
3143 2002-05-29  Werner LEMBERG  <wl@gnu.org>
3145         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
3146         to list only if srcdir != currdir.
3147         (distfiles): New target.
3149         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
3150         (NOMAKEDIRS): New variable.
3151         (DISTDIRS): Use it.
3153 2002-05-26  Werner LEMBERG  <wl@gnu.org>
3155         Add .output request, similar to \! at top-level.
3157         * src/roff/troff/input.cc (transparent): Remove unused declaration.
3158         (output_request): New function.
3159         (init_input_requests): Add it.
3160         Sorted.
3161         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3162         Document it.
3164         * Makefile.in (MDEFINES): Add INSTALL_INFO.
3165         (prepare_examples): Fix typo.
3166         * doc/groff.texinfo (@direntry): Fix it.
3168 2002-05-25  Werner LEMBERG  <wl@gnu.org>
3170         Including the doc subdir into groff's Makefile system.
3172         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
3173         * configure.ac: Use it.
3174         Generate `doc/Makefile'.
3175         * configure: Regenerated.
3177         * Makefile.in (infodir, INSTALL_INFO): New variables.
3178         (MDEFINES, uninstall_dirs): Updated.
3179         (OTHERDIRS): Add `doc'.
3180         * Makefile.comm (CLEANDIRADD): New variable.
3181         (mostlyclean): Use it.
3183         * doc/Makefile.sub, doc/Makefile.in: New files.
3184         * doc/Makefile: Removed.
3186         * NEWS, INSTALL: Updated.
3188 2002-05-24  Werner LEMBERG  <wl@gnu.org>
3190         * doc/homepage.ms: Renamed to ...
3191         * doc/webpage.ms: This.
3192         Use `.NHR'.
3194 2002-05-23  Werner LEMBERG  <wl@gnu.org>
3196         Integrating the `mom' macro package, contributed by Peter Schaffter
3197         <df191@ncf.ca>.
3199         * contrib/mom/*: New subdirectory tree.
3200         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
3201         be used for documentation files.
3202         (MDEFINES, uninstall_dirs): Use them.
3203         (OTHERDIRS): Add contrib/mom.
3204         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
3205         @HTMLDOCDIR@.
3206         * MANIFEST, NEWS: Updated.
3208 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
3210         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
3211         if at outer level; at start-up we are at outer level.
3213         * src/roff/troff/input.cc (do_suppress): Implement it.
3214         Simplify \O[3].
3216         Add option -p to show progress information.
3217         pre-grohtml will now render only one page at a time, reducing the
3218         size of needed disk resources enormously.
3220         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
3221         (imagePageName): New global variable.
3222         (psPageName, show_progress, currentPageNo): New global variables.
3223         (html_system): Close saved stderr and stdout handles.
3224         (write_end_image): Accept a parameter to control \O escape.
3225         (write_start_image): Adapted to new \O meaning.
3226         (char_buffer::write_upto_newline): Updated.
3227         (createAllPages): Replaced with...
3228         (createPage): This new function to create a single page for images.
3229         It uses `psselect' from the psutils package.
3230         (removeAllPages): Removed.
3231         (createImage): Updated.
3232         Handle progress display.
3233         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
3234         (scanArguments): Add option -p.
3235         (makeTempFiles): Updated to create temp files for psPageName and
3236         imagePageName.
3237         (removeTempFiles): Removed.
3238         (main): Updated.
3240         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
3241         html_printer::write_header): Append `\0' to `buffer'.
3242         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
3243         (main): Handle -p.
3244         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
3245         Handle `text_emitted'.
3246         (html_text::table_is_void): Slightly rewritten.
3247         (stop): New external symbol.
3248         (html_text::do_push) [DEBUGGING]: Use it and simplify.
3249         (html_text::shutdown): Call `dump_stack'.
3250         (html_text::do_space): Rewritten.
3251         * src/devices/grohtml/grohtml.man: Document -p and the need of
3252         `psselect'.
3254         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
3255         new \O syntax.
3256         Call \O[0] if `ps4html' is active.
3257         * tmac/s.tmac (@EQ, @EN): Handle html better.
3258         (@TS, TE): Ditto.
3259         * tmac/html.tmac: Don't use black for background colour.
3261         * src/roff/troff/node.cc: Include `div.h'.
3262         (troff_output_file::really_print_line): Don't use `is_on'. 
3263         (troff_output_file::word_marker, troff_output_file::flush_tbuf
3264         troff_output_file::check_charinfo,
3265         troff_output_file::put_char_width, troff_output_file::put_char,
3266         troff_output_file::determine_line_limits, troff_output_file::draw,
3267         real_output_file::begin_page, glyph_color_node::tprintf,
3268         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
3269         Use `is_on'.
3270         (troff_output_file::really_on): Call `do_motion'.
3271         (suppress_node::tprint): Use `get_page_number' instead of `%'
3272         register.
3273         Call `reset_output_registers' conditionally on `is_on'.
3275         * doc/groff.texinfo: Document new syntax of \O.
3276         * NEWS, man/groff_diff.man: Updated.
3278 2002-05-22  Werner LEMBERG  <wl@gnu.org>
3280         * MORE.STUFF: Add info about David Frey's deroff implementation.
3281         Mention troff.org.
3283 2002-05-16  Werner LEMBERG  <wl@gnu.org>
3285         Pic's `with' attribute now accepts positions.
3287         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
3288         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
3289         conflicts.
3290         (object_spec): Add rule for `WITH' and `position'.
3291         (relative_path): Give `corner' the precedence of `CHOP'.
3292         * src/preproc/pic/object.h (path): New members `pos' and
3293         `is_position'.
3294         * src/preproc/pic/object.cc: Updated initializers of `path'.
3295         (path::follow): Handle `is_position'.
3297         * doc/pic.ms: Completely updated grammar description.
3298         Many typographical improvements.
3300 2002-05-15  Werner LEMBERG  <wl@gnu.org>
3302         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
3303         code of x in range 0-127) also.
3304         * doc/groff.texinfo, man/groff_diff.man: Updated.
3306         Added keywords `north', `south', `east', and `west' for corners
3307         in pic.
3309         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
3310         and WEST.
3311         (yylex): Handle them.
3312         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
3313         (corner): Handle them.
3315 2002-05-14  Werner LEMBERG  <wl@gnu.org>
3317         * src/devices/grops/grops.man: Clarify handling of `download' file.
3319 2002-05-11  Werner LEMBERG  <wl@gnu.org>
3321         Adding `warnscale' and `spreadwarn' requests, based on a patch from
3322         Jeffrey Friedl <jfriedl@yahoo.com>.
3324         * src/roff/troff/input.cc (spread_limit, warn_scale,
3325         warn_scaling_indicator): New global variables.
3326         (warnscale_request, spreadwarn_requests): New functions.
3327         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
3328         (init_input_requests): Updated.
3329         (error_type): Add `OUTPUT_WARNING'.
3330         (do_error): Handle it.
3331         (output_warning): New warning function which shows output location.
3332         * src/roff/troff/env.h (spread_limit): New external variable.
3333         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
3334         `output_warning'.
3335         (distribute_space): Emit warning if added space is larger than
3336         `spread_limit'.
3337         (environment::possibly_break_line): Emit warning if a line can't
3338         be adjusted on both sides.
3340         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
3342 2002-05-08  Werner LEMBERG  <wl@gnu.org>
3344         * src/roff/troff/node.cc (special_node::special_node): Use
3345         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
3346         \X''\% crashes, for example.
3348         * doc/groff.texinfo: Document \! and \? used at top-level.
3350 2002-05-06  Werner LEMBERG  <wl@gnu.org>
3352         * src/preproc/pic/pic.man: Fix some keyword syntax.
3353         Other minor typographical fixes.
3355         * src/roff/groff/groff.man: Fix typos.
3357 2002-05-04  Werner LEMBERG  <wl@gnu.org>
3359         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
3360         (ShortOpt[]): This to avoid problems with refer.
3362         * doc/pic.ms: Fix typo.
3363         Fix pic grammar description.
3365         * tmac/an-old.tmac (ne): Use de1, not de.
3367 2002-05-03  Werner LEMBERG  <wl@gnu.org>
3369         * doc/groff.texinfo: Finished separation of glyphs and characters.
3370         Don't use the string `Appendix' for appendix headers (both in
3371         the text and the table of contents).
3372         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
3373         directories.
3375         Use registers LL and LT (similar to -ms) for controlling the
3376         length of title and line, respectively, in the -man and -mdoc
3377         macro packages.
3379         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
3380         (doc-setup-page-layout): Use \n[LL] and \n[LT].
3381         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
3382         (TH): Use \n[LL].
3383         (an-header, an-p-footer): Use \n[LT].
3384         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
3385         doc/groff.texinfo: Document it.
3387 2002-05-02  Werner LEMBERG  <wl@gnu.org>
3389         * doc/fdl.texi: New file.
3390         * doc/groff.texinfo: Include it.
3391         Define and use @copying.
3392         Starting with separating glyph, symbol, and character.
3394 2002-04-27  Werner LEMBERG  <wl@gnu.org>
3396         * Makefile.in (EXEEXT): Set it.
3397         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
3398         programs.
3400         * src/include/nonposix.h: Define GS_NAME.
3401         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
3403         Some preliminary changes for EMX support under OS/2.
3405         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
3406         __EMX__ similar to __MSDOS__.
3407         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
3409 2002-04-25  Werner LEMBERG  <wl@gnu.org>
3411         * doc/groff.texinfo: Integrated groff_out.man.
3412         Some macro fixes.
3414 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3416         * man/groff_out.man: Minor fixes.
3418 2002-04-23  Werner LEMBERG  <wl@gnu.org>
3420         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
3421         correct page references.
3422         Fixed many index entries.
3424 2002-04-23  Bernd Warken  <bwarken@mayn.de>
3426         * man/roff.man: Enlarged.
3428 2002-04-22  Werner LEMBERG  <wl@gnu.org>
3430         * doc/groff.texinfo: More examples, other fixes.
3432 2002-04-20  Werner LEMBERG  <wl@gnu.org>
3434         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
3435         will now form a chain, e.g.
3437           .pi foo
3438           .pi bar
3440         is now the same as
3442           .pi foo | bar
3444         This is for compatibility with plan 9's troff.
3446         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
3447         with UNIX troff.
3448         * NEWS: Updated.
3450         * doc/groff.texinfo: Add documentation of remaining requests and
3451         registers.
3453 2002-04-19  Werner LEMBERG  <wl@gnu.org>
3455         * doc/groff.texinfo: Add documentation of remaining escapes.
3457         * font/devdvi/generate/tc.map: Remove entry for `sr'.
3458         * font/devdvi/*TC: Regenerated.
3460 2002-04-18  Werner LEMBERG  <wl@gnu.org>
3462         * src/roff/troff/input.cc (token::next): Make \H behave consistently
3463         if not in compatibility mode, i.e., increment relative to the
3464         previous height.
3465         * doc/groff.texinfo: Updated accordingly.
3467 2002-04-17  Werner LEMBERG  <wl@gnu.org>
3469         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
3471 2002-04-16  Bernd Warken  <bwarken@mayn.de>
3473         * src/roff/groff/groff.man: Improve documentation of -P option.
3474         Other minor fixes.
3476 2002-04-15  Werner LEMBERG  <wl@gnu.org>
3478         Add new escape \F to switch font family.
3480         * src/roff/troff/input.cc (token::next): Handle \F.
3481         * src/roff/troff/env.cc (environment::set_family): Handle
3482         `interrupted' flag.
3483         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
3484         Document it.
3486 2002-04-14  Werner LEMBERG  <wl@gnu.org>
3488         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
3489         spaces in tags.
3491 2002-04-13  Werner LEMBERG  <wl@gnu.org>
3493         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
3494         \m[] and \M[], respectively.
3496         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
3497         (symbol::symbol): Handle NULL string and empty string differently.
3498         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
3499         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
3500         Add optional parameter.
3501         Updated calling functions.
3502         (get_copy, do_glyph_color, do_fill_color, token::next): Use
3503         `symbol::is_empty'.
3504         * src/roff/troff/env.cc (environment::set_font): Ditto.
3506         * src/preproc/pic/troff.cc (troff_output::set_fill,
3507         troff_output::reset_color: Updated.
3509         * tmac/www.tmac: Updated.
3511         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
3512         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
3513         Updated.
3515         * tmac/Xps.tmac: Remove some redundant code.
3517         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
3518         tmac/dvi.tmac, contrib/groffer/groffer.man, man/roff.man,
3519         man/groff_out.man, man/groff.man, man/groff_diff.man,
3520         src/roff/groff/groff.man: Replace \f[P] with \f[].
3522 2002-04-13  Bernd Warken  <bwarken@mayn.de>
3524         * src/include/printer.h, src/libs/libdriver/printer.cc
3525         (printer::change_fill_color): New member function.
3526         * src/libs/libdriver/input.cc (parse_D_command): Use it.
3528 2002-04-12  Werner LEMBERG  <wl@gnu.org>
3530         * doc/groff.texinfo: Completed pass on gtroff reference.
3532 2002-04-11  Werner LEMBERG  <wl@gnu.org>
3534         * doc/groff.texinfo: More fixes.
3536 2002-04-11  Bernd Warken  <bwarken@mayn.de>
3538         * src/include/color.h: Decorate with `const'.
3539         Use `size_t'.
3540         Include `stddef.h'.
3541         * src/libs/libgroff.color.cc: Decorate with `const'.
3542         Use `size_t'.
3543         (color::color): Initialize members.
3544         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
3545         command according to the documentation.
3547         * man/groff_out.man: Updated.
3548         Minor fixes.
3550 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
3552         * src/preproc/html/pre-html.cc (write_start_image): Remove
3553         redundant output.
3554         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
3556         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
3557         \C'hy' caused an assertion failure.
3559         * src/roff/troff/env.cc (environment::environment): Initialize
3560         `emitted_node'.
3561         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
3563 2002-04-10  Werner LEMBERG  <wl@gnu.org>
3565         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
3566         Document pvs request and .pvs register.
3568 2002-04-09  Werner LEMBERG  <wl@gnu.org>
3570         * doc/groff.texinfo: Improve and fix documentation of diversions
3571         and environments.
3573 2002-04-08  Werner LEMBERG  <wl@gnu.org>
3575         * doc/groff.texinfo: Fix documentation of drawing functions.
3576         Other minor fixes.
3578 2002-04-07  Werner LEMBERG  <wl@gnu.org>
3580         * doc/groff.texinfo: Better documentation of double quotes as
3581         arguments.
3582         Other minor fixes.
3584 2002-04-06  Werner LEMBERG  <wl@gnu.org>
3586         * man/groff_font.man: Document names of special characters better.
3587         * doc/groff.texinfo: Minor improvements.
3589         * tmac/lbp.tmac: Load latin1.tmac.
3590         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
3592         * font/devX*/*: Regenerated (all chars > 0x80 removed).
3594 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3596         * tmac/tty.tmac: Don't use shc request.
3597         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
3598         * NEWS: Updated.
3600         * man/groff_diff.man: Minor fixes.
3602         * font/devlbp/*: Remove all `charXXX' entities.
3604         * src/libs/libgroff/font.cc (font::~font): Deallocate
3605         `special_device_coding'.
3606         (font::load): Use `new' for allocating `special_device_coding'.
3607         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
3608         Removed unused member.
3610 2002-04-05  Werner LEMBERG  <wl@gnu.org>
3612         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
3613         (resource_manager::do_begin_binary,
3614         resource_manager::do_begin_data): Use it.
3616         * doc/texinfo.tex: Updated to version 4.2.
3618         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
3619         (token::zero_width_break): New inline function.
3620         * src/roff/troff/input.cc (token::next): Use it.
3621         (token::description): Updated.
3622         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
3623         (token::add_to_node_list, token::process): Use it.
3624         * NEWS, doc/groff.texinfo: Updated.
3626         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
3627         * tmac/tty.tmac: Add missing backslash.
3629 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
3631         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
3632         `.ps' register instead of `.s' to handle fractional point sizes.
3633         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
3634         limit_box::output): Ditto.
3635         * src/preproc/eqn/other.cc (size_box::compute_metrics,
3636         size_box::output): Ditto.
3637         * src/preproc/eqn/over.cc (over_box::compute_metrics,
3638         over_box::output): Ditto.
3639         * src/preproc/eqn/script.cc (script_box::compute_metrics,
3640         script_box::output): Ditto.
3641         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
3642         sqrt_box::output): Ditto.
3644 2002-04-03  Michael Selway  <mas@ssl.co.uk>
3646         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
3647         Fix typo.
3649 2002-04-03  Werner LEMBERG  <wl@gnu.org>
3651         * doc/homepage.ms: Reduce title size.
3652         * doc/groff.texinfo: Fix documentation of .t register.
3653         Fix handling of colon.
3654         Fix `\' vs. `\\'.
3656         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
3657         only if page length is positive to avoid a loop.
3659         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
3660         tbl.
3662 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
3664         * src/include/nonposix.h, src/roff/groff/pipeline.c:
3665         s/__CYGWIN32__/__CYGWIN__/.
3667 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
3669         * doc/gnu.xpm: New image contributed by Emily Mulley.
3670         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
3671         (homepage.html): Be dependent on gnu.eps.
3672         * doc/homepage.ms: Updated to new image.
3674         * src/devices/grohtml/post-html.cc (html_printer): New member
3675         `sbuf_prev_hpos'.
3676         (html_printer::flush_sbuf, html_printer::set_char): Set it.
3677         (html_printer::sbuf_continuation): Use it.
3679 2002-03-28  Werner LEMBERG  <wl@gnu.org>
3681         * src/libs/libgroff/getopt.c: Updated to latest version.
3683         * tmac/README: More on hyphen.tex license.
3685 2002-03-26  Larry Kollar  <kollar@alltel.net>
3687         * doc/groff.texinfo: Add documentation of most missing requests.
3689 2002-03-25  Werner LEMBERG  <wl@gnu.org>
3691         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
3692         of `+-', `mu', and `di', respectively.
3694         * font/devascii/R.proto, font/devutf8/R.proto,
3695         font/devlatin1/R.proto, font/devhtml/R.proto,
3696         font/devcp1047/R.proto, font/devlpb/*: Add them.
3697         * font/devps/generate/textmap: Ditto.
3698         * font/devps/*: Regenerated.
3699         * font/devlj4/generate/text.map: Add them.
3700         * font/devlj4/*: Regenerated.
3701         * font/devdvi/generate/tc.map: Use them.
3702         * font/devdvi/generate/texsy.map: Add them.
3703         * font/devdvi/*: Regenerated.
3704         * font/devX*/*: Regenerated.
3706         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
3707         tmac/tty-char.tmac: Updated.
3709         * NEWS, man/groff_char.man: Updated.
3711 2002-03-24  Werner LEMBERG  <wl@gnu.org>
3713         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
3714         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
3715         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
3716         we use `.fchar' in dvi.tmac.
3717         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
3718         * tmac/Xps.tmac: Simplify some char definitions.
3719         Add definition for \[f/].
3720         * man/groff_char.man: Updated for new X.tmac.
3722         * tmac/README: New file.
3724 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
3726         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
3727         internal .y.o rule took precendence over the .y.cc rule, compiling
3728         the yacc files with gcc instead of g++.
3730 2002-03-23  Werner LEMBERG  <wl@gnu.org>
3732         * tmac/dvi.tmac: Add replacement font for `CB'.
3734         * tmac/doc.tmac: s/request/macro/ in messages.
3735         (doc-generic-macro): Improve error message.
3736         * tmac/groff_mdoc.man: Minor improvements.
3738 2002-03-22  Werner LEMBERG  <wl@gnu.org>
3740         * doc/groff.texinfo: Document possible conflict between `tr' and
3741         `char' requests.
3743 2002-03-21  Werner LEMBERG  <wl@gnu.org>
3745         Improve handling of hyphenation patterns.  It is now possible to
3746         use most of TeX's pattern files unmodified.  To make the process
3747         more flexible, a new request `hpfcode' has been added which
3748         provides a character code mapping for the `hpf' request.  See
3749         comment before hpf_getc() for more details.
3751         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
3752         functions.
3753         (read_patterns_file): Additional parameter for exception dictionary.
3754         Extended to recognize \pattern, \hyphenation, and \endinput.
3755         (do_hyphenation_patterns_file): Updated.
3756         * src/roff/troff/env.h (hpf_code_table): New extern.
3758         * src/roff/troff/input.cc (hpf_code_table): New array.
3759         (init_hpf_code_table, hyphenation_patterns_file_code): New
3760         functions.
3761         (hyphenation_code): Handle translation from `trin' correctly.
3762         (main, init_input_requests): Updated.
3763         (charinfo::set_translation): Handle hyphenation code also.
3765         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
3766         inline function.
3768         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
3769         char' is used for offsets in hyphenation exceptions.
3771         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
3773         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3775 2002-03-20  Larry Kollar  <kollar@alltel.net>
3777         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
3778         requests.
3780 2002-03-18  Werner LEMBERG  <wl@gnu.org>
3782         * tmac/html.tmac: Fix serious typo.
3784 2002-03-17  Larry Kollar  <kollar@alltel.net>
3786         * doc/groff.texinfo: Add documentation for `writec' request.
3788 2002-03-17  Werner LEMBERG  <wl@gnu.org>
3790         Added request `hpfa' to append hyphenation patterns.
3792         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
3793         parameter `append'.
3794         (hyphenation_patterns_file): Renamed to...
3795         (do_hyphenation_patterns_file): This.
3796         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
3797         functions.
3798         (init_hyphen_requests): Updated.
3799         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3801 2002-03-16  Werner LEMBERG  <wl@gnu.org>
3803         Added request `writec' in analogy to `tmc'.
3805         * src/roff/troff/input.cc (write_request): Renamed to...
3806         (do_write_request): This.
3807         Added one parameter.
3808         (write_request, write_request_continue): New functions.
3809         (init_input_requests): Updated.
3810         * NEWS, man/groff.man, man/groff_diff.man: Document it.
3812         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
3813         5-10000pt.
3814         * NEWS: Document it.
3816 2002-03-15  Werner LEMBERG  <wl@gnu.org>
3818         * man/groff.man: Add writem request.
3820         Add request `trin' (translate input) to make `.asciify' work
3821         correctly.  This is necessary since `charXXX' entity names are no
3822         longer hardcoded in font definition files.
3824         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
3825         `translate_input' members.
3826         (charinfo::set_asciify_code, charinfo::get_asciify_code,
3827         charinfo::set_translation_input): New methods.
3828         (charinfo::set_translation): Add third argument.
3829         * src/roff/troff/input.cc (charinfo:set_translation): Set
3830         `asciify_code'.
3831         (do_translate): Add second argument.
3832         (translate_input): New function.
3833         (init_input_requests): Updated.
3834         * src/roff/troff/node.cc (glyph_node::asciify,
3835         composite_node::asciify): Use `get_asciify_code'.
3837         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
3839         * NEWS, man/groff.man, man/groff_diff.man: Updated.
3841 2002-03-14  Larry Kollar  <kollar@alltel.net>
3843         * doc/groff.texinfo: Improve documentation of .RS and .RE.
3845 2002-03-14  Werner LEMBERG  <wl@gnu.org>
3847         Add a new request `sizes' similar to the `sizes' command in DESC
3848         files.
3850         * src/roff/troff/env.cc (override_sizes): New function.
3851         (init_env_requests): Use it.
3852         * src/roff/troff/token.h: Export `read_string'.
3853         * NEWS, man/groff_diff.man, man/groff.man: Document it.
3855 2002-03-12  Werner LEMBERG  <wl@gnu.org>
3857         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
3859 2002-03-10  Werner LEMBERG  <wl@gnu.org>
3861         * tmac/pspic.tmac: Add support for -Tdvi.
3862         * tmac/dvi.tmac: Include pspic.tmac.
3863         * src/devices/grodvi/grodvi.man: Document it.
3864         * NEWS: Updated.
3866         * font/devlj4/generate/Makefile: Fix URL of metric files.
3868 2002-03-09  Werner LEMBERG  <wl@gnu.org>
3870         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
3872 2002-03-09  Larry Kollar  <kollar@alltel.net>
3874         * tmac/groff_ms.man: Add documentation for RS and RE macros.
3876 2002-03-08  Werner LEMBERG  <wl@gnu.org>
3878         * doc/groff.texinfo: Fixes for texinfo 4.1.
3880 2002-03-07  Werner LEMBERG  <wl@gnu.org>
3882         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
3883         included.
3884         Handle CYGWIN properly.
3886 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
3888         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
3889         * tmac/lbp.tmac: Add some font translations.
3891 2002-03-02  Werner LEMBERG  <wl@gnu.org>
3893         * font/devcp1047/R.proto, font/devlatin1/R.proto,
3894         font/devhtml/R.proto: Remove `charXXX'  entries.
3895         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
3896         where appropriate.
3898         * font/devlj4/generate/text.map: Remove `charXXX' entries.
3899         * font/devlj4/*: Regenerated all font definition files.
3900         * tmac/lj4.tmac: Load latin1.tmac.
3902         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
3903         from 2000-06-17: LJ4 metric files are *not* text files.
3905         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
3906         register to test for EBCDIC.
3908 2002-03-01  Werner LEMBERG  <wl@gnu.org>
3910         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
3911         files (as grops already does).
3912         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
3913         files.
3914         * src/devices/grops/grops.man: Document comment lines in encoding
3915         files.
3917         * tmac/cp1047.tmac: New file.
3918         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
3919         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
3920         * tmac/Makefile.sub (NORMALFILES): Updated.
3922         * tmac/ec.tmac: Don't load latin1.tmac again.
3924         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
3925         font/devps/generate/dingbats.map,
3926         font/devps/generate/dingbats.rmap, font/devps/text.enc,
3927         font/devps/generate/Makefile (symbolmap): Add header comment.
3928         * font/devps/generate/textmap: Ditto.
3929         Remove `charXXX' entries.
3930         * font/devps/symbolmap: Regenerated.
3931         * font/devps/*: Regenerated all font definition files.
3933 2002-02-28  Werner LEMBERG  <wl@gnu.org>
3935         Add color support to grodvi (for drawing colors are currently
3936         translated to gray values).
3938         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
3939         (dvi_printer): Add `cur_color' member.
3940         (dvi_printer::set_color): New function.
3941         (draw_dvi_printer): Remove `fill'.
3942         (draw_dvi_printer::fill_next): Pass environment as parameter.
3943         Update code for new color support translated to gray.
3944         (dvi_printer::set_char): Updated.
3945         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
3946         changes crossing the page border.
3947         (dvi_printer::draw): Updated.
3948         Remove cases `f' and `F'.
3949         * tmac/dvi.tmac: Add color definitions.
3950         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3952         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
3953         used incorrectly.
3955         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
3956         versions of autoconf.
3957         * configure: Updated.
3959         * doc/homepage.ms: Use `.blm'.
3960         * tmac/www.tmac (www-depth): New auxiliary variable.
3961         (www-pop-level): Don't issue HTML tag.
3962         (ULS, ULE, LI): Use absolute indentation.
3964         * src/devices/grops/ps.cc (ps_printer::begin_page,
3965         ps_printer::end_page): Switch forth and back to default color while
3966         starting a new page.
3968 2002-02-27  Werner LEMBERG  <wl@gnu.org>
3970         Add EC and TC fonts to devdvi.
3972         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
3973         * font/devdvi/generate/cork.map: Renamed to...
3974         * font/devdvi/generate/ec.map: This.
3975         Remove entry for `aq'.
3976         * font/devdvi/generate/tc.map: New file.
3977         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
3978         EC and TC fonts.
3979         (FONTS): Updated.
3980         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
3981         * font/devdvi/Makefile.sub (DEVFILES): Updated.
3982         * tmac/ec.tmac: New file.
3983         * tmac/Makefile.sub (NORMALFILES): Updated.
3984         * NEWS, src/devices/grodvi/grodvi.man: Updated.
3985         * man/groff_char.man: Check `ECFONTS' register.
3987         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
3989 2002-02-26  Werner LEMBERG  <wl@gnu.org>
3991         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
3992         * font/devdvi/generate/cork.map: Add 'y and 'Y.
3993         * font/devdvi/*: Updated.
3994         * tmac/dvi.tmac: Formatting.
3996         Add font `HBI' for the dvi output.
3997         Add support for font families `T' and `H'.
3999         * font/devdvi/HBI: New file.
4000         * font/devdvi/B: Renamed to ...
4001         * font/devdvi/TB: This.
4002         * font/devdvi/BI: Renamed to ...
4003         * font/devdvi/TBI: This.
4004         * font/devdvi/I: Renamed to ...
4005         * font/devdvi/TI: This.
4006         * font/devdvi/R: Renamed to ...
4007         * font/devdvi/TR: This.
4008         * font/devdvi/H: Renamed to ...
4009         * font/devdvi/HR: This.
4010         * font/devdvi/Makefile.sub (DEVFILES): Updated.
4011         * font/devdvi/generate/Makefile (HBI): New rule.
4012         (FONTS): Updated.
4013         (R, I, B, BI, H): Renamed to ...
4014         (TR, TI, TB, TBI, HR): This, respectively.
4015         (srcdir): Fixed.
4016         * NEWS, src/devices/grodvi/grodvi.man: Updated.
4017         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
4018         Add `styles' and `family' keywords.
4019         * tmac/dvi.tmac: Alias `H' to `HR'.
4020         Add some fspecial requests for italic fonts.
4021         Add TR and TI as special.
4022         Add support for `_' with font CWI.
4024         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
4025         operator `:'.  Until now, the expression `0:1' would return 2
4026         instead of 1.
4028 2002-02-25  Werner LEMBERG  <wl@gnu.org>
4030         * man/groff_char.man: Added some missing PS glyph names (from the
4031         Adobe Glyph List).
4032         * font/devps/generate/textmap, font/devps/symbolmap: Add
4033         `arrowupdn'.
4035         * doc/groff.texinfo: Minor additions and fixes.
4036         * man/groff_diff.man: Remove documentation of fp request.  This
4037         is already covered in the original troff manual.
4038         Updated to be consistent with other doc files.
4039         * NEWS: Updated.
4041 2002-02-24  Werner LEMBERG  <wl@gnu.org>
4043         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
4044         TTYDEVDIRS.
4045         Define new variable OTHERDEVDIRS (containing `font/devlj4
4046         font/devlbp' if not EBCDIC).
4047         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
4048         (OTHERDEVDIRS): New variable.
4049         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
4050         * configure: Regenerated.
4052         * NEWS, src/devices/grotty/grotty.man: Updated.
4054 2002-02-23  Werner LEMBERG  <wl@gnu.org>
4056         * src/roff/troff/input.cc (do_overstrike, do_bracket,
4057         get_line_arg): Honour input level.
4059         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
4061         * font/*/*: Implement it in all font files.
4062         * font/devps/generate/textmap, font/devps/generate/symbolchars,
4063         * font/devps/symbolmap: Updated.
4064         * font/devlj4/generate/text.map: Updated.
4065         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
4066         * font/devdvi/generate/texmi.map: Updated.
4068         * font/devutf8/R.proto: Remove all `charXXX' entries.
4069         * font/devutf8/NOTES: Updated.
4071         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
4072         version 4.1.0.
4074         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
4076         * NEWS, man/groff_char.man: Updated.
4078 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
4080         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
4082 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4084         * src/roff/grog/grog.pl: Fix computation of $refer.
4086 2002-02-19  Werner LEMBERG  <wl@gnu.org>
4088         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
4089         `snprintf' and `vsnprintf'.
4091         * src/include/htmlindicate.h: Renamed to...
4092         * src/include/htmlhint.h: This.
4093         * src/include/Makefile.sub: Updated.
4094         * src/preproc/eqn/main.cc: Updated.
4096 2002-02-18  Werner LEMBERG  <wl@gnu.org>
4098         * man/roff.man, man/groff_out.man, man/groff.man,
4099         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
4100         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
4102         * win32-diffs: Updated.
4104 2002-02-17  Werner LEMBERG  <wl@gnu.org>
4106         * doc/Makefile (clean): Add *.eps.
4107         (MEMACROS): Removed.
4108         (TFLAG): New variable.
4109         (TROFF): Use it.
4110         Add -ww.
4111         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
4112         (.me.dit): Fixed.
4113         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
4115         * tmac/www.tmac: Use dummy diversion while resetting and disabling
4116         `.tl'.
4117         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
4118         unstripped.
4119         * src/roff/troff/troff.man: Fix order of parameter description.
4121         * NEWS: Updated.
4123 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
4125         Simplify image handling for grohtml.
4126         Fix <p> bug.
4128         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
4129         comment out.
4130         (html_text::dump_stack): Don't emit newline while debugging.
4131         (html_text::do_push) [DEBUGGING]: Print more info.
4132         (html_text::check_emit_text): Fix handling of <p>.
4133         * src/devices/grohtml/html.h: Updated.
4134         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
4135         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
4136         send its data to stderr also.
4137         Update all callers.
4138         (simple_output::space_or_newline) [DEBUGGING]: Removed.
4139         * src/devices/grohtml/post-html.cc (html_printer::do_links,
4140         html_printer::html_printer): Remove `DEBUGGING' conditionals.
4142         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
4143         Removed.
4144         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
4145         is_inline_image): Removed.
4146         (html_begin_suppress, html_end_suppress): Don't take a parameter.
4147         (graphic_start, graphic_end): Removed.
4148         * src/include/htmlindicate.h: Updated.
4149         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
4150         (macroset_template): New global variable.
4151         (makeFileName): Use `macroset_template'.
4152         (write_end_image): Don't take a parameter.
4153         Don't emit newline.
4154         (write_start_image: Don't emit newline.
4155         (char_buffer::write_upto_newline): Updated.
4156         (char_buffer::skip_to_newline): Renamed to ...
4157         (char_buffer::skip_until_newline): This.
4158         Fix code.
4159         (char_buffer::write_file_troff, char_buffer::write_file_html):
4160         Simplified.
4161         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
4162         (removeAllPages): Remove `DEBUGGING' conditionals.
4163         (addRegDef, dump_args): New functions.
4164         (char_buffer::do_html, char_buffer::do_image): Handle
4165         `www-image-template' command line variable.
4166         Add more debugging code.
4167         (addps4html): Removed.
4168         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
4170         * src/preproc/eqn/main.cc: Include `ctype.h'.
4171         (suppress_html): Removed.
4172         (do_file): Updated.
4173         (inline_equation): Use `html_begin_suppress' and
4174         `html_end_suppress'.
4175         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
4176         (troff_output::start_picture, troff_output::finish_picture):
4177         Updated.
4178         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
4179         (process_input_file): Updated.
4181         * src/roff/troff/div.cc (page_number): Set page number only if the
4182         `ps4html' register isn't defined.
4183         * src/roff/troff/input.cc (image_no): New external variable.
4184         (do_suppress): Use it.
4185         * src/roff/troff/node.h (suppress_node::image_id): New member.
4186         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
4187         (suppress_node::suppress_node): Initialize `image_id' member.
4188         (suppress_node::same): Handle `image_id' also.
4189         (suppress_node::copy): Updated.
4190         (last_image_id): New global variable.
4191         (suppress_node::tprint): Use it.
4193         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
4194         HTML-IMAGE-END.
4195         * tmac/pspic.mac (PSPIC): Fix html support.
4196         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
4197         * tmac/www.tmac (www-image-template): Set up.
4198         (HTMLINDEX): Renamed to...
4199         (HX): This.
4200         (BODYCOLOR): Renamed to...
4201         (BCL): This.
4202         (BACKGROUND): Renamed to...
4203         (BGIMG): This.
4204         (URL): Change order of parameters for consistency.
4205         (MAILTO): Renamed to...
4206         (MTO): This.
4207         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
4208         (IMG, PIMG, MPIMG): This.
4209         (HTML-H-BEGIN, HTML-H-END): Renamed to...
4210         (HnS, HnE): This.
4211         (LINKS): Renamed to...
4212         (LK): This.
4213         (LINE): Renamed to...
4214         (HR): This.
4215         (NO-AUTO-RULE): Renamed to...
4216         (NHR): This.
4217         (HTML-TL): Renamed to...
4218         (HTL): This.
4219         (UL-BEGIN, UL-END): Renamed to...
4220         (ULS, ULE): This.
4221         (DROPCAP): Renamed to...
4222         (DC): This.
4223         (TS, TE, EQ, EN): Provide default definitions.
4224         (www-make-unique-name): Updated.
4225         (HTML-IMAGE-INLINE): Fix typo.
4226         * tmac/groff_www.man: Updated.
4228         * doc/Makefile (homepage.html): Add option -r to grohtml.
4229         Use shortened image name.
4230         * doc/groff.texinfo: Updated info on grohtml strings and macros.
4231         * doc/homepage.ms: Updated and extended.
4233 2002-02-14  Werner LEMBERG  <wl@gnu.org>
4235         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
4237         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
4238         SGR_BACK_DEFAULT_COLOR): Replaced with ...
4239         (tty_printer::put_color): Use it.
4240         (ttr_printer::end_page): Simplify.
4242 2002-02-13  Werner LEMBERG  <wl@gnu.org>
4244         * tmac/groff_tmac.man: Moved to...
4245         * man/groff_tmac.man: This place.
4246         * tmac/Makefile.sub, man/Makefile.sub: Updated.
4248 2002-02-12  Werner LEMBERG  <wl@gnu.org>
4250         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
4251         $(COMPILE.c) to not include groff's assert.h.
4253         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
4254         variable.
4255         * NEWS, src/drivers/grotty/grotty.man: Document it.
4257 2002-02-11  Werner LEMBERG  <wl@gnu.org>
4259         * src/libs/snprintf/snprintf.c: Updated to latest version
4260         (2002-02-11).
4262         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
4263         test whether there is `.]' also.
4264         Don't check for spaces after `.['.
4265         * src/roff/grog/grog.sh: Do the same.
4267 2002-02-10  Werner LEMBERG  <wl@gnu.org>
4269         Illegal -> Invalid.
4271         * src/libs/libgroff/illegal.cc: Renamed to ...
4272         * src/libs/libgroff/invalid.cc: This.
4273         (illegal_char_table): Renamed to ...
4274         (invalid_char_table): This.
4275         * src/libs/libgroff/Makefile.sub: Updated.
4276         * win32-diffs: Updated.
4278         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
4279         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
4280         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
4281         font::load), src/preproc/eqn/main.cc (read_line, main),
4282         src/preproc/eqn/lex.cc (file_input::read_line),
4283         src/preproc/pic/lex.cc (file_input::read_line,
4284         simple_file_input::get, simple_file_input::peek),
4285         src/preproc/pic/main.cc (top_input::get, top_input::peek),
4286         src/preproc/pic/pic.man, src/preproc/refer/main.cc
4287         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
4288         do_bib), src/preproc/tbl/main.cc (table_input::get),
4289         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
4290         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
4291         do_zero_width, read_request, encode_char, ps_get_line,
4292         transparent_file, get_char_for_escape_name, transparent_translate,
4293         asciify, input_char_description, read_string, set_string),
4294         src/roff/troff/env.cc (environment::add_html_tag),
4295         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
4297         * src/include/lib.h: Updated.
4299         * src/preproc/eqn/eqn.cc: Removed.
4301         * NEWS: Updated.
4303         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
4305 2002-02-09  Werner LEMBERG  <wl@gnu.org>
4307         * doc/gnu.xpm: New image.
4308         * doc/Makefile (DOCS): Add homepage.ps.
4309         Add rules for converting xpm->png and xpm->eps.
4310         Use `gnu.{xpm,eps}' as image names.
4311         * doc/homepage.ms: Updated.
4313 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
4315         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
4316         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
4317         Remove calls to `B1' and `B2'
4318         (PNG-IMAGE): New macro for inclusion of images in PNG format.
4319         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
4320         auxiliary variables for MARGIN-PNG-IMAGE.
4321         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
4322         auxiliary macros for MARGIN-PNG-IMAGE.
4323         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
4324         the margin.
4325         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
4326         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
4327         (DROPCAP): New macro to produce dropcap characters.
4328         (www-do-image): Renamed back to...
4329         (HTML-DO-IMAGE): This.
4330         Updated all callers.
4332         * doc/Makefile (gnubw.eps): Updated.
4333         * doc/homepage.ms: Updated.
4335 2002-02-08  Werner LEMBERG  <wl@gnu.org>
4337         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
4338         Added `linethick' to table in section `Style Variables'.
4340 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
4342         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
4344 2002-02-07  Werner LEMBERG  <wl@gnu.org>
4346         Adding options -C (compatibility mode) and -c (grotty's old output
4347         scheme) to nroff.
4349         * src/roff/nroff/nroff.sh: Implement it.
4350         Remove `-Wall'.
4351         * NEWS, src/roff/nroff/nroff.man: Updated.
4353         * PROBLEMS: Document bison 1.32 bug.
4355         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
4357         * src/roff/troff/node.cc (make_tfont): Define it earlier.
4358         * src/roff/troff/div.h: Add prototype for `end_diversions'.
4359         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
4360         * src/roff/troff/env.h: Add prototype for `title'.
4362         Adding EBCDIC support to grotty.
4364         * src/devices/grotty/tty.cc (CSI): New macro.
4365         (SGR_*, tty_printer::put_color): Use it.
4367 2002-02-06  Werner LEMBERG  <wl@gnu.org>
4369         Implementing color support in grotty.  The new switch -c activates
4370         the old drawing scheme, disabling color at the same time.  The new
4371         switch `-i' selects italic instead of underlining (SGR only).
4373         * src/devices/grotty/tty.cc (putstring): New define instead of
4374         `fputs'.  Updated all callers.
4375         (old_drawing_scheme): New global variable.
4376         (COLOR_CHANGE): New enum value.
4377         (SGR_*): New defines containing color handling escape sequences.
4378         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
4379         (glyph): New members `back_color_idx' and `fore_color_idx'.
4380         (glyph::order): Add COLOR_CHANGE.
4381         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
4382         `is_underline', `is_bold', `cu_flag', `tty_colors'.
4383         New methods `make_underline', `make_bold', `color_to_idx',
4384         `change_color', `put_color'.
4385         (cu_flag): Moved into `tty_printer' class.
4386         (tty_printer::tty_printer): Initialize colors.
4387         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
4388         tty_printer::draw, tty_printer::end_page): Handle colors also.
4389         (main): Add options `-c' and `-i'.
4390         (usage): Updated.
4391         * NEWS, src/devices/grotty/grotty.man: Updated.
4393         * src/include/errarg.h (errarg): Add support for `unsigned int'.
4394         * src/libs/libgroff/errarg.c: Implement it.
4396         * src/include/printer.h (printer): Add `change_color' method
4397         (currently used by grotty only).
4398         * src/libs/libdriver/printer.cc: Implement it.
4399         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
4400         call to `pr->change_color'.
4402         * src/roff/troff/node.cc (troff_output_file::fill_color,
4403         troff_output_file::glyph_color): Call `do_motion'.
4405         * tmac/tty.tmac: Add color definitions.
4407         * src/roff/groff/groff.man: Minor fixes.
4409 2002-02-05  Bernd Warken  <bwarken@mayn.de>
4411         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
4412         it.  This is a preparation for future changes.
4414 2002-02-05  Werner LEMBERG  <wl@gnu.org>
4416         * src/roff/troff/input.cc (process_input_stack): Fix the case
4417         where leading spaces are followed by \f or \s; previously, an
4418         incorrect space width has been used.
4420         * doc/roff.man (quoted_char): Fix argument.
4421         (comment): Define string.
4423 2002-02-04  Larry Kollar  <kollar@alltel.net>
4425         * doc/groff.texinfo: More fixes.
4427 2002-02-04  Werner LEMBERG  <wl@gnu.org>
4429         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
4430         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
4431         `restore_compatibility' before `output_string' -- the LINE_STRING
4432         register now already contains proper switches from and to
4433         compatibility mode.
4435         * man/groff_char.man: Add Euro symbol.
4436         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
4437         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
4438         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
4439         Other minor fixes.
4441         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
4442         texinfo->pdf.
4443         (.texinfo.html): Add support for texinfo->html.
4445 2002-02-03  Werner LEMBERG  <wl@gnu.org>
4447         Added three new requests `ds1', `as1', and `ami'.  The former two
4448         are equivalent to `ds' and `as' with the difference that
4449         compatibility mode is saved on entry, switched off during string
4450         expansion, and restored on exit.  The latter is the pendant to `dei'
4451         for `am'.
4453         (do_define_string): Use `define_mode' and `calling mode'.
4454         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
4455         end of string, respectively.
4456         (define_string, append_string): Use `calling_mode'.
4457         (define_nocomp_string, append_nocomp_string,
4458         define_string_indirect): New functions.
4459         (init_input_requests): Updated.
4460         * NEWS, man/groff_diff.man, man/groff.man: Document it.
4462         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
4463         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
4464         mm macro package accesses this string register directly.
4465         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
4467         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
4468         compatibility mode.
4470 2002-02-02  Larry Kollar  <kollar@alltel.net>
4472         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
4474 2002-01-31  Werner LEMBERG  <wl@gnu.org>
4476         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
4478 2002-01-31  Bernd Warken  <bwarken@mayn.de>
4480         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
4481         * man/groff_out.man: Revised and updated.
4483 2002-01-30  Bernd Warken  <bwarken@mayn.de>
4485         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
4486         out the unused `{' and `}' commands.  Undefined by default.
4487         (IntArray): Make `data' private.
4488         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
4489         new methods instead.
4490         (skip_line_D, skip_to_end_of_line): New functions.
4491         (get_D_fixed_args): Use `skip_line_D'.
4492         Changed to handle dummy odd arguments by ...
4493         (get_D_fixed_args_odd_dummy): This new function.
4494         (get_D_variable_args): Split some code into ...
4495         (get_possibly_integer_args): This new function.
4496         (send_draw): Use more `const'.
4497         (delete_current_env): New function.
4498         (position_to_end_of_args): Use `size_t'.
4499         Updated.
4500         (send_draw): Updated.
4501         (parse_D_command): Handle `c', `C', and `t' better.
4502         Updated.
4503         (do_file): Updated.
4505 2002-01-29  Werner LEMBERG  <wl@gnu.org>
4507         * NEWS: Revised.
4508         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
4509         @Def...ListEnd which replaces @Def...x.  This is necessary to get
4510         proper HTML output -- see the comment in the file for more
4511         information.
4512         Updated all calls.
4514 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
4516         Fixes to make color changes of 2002-01-21 work with grohtml.
4518         * src/devices/grohtml/post-html.cc (style): Updated.
4519         (html_printer): Remove unused methods.
4520         (html_printer::do_font, html_printer::draw, html_printer::set_char,
4521         html_printer::special): Updated.
4522         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
4523         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
4524         Added some debugging code.
4525         (html_text::start_tag): Updated.
4526         (html_text::do_push): New method.
4527         (html_text::push_para): Call it.
4528         Add method for handling color.
4529         (html_text::do_color): Updated.
4530         (html_text::shutdown): Handle color.
4531         * src/devices/grohtml/html-text.h (tag_definition): New member
4532         `col'.
4533         Updated.
4535 2002-01-28  Werner LEMBERG  <wl@gnu.org>
4537         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
4539 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
4541         Add two switches -a and -g to control the antialiasing bits for
4542         text and graphics, respectively.
4544         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
4545         `-g'.
4546         * src/devices/grohtml/grohtml.man: Document them.
4547         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
4548         New macros.
4549         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
4550         (setupAntiAlias): New function.
4551         (createAllPages): Updated.
4552         (scanArguments): Handle `-a' and `-g'.
4553         (main): Call `setupAntiAlias'.
4554         * NEWS: Updated.
4556 2002-01-27  Werner LEMBERG  <wl@gnu.org>
4558         * doc/groff.texinfo (Def*): Call index function after deffn.
4560         * tmac/html.tmac: Call `nroff' request.
4562 2002-01-26  Larry Kollar  <kollar@alltel.net>
4564         * tmac/groff_ms.man: Add some omissions.
4566 2002-01-25  Larry Kollar  <kollar@alltel.net>
4568         * tmac/groff_ms.man: Typographical improvements.
4570 2002-01-25  Werner LEMBERG  <wl@gnu.org>
4572         * doc/groff.texinfo: Updated version and copyright.
4573         * src/devices/grops/grops.man: Updated.
4575         * tmac/groff_tmac.man: Fix `ig' macro.
4577         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
4578         nroff mode.
4579         Use `.ne' unconditionally everywhere.
4580         (TS): Only insert some vertical space.  Doing a page break is no
4581         longer necessary due to the redefinition of the `ne' request.
4583         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
4584         warning for unknown subcommands but parse and pass them to the
4585         device driver.
4587 2002-01-24  Werner LEMBERG  <wl@gnu.org>
4589         * tmac/groff_www.man, NEWS: Fix typos.
4591 2002-01-21  Werner LEMBERG  <wl@gnu.org>
4593         Complete revision of color support:
4595           Adapt programs to the new libdriver/input.cc.
4597           Color spaces are no longer converted to RGB but transferred as-is
4598           in the troff intermediate output format.
4600           Handle default color gracefully.  troff now supports a `default'
4601           color (which can't be changed).
4603           grops will now use the proper color space functions if available.
4605           Update pic.
4607         Note that currently grohtml doesn't handle colors properly.  This
4608         has to be fixed.
4610         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
4611         (ui_to_a): New function.
4612         * src/include/lib.h: Updated.
4614         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
4615         (color): Simplified; removed all `double' members and methods.
4616         A new array `components' now holds the color parameters.
4617         (color::is_default, color::get_components): New methods.
4618         (color::operator==, color:operator!=): New.
4619         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
4620         to make access to the `components' array more comprehensible.
4621         * src/libs/libgroff/color.cc: Implement new color support.
4622         (atoh): Small fixes.
4623         (color::read_encoding): Simplified for new troff intermediate color
4624         output format.
4625         (default_color): New global variable.
4627         * src/roff/troff/input.cc (default_symbol): New global variable.
4628         (lookup_color): Use it.
4629         (default_black): Removed.
4630         (do_glyph_color, do_fill_color): Simplified.
4631         (define_color): Handle default color.
4632         Improve warnings.
4633         (do_if_request): Handle default color.
4634         * src/roff/troff/env.cc (environment::environment): Initialize
4635         colors with `default_color'.
4636         * src/roff/troff/node.cc (troff_output_file::put): Add method
4637         for `unsigned int'.
4638         (troff_output_file::hex): Removed.
4639         (troff_output_file::fill_color, troff_output_file::glyph_color):
4640         Updated to include/color.h and libdriver/input.cc.
4642         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
4643         fill color properly (identically to the outline color).  \D'f...'
4644         doesn't work any more.
4645         All function calls to it updated.
4647         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
4648         Updated.
4649         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
4650         Updated.
4652         * src/devices/grops/ps.cc (ps_output::put_color): New method.
4653         (ps_printer::sbuf_color): Make a real member instead of pointer.
4654         (ps_printer::fill_color, ps_printer::output_color): Removed.
4655         (ps_printer::ps_printer): Updated.
4656         (ps_printer::set_char): Ditto.
4657         (ps_printer::set_color): Use various color schemes.
4658         Use `put_color' method.
4659         (ps_printer::flush_sbuf): Don't set color.
4660         (ps_printer::fill_path): Take `environment' as parameter.
4661         Simplify color handling.
4662         (ps_printer::set_line_thickness): Renamed to ...
4663         (ps_printer::set_line_thickness_and_color): This (and updated).
4664         (ps_printer::set_color): Change second parameter from `complete'
4665         to `fill' which better describes what it does.
4666         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
4667         and text in the right order.
4668         Updated.
4669         Remove branches for `f' and `F'; this is handled by
4670         libdriver/input.cc.
4671         * src/devices/grops/ps.h: Updated.
4672         * font/devps/prologue (FL): Redefined.
4673         ({F,C}r,k,g: New color functions (with and without filling).
4675         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
4676         * man/groff_diff.man, man/groff.man, man/groff_out.man,
4677         doc/groff.texinfo, NEWS: Updated.
4679 2002-01-20  Bernd Warken  <bwarken@mayn.de>
4681         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
4682         in this file for what has been changed.
4684 2002-01-19  Werner LEMBERG  <wl@gnu.org>
4686         * test-groff: Fix GROFF_FONT_PATH.
4687         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
4688         is read before .TH or .Dd is parsed.
4690 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
4692         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
4693         quadrant boundaries.
4695 2002-01-18  Werner LEMBERG  <wl@gnu.org>
4697         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
4698         applied last patch.
4700 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
4702         * tmac/doc.common: Initialize %I register for the %I macro to
4703         avoid (harmless) warning.
4704         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
4705         when in the SYNOPSIS section.
4707 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
4709         * src/preproc/pic/lex.cc (get_token): Fix typo.
4711 2002-01-17  Werner LEMBERG  <wl@gnu.org>
4713         * devices/grops/ps.cc: Fix incorrectly applied last patch.
4715 2002-01-17  Larry Kollar  <kollar@alltel.net>
4717         * tmac/groff_ms.man: Completely rewritten.
4719 2002-01-16  Werner LEMBERG  <wl@gnu.org>
4721         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
4723 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
4725         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
4726         fill colors.
4727         (ps_printer::draw): Ditto.
4729 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
4731         * tmac/groff_mdoc.man: Minor fixes.
4733 2002-01-13  Werner LEMBERG  <wl@gnu.org>
4735         * man/groff_out.man: Some fixes.
4737 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
4739         * doc/pic.ms: Fix typos.
4741 2002-01-12  Werner LEMBERG  <wl@gnu.org>
4743         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
4745 2002-01-10  Werner LEMBERG  <wl@gnu.org>
4747         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
4748         symbols.
4749         * NEWS: Updated.
4751 2002-01-09  Bernd Warken  <bwarken@mayn.de>
4753         * man/groff_out.man: Revised.
4754         * man/roff.man: Minor fixes.
4755         * src/roff/troff/troff.man: Some reordering.
4757 2002-01-09  Werner LEMBERG  <wl@gnu.org>
4759         * tmac/an-old.tmac: Add dummy macros for equation support.
4761 2002-01-07  Werner LEMBERG  <wl@gnu.org>
4763         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
4765         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
4766         man pages.
4767         * tmac/groff_man.man: Small improvements.
4769 2002-01-07  Bernd Warken  <bwarken@mayn.de>
4771         * man/groff_diff.man: Revised.
4773 2002-01-06  Werner LEMBERG  <wl@gnu.org>
4775         * tmac/www.tmac: Remove extraneous backslash.
4777 2002-01-06  Bernd Warken  <bwarken@mayn.de>
4779         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
4781 2002-01-05  Werner LEMBERG  <wl@gnu.org>
4783         Integrated groffer, contributed by Bernd Warken.
4785         * contrib/groffer/*: New.       
4786         * Makefile.in, NEWS: Updated.
4788 2002-01-04  Werner LEMBERG  <wl@gnu.org>
4790         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
4791         registers defined in macro packages.
4792         Revising the ms part.
4794 2002-01-04  Larry Kollar  <kollar@alltel.net>
4796         * doc/groff.texinfo: Add documentation for ms macros.
4798 2002-01-02  Werner LEMBERG  <wl@gnu.org>
4800         First step in adding PS support for the Euro symbol.  `eu' is the
4801         official Euro logo, `Eu' is a font-specific glyph variant.
4803         * font/devps/text.enc: Add `Euro' at position 9.
4804         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
4805         * font/devps/symbolmap: Regenerated.
4807         * NEWS: Updated.
4809 2002-01-02  Bernd Warken  <bwarken@mayn.de>
4811         * man/roff.man: Revised.
4813 2002-01-01  Bernd Warken  <bwarken@mayn.de>
4815         * src/roff/groff/groff.man: Completely rewritten.
4817 2001-12-31  Werner LEMBERG  <wl@gnu.org>
4819         * doc/Makefile: Updated.
4821 2001-12-30  Werner LEMBERG  <wl@gnu.org>
4823         * tmac/www.tmac: Make all names of internal macros/registers/strings
4824         lowercase, and prepend `www-'.
4825         Other minor changes.
4826         * src/roff/troff/troff.man: Add preprocessor string at BOF.
4828 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
4830         Implement option `-b' in grohtml to set the HTML background colour.
4832         * src/devices/grohtml/post-html.cc (default_background): New global
4833         variable.
4834         (html_printer::html_printer): Initialize `background' to
4835         `default_background'.
4836         (main): Implement option `-b'.
4837         (usage): Updated.
4838         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
4839         of `-b' option.
4840         * src/devices/grohtml/grohtml.man: Updated.
4841         * doc/Makefile (.ms.html): Use `-b'.
4842         * tmac/html.tmac: Don't set background color.
4844         Add new grohtml tag `.html-tl'.
4846         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
4847         member variable.
4848         (title_desc::title_desc): Updated.
4849         (html_printer::troff_tag): Handle `.html-tl'.
4850         (html_printer::write_title): Use `with_h1'.
4851         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
4852         (HTML-TL): New macro.
4854         Add support for unordered lists in HTML.
4856         * tmac/www.tmac (www-level): New auxiliary register.
4857         (www-level1, www-level2, www-level3): New auxiliary strings.
4858         (www-push-level, www-pop-level): New auxiliary macros
4859         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
4861         Miscellaneous.
4863         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
4864         (DEFAULT_VERTICAL_OFFSET): Removed.
4865         (IMAGE_BOARDER_PIXELS): Set to 0.
4866         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
4867         (vertical_offset): Initialize with 0.
4868         (gsPaper): New global variable.
4869         (get_resolution): Scan for and return unsigned int.
4870         (get_papersize): New function to get paper length from devps/DESC.
4871         (determine_vertical_offset): New function.
4872         (createAllPages): Produce gray-level images and use proper page
4873         length.
4874         (createImage): Use `-quiet' option of pnmcrop.
4875         (addZ): Fix passing of `-Z'.
4876         (scanArguments): Fix handling of `-o'.
4877         (main): Call `determine_vertical_offset'.
4878         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
4879         code for `l'.
4881         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
4882         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
4883         glyph descenders properly.
4885         * doc/homepage.ms: Include `gnubw.eps'.
4886         * doc/Makefile (gnubw.eps): New rule.
4887         (homepage.html): Depend on `gnubw.eps'.
4889 2001-12-25  Werner LEMBERG  <wl@gnu.org>
4891         * src/roff/troff/input.cc (default_black): Fix return value.
4893 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
4895         * tmac/doc-common (Dt): Change output of architecture strings.
4896         Do some syntax cleanup.
4897         * tmac/groff_mdoc.man: Updated.
4899 2001-12-23  Werner LEMBERG  <wl@gnu.org>
4901         Adding an `itc' request (input line trap accepting \c).
4903         * src/roff/troff/env.h (environment): New member
4904         `continued_input_trap'.
4905         Make `do_input_trap' a friend function instead of `input_trap'.
4906         * src/roff/troff/env.cc (environment::environment,
4907         environment::copy): Updated.
4908         (environment::newline): Implement it.
4909         (do_input_trap): New function.
4910         (input_trap): Call `do_input_trap'.
4911         (input_trap_continued): New function.
4912         (init_env_requests): Updated.
4913         * src/roff/troff/TODO: Updated.
4915         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
4916         `.it'.
4918         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
4920 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
4922         * tmac/doc-common, tmac/doc-syms: Small updates.
4924 2001-12-22  Colin Watson  <cjwatson@debian.org>
4926         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
4928 2001-12-22  Bernd Warken  <bwarken@mayn.de>
4930         * MANIFEST: New file.
4932 2001-12-22  Werner LEMBERG  <wl@gnu.org>
4934         * src/preproc/grn/grn.man: Updated.
4936 2001-12-22  Solar Designer  <solar@openwall.com>
4938         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
4939         (DBRead): Use it.
4941 2001-12-19  Werner LEMBERG  <wl@gnu.org>
4943         Implement a fallback character request `.fchar'.
4945         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
4946         (is_fallback): New inline function.
4947         * src/roff/troff/input.cc (do_define_character): New function.
4948         (define_character): Call `do_define_character'.
4949         (define_fallback_character): New function.
4950         (init_input_requests): Add `fchar'.
4951         (charinfo::charinfo): Updated.
4952         (charinfo::set_macro): New argument to set `fallback' flag.
4953         * src/roff/troff/node.cc (make_glyph_node, make_node,
4954         node::add_char): Check `fallback' flag.
4955         * NEWS, man/groff_diff.man, man/groff_man: Updated.
4957 2001-12-16  Werner LEMBERG  <wl@gnu.org>
4959         * groff.texinfo: Document exact search algorithm for glyphs.
4961 2001-12-15  Werner LEMBERG  <wl@gnu.org>
4963         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
4964         the left side of $(MANPAGES) rule to make it always non-empty.
4966 2001-12-14  Werner LEMBERG  <wl@gnu.org>
4968         * src/roff/troff/input.cc (default_black): Define default color
4969         `black' if not yet defined.
4971 2001-12-13  Werner LEMBERG  <wl@gnu.org>
4973         Implement new string-valued register `.fn' to return the current
4974         real (internal) font name.
4976         * env.cc (environment::get_font_name_string): New function.
4977         (init_env_requests): Add `.fn' register.
4978         * env.h (environment): Updated.
4979         * node.cc (font_info): Make `get_font_name' a friend.
4980         (get_font_name): New function.
4981         * node.h: Updated.
4983         * man/groff_diff.man, man/groff.man, NEWS: Updated.
4985 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
4987         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
4989 2001-12-12  Werner LEMBERG  <wl@gnu.org>
4991         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
4993 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
4995         * man/groff_diff.man: Adding documentation for \O.
4997 2001-12-10  Werner LEMBERG  <wl@gnu.org>
4999         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
5000         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
5002 2001-12-09  Werner LEMBERG  <wl@gnu.org>
5004         * man/roff.man: Revised.
5005         * src/roff/groff/groff.man: Replace man page references with a
5006         pointer to roff.man.
5008 2001-12-09  Bernd Warken  <bwarken@mayn.de>
5010         * man/roff.man: Completely rewritten.
5012 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5014         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
5016 2001-12-05  Werner LEMBERG  <wl@gnu.org>
5018         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
5019         longer used.
5020         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
5021         order of initializers.
5022         * NEWS: Updated.
5024 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
5026         * doc/groff.texinfo: Fix documentation of \O.
5028         * src/devices/grohtml/html-text.cc (html_text::do_indent,
5029         html_text::do_table, html_text::do_emittext, html_text::do_para):
5030         Use `const' for first argument.
5031         (html_text::do_table): Use cast.
5032         * src/devices/grohtml/html-text.h: Updated.
5033         * src/devices/grohtml/output.cc (simple_output::put_string): Add
5034         method for `const string &s'.
5035         * src/devices/grohtml/html.h: Updated.
5036         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
5037         (ANCHOR_TEMPLATE): Modified.
5038         (manufacture_headings): New global variable to handle `-h' option.
5039         (is_subsection): Removed.
5040         (char_buffer::add_string): Add `const' to first argument.
5041         Protect against invalid string argument.
5042         Add method for `const string &s'.
5043         (text_glob): Completely redesigned.
5044         (page): Use `const' for strings and remove string length variable.
5045         (page::add_html): Removed.
5046         (page::add_end_encode): New member function.
5047         (to_unicode): Moved upwards.
5048         (title_desc, header_desc): Updated.
5049         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
5050         definition.
5051         (html_printer::is_bold, html_printer::make_bold): New member
5052         functions.
5053         (html_printer::end_of_line): Updated.
5054         (generate_img_src, html_printer::do_auto_image,
5055         html_printer::do_title, html_printer::write_header,
5056         html_printer::determine_header_level, html_printer::do_heading,
5057         html_printer::do_linelength, html_printer::do_pageoffset,
5058         html_printer::do_indentation, html_printer::do_tempindent,
5059         html_printer::do_indentedparagraph, html_printer::do_break,
5060         html_printer::flush_sbuf, get_html_translation,
5061         html_printer::begin_page, html_printer::special): Rewritten to get
5062         rid of static string length limit.
5063         (html_printer::troff_tag): Added `.no-auto-rule'.
5064         (html_printer::flush_globs): Small fix.
5065         (html_printer::determine_space): Don't compute `space_width'.
5066         (html_printer::translate_to_html): Renamed to ...
5067         (html_printer::emit_html): This (with updates).
5068         (html_printer::write_header): Implement `-h' option.
5069         (html_printer::draw): Remove commented-out code.  Handle `F'
5070         command.
5071         (html_printer::add_char_to_sbuf): Removed.
5072         (html_printer::add_to_sbuf): Rewritten.
5073         (html_printer::sbuf_continuation): Fixed.
5074         (html_printer::seen_backwards_escape, reverse,
5075         html_printer::remove_last_char_from_sbuf): Removed.
5076         (char_translate_to_html, str_translate_to_html): Removed.
5077         (html_printer::overstrike): New function member.
5078         (html_printer::set_char): Use it.
5079         (html_printer::do_body): New function member.
5080         (html_printer::~html_printer): Use it.
5081         (main): Handle `-h' option.
5082         (usage): Updated.
5083         * src/devices/grohtml/grohtml.man: Document -h switch.
5085         * src/preproc/html/pre-html.cc: Include searchpath.h
5086         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
5087         (get_resolution): New function.
5088         (checkImageDir): Use `0777' permissions in mkdir()
5089         (write_start_image): Rewritten to use `\O[5...]'.
5090         (createImage, generateImages): Updated.
5091         (main): Handle `F' and `h' options.
5092         Use `get_resolution'.
5094         * src/roff/troff/input.cc (begin, end, image): Removed.
5095         (do_suppress): Take parameter.
5096         Handle modified syntax of `\O'.
5097         (token::next): Updated.
5098         (init_markup_requests): Removed.
5099         (main): Updated.
5101         * src/roff/troff/div.h: Add declaration for begin_page().
5103         * tmac/color-html.tmac: Removed.  Contents moved to...
5104         * tmac/html.tmac: Here.  Set background color.
5105         * tmac/color.tmac: Removed.  Contents moved to...
5106         * tmac/ps.tmac: Here.
5107         * tmac/www.tmac: Remove the title command when generating images
5108         for html.
5109         (NO_AUTO_RULE): New macro.
5110         (HTML_DO_IMAGE): Use revised `\O' escapes.
5111         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
5113 2001-12-02  Werner LEMBERG  <wl@gnu.org>
5115         * tmac/groff_mdoc.man: Fix typo.
5117 2001-12-01  Colin Watson  <cjwatson@debian.org>
5119         * man/roff.man: Fix typo.
5121 2001-11-29  Werner LEMBERG  <wl@gnu.org>
5123         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
5124         stdlib.h.
5126         * src/roff/troff/input.cc (read_draw_node): Emit error message if
5127         more than one argument to \D'f ...'.
5129         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
5131 2001-11-28  Werner LEMBERG  <wl@gnu.org>
5133         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
5134         loaded only once.
5136         * tmac/groff_man.man: Minor cosmetic fix.
5138 2001-11-27  Werner LEMBERG  <wl@gnu.org>
5140         * src/roff/groff/groff.man, tmac/groff_tmac.man,
5141         tmac/groff_www.man: s/mwww/www/.
5143 2001-11-26  Werner LEMBERG  <wl@gnu.org>
5145         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
5146         * configure: Regenerated.
5147         * win32-diffs: Updated.
5149         * tmac/groff_mwww.tmac: Renamed to ...
5150         * tmac/groff_www.tmac: This.
5151         * tmac/mwww.tmac: Removed.
5152         * NEWS, tmac/Makefile.sub: Updated.
5154 2001-11-21  Werner LEMBERG  <wl@gnu.org>
5156         * doc/groff.texinfo: Improve documentation of the `\v' escape.
5157         Fix explanation of `\D' and `rt'.
5159 2001-11-20  Werner LEMBERG  <wl@gnu.org>
5161         * tmac/an-old.tmac (an-header): Set header length equal to page
5162         width.
5163         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
5164         minor fixes.
5165         * NEWS: Small fix.
5167 2001-11-19  Werner LEMBERG  <wl@gnu.org>
5169         * NEWS, man/Makefile.sub: Updated.
5171 2001-11-19  Bernd Warken  <bwarken@mayn.de>
5173         * man/ditroff.man: New file.
5175 2001-11-17  Werner LEMBERG  <wl@gnu.org>
5177         * man/groff_differences.man: Renamed to ...
5178         * man/groff_diff.man: This.  Updated.
5179         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
5181         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
5182         * src/preproc/html/pushback.cc: This.  Updated.
5183         * src/preproc/html/pushbackbuffer.h: Renamed to ...
5184         * src/preproc/html/pushback.h: This.
5185         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
5186         Updated.
5188         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
5189         * src/libs/libgroff/htmlhint.cc: This.
5190         * src/libs/libgroff/Makefile.sub: Updated.
5192         * tmac/an-old.tmac (an-end): Fix page length.
5194 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5196         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
5197         * man/Makefile.sub: Include groff_differences.man.
5198         * VERSION: Set to 1.18.
5199         * REVISION: Set to 0.
5201 2001-11-16  Bernd Warken  <bwarken@mayn.de>
5203         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
5204         the second dot (or ending macro name) to end a macro.
5205         * doc/groff.texinfo: Doc fix.
5207 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
5209         * tmac/doc-common (doc-header): Handle very long document titles
5210         better.
5212 2001-11-16  Werner LEMBERG  <wl@gnu.org>
5214         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
5216 2001-11-15  Werner LEMBERG  <wl@gnu.org>
5218         * src/roff/troff/troff.man: Revised and split into troff.man and...
5219         * man/groff_differences.man: New file.
5220         * NEWS: Updated.
5222 2001-11-13  Werner LEMBERG  <wl@gnu.org>
5224         * tmac/an-old.tmac (TS, TE): New macros for table support.
5226 2001-11-12  Werner LEMBERG  <wl@gnu.org>
5228         * src/include/lib.h: Provide a fix for emx to not include
5229         groff-getopt.h.
5231 2001-10-27  Werner LEMBERG  <wl@gnu.org>
5233         * src/roff/troff/input.cc (substring_macro): Fix computation of
5234         boundary values.
5236 2001-10-20  Werner LEMBERG  <wl@gnu.org>
5238         Undo change from 2001-08-28.
5240         * src/roff/troff/input.cc (have_input): New global variable.
5241         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
5242         in compatibility mode.
5243         (process_input_stack): Use it.
5245 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
5247         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
5248         being handled as end-of-sentence characters,
5250 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
5252         * src/roff/troff/input.cc (file_iterator): New members
5253         `suppress_newline_flag' and `seen_escape'.
5254         (file_iterator::next_file): Updated.
5255         (file_iterator::fill): Use it.
5256         (string_iterator): New member `suppress_newline_flag'.
5257         (string_iterator::fill): Set it.
5258         (get_color_element): Use MAX_COLOR_VAL.
5259         * src/roff/troff/env.cc (environment): Remove `need_eol'.
5260         (no_fill): Don't set `env->ignore_next_eol'.
5261         (environment::newline): Handle `eol' tag properly.
5262         Emit `eol.ce'.
5263         (environment::add_html_tag): Set `env->ignore_next_eol'.
5264         Don't handle `.ce'.
5265         * src/roff/troff/env.h (environment): Updated.
5267         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
5268         member function.
5269         (html_printer::outstanding_eol): New member function.
5270         (html_printer::do_title): Use new functions.
5271         (html_printer::troff_tag): Test `id_eol_ce'.
5273 2001-10-10  Werner LEMBERG  <wl@gnu.org>
5275         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
5276         files work with -C also.
5278 2001-10-05  Werner LEMBERG  <wl@gnu.org>
5280         * doc/pic.ms: Minor fix.
5281         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
5282         as a valid command line switch.
5283         * src/devices/grohtml/post-html.cc (main): Ditto.
5284         (usage): Updated.
5285         * src/devices/grohtml/grohtml.man: Updated.
5286         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
5288 2001-10-04  Werner LEMBERG  <wl@gnu.org>
5290         Implementing color support in troff, pic, grops, and grohtml.  These
5291         changes are based on a major patch provided by Gaius Mulley
5292         <gaius@glam.ac.uk>.
5294         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
5295         definitions with both hex values and fractions.
5297         New escapes: \m and \M for drawing and background color,
5298         respectively.  This corresponds to the troff output commands `m'
5299         and `DF'.
5301         groff and troff accept command line switch `-c' to disable color
5302         output (which is automatically disabled in compatibility mode).
5304         New scaling indicator `f' for fractions (1f = 65536u).
5306         New conditional operator `m' to test for defined colors with `if'
5307         and `ie'.
5309         New keywords `color' (or `colour', `colored', `coloured'), `outline'
5310         (or `outlined'), and `shaded' added to pic.
5312         * src/include/color.h: New file.
5313         * src/include/driver.h: Include it.
5314         * src/include/printer.h: Include color.h.
5315         (environment): New members `col' and `fill'.
5316         (printer): Remove `adjust_arc_center' member function.
5317         * src/include/Makefile.sub: Updated.
5319         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
5320         `env.fill'.
5321         Handle `m' and `DF' troff commands.
5322         * src/libs/libgroff/color.cc: New file.
5323         * src/libs/libgroff/Makefile.sub: Updated.
5325         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
5326         (stop): Removed.
5327         (createImage): Fix computation of `y2'.
5328         Use `pnmcrop' also.
5329         (buffer::write_file_html): Remove calls to `stop'.
5331         * src/preproc/pic/common.h (common_output): New abstract function
5332         members `set_color', `reset_color', `get_last_filled', and
5333         `get_outline_color'.
5334         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
5335         (object_spec): Add members `shaded' and `outlined'.
5336         * src/preproc/pic/output.h (output): `command' is now abstract.
5337         New function members `set_color', `reset_color', `get_last_filled',
5338         and `get_outline_color'.
5339         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
5340         `outline[d]', and `shaded'.
5341         * src/preproc/pic/object.cc (output::command): Removed.
5342         (output::set_location): Moved to output.h.
5343         (graphic_object): Add protected members `outline_color' and
5344         `color_fill'.
5345         Add member functions `set_outline_color', `get_outline_color', and
5346         `set_fill_color'.
5347         (closed_object): Add member function `set_fill_color'.
5348         Add member `color_fill'.
5349         (graphic_object::print_text): Use `out->set_color' and
5350         `out->reset_color'.
5351         (box_object::print, ellipse_object::print, circle_object::print,
5352         line_object::print, spline_object::print, arc_object::print): Ditto.
5353         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
5354         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
5355         `SHADED', making them `%left'.
5356         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
5357         * src/preproc/pic/tex.cc (tex_output): New dummy function members
5358         `set_color', `reset_color', `get_last_filled', and
5359         `get_outline_color'.
5360         * src/preproc/pic/troff.cc (simple_output): New abstract function
5361         members `set_color', `reset_color', and `get_last_filled'.
5362         (simple_output::polygon, simple_output::circle,
5363         simple_output::ellipse): Use `get_last_filled'.
5364         (troff_output): New members `last_filled' and `last_outlined'.
5365         New function members `set_color', `reset_color', `get_last_filled',
5366         and `get_outline_color'.
5367         (troff_output::finish_picture): Use `reset_color'.
5368         (troff_output::set_fill): Test `last_filled'.
5369         * src/preproc/pic/pic.man: Updated.
5371         * src/roff/groff/groff.cc (main): Implement `-c' option.
5372         (synopsis, help): Updated.
5373         src/roff/groff/groff.man: Updated.
5375         * src/roff/troff/troff.h: Include color.h.
5376         (warning_type): Add WARN_COLOR.
5377         * src/roff/troff/env.h (environment): New members
5378         `{cur,prev}_{glyph,fill}_color'.
5379         New member functions `get_{prev_,}{glyph,fill}_color'.
5380         * src/roff/troff/env.cc: Initialize and implement them.
5381         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
5382         Replace `NULL' with `0' everywhere for consistency.
5383         (lookup_color, default_black, do_glyph_color, do_fill_color,
5384         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
5385         define_color): New functions.
5386         (token::next): Implement \M and \m escapes.
5387         (do_if_request): Implement `m' operator.
5388         (usage): Updated.
5389         (main): Implement `-c' option.
5390         (init_markup_requests): Add `defcolor' request.
5391         (warning_table): Add `color' warning.
5392         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
5393         classes.
5394         * src/roff/troff/node.cc (troff_output_file): New members
5395         `current_{page,glyph}color'.  New member functions `put_hex',
5396         `glyph_color', and `fill_color'.
5397         (glyph_color_node::*, fill_color_node::*): Implement it.
5398         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
5399         (parse_term): Add support for `f'.
5400         * src/roff/troff/troff.man: Updated.
5402         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
5403         entry for `F'.
5404         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
5405         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
5407         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
5408         (tag_definition): Use `void *' for arg1.
5409         (html_text): New member functions `do_color' and `done_color'.
5410         Use `void *' for second parameter of `push_para' member function.
5411         New `push_para' member function with a single parameter.
5412         Use `char *' for parameter of `issue_table_begin' member funtion.
5413         New `issue_color_begin' member function.
5414         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
5415         COLOR_TAG.
5416         (html_text::issue_color_begin): New function.
5417         (html_text::issue_table_begin): Use `char *' for parameter.
5418         (html_text::start_tag, html_text::shutdown,
5419         html_text::check_emit_text): Updated.
5420         (html_text::push_para): Use `void *' for second parameter.
5421         Add same function with only one parameter.
5422         (html_text::do_*): Updated.
5423         (html_text::do_color, html_text::done_color): New functions.
5424         * src/devices/grohtml/post-html.cc (style): New member `col'.
5425         Mew member `style' with 6 parameters.
5426         (style::style, style::operator==): Updated.
5427         (html_printer::do_font): Use it.
5428         (html_printer::draw): Add dummy entry for `F'.
5429         (html_printer::set_char): Updated.
5430         * src/devices/grohtml/grohtml.man: Updated.
5432         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
5433         trailing zeroes removed.
5434         (ps_printer): New members `sbuf_color', `fill_color', and
5435         `output_color'.
5436         Removed member `fill'.
5437         New member function `set_color'.
5438         (ps_printer::ps_printer, ps_printer::set_char): Updated.
5439         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
5440         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
5442         * tmac/color-html.tmac, tmac/color.tmac: New files.
5443         * tmac/troffrc: Include them.
5444         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
5445         * tmac/Makefile.sub: Updated.
5447         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
5448         man/groff.man: Updated.
5449         * font/devps/prologue.ps: Define FC and CO functions.
5451 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
5453         Fix incorrect cropping of images and incorrect handling of special
5454         characters.  Fix handling of file names in \O.
5456         * src/include/geometry.h: New file.
5457         * src/libs/libgroff/geometry.cc: New file.
5458         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
5459         to `geometry.cc'.
5460         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
5461         initial spaces.
5462         (do_suppress): Updated.
5463         * src/roff/troff/node.cc: Include geometry.h.
5464         (troff_output_file::flush_tbuf): Fixed parameters to
5465         `check_output_limits'.
5466         (troff_output_file::check_charinfo): Ditto.
5467         (troff_output_file::determine_line_limits): Add support for `Da'
5468         and `Dl' commands.
5470         * src/devices/grohtml/post-html.cc (str_translate_to_html):
5471         Add new parameter `is_special' to decode special characters from
5472         escape sequences.
5473         (html_printer::do_title, html_printer::do_heading,
5474         html_printer::do_indentedparagraph,
5475         html_printer::translate_to_html, html_printer::special): Updated.
5477 2001-10-03  Werner LEMBERG  <wl@gnu.org>
5479         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
5480         Fix entry for config.h.
5481         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
5482         * tmac/troffrc: Translate nonbreakable space character to `\~'.
5483         * src/preproc/eqn/eqn.man: Document -d command line option.
5485 2001-09-27  Werner LEMBERG  <wl@gnu.org>
5487         * man/groff.man: Use
5489           .ev xxx
5490           .na
5491           .nh
5492           <table>
5493           .ev
5495         instead of the old code (`.ad .hy' after the table) to suppress
5496         incorrect hyphenation for grohtml output.
5498 2001-09-22  Werner LEMBERG  <wl@gnu.org>
5500         * man/groff_font.man, man/groff_out.man: Minor fixes.
5502 2001-09-20  Werner LEMBERG  <wl@gnu.org>
5504         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
5505         Arnold Robbins <arnold@skeeve.com>).
5507 2001-09-09  Werner LEMBERG  <wl@gnu.org>
5509         * configure: Regenerated with autoconf 2.52.
5511         * doc/groff.texinfo: Complete revision of indices.
5513 2001-09-07  Werner LEMBERG  <wl@gnu.org>
5515         * doc/Makefile (clean): Updated to delete all indices.
5517 2001-09-05  Werner LEMBERG  <wl@gnu.org>
5519         * src/roff/troff/troff.man: Remove superfluous line.
5521         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
5522         given on the command line (or rather, if only the default warnings
5523         are set).
5525 2001-09-03  Werner LEMBERG  <wl@gnu.org>
5527         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
5528         use .ne for TTY devices.
5530 2001-08-31  Werner LEMBERG  <wl@gnu.org>
5532         * src/roff/troff/token.h, src/roff/troff/input.cc:
5533         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
5535 2001-08-28  Werner LEMBERG  <wl@gnu.org>
5537         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
5538         * src/roff/troff/input.cc (token::next): Return
5539         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
5540         compatibility mode.
5541         (token::description): Updated.
5542         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
5543         (token::add_to_node_list, token::process): Ignore
5544         TOKEN_TRANSPARENT_ESCAPE.
5546 2001-08-27  Werner LEMBERG  <wl@gnu.org>
5548         * tmac/an-old.tmac: Fix `S' string.
5550 2001-08-26  Werner LEMBERG  <wl@gnu.org>
5552         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
5554 2001-08-25  Werner LEMBERG  <wl@gnu.org>
5556         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
5557         backslashes).
5558         Many other minor fixes.
5560         * configure.ac: Add message at end to inform how to compile
5561         xditview.
5562         * configure: Regenerated.
5564 2001-08-24  Werner LEMBERG  <wl@gnu.org>
5566         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
5567         Updated to latest version of libc.
5569 2001-08-23  Werner LEMBERG  <wl@gnu.org>
5571         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
5572         Autoconf 2.50 and newer can handle this.
5573         * configure: Regenerated.
5575 2001-08-21  Werner LEMBERG  <wl@gnu.org>
5577         * doc/pic.ms: Fix typo.
5578         * src/preproc/tbl/tbl.man: Document case of global options.
5580 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5582         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
5583         handling of `CR' font.
5585 2001-08-20  Werner LEMBERG  <wl@gnu.org>
5587         Use a config.h file.
5589         * src/include/lib.h: Include config.h.
5590         * All C files: Ditto (if necessary).
5591         * All C++ source and header files: Include lib.h first (if
5592         necessary).
5594         * src/include/config.hin: New file (autogenerated by autoheader).
5595         * stamp-h.in: New file.
5596         * configure.ac: Updated.
5597         * aclocal.m4: Add third parameters to AC_DEFINE macros.
5598         (GROFF_ARRAY_DELETE): Simplified.
5599         * Makefile.sub (DISTCLEANFILES): Updated.
5600         Added targets for remaking config.status, config.hin, config.h,
5601         stamp-h.in, and stamp-h.
5602         * configure: Regenerated.
5604 2001-08-19  Werner LEMBERG  <wl@gnu.org>
5606         * NEWS: Updated.
5608 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
5610         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
5611         (do_sprintf): Use snprintf().
5613 2001-08-18  Werner LEMBERG  <wl@gnu.org>
5615         * src/libs/snprintf/*: Added an snprintf module written by Mark
5616         Martinec.
5617         * src/libs/libgroff/Makefile.sub: Updated.
5618         * configure.ac: Add test for snprintf().
5619         * Makefile.in: Updated.
5620         * configure: Regenerated.
5622         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
5623         uses snprintf().
5625 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
5627         * tmac/doc.tmac (Ex): New implementation.
5628         * tmac/doc-common, tmac/groff_tmac.man: Updated.
5630 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
5632         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
5633         argument.
5634         * tmac/groff_tmac.man: Updated.
5636 2001-08-13  Werner LEMBERG  <wl@gnu.org>
5638         * src/preproc/tbl/tbl.man: Minor documentation update.
5640 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5642         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
5643         * configure.ac: Add declaration test for gettimeofday().
5644         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
5645         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
5646         * configure: Regenerated.
5648 2001-08-11  Werner LEMBERG  <wl@gnu.org>
5650         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
5651         * configure.ac: Add declaration test for strcasecmp().
5652         * Makefile.in: Updated.
5653         * configure: Regenerated.
5654         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
5655         this is necessary because groff's mkstemp.cc is C++.
5656         Add declaration conditionally for strcasecmp().
5658 2001-08-10  Werner LEMBERG  <wl@gnu.org>
5660         Integrated pic2graph, contributed by Eric S. Raymond.
5662         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
5663         files.
5664         * Makefile.in, NEWS: Updated.
5666         * src/preproc/tbl/tbl.man: Revised.
5668 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
5670         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
5672 2001-08-09  Werner LEMBERG  <wl@gnu.org>
5674         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
5675         requests.
5677 2001-08-08  Paul Eggert  <eggert@twinsun.com>
5679         * Makefile.sub (configure): Depend on configure.ac, not
5680         configure.in.
5681         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
5683 2001-08-07  Werner LEMBERG  <wl@gnu.org>
5685         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
5686         fixes.
5688 2001-08-06  Werner LEMBERG  <wl@gnu.org>
5690         * src/roff/troff/troff.man: Improve documentation of -E option.
5692 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5694         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
5695         Simplified.
5697 2001-07-27  Werner LEMBERG  <wl@gnu.org>
5699         * src/preproc/refer/refer.cc: Undo last change.
5700         * src/devices/grohtml/post-html.cc: Ditto.
5702 2001-07-26  Werner LEMBERG  <wl@gnu.org>
5704         * src/preproc/refer/refer.cc: Include `lib.h'.
5705         * src/devices/grohtml/post-html.cc: Ditto.
5707 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
5709         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
5710         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
5711         * Makefile.in: Comment updated.
5712         * configure: Regenerated.
5714 2001-07-25  Werner LEMBERG  <wl@gnu.org>
5716         * src/preproc/pic/pic.cc: Removed.
5717         * src/preproc/pic/pic_tab.h: Removed.
5718         * src/preproc/refer/label.cc: Removed.
5720         * doc/Makefile (.ms.html): Don't use a file name extension in
5721         argument to grohtml's -I option.
5722         * Makefile.in (dist): Remove CVS directories.
5723         Call `distfiles' target.
5725         * src/devices/grohtml/grohtml.man: Add information about valid
5726         versions of pnmtopng.
5727         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
5728         name instead of number.
5730 2001-07-24  Werner LEMBERG  <wl@gnu.org>
5732         * doc/groff.texinfo: Minor fixes.
5734 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
5736         * doc/Makefile (.ms.html): Put image files into a subdirectory.
5737         (clean): Updated.
5739 2001-07-20  Werner LEMBERG  <wl@gnu.org>
5741         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
5742         * src/libs/libgroff/mkstemp.cc: New file.
5743         * src/libs/libgroff/mksdir.cc: New file.
5744         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
5745         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
5746         * src/libs/libgroff/Makefile.sub: Updated.
5747         * src/include/lib.h: Add mksdir() prototype.
5748         * src/include/posix.h: Define S_IXUSR if not yet defined.
5750         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
5751         (createAllPages): Use mksdir() instead of current code.
5752         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
5753         (main): [!HAVE_MKSTEMP]: Removed.
5755         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
5756         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
5757         macros.
5758         * configure.ac: Add tests for stdint.h, sys/time.h, and
5759         gettimeofday().
5760         Call new GROFF_xxx macros.
5761         * configure: Regenerated.
5762         * Makefile.in: Comments updated.
5764 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
5766         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
5767         instead of current code.
5768         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
5769         * src/roff/groff/groff.cc (possible_command::insert_args): New
5770         function.
5771         (main): Use it for predriver handling instead of insert_arg().
5773 2001-07-19  Werner LEMBERG  <wl@gnu.org>
5775         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
5776         groff also.
5778         * src/include/posix.h: Define S_IWUSR if not yet defined.
5780 2001-07-18  Werner LEMBERG  <wl@gnu.org>
5782         * NEWS: Updated.
5784 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
5786         * tmac/groff_mdoc.man: Document new -width and -column syntax.
5787         Some other minor fixes.
5788         * tmac/an-old.tmac: Add `AT' and `UC' macros.
5790 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
5792         Replace call to `troff' with `groff -Z' to make it aware of
5793         GROFF_BIN_PATH.
5795         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
5796         (troff_command, command_prefix): Removed.
5797         (alterDeviceTo): Use groff.
5798         (addZ): New function.
5799         (char_buffer::do_html): Use it.
5800         (scanArguments): Use TROFF_COMMAND.
5801         (findPrefix): Removed.
5802         (main): Updated.
5803         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
5805 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
5807         * doc/pic.ms: Documentation fixes.
5809 2001-07-17  Werner LEMBERG  <wl@gnu.org>
5811         Replace atexit() with global destructor.
5813         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
5814         (xtmpfile_list_init): New global structure to deallocate
5815         xtmpfile_list on exit.  Its destructor inherits most code from
5816         remove_tmp_files().
5817         (remove_tmp_files): Deleted.
5818         (add_tmp_file): Simplified.
5820 2001-07-16  Werner LEMBERG  <wl@gnu.org>
5822         Replace strdup() with strsave().
5824         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
5825         (set_papersize): Use strsave() and a_delete.
5826         (main): Use strsave().
5827         * src/preproc/html/pre-html.cc (make_message, createAllPages,
5828         removeAllPages): Use strsave() and a_delete.
5830         * configure.ac: Remove test for strdup.
5831         * Makefile.in: Comment updated.
5832         * configure: Regenerated.
5834 2001-07-15  Werner LEMBERG  <wl@gnu.org>
5836         * win32-diffs: Updated.
5838 2001-07-14  Werner LEMBERG  <wl@gnu.org>
5840         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
5841         removing the old one.
5842         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
5844 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5846         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
5848 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
5850         Merge -xwidth into -width.  Add -xwidth functionality to -column
5851         also.
5853         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
5854         avoid warning.
5855         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
5856         string immediately following a leading dot starts with a valid mdoc
5857         argument.
5858         Add similar code to the -column branch.
5859         (doc-Bl-usage): Updated.
5860         * groff_mdoc.man: s/-xwidth/-width/.
5862 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
5864         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
5865         running into centered or non-formatted text.
5867 2001-07-11  Werner LEMBERG  <wl@gnu.org>
5869         Introduce short and long prefixes to have the selection at run-time
5870         whether there is a 8+3 limit for names of temporary files.
5872         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
5873         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
5874         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
5875         variables.
5876         (temp_init): New global structure to initialize above three
5877         variables.
5878         (xtmptemplate): Use two parameters for long and short prefix.
5879         Simplify code use above three variables.
5880         (xtmpfile): Use long and short prefixes as parameters.
5881         * src/include/lib.h: Updated.
5883         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
5884         with ...
5885         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
5886         (createAllPages, makeTempFiles): Updated.
5888 2001-07-09  Werner LEMBERG  <wl@gnu.org>
5890         * REVISION: Increased to 3.
5892 Version 1.17.2 released
5893 =======================
5895 2001-07-07  Werner LEMBERG  <wl@gnu.org>
5897         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
5898         to size_t.
5900 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
5902         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
5903         Fix synopsis.
5904         * tmac/groff_mdoc.man: Fix synopsis.
5906 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
5908         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
5909         Restore `doc-Pa-font'.
5911 2001-07-04  Werner LEMBERG  <wl@gnu.org>
5913         * src/utils/indxbib/dirnamemax.c: Moved to ...
5914         * src/libs/libgroff/maxfilename.cc: Here.
5915         s/dir_name_max/file_name_max/.
5916         Add copyright.
5917         * src/include/lib.h: Add file_name_max.
5918         * src/utils/indxbib/indxbib.cc: Updated.
5919         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
5920         Updated.
5922         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
5923         as empty.
5924         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
5926         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
5927         REGION_TEMPLATE): New macros.
5928         (createAllPages, makeTempFiles): Use them.
5929         Include `nonposix.h'.
5930         (html_system): New function.
5931         (createAllPages, createImage): Use it.
5932         Use EXE_EXT.
5934         * tmac/www.tmac: Fix typos.
5936 2001-07-03  Werner LEMBERG  <wl@gnu.org>
5938         * tmac/www.tmac: Disable hyphenation in normal text only if output
5939         device is html.
5940         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
5941         * tmac/groff_mwww.man, NEWS: Updated.
5943 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
5945         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
5946         image location.
5948 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
5950         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
5951         doc-display-ps-stack): Implement font and font size stack for
5952         displays.
5954 2001-07-02  Werner LEMBERG  <wl@gnu.org>
5956         * REVISION: Increased to 2.
5957         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
5959         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
5960         beginning of a line.
5961         * src/groff/grog/grog.sh: Ditto.
5963 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
5965         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
5966         make it portable.
5968 2001-06-27  Werner LEMBERG  <wl@gnu.org>
5970         Fix problems with preprocessor string for `man' program.
5972         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
5973         Updated/added copyright.
5974         Moved Emacs's local variable to identify nroff mode to the end of
5975         the file; add local variable if missing.
5977 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
5979         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
5980         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
5981         * configure: Regenerated.
5983 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
5985         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
5986         * configure: Regenerated.
5988 2001-06-24  Werner LEMBERG  <wl@gnu.org>
5990         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
5991         but www.tmac.
5992         * doc/pic.ms: Fix typos.
5994 Version 1.17.1 released
5995 =======================
5997 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
5999         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
6000         * configure: Updated.
6002 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
6004         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
6005         image names.
6006         * src/roff/troff/dic.cc (blank_line): Add html tag.
6008 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
6010         * src/roff/troff/input.cc (do_suppress): Fix typo.
6012 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
6014         Added two new options (-D and -I) to specify image names and a
6015         subdirectory to place the images in.
6017         Change syntax from \\Ox to \\O[x].
6019         * src/devices/grohtml/post-html.cc (main): Add options.
6020         (usage): Updated.
6021         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
6022         Use `NULL' instead of `0' for null string pointers.
6023         (MAX_RETRIES): New macro.
6024         (lengthOfintToStr, intToStr, make_message): New functions.
6025         (makeFileName): Make function static.
6026         Implement -D and -I options.
6027         (checkImageDir): New function.
6028         (write_end_image, write_start_image): Use new syntax of \O.
6029         (createAllPages, removeAllPages): Implement -D and -I options.  Use
6030         make_message().
6031         (createImage): Use make_message().
6032         (addps4html): Add guard for malloc().
6033         (usage, scanArguments): Updated.
6034         (makeTempFiles): Use mkstemp().
6035         (removeTempFiles): Use unlink().
6036         (findPrefix): Add guard for malloc().
6037         (main): Updated.
6038         * src/roff/troff/input.cc (get_delim_file_name): New function to
6039         parse \O.
6040         (do_suppress): Updated to parse new syntax.
6041         * src/devices/grohtml/grohtml.man: Updated.
6042         * tmac/www.tmac: Updated to new syntax.
6044         * NEWS: Updated.
6046 2001-06-15  Werner LEMBERG  <wl@gnu.org>
6048         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
6050         * src/devices/grohtml/grohtml.man: Minor improvements.
6052 2001-06-14  Werner LEMBERG  <wl@gnu.org>
6054         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
6056 2001-06-11  Werner LEMBERG  <wl@gnu.org>
6058         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
6059         line to specify preprocessor options -- mandb 2.3.1 only recognizes
6060         the former.
6061         * src/preproc/grn/grn.man: Add proper '\" string.
6063 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
6065         * test-groff: Don't use PATH but GROFF_BIN_PATH.
6067 2001-06-08  Werner LEMBERG  <wl@gnu.org>
6069         Updated to autoconf 2.50.
6071         * configure.in: Renamed to...
6072         * configure.ac: This.
6073         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
6074         (GROFF_OS390): Updated.
6075         * configure: Regenerated.
6077 2001-05-18  Werner LEMBERG  <wl@gnu.org>
6079         * src/roff/troff/env.c, src/roff/troff/env.h,
6080         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
6081         from 2000-12-21.
6083 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
6085         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
6087 2001-05-16  Werner LEMBERG  <wl@gnu.org>
6089         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
6090         less than or equal zero; set it to 1 then.
6091         * src/roff/troff/node.h (node::node): Initialize `last'.
6093 2001-05-08  Werner LEMBERG  <wl@gnu.org>
6095         * tmac/an-old.tmac: Make predefined strings work in compatibility
6096         mode.
6097         Add troff version guard.
6098         * tmac/doc.tmac: Simplify version guard.
6100 2001-05-07  Werner LEMBERG  <wl@gnu.org>
6102         The .ns and .rs requests are now honoured not only in the top-level
6103         but in all diversions (similar to UNIX troff).
6105         This change is based on a patch from Tadziu Hoffmann
6106         <hoffmann@usm.uni-muenchen.de>.
6108         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
6109         (top_level_diversion): Remove `no_space_mode' member.
6110         * src/roff/troff/div.cc (diversion::diversion,
6111         top_level_diversion::top_level_diversion): Updated.
6112         (macro_diversion::output): Reset `no_space_mode'.
6113         (no_space, restore_spacing): Use `curdiv' unconditionally.
6114         (space_request, blank_line): Check `curdiv->no_space_mode'.
6115         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
6116         `curdiv' unconditionally.
6117         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6118         Updated.
6120 2001-05-06  Werner LEMBERG  <wl@gnu.org>
6122         Added two new requests `de1' and `am1' which are similar to `de' and
6123         `am' with the difference that compatibility mode is saved on entry,
6124         switched off during macro execution, and restored on exit.
6126         * src/roff/troff/input.h: Added two new special characters
6127         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
6128         * src/roff/troff/input.cc (input_iterator): Added two member
6129         functions `save_compatible_flag' and `get_compatible_flag'.
6130         (input_stack): Ditto.
6131         (string_iterator): Ditto.  Also add private member
6132         `saved_compatible_flag'.
6133         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
6134         (calling_mode): New enumeration.
6135         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
6136         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
6137         (define_macro, define_indirect_macro, append_macro, ignore): Use
6138         `calling_mode'.
6139         (define_nocomp_macro, append_nocomp_macro): New functions.
6140         (init_input_requests): Updated.
6141         (do_request): Rename local variable `saved_compatible_flag' to
6142         `old_compatible_flag'.
6143         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6145         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
6146         public and trap-invoked macros.  As a consequence, the man macros
6147         work in compatibility mode also.
6149 2001-05-06  Solar Designer  <solar@openwall.com>
6151         * Makefile.in: Use $(mandir).
6153 2001-05-06  Alexios Zavras  <zvr@pobox.com>
6155         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
6157 2001-05-05  Werner LEMBERG  <wl@gnu.org>
6159         Added `.ns' number register: Returns 1 in no-space mode (if in
6160         top-level diversion), 0 otherwise.
6162         * src/roff/troff/div.cc (no_space_mode_reg): New class.
6163         (init_div_requests): Updated.
6164         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
6165         Document it.
6167 2001-05-04  Werner LEMBERG  <wl@gnu.org>
6169         * src/roff/nroff/nroff.man: Improved documentation (especially
6170         locales).
6172 2001-05-02  Werner LEMBERG  <wl@gnu.org>
6174         Added `brp' request: This is \p as a request.
6176         * src/roff/troff/env.cc (environment::do_break): Add parameter
6177         `spread'.
6178         (do_break_request): New function (was `break_request').
6179         (break_request): Calls `do_break_request'.
6180         (break_spread_request): New; calls `do_break_request'.
6181         (init_env_requests): Updated.
6182         * src/roff/troff/env.h: Updated.
6183         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6185         * REVISION: Increased to 1.
6186         * win32-diffs: Updated.
6188 2001-05-01  Werner LEMBERG  <wl@gnu.org>
6190         * tmac/an-old.tmac: Fix minor compatibility mode issue.
6191         * tmac/troffrc-end: Make it really work in compatibility mode.
6193 2001-04-27  Werner LEMBERG  <wl@gnu.org>
6195         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
6196         stdlib.h.
6198 2001-04-22  Werner LEMBERG  <wl@gnu.org>
6200         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
6201         latest versions from glibc CVS archive.
6203         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
6204         <c.zeelenberg@hccnet.nl>.
6206 2001-04-21  Werner LEMBERG  <wl@gnu.org>
6208         * configure.in: Move check for mkstemp() to...
6209         * aclocal.m4 (GROFF_MKSTEMP): This new function.
6210         * configure: Regenerated.
6212         * src/include/groff-getopt.h: Don't use variable names in
6213         declarations.
6215         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
6216         * src/devices/grohtml/Makefile.sub,
6217         src/devices/grohtml/post-html.cc: Updated.
6219 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
6221         * configure.in: Add special check for mkstemp().
6222         * src/libs/libgroff/tmpfile.cc: Use it.
6223         * src/utils/indxbib/indxbib.cc: Ditto.
6224         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
6225         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
6226         `const'.
6228 2001-04-20  Bruce Lilly  <blilly@erols.com>
6230         `Version_string' as C++ object was not visible to linker from C
6231         object files.
6232         Add `const' to `Version_string'.
6234         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
6235         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
6236         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
6237         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
6238         (scanArguments), src/preproc/refer/refer.cc (main),
6239         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
6240         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
6241         (main), src/devices/grohtml/post-html.cc (main),
6242         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
6243         (main), src/utils/hpftodit/hpftodit.cc (main),
6244         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
6245         (main), src/utils/lkbib/lkbib.cc (main),
6246         src/utils/addftinfo/addftinfo.cc (main): Implement it.
6248         * src/roff/groff/pipeline.c: Add _UWIN.
6249         * src/include/nonposix.h: Ditto.
6251 2001-04-20  Werner LEMBERG  <wl@gnu.org>
6253         * src/include/lib.h: Use HAVE_STRERROR.
6254         * src/roff/groff/pipeline.c: Ditto.
6255         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
6256         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
6257         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
6258         * win32-diffs: Updated.
6259         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
6261 2001-04-19  Werner LEMBERG  <wl@gnu.org>
6263         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
6264         instead of hardwired `"troff"'.
6265         (char_buffer::read_file): Remove unused variables.
6266         (char_buffer::write_file_troff): Ditto.
6267         (char_buffer::write_file_html): Ditto.
6268         (generateImages): Ditto.
6269         (abs): Removed.
6270         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
6272         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
6274         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
6275         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
6276         index_search_item::search1): Ditto.
6277         * src/roff/troff/node.h (width_list): Reorder members.
6278         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
6279         (lookup_warning): Ditto.
6280         (prepend_string): Commented out.
6281         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
6282         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
6283         * src/preproc/tbl/main.cc (process_format): Ditto.
6284         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
6285         compiler warnings.
6286         * src/preproc/pic/pic.cc: Updated.
6287         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
6288         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
6289         * src/preproc/refer/command.cc (execute_command): Ditto.
6290         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
6291         * src/preproc/refer/token.cc (lookup_token): Ditto.
6292         * src/preproc/soelim/soelim.cc: Ditto.
6293         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
6294         (isHexDigit): Commented out.
6295         (pushBackBuffer::isString): Remove unused variable.
6296         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
6297         warning.
6298         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
6299         resource_manager::read_resource_arg, read_one_of, parse_extensions):
6300         Ditto.
6301         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
6302         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
6303         lookup_paper_size): Ditto.
6304         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
6305         (text_glob, element_list): Reorder members.
6306         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
6307         compiler warning.
6308         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
6309         return value to `void'.
6310         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
6311         of initializers.
6312         * src/devices/grohtml/html.h (simple_output::check_newline,
6313         simple_output::space_or_newline, simple_output::enable_newlines):
6314         Add return value.
6315         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
6316         compiler warnings.
6317         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
6318         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
6319         output_ligatures, output_charset, read_map): Ditto.
6320         * src/utils/lookbib/lookbib.cc (main): Ditto.
6321         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
6322         (do_file): Fix typo (`=' -> `==').
6323         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
6324         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
6326 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
6328         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
6329         Fix usage of GROFF_BIN_PATH.
6330         * src/roff/nroff/nroff.man: Updated.
6332 2001-04-18  Werner LEMBERG  <wl@gnu.org>
6334         * NEWS: Fixing typos.
6335         Updated.
6337 Version 1.17 released
6338 =====================
6340 2001-04-17  Werner LEMBERG  <wl@gnu.org>
6342         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
6343         directory, not in $(srcdir).
6345 2001-04-16  Werner LEMBERG  <wl@gnu.org>
6347         * doc/groff.texinfo: More info on conditionals.
6349 2001-04-15  Werner LEMBERG  <wl@gnu.org>
6351         * doc/groff.texinfo: Added some info about groff internals.
6353         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
6354         about missing special character only if the name is non-null.
6356 2001-04-14  Werner LEMBERG  <wl@gnu.org>
6358         Removing the grohtml-old device driver which is now obsolete.
6360         * src/devices/grohtml-old/*: Removed.
6361         * font/devhtml-old/*: Removed.
6362         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
6363         Remove comments.
6364         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
6365         * test-groff (PATH): Updated.
6366         * tmac/Makefile.sub (NORMALFILES): Updated.
6367         * tmac/an-old.tmac: Remove special code for html-old device.
6368         Replace `html-or-html-old' register with `an-html'.
6369         * tmac/eqnrc: Updated.
6370         * tmac/html-old.tmac: Removed.
6371         * tmac/troffrc, tmac/troffrc-end: Updated.
6372         * tmac/www.tmac: Remove special code for html-old device.
6373         Replace `html-or-html-old' register with `www-html'.
6375         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
6376         src/libs/libgroff/htmlindicate.cc (graphic_end),
6377         include/htmlindicate.h, src/preproc/grn/*.cc,
6378         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
6379         single argument for consistency with rest of source code.
6381         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
6383 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
6385         * src/roff/troff/troff.man: Fixing typos.
6387 2001-04-13  Werner LEMBERG  <wl@gnu.org>
6389         * doc/pic.ms: Fixing many font switches.
6390         * doc/groff.texinfo: Fixes, additions.
6391         * MORE.STUFF: Updated.
6393 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
6395         * src/devices/grohtml/grohtml.man: Updated manual page regarding
6396         simple anchor.
6397         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
6398         cropping of images.
6399         (removeTempFiles): New function to tidy up temporary files.
6400         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
6401         Many fixes to do with the new inline suppress node and image regions
6402         are much tighter.
6403         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
6404         (generate_img_src): New function.
6405         (html_printer::do_auto_image): Utilizes it.
6406         (do_heading, do_title): Include inline images within their contents.
6407         (html_printer::begin_page): Tidied up comments that are issued to
6408         the html output file.
6409         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
6410         than courier.
6411         (text_glob::is_br): New method used by do_heading.
6412         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
6413         equivalent diversion.
6414         * src/include/html-strings.h: Altered image tags to reflect the
6415         inline image node.
6416         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
6417         parameter.
6418         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
6419         it is already inside a pic image.  Only emit tags if the argument
6420         `-Tps:html' is present.
6421         * src/preproc/tbl/main.cc: Changes to reflect additional
6422         `html_end_suppress' parameter.
6423         * src/roff/troff/env.cc: Only emit eol tag if a node has been
6424         emitted since the last eol tag was written.
6425         * src/roff/troff/env.h: New boolean `emitted_node'.
6426         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
6427         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
6428         * src/roff/troff/node.cc (check_charinfo): New method. 
6429         (troff_output_file::determine_line_limits): Alterations to limit
6430         checking.
6431         * tmac/www.tmac: Changes to reflect new suppress nodes.
6432           
6433 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
6435         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
6436         Escape the html_glyph in the buffer.
6437         (str_translate_to_html): Output the unescaped escaped_char.
6438         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
6439         `frame=void', not `frame=none'.  Add `border=0'.
6441 2001-04-12  Werner LEMBERG  <wl@gnu.org>
6443         * PROBLEMS: Add some words on how to avoid wrapper macros.
6445 2001-04-11  Blake McBride  <blake@florida-software.com>
6447         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
6449 2001-04-11  Werner LEMBERG  <wl@gnu.org>
6451         * font/devlbp/Makefile.sub (CLEANADD): Set it.
6452         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
6453         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
6454         * Makefile.sub (DISTCLEANFILES): Here.
6456         * libs/libgroff/new.cc: Include `nonposix.h'.
6457         * win32-diffs: Updated.
6459 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
6461         Added skeleton macro for defunct macros.
6463         Updated documentation.
6465         When inside displays, an empty input line warning should be
6466         suppressed.  If another macro call is put inside a display,
6467         all subsequent empty lines found in that display caused a
6468         warning to be emitted.
6470         * tmac/doc.tmac (doc-defunct-macro): New macro.
6471         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
6472         (doc-restore-global-vars): Fixed typo.
6473         (doc-empty-line): Check the `doc-display-depth' register to
6474         determine whether we are inside display or not.
6476         * tmac/doc-common: Removed `Or' and `Sf' registers.
6477         Moved obsolete `Ds' macro to doc.tmac.
6479         * tmac/groff_mdoc.man: Bump document date.
6480         Document `.Vt' under ``Variable Types''.
6481         Removed documentation for obsolete `.Or' macro.
6483 2001-04-10  Werner LEMBERG  <wl@gnu.org>
6485         * NEWS: Updated.
6486         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
6488 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
6490         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
6491         (usage): Add stream argument. Don't exit.
6492         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
6493         Write --version output to stdout, not stderr.
6494         (usage): Add stream argument. Don't exit.
6495         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
6496         (usage): Add stream argument. Don't exit.
6497         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
6498         constants.
6499         (usage): Add stream argument. Don't exit.
6500         (main): Write --help output to stdout, not stderr.
6501         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
6502         (usage): Add stream argument. Don't exit.
6503         * src/devices/grops/ps.cc (main): Accept --help and --version.
6504         (usage): Add stream argument. Don't exit.
6505         * src/devices/grotty/tty.cc (main): Accept --help and --version.
6506         (usage): Add stream argument. Don't exit.
6507         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
6508         (main): Accept --help and --version.
6509         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
6510         (main): Accept --help and --version.
6511         * src/preproc/html/pre-html.cc (usage): Add stream argument.
6512         (scanArguments): Accept --help and --version.
6513         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
6514         (main): Accept --help and --version.
6515         * src/preproc/refer/refer.cc (main): Accept --help and --version.
6516         (usage): Add stream argument. Don't exit.
6517         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
6518         exit.
6519         (main): Accept --help and --version.
6520         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
6521         (main): Accept --help and --version.
6522         * src/roff/groff/groff.cc (main): Accept --help and --version.
6523         (synopsis): Add stream argument.
6524         (help): Write --help output to stdout, not stderr.
6525         (usage): Add stream argument. Don't exit.
6526         * src/roff/grog/grog.pl: Accept --help and --version.
6527         (help): New sub.
6528         * src/roff/grog/grog.sh: Accept --help and --version.
6529         * src/roff/nroff/nroff.sh: Accept --help and --version.
6530         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
6531         (usage): Add stream argument. Don't exit.
6532         (main): Accept --help and --version.
6533         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
6534         (usage): New function with stream argument, doesn't exit.
6535         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
6536         (usage): New function with stream argument, doesn't exit.
6537         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
6538         (usage): Add stream argument. Don't exit.
6539         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
6540         (main): Accept --help and --version.
6541         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
6542         exit.
6543         (main): Accept --help and --version.
6544         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
6545         (main): Accept --help and --version.
6546         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
6547         (usage): Add stream argument. Don't exit.
6549 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
6551         Fix indentation in SYNOPSIS.
6553         Updated to include changes of latest BSD mdoc version (basically,
6554         the only change is that `.Fn' and `.Fc' put a final semicolon after
6555         a function declaration in the SYNOPSIS section).
6557         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
6558         (doc-in-synopsis-section): New variable.  Updated all related
6559         functions.
6560         (doc-indent-synopsis-active): New register.
6561         (Nd, Fn, Fo): Use it.
6562         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
6563         `.Cd' with long argument line produces indented wrapped lines. 
6564         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
6565         undesirable line break to be output.
6566         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
6567         `.rs'.
6568         (Fn, Fc): Add final `;' to output.
6569         (doc-save-global-vars, doc-restore-global-vars): Updated.
6570         * tmac/doc-common: Remove `Ex' register.
6571         Updated.
6572         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
6573         copyright.
6575 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6577         * tmac/doc.tmac (Cd): Simplify code.
6578         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
6580 2001-04-06  Werner LEMBERG  <wl@gnu.org>
6582         Implement continuous underlining for nroff mode.  To do that, a new
6583         request in the ditroff language has been added: `x u N' (N is 0
6584         or 1).
6586         \X and \Y are now transparent to end-of-sentence recognition.
6588         * src/include/printer.h (printer): Add `type' parameter to `special'
6589         method.
6590         * src/libs/libdriver/printer.cc (printer::special): Updated.
6591         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
6593         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
6594         specials of type `p'.
6595         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
6596         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
6597         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
6598         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
6599         (glyph::order): New method.
6600         (tty_printer::add_char): Use it.
6601         (tty_printer::special): New method.
6602         (tty_printer::end_page): Implement it.
6604         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
6605         * src/roff/troff/node.cc (special_node::special_node): Add parameter
6606         to set `no_init_string'.
6607         (special_node::tprint_start): Use it.
6608         (special_node::same, special_node::copy): Updated.
6609         (special_node::ends_sentence): New method.
6610         (troff_output_file::start_special): Add parameter to include
6611         inititialization of special conditionally.
6613         * src/roff/troff/env.h (environment): New member `underline_spaces'.
6614         * src/roff/troff/env.cc (do_underline_special): New function.
6615         (environment::set_font): Use it.
6616         (do_underline): Use it.  This was `underline()'.
6617         (underline): Call `do_underline()'.
6618         (continuous_underline): New function which calls `do_underline()'.
6619         (environment::newline): Use `do_underline_special()'.
6620         (init_env_requests): Updated.
6622         * NEWS, man/troff_out.man: Updated.
6624 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
6626         * font/devutf8/R.proto: Fix code of 'shc'.
6628 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
6630         Many fixes.  Diag lists can now be nested also; additionally,
6631         `-compact' and `-offset' are supported.
6633         * tmac/doc.tmac (doc-have-indent): Replaced with ...
6634         (doc-list-have-indent-stackXXX): A new register stack.
6635         (doc-have-diag-list): Removed.
6636         (Bl): Use `doc-list-have-indent-stackXXX'.
6637         (El): Updated.
6638         (doc-diag-list): Use `doc-compact-list-stackXXX'.
6639         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
6640         (doc-set-vertical-and-indent): Ditto.
6641         (doc-next-list-depth): Removed.
6642         (doc-increment-list-stack): Updated.
6643         (doc-decrement-list-stack): Use `doc-list-depth' instead of
6644         `doc-next-list-depth'.
6645         (doc-end-list, doc-end-column-list): Don't use
6646         `doc-increment-list-stack'.
6647         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
6648         (doc-save-global-vars, doc-restore-global-vars): Updated.
6649         * tmac/doc-common: Updated.
6650         * tmac/groff_mdoc.man: Updated.
6651         * NEWS: Fix typo.
6653 2001-04-02  Werner LEMBERG  <wl@gnu.org>
6655         * src/devices/grotty/grotty.man: Fix grammatical error.
6657 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
6659         Remove .Ld from mdoc package; replace it with special handling of
6660         `...'.
6662         * tmac/doc-common: Remove `Ld' register.
6663         Uncomment `doc-volume-ds-*' strings.
6664         Remove `doc-operating-system-default'.
6665         (Os): Updated.
6666         * tmac/doc-syms (Ld): Removed.
6667         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
6668         `...' specially.
6669         * NEWS: Updated.
6671         * tmac/groff_mdoc.man: Many fixes and updates.
6673 2001-03-29  Werner LEMBERG  <wl@gnu.org>
6675         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
6676         Bond <tkb@tkb.mpl.com>.
6677         * tmac/www.tmac: Save compatibility mode.
6679 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
6681         * tmac/groff_mdoc.man: Many fixes.
6683 2001-03-28  Werner LEMBERG  <wl@gnu.org>
6685         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
6686         isn't recognized.
6688 2001-03-27  Werner LEMBERG  <wl@gnu.org>
6690         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
6691         diversion.  This fixes overlong tags.
6693 2001-03-26  Werner LEMBERG  <wl@gnu.org>
6695         * doc/groff.texinfo: Fixed and improved documentation of fonts.
6696         * tmac/doc-syms: Fix error messages.
6697         * tmac/an-old.tmac: Remove incorrect double backslashes.
6699 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
6701         * tmac/Makefile.sub: Strip mdoc.local also
6702         * tmac/strip.sed: Fixed.
6704 2001-03-24  Werner LEMBERG  <wl@gnu.org>
6706         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
6707         selecting the font size.
6708         * tmac/groff_mdoc.man, NEWS: Document it.
6710 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6712         * src/roff/troff/div.cc (save_vertical_space): Add default argument
6713         to `sv' request.
6714         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
6715         argument to restore previous font family.
6716         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
6718         * doc/groff.texinfo: More fixes and additions (mainly for font
6719         manipulating commands).
6721         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
6722         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
6723         * tmac/Makefile.sub, NEWS: Updated.
6725 2001-03-23  Werner LEMBERG  <wl@gnu.org>
6727         Replaced mdoc implementation.  The new version is `state of the
6728         art', using almost all new features of groff 1.17 -- it won't run
6729         with older versions.
6731         * tmac/doc.tmac: Completely rewritten.
6732         * tmac/doc-common: Ditto.
6733         * tmac/doc-nroff: Ditto.
6734         * tmac/doc-ditroff: Ditto.
6735         * tmac/doc-syms: Ditto.
6736         * tmac/mdoc.local: New file.
6737         * tmac/groff_mdoc.samples.man: Replaced with ...
6738         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
6739         * tmac/strip.sed: Updated.
6740         * tmac/Makefile.sub: Updated.
6741         * INSTALL: Updated.
6743         * tmac/groff_man.man: Add `man.local' to the FILES section.
6745 2001-03-22  Werner LEMBERG  <wl@gnu.org>
6747         * doc/groff.texinfo: Added many @noindent.
6748         Replaced @end_Example -> @endExample.
6749         Added info whether registers are r/o.
6750         Many other additions and fixes.
6752 2001-03-21  Werner LEMBERG  <wl@gnu.org>
6754         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
6755         in makeinfo of texinfo 4.0) to be used in @Def* macros.
6756         Improved @Def* macros: Now the exact syntax of request, register,
6757         and escapes is shown.
6758         Added macros for parentheses and brackets to be used in @Def*.
6759         Many fixes and improvements of the documentation.
6761 2001-03-20  Werner LEMBERG  <wl@gnu.org>
6763         * doc/groff.texinfo: Added new index: `st' (for strings).
6764         Added macros @Defstr(x).
6765         Added macro @Example (adding @group).
6766         Other minor improvements.
6768 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6770         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
6771         `rq' for requests.  `fn' is no longer used.
6772         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
6773         Removed @Deffn(x).
6775         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
6776         number with name of man page.
6778 2001-03-19  Larry Kollar  <kollar@alltel.net>
6780         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
6781         consistency.
6783 2001-03-19  Werner LEMBERG  <wl@gnu.org>
6785         * man/groff_font.man: Document `prepro', `postpro', and `print'.
6786         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
6787         * src/devices/grohtml/grohtml.man: Fixing typos.
6789 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
6791         * tmac/s.tmac (@IP): Pass `.ip' html tag.
6792         * tmac/groff_mwww.man: Remove .LINE macro
6793         * tmac/www.tmac (LINE): Add `.ti'.
6795         * src/devices/grohtml/post-html.cc (html_printer): New member
6796         `indent'.
6797         (html_printer::emit_raw): Use it.
6798         (html_printer::do_linelength): Ditto.
6799         (html_printer::do_pageoffset): Ditto.
6800         (html_printer::do_indentation): Ditto.
6801         (html_printer::do_tempindent): Ditto.
6802         (html_printer::do_break): Ditto.
6803         (html_printer::begin_page): Ditto.
6804         (html_printer::do_indentedparagraph): New function.
6805         (html_printer::troff_tag): Handle `.ip'.
6806         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
6807         Add `<td width=...>' handling.
6808         (html_text::do_table): Add parameter.
6809         (html_text::do_indent): Updated.
6810         * src/devices/groohtml/html-text.h: Updated.
6812 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
6814         Introduced simple html tables to implement indentation.
6816         * src/devices/grohtml/html.h (word, word_list): New structures.
6817         (simple_output): Use it.
6818         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
6819         (html_printer): Improve indentation handling.
6820         (html_printer::emit_raw): Set `in_table' element.  Handle
6821         indentation if set.
6822         (html_printer::write_header): Move conditional downwards.
6823         Don't allow whitespace in tags.
6824         (html_printer::do_linelength): Handle line length and indentation
6825         conditionally.
6826         (html_printer::do_pageoffset): Handle indentation conditionally.
6827         (html_printer::do_indentation): Ditto.
6828         (html_printer::do_tempindent): New function member.
6829         (html_printer::do_fill): Take care of indentation.
6830         (html_printer::do_flush): Finish table.
6831         (html_printer::do_links): Ditto.
6832         (html_printer::do_break): New function for handling `.br' and `.ti'.
6833         (html_printer::troff_tag): Use it.
6834         Handle `.ti'.
6835         (html_printer::flush_globs): Fix.
6836         (html_printer::flush_page): Finish table.
6837         (html_printer::html_printer): Fix error message.  Set up
6838         `linelength'.
6839         (html_printer::add_to_sbuf): Remove special handling of character
6840         code 255.
6841         (to_unicode): Remove `stop()'.
6842         (html_printer::write_title): Cleanup.
6843         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
6844         (html_printer::~html_printer): Flush text and end the line.
6845         Use `put_string()'.
6846         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
6847         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
6848         emission of tags.
6849         (html_text::start_tag): Disable newlines.
6850         (html_text::table_is_void): New function.
6851         (html_text::issue_table_begin): Ditto.
6852         (html_text::issue_table_end): Ditto.
6853         (html_text::push_para): Better table handling.
6854         (html_text::do_indent): New function.
6855         (html_text::do_table): Ditto.
6856         (html_text::done_table): Ditto.
6857         (html_text::do_tt): Handle PRE_TAG.
6858         (html_text::is_in_table): New function.
6859         (html_text::check_emit_text): Handle tables.
6860         (html_text::do_emittext): Use `nl()'.
6861         (html_text::do_para): Handle table.
6862         (html_text::remove_def): New function.
6863         * src/devices/grohtml/output.cc (word, word_list): Implement
6864         methods.
6865         (simple_output::end_line): Flush last word.
6866         (simple_output::simple_comment): Ditto.
6867         (simple_output::begin_comment): Recoded.
6868         (simple_output::end_comment): Ditto.
6869         (simple_output::comment_arg): Removed.
6870         (simple_output::check_newline): Improve test and flush last word.
6871         (simple_output::space_or_newline): Improved.
6872         (simple_output::write_newline): Replaced with...
6873         (simple_output::nl): This.
6874         (simple_output::put_raw_char): Flush last word.
6875         (simple_output::check_space): Removed.
6876         (simple_output::put_translated_string): Ditto.
6877         (simple_output::put_string): Simplified.
6878         (simple_output::put_number): Updated.
6879         (simple_output::put_float): Ditto.
6880         (simple_output::put_symbol): Removed.
6881         (simple_output::enable_newlines): Add `check_newline()'.
6882         (simple_output::flush_last_word): New function.
6884         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
6885         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
6887         * tmac/s.tmac (@PP, @IP): Add html conditional code.
6888         * tmac/an-old.tmac (TP): Ditto.
6890 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
6892         * mdate.sh: Make it POSIX compliant.
6894 2001-03-09  Werner LEMBERG  <wl@gnu.org>
6896         Added the `return' request to end a macro immediately.  It simply
6897         pops iterators from the input stack until a macro iterator is found.
6899         * src/roff/troff/input.cc (input_iterator::is_macro,
6900         macro_iterator::is_macro): New member.
6901         (input_return_boundary): New class to signal an immediate return
6902         to while_request().
6903         (input_stack::add_return_boundary, input_stack::is_return_boundary):
6904         New functions.
6905         (input_stack::clear): Use it.
6906         (input_stack::pop_macro): New function.
6907         (while_request): Use `is_return_boundary()'.
6908         (return_macro_request): New function.
6909         (init_input_requests): Use it.
6911         * src/roff/troff/TODO: Updated.
6912         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
6914 2001-03-08  Werner LEMBERG  <wl@gnu.org>
6916         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
6917         cleanup.
6919 2001-03-07  Werner LEMBERG  <wl@gnu.org>
6921         Make `\B' more rigid.
6923         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
6924         parameter.
6925         (get_number_rigidly): New function.
6926         * src/roff/troff/input.cc (do_expr_test): Use it.
6927         * src/roff/troff/token.h: Updated.
6929         * src/roff/troff/request.h: Fix typo (init_html_request ->
6930         init_markup_request).
6932 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
6934         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
6935         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
6936         are now `.begin', `.end', `.image'.
6938         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
6939         (html_printer::add_to_sbuf): Changing type of `code' parameter.
6940         Use add_char_to_sbuf().
6941         (to_unicode): New function.
6942         (char_translate_to_html): Changing type of `ch' parameter.
6943         Use `to_unicode()'.
6944         (html_printer::~html_printer): Comment out doctype string.
6945         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
6946         instead of `.html-end'.
6947         (write_start_image): Use `.begin' and `.image' instead of
6948         `.html-begin' and `.html-image'.
6949         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
6950         (html_begin): Renamed to ...
6951         (begin): This.
6952         (html_end): Renamed to ...
6953         (end): This.
6954         (html_image): Renamed to ...
6955         (image): This.
6956         (init_html_requests): Renamed to ...
6957         (init_markup_requests): This.
6958         * tmac/www.tmac: Updated.
6960 2001-02-28  Bram  <bram@avontuur.org>
6962         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
6963         constructor.
6965 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
6967         * doc/meref.me: Fixing some typos.
6969 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6971         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
6972         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
6973         * src/roff/troff/node.h: Updated.
6975 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
6977         * tmac/groff_tmac.man: Fix typo.
6979 2001-02-16  Werner LEMBERG  <wl@gnu.org>
6981         Fixing a bug which prevented proper end-of-sentence recognition
6982         between an `unformatted' box and the following text.  As a
6983         consequence, vertical line distances are no longer preserved in
6984         boxes after a call to `.unformat' -- because boxes aren't
6985         line-oriented (contrary to diversions), this doesn't make sense
6986         anyway.
6988         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
6989         value.
6990         (vertical_size_node::set_unformat_flag): New method.
6991         * src/roff/troff/node.hh: Updated.
6992         * src/roff/troff/input.cc (word_space_node::reread,
6993         hmotion_node::reread): Reset `unformat' flag after usage.
6994         (unformat_macro): Append only if `set_unformat_flag()' returns
6995         non-zero.
6996         * src/roff/troff/troff.man: Updated.
6998 2001-02-15  Werner LEMBERG  <wl@gnu.org>
7000         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
7001         documentation of `asciify' and `unformat' requests.
7003 2001-02-13  Werner LEMBERG  <wl@gnu.org>
7005         Redesigned the `unformat' request.  It is no longer connected with
7006         `asciify' but rather uses new `reread()' methods if the `unformat'
7007         flag is set.  Additionally, the handling of space characters after
7008         unformatting has been fixed so that they retain their width.
7010         * src/roff/troff/node.h (width_list): New structure to store
7011         original widths of spaces.
7012         (node): Added `unformat' member.
7013         Replaced `num_spaces' variable with `orig_width' list.
7014         * src/roff/troff/node.cc (*node::asciify,
7015         asciify_reverse_node_list): Removed `unformat_only' flag and related
7016         code.
7017         (word_space_node::asciify, word_space_node::word_space_node): Use
7018         `orig_width'.
7019         (word_space_node::~word_space_node): New destructor.
7020         (word_space_node::copy): Updated to handle `orig_width'.
7021         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
7022         (*node::merge_space): Update `orig_width' list if necessary.
7023         (*node::set_unformat_flag): New methods to set the `unformat' flag.
7024         * src/roff/troff/enc.cc (environment::space_newline): Use
7025         `width_list'.
7026         (environment::space): Added method to handle space width and
7027         sentence space width as parameters.  Use `width_list'.
7028         (environment::make_tab_node): Updated.
7029         * src/roff/troff/env.h: Updated.
7030         * src/roff/troff/input.cc (word_space_node::reread,
7031         unbreakable_space_node::reread, hmotion_node::reread): New methods
7032         to handle nodes specially if `unformat' flag is set.
7033         (do_asciify_macro): Renamed back to ...
7034         (asciify_macro): This.
7035         (unformat_macro): New implementation to simply set the `unformat'
7036         flag.
7038         * MORE.STUFF: Added more info about deroff.
7040 2001-02-08  Werner LEMBERG  <wl@gnu.org>
7042         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7043         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
7044         and `add_self()' methods to avoid hyphenation.  For example, the
7045         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
7046         soft hyphen after `foo'.  Now the hyphen list is correctly
7047         `foo<ignore><ignore>bar'.
7049 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
7051         * tmac/groff_tmac.man: Fix `BIR' macro.
7053 2001-02-04  Werner LEMBERG  <wl@gnu.org>
7055         A new escape sequence `\:', inserting a zero-width break point.
7057         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
7058         * src/roff/troff/input.cc (get_copy, token::next, asciify):
7059         Implement it.
7060         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
7061         method.
7062         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
7063         and `asciify()' methods.
7064         * src/roff/troff/node.cc (space_node::space_node): Updated.
7065         (space_node::asciify): Handle `was_escape_colon'.
7066         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7068         Handle `\~' similar to other comparable requests.
7070         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
7071         label.
7072         (token::next): Move creation of an unbreakable_space_node to...
7073         (token::add_to_node_list): Here.
7075         Fix a bug which sometimes prevented hyphenation of words connected
7076         with `\~' or `\ ' (and other escape sequences handled as
7077         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
7078         (after a call to the `unformat' request).
7080         * src/roff/troff/env.h (environment::possibly_break_line,
7081         environment::hyphenate_line): Introducing `start_here' parameter.
7082         * src/roff/troff/env.cc (environment::space_newline,
7083         environment::space): Use it.
7084         (environment::possibly_break_line, environment::hyphenate_line):
7085         Implement it.
7086         * src/roff/troff/input.cc (process_input_stack): Use it.
7087         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
7088         space_char_hmotion_node, overstrike_node): Add
7089         `get_hyphenation_type()' method.
7090         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
7091         if `unformat_only' is active.
7093 2001-01-30  Werner LEMBERG  <wl@gnu.org>
7095         Implemented new read-only number register `.linetabs' which
7096         returns 1 if in line-tabs mode, 0 otherwise.
7098         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
7099         * src/roff/troff/env.cc (get_line_tabs): New function.
7100         (init_env_requests): Use it.
7101         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7103         * VERSION, REVISION: Changing to 1.17.0.
7105 2001-01-28  Werner LEMBERG  <wl@gnu.org>
7107         Fixed a bug which prevented hyphenation of words which are finished
7108         with `\)'.
7110         * src/roff/troff/token.h (token): Add enum type
7111         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
7112         * src/roff/troff/input.cc (token::next, token::description,
7113         get_line_arg, token::add_to_node_list, token::process): Use it.
7115 2001-01-27  Werner LEMBERG  <wl@gnu.org>
7117         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
7118         * src/roff/troff/div.cc (do_divert): Use it.
7120         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
7122 2001-01-25  Werner LEMBERG  <wl@gnu.org>
7124         Adding the `linetabs' request.  If set, tab distances are not
7125         computed relative to the input line but relative to the output line.
7127         * src/roff/troff/env.h (environment): New member `line_tabs'.
7128         * src/roff/troff/env.cc (line_tabs_request): Implement request.
7129         (environment::environment, environment::copy): Updated.
7130         (environment::distance_to_next_tab): Use `line_tabs'.
7131         (init_env_requests): Register request.
7132         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
7133         fixes.
7135 2001-01-24  Werner LEMBERG  <wl@gnu.org>
7137         Introducing a new read-only register `.int' which is set to a
7138         positive value if the last output line is interrupted (i.e., if it
7139         contains `\c').
7141         * src/roff/troff/env.cc (init_env_requests): Add it.
7142         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7144 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
7146         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
7147         * src/preproc/html/pre-html.cc (findPrefix): New function which
7148         generates the troff executable name via the system prefix.
7149         * src/preproc/eqn/main.cc: Modified warning message.
7151 2001-01-23  Werner LEMBERG  <wl@gnu.org>
7153         troff's `box' and `boxa' requests didn't preserve temporary
7154         indentation.
7156         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
7157         `saved_target_text_length' members.
7158         * src/roff/troff/div.cc (do_divert): Use them.
7160         Tabs (but not yet leaders and fields) are now handled correctly by
7161         `asciify' request.
7163         * node.h (hmotion_node): Add field `was_tab'.
7164         * env.cc (environment::make_tab_node): Set it.
7165         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
7167         Added new request `unformat' which will, contrary to `asciify',
7168         preserve font information after unformatting (i.e., only nodes
7169         dealing with horizontal space are converted back to input
7170         characters).
7172         * input.cc (asciify_macro): Renamed to ...
7173         (do_asciify_macro): this, having a new parameter `unformat_only'.
7174         (asciify_macro, unformat_macro): New; using do_asciify_macro.
7175         (init_input_requests): Added `unformat'.
7176         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
7177         parameter to control asciification process.
7178         * node.h (*_node::asciify): Ditto.
7179         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7181 2001-01-20  Werner LEMBERG  <wl@gnu.org>
7183         * doc/groff.texinfo: Minor improvement of `.in' documentation.
7185 2001-01-18  Werner LEMBERG  <wl@gnu.org>
7187         * tmac/ps.tmac: Remove call of psold.tmac.
7188         * tmac/psold.tmac: Comment updated.
7189         * tmac/psnew.tmac: Removed since no longer needed.
7190         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
7192         * font/devutf8/R.proto: Adding `shc' glyph.
7193         * font/devutf8/NOTES: Updated.
7195         * test-groff: Updated.
7197 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7199         First cut of the new html device driver.  Changes to pre-html and
7200         the new grohtml are too numerous to be documented here.
7202         Stuff related to `html' has been renamed to `html-old' and `html2'
7203         stuff has been renamed to `html' (including directories).  The new
7204         html device driver is therefore invoked as `-Thtml'.
7206         Added new `\O' escape to suppress output (needed by html driver).
7208         Added functions and code to pass info about input-level commands
7209         (`.in', `.fl', etc.) to html driver.
7211         Three new functions (.html-begin, .html-end, and .html-image) for
7212         better html handling: `html-begin' will execute the remaining line
7213         if at the outermost nesting level, increasing an internal counter.
7214         `html-end' does the same but decreases the internal counter.
7215         `html_image' puts its arguments into a special node (suppress_node)
7216         to define an image region.
7218         The `output' request has been removed.
7220         * tmac/html-tags.tmac: Removed.
7221         * tmac/arkup.tmac: Updated and renamed to ...
7222         * tmac/www.tmac: New file.
7223         * tmac/markup.tmac Updated and renamed to ...
7224         * tmac/mwww.tmac: New file.
7225         * tmac/Makefile.sub: Updated.
7226         * tmac/an-old.tmac: Updated.
7227         * tmac/eqnrc: Updated.
7228         * tmac/groff_man.man
7229         * tmac/groff_markup.man: Updated and renamed to ...
7230         * tmac/groff_mwww.man: New file.
7231         * tmac/groff_tmac.man: Updated.
7232         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
7233         * tmac/html.tmac: Updated and renamed from html2.tmac.
7234         * tmac/pspic.tmac: Updated html support.
7235         * tmac/s.tmac: Added html output support.
7236         * tmac/troffrc, tmac/troffrc-end: Updated.
7238         * Makefile.in, doc/Makefile: Updated.
7239         * doc/groff.texinfo: Added info about new `\O' escape.
7240         * doc/homepage.ms: Use `MAILTO' macro.
7242         * font/devhtml/DESC.proto: Add `C' font.
7243         * font/devhtml/Makefile.sub: Updated.
7244         * font/devhtml/R.proto: Minor fixes.
7245         * font/devhtml-old/Makefile.sub: Updated.
7247         * src/devices/grohtml-old/Makefile.sub: Updated.
7249         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
7250         method.
7251         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
7252         graphic_start): Add `inline' parameter.  Update.
7253         (html_end_suppress, graphic_end): Update.
7255         * src/include/html-strings.h: New file.
7256         * src/include/htmlindicate.h: Comments updated.
7257         * src/include/printer.h: Updated.
7259         * src/preproc/eqn/main.cc (do_file, main): Updated.
7260         * src/preproc/pic/troff.cc (troff_output::start_picture,
7261         troff_output::finish_picture): Updated.
7262         * src/preproc/tbl/main.cc (process_input_file): Updated.
7264         * src/roff/groff/groff.cc (main): Updated.
7265         Pass device arguments to predrivers also.
7266         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
7267         * src/roff/troff/env.h (environment): Updated.
7268         New elements `need_eol' and `ignore_next_eol' (for html output).
7269         * src/roff/troff/env.cc (environment::environment): Add initializers
7270         for `need_eol' and `ignore_next_eol'.
7271         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
7272         functions.
7273         (point_size, fill, no_fill, center, right_justify, line_length,
7274         indent, temporary_indent, break_request, handle_tab): Use
7275         `add_html_tag()'.
7276         (set_tabs): Use `add_html_tag_tabs()'.
7277         (environment::add_html_tag): Updated.
7278         (environment::do_break): Updated.
7279         * src/roff/troff/div.cc (space_request, flush_output): Use
7280         `environment::add_html_tag()'.
7281         * src/roff/troff/input.cc: Updated.
7282         New variable `html_level' to indicate nested `html-begin' requests.
7283         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
7284         (non_interpreted_char_node, token_node, non_interpreted_node): Add
7285         `force_tprint()' method.
7286         (token::next): Handle `\O'.
7287         (do_suppress): Implement it.
7288         (html_begin, html_end, html_image): New functions.
7289         (init_output_requests): Renamed to ...
7290         (init_html_requests): this.
7291         (main): Use it.
7292         (macro::append_str, macro::append_unsigned, macro::append_int): New
7293         methods.
7294         New variable `output_low_mark_miny' to limit minimal value of y.
7295         (reset_output_registers): Use it.
7296         (output_request): Removed.
7297         (get_output_registers): New function.
7298         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
7299         (*_node): Added `force_tprint()' if necessary.
7300         (special_node): New elements `tf' and `get_tfont()'.
7301         (suppress_node): New class.
7302         * src/roff/troff/node.cc:
7303         New global variables `image_no' and `suppress_start_page'.
7304         (real_output_file): New method `is_on()'.
7305         (troff_output_file): New method `start_special(tfont)'.
7306         (troff_output_file::really_print_line): Use `tprint' conditionally.
7307         (real_output_file::print_line): Updated.
7308         (real_output_file::on): Updated.
7309         (*_node): Added `force_tprint()'.
7310         (special_node::special_node): Initializer updated.
7311         (special_node::same, special_node::copy, special_node::tprint_start):
7312         Updated.
7313         (get_reg_int, get_reg_str): New functions.
7314         (suppress_node::*): New methods.
7315         New global variables last_position, last_image_filename;
7316         (min): New inline function.
7317         * src/roff/troff/reg.h, src/roff/troff/request.h,
7318         src/roff/troff/troff.h: Updated.
7320 2001-01-13  Werner LEMBERG  <wl@gnu.org>
7322         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
7323         documentation of `asciify' request.
7325 2001-01-12  Werner LEMBERG  <wl@gnu.org>
7327         * src/roff/troff/input.cc: Move definition of special characters
7328         like `ESCAPE_TILDE' to ...
7329         * src/roff/troff/input.h: New file.
7330         * src/roff/troff/Makefile.sub (HDRS): Add it.
7332         Extending the .asciify request to `unformat' space characters also.
7334         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
7335         to count input space characters.
7336         Update constructors to take care of it.
7337         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
7338         `ESCAPE_SPACE' instead of normal space.
7339         (word_space_node::asciify): New method.
7340         (unbreakable_space_node::asciify): New method.
7341         (word_space_node::merge_space): New method.
7342         * src/roff/troff/env.cc (environment::space_newline,
7343         environment::space): Add code to initialize `num_spaces' (using the
7344         constructor of `word_space_node').
7345         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
7346         Document it.
7348 2001-01-09  Werner LEMBERG  <wl@gnu.org>
7350         * man/groff_char.man: Use table header traps only conditionally.
7352 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
7354         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
7356 2001-01-08  Werner LEMBERG  <wl@gnu.org>
7358         Introducing the `box' and `boxa' requests which are similar to
7359         `di' resp. `da' but omitting a partially filled line (which is
7360         restored after ending the diversion).
7362         * src/roff/troff/div.h (diversion): Add elements to save partially
7363         filled line.
7364         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
7365         partially filled line.
7366         (divert, divert_append): Updated.
7367         (box, box_append): New functions.
7368         (init_div_requests): Use them.
7369         * src/roff/troff/env.h (environment): do_divert() is now a friend.
7370         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
7372         * doc/groff.texinfo: Fix documentation of `lf' request.
7374 2000-12-25  Werner LEMBERG  <wl@gnu.org>
7376         * src/roff/troff/troff.man, NEWS: Document `writem' request.
7378 2000-12-21  Werner LEMBERG  <wl@gnu.org>
7380         Ignore `ss' request if in compatibility mode.
7382         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
7383         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
7384         * src/roff/troff/env.cc (space_size): Use it.
7386         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
7387         `ss' request in nroff mode.
7389         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
7390         changes.
7392 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
7394         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
7396 2000-12-13  Werner LEMBERG  <wl@gnu.org>
7398         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
7399         * src/preproc/eqn/neqn.man: Small fixes and additions.
7401 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
7403         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
7404         Fixing typo.
7406         * src/preproc/eqn/neqn.man: New file.
7408         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
7409         negative' warning.
7411         * tmac/e.tmac: Add `T&' macro.
7412         Fix `indent cannot be negative' warning.
7413         * tmac/s.tmac: Fix `indent cannot be negative' warning.
7415 2000-12-07  Werner LEMBERG  <wl@gnu.org>
7417         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
7419 2000-12-06  Werner LEMBERG  <wl@gnu.org>
7421         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
7422         `alloca' symbol .
7424         * MORE.STUFF: Added info about deroff for djgpp.
7426         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
7427         documentation of -rcR switch.
7429 2000-12-03  Werner LEMBERG  <wl@gnu.org>
7431         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
7432         if -rcR=1 (which is now the default in nroff mode), a single, very
7433         long page is created instead of multiple pages: All `ne' and `wh'
7434         requests are put into conditionals; a new macro `an-end' is added to
7435         be called with `em'.
7437         Some other minor cleanups.
7439         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
7441 2000-12-02  Werner LEMBERG  <wl@gnu.org>
7443         Fixing a bug which prevented hyphenation in words followed
7444         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
7446         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
7447         Adding possibly_break_line().
7448         * src/roff/troff/env.h (environment): Make possibly_break_line()
7449         public.
7451         Make `\~' usable in .tr request.
7453         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
7454         (token): Add stretchable_space().
7455         * src/roff/troff/input.cc (token::next, token::delimiter,
7456         token::description, process_input_stack, do_translate,
7457         add_to_node_list, token::process): Use it.
7458         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
7459         for adjusting the space.
7460         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
7461         for stretchable space.
7462         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
7463         (make_node): Add code for stretchable space.
7464         * src/roff/troff/env.cc (environment::add_char): Use it.
7465         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
7466         (get_copy, token::next, transparent_translate, asciify): Use it.
7468         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
7469         doc/groff.texinfo: Updated.
7470         * man/groff.man: Small reorderings.
7472 2000-11-23  Werner LEMBERG  <wl@gnu.org>
7474         * NEWS: Fixes.
7475         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
7476         option.
7477         * src/roff/troff/input.cc (main): Add `config_macro_path' and
7478         `safer_macro_path' to -M option.
7479         * src/roff/troff/troff.man: Fixes.
7481 2000-11-22  Werner LEMBERG  <wl@gnu.org>
7483         Use safer path (except for config files) if -U isn't specified.  Add
7484         a special macro path (without home and current directory) for config
7485         files.  Add home directory to unsafe path for consistency.  Don't
7486         include the home directory in the font path.
7488         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
7489         `macro_path'.
7490         * src/include/macropath.h: Add `config_macrp_path'.
7491         * src/libs/libgroff/fontfile.cc: Fix font path.
7492         * src/roff/troff/input.cc (process_startup_file): Use
7493         `config_macro_path'.
7494         (main): Select unsafe path if -U is given.
7496         * src/preproc/eqn/main.cc (main): Fixing search path for
7497         configuration file.
7498         * src/preproc/eqn/eqn.man: Updated.
7500         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
7501         Updated.
7503         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
7504         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
7505         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7506         src/devices/grotty/grotty.man: Updated.
7508         * Makefile.in: Fix comments.
7510 2000-11-17  Werner LEMBERG  <wl@gnu.org>
7512         * tmac/safer.tmac: Empty file added (again) for compatibility
7513         reasons.
7514         * tmac/Makefile.sub: Updated.
7516 2000-11-16  Werner LEMBERG  <wl@gnu.org>
7518         * src/devices/grodvi/dvi.cc (main),
7519         src/devices/grohtml2/post-html.cc (main),
7520         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7521         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7522         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7523         (main), src/preproc/html2/pre-html.cc (main),
7524         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7525         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7526         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7527         (main), src/utils/hpftodit/hpftodit.cc (main),
7528         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
7529         (main), src/utils/lookbib/lookbib.cc (main),
7530         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
7531         (main): Use stdout for -v.
7532         * src/roff/groff/groff.cc (run_commands),
7533         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
7534         to make direct printing to stdout possible.
7535         * src/roff/groff/pipeline.h: Updated.
7537         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
7538         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
7539         * src/utils/afmtodit/afmtodit.man: Updated.
7541         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
7542         (version): New function.
7543         (usage): Updated.
7544         * src/utils/addftinfo/addftinfo.man: Updated.
7546         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
7547         Fixing copyright dates.
7549         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
7550         replacing it.
7552         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
7553         version_string.
7555         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
7557 2000-11-15  Werner LEMBERG  <wl@gnu.org>
7559         In all programs, make -v return immediately with exit status 0 to
7560         be compliant with the GNU standard.
7562         * src/devices/grodvi/dvi.cc (main),
7563         src/devices/grohtml2/post-html.cc (main),
7564         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
7565         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
7566         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
7567         (main), src/preproc/html2/pre-html.cc (main),
7568         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
7569         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
7570         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
7571         (main): Implement it.
7572         * NEWS: Updated.
7574         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
7575         and postprocessors to the -v option.
7577         * src/roff/grog/grog.pl: Implement -v.
7578         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
7579         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7581         * src/roff/nroff/nroff.sh: Implement -v.
7582         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
7583         * src/roff/nroff/nroff.man: Updated.
7584         
7585         * src/preproc/eqn/main.cc (main): Fix comment typo.
7587         * MORE.STUFF: Added info about djgpp port of grap.
7589 2000-11-14  Werner LEMBERG  <wl@gnu.org>
7591         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
7592         mode (or rather, implemented non-compatibility mode).
7593         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
7595         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
7596         replacing it -- we don't find gxditview otherwise.
7597         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
7599         * src/preproc/pic/depend: Removed.  Unnecessary.
7601         Implemented dummy keyword `solid' in pic for compatibility with
7602         AT&T pic.
7604         * lex.cc (lookup_keyword): Added `solid'.
7605         * pic.y: Added SOLID with dummy rule.
7606         * pic.cc, pic_tab.h: Regenerated.
7607         * doc/pic.ms: Updated.
7609 2000-11-13  Werner LEMBERG  <wl@gnu.org>
7611         For security reasons, don't use the current directory but the home
7612         directory while searching and scanning troffrc and troffrc-end.
7613         Similarly, replace the current directory with the home directory
7614         in the font path.
7616         * Makefile.in (fontpath, tmacpath): Remove current directory.
7618         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
7619         two parameters `add_home' and `add_current'.
7620         (search_path::~search_path, search_path::command_line_dir,
7621         search_path::open_file): Remove tests for `dirs' being zero.
7622         * src/include/searchpath.h: Adjust.
7623         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
7624         `safer_macro_path'.
7625         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
7627         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
7628         * src/roff/troff/input.cc: Use `mac_path', initialized with
7629         `macro_path'.
7630         (process_startup_file): Set `mac_path' to `safer_macro_path'.
7631         * src/roff/troff/env.cc: Use `mac_path'.
7633         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
7635         * NEWS, man/roff.man, src/roff/troff/troff.man,
7636         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
7637         Updated.
7639 2000-11-12  Werner LEMBERG  <wl@gnu.org>
7641         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
7643         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
7644         * configure.in: Fix typo in comment.
7645         * configure: Regenerated.
7647         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
7648         copyright dates.
7650 2000-11-08  Werner LEMBERG  <wl@gnu.org>
7652         Add system tmac directory (/usr/local/lib/groff/site-tmac).
7654         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
7655         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
7656         $(systemtmacdir).
7657         Use @libdir@.
7658         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
7659         * tmac/Makefile.sub (install_data): Create
7660         $(systemtmacdir) and $(localtmacdir).
7661         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
7662         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
7663         NEWS, doc/groff.texinfo: Updated and minor fixes.
7665         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
7666         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
7667         $(systemtmacdir) since the wrapper files are platform-dependent.
7669 2000-11-01  Werner LEMBERG  <wl@gnu.org>
7671         * doc/groff.texinfo: Fix typo.
7673 2000-10-26  Werner LEMBERG  <wl@gnu.org>
7675         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
7676           tmac.doc.old -> doc-old.tmac
7677           tmac.an.old  -> an-old.tmac
7679         * tmac/tmac.*: Moved to ...
7680         * tmac/*.tmac: this.
7681         * tmac/man.local: Fix comment.
7682         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
7683         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
7684         Added some `FILES' sections.  More use of @...@ directives.  Other
7685         minor updates.
7686         * arch/djgpp/README, font/devutf8/NOTES: Updated.
7687         * doc/homepage.ms, doc/groff.texinfo: Updated.
7688         * man/groff.man, man/roff.man: Updated.
7689         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
7690         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
7691         src/devices/grotty/grotty.man: Updated.
7692         * src/preproc/pic/pic.man: Updated.
7693         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
7694         instead of -mdoc.old.
7695         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
7696         * src/roff/nroff/nroff.man: Updated.
7697         * NEWS: Updated.
7699         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
7701         * tmac/mm.diff: Removed -- it has no use now since the mm package
7702         is part of groff.
7704         * tmac/*: Removed trailing spaces.
7706         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
7707         the tmac subdirectory also).
7709         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
7710         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
7711         stuff since it is no longer needed.
7713         * README, PROBLEMS: Updated.
7715 2000-10-25  Werner LEMBERG  <wl@gnu.org>
7717         Invert current behaviour: Search first FOOBAR.tmac, then
7718         tmac.FOOBAR.
7720         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
7721         (open_mac_file, macro_source): Implement it.
7722         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
7723         doc/groff.texinfo, NEWS: Document it.
7725         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
7726         Small documentation improvements.
7728         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
7729         subdirectory also).
7731         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
7733 2000-10-24  Werner LEMBERG  <wl@gnu.org>
7735         Add local tmac directory (groff/site-tmac).
7737         * Makefile.in: Add $(localtmacdir).
7738         (uninstall_dirs): Add $(localtmacdir).
7739         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
7740         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
7741         in $(localtmacdir).  Create $(localtmacdir).
7742         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
7743         Updated and minor fixes.
7745         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
7747         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
7749 2000-10-23  Werner LEMBERG  <wl@gnu.org>
7751         Move hyphen.us to tmac directory.
7753         * src/roff/troff/hyphen.us: Removed.
7754         * src/tmac/hyphen.us: Added.
7755         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
7757         Change installation structure for data files from .../groff/... to
7758         .../groff/<version><revision>/... to be conform with other GNU
7759         programs.
7761         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
7762         doc/Makefile: Implement it.
7763         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
7764         * configure: Updated.
7765         * arch/djgpp/README, font/devutf8/NOTES: Use it.
7766         * NEWS: Document it.
7767         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
7768         @MACRODIR@ instead of hard-coded directories.
7770 2000-10-22  Werner LEMBERG  <wl@gnu.org>
7772         Implement $GROFF_BIN_PATH environment variable (which defaults to
7773         $bindir) used for child programs of groff and similar wrappers.
7775         * gendefs.sh: Improve documentation.
7776         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
7777         src/preproc/eqn/Makefile.sub (neqn),
7778         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
7779         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
7780         $GROFF_BIN_PATH.
7781         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
7782         $GROFF_PATH__ (the latter for communication with troff).
7783         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
7784         set.
7785         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
7786         doc/groff.texinfo: Document it.
7788         * doc/groff.texinfo: Improve documentation of troff's -a option.
7790 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
7792         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
7793         non-intrusive eol marker.
7794         (troff_output_file::determine_line_limits): New function.
7795         (troff_output_file::draw): Use it.
7796         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
7797         output_pending_lines() instead of output_line().
7798         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
7799         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
7800         createImage): Small fixes.
7801         
7802 2000-10-14  Werner LEMBERG  <wl@gnu.org>
7804         Replace tmac.safer with a real secure solution.
7806         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
7807         system_request, pipe_output): Disable requests if in safer mode.
7808         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
7809         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
7810         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
7811         doc/groff.texinfo, src/roff/groff/groff.man,
7812         src/roff/troff/troff.man, arch/djgpp/README: Updated.
7814         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
7815         (resource_manager::output_prolog): Replace setenv() with putenv().
7817 2000-10-09  Werner LEMBERG  <wl@gnu.org>
7819         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
7820         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
7821         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
7822         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
7823         compilation errors with some compilers.  It seems that this code
7824         is no longer necessary -- if yes, it is easy to add some #ifdef's
7825         for that particular old-fashioned compiler.
7827         * MORE.STUFF: Added info about Meta-tbl.
7829         * doc/groff.texinfo: Added more info about `.if "..."..."'.
7831 2000-10-07  Werner LEMBERG  <wl@gnu.org>
7833         Adding a new escape sequence \B'...': If the string between
7834         the delimiters is a valid numeric expression, return the character
7835         `1', and `0' otherwise.  This is an analogon to \A.
7837         * src/roff/troff/input.cc (do_expr_test): Implement it.
7838         (token::next): Use it.
7839         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
7841         * tmac/tmac.trace: Made independent from escape character.
7843 2000-10-06  Werner LEMBERG  <wl@gnu.org>
7845         Adding a new request .dei: define indirect.  The first and second
7846         parameter of .dei are taken from string registers instead directly;
7847         this very special request is needed to make tmac.trace independent
7848         from the escape character (which might even be disabled).
7850         * src/roff/troff/input.cc (do_define_macro): Implement it.
7851         (define_macro_indirect): New function.
7852         (init_input_requests): Use it.
7854         Adding two requests .ecs and .ecr: Save and restore the escape
7855         character.  These two requests are needed to make tmac.trace
7856         independent from the escape character (which might even be
7857         disabled).
7859         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
7860         Implement it.
7861         (init_input_requests): Use it.
7863         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7865 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
7867         Adding a new option -P and new environment variable GROPS_PROLOGUE
7868         to grops, selecting a different prologue file (minor modifications
7869         by WL).
7871         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
7872         src/devices/grops/ps.cc (main): Implement it.
7873         * src/devices/grops/grops.man, NEWS: Document it.
7875 2000-09-22  Werner LEMBERG  <wl@gnu.org>
7877         * INSTALL: Add info about selecting paper format.
7879 2000-09-21  Werner LEMBERG  <wl@gnu.org>
7881         * src/roff/troff/input.cc (main): Fixing compiler warning.
7882         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
7883         strings.h from the former to the latter.
7884         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
7885         stuff from the former to the latter.
7887 2000-09-11  Werner LEMBERG  <wl@gnu.org>
7889         Implementing two new requests .tm1 and .tmc: The former is similar
7890         to .tm but can output leading spaces; its syntax is similar to
7891         defining a string, i.e., a `"' can be used to mark the beginning of
7892         the string to be written to stderr: `.tm1 " test'.  The latter is
7893         similar to .tm1 but doesn't write out a final newline character.
7895         * src/roff/troff/input.cc (terminal1, terminal_continue,
7896         do_terminal): New functions.
7897         (init_input_requests): Use them.
7898         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7900 2000-09-09  Werner LEMBERG  <wl@gnu.org>
7902         * tmac/groff_mdoc.samples.man: Small fixes.
7904 2000-09-08  Werner LEMBERG  <wl@gnu.org>
7906         * tmac/groff_mdoc.man: Fixing typo.
7908 2000-09-02  Werner LEMBERG  <wl@gnu.org>
7910         Implementing a .nop request which does nothing.
7912         * src/roff/troff/input.cc (nop_request): New function.
7913         (init_input_requests): Use it.
7914         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
7916 2000-09-01  Werner LEMBERG  <wl@gnu.org>
7918         * doc/groff.texinfo: Added some comments.
7920 2000-08-30  Werner LEMBERG  <wl@gnu.org>
7922         * src/roff/troff/TODO: Updated.
7924 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7926         * doc/groff.texinfo: Fix comment how to compile the DVI file.
7928 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7930         * font/devps/generate/Makefile (SHELL): Define explicitly to
7931         "/bin/sh", for non-Unix platforms.
7932         (extraclean): Use a more portable "" quoting instead of a
7933         backslash (which doesn't work on DOS/Windows).
7934         
7935         * font/devlj4/generate/Makefile (extraclean): Ditto.
7937         * font/devdvi/generate/Makefile (extraclean): Ditto.
7939 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7941         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
7942         src/roff/troff/troff.man: Document Eli's latest changes.
7944 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
7946         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
7947         macro file names of the form NAME.tmac as well as tmac.NAME.
7949 2000-08-25  Werner LEMBERG  <wl@gnu.org>
7951         * src/include/posix.h: Remove definition of FILENAME_MAX.
7953         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
7954         `sys_fatal' and `stop' function().
7956         * test-groff: Updated.
7958 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
7960         Added the new troff command .output <arg> to suppress output (while
7961         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
7962         registers (for passing the output dimensions to the output device).
7964         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
7965         parameter.
7966         * src/roff/troff/node.h, src/roff/troff/node.cc
7967         (troff_output_file::really_print_line,
7968         ascii_output_file::really_print_line,
7969         supress_output_file::really_print_line): Use `width' parameter.
7970         (troff_output_file::really_on, troff_output_file::really_off,
7971         output_file::on, output_file::off, real_output_file::on,
7972         real_output_file::off, real_output_file::really_on,
7973         real_output_file::really_off): New functions.
7974         (real_output_file:public output_file): New variable `output_on'.
7975         (real_output_file::begin_page, real_output_file::copy_file,
7976         real_output_file::transparent_char, real_output_file::print_line):
7977         Use it.
7978         (real_output_file::print_line): Use check_output_limits.
7979         * src/roff/troff/reg.h, src/roff/troff/request.h,
7980         src/roff/troff/input.cc (assign_registers): New function to remove
7981         two `goto's.
7982         (do_ps_file): Use it.
7983         (check_output_limits, reset_output_registers, output_request,
7984         init_output_requests): New functions.
7985         (init_input_requests): Updated.
7987         Added new grohtml2 device and html2 preprocessor (coding
7988         not yet finished) which will eventually replace grohtml.
7990         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
7991         Updated.
7992         * src/include/htmlindicate.h, src/include/htmlindicate
7993         (html_begin_suppress, html_end_suppress): New functions.
7994         * src/preproc/tbl/main.cc: Use it.
7995         * src/roff/groff/groff.cc: Add support for html2 device (which will
7996         automatically invoke the html2 preprocessor).
7997         * src/roff/troff/input.cc (is_html2): New variable.
7998         * src/roff/troff/troff.h, src/roff/troff/env.h,
7999         src/roff/troff/env.cc (environment::add_html_tag): New function
8000         (uses `is_html2').
8001         (environment::do_break): Use it.
8002         * font/devhtml2/*: New files.
8003         * src/devices/grohtml2: New device.
8004         * src/preproc/html2: New preprocessor.
8005         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
8007 2000-08-23  Werner LEMBERG  <wl@gnu.org>
8009         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
8011 2000-08-22  Werner LEMBERG  <wl@gnu.org>
8013         * src/include/lib.h: Provide a fix for IRIX to not include
8014         groff-getopt.h.
8016 2000-08-18  Werner LEMBERG  <wl@gnu.org>
8018         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
8019         since some non-GNU sed programs can't handle null regexps.
8020         * configure, src/preproc/eqn/Makefile.sub,
8021         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
8023         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
8024         bug (string.h and strings.h are both needed according to latest
8025         POSIX standard).
8027         * MORE.STUFF: Added info about unroff and troffcvt.
8029 2000-08-08  Werner LEMBERG  <wl@gnu.org>
8031         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
8032         used before -ms.
8034         * tmac/tmac.man.old: Remove unused number register.
8036         * tmac.doc: Minor documentation fix.
8038 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8040         * src/roff/groff/pipeline.c (is_system_shell):
8041         Fix typo: "monocased_shell" no longer exists.
8043 2000-08-07  Paul Eggert  <eggert@twinsun.com>
8045         Remove FILENAME_MAX limits.
8047         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
8048         that the argument length is less than FILENAME_MAX.
8049         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
8050         Use struct hack to allocate and free file name.
8051         (struct xtmpfile_list): fname is now part of the structure,
8052         not a pointer to another string.
8054 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
8056         * src/include/posix.h: Add a default value for FILENAME_MAX.
8058 2000-08-06  Paul Eggert  <eggert@twinsun.com>
8060         Add support for new BSD-style man pages (with ".Dd" instead of
8061         ".TH"), so that "groff -man" understands both styles, even
8062         when running "groff -man" on a host whose system man page
8063         macros don't support ".Dd".
8065         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
8066         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
8067         in case the system man macros don't define Dd or TH.
8069         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
8070         * tmac/tmac.an: New one-line file.
8071         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
8073 2000-08-06  Werner LEMBERG  <wl@gnu.org>
8075         * src/roff/troff/troff.man: Fixing typos.
8077 Version 1.16.1 released
8078 =======================
8080 2000-07-31  Werner LEMBERG  <wl@gnu.org>
8082         Preparing release 1.16.1.
8084         * REVISION: Revision number set to 1.
8085         * MORE.STUFF: Added info about port to DOS.
8086         * NEWS, win32-diffs: Updated.
8088         * src/include/nonposix.h: Remove first line -- this file is used
8089         in C also.
8091         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
8092         link to it.
8094 2000-07-30  Werner LEMBERG  <wl@gnu.org>
8096         * doc/texinfo.tex: Update to latest version.
8098 2000-06-28  Paul Eggert  <eggert@twinsun.com>
8100         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
8101         commands that fail.  Don't assume that "export a=b" is valid shell
8102         syntax.  This is needed for Solaris 2.5.1.
8104         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
8105         comment about missing Solaris headers.
8107         * PROBLEMS: Add section about problems with Sun Make and VPATH.
8109 2000-06-25  Werner LEMBERG  <wl@gnu.org>
8111         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
8112         SET_BINARY().
8114         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
8116         * win32-diffs: Updated.
8117         * README.WIN32: Added CRs to make all Windows editors happy.
8119         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
8120         src/roff/groff/pipeline.c).
8122 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
8124         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
8125         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
8127 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
8129         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
8130         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
8131         are binary files.
8132         (main): Support non-Posix systems with several different styles of
8133         slash characters in file names.
8135         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
8136         (main) [SET_BINARY]: Switch stdin into binary mode.
8138         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
8139         (main): Support file names with several possible slash-type
8140         characters, as given by DIR_SEPS[] in nonposix.h.
8141         (main) [__MSDOS__]: If renaming the temporary index file fails
8142         because it has more than one dot in its trunk, replace the dot
8143         with an underscore and try again.
8144         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
8145         Newline.
8146         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
8148         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
8149         (File::File): Open the input file in binary mode.  Strip CR
8150         characters from each CR-LF pair.
8151         (xbasename): Support file names with several possible slash-type
8152         characters, as given by DIR_SEPS[] in nonposix.h.
8154         * src/include/Makefile.sub (HDRS): Add nonposix.h.
8156         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
8157         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
8158         [!_POSIX_VERSION]: Define for traditional Unix systems.
8159         (real_output_file::real_output_file): Remove the MSVC-specific
8160         call to popen, use instead POPEN_WT, appropriately defined on
8161         nonposix.h.  #include nonposix.h.
8162         (real_output_file::~real_output_file): Remove the MSVC-specific
8163         call to pclose, a suitable macro is now defined on nonposix.h.
8164         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
8165         and WEXITSTATUS instead of assuming traditional Unix
8166         interpretation of the status returned by pclose.
8168         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
8169         call to popen, use POPEN_RT instead (appropriately defined on
8170         nonposix.h).  #include nonposix.h.
8171         (ps_bbox_request): Open the PostScript file in binary mode.
8172         Close the file after processing it.
8173         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
8174         nonposix.h.
8176         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
8177         A version of run_pipeline that doesn't use `fork'.
8178         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
8179         (system_shell_name, system_shell_dash_c)
8180         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
8181         the ugliness of testing DOS/Windows file names for equality, and
8182         support both stock shells and ports of Unix shells.
8184         * src/roff/groff/groff.cc: #include nonposix.h.
8185         (BSHELL): Definition moved to nonposix.h.
8186         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
8187         instead of a literal "-c".
8188         (xbasename): Support file names with several possible slash-type
8189         characters, as given by DIR_SEPS[] in nonposix.h.
8190         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
8191         of literal strings.
8193         * src/preproc/soelim/soelim.cc: #include nonposix.h.
8194         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
8196         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
8197         pic_tab.h.
8199         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
8201         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
8202         eqn_tab.h.
8204         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
8206         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
8207         P_tmpdir is defined, use it instead of the literal "/tmp".
8208         (remove_tmp_files, add_tmp_file): New functions.
8209         (xtmpfile): Record temporary files and register an atexit function
8210         to delete them explicitly, instead of relying on the OS to do
8211         that, which doesn't work on non-Unix systems.
8213         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
8214         (search_path::search_path): Use PATH_SEP instead of a literal
8215         colon.
8216         (search_path::command_line_dir): Ditto.
8217         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
8218         to support non-Posix systems.
8220         * src/libs/libbib/search.cc: #include nonposix.h.
8221         (search_list::add_file): Open the file in binary mode.
8223         * src/libs/libbib/linear.cc: #include nonposix.h.
8224         (file_buffer::load): Remove \r characters preceding \n from the
8225         loaded buffer.
8227         * src/libs/libbib/index.cc: #include nonposix.h.
8228         (make_index_search_item): Open index_filename in O_BINARY mode.
8229         (index_search_item_iterator::get_tag): Ditto.  Remove \r
8230         characters before \n characters.
8231         (index_search_item::check_files): Open files in binary mode.
8232         (index_search_item::munge_filename): Support DOS-style file names
8233         with backslashes and drive letters, use IS_ABSOLUTE.
8235         * src/devices/grops/ps.cc: #include nonposix.h.
8236         (main) [SET_BINARY]: Switch stdout to binary mode.
8238         * src/devices/grolj4/lj4.cc: #include nonposix.h.
8239         (main) [SET_BINARY]: Switch stdout to binary mode.
8241         * src/devices/grolbp/lbp.cc: #include nonposix.h
8242         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
8244         * src/devices/grodvi/dvi.cc: #include nonposix.h.
8245         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
8246         nonposix.h).
8247         (main) [SET_BINARY]: Switch stdout to binary mode.
8248         [_MSC_VER]: Remove an explicit call to _setmode.
8250         * src/include/nonposix.h: New file.
8252         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
8253         operation when building with DJGPP.
8254         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
8255         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
8256         ENVSETUP.
8258         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
8259         MS-DOS.
8260         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
8261         etc. can include a semi-colon on DOS/Windows.
8262         (depend.temp): Use depend1.temp instead of depend.temp1, to
8263         prevent files from overerwiting each other on 8+3 filesystems.
8265         * gendef.sh (t): Change definition to work with DOS/Windows.
8267         doc/groff.texinfo: Apart of some typo corrections, I also changed
8268         some index entris, to make them more non-ambiguous, and also put
8269         @ignore around some parts that are not yet written, to allow the
8270         Info output be readable.
8272 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
8274         Replaced specific checks for function declarations with a generic
8275         routine taken from GNU bfd.
8277         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
8278         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
8279         * configure.in: Use it.
8280         * src/devices/grolbp/lbp.cc, src/include/lib.h,
8281         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
8282         src/roff/groff/groff.cc: Use it.
8283         * Makefile.in, configure: Updated.
8285 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
8287         * src/devides/grolbp/lbp.h: Removed unused variables.
8289 2000-05-31  Keith Thompson  <kst@sdsc.edu>
8291         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
8292         strncasecmp().
8294 2000-05-31  Werner LEMBERG  <wl@gnu.org>
8296         * aclocal.m4 (GROFF_SRAND): New function to test the return value
8297         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
8298         * configure.in: Use it.
8299         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
8300         * configure, Makefile.in: Updated.
8302         * configure.in: Add test for strncasecmp().
8303         * src/include/lib.h: Use it.
8305 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
8307         * src/preproc/grn/Makefile.sub: Add MLIB.
8309 2000-05-29  Nix  <nix@esperi.demon.co.uk>
8311         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
8313 2000-05-29  Werner LEMBERG  <wl@gnu.org>
8315         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
8317         * PROBLEMS: Small update.
8319         * src/devices/grolbp/lbp.cc: Various small fixes.
8321 2000-05-28  Keith Thompson  <kst@sdsc.edu>
8323         * src/roff/nroff/nroff.sh: Fix main loop syntax.
8325         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
8327 2000-05-25  Werner LEMBERG  <wl@gnu.org>
8329         * man/roff.man: Removed unused macro.
8331 2000-05-24  Werner LEMBERG  <wl@gnu.org>
8333         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
8334         This is needed e.g. if you do
8335         `make distclean; ./configure; make dist'.
8337 Version 1.16 released
8338 =====================
8340 2000-05-23  Werner LEMBERG  <wl@gnu.org>
8342         Adding font CWI (constant width italic) to devdvi.
8344         * font/devdvi/CWI: New file.
8345         * font/devdvi/generate/Makefile: Add generating rule.
8346         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
8347         tmac/tmac.dvi: Use it.
8348         * NEWS: Announce it.
8350         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
8351         * font/devlj4/generate/Makefile: Cosmetic changes only.
8353         * man/groff.man: Removed most of the redundant description of
8354         special characters (which is in groff_char.man).  Added font
8355         translation CB->CR for devdvi.  Other minor fixes.
8357         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
8358         (registered) symbols.
8360 2000-05-22  Werner LEMBERG  <wl@gnu.org>
8362         * doc/Makefile: Added rule for creating info files.
8364         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
8365         AMS font metrics.
8366         * font/devdvi/generate/Makefile: Fixed dependencies.
8368         * font/devps/*: Regenerated.  Heavy changes for Bookman and
8369         NewCentury Schoolbook!
8370         * font/devps/generate/afmname: Will now run with GNU awk.
8371         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
8372         * font/devps/generate/Makefile: Cosmetic changes only.
8374 2000-05-21  Werner LEMBERG  <wl@gnu.org>
8376         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
8377         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
8378         `.SS' now produces a heading with a smaller size than `.SH'. 
8379         Completely formatted.
8380         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
8382         * man/groff.man: Improved table appearance.  Use of `eo' request
8383         to reduce number of doubled backslashes in macro definitions.
8384         Replacing `\e' with `\(rs'.  Other minor fixes.
8386         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
8387         to have correct line number.
8389         * INSTALL: Small improvement.
8391 2000-05-20  Bernd Warken  <bwarken@mayn.de>
8393         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
8394         WL).
8396 2000-05-19  Bernd Warken  <bwarken@mayn.de>
8398         * man/groff.man: Complete update (with a lot of corrections by WL).
8400 2000-05-18  Werner LEMBERG  <wl@gnu.org>
8402         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
8404         * font/*/*: Implement it.
8405         * man/groff_char.man, NEWS: Document it.
8407         * src/include/unix.h: Removed.  It isn't used.
8409         * doc/groff.texinfo: Slight improvements.
8411 2000-05-17  Werner LEMBERG  <wl@gnu.org>
8413         * README, win32-diffs: Small fixes and improvements.
8415 2000-05-16  Werner LEMBERG  <wl@gnu.org>
8417         * FDL: New file (the Free Documentation License version 1.1).
8419         * doc/groff.texinfo: Added many start-up values for gtroff.
8420         Some structural improvements of the source code.
8422 2000-05-15  Werner LEMBERG  <wl@gnu.org>
8424         * src/roff/troff/input.cc: Added small comment about troffrc-end.
8425         * src/roff/troff/troff.man: Added info about troffrc-end.
8427 2000-05-14  Werner LEMBERG  <wl@gnu.org>
8429         * Makefile.in (EXTRADIRS): Fix typos.
8430         (dist): Handle deletion of old .tar.gz file correctly.
8431         (DISTDIRS): Include all tty output devices.
8433         * doc/groff.texinfo: Adding more cross references; countless other
8434         fixes.
8436 2000-05-13  Werner LEMBERG  <wl@gnu.org>
8438         * MORE.STUFF: Added Robert Marks's utilities.
8440 2000-05-12  Werner LEMBERG  <wl@gnu.org>
8442         Added win32 port contributed by Blake McBride
8443         <blake@florida-software.com>.
8445         * README.WIN32, win32-diffs: New files.
8446         * NEWS: Updated.
8448         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
8449         (tmove, tmove2): Added parentheses to avoid compiler warnings.
8450         (change): Removed unused variables.
8452         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
8453         (savebounds): Changed return value from `int' to `void'.
8454         * src/preproc/grn/hdb.cc: Ditto.
8456         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
8457         final backslash in comment to avoid compiler warning.
8459         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
8461         * doc/groff.texinfo: More fixes.
8463 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
8465         * tmac/tmac.doc: Documentation fix.
8467 2000-05-11  Werner LEMBERG  <wl@gnu.org>
8469         * doc/groff.texinfo: Reading the source code shows up a lot of
8470         omissions and incorrect data...  More conversion to @Deffn macros.
8472 2000-05-10  Werner LEMBERG  <wl@gnu.org>
8474         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
8475         dependency.
8477         * src/roff/troff/request.h: Removing unused `no_break_flag'.
8479 2000-05-09  Werner LEMBERG  <wl@gnu.org>
8481         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
8482         improvements.
8484         * doc/groff.texinfo: Extended history section.  More conversion to
8485         @Deffn macros.  More .tr documentation.
8487 2000-05-07  Werner LEMBERG  <wl@gnu.org>
8489         * doc/groff.texinfo: Completed tab section.  Added info about
8490         fields.
8492 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
8494         * PROBLEMS: Describe configure script fix for OS/390 Unix.
8496 2000-05-05  Werner LEMBERG  <wl@gnu.org>
8498         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
8499         LaTeX 2e).
8500         * NEWS: Document it.
8502         * man/troff.man: Minor optical improvements.
8504 2000-05-03  Werner LEMBERG  <wl@gnu.org>
8506         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
8508         * font/*/*: Implement it.
8509         * man/groff_char.man, NEWS: Document it.
8511 2000-05-02  Werner LEMBERG  <wl@gnu.org>
8513         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
8514         expansion.
8515         * NEWS: Document the three new man pages.
8517         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
8518         * configure: Updated.
8520         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
8522 2000-05-01  Werner LEMBERG  <wl@gnu.org>
8524         Added grap support to grog.
8526         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
8527         * src/roff/grog/grog.man: Document it.
8529         * doc/groff.texinfo, NEWS: Add info about grap support.
8531         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
8532         (with slight fixes by me).
8534         * tmac/groff_tmac.man: New file documenting tmac mechanism.
8535         * tmac/Makefile.sub: Add groff_tmac.man.
8536         * man/roff.man: New file giving overview of roff system.
8537         * man/troff.man: A short reference of troff.
8538         * man/Makefile.sub: Add roff.man and troff.man.
8540 2000-04-30  Werner LEMBERG  <wl@gnu.org>
8542         Added grap support to groff.
8544         * src/roff/groff/groff.cc: Implement it.
8545         * src/roff/groff/groff.man: Document it.
8547         * src/devices/grotty/grotty.man: Add cp1047 device.
8548         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
8549         Ditto.
8550         * src/roff/groff/groff.man: Ditto.
8551         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
8552         * doc/groff.texinfo: Ditto.
8554         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
8555         for cp1047.
8557 2000-04-29  Werner LEMBERG  <wl@gnu.org>
8559         * man/groff_char.man: Add `pc' glyph.
8560         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
8561         * tmac/tmac.tty: Add `pc' glyph.
8562         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
8563         we use cp1047 output device.
8565         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
8566         there are still hardcoded latin1->unicode values in utf8's font
8567         definition files.
8568         * configure: Updated.
8569         * NEWS: Minor clarification.  Updated.
8571         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
8572         Unix.
8574 2000-04-28  Werner LEMBERG  <wl@gnu.org>
8576         Adding EBCDIC code page 1047.
8578         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
8579         font/devcp1047/DESC.proto: New files.
8581         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
8582         either ascii/latin1 or cp1047.
8583         * Makefile.in: Use it.
8584         * configure: Updated.
8586         Replacing and/or adding `md' (mathdot) glyph with `pc'
8587         (periodcentered) in all text fonts.
8589         * font/*/*: Change it.
8591 2000-04-27  Werner LEMBERG  <wl@gnu.org>
8593         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
8595         * configure.in: Add check for strings.h.
8596         * src/include/driver.h: Use HAVE_STRINGS_H.
8597         * src/devices/grolbp/lpb.cc: Remove string.h.
8599         * src/include/groff-getopt.h: New file.  It will be used instead of
8600         getopt.h (to be included in lib.h) to avoid endless problems with
8601         picky C++ compilers.
8602         * src/include/lib.h: Use groff-getopt.h.
8603         * src/include/Makefile.sub: Updated.
8605         * configure: Updated.
8606         * Makefile.in: Updated.
8608         * NEWS: Mention EBCDIC support.
8610 2000-04-26  Werner LEMBERG  <wl@gnu.org>
8612         * TODO: Some additions.
8614 2000-04-25  Werner LEMBERG  <wl@gnu.org>
8616         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
8617         of mso request.
8619 2000-04-23  Werner LEMBERG  <wl@gnu.org>
8621         * src/roff/troff/troff.man: Minor fixes.
8623 2000-04-22  Werner LEMBERG  <wl@gnu.org>
8625         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
8626         `.T' string register and the incompatible definition of the `.T'
8627         number register (compared to Unix troff).
8629         * man/groff_char.man: Add some missing characters.
8630         * font/devutf8/NOTES: Update.
8632 2000-04-21  Werner LEMBERG  <wl@gnu.org>
8634         * src/include/htmlindicate.h, src/include/lib.h,
8635         src/include/posix.h: Fix copyright.
8637         * src/include/Makefile.sub: Update.
8639 2000-04-20  Werner LEMBERG  <wl@gnu.org>
8641         * src/roff/troff/input.cc (input_char_description): Removing
8642         superfluous space char.
8644         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
8646         * doc/groff.texinfo: Document EBCDIC.
8648 2000-04-19  Werner LEMBERG  <wl@gnu.org>
8650         Introducing `shc' as the glyph name for the soft hyphen character.
8652         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
8653         font/devlatin1/R.proto: Use it.
8655         * NEWS: Updated.
8657 2000-04-18  Werner LEMBERG  <wl@gnu.org>
8659         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
8660         dependency on ASCII order.
8662 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
8664         * src/libs/libgroff/illegal.c: Added EBCDIC table.
8665         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
8667         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
8668         to increase portability.
8670 2000-04-15  Werner LEMBERG  <wl@gnu.org>
8672         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
8673         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
8674         the generic `\n' if under OS/390 Unix.
8676         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
8678         * configure: Regenerated.
8680 2000-04-14  Werner LEMBERG  <wl@gnu.org>
8682         * doc/groff.texinfo: More conversions to @Deffn.
8684 2000-04-12  Werner LEMBERG  <wl@gnu.org>
8686         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
8687         with `:'.
8689         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
8691 2000-04-10  Werner LEMBERG  <wl@gnu.org>
8693         * doc/groff.texinfo: More conversions to @Deffn.
8695 2000-04-08  Werner LEMBERG  <wl@gnu.org>
8697         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
8698         Updated to latest version (glibc 2.1.3).
8700 2000-04-07  Werner LEMBERG  <wl@gnu.org>
8702         * doc/Makefile (clean): Include more index files.
8703         Add rule texinfo->dvi.
8705 2000-04-05  Werner LEMBERG  <wl@gnu.org>
8707         * doc/groff.texinfo: Added new index `op' for operators.  More
8708         info on end of sentence characters.  More use of @Deffn.
8710 2000-03-30  Werner LEMBERG  <wl@gnu.org>
8712         * */*.man: Adding a note that a whitespace can be inserted between
8713         a command line option and its parameter -- we are using GNU getopt.
8715         * src/roff/groff/groff.man: Add example of `-m mandoc'.
8717 2000-03-28  Werner LEMBERG  <wl@gnu.org>
8719         Correct anachronism of calling the man macro file with `-man'
8720         instead of `-m man' etc.
8722         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
8723         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
8724         load tmac.<package>.
8726         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
8728         * NEWS: Updated.
8730         * doc/groff.texinfo: Updated.
8732         * tmac/groff_man.man: Copyright added.
8734 2000-03-27  Werner LEMBERG  <wl@gnu.org>
8736         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
8737         typeset the request resp. escape name with a tt font -- due to a
8738         bug in texinfo.tex it is necessary to use the `-e' switch with
8739         texi2dvi.
8741         Improving info about usage of groff units.
8743         Other minor fixes.
8745 2000-03-20  Werner LEMBERG  <wl@gnu.org>
8747         * doc/groff.texinfo: Added section about man macro package
8748         (I've basically taken groff_man.man).  Introducing new indices `ma'
8749         for macros/strings and `gl' for glyph names.  Other minor fixes.
8751         * tmac/groff_man.man: Fixed some typos.
8753 2000-03-19  Werner LEMBERG  <wl@gnu.org>
8755         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
8756         Other minor fixes.
8758         * doc/texinfo.tex: New file.
8760 2000-03-18  Werner LEMBERG  <wl@gnu.org>
8762         * doc/groff.texinfo: Improved section on number registers.  Other
8763         minor updates.
8765 2000-03-16  Werner LEMBERG  <wl@gnu.org>
8767         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
8768         synopsis.
8770         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
8771         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
8772         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
8773         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
8775         * src/preproc/grn/grn.man: Better synopsis; added copyright.
8777         * src/roff/grog/grog.man: Updated copyright date.
8779 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
8781         * configure.in: Added test for strdup.
8783         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
8784         is available.
8786         Replaced dynamic allocation of arrays `[...]' with `new' operator.
8788         Other minor fixes.
8790 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
8792         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
8794 2000-03-11  Werner LEMBERG  <wl@gnu.org>
8796         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
8797         compilers silent.
8798         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
8799         * src/include/lib.h: Remove some spaces.
8801 2000-03-10  Werner LEMBERG  <wl@gnu.org>
8803         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
8804         initializers from arguments (some compilers don't like this).
8806 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
8808         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
8809         used by pic and eqn to tell grohtml where the graphic regions start
8810         and end.
8811         * src/libs/libgroff/Makefile.sub: Use it.
8812         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
8813         graphic_start() and graphic_end() from htmlindicate.cc.
8815 2000-03-09  Werner LEMBERG  <wl@gnu.org>
8817         * tmac/tmac.safer: Will now work correctly in compatibility mode.
8818         * tmac/groff_man.man: More fixes.
8820 2000-03-08  Werner LEMBERG  <wl@gnu.org>
8822         * doc/Makefile: Added texput.log to the `clean' target.
8823         * doc/groff.texinfo: Added info about delimiters for escapes.
8825 2000-03-08  Bernd Warken  <bwarken@mayn.de>
8827         * src/preproc/pic/pic.man: Add info on conversion of pic images to
8828         other graphic formats.
8830 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
8832         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
8833         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
8834         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
8835         files.
8837 2000-03-07  Werner LEMBERG  <wl@gnu.org>
8839         * doc/groff.texinfo: Spelling fixes.
8841 2000-03-06  Werner LEMBERG  <wl@gnu.org>
8843         * tmac/groff_man.man: Completely revised to cover everything in
8844         tmac.an.
8846         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
8847         Other minor fixings.
8848         * src/roff/troff/env.cc (environment_copy): Improve error message and
8849         fix itoa->i_to_a.
8850         * src/roff/troff/TODO: Updated.
8852         * doc/Makefile: Bug fixes -- this is still provisional, though...
8854         * tmac/eqnrc: Small fixes.
8856 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
8858         Adding a request `evc' to copy environments.
8860         * src/roff/troff/env.cc (environment::copy, environment_copy):
8861         Implement it.
8862         * src/roff/troff/env.h: Add prototype.
8864 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
8866         Adding strsep() -- Solaris 8 doesn't have it.
8868         * configure.in: Test it.
8869         * src/devices/grolbp/lbp.cc: Add code.
8871 2000-03-05  Werner LEMBERG  <wl@gnu.org>
8873         * src/roff/troff/div.cc (macro_diversion::output,
8874         top_level_diversion::output): Fixing an incompatibility with
8875         original troff: \x'0' updates the .a register also.  Thanks to
8876         <Andries.Brouwer@cwi.nl> for pointing this out.
8877         * doc/groff.texinfo: Document it.
8879         * Makefile.in: Create Makefile.dep if necessary before calling the
8880         submake process to avoid warning about nonexistent file.
8882         * NEWS, PROJECTS: Updated.
8884 2000-03-04  Werner LEMBERG  <wl@gnu.org>
8886         * tmac/troffrc: Add tmac.lbp.
8888 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
8890         * tmac/tmac.lbp: New file.
8891         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
8892         command.
8894 2000-03-03  Werner LEMBERG  <wl@gnu.org>
8896         * Makefile.in: Fixing $(subdir).
8898         * README, NEWS: Small fixes.
8900         * test-groff: Adding path to grolbp.
8902         * configure.in: The (new) file src/xditview/Imakefile.in will be
8903         also configured -- it is now possible to build gxditview in a
8904         directory different from $srcdir.
8906 2000-03-02  Blake McBride  <blake@florida-software.com>
8908         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
8910         * MORE.STUFF: Added website of bell labs and info about plot2dev.
8912 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
8914         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
8915         files.
8917 2000-02-29  Werner LEMBERG  <wl@gnu.org>
8919         Adding GNU getopt to the groff distribution.
8921         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
8922         New files.
8923         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
8924         * aclocal.a4: Remove GROFF_GETOPT function.
8925         * configure.in, Makefile.in, PROBLEMS: Update.
8926         * src/include/lib.h: Replace getopt tests with getopt.h.
8927         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
8929         * doc/groff.texinfo: Further checking/updating.  Adding more index
8930         entries.
8932         * man/groff_out.man: Fix nroff mode activation (for emacs).
8933         * man/groff_font.man: Add missing ligature.
8935 2000-02-28  Werner LEMBERG  <wl@gnu.org>
8937         * doc/groff.texinfo: Further checking/updating.  Adding more index
8938         entries.
8940         * src/devices/grolbp/grolbp.man: Added a comment line at the
8941         beginning of the file (similar to shell scripts) which indicates
8942         that `tbl' should be used as a preprocessor.
8944 2000-02-27  Blake McBride  <blake@florida-software.com>
8946         Adapting groff to MS Visual C++ 6.0 compiler (tested with
8947         Windows NT 4.0).  Uses _MSC_VER define where necessary.
8949         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
8950         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
8951         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
8952         src/include/lib.h, src/libs/libgroff/errarg.cc,
8953         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
8954         src/preproc/refer/label.y, src/preproc/refer/label.cc,
8955         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
8956         src/roff/troff/div.cc, src/roff/troff/env.cc,
8957         src/roff/troff/input.cc, src/roff/troff/node.cc,
8958         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
8959         if_to_a() to avoid name clashes.
8960         * src/include/posix.h: Don't use unistd.h.
8961         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
8962         clause for integrating non-Unix xtmpfile() code.
8963         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
8964         structure; use "rt" for popen() in pipe_source(); add getpid()
8965         dummy function.
8966         * src/roff/troff/node.cc: Use special versions of popen() in
8967         real_output_file() and pclose() in ~real_output_file().
8969 2000-02-27  Werner LEMBERG  <wl@gnu.org>
8971         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
8972         LBP-8 series laser printers).  This code has been contributed by
8973         Francisco Andrés Verdú <pandres@dragonet.es>.
8975         * src/devices/grolbp/*: The grolbp output device.
8976         * font/devlpb/*: The font description files.
8977         * Makefile.in: Add grolpb and devlbp subdirectories.
8979         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
8980         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
8981         typographic fixes.
8983         * doc/groff.texinfo: Further checking/updating.  Adding more index
8984         entries.
8986         * NEWS: Updated.
8988         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
8990         * man/groff_font.man: Adding info about obsolete DESC keywords.
8991         * src/devices/grolj4/grolj4.man: Documenting additional DESC
8992         keywords.
8994 2000-02-26  Werner LEMBERG  <wl@gnu.org>
8996         * src/preproc/grn/grn.man: Added info about the gremlin file format
8997         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
8999 2000-02-25  Werner LEMBERG  <wl@gnu.org>
9001         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
9002         friends to be non-integer.
9004         * src/preproc/grn/grn.man: Document it.
9006         * doc/groff.texinfo: Further checking/updating.  Adding more index
9007         entries.
9009 2000-02-24  Werner LEMBERG  <wl@gnu.org>
9011         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
9012         line thicknesses to be integer multiples of this value.
9014         * src/preproc/grn/grn.man: Commenting out the -s option -- the
9015         corresponding code doesn't work (yet).
9017         * doc/groff.texinfo: Further checking/updating.  Adding more index
9018         entries.
9020 2000-02-23  Werner LEMBERG  <wl@gnu.org>
9022         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
9023         specify line thickness instead of base units.  The new default
9024         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
9025         thick lines respectively.
9027         Removed unused variable `prevval'.
9029         * src/preproc/grn/grn.man: Updated.
9031 2000-02-22  Werner LEMBERG  <wl@gnu.org>
9033         * src/preproc/grn/main.cc: Slight formatting.
9035         * src/roff/groff/groff.man: Formatting fix.
9036         * src/preproc/grn/grn.man: Ditto.
9038         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
9040         * doc/groff.texinfo: Further checking/updating.
9042 2000-02-21  Werner LEMBERG  <wl@gnu.org>
9044         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
9046         * test-groff: Added grn subdir to path.
9048         * doc/groff.texinfo: Some restructing and other small improvements.
9050         * src/roff/groff/groff.cc (help): Fixed info string.
9052 2000-02-20  Werner LEMBERG  <wl@gnu.org>
9054         * doc/meref.me: Fix description of .GS request.
9056         * src/roff/troff/troff.man: Fixing typo.
9058         Adding the `grn' preprocessor for gremlin graphic files.
9060         * src/preproc/grn/*: This is the Berkeley distribution written by
9061         David Slattengren and Barry Roitblat, adapted to groff by Daniel
9062         Senderowicz and Werner Lemberg.
9064         * doc/grnexampl.{me,g}: A sample for grn.
9066         * Makefile.in: Added subdirectory entry for grn.
9068         * src/roff/groff/groff.cc: Added support for grn.  It can be now
9069         called with the switch `-g'.
9071         * src/roff/groff/groff.man: Updated.
9073         * src/roff/grog/grog.{man,pl,sh}: Updated.
9075         * NEWS: Updated.
9077 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
9079         * src/include/lib.h: Added xtmptemplate and made xtmpfile
9080         parametrically polymorphic.
9082         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
9083         and the alterations to xtmpfile.
9084         xtmpfile can be requested to return the filename created
9085         and asked not to unlink the temp file.  The default behaviour
9086         if parameters are absent is exactly the same as before.
9088 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
9090         A new request `length' is available which returns the length of a
9091         string in a number register:
9093         * src/roff/troff/input.cc (length_macro): Implement it.
9094         * src/roff/troff/input.cc (init_input_requests): Register it.
9096 2000-02-11  Werner LEMBERG  <wl@gnu.org>
9098         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
9099         of the `substring' request.
9101         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
9102         request.
9104         * src/roff/troff/TODO, NEWS: Updated.
9106 2000-02-09  Werner LEMBERG  <wl@gnu.org>
9108         * src/roff/groff/groff.man: Added an example.
9110 2000-02-06  Werner LEMBERG  <wl@gnu.org>
9112         I've considerably modified the directory structure of the
9113         distribution to get a more vertical layout.  For example, the number
9114         of top level directories has been reduced from 42 to 6.
9116         As a consequence, many changes, especially to the makefiles, were
9117         necessary:
9119         * The makefile variables `top_builddir' and `top_srcdir' have been
9120         introduced.  Virtually all relative paths have been replaced with
9121         absolute ones using these two variables.
9123         * Dependencies (in the files `Makefile.dep') are no longer part of
9124         the distribution.  Instead, they are created during a `make install'
9125         in the build directory.
9127         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
9128         make `top_srcdir' and `top_builddir' absolute.
9130         Some other changes:
9132         * Man pages now depend on the files `VERSION' and `REVISION'.
9134         * The added shell script `mkinstalldirs' will replace `mkdir' in
9135         almost all cases.
9137         * VERSION: Version number increased to 1.16.
9139 2000-02-04  Werner LEMBERG  <wl@gnu.org>
9141         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
9143         * Makefile.in: Removed $(tmac_m) since it is no longer needed
9144         (after an update of the mm stuff).
9146         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
9148 2000-02-03  Werner LEMBERG  <wl@gnu.org>
9150         The .psbb request will now also accept Mac PS images (i.e. using LF
9151         as the EOL character).
9153         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
9154         (with slight modifications).
9155         * troff/input.cc (do_ps_file): Use it.
9157         * test-groff: Add grohtml and grolj4 output devices to PATH.
9159 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9161         * NEWS, MORE.STUFF: Updated.
9163 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
9165         Add the `srand' command to pic.
9167         * pic/lex.cc, pic/pic.y: Implement it.
9168         * pic/pic.man: Document it.
9169         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
9171 2000-01-30  Werner LEMBERG  <wl@gnu.org>
9173         Add a new request `.psbb'.  This does exactly what the external
9174         program psbb did.  It scans a PostScript image file for a
9175         %%BoundingBox comment and extracts the bounding box values (in
9176         PostScript units) which are then stored in the four new (read-only)
9177         number registers `llx', `lly', `urx', and `ury'.
9179         This will allow the usage of the .PSPIC macro without worrying
9180         about unsafe behaviour of groff, i.e., it will work without the
9181         `-U' switch of groff.
9183         * troff/input.cc: Implement it.
9184         * tmac/tmac.pspic: Use it.
9185         * troff/troff.man, grops/grops.man, NEWS: Document it.
9186         * psbb/*, Makefile.in: Remove it since it is no longer needed.
9188         This is bloody C code simply adapted from psbb.c!  Any improvements
9189         welcome.
9191 2000-01-29  Werner LEMBERG  <wl@gnu.org>
9193         * man/groff_font.man: Minor clarifications.
9195         * NEWS: Updated.
9197 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9199         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
9201 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
9203         * man/groff_font.man: Brought up to date regarding tcommand
9204         extensions.
9205         * libgroff/font.cc: Handle everything after `--' as a comment
9206         in the font files.
9207         * devps/*: Added comment delimiter inside devps font files.
9209 2000-01-28  Werner LEMBERG  <wl@gnu.org>
9211         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
9212         \fC...\fP (which now works as expected).
9214         * troff/troff.man: Fix typo.
9216 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
9218         Completed the pass_filenames implementation in troff.
9220         * libdriver/input.cc: Will read the new `F' tcommand.
9221         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
9222         * troff/input.cc: Use it.
9224 2000-01-26  Werner LEMBERG  <wl@gnu.org>
9226         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
9227         font will now be updated even if an invalid font is selected.
9229 2000-01-24  Werner LEMBERG  <wl@gnu.org>
9231         * doc/homepage.ms: Updated for new tmac.arkup.
9233         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
9235         * tmac/tmac.arkup: Cleanup.
9237         Added `\&' to .HTML macro to `leave vertical mode', so to say.
9239         Removed obsolete .LINK macro completely.
9241         The macros .URL, .FTP, and .MAILTO now accept a third argument which
9242         will be immediately appended to the second argument (to be used with
9243         punctuation, for example).
9245         Disabled .CDFTP macro temporarily for security reasons.
9247         * tmac/groff_markup.man: Complete revision for latest changes in
9248         tmac.arkup -- note that it does not yet format correctly with
9249         grohtml :-(
9251 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
9253         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
9254         * devutf8/R.proto: Add mappings for wp, lh, rh.
9255         * devutf8/NOTES: Updated.
9257 2000-01-23  Werner LEMBERG  <wl@gnu.org>
9259         * doc/groff.texinfo: Updated version/copyright info.
9261 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
9263         Added support for two new directives in device descriptions:
9264         `pass_filenames' (to pass the input file name to the output device)
9265         and `use_charnames_in_special' (to support e.g. accented characters
9266         in the `X' request).
9268         * include/font.h, troff/charinfo.h: Declare it.
9270         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
9272         * devhtml/DESC: Use it.
9274         * troff/input.cc: New function encoded_char.
9276         * troff/token.h: Add test for `specialness'.
9278 2000-01-21  Werner LEMBERG  <wl@gnu.org>
9280         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
9281         mistake from the list of files to be installed.
9283 2000-01-18  Werner LEMBERG  <wl@gnu.org>
9285         * README: Added info how to apply patches.
9287 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
9289         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
9291 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9293         * troff/input.cc: Add support for troffrc-end.
9295         * tbl/main.cc: Altered to issue table-start and table-end special
9296         characters if using the html device.
9298         * devhtml/*: Modified font files to incorporate html encoding of
9299         characters.
9301         * tmac/groff_markup.man: New file documenting tmac.arkup.
9303         * tmac/troffrc-end: New file.  This is invoked after all user
9304         specified macros.  Currently used by the html device to include
9305         tmac.html.  Thus no need for users to specify -mhtml anymore.
9307         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
9308         (MAN7): Add groff_markup.man.
9310         * tmac/tmac.an, tmac/tmac.html: Small html updates.
9312         * tmac/troffrc: tmac.arkup will now be called for the html device.
9314         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
9315         extra device specific information about fonts.
9317         * doc/homepage.ms: New file.  It is an example how an HTML home page
9318         could look like with grohtml.
9320         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
9322 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
9324         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
9325         of Im, Re.
9327         * devutf8/NOTES: Updated.
9329 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
9331         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
9332         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
9333         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
9334         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
9335         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
9336         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
9337         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
9338         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
9339         warnings.
9341         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
9343 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
9345         grolj4: Paper size will be searched case-insensitively.
9347         * include/lib.h: Add check for strcasecmp().
9348         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
9349         * configure.in: Check for strcasecmp().
9351 2000-01-11  Werner LEMBERG  <wl@gnu.org>
9353         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
9354         `REVISION'.
9356 2000-01-10  Werner LEMBERG  <wl@gnu.org>
9358         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
9359         revision scheme.
9361         Add a new read-only register, `.Y', which contains the groff
9362         revision.
9364         * troff/input.cc (init_input_requests): Define it.
9365         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
9366         * doc/groff.texinfo, troff/troff.man: Document it.
9368         * libgroff/Makefile.sub (version.cc): Add definition of
9369         `Version_string[]', consisting of `<major>.<minor>.<revision>'
9370         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
9371         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
9372         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
9373         troff/input.cc, pfbtops/pfbtops.c: Use it.
9375 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
9377         Add a revision scheme to the groff package.
9379         * REVISION: New file.
9380         * libgroff/Makefile.sub (version.cc): Use it to define
9381         `revision_string[]'.
9382         * grops/psrm.cc: Use revision_string (converted to an unsigned
9383         integer) in constructor of resource_manager.
9385 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
9387         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
9388         files.
9389         * Makefile.in (DEVDIRS): Add devutf8.
9390         * grotty/tty.cc: Include device.h.
9391         (glyph): Change type of `code' to `unsigned int'.
9392         (tty_printer): New field is_utf8.  Constructor takes device argument.
9393         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
9394         (tty_printer::add_char): Change type of first arg to `unsigned int'.
9395         (tty_printer::put_char): New function.
9396         (tty_printer::end_page): Use put_char() instead of ::putchar().
9397         (make_printer): Pass device to tty_printer constructor.
9398         * nroff.sh: Determine default device by calling 'locale'.  As a
9399         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
9400         Recognize UTF-8 locales.
9401         * tmac/eqnrc: Recognize utf8 like latin1.
9402         * tmac/troffrc: Device utf8 needs tmac.tty.
9404 2000-01-07  Werner LEMBERG  <wl@gnu.org>
9406         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
9408 2000-01-07  Paul Eggert  <eggert@twinsun.com>
9410         Add a new predefined writeable number register, `year',
9411         which contains the current year.
9413         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
9414         * tmac/tmac.s: Use it.
9415         * troff/input.cc (init_registers): Initialize it.
9417 2000-01-06  Werner LEMBERG  <wl@gnu.org>
9419         * PROBLEMS: Fixed typo.
9421 2000-01-04  Paul Eggert  <eggert@twinsun.com>
9423         * PROBLEMS: Add Y2k advice for the yr number register.
9425 2000-01-03  Paul Eggert  <eggert@twinsun.com>
9427         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
9429 2000-01-02  Werner LEMBERG  <wl@gnu.org>
9431         * tmac/tmac.arkup: Slight modification of macros to provide better
9432         appearance for non-HTML formats.
9434 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
9436         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
9437         does not automatically translate to malloc(n) on all OSes
9438         (e.g., SunOS) so do it explicitly.  Also, check the returned
9439         value.
9441 2000-01-01  Werner LEMBERG  <wl@gnu.org>
9443         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
9445         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
9446         expects this variable
9448 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
9450         * doc/Makefile: Added instructions to create HTML and text
9451         versions of some files.
9453 1999-12-31  Werner LEMBERG  <wl@gnu.org>
9455         * Updated INSTALL.gen.
9457         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
9458         better resp. correctly with non-HTML devices.
9460 Version 1.15 released
9461 =====================
9463 1999-12-28  Werner LEMBERG  <wl@gnu.org>
9465         * NEWS, VERSION: Changed to 1.15
9467 1999-12-27  Paul Eggert  <eggert@twinsun.com>
9469         * nroff/nroff.man: -S is safer, not safe.
9471         * groff/groff.cc (main): Use `safer', not `safe', in variable
9472         names.  This does not change the behavior.
9474         * troff/input.cc (main): Likewise.
9476         * nroff/nroff.sh: Likewise.
9478         * troff/input.cc (prepend_string): New function.
9479         (main): Prepend -msafer, so that we check macro libraries for
9480         safety.
9482         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
9484 Version 1.14 released
9485 =====================
9487 1999-12-26  Werner LEMBERG  <wl@gnu.org>
9489         * NEWS, VERSION: Changed to 1.14.
9491 1999-12-24  Werner LEMBERG  <wl@gnu.org>
9493         * refer/refer.cc: Fixing the last fix.
9495 Version 1.13 released
9496 =====================
9498 1999-12-23  Werner LEMBERG  <wl@gnu.org>
9500         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
9501         number disappear.
9503         * NEWS: Updated.
9505         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
9507         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
9508         document conventions, the version number must be a real.
9510 Version 1.12.1 released
9511 =======================
9513 1999-12-22  Werner LEMBERG  <wl@gnu.org>
9515         * VERSION: Changed to 1.12.1.
9517 1999-12-22  Alan Rooks  <arooks@istar.ca>
9519         * refer/refer.cc (do_file): Slight modification to satisfy the
9520         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
9521         UnixWare 7.1.
9523 1999-12-20  Werner LEMBERG  <wl@gnu.org>
9525         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
9526         notices.
9528         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
9529         list of unsafe requests.
9531         * pic/pic.man: Fixed a typo.
9533         * man/groff_out.man: Fixed a typo.
9535 1999-12-18  Werner LEMBERG  <wl@gnu.org>
9537         * Makefile.in: Doc fixes.
9539 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
9541         * groff/groff.cc: Missing `U' option added to getopt().
9543         * troff/troff.man: Missing `U' option added to synopsis.
9545 Version 1.12 released
9546 =====================
9548 1999-12-14  Werner LEMBERG  <wl@gnu.org>
9550         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
9551         to the synopsis.
9553         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
9554         with the more appropriate terms `safer' and `unsafe'.
9556         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
9557         sys_nerr and sys_errlist[].
9559         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
9561         * pic/pic.y, pic/pic.cc: Added check for fmod().
9563 1999-12-13  Werner LEMBERG  <wl@gnu.org>
9565         * VERSION: Changed to 1.12.
9567         Here some patches from various sources; most of them taken from
9568         the Debian distribution.
9570         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
9571         tmac/Makefile.sub: New files copied directly from the NetBSD
9572         distribution.  Probably, some additional adaptation later on is
9573         necessary...
9575         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
9576         of unsafe requests.
9578         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
9579         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
9580         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
9581         (`-S') is now the default.
9583         * README, NEWS: Updated.
9585 1999-12-09  Werner LEMBERG  <wl@gnu.org>
9587         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
9589         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
9591 1999-12-06  Werner LEMBERG  <wl@gnu.org>
9593         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
9594         grief than relief today.  Additionally, it is against the GNU
9595         coding standards.
9597         * configure: Recreated.
9599 1999-12-05  Werner LEMBERG  <wl@gnu.org>
9601         * configure.in: Added GROFF_LIBM.
9603         * configure: Recreated.
9605         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
9606         necessary.
9608         * Makefile.in: Added definition of $(LIBM).
9610         * Makefile.comm (LIBM): Removed.
9612         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
9614 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
9616         * doc/Makefile: Added rule for generation pic.html.
9618         (clean): Files produced by grohtml will be removed also.
9620         * doc/pic.ms: Small fix.
9622         * tmac/tmac.html: Fixed suppression of headers.
9624 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
9626         * tmac/tmac.html: Fixing horizontal arrows.
9628         Turning off hyphenation.
9630         * tmac/tmac.an: Improved support for grohtml; better indentation,
9631         no footers/headers.
9633 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
9635         * tmac/tmac.arkup: Added CDFTP macro
9637         * tmac/tmac.html: All headers are turned off for ms, me, and mm
9638         macros.
9640         * tmac/troffrc: Some additions for HTML stuff.
9642 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
9644         * tmac/tmac.html: Small changes.
9646 1999-09-26  Werner LEMBERG  <wl@gnu.org>
9648         * doc/groff.texinfo: Minor fixes.
9650 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
9652         * devhtml/TR: Changed spacewidth to 3.
9654         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
9656         * tmac/tmac.html: Moved markup macros to tmap.arkup.
9658         * tmac/tmac.arkup: New file.
9660         * grohtml/ChangeLog: New file.
9662 1999-09-16  Werner LEMBERG  <wl@gnu.org>
9664         * doc/groff.texinfo (Common Features): Added Copying chapter.
9665         Changed format to @smallbook.
9667 1999-09-15  Werner LEMBERG  <wl@gnu.org>
9669         * NEWS: Added info about groff.texinfo.
9671         * doc/groff.texinfo: Will now compile (using texi2dvi) without
9672         warning messages.
9674 1999-09-14  Werner LEMBERG  <wl@gnu.org>
9676         * groff/groff.man: More updates.
9678 1999-09-13  Werner LEMBERG  <wl@gnu.org>
9680         * doc/groff.texinfo: New file.  This manual is still very
9681         rudimentary.  It has been originally contributed by Trent
9682         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
9683         additions by me.
9685         * INSTALL: Added information about the `doc' subdir
9687         * troff/troff.man: Minor fixes.
9689         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
9690         reordered options.
9692         * troff/input.cc (usage): Added missing `-ffam' to usage message.
9694         * Makefile.in (dist): groff-$(version).tar.gz must be removed
9695         also, otherwise it is included itself in another call of `make
9696         dist'.
9698         * groff/groff.cc (synopsis): Removed superfluous space.
9700         * PROJECTS, PROBLEMS, NEWS: Updated.
9702         * VERSION: Updated to 1.12beta.
9704         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
9706         * README: Updated: Included documentation about CVS repository,
9707         mailing lists, and daily snapshots.
9709         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
9711 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
9713         * tmac/tmac.an: If the tag didn't fit into the space that the
9714         macro `TP' specifies, the rest of the tag went into the space for
9715         the next line.
9717 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
9719         * grolj4/lj4.cc: Added duplex printing (option `-d').
9721         * grolj4/grolj4.man: Document duplex printing.
9723 1999-09-12  Werner LEMBERG  <wl@gnu.org>
9725         * doc/Makefile (pic.ps): Fixed rule which caused problems with
9726         non-GNUish sed programs.
9728         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
9729         definition.
9731         * configure.in (LIBS): Added `-lc'
9733         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
9735         * pic/tex.cc (solid_arc): Casting M_PI to double.
9737         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
9739         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
9740         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
9741         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
9743         * groff/groff_man.man: New file.  This manual page was originally
9744         written for the Debian GNU/Linux system by Susan G. Kleinmann
9745         <sgk@debian.org>.
9747         * eqn/list.cc (list_box::compute_metrics,
9748         list_box::compute_sublist_width): Removed variable declaration to
9749         avoid shadowing warnings.
9751         * grops/psrm.cc (resource_manager::process_file): Ditto.
9753         * tfmtodit/tfmtodit.cc (main): Ditto.
9755         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
9756         to avoid shadowing warnings.
9758         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
9759         shadowing loop variable.
9761         * groff/groff.man, troff/troff.man: Added doc about grohtml.
9763 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
9765         New grohtml frontend to convert groff input to html.
9767         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
9769         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
9771         * tmac/eqnrc: Added html device.
9773         * tmac/tmac.html: New file.
9775         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
9776         (troff_output::start_picture, troff_output::finish_picture),
9777         tbl/main.cc (process_input_file):
9778         Surrounded output with `graphics_start' and `graphics_end' so that
9779         the html driver can identify non-text portions.
9781         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
9782         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
9783         grotty/tty.ps (tty_printer::set_char): Additional parameter
9784         `name'.
9786         * include/printer.h: Class printer: New function
9787         set_char_and_width; new variables (is_char_named, is_named_set,
9788         named_command, named_char_s, named_char_n) to hold information
9789         about named characters -- needed by the html driver.
9791         * libdriver/printer.cc (printer::set_ascii_char,
9792         printer::set_special_char): Use set_char_and_width.
9794         * devhtml/*: New device files for html driver.
9796         * grohtml/*: New driver grohtml.
9798 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
9800         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
9801         default strings.
9803 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
9805         * libgroff/string.cc (search): Small fix to test against NULL
9806         pointer.
9808 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
9810         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
9811         \b'abc') were stacked in reverse order when processed in a
9812         diversion.
9814         * troff/node.h: Added `*last' to struct `node' to make the above
9815         fix work.
9817         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
9818         The default scale for the 'f' and 't' graphics functions were 'm'
9819         rather than 'u' (i.e., no scaling).
9821 1999-09-11  Peter Miller  <peterm@jna.com.au>
9823         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
9824         do_file), soelim/soelim.man: Added `-I file' option to soelim,
9825         defining include paths.
9827         * soelim/soelim.cc (include_path_append): New function.
9829 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
9831         * tbl/main.cc (process_options): Unix (at least Documenter's
9832         Workbench) tbl allows arbitrary non-alpha characters between
9833         options.
9835 1999-09-11  Paul Eggert  <eggert@twinsun.com>
9837         Y2k fixes.  Don't assume that the current year precedes 2000.
9839         * doc/meref.me: Add \n(y2, \n(y4.
9841         * tmac/doc-common (Yr): New number register.
9842         (Dd): Don't assume current year precedes 2000.
9844         * tmac/tmac.e (td): Likewise.
9845         (y2, y4): New number registers.
9847         * pic/pic.man: Update reference for pic paper to May, 1991
9848         version.
9850 1999-09-11  Werner LEMBERG  <wl@gnu.org>
9852         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9853         Removed quotation marks which prevented correct expansion of
9854         $(tmac_wrap).
9856         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
9858 1999-09-10  Werner LEMBERG  <wl@gnu.org>
9860         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
9861         `config.cache'.
9863         * Removed configure.old.
9865 1999-08-31  Werner LEMBERG  <wl@gnu.org>
9867         * VERSION: Updated to 1.11.1
9869 1999-05-27  Werner LEMBERG  <wl@gnu.org>
9871         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
9873         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
9874         added quotations around $(tmac_wrap) to avoid syntax error if
9875         variable is empty.
9877         * configure: Newly generated using autoconf 2.13.
9879         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
9881 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
9883         * README, PROJECTS, NEWS, INSTALL, VERSION, 
9884         doc/Makefile. doc/pic.ms, groff/groff.man:
9885         Prepare for 1.11 release.  No code changes.
9886         Documentation for pic added (doc/pic.ms).
9888 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
9890         * Version 1.10 released.
9892 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
9894         * afmtodit/afmtodit.pl: Avoid comment on first line.
9896 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
9898         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
9899         * configure.in: Call it.
9901         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
9902         (distfiles): Doesn't depend on config.log or config.cache.
9904 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
9906         * grog/grog.sh: Use print "" rather than print in END rule.
9908 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
9910         * tbl/main.cc (process_data): Don't give error for excess data
9911         entries that are comments.
9913 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
9915         * tbl/main.cc (process_data): Fix case where new for-scope rules
9916         silently change meaning of code.
9918 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
9920         * troff/env.cc (hyphenate): Loop over all consecutive sequences
9921         of non-zero hyphenation codes.
9923 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
9925         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
9927 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
9929         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
9931 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
9933         * tmac/tmac.andoc: Make it work in compatibility mode.
9935         * refer/token.h (token_info::is_range_sep): New function.
9936         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
9937         * refer/ref.cc (reference::output): More sophisticated check for
9938         multiple pages.
9940         * devps/prologue.ps (MANUAL): New procedure.
9941         * grops/ps.cc (main): New -m option.
9942         (usage): Include -m.
9943         (ps_printer::~ps_printer): Implement -m.
9945         * aclocal.m4 (GROFF_G): New macro.
9946         * configure.in: Call it.
9947         * Makefile.in (g): Provided by configure.
9949         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
9951         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
9952         translations.
9954         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
9955         (tmac_m, tmac_s): Deleted.
9956         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
9957         tmac_s_prefix): New variables.
9958         (MDEFINES): Change accordingly.
9959         * Makefile.comm (.man.n): Use new TMAC_* variables.
9960         * configure.in (GROFF_TMAC): Call.
9961         * aclocal.m4 (GROFF_TMAC): Define.
9962         * tmac/Makefile.sub (stamp_wrap): New target.
9963         (install_data, uninstall_sub): Handle macro wrapping.
9965 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
9967         * tbl/main.cc (main): Ignore -T option.
9969 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
9971         * devlj4/generate/special.map: Add definition of \(nb.
9973         * tmac/tmac.dvi: Add definition of \(nb.
9975         * troff/dictionary.c (dictionary::dictionary): association::v gets
9976         initialized by association::association.
9978         * tmac/Makefile.sub: Avoid using temporary files when installing.
9980         * troff/env.cc (environment::set_font): Make bad font number a
9981         warning.
9983         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
9985         * Makefile.in (datadir): Use share rather than lib.
9987         * groff/groff.cc (basename): Rename to xbasename.
9989 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
9991         * Makefile (CCLIBS): Don't use.
9992         * Makefile.ccpg: Likewise.
9994         * acgroff.m4: Rename to...
9995         * aclocal.m4: Modify extensively for autoconf 2.
9996         * configure.in: Likewise.
9997         * Makefile.in: Likewise.
9999         * groff/pipeline.c (const): Declare as empty if __STDC__ not
10000         defined.
10001         (xstrsignal): Check for definition of NSIG. Conditionalize
10002         on SYS_SIGLIST_DECLARED.  Make return type const.
10004 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
10006         * troff/input.cc (interpolate_macro): Rephrase missing space
10007         warning.
10009 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
10011         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
10012         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
10013         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
10014         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
10015         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
10016         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
10017         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
10018         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
10019         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
10020         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
10021         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
10022         Fix 'for' scoping.
10024 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
10026         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
10027         string_iterator.
10028         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
10029         file.
10030         (macro_iterator::macro_iterator): Add additional argument.
10032 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
10034         * troff/div.cc (vertical_size::vertical_size): In place of integer
10035         specifying line spacing use cunits specifying post vertical
10036         space.
10037         (macro_diversion::output, top_level_diversion::output): Likewise.
10038         * troff/div.h: Change declarations accordingly.
10039         * troff/env.cc (pending_output_line): Replace ls field by post_vs
10040         field.
10041         (pending_output_line::pending_output_line,
10042         pending_output_line::output, environment::output,
10043         environment::output_line, environment::output_title,
10044         environment::hyphenate_line):  In place of
10045         integer specifying line spacing use cunits specifying post vertical
10046         space.
10047         (environment::environment): Add post_vertical_spacing and
10048         prev_post_vertical_spacing arguments.
10049         (environment::get_post_vertical_spacing): New function.
10050         (environment::total_post_vertical_spacing): New function.
10051         (environment::post_vertical_spacing): New function.
10052         (init_env_requests): Initialize pvs request and .pvs register.
10053         * troff/env.h: Change declarations.
10055 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
10057         * tmac/tmac.pspic: Immediately remove the temporary file.
10059 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
10061         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
10062         height is specified.
10064 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
10066         * tbl/table.c (struct vertical rule, class table_entry): Use int
10067         not short for start_row and end_row.
10069 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
10071         * troff/input.cc (trapping_blank_line, blank_line_macro): New
10072         functions.
10073         (diverted_space_node::reread, process_input_stack): Call
10074         trapping_blank_line() rather than blank_line().
10075         (init_input_requests): Bind "blm" to blank_line_macro().
10077         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
10079 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
10081         * troff/env.cc (environment::possibly_break_line): Require that
10082         width total excluding width of final space node be greater than
10083         the target text length.
10085 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
10087         * troff/node.cc (kern_pair_node::vertical_extent): New function.
10089 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
10091         * troff/node.cc (charinfo_node): New class.
10092         (glyph_node, composite_node): Derive from charinfo_node.  Change
10093         member functions accordingly.
10095 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
10097         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
10099 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
10101         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
10103         * devps/generate/textmap (notsubset): Add.
10105         * tmac/tmac.a4: New file.
10107 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
10109         * pic/main.cc (had_parse_error): New variable.
10110         (do_picture, do_whole_file): Set had_parse_error if yyparse()
10111         returns non-zero.
10112         (main): Return 1 if had_parse_error is true.
10114 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
10116         * grolj4/lj4.cc (main): Avoid use of strtoul.
10118 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
10120         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
10121         iso_8859_1 or $LESSCHARSET is latin1.
10123 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
10125         * hpftodit: New directory.
10126         * Makefile.in (CCPROGDIRS): Add hpftodit.
10127         * devlj4/generate: New directory.
10129 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
10131         * configure.in: Don't use AC_VFORK.
10132         * groff/pipeline.c (run_pipeline): Use fork() always.
10134 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
10136         * grops/ps.cc (main): Use %1 not %s in error message for -w.
10138         * Makefile.in (CCPROGDIRS): Add grolj4.
10139         (DEVDIRS): Add devlj4.
10140         * grolj4, devlj4: New directories.
10141         * tmac/troffrc: Handle lj4.
10142         * tmac/tmac.lj4: New file.
10144 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
10146         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
10148 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
10150         * troff/input.cc (do_if_request): At end of second string, switch
10151         environments before getting next token.
10153 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
10155         * devps/psstrip.sed: Split rule that strips whitespace on either
10156         side of delimiters.
10158 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
10160         * troff/node.h (font_family::make_definition): Add return value to
10161         declaration.  * troff/symbol.h (symbol::operator==,
10162         symbol::operator!=): Likewise.
10164 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
10166         * groff/groff.cc (main, help, synopsis): Handle -S.
10167         (possible_command::insert_arg): New function.
10169         * tmac/tmac.safer: New file.
10170         * tmac/msafer.man: New file.
10171         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
10173 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
10175         * pic/pic.h, pic/main.cc (safer_flag): New variable.
10176         * pic/pic.y (placeless_element): Avoid unsafe operations if
10177         `safer_flag' is set.
10178         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
10180 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
10182         * eqn/lex.cc (get_token): Put call to add_context() in block to
10183         work around Sun C++ 4.0 bug.
10185         * include/stringclass.h (operator +): Use ?: instead of `if' to
10186         work around Sun C++ 4.0 bug.
10188 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
10190         * tbl/main.cc (process_format): Accept - as a synonym for the _
10191         key letter.
10193         * libbib/index.cc (minus_one): Don't declare as const.
10195 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
10197         * troff/input.cc (get_char_for_escape_name): Push back a newline.
10199 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
10201         * troff/input.cc (write_macro_request): New function.
10202         (init_input_requests): Bind write_macro_request to writem.
10204 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
10206         * tmac/tmac.s (@EN): Turn filling back on even if there was no
10207         equation.
10209         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
10211         * tmac/tmac.s (@TS): Renamed from TS.
10212         (TS): Call LP then TS again.
10213         (cov*ab-init): Alias @TS to TS.
10215         * tmac/tmac.s: Allow QP or RS to initialize.
10217         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
10218         Move initializations of PS and LL here.
10219         (par@init): Don't initialize HY.  Avoid changing environment 0.
10220         (par*env-init): Don't all par@reset.
10222 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
10224         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
10226 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
10228         * Makefile.in (MDEFINES): Add LDFLAGS.
10229         (LDFLAGS): Add definition line.
10231 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
10233         * troff/input.cc (get_optional_char): Split off error check into...
10234         (check_missing_character): New function.
10235         * troff/token.h: Declare it.
10236         * troff/env.cc (margin_character): Don't call get_optional_char.
10237         Only call tok.next() after making the node.
10239         * include/lib.h (getopt): Make 2nd argument char *const *.
10241 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
10243         * nroff/conftest.sh: Deleted.
10245 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
10247         * pic/make-dos-dist: Deleted.
10249 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
10251         * devps/psstrip.sed: Strip comments before stripping trailing
10252         white space.
10254 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
10256         * Version 1.09 released.
10258 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
10260         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
10262 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
10264         * libgroff/font.cc (font::load_desc): Fix typo in error message.
10266 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
10268         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
10269         about returning without a value.
10271         * troff/charinfo.h (charinfo::get_special_translation): Cast
10272         TRANSLATE_NONE to int.
10274         * refer/token.cc (lookup_token, store_token): Remove bogus loop
10275         test.  Fix test so that it works with n unsigned.
10277         * pic/pic.y (defaults_table): Fully bracket initializer.
10278         * pic/lex.cc (lookup_keyword): Likewise.
10279         * eqn/lex.cc (token_table, def_table): Likewise.
10280         * eqn/box.cc (param_table): Likewise.
10281         * troff/input.cc (warning_table): Likewise.
10282         * libgroff/font.cc (table): Likewise.
10283         * grops/ps.cc (ps_printer::special): Likewise.
10284         * grops/psrm.cc (resource_manager::process_file): Likewise.
10285         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
10286         * refer/command.cc (command_table): Likewise.
10287         * addftinfo/addftinfo.cc (param_table): Likewise.
10289         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
10290         about temp's being unused.
10291         (unused): New function.
10293         * groff/pipeline.cc: Declare c_fatal.
10295         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
10296         uchar.
10298         * libbib/index.cc (index_search_item::load): Prevent compiler
10299         warnings about fd_closer's being unused.
10300         (unused): New function.
10302 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
10304         * troff/input.cc (copy_mode_error): Make `prefix' static.
10305         Fix typo.
10307         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
10308         defined.
10309         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
10310         HAVE_CC_OSFCN_H and modify accordingly.
10312         * troff/input.cc (init_charset_table): radicalex overlaps
10313         horizontally.
10315         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
10316         udodo!hans@relay.NL.net).
10317         * groff/configure.in: Call it.
10319         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
10320         * groff/configure.in: Call it.
10321         * include/lib.h: Conditionalize declaration of pclose.
10323         * troff/div.cc (last_page_number): New global variable.
10324         (top_level_diversion::begin_page): Exit if we just printed the
10325         last page.
10326         * troff/div.h (last_page_number): Declare it.
10327         * troff/input.cc (parse_output_page_list): Set last_page_number.
10329         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
10330         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
10331         tmac/tmac.X: Likewise.
10332         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
10333         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
10335 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
10337         * tmac/doc-ditroff (hK): Remove groff specific code which
10338         prevented page-breaks between separate manual entries.  If this is
10339         the first page, don't set the page number to 1.
10341         * acgroff.m4 (GROFF_POSIX): New macro.
10342         * configure.in: Use it.
10344         * troff/node.cc (class real_output_file,
10345         real_output_file::real_output_file,
10346         real_output_file::~real_output_file): Conditionalize use of
10347         popen/pclose on POPEN_MISSING.
10348         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
10349         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
10350         (pipe_source): Similarily.
10352         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
10354         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
10355         presence of declarations by trying to compile example with
10356         conflicting declarations.  (gcc only gives a warning for missing
10357         declarations.)
10359 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
10361         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
10362         (from Ulrich Lauther).
10364 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
10366         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
10368 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
10370         * indxbib/indxbib.cc (write_hash_table): Add code for case where
10371         pointers and ints have different sizes.
10373 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
10375         * tmac/tmac.s (par*env-init): Call par@reset.
10377 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
10379         * tmac/tmac.s (@IP): Switch to a new environment when diverting
10380         tag.
10381         (par*push-tag-env, par*pop-tag-env): New macros.
10383 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
10385         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
10386         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
10388         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
10389         comment.  Include <time.h>.
10391 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
10393         * grops/ps.cc (is_small_h, is_small_v): Deleted.
10394         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
10395         lines.
10397 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
10399         * troff/input.cc (read_request): Only print a prompt if reading
10400         from the terminal.  Also clearerr on EOF if reading from the
10401         terminal.  Declare isatty.
10403 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
10405         * refer/label.y: Rename map_t to map_func and extractor_t to
10406         extractor_func.
10408 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
10410         * include/assert.h: Don't use volatile.
10411         * libgroff/assert.cc: Likewise.
10413 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
10415         * troff/input.cc (abort_request): Look at character in tok before
10416         calling get_copy().
10418 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
10420         * troff/troff.h (NO_RETURN): Deleted.
10421         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
10422         * troff/input.cc (exit_troff): Likewise
10424         * Makefile.in: Remove `Making ...' messages since GNU make now
10425         gives these. 
10427         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
10429 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
10431         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
10432         to constant 1 inch.
10434 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
10436         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
10438 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
10440         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
10441         MARK_REG if there was no left delimiter.
10443 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
10445         * pic/troff.cc (troff_output::text): Set line thickness to
10446         relative before outputting text.
10448         * tmac/tmac.e (@k): Don't zero ?T.
10449         ((z): Likewise.
10451 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
10453         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
10455 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
10457         * troff/input.cc (decode_args): Warn about unquoted tabs (from
10458         Paul Eggert).
10460 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
10462         * troff/input.cc (ignoring): New variable.
10463         (ignore): Set ignoring during call to do_define_macro.
10464         (do_define_macro): Clear ignoring before interpolating terminating
10465         macro.
10466         (copy_mode_error): New function.
10467         (get_char_for_escape_name, read_long_escape_name,
10468         interpolate_arg): Use copy_mode_error.
10469         (warning_table): Add WARN_IG.
10470         * troff/troff.h (WARN_IG): Declare.
10471         (WARN_TOTAL): Change accordingly.
10473         * groff/pipeline.c (strsignal): Rename to xstrsignal.
10474         * groff/groff.cc (strsignal): Delete declaration.
10476 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
10478         * troff/div.cc (page_offset): Use 'm' as default scaling.
10480 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
10482         * nroff/nroff.sh: Ignore -u.
10484 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
10486         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
10488 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
10490         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
10491         drawing box.
10492         (B2): With -Tascii, leave additional vertical space before
10493         and after. Ensure that the left and right indent is restored to
10494         what it was even if the point size changes.  Don't call
10495         par@finish. Change the indent, line length and title length
10496         directly.  With -Tascii, make the width of the box 1n less.
10497         (B1): Remember 1n at the current point size.  Don't call
10498         par@reset.  Change the indent, line length and title length
10499         directly.  Ensure that the temporary indent is preserved.
10500         (par*box-mark-top): Turn off no spacing mode.
10502 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
10504         * Makefile.in (dist): Use .gz suffix.
10506 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
10508         * troff/input.cc (main): Add return 0.
10509         * pic/main.cc (main): Use return instead of exit.
10510         * tbl/main.cc (main): Likewise.
10511         * eqn/main.cc (main): Likewise.
10512         * grops/ps.cc (main): Likewise.
10513         * grotty/tty.cc (main): Likewise.
10514         * groff/groff.cc (main): Likewise.
10515         * grodvi/dvi.cc (main): Likewise.
10516         * refer/refer.cc (main): Likewise.
10517         * indxbib/indxbib.cc (main): Likewise.
10518         * lkbib/lkbib.cc (main): Likewise.
10519         * soelim/soelim.cc (main): Likewise.
10520         * addftinfo/addftinfo.cc (main): Likewise.
10521         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
10522         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
10524         * troff/token.h (process_input_stack): Don't declare as static.
10525         * troff/input.cc: Likewise.
10527         * troff/node.c (invalidate_fontno): Make it a static member of
10528         class font_family.  Change callers.
10529         * troff/node.c: Change declaration.
10531         * tbl/main.cc (struct input_entry_format): Add explicit public
10532         specifier.
10533         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
10534         struct double_hline_stuff): Likewise.
10535         * tbl/table.h (struct entry_format): Likewise.
10536         * pic/object.h (struct saved_state): Likewise.
10538         * include/stringclass.h: Add forward declarations of friend
10539         functions that are later declared as inline.  Don't include inline
10540         specifier in friend declaration.
10542         * libgroff/lib.h: Declare popen and pclose.
10543         * acgroff.m4 (GROFF_POPEN): New macro.
10544         * configure.in: Call it.
10546         * include/lib.h (PI): New constant. Undef first if necessary.
10547         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
10548         * grops/ps.cc (degrees, radians): Likewise.
10549         * libgroff/font.cc (font::get_skew): Likewise.
10551         * grops/ps.cc (is_ascii): New function.
10552         (ps_output::put_string): Use is_ascii.  Use csprint rather than
10553         isprint.
10554         (ps_printer::define_encoding): Use csspace.
10555         * libgroff/strtol.c (ISASCII): New macro.
10556         (strtol): Cast arguments to is*() and tolower() to unsigned char.
10557         Use ISASCII rather than isascii.
10558         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
10559         * libgroff/cset.cc: Likewise.
10560         * libdriver/input.cc: Include cset.h.
10561         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
10562         than isdigit().
10564         * refer/refer.cc (main): Use %ld rather than %d for longs.
10566         * libbib/index.cc (index_search_item_iterator::get_tag): Use
10567         S_ISREG macro.
10569         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
10571 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
10573         * troff/input.cc (hyphenation_code): Skip white space between
10574         char/code pairs.
10576 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
10578         * tbl/table.h (table::entry_list_tailp): New member.
10579         (table::table): Initialize it.
10580         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
10581         behaviour.
10583 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
10585         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
10586         with negative horizontal positions. Remove casts of glyph::hpos to
10587         int.
10588         (USHRT_MAX): Delete definition.
10589         (SHRT_MAX, SHRT_MIN): New definitions.
10590         (glyph::hpos): Change type to short.
10591         (tty_printer::end_page): Output multiple backspaces if necessary.
10592          Remove casts of glyph::hpos to int.
10593         
10594 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
10596         * tmac/tmac.s (@RT): New definition.
10598 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
10600         * refer/refer.cc (do_file): Make sure current_filename is set when
10601         filename is "-".
10603         * pic/common.cc (common_output::dot_line): Handle zero length
10604         lines.
10606 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
10608         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
10609         (par@init): Initialize \n[HY].
10611 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
10613         * troff/dictionary.cc (dictionary::remove): Continue when
10614         r < j < i.
10616 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
10618         * Makefile.com (.y.cc): Avoid ending up with two versions of
10619         $(YTABH).
10621 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
10623         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
10624         (\(,C): Likewise.  Also fix typo.
10626 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
10628         * lib.h: Delete extraneous semi-colon.
10630         * Add pso request: `so' from a pipe.
10631         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
10632         (file_iterator::close): New function.
10633         (file_iterator::~file_iterator, file_iterator::next_file): Use
10634         file_iterator::close.
10635         (file_iterator::backtrace): Say `process' rather than `file' when
10636         the stream is popened.
10637         (pipe_source): New function.
10638         (init_input_requests): Bind ".pso" to pipe_source.
10640 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
10642         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
10644         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
10645         digits in lower case.
10647 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
10649         * Version 1.08 released.
10651         * Makefile.in (dist): Insert || true after ln -s commands that
10652         might fail.
10654         * mm: Update to mm 1.16.
10656         * acgroff.m4 (GROFF_CSH_HACK): New macro.
10657         * configure.in: Call GROFF_CSH_HACK.  Substitute for
10658         SH_SCRIPT_SED_CMD.
10659         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
10660         MDEFINES.
10661         * nroff/Makefile.sub (nroff): New target.
10662         (install_data): Install nroff.
10663         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
10664         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
10666 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
10668         * eqn/Makefile.sub (neqn): Add chmod +x.
10670         * grog/Makefile.sub (grog): Remove spurious semi-colon.
10672 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
10674         * troff/input.cc (string_iterator::string_iterator()): Initialize
10675         lineno and count.
10677 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
10679         * troff/div.cc (macro_diversion::space,
10680         top_level_diversion::space): Don't set high_water_mark.
10681         (macro_diversion::output, top_level_diversion::output): Don't
10682         include post line space in high water mark.
10684 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
10686         * eqn/eqn.y: Don't define YYDEBUG.
10687         * pic/pic.y: Likewise.
10689 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
10691         * tmac/tmac.e ([3): Add space after comma following editors.
10692         Change double spaces to single spaces.
10693         ([4): Change double spaces to single spaces.
10695         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
10696         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
10697         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
10698         after %!PS-Adobe- (for Newsprint).
10700         * troff/div.cc (top_level_diversion::begin_page): When
10701         before_first_page is 1, set page_number to 1.
10703 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
10705         * eqn/box.cc (box::top_level): Protect equation with \&.
10707 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
10709         * groff/groff.cc (possible_command::set_name): Delete old name.
10711         * groff/groff.cc (possible_command::~possible_command): Use
10712         a_delete.
10714         * troff/node.cc (troff_output_file::begun_page): New member.
10715         (troff_output_file::troff_output_file): Initialize it.
10716         (troff_output_file::really_begin_page): Only output V command if a
10717         page has been begun.
10719         * pic/pic.y (placeless_element): Delete argument to PRINT after
10720         use.
10722 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
10724         * Make wrapman work.
10725         * troff/div.h (class top_level_diversion): Replace
10726         first_page_begun by before_first_page (with opposite sense).
10727         * Change first_page_begun to before_first_page inverting sense.
10728         * troff/div.cc (class nl_reg): New class.
10729         (init_div_requests): Use class nl_reg for \n(nl.
10730         (top_level_diversion::begin_page): Don't call
10731         output_file::begin_page if before_first_page is 2;
10732         reset before_first_page afterwards.  If have_next_page_number is
10733         false, then always increment page_number.
10734         * tmac/tmac.an: Set traps within TH rather than at the top-level.
10735         Restore compatibility mode after loading, and then disable
10736         compatibility mode in TH.
10738 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
10740         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
10741         past last line.
10742         * troff/node.h (output_file::trailer): Declare.
10743         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
10744         * troff/node.cc (output_file::trailer): New function.
10745         (troff_output_file::~troff_output_file): Move most code into...
10746         (troff_output_file::trailer): New function.
10747         (class troff_output_file): Delete page_length member. Declare
10748         trailer().
10749         (troff_output_file::really_begin_page): Use current page length
10750         for final V command.
10752         * tbl/main.cc (struct options): New decimal_point_char member.
10753         (options::options): Initialize this.
10754         (process_options): Implement decimalpoint option.
10755         (process_data): Pass decimal_point_char option to table::table.
10756         * tbl/table.h (class table): New decimal_point_char member.
10757         (table::table): Add additional argument.
10758         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
10759         second argument specifying decimal point character.  Use this
10760         instead of '.'.
10761         (table::table): Initialize decimal_point_char.
10762         (table::add_entry): Change call to find_dot.
10764         * troff/input.cc (get_copy, token::next): Implement \V.
10765         (interpolate_environment_variable): New function.
10767 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
10769         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
10770         * pic/pic.y: Likewise.
10772         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
10773         Add casts to int.
10774         * refer/ref.cc (reference::insert_field, reference::delete_field):
10775         Likewise.
10776         * troff/number.cc (parse_term): Likewise.
10778         * acgroff.m4 (GROFF_PROG_YACC): New macro.
10779         * configure.in: Use GROFF_PROG_YACC.
10781         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
10782         and g++.
10783         * Makefile.in (OPTIMIZE): New define.
10784         (DEBUG): Empty by default.
10785         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
10787         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
10788         (GROFF_ARRAY_DELETE): Likewise.
10789         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
10791         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
10793         * devps/psstrip.sed: Use different delimiter on last line (so that
10794         it works with BSD 4.4 sed.)
10796 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
10798         * devps/psstrip.sed: Delete comments.
10800         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
10801         optind, opterr, optarg.
10802         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
10803         opterr, optarg.
10805 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
10807         * Makefile.in (check): Dummy target.
10809 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
10811         * Version 1.07 released.
10813         * Integrate mm 1.11.
10815         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
10816         where start_col was meant.
10818 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
10820         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
10822 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
10824         * troff/input.cc (token::next): Make \z\o'...' and similar things
10825         work.
10827         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
10828         constants.
10829         (environment): Add margin_character_flags member.
10830         * env.cc (environment::environment(symbol),
10831         environment::environment(const environment *): Initialize
10832         margin_character_flags.
10833         (margin_character): Rewrite.
10834         (environment::output_line): Add a margin character if
10835         margin_character_flags is non-zero.  Turn off the
10836         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
10837         zero, use margin_character_node without copying and then set
10838         margin_character_node to 0.
10840         * devps/DESC.in: Change minimum size to 1000.
10842 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
10844         * troff/symbol.h (symbol::hash): Change return type to unsigned
10845         long.
10846         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
10847         Add casts to int.
10849         * test-groff: Use -r rather than -x.
10851         * grops/psfig.diff: Include in distribution again.
10853 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
10855         * Makefile.in (dist): Use gzip.
10857 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
10859         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
10860         unistd.h as well as in stdlib.h.
10861         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
10862         defined; otherwise include <sys/types.h> and <unistd.h> if
10863         UNISTD_H_DECLARES_GETOPT is defined.
10865         * configure.in: use builtin(include, ... rather than include(...
10866         * configure: Regenerate with autoconf 1.3.
10868         * libdriver/print.cc (printer::adjust_arc_center): Use new
10869         algorithm suggested by Andy Fyfe.
10871         * libdriver/printer.cc (printer::adjust_arc_center): New function.
10872         * include/printer.h: Declare this.
10873         * grops/ps.cc (ps_printer::draw): Use it.
10874         * grodvi/dvi.cc (dvi_printer::draw): Use it.
10876 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
10878         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
10880 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
10882         * eqn/main.cc (main): Handle "eqn -".
10884 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
10886         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
10888         * mm: Integrate version 1.08.
10890         * pic/troff.cc (troff_output::finish_picture): Set
10891         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
10892         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
10893         if it's not defined. Check whether the register is non-zero rather
10894         than whether it's not defined.
10895         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
10897         * indxbib/indxbib.cc: Move all signal handling into...
10898         * indxbib/signal.c: New file.
10899         * configure.in: Call AC_RETSIGTYPE.
10901         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
10902         * configure.in: Call GROFF_STRUCT_EXCEPTION.
10903         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
10905         * troff/input.cc (token::token, token::operator=): Work round SGI
10906         C++ bug.
10907         * pic/object.cc (position::position): Likewise.
10909 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
10911         * pic/pic.h: Move declaration of hypot().
10913 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
10915         * pic/pic.h: Declare hypot().
10917         * pic/pic.h: Define M_PI if necessary.
10919 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
10921         * tmac/tmac.e (re): Add alternative version that doesn't use groff
10922         `.ta T' feature.
10924         * devps/prologue.ps (RE): Handle the possibility that the old font
10925         doesn't have a FontName entry.
10927 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
10929         * tmac/tmac.e (fam): Redefine to set family in environment 2.
10930         (@C): Use @fam not fam.
10932 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
10934         * lookbib/lookbib.cc (main): Change type of start to const char *.
10935         * lkbib/lkbib.cc (main): Likewise.
10937         * eqn/lex.cc (definition::definition): Don't use member
10938         initializer syntax for members of anonymous unions.
10940         * troff/input.cc (input_stack::backtrace): Change type of to const
10941         char *.
10943 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
10945         * include/stringclass.h (class string): Declare inline friend
10946         functions as inline in class declaration.
10947         * troff/hvunits.h (class hunits, class vunits): Likewise.
10948         * include/refid.h (class reference_id): Likewise
10949         * troff/troff.h (points_to_units(units), scale(units, double)):
10950         Delete declarations.
10951         * libdriver/input.cc (get_char): Delete declaration.
10952         * include/lib.h: Change 2nd argument of getopt from const char **
10953         to char **.
10954         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
10955         char **' before assigning to a `const char **'.
10956         * tbl/table.cc: Delete extra declarations of prints().
10958 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
10960         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
10961         char **' before assigning to a `const char **'.
10963         * libgroff/errarg.cc (errarg::errarg): Don't use member
10964         initializer syntax for members of anonymous unions.
10966 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
10968         * mm: Integrate version 1.07.
10970 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
10972         * troff/input.c (translate2): Rename to
10973         (translate_no_transparent).
10974         (init_input_requests): Rename tr2 to trnt.
10976 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
10978         * troff/charinfo.h (class charinfo): Add transparent_translate field.
10979         (charinfo::set_translation, charinfo::set_special_translation):
10980         Add second argument that specifies value for
10981         transparent_translate.
10982         (charinfo::get_translation, charinfo::get_special_translation):
10983         Add optional second argument that specifies whether translation is
10984         being used for transparent throughput.
10985         * troff/input.cc (charinfo::set_translation,
10986         charinfo::set_special_translation): Handle second argument.
10987         (charinfo::charinfo): Initialize transparent_translate.
10988         (translate): Split main part off into
10989         (do_translate): New function.  Pass argument saying whether
10990         translation applies to transparent throughput.
10991         (translate2): New request.
10992         (init_input_requests): Bind translate2 to `tr2'.
10994 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
10996         * tbl/table.h (class table): Add `nokeep' flag.
10997         * tbl/main.cc (process_options): Handle `nokeep' option.
10998         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
10999         table::do_bottom): Don't output keep/release macro definitions or
11000         calls when `nokeep' option has been specified.
11002 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
11004         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
11006 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
11008         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
11009         block_entry::divert, alphabetic_block_entry::divert): Add extra
11010         argument giving column separation.
11011         (table::compute_widths): Pass column separation to
11012         table_entry::divert().
11013         (block_entry::do_divert): If an entry spans multiple columns and a
11014         minimumum width has been specified for each column, then set the
11015         line length to the sum of the widths (plus possibly the column
11016         separations).
11018         * troff/input.cc (set_escape_char): Don't set the escape_char
11019         until after calling has_arg().
11021 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
11023         * tbl/table.cc (table::do_top): Add missing \s0 for double box
11024         case.
11026         * tbl/table.cc (table::print_double_hline): Avoid extra new line
11027         in case where r > nrows - 1.
11029         * tbl/table.cc (BODY_HEIGHT): Deleted.
11030         (LINE_SEP): New definition.
11031         (table::print_single_hline, table::print_double_hline,
11032         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
11033         table::do_row, table::do_top): Use LINE_SEP space before a line
11034         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
11036         * tbl/table.cc (text_entry::print_contents): New function.
11037         (text_string_name, right_text_string_name): Deleted.
11038         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
11039         (simple_text_entry::do_width, numeric_text_entry::do_width,
11040         alphabetic_text_entry::do_width): Don't store the contents of the
11041         entry in a string.
11042         (left_text_entry::simple_print, right_text_entry::simple_print,
11043         center_text_entry::simple_print,
11044         alphabetic_text_entry::simple_print,
11045         numeric_text_entry::simple_print): Print the entry directly
11046         instead of using the stored string.
11048 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
11050         * devps/Makefile: Strip PostScript files.
11051         * devps/prologue: Rename to...
11052         * devps/prologue.ps.
11053         * devps/psstrip.sed: New file.
11054         * devps/download: Use .pfa rather than .ps for installed versions
11055         of fonts.
11057 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
11059         * troff/env.cc (input_trap): Give a warning if the argument is out
11060         of range.
11062         * troff/env.cc (adjust): Treat negative argument as missing. Round
11063         argument > 5 down to 5.
11065         * troff/env.cc (center, right_justify): Make negative argument zero.
11067         * troff/div.cc (page_offset, vertical_position_traps): Treat
11068         invalid argument as missing.
11069         * troff/env.cc (line_spacing, line_length, title_length, indent,
11070         underline, hyphen_line_max_request, control_char,
11071         no_break_control_char, widow_control_request, adjust, input_trap,
11072         point_size): Likewise.
11073         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
11074         constant_space): Likewise.
11075         * troff/input.cc (compatible, shift, warn_request,
11076         set_escape_char): Likewise.
11078         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
11079         * tbl/table.cc (table::table): Likewise.
11081         * Makefile.dev (install_dev): depends on $(DEVFILES).
11083 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
11085         * devX75, devX75-12, devX100, devX100-12: New directories.
11086         * Makefile.in: Add these to DEVDIRS.
11088         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
11089         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
11090         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
11091         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
11092         targets.
11093         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
11094         (uninstall): New target.
11095         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
11096         uninstall_prog, uninstall_dev): New targets.
11098         * troff/div.cc (return_request): Treat an invalid argument as
11099         missing.
11101 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
11103         * tmac/tmac.e ((f): Set up the environment even when there's a
11104         current diversion.  Transperently throughput a call to @N.
11105         (@N): New macro.
11107 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
11109         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
11110         up to vertical resolution.
11112         * tbl/table.cc (table::do_row): Change row number after printing
11113         stuff list.
11115         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
11117 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
11119         * Rename CHANGES to NEWS.
11121 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
11123         * libgroff/new.cc (operator new): Avoid calling malloc(0).
11125 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
11127         * man.ultrix: Removed.
11129 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
11131         * Makefile.comm (extraclean): Delete files whose names begin with
11132         `='.
11134         * pic/troff.cc (troff_output::text): Fix typo in implementation of
11135         aligned text.
11137 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
11139         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
11140         * troff/div.cc (page_length, need_space, space_request): Treat
11141         invalid optional argument as missing.
11142         * troff/env.cc (number_lines): If the first argument is present
11143         but not a number, turn on line numbering, don't change the next
11144         line number and parse the remaining arguments.
11146         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
11148 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
11150         * eqn/box.h: Change declaration accordingly.
11151         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
11152         the specified size was bad but don't give an error.  Check for
11153         overflow.
11154         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
11155         * eqn/lex (do_size): Likewise.
11157 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
11159         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
11160         compatible headers.
11162 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
11164         * tbl/table.cc (table::init_output): Improve error message when
11165         table won't fit on one page.
11167 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
11169         * pic/troff.cc (troff_output::start_picture): Generate line
11170         containing a horizontal motion equal to the width of the picture.
11172         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
11173         using GROFF_COMMAND_PREFIX environment variable.
11175 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
11177         * mdate.sh: Use $NF rather than $(NF).
11179 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
11181         * pic/main.cc (main):  Use %1 not %c in argument to warning.
11183         * eqn/main.cc (main): Output code to check that geqn was given the
11184         correct -T option.
11186 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
11188         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
11189         `ln -s ../Makefile .; make; rm -f Makefile'.
11191         * troff/hyphen: Rename to...
11192         * troff/hyphen.us:
11193         * troff/input.cc (main): Delete -H option. Don't call
11194         read_hyphen_file().
11195         * troff/env.cc: Include searchpath.h and macropath.h.
11196         (exception_dictionary): Deleted.
11197         (ht): Deleted.
11198         (read_hyphen_file): Deleted.
11199         (hyphenation_language): New struct.
11200         (class trie, class hyphen_trie): Move declarations up.
11201         (trie_node::~trie_node): Deleted.
11202         (trie::delete_trie_node): New function.
11203         (trie::do_delete): New pure virtual function.
11204         (hyphen_trie::do_delete): New function.
11205         (trie::~trie): New function.
11206         (hyphen_trie::~hyphen_trie): New function.
11207         (trie::clear): No need to chcek that tp is not 0.
11208         (current_language, language_dictionary): New variables.
11209         (hyphen_word): Give an error if no current language.  Use
11210         exceptions dictionary in current language.
11211         (hyphen_trie::read_patterns_file): Find file using macro_path.
11212         Allow comments (starting with %) in patterns file.  Don't make it
11213         a fatal error if the file can't be found.
11214         (hyphenate): Return if no current language.  Get the exceptions
11215         dictionary and the hyphenation patterns from the current language.
11216         (set_hyphenation_language): New variable.
11217         (hyphenation_patterns_file): New function.
11218         (hyphenation_language_reg): New class.
11219         (hyphenation_language_reg::get_string): New function.
11220         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
11221         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
11222         register.
11223         * groff/groff.cc (main, help, synopsis): Delete -H option.
11224         * include/Makefile.sub: Don't define HYPHENFILE.
11225         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
11226         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
11227         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
11228         hyphenation patterns.
11230 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
11232         * eqn/neqn.sh: New file.
11233         * eqn/Makefile.sub: Handle neqn.sh.
11235         * eqn/eqn.h: Declare `nroff' variable.
11236         * eqn/box.cc (param_table): Add `nroff' param.
11237         (nroff): Define it.
11238         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
11239         variable.
11240         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
11242         * troff/troff.h (WARN_FONT): New warning.
11243         (WARN_TOTAL): Change accordingly.
11244         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
11245         (warning_table): Add WARN_FONT.
11246         * troff/node.cc (mount_font_no_translate): Pass argument to
11247         font::load_font.  If this is non-zero, give a warning.
11248         Don't give an error message when accessing a font that has already
11249         been found to be invalid.
11250         * include/font.h (font::load, font::load_font): Add additional
11251         optional argument which suppresses error message if the font is
11252         not found.
11253         * libgroff/font.cc (font::load_font): Handle additional argument.
11254         (font::load): Add additional argument. If this is non-null, set it
11255         to 1 and don't give error message.
11257         * include/printer.h (printer::end_page): Add argument giving
11258         length of page.
11259         * libdriver/input.cc (do_file): Pass this.
11260         * grops/ps.cc (ps_printer::end_page): Add argument.
11261         * grodvi/dvi.cc (dvi_printer::end_page,
11262         draw_dvi_printer::end_page): Add argument.
11263         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
11264         columns_per_page members. New member nlines.
11265         (DEFAULT_LINES_PER_PAGE): Deleted.
11266         (tty_printer::tty_printer): Don't compute lines_per_page from
11267         font::paperlength. Don't compute columns_per_page from
11268         font::paperwidth.
11269         (tty_printer::add_char): Don't check horizontal position against
11270         columns_per_page. Grow glyphs vector if neccessary.
11271         (tty_printer::end_page): Add argument giving page_length in units.
11272         Discard lines past end of page.
11274 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
11276         * tmac/tmac.tty-char: Fix definition of \(/l.
11278         * tmac/tmac.X: Define \(en.
11280 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
11282         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
11283         lpq, then use lp rather than lpr.
11285         * tmac/tmac.s (par@reset): Don't call `ad'.
11286         (par*env-init): Call `ad'.
11288 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
11290         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
11291         date.
11293         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
11294         * indxbib/indxbib.cc: Likewise.
11296 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
11298         * libgroff/putenv.c: New file.
11299         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
11300         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
11301         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
11302         stdlib.h with AC_HAVE_HEADERS.
11304 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
11306         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
11307         does not exist.
11309 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
11311         * eqn/box.cc (gsize): Make it an int.
11312         (set_gsize): Parse argument handling increment or decrement.
11313         (box::top_level): Convert gsize to a string.
11315         * troff/input.cc (exit_troff): Make buf unsigned char [].
11316         Call to make_temp_iterator casts buf to char*.
11318         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
11320         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
11321         * Makefile.cpg (depend.temp): Likewise.
11323         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
11325         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
11327 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
11329         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
11331 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
11333         * Version 1.06 released.
11335         * Integrate mm 1.04.
11337 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
11339         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
11341 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
11343         * afmtodit/afmtodit.pl: Add -n option that disables generation of
11344         ligatures command.
11345         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
11346         afmtodit. Regenerate.
11348         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
11349         @f back past the current position.
11351         * tmac/tmac.e: Change calls to @R so that comments are not part of
11352         arguments.
11354 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
11356         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
11358         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
11359         check that we can link a call to a function declared in <stdio.h>.
11360         (GROFF_UNISTD_H): New macro.
11361         * configure.in: Call it.
11362         * Makefile.in: Document it.
11363         * include/posix.h: New file.
11364         * troff/troff.h: Don't include <osfcn.h>
11365         * troff/input.cc: Include posix.h.
11366         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
11367         osfcn.h.
11368         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
11369         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
11370         <fcntl.h>.
11371         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
11372         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
11373         * libbib/search.cc (O_RDONLY): Delete definition.
11374         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
11375         Don't include <osfcn.h>.
11377         * acgroff.m4 (GROFF_TIME_T): New macro.
11378         * configure.in: Call it.
11379         * Makefile.in: Document it.
11381         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
11382         * configure.in: Call it.
11383         * Makefile.in: Document -DTRADITIONAL_CPP.
11384         * include/ptable.h: Don't include generic.h.
11385         (name2): Define it.
11387         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
11388         Afterwards remove [T1 and [T2.
11389         (ref*spec!0, ref*spec!2): Use T1 rather than T.
11390         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
11391         (ref*add-T2): Renamed from ref*add-T.
11392         (ref*add-T1): New macro.
11394 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
11396         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
11398         * libbib/index.cc: Include <fcntl.h>.
11399         (O_RDONLY): Define if necessary.
11400         (make_index_search_item, index_search_item_iterator::get_tag,
11401         index_search_item::check_files): Use O_RDONLY.
11402         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
11403         (O_RDONLY): Define if necessary.
11404         (search_list::add_file): Use O_RDONLY.
11405         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
11406         <sys/stat.h>.
11407         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
11408         (main): Use these.
11410         * libbib/index.cc (S_ISREG): Define it if necessary.
11411         (index_search_item::load): Use S_ISREG.
11413         * include/driver.h: Include <errno.h>.
11415 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
11417         * eqn/box.cc (body_height): Increase default value to 85.
11418         (body_depth): Increase default value to 35.
11420 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
11422         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
11423         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
11424         protected from expansion with \E.
11426         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
11428         * Makefile (Makefile): New target.
11430         * Makefile.sub (configure, distfiles): New targets.
11432         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
11433         construct.
11435 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
11437         * eqn/box.cc (param_table): Add body_height and body_depth.
11439         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
11441 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
11443         * psbb/Makefile.sub: Don't link with libgroff.a.
11445         * acgroff.m4 (GROFF_PUTENV): New macro.
11446         * configure.in: Call GROFF_PUTENV.
11447         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
11448         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
11449         is defined.
11451         * troff/env.cc (distribute_space): Rename force_forward argument
11452         to force_reverse.  Reverse the list if force_reverse is true.
11454 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
11456         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
11458         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
11459         height or depth to be negative.  Guard against SUP_RAISE quantity
11460         being negative.
11462 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
11464         * devps/generate/textmap: Add `an' (arrowhorizex).
11465         * tmac/tmac.ps: \(an overlaps horizontally.
11466         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
11468         * devps/symbolchars: Add arrowverttp, arrowvertbt.
11469         * devps/textmap: Add arrowvertex.
11470         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
11471         updownarrow delimiters.
11472         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
11474         * tbl/table.cc (simple_entry::position_vertically,
11475         block_entry::position_vertically):  For a centered entry, perform
11476         the motion in two stages.
11478         * refer/refer.cc (split_punct): Don't call lookup_token if there
11479         is no token.
11481 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
11483         * troff/input.cc (token::next): Delete token_node after copying
11484         token.
11486         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
11487         cur_point_size.
11489         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
11491         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
11493 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
11495         * grops/ps.cc (usage): -b option takes an argument.
11497         * devps/prologue (PLG): New procedure.
11498         * grops/ps.cc (main, usage): New -g option.
11499         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
11500         length using PLG.
11502 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
11504         * include/cset.h: Include <limits.h> if we have it.
11506         * libgroff/illegal.cc: New file.
11507         * include/lib.h (illegal_input_char): Use table.
11508         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
11509         * pic/lex.cc (ARG1): Renumber to 14.
11510         * eqn/lex.cc (ARG1): Likewise.
11512         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
11513         (eg 1.05.90) correctly.
11515 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
11517         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
11518         Rename $r and $R registers to $v and $V.
11519         ($r, $R): Initialize to 0.
11520         (@v, @V): New macros.
11521         (sz): Call @v.
11522         (@M): Call @V.
11524         * troff/input.cc (main, usage): Add -R option that says not to
11525         load troffrc.
11526         * eqn/main.cc (main, usage): Rename -n to -R.
11528 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
11530         * devps/DESC.in: Leave font positions 5-9 blank.
11531         * devdvi/DESC.in: Likewise.
11533         * grog/grog.pl: Handle `.PS <file' correctly.
11535         * troff/input.cc (input_stack::push): Improve error message when
11536         input stack limit exceeded.
11538 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
11540         * refer/refer.cc (main): Fix typo in handling of `a' option.
11542         * refer/refer.cc (do_bib): In state START after a newline remain
11543         in state START.
11545         * groff/groff.sh: Deleted.
11546         * groff/Makefile.sub: Delete handling of groff.sh.
11548         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
11549         to determine whether to use \X'ps:...'.
11550         * tmac/troffrc: Set 0p register to 0.
11551         * tmac/tmac.ps: Set 0p register to 1.
11553         * groff/groff.cc: Support -X option. Give warning for -TXps and
11554         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
11555         * tmac/troffrc: Support -r.X=1.
11557         * pic/troff.cc (troff_output::dot): Don't test
11558         zero_length_line_flag.
11560 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
11562         * include/lib.h: Declare getopt() and friends unless
11563         STDLIB_H_DECLARES_GETOPT is defined.
11565         * doc/chars.tr: Delete.
11566         * man/groff_char.man: New file.
11568 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
11570         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
11571         user has changed register format.
11573 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
11575         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
11576         `postpro' command in DESC file.  Get spooler command from `print'
11577         command in DESC file.  Execute spooler command with /bin/sh.
11579         * groff/groff.cc: Split Unix-specific parts into...
11580         * groff/pipeline.c: New file.
11582         * LICENSE: Delete.
11583         * COPYING: New file.
11584         * all files: Update copyright notices.
11586         * Rearrange files.  Redo Makefiles.  Use autoconf.
11588 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
11590         * troff/input.c (charinfo_to_node_list): Interpret character
11591         definition with escape_char of `\'.
11593 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
11595         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
11596         Define INT_DIGITS as big enough for 64-bit integer.
11597         * lib/strtol.c: Don't include lib.h.
11598         * lib/lib.h: Delete ifdef __cplusplus stuff.
11600 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
11602         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
11603         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
11604         get DESC from current directory.
11606 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
11608         * tbl/main.c (main): Always reset the line number when reading
11609         from stdin.
11611         * tbl/table.c (table::print_single_hline, table::print_double_hline,
11612         table::define_bottom_macro, table::do_row, table::do_top): Round
11613         vertical spacing up to vertical resolution.
11615 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
11617         * ps/ps.h (enum resource_type): Avoid comma at end of
11618         enumerator-list.
11619         * dvi/dvi.c (class dvi_printer): Likewise.
11620         * dvi/tfmtodit.c (gf::load): Likewise.
11621         * refer/label.y (struct expression): Likewise.
11622         * refer/refer.c (class label_processing_state): Likewise.
11623         * refer/indxbib.c (do_file): Likewise.
11624         * troff/troff.c (enum warning_type): Likewise.
11625         * tbl/main.c (process_data): Likewise.
11626         * troff/charinfo.h (class charinfo):
11628 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
11630         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
11632 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
11634         * groff.c: Move to new groff subdirectory.
11635         * groff/Makefile: New file.
11636         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
11638         * man/mdate.sh: Use ls -L if supported.
11640         * Consolidate all header files produced by gendef into lib/defs.h.
11641         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
11642         Don't include path.h.
11643         * lib/Makefile (path.h): Don't generate.
11644         * troff/input.c: Include defs.h. Don't include config.h.
11645         * troff/Makefile (config.h): Don't generate.
11646         * refer/index.h: Don't include suffix.h.
11647         * refer/index.c: Include defs.h.
11648         * refer/indxbib.c: Include defs.h.
11649         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
11650         defs.h.
11651         * refer/Makefile (suffix.h, path.h): Don't generate.
11652         * groff.c: Don't include config.h. Include defs.h.
11653         * Makefile (config.h): Don't generate.
11654         (lib/defs.h): Generate.
11655         (topclean): Remove lib/defs.h.
11657 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
11659         * lib/malloc.c, lib/getpagesize.h: Deleted.
11660         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
11661         related stuff.
11662         * lib/Makefile: Delete malloc-related stuff.
11663         * lib/new.c: Workaround COOKIE_BUG if necessary.
11665         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
11666         needed header files directly.
11667         * refer/refer.h: Omit definition of DEFAULT_INDEX.
11668         * Makefile: Include definition of DEFAULT_INDEX in path.h.
11670 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
11672         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
11673         argument.
11674         * lib/font (font::load_desc, font::load): Don't split argument of
11675         unknown command.
11676         (font::handle_unknown_font_command): Change type.
11677         * ps/ps.c (ps_font::handle_unknown_font_command,
11678         handle_unknown_desc_command): Change type.
11679         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
11681 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
11683         * lib/font.h (font::handle_unknown_font_command): Add file and
11684         line arguments.
11685         * lib/font.c (font::handle_unknown_font_command):
11686         * ps/ps.c (ps_font::handle_unknown_font_command):
11687         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
11688         lineno arguments.  Use _with_file_and_line functions for error
11689         reporting.
11691         * lib/fontfile.c (font::unknown_desc_command_handler): New static
11692         data member.
11693         * lib/font.c (font::set_unknown_desc_command_handler): New
11694         function.
11695         (font::load_desc): For unknown commands, call
11696         unknown_desc_command_handler if not null.
11697         * lib/font.h (class font): Declare them.
11698         (FONT_COMMAND_HANDLER): New typedef.
11699         * ps/ps.c (handle_unknown_desc_command): New function.
11700         (main): Set bflag if we had a -b option. Call
11701         font::set_unknown_desc_command_handler.
11702         (broken.h): Don't include.
11703         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
11704         submake 
11705         * ps/devps/Makefile: Add `broken' command to DESC file using
11706         BROKEN_SPOOLER_FLAGS.
11708         * macros/tmac.e ([, ]): Add as synonyms for { and }.
11710         * macros/tmac.e ($p): Only exdent if \$3 > 0.
11712         * macros/tmac.e (@R, @S): New macros.
11713         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
11714         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
11715         Declare $H, $[0-9], .. macros with @S.
11716         Declare |0, |1, |2, |3 strings with @S.
11718         * macros/tmac.e (@S): Rename to @U.
11720         * macros/tmac.e (@z): Define @b and bp as empty instead of
11721         deleting them,
11723         * macros/tmac.e (@m): Deleted.
11724         (@h): Don't call @m.
11725         (@z): Don't set @m trap.
11727         * macros/tmac.e ($h, $f): Define |z as empty string.
11729         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
11730         (@q): Likewise.
11732         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
11733         removing them.
11734         ()f): Likewise for * register.
11736         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
11737         argument is missing, don't change $R.  Call sr with three
11738         arguments when initializing.
11740 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
11742         * macros/tmac.e (sr): New macro.
11743         Initialize $r and $R using sr.
11745         * macros/tmac.e (,): Delete \*(#[.
11747         * troff/env.c (set_tabs): Read the tab type even if the position
11748         is bad.  Allow the position of the first tab stop to be negative.
11750 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
11752         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
11753         _POSIX_VERSION.
11754         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
11755         rather than -DPATHCONF_MISSING.
11756         * Makefile: Get rid of PATHCONF_MISSING.
11758         * refer/map.c: New file.
11759         * refer/index.c: Interface to mmap through map.c.  Rename map_size
11760         to map_len.
11761         * refer/Makefile: Handle map.c.
11762         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
11764 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
11766         * Makefile: RANLIB should be `true' if there is no ranlib.
11767         * lib/Makefile (libgroff.a): Simplify.
11768         * driver/Makefile (libdriver.a): Simplify.
11770         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
11771         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
11772         defined.
11774 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
11776         * troff/env.c (compare_ranges): Declare as extern "C".
11778         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
11780         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
11782 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
11784         * pic/troff.c (troff_output::text): Merge in grops_output::text,
11785         but conditionalize use of \X based on \*(.T.
11786         (grops_output::*): Deleted.
11787         * pic/output.h: Delete declaration of make_grops_output.
11788         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
11789         by default. -n sets it to 0.
11790         (usage): Corresponding changes.
11791         * groff.c (main): Don't pass -x or -p to pic.
11792         * groff.sh: Likewise.
11794         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
11795         to be non-zero.
11797         * ps/devps/afmtodit: Change calculation of asc_boundary and
11798         desc_boundary.  Make these bounds inclusive.
11799         * ps/devps: Regenerate font files.
11801 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
11803         * macros/tmac.latin1: New file.
11804         * macros/tmac.tty-char: Use tmac.latin1.
11805         (tmac.tty-tr): Deleted.
11806         * macros/Makefile: Install tmac.latin1.
11807         * macros/tmac.dvi: Use tmac.latin1.
11808         * macros/troffrc: Translate \[char160] onto no-break space here.
11809         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
11811 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
11813         * macros/tmac.Xps: Use `do' request.
11815         * macros/tmac.ps: Use `do' request.
11817         * macros/tmac.e (@C): Use `do' request.
11819         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
11820         * macros/Makefile: Install tmac.X*.
11822         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
11823         * tty/Makefile: Don't install tmac.tty*.
11824         * macros/Makefile: Install tmac.tty*.
11826         * dvi/tmac.dvi: Move to macros.
11827         * dvi/Makefile: Don't install tmac.dvi.
11828         * macros/Makefile: Install tmac.dvi.
11830         * ps/tmac.ps*: Move to macros.
11831         * ps/Makefile: Don't install tmac.ps*.
11832         * macros/Makefile: Install tmac.ps*.
11834         * eqn/box.c: Provide draw_lines parameter corresponding to -D
11835         option.
11836         * macros/eqnrc: Set draw_lines parameter based on device.
11837         * groff.c: Don't pass -D flag to eqn.
11838         * groff.sh: Likewise.
11839         * eqn/main.c: Warn about use of -D.
11841         * troff/input.c (process_startup_file): New function.
11842         (main): Call process_startup_file().
11843         * macros/troffrc: New file.
11844         * macros/Makefile: Install troffrc.
11845         * groff.c (main): Don't pass extra -m option to troff. For a 
11846         pseudo device pass the name of the pseudo device to troff using
11847         -d.
11848         * groff.sh: Likewise.
11849         * groff.c (possible_command::prepend_arg): Deleted.
11851         * troff/input.c (do_request): New function.
11852         (init_input_requests): Bind "do" to do_request.
11854         * eqn/main.c (main): Instead of loading eqnchar from device directory,
11855         load eqnrc from macro directory.
11856         * macros/eqnrc: New file.
11857         * macros/Makefile: Install eqnrc.
11858         * ps/devps/eqnchar: Deleted.
11859         * ps/devps/Makefile: Don't install eqnchar.
11860         * dvi/devdvi/eqnchar: Deleted.
11861         * dvi/devdvi/Makefile: Don't install eqnchar.
11862         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
11863         variable optM.
11865         * lib/device.[ch]: New files.
11866         * lib/font.h (font::set_device_name, font::get_device_name):
11867         Deleted.
11868         * lib/fontfile.c: Use device.h.
11869         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
11870         * troff/input.c: Delete definition of `device'.
11871         (main): Don't initialize device.
11872         * troff/troff.h: Include device.h rather than declaring device.
11873         * troff/Makefile: No need to handle DEVICE.
11874         * driver/input.c: Include device.h. Don't use
11875         font::{set,get}_device_name.
11876         * groff.c, Makefile: Rename device.h to config.h.
11877         * groff.c: Use library device variable.
11878         * eqn/main.c: Use library device variable.
11879         * eqn/Makefile: No need to handle DEVICE.
11881         * lib/searchpath.[ch]: New files.
11882         * lib/Makefile: Handle searchpath.[ch].
11883         * troff/input.c (open_file, init_dirs): Deleted.
11884         (macro_dirs): Deleted.
11885         (open_mac_file, macro_source): Use class search_path.
11886         (add_string, struct string_list): Move definition.
11887         (main): Change -M option to use macro_path. Delete call to
11888         init_dirs().
11889         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
11890         Rewrite to use class search_path.
11891         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
11892         * lib/Makefile: fontfile.c depends on searchpath.h.
11893         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
11894         MACROPATH.
11895         * lib/macropath.[ch]: New files.
11896         * troff/Makefile: No need to handle MACROPATH.
11898         * troff/input.c: Delete DUMP code.
11899         * lib/fontfile.c, lib/font.h: Delete
11900         font::forget_command_line_font_dirs.
11902         * troff/input.c (push_token): New function.
11903         (handle_first_page_transition): Use push_token().
11904         (process_input_stack): Change handling of a space at the beginning
11905         of the line.
11907 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
11909         * troff/input.c (font_dirs): Delete unused variable.
11911         * eqn/lex.c (do_set): Correct error messages.
11913 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
11915         * troff/input.c (do_define_string): Allow the string name to be
11916         followed immediately by a tab.
11917         (define_character): Likewise.
11919 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
11921         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
11922         be negative.
11924         * troff/input.c (input_iterator::is_file): New virtual function.
11925         (file_iterator::is_file): New function.
11926         (input_stack::end_file): New function.
11927         (input_stack::next_file): Handle the situation where there is no
11928         file on the input stack correctly.  Avoid making two passes over
11929         the input stack.
11930         (next_file): Make the filename optional; in this case call
11931         input_stack::end_file().
11933 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
11935         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
11936         produce a real _ charater when the current font is CW and _
11937         otherwise.
11939         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
11940         expression to work around gcc 2.2 bug.
11942 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
11944         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
11946         * troff/env.c (environment::add_padding): New function.
11947         (environment::add_char): Use add_padding().
11948         (environment::space): Likewise.
11949         (environment::wrap_up_field): Add some padding if there is none
11950         and there's no current tab.
11951         * troff/env.h: Declare environment::add_padding.
11953 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
11955         * pic/pic.y: undef fmod and rand before declaring them.
11957 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
11959         * troff/input.c (main): If the DESC file specifies a font name of
11960         0, then leave the corresponding font position empty.
11962         * nroff.sh: New file.
11963         * Makefile (install.nobin): Install nroff.sh.
11965         * tty/devlatin1/R.proto: Add ao as synonym for de.
11966         * tty/tmac.tty-char: Define ao as o.
11968         * tty/dev{ascii,latin1}/R.proto: Add aq.
11969         * tty/tmac.tty-char: Delete definition of aq.
11971 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
11973         * troff/input.c (init_charset_table): Don't translate 0240.
11974         * ps/tmac.ps: Translate char160 to space.
11975         * dvi/tmac.dvi: Likewise.
11976         * tty/tmac.tty: Likewise.
11978 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
11980         * dvi/tmac.dvi: Add support for all Latin-1 characters.
11982         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
11983         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
11984         \(oe, \(r?, \(r!.
11986         * tty/tmac.tty-char: Add \(ah.
11988         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
11989         No need to define \(FM and \(!/. Conditionalize all character
11990         definitions.
11992         * ps/devps/lgreekmap: Add +h, +f, +p.
11994         * ps/tmac.psnew: New file.
11995         * ps/Makefile: Install tmac.psnew.
11997         * troff/input.c (charinfo_to_node_list): Don't ever interpret
11998         character definitions in compatible mode.
12000         * troff/input.c (remove_character): New function.
12001         (init_input_requests): Bind remove_character to "rchar".
12003         * ps/tmac.psold: New file.
12004         * ps/Makefile: Install tmac.psold.
12005         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
12006         characters into tmac.psold.  Make these definitions unconditional.
12008         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
12010         * ps/tmac.ps: Don't define \('c and \('C.
12012         * ps/devps/textmap: Move Greek characters to...
12013         * ps/devps/symbolchars:
12015 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
12017         * ps/devps/text.enc: Add quotesingle.
12018         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
12019         * tty/tmac.tty-char: Likewise.
12020         * dvi/devdvi/texmi.map: Add +h, +f, +p.
12021         * dvi/devdvi/texi.map: Add Fn.
12022         * dvi/devdvi/msam.map: Add lz.
12023         * dvi/tmac.dvi: Handle Bq, bq, aq.
12025         * pic/lex.c (get_token): Recognize 'th.
12026         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
12028 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
12030         * ps/devps/textmap: Move di, mu, +- to...
12031         * ps/devps/symbolchars:
12033         * macros/tmac.s (@XS): Don't call par@reset or fi.
12034         (XA): Call LP. Turn off adjustment. Reduce line length.
12036         * macros/tmac.s: Initially alias XS to LP.
12037         (XS): Rename to @XS.
12038         (cov*ab-init): Alias XS to @XS.
12040 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
12042         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
12043         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
12044         (token::is_size, token::changes_env): Deleted.
12045         * troff/number.c (parse_term): No need to process \s explicitly.
12046         Call tok.next() only after scale indicator has been processed.
12047         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
12048         \f etc explicitly.
12049         (token::next): Handle \s, \f, \S, \H immediately rather than
12050         returning them as tokens.
12051         (token::operator==, token::description, token::add_to_node_list,
12052         token::process): Remove handling of deleted tokens.
12054         * troff/env.c (environment::add_char): When adding padding
12055         indicator character, call start_line() if necessary.
12057 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
12059         * ps/devps/afmtodit: Don't output 0 kerns.
12061         * ps/devps/afmtodit: Remove directory from name of encoding in
12062         font description file.
12064         * ps/devps/afmtodit: Improve error messages.
12066         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
12068         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
12069         * ps/devps/FontMakefile: Deleted.
12070         * ps/devps/afmname: New file.
12072         * ps/devps/symbol.sed: New file.
12073         * ps/devps/symbol.diff: Deleted.
12074         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
12075         Generate zapfdr.afm from zapfd.afm.
12077         * tty/tmac.tty (tty-char): Prefix definition with ".
12079         * macros/tmac.an (TP): Don't start a diversion if one has already
12080         been started.
12082         * tty/tmac.tty-char: Add Latin-1 characters.
12084         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
12086 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
12088         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
12089         Move declaration of struct horizontal_span.
12091         * tbl/table.c (table::table): Initialize span_list.
12092         (table::~table): Delete span_list.
12094         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
12096         * ps/devps/Makefile: Avoid dependency on GNU make.
12098         * ps/tmac.ps: Check that character does not already exist before
12099         defining it.
12101         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
12102         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
12103         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
12104         files.
12106         * tty/tmac.tty-char: New file.
12107         * tty/Makefile: Install tmac.tty-char.
12108         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
12109         tmac.tty-char.
12111         * tty/tmac.tty: Fix definition of \(34.
12113         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
12114         bracket-drawing characters onto |. Add *o.
12116         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
12117         only if current_field.
12119         * troff/dictionary.c (dictionary::lookup): Free old_table after
12120         rehashing. 
12122 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
12124         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
12125         whose glyphs are identical to glyphs of some Roman character.
12127         * tty/devlatin1/R.proto (bu): Deleted.
12128         * tty/devascii/R.proto (bu): Deleted.
12129         * tty/tmac.tty: Add definition of \(bu.
12131         * eqn/main.c (do_file): Pass FILE as argument.
12132         (main): Automatically load eqnchar.  New options -F and -n.
12133         Pass do_file an opened FILE.
12134         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
12135         No need to include font.h.
12136         * groff.sh: Likewise.  Don't need to use - for standard input.
12137         Prefix files with -- if first file starts with -.
12139         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
12141         * troff/env.c (environment::possibly_break_line): Don't set line
12142         to 0 across call to output_line().  Don't call output_line() until
12143         after discarding nodes after break.
12145 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
12147         * request.h (macro::empty): Declare it.
12148         * input.c (macro::empty): New method.
12149         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
12150         macro is empty.
12152 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
12154         * troff/env.c (environment::start_field): Decrement space_total
12155         when a space is frozen.
12157 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
12159         * macros/tmac.an (R): Delete macro.
12161         * troff/input.c (get_copy, token::next): Support \# (like \" but
12162         newline is ignored).
12164         * troff/input.c (token::next): Fix error message in 'Y' case.
12166 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
12168         * eqn/delim.c (define_extensible_string): Recognize any prefix of
12169         a delimiter name.
12171 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
12173         * c++test.c: Include <osfcn.h>.
12175         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
12176         <errno.h> doesn't.
12178 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
12180         * tbl/table.c (table::divide_span): Don't count column separation
12181         if expand was specified.
12183         * tbl/main.c (process_format): Don't ignore width specs in
12184         continued format.  Give warning for changing equal widths or
12185         column separation in continued format.
12186         (process_data): Set column separation, minimum width, equal
12187         columns at end of table.
12189 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
12191         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
12192         node::add_discretionary_hyphen): Use soft_hyphen_char.
12193         (set_soft_hyphen_char): New function.
12194         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
12196         * Makefile (c++tested): Give more helpful message if test fails.
12198 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
12200         * troff/input.c (init_charset_table): Translate 0240 to
12201         an unbreakable space.
12203         * troff/token.h (token::hyphen_indicator): New function.
12204         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
12205         translation.
12206         * troff/input.c (translate): Allow translation to \%.
12207         * troff/node.c (node::add_char): Handle
12208         TRANSLATE_HYPHEN_INDICATOR.     
12209         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
12211         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
12212         for \(hy.
12214         * tty/devlatin1/R.proto: \(hy and - should print as 055.
12216 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
12218         * groff.c (run_commands): If the last command gets a SIGPIPE send
12219         a SIGPIPE to all children than haven't yet terminated.  When
12220         command terminates, set pid field to -1.
12222 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
12224         * groff.c (main): Pass an appropriate -filename option to gxditview.
12226 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
12228         * Makefile.bd (install): Remove existing program before copying.
12230         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
12231         programs which have Unix counterparts to be installed with
12232         user-specified prefix.
12234         * troff/input.c (exit_troff): Don't check if exit_started.
12235         (exit_request): Don't call exit_troff if exit_started.
12237         * Makefile.bd (install.mm): Rename to install.dwbmm.
12239 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
12241         * driver/input.c (do_file): Add missing break for '#' case.
12243 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
12245         * troff/input.c (input_stack::clear):  Clear past any boundaries and
12246         then add the boundaries back.
12248         * troff/input.c (exit_troff): Return immediately if already
12249         exiting.
12251         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
12252         end macro.
12253         (pg*end-page): If the text has ended and there are no more
12254         footnotes or keeps, exit.
12256         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
12258         * troff/input.c (init_charset_table): Make \(rq transparent by
12259         default.
12261         * macros/tmac.an: Define lq and rq strings.
12263         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
12265 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
12267         * troff/env.c (environment::final_break): New function.
12268         (environment::newline): Set prev_line_interrupted to 2 if
12269         exit_started.
12270         * troff/env.h: Declare environment::final_break.
12271         * troff/input.c (exit_troff): Call environment::final_break()
12272         instead of environment::do_break().
12274         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
12275         doesn't already exist.
12276         * macros/man.local: New file.
12277         * macros/tmac.an: Load man.local.
12278         * macros/man.ultrix: New file.
12280 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
12282         * troff/input.c (exit_groff): Rename to...
12283         (exit_troff): New function.
12285         * troff/div.c (exit_started, done_end_macro,
12286         seen_last_page_ejector): New global variables.
12287         (began_page_in_end_macro): New static variable.
12288         (exit_flag): Deleted.
12289         (top_level_diversion::top_level_diversion): Initialize
12290         last_page_count.
12291         (top_level_diversion): More elaborate test for whether
12292         cleanup_and_exit() should be called.
12293         Set began_page_in_end_macro if the end macro isn't yet finished.
12294         * troff/div.h (top_level_diversion::last_page_count): New data
12295         member.
12296         (top_level_diversion::set_last_page): New function.
12297         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
12298         * troff/env.c (do_break): Zero prev_line_interrupted.
12299         * troff/input.c (exit_flag): Delete declaration.
12300         (LAST_PAGE_EJECTOR): New magic cookie.
12301         (token::next): Handle LAST_PAGE_EJECTOR.
12302         (exit_groff): Set exit_started and done_end_macro instead of
12303         exit_flag.  Call top_level_diversion::set_last_page.  Push a
12304         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
12305         another ejection after setting seen_last_page_ejector.
12307 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
12309         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
12311         * macros/tmac.e (TH): Make sure there's room for the initial
12312         header.
12314         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
12315         Set FVS in points rather than units.
12317 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
12319         * troff/div.c (top_level_diversion::add_trap): Don't consider the
12320         position of empty slots.
12322 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
12324         * ps/devps/S: Fix height and depth of parenrightex.
12325         * ps/devps/symbol.diff: Regenerate.
12327 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
12329         * tmac.e (u): Do underlining as in -mgs.
12331 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
12333         * tty/tty.c (tty_printer::end_page): If overstriking is
12334         suppressed, still turn overstruck horizontal and vertical lines
12335         into +.
12337         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
12338         2.1.
12340         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
12342 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
12344         * Version 1.05 released.
12346 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
12348         * tty/tty.c: Instead of keeping an array of glyphs and then
12349         sorting it, keep a ordered linked list of glyphs for each line.
12351         * driver/driver.h: Include stddef.h.
12353         * tty/tty.c (compare_glyph):
12354         * refer/refer.c (rcompare):
12355         * troff/env.c (compare_ranges): Arguments of qsort comparison
12356         function should be const void *.
12358         * troff/number.c (parse_term):
12359         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
12360         switch statement.
12362         * refer/label.y (consider_authors): Don't access variables
12363         constructed under a condition outside that condition: put braces
12364         round for statement containing declaration; redeclare use of same
12365         variable later.
12367         * pic/pic.y (text_expr): Delete production that allows
12368         parenthesised text_expr.
12369         (expr): Allow a conditional_expr to appear in parentheses.
12370         (conditional_expr): Rename to any_expr.
12372         * mm: Install new version 1.01 from jh.
12374         * lib/font.c (font::get_width): Cache scaled widths.
12375         (font::font): Initialize widths_cache.
12376         (font::~font): Destroy widths_cache.
12377         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
12379 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
12381         * c++test.c, c++test.ref: New files.
12382         * Makefile: Check that the C++ compiler works.
12384         * ps/tmac.pspic (PSPIC): Do a break.
12386         * ps/tmac.ps: Move definition of PSPIC into...
12387         * ps/tmac.pspic: New file.
12388         (PSPIC): Draw box around picture, but make it invisible to grops.
12389         * ps/tmac.ps: Load tmac.pspic.
12390         * ps/Makefile: Install tmac.pspic.
12392 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
12394         * lib/font.c (scale_round): If n is negative,
12395         subtract .5 before truncating floating point result.
12397         * lib/fontfile.c: Include <errno.h>.
12399 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
12401         * driver/input.c (get_char): Inline. Don't update current_lineno.
12402         Change callers to up date current_lineno if necessary.
12403         Use get_char() instead of getc(current_file).
12405 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
12407         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
12409 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
12411         * tty/tty.c (tmac.tty): Define \(rg as (R).
12413 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
12415         * lib/lib.h: New define a_delete.
12416         * Use a_delete instead of delete when deleting an array of objects
12417         without destructors.
12419         * lib/lib.h: Rename adelete to ad_delete.
12420         * Change uses of adelete.
12422 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
12424         * eqn/eqn.y: Include lib.h.
12426         * troff/node.c (grow_font_table): Delete old_font_table.
12428         * mm: Install new version from jh.
12430 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
12432         * tbl/table.h (format_type): Make global instead of local to class
12433         entry_format.  Prefix enumerators with FORMAT_.
12434         * tbl/table.c, tbl/main.c: Corresponding changes.
12435         * refer/token.h (token_type): Make global.  Prefix enumerators
12436         with TOKEN_.
12437         * refer/token.[ch]: Corresponding changes.
12438         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
12440         * troff/div.c (node::set_vertical_size): Don't name argument.
12442 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
12444         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
12445         * lib/lib.h: Define adelete accordingly.
12446         * pic/object.c (graphic_object::graphic_object):
12447         * tbl/main.c (format::~format):
12448         * tbl/table.c (table::~table):
12449         * refer/ref.c (reference::~reference, reference::merge,
12450         reference::insert_field, reference::delete_field): Use adelete.
12452         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
12453         * refer/token.h:
12454         * tbl/table.h: Corresponding changes.
12456         * common.c (common_output::dashed_arc, common_output::dotted_arc):
12457         Ensure total_angle is positive.
12459 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
12461         * refer/ref.c (reference::merge, reference::insert_field,
12462         reference::delete_field): Avoid delete[0].
12464         * refer/token.c (init_special_chars): Move calls to cmupper
12465         outside calls to init_two_char_letter to work around bug in gcc
12466         2.0.
12468 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
12470         * lib/new.c (operator new): Use __builtin_new for g++.
12472         * pic/object.c (graphic_object::~graphic_object):  Don't use
12473         delete [] on 0.
12475         * pic/object.c (output::compute_scale): Initialize max_width and
12476         max_height.
12478 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
12480         * troff/input.c (write_request): Call fflush.
12482         * troff/node.h (class composite_node): Move declaration to node.c
12483         * troff/input.c (charinfo_to_node): Rename to ...
12484         (charinfo_to_node_list): Return node list rather than composite
12485         node.
12486         * troff/node.c (make_composite_node): New function.
12487         (make_node, add_char): Call make_composite_node instead of
12488         charinfo_to_node.
12489         (class composite_node): Add a tfont * member.  Delete font_size
12490         member.
12491         (composite_node::composite_node, composite_node::copy,
12492         composite_node::size): Corresponding changes.
12493         (composite_node::tprint): Provide constant spacing, emboldening
12494         and track kerning as specified in tfont.
12495         (composite_node::width): Change width calculation accordingly.
12496         * troff/env.h (environment::composite): New member.
12497         (environment::is_composite, environment::set_composite): New
12498         functions.
12499         * troff/env.c (environment::environment): Initialize composite.
12500         * troff/input.c (charinfo_to_node): Call
12501         environment::set_composite.
12502         * troff/node.c (make_composite_node, make_glyph_node): Use the
12503         plain version of the tfont if the environment is composite.
12505         * troff/node.c (font_info::get_space_width): Additional argument
12506         giving space_size.  Handle constant space correctly. Scale by
12507         space_size unless constant spaced.
12508         (env_sentence_space_width): New function.
12509         * troff/node.h: Declare it.
12510         * troff/env.h (environment::get_space_size,
12511         environment::get_sentence_space_size,
12512         environment::get_narrow_space_width,
12513         environment::get_half_narrow_space_width): Make inline.
12514         (environment::get_space_width): Make inline.  Just call
12515         env_space_width.
12516         * troff/env.c: Delete definitions for funtions made inline.
12517         (environment::space_newline, environment::space): Use
12518         env_sentence_space_width(). Don't scale by space_size.
12519         * troff/node.h: Move declarations of env*space_width() functions
12520         into env.h.
12522 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
12524         * macros/tmac.s (PS): Don't try to set negative indent.
12526 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
12528         * pic/pic.y: Fix min function.
12530 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
12532         * man/mdate.sh: Clear LANGUAGE.
12534 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
12536         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
12537         * pic/lex.c: New COMMAND keyword.
12538         * pic/pic.y (print_args, print_arg): New rules.
12539         (placeless_element): Use print_args for PRINT.
12540         New COMMAND element.
12542 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
12544         * troff/input.c (terminal): Handle missing argument correctly.
12546         * pic/pic.y (text_expr): New rule.
12548         * pic/pic.y: Implement := operator.
12550 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
12552         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
12553         mdoc.
12555 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
12557         * ps/devps/dingbatsrmap: Include this in the distribution.
12559         * macros/tmac.doc: Replace with new version from 2nd Networking
12560         Release. Fix loading of doc-* files.
12561         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
12562         * macros/tmac.doc.old: New file.  Apply fixes that had been
12563         applied to old tmac.doc.
12564         * macros/tmac.andoc: Check that we're running under groff.
12565         * macros/Makefile: Rework.
12567 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
12569         * tbl/table.h (format_type): 
12570         * refer/token.h (token_type): If NESTED_TYPES is defined, use
12571         typedef to make these types visible at file scope.
12572         * Makefile: Add NESTED_TYPES configuration option.
12574         * troff/div.c (mark): At the top level use the value of
12575         nl_reg_contents rather than the current vertical position.
12577 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
12579         * tty/tty.c: Implement \D for horizontal or vertical lines.
12580         (tty_printer::set_char): Use vec_used+2 as serial number.
12581         Don't allow size of vector to exceed USHRT_MAX-2.
12582         Split off part into...
12583         (tty_printer::add_char): New function.
12584         (tty_printer::draw): New function.
12585         (compare_glyph): Handle equal serial numbers.
12586         (tty_printer::end_page): Handle overstruck characters from \D.
12587         (main, usage): Implement -d option.
12589 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
12591         * tbl/main.c (process_format):
12592         * eqn/text.c (split_text):
12593         * troff/input.c (token::next): Use inner block for declarations
12594         with initializers in switch statement.
12596 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
12598         * pic/common.c (common_output::dash_line): Cope with zero-length
12599         lines.
12601 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
12603         * Version 1.04 released.
12605 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
12607         * macros/tmac.an (TH): Define a macro an-init to define variables
12608         based on command line arguments.
12609         (an-header): Call it.
12611 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
12613         * Makefile (install.mm): Rename to install.dwbmm.
12615         * Makefile: Integrate mm.
12616         * mm: New directory.
12618 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
12620         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
12621         <sys/types.h>.
12623         * pic/troff.c (troff_output::simple_spline,
12624         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
12625         shadowing parameter.
12627         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
12629         * lib/ptable.h: Add explicit casts when converting from unsigned
12630         long to unsigned.
12632         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
12633         * dvi/devdvi/Makefile: Install SA, SB.
12635         * refer/indxbib.c: Add declaration of mktemp.
12637         * refer/lookbib.c: Add declaration of isatty.
12639 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
12641         * pic/lex.c (interpolate_macro_with_args):  While collecting
12642         arguments, keep track of whether we're in a string.
12644 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
12646         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
12647         down with \v, so as to avoid problems with top of page trap
12648         setting no space mode.
12650 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
12652         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
12654 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
12656         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
12657         Improve error message.
12659 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
12661         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
12662         printf("%03o");
12664 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
12666         * groff.c (possible_command::execp): Always use _exit() after a
12667         failed exec.
12669         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
12670         NO_SYS_WAIT_H   configuration options.
12671         * groff.c: Use these options.  Use POSIX-style macros to extract
12672         fields from the status returned by wait().
12674 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
12676         * tbl/table.c (table::compute_separation_factor): Allow the
12677         separation factor to drop to 0.
12679 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
12681         * refer/search.c: Include <errno.h>.
12683 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
12685         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
12687         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
12688         C++. 
12690         * pic/lex.c (input_stack::bol): Move definition out of class body.
12692         * pic/main.c: On MSDOS munge argv[0].
12694         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
12696         * lib/ptable.c (hash_string): Use unsigned long rather than
12697         unsigned.
12698         (next_ptable_size): Use unsigned rather than int.  Give an error
12699         message if we've hit the largest table size.
12700         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
12701         table size.
12703         * pic/object.h (object_spec): Make flags unsigned long.  Declare
12704         flags as const unisgned long rather than as enums.
12706         * pic/output.c: Deleted.
12708         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
12710         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
12711         Add additional argument.
12712         (line_entry::note_double_vrule_on_{left,right}): Set value of
12713         douvle_vrule_on_{right,left} flag according to argument.
12714         (simple_line_entry::simple_print,
12715         simple_line_entry::double_line_print): If adjacent to double vrule
12716         on a corner extend rather than shorten the rule by half the double
12717         vrule sep.
12719         * troff/number.c (parse_term): In checking for overflow, handle the
12720         case where the current horizontal position is negative.
12722 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
12724         * pic/object.c (draw_arrow): Check for object having zero length.
12726 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
12728         * eqn/main.c (do_file): Split off inline equation handling into...
12729         (inline_equation): New function.  Search for starting delimiter
12730         using...
12731         (delim_search): New function. Don't recognize a delimiter that
12732         occurs in the name of an escape sequence, number register, string
12733         etc.
12735 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
12737         * eqn/delim.c (delim_box::compute_metrics): Don't call
12738         define_extensible_string if left is 0.
12739         (delim_box::output):  Don't print the left delimiter if left is 0.
12740         (delim_box::debug_print): Check for left == 0 before calling printf.
12742 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
12744         * troff/Makefile (majorminor.c): Include only digits in
12745         minor_version.
12747 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
12749         * refer/dirnamemax.c: new file.
12750         * refer/genlimits.c: Deleted.
12751         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
12752         Don't check path length.
12753         * refer/Makefile: Add dir_name_max.o; delete genlimits.
12754         * Makefile: Add PATHCONF_MISSING option.
12756         * refer/indxbib.c (get_cwd): New function.
12757         (main): Use get_cwd().
12758         * lib/getcwd.c: New file.
12759         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
12760         GETCWD in SUBFLAGS.
12761         * lib/Makefile: Compile getcwd.o.
12763         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
12764         userdict.
12766         * refer/indxbib.c (main): Check success of mktemp.
12768         * lib/tmpfile.c: New file.
12769         * lib/Makefile: Add tmpfile.c.
12770         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
12771         * ps/ps.h: Delete declaration of mktemp().
12772         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
12773         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
12774         * driver/driver.h: No need now to include errno.h.
12776         * everywhere: Set errno to 0 before calling fopen().
12778         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
12779         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
12780         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
12782 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
12784         * troff/env.h (translate_space_to_dummy): Declare it.
12785         * troff/env.c (environment::space_newline, environment::space):
12786         If translate_space_to_dummy is set then make the width of spaces 0.
12787         * troff/input.c (translate): If the second character of a
12788         translation is a space, translate to unbreakable space.  If the
12789         first character is a space, set or clear translate_space_to_dummy
12790         according to whether the second character is \&.  Weird!
12792 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
12794         * groff.c (run_commands): Don't use non-zero exit code because a
12795         command gets SIGPIPE.
12797         * groff.c, groff.sh: Use -mXps with -TXps.
12799         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
12800         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
12801         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
12802         (ps_printer::special): New specials invis and endinvis.
12803         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
12804         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
12805         (ps_printer::end_page): Check that invis_count == 0.
12806         (ps_printer::invis_count): New member.
12807         (ps_printer::ps_printer): Initialize invis_count to 0.
12809         * troff/env.c (environment::hyphenate_line): Hyphenation
12810         indicator at beginning of word inhibits splitting after -, \(em
12811         etc.
12813         * pic/pic.y (element): Allow another element to follow } without
12814         any intervening separator.
12816 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
12818         * pic/lex.c (get_delimited): Allow tabs before delimiter.
12820 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
12822         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
12823         declaration of wait() in header files.
12824         * Makefile: Get rid of -DHAVE_UNION_WAIT.
12826         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
12828         * lib/lib.h: Declare return type of strerror as char *.
12830         * man/Makefile: Add g flag to sed substitutions.
12831         * Makefile (shgroff, bindist): Likewise.
12833 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
12835         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
12836         * ps/devps/prologue (PBEGIN): Define showpage after pushing
12837         userdict.
12839 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
12841         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
12842         userdict.
12844 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
12846         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
12847         group.
12849 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
12851         * troff/input.c (define_number_reg):  If currently undefined,
12852         don't define it if the argument is an invalid expression.
12854         * Makefile: Ignore return value of `if' commands without `else'
12855         parts.
12857         * Makefile: Split up CPPDEFINES into a series of separate
12858         configuration options.
12860         * troff/input.c (init_registers): Use time_t instead of long
12861         unless LONG_FOR_TIME_T is defined.  Use returned result rather
12862         than passing pointer.
12863         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
12865         * lib/Makefile (fontpath.h): Use gendef.
12867 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
12869         * troff/input.c (input_iterator::shift): Delete argument name.
12870         * troff/node.c (suppress_output_file::really_begin_page,
12871         suppress_output_file::really_transparent_char, node::ascii_print,
12872         node::tprint): Delete names of unused arguments.
12874 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
12876         * refer/label.y (string):  Pass $4 to command_error.
12878 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
12880         * Version 1.03 released.
12882 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
12884         * Makefile: Pass definition of SHELL in SUBFLAGS.
12886         * gendef: New file.
12887         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
12888         ps/Makefile: Use gendef to construct header files that are
12889         constructed from the Makefile.
12891         * macros/Makefile: make all should build stripped version of tmac.e.
12893         * refer/Makefile (clean): Remove y.output.
12895 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
12897         * ps/pfbtops.c (main): Add -v option which prints out a version
12898         number.
12899         * ps/Makefile (pfbtops): Link with libgroff.a.
12901 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
12903         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
12904         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
12906         * refer/lkbib.c (main): Always terminate reference with blank
12907         line.
12908         * refer/lookbib.c (main): Likewise.
12910         * refer/linear.c (file_buffer::load): Check that the file is not a
12911         binary file.
12913         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
12914         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
12915         Delete second inclusion of <sys/param.h>.
12917 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
12919         * troff/token.h (token::special): Deleted.
12921         * tbl/main.c (process_format): Rework so that opt->tab_char is
12922         recognized only when appropriate.
12924         * ps/Makefile (clean): Remove pfbtops.
12926 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
12928         * lib/font.c (text_file::next): Don't return if we have got a
12929         blank line.
12931 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
12933         * refer/refer.c (store_reference): Get hash code from old_table[i]
12934         when rehashing the table.
12936 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
12938         * eqn/box.c (box::top_level): Save size and prev size using \R and
12939         restore it afterwards. Set the size to the size at the beginning
12940         of the line.
12941         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
12942         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
12944         * refer/Makefile (limits.h): Use ./genlimits.
12946 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
12948         * refer/index.c: Delete declarations of stat() and fstat().
12950 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
12952         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
12954 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
12956         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
12958 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
12960         * troff/input.c (token::get_char): Handle \e.
12962         * refer/linear.c: Delete declarations of fstat() and stat().
12964 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
12966         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
12967         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
12969 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
12971         * troff/input.c (do_define_macro): Improve error handling for end
12972         of file while defining macro.
12974 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
12976         * eqn/box.h: Fix declaration of set_gsize.
12977         * eqn/box.c (set_gsize): Make argument const char *.
12978         (gsize): Declare as char *.
12979         * eqn/main.c (main): Don't convert gsize to int.
12980         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
12982         * Version 1.02 released.
12984 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
12986         * macros/tmac.andoc: New file.
12987         * macros/Makefile: Install tmac.andoc.
12989         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
12990         operator new and delete on OP_DELETE_BROKEN not being defined.
12991         * Makefile: Mention OP_DELETE_BROKEN.
12993 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
12995         * Makefile (bindist): Pass SUBFLAGS.
12997 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
12999         * Makefile, groff.c: Pass definitions to groff.c via device.h.
13001         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
13002         parameter.
13004         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
13006         * ps/ps.h, ps/psrm.c: Make comment_table and
13007         header_comment_table local to resource_manager::process_file.
13009         * groff.sh: With -TXps pass -printCommand option to gxditview.
13011         * groff.c (possible_command::print): Implement using
13012         append_arg_to_string.
13014         * xditview: Merge in new implementation with own ChangeLog.
13016 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
13018         * groff.c (main): Implement PRINT_OPTION.
13019         (append_arg_to_string): New command.
13020         (device_table): Set PRINT_OPTION flag for Xps.
13022 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
13024         * troff/groff.h: Rename to troff.h.
13026         * pic/lex.c (lookup_keyword, docmp): New functions.
13027         (get_token): Use new lookup_keyword.
13028         Don't include key.h.
13029         * pic/key.[ch], pic/pic.gperf: Deleted.
13030         * pic/Makefile: Remove gperf stuff.
13032         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
13033         into output.h.
13034         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
13036         * troff/Makefile, troff/node.c: Move definition of
13037         STORE_WIDTH into node.c.
13039         * etc/grog.pl, etc/grog.sh: Support -mdoc.
13041 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
13043         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
13044         dvi/devdvi/texb.map: Add lq and rq.
13045         dvi/devdvi: Regenerate fonts.
13046         * ps/devps/textmap: Add lq and rq.
13047         * ps/devps: Regenerate fonts.
13048         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
13049         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
13051         * pic/object.c (position_rectangle): When checking radius
13052         cope with possiblity that width or height is negative.
13053         (box_object::box_object): Have separate xrad and yrad with
13054         signs matching signs of dim components.
13055         (box_object::{north,south}_{east,west}): Use xrad and yrad.
13056         (box_object::print): With rounded boxes use absolute values
13057         for dim and rad arguments.
13059         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
13060         in fontpath.h.
13062         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
13064         * various files: Add explicit destructors to keep Saber CC +d
13065         happy.
13067 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
13069         * eqn/box.c (box::top_level): Restore fonts correctly after
13070         font changes in line containing inline equation.  Also
13071         restore previous font as well as current font.
13072         * eqn/pbox.h: Define necessary string and register names.
13074         * troff/input.c (token::next): Case 'R' calls do_register.
13075         (do_register): New function.
13077 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
13079         * groff.c, groff.sh: Support Xps device.  Allow each device
13080         to have a pseudo_name and a real_name.
13082         * groff.c (run_commands): Don't print `Broken pipe' messages.
13084         * ps/pfbtops.c: New file.
13085         * ps/Makefile: Add pfbtops.
13087         * troff/number.c (parse_term): Improved error message.
13089 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
13091         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
13093         * Makefile: Integrate refer.
13094         * refer: New directory.
13095         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
13096         man/lkbib.man: New files.
13097         * man/Makefile: Support refer man pages.
13099         * lib/lib.h: Declare is_prime.
13100         * lib/prime.c: New file.
13102         * troff/input.c (macro_source): New function.
13103         (init_input_requests): Bind "mso" to macro_source.
13105         * troff/env.c (environment::possibly_break_line): Maintain
13106         pointer to pointer to node to be split in ndp so as to avoid
13107         using address of freed node.
13109         * troff/env.c (environment::hyphenate_line): Maintain pointer to
13110         pointer to first node to be hyphenated in startp so as to
13111         avoid using address of freed node.
13113         * troff/env.c (class trie, class hyphen_trie): Make the
13114         elements of the trie be of type char not unsigned char.
13115         Declare arguments to be const char* instead of unsigned char *.
13116         
13117         * troff/env.c (hyphenate): Initialize hbuf[0].
13119         * troff/input.c (set_string): Declare p to be char * and cast
13120         *p to unsigned char when necessary.
13122         * troff/input.c (do_define_macro): Declare s to be const
13123         char*. Cast element to unisgned char when necessary, Declare
13124         d to be an int.  Handle EOF better.
13126         * troff/Makefile, troff/input.c: Different scheme for passing
13127         definitions of MACROPATH, HYPHENFILE and DEVICE.
13129 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
13131         * tty/devascii/R.proto: Delete entry for em.
13132         * tty/devlatin1/R.proto: Likewise.
13134 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
13136         * troff/input.c (translate): Stop when we get a space. Treat eof
13137         like newline.
13139         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
13141 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
13143         * tbl/main.c (process_format): A font name following a `f'
13144         modifier that starts with a digit can be only one character long.
13145         Also deal with EOF on the second character of the font name.
13147 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
13149         * troff/input.c (token::next): Turn \~ into an
13150         unbreakable_space_node.
13151         * troff/node.c (unbreakable_space_node): New class.
13152         * troff/node.h: Declare it.
13154 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
13156         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
13157         it's >= 0, before outputting it as a single byte.
13159 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
13161         * lib/font.c: Make font_char_metric::code an int.
13162         (font::get_code): Change return type to int.
13163         (font::load): Allow code to be arbitrary integer.
13164         * lib/font.h (font::get_code): Change return type to int.
13165         (font::number_to_index): Change argument type to int.
13166         * troff/input.c (token::next):  In case 'N', allow any value.
13167         Store value in token::val.
13168         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
13169         (token::get_char, token::add_to_node_list, token::process): Get
13170         number from val.
13171         (charinfo::set_number): Change argument to int.
13172         (charinfo::get_number):  Require that NUMBERED flag be set.
13173         (get_charinfo_by_number): Store numbered characters not between 0
13174         and 255 in a dictionary.
13175         * troff/charinfo.h (get_charinfo_by_number): Change argument type
13176         to int.
13177         (charinfo::number): Change type to int.
13178         (charinfo::set_number): Change type of set_number to int.
13179         * troff/node.c (troff_output_file::put_char_width,
13180         troff_output_file::put_char): Test whether character is numbered
13181         using charinfo::numbered().
13182         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
13183         values of num.
13184         * lib/nametoindex.c: New implementation to cope with arbitrary
13185         number characters.
13187         * troff/input.c (token::operator==): Test val for
13188         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
13189         TOKEN_SIZE.
13191         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
13192         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
13194 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
13196         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
13197         variable.
13199         * all Makefiles: rm targets of cp and >.
13201         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
13202         it.
13204         * eqn/lex.c (def_table): Add dollar.
13206 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
13208         * troff/input.c (do_width): Push back newline before closing delim
13209         like do_bracket.
13211 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
13213         * groff.c (possible_command::prepend_arg): New function.
13214         (main): Prepend device -m option.
13215         * groff.sh: Put device -m options before command-line options.
13217 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
13219         * macros/tmac.an (IP): Quote argument to TP.
13221         * ps/ps.c (main): New option -b, which sets...
13222         (broken_flags): New variable.
13223         (ps_printer::~ps_printer): Incorporate the setup section in the
13224         prolog if (broken_flags & NO_SETUP_SECTION).
13225         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
13226         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
13227         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
13228         ps_printer::print_needed_font_comment,
13229         ps_printer::print_supplied_font_comment,
13230         ps_printer::print_include_font_comments,
13231         ps_printer::lookup_doc_font, ps_printer::download_fonts,
13232         ps_printer::read_download_file, read_document_fonts, add_font,
13233         skip_line, parse_fonts_arg, document_font::document_font,
13234         document_font::~document_font, document_font::download,
13235         ps_output::include_file):  Deleted.
13236         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
13237         rather than %!PS-Adobe-2.0.  Make calls to
13238         resource_manager::need_font for each font that we used. Replace
13239         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
13240         print_supplied_font_comment, print_needed_font_comment by call to
13241         resource_manager::print_header_comments. Output %%Orientation
13242         comment. Output %%Requirements: numcopies comment if ncopies > 1.
13243         Don't output the prolog directly.  Instead call
13244         resource_manager::output_prolog.  Only define #copies when ncopies
13245         > 1.  Delete calls to print_include_font_comments  and
13246         download_fonts.  Add call to resource_manager::document_setup.
13247         (ps_printer::do_file): Call resource_manager::import_file instead
13248         of including it ourselves.
13249         (ps_printer::do_import): Likewise.  Also don't call
13250         merge_import_fonts. Push userdict on the dictionary stack before
13251         and pop it afterwards.
13252         Move declaration of ps_output into ps.h.
13253         * ps/psrm.c: New file implementing resource_manager class.
13254         * ps/ps.h: New file declaring ps_output and resource_manager
13255         classes.
13256         * ps/devps/zapfdr.ps:
13257         * ps/devps/symbolsl.ps:
13258         * ps/devps/prologue:  Use 3.0 conventions.
13259         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
13260         Add default definition of BROKEN_SPOOLER_FLAGS.
13261         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
13262         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
13264 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
13266         * etc/grog.pl: New file.
13267         * Makefile (GROG): New variable.
13268         Add GROG to SUBFLAGS.
13269         * etc/Makefile (GROG): New variable.
13270         (install.nobin): Install $(GROG) rather than grog.sh.
13272 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
13274         * eqn/special.c (special_box::compute_metrics): Make the input and
13275         output strings the same.  Get the new height and depth from the
13276         predefined height and depth registers.  Also make subscript kern
13277         and skew available.
13278         (special_box::compute_subscript_kern, special_box::compute_skew):
13279         New functions.
13281         * eqn/box.c (pointer_box::compute_skew,
13282         simple_box::compute_metrics, box::top_level)
13283         * eqn/text.c (prime_box::compute_metrics,
13284         prime_box::comput_subscript_kern)
13285         * eqn/limit.c (limit_box::compute_metrics):
13286         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
13287         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
13288         negative numbers in `nr' requests with a leading 0.
13290 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
13292         * eqn/special.c: New file.
13293         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
13294         Add new rule for simple.
13295         * eqn/lex.c (token_table): Add SPECIAL.
13296         * eqn/box.h: Declare make_special_box.
13297         * eqn/Makefile: Add special.[co].
13299 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
13301         * ps/devps/prologue: Possibly set packing to true while defining.
13302         Create grops dictionary here.  Initialize local variables before
13303         defining procedures.
13304         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
13305         the dictionary stack. Set strokeadjust and overprint to false if
13306         the relevant operators are defined.
13307         (PEND): New procedure.
13308         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
13309         prologue.  Do everything else in the setup section.
13310         (ps_printer::do_import): Just call PBEGIN and PEND around the
13311         picture. Also push userdict before, and pop it afterwards.
13313 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
13315         * troff/node.c (bracket_node::tprint): Brackets were being printed
13316         1m too low.
13318         * macros/tmac.an (SH, SS): Set fill mode.
13320 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
13322         * troff/div.c (top_level_diversion::begin_page): Set
13323         high_water_mark to 0.
13325 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
13327         * man/mdate.sh: New file.
13328         * man/mdate.c: Deleted.
13329         * man/Makefile: Use mdate.sh instead of mdate.
13330         (mdate): Deleted.
13332         * eqn/lex.c (do_gsize): Supply missing argument to error message.
13334 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
13336         * man/mdate.c: New file.
13337         * man/*.man: Replace modification date by @MDATE@.
13338         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
13339         (mdate): New target.
13341         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
13342         Remove illegal input characters.
13344 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
13346         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
13348 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
13350         * troff/div.c (begin_page): Change behaviour when
13351         !first_page_begun and !break_flag.
13353         * troff/input.c (do_name_test): Return 0 if argument is empty.
13355         * troff/input.c (read_long_escape_name): Require closing ] to be
13356         at same input level as opening [.
13358         * troff/input.c (read_increment_and_escape_name): New function.
13359         (get_copy, process_input_stack): Use this for \n.
13361 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
13363         * troff/div.c (top_level_diversion::begin_page): Ignore the
13364         current value of page_number if !first_page_begun.
13366         * groff.c (main): Fix declaration of buf.
13368         * troff/input.c (do_name_test): New function.
13369         (token::next): Implement \A.
13370         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
13371         (token::description, token::add_to_node_list, token::process):
13372         Handle TOKEN_ESCAPE.
13373         * troff/token.h: New token TOKEN_ESCAPE.
13375 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
13377         * pic/main.c (do_picture): Allow space before and after filename
13378         following `<'.  Check that the filename is not empty.
13380 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
13382         * Version 1.01 released. 
13384         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
13386         * dvi/tmac.dvi: ftr HR to H.
13388         * macros/tmac.e: Round up computation of $r.
13390         * xditview/tmac.X:  Don't give up completely in compatibility mode.
13391         Use \n(.s instead of \n[.s].
13393         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
13394         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
13395         Add u to factors inside \s[...]. Rename frac to dvi-frac.
13396         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
13397         short names in the char definitions.
13399         * ps/tmac.ps: Don't give up completely in compatibility mode.
13400         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
13401         quote in front of \n(.s. Add u to factors inside \s[...].
13403 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
13405         * tty/tmac.tty: Call the nroff request.
13407         * macros/tmac.e ((x, )x):  Better definitions that work properly
13408         in a diversion.
13409         (@0, @1): Helper macros for (x.
13411         * macros/tmac.e ($s, hl): Use \l rather than \D.
13413         * tty/tmac.tty: Make it work better in compatibility mode.
13414         (pchar): Rename to tty-char.
13416         * macros/tmac.e (@E): New macro.
13417         (r, i, b, rb, bi): Use @E.
13419         * macros/tmac.e (@F): Don't use (;...) syntax.
13421         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
13422         it was modified for groff.
13424         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
13426         * macros/tmac.e (<., .>): Removed.
13427         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
13429         * macros/tmac.e: Remove check that groff is being used.
13431         * macros/tmac.e (@C): Change families only if using groff; turn
13432         compatibility mode off while changing familes. Save compatibility
13433         mode before changing families and restore it afterwards.
13435         * macros/tmac.e (@h): Remove test for offset + line length.
13437         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
13438         (lo, th, ac): Define to call @S instead of using als.
13440         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
13441         the ratio of the vertical spacing to the point size in units
13442         expressed as a percentage.  Use these instead of $10r and $10R,
13443         Delete $10r and $10R.
13445         * lib/font.c (font::load): In default computation of space_width,
13446         divide by sizescale.  Use scale_round.
13448         * macros/tmac.an (TP): Don't call `nf'.
13449         (an-do-tag): Don't call `fi'.
13451 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
13453         * troff/input.c (process_input_stack): Handle the case where
13454         spaces at the beginning of an input line are followed by a
13455         newline.
13457 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
13459         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
13460         * groff.sh: Use pic -x with the dvi device.
13462         * dvi/devdvi/FontMakefile (H): Don't use -s.
13464         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
13465         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
13466         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
13467         in FONTS.
13469 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
13471         * ps/psfig.diff: New file.
13472         * ps/tmac.psfig: New file.
13474 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
13476         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
13477         (]-): Don't call ref*do-tl.
13479         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
13481         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
13482         (fn@do-FS): Rename to fn*do-FS.
13484         * troff/input.c (transparent_translate): New function.
13485         (process_input_stack): Apply transparent_translate before calling
13486         diversion::transparent_output(unsigned char).
13488 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
13490         * troff/input.c (do_define_macro): Define the macro before calling
13491         skip_line.
13493         * xditview/Makefile: Add DEVICES variable.  Change install target
13494         to use this.
13496 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
13498         * groff.c (run_commands): Handle the possibility that there are
13499         child processes other than those forked by us.
13501 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
13503         * lib/string.c (string::append): New function.
13504         * lib/stringclass.h: Declare it.
13506 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
13508         * eqn/main.c (main): New option -N which sets
13509         no_newline_in_delim_flag. 
13510         (do_file): If no_newline_in_delim_flag is set don't allow newlines
13511         in delimiters.
13512         * groff.c (main): Pass -N on to eqn.
13513         (help, synopsis): Mention -N.
13514         * groff.sh: Implement -N.
13516 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
13518         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
13519         (]-): Call ref*do-tl if ref*need-tl is non-zero.
13520         (XP): Allow as initializer.
13522 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
13524         * troff/env.c (environment::wrap_up_field): If field_spaces are
13525         non-zero and we have a current_tab, subtract padding from
13526         tab_distance.  If this makes tab_distance <= 0, use the next tab
13527         stop instead.  If there isn't any next tab or it's a left tab,
13528         wrap up the current tab.
13529         (environment::start_field): Initialize tab_precedes_field.
13530         (environment::wrap_up_tab): If there's a current field, update
13531         pre_field_width, field_distance and tab_precedes_field.
13532         * troff/env.h (environment::tab_precedes_field): New member.
13534 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
13536         * ps/ps.c (ps_printer::do_file): New function.
13537         (ps_printer::special): Bind to `file' special.
13538         (ps_printer::do_exec): Set ndefined_styles to 0.
13540 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
13542         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
13543         Avoid stripping first character from the start of unrecognized
13544         escapes.  Use lex_error instead of error to report errors.
13545         * eqn/lex.c (get_token): Rework handling of escapes.
13546         (lex_error): Move declaration into...
13547         * eqn/eqn.h.
13549         * xditview/xditview.c (main): Make -page option work.
13551         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
13553 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
13555         * macros/tmac.s (B2): Correct size of box.
13557 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
13559         * macros/tmac.s (B2): Postpone drawing the box until in the
13560         top-level diversion.
13562         * tty/tmac.tty: Add font translations for C, CR, CW.
13564         * groff.c (synopsis, help): Document -i.
13565         * groff.sh: Implement -i.
13567         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
13568         Simplify the construction of SN.
13570         * troff/number.c (parse_term): Give `|' a higher precedence.
13571         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
13572         accordingly.
13574         * macros/tmac.s (B2): Use par@finish instead of par@reset.
13576 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
13578         * lib/string.c (string::move): New function.
13579         * lib/stringclass.h: Declare it.
13581 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
13583         * troff/env.c (distribute_space): Add optional argument
13584         `force_forward'.
13585         (environment::wrap_up_field): Call distribute_space with
13586         `force_forward' argument of 1.
13588 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
13590         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
13591         Inline it.  Move reallocation into...
13592         (string::grow1): New function.
13593         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
13594         dependencies to include library header files.
13595         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
13597 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
13599         * macros/tmac.s (@NH): Use the same number registers than -ms does
13600         for the heading level counters.  Use the same string that -ms does
13601         for the number for this heading.
13603 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
13605         * lib/new.c (operator new): Cast result of malloc to char *.
13607         * troff/input.c (spring_trap, lookup_request): Add assert that nm
13608         is not null.
13610 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
13612         * groff.c (main): Support -i.
13614 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
13616         * pic/pic.h: Include <osfcn.h>.
13618         * ps/ps.c: Add declaration of mktemp.
13620         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
13621         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
13622         argument as union wait *.
13623         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
13624         argument to union wait *.
13626 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
13628         * tty/tmac.tty: Add definition of \(co.
13630         * pic/object.c (make_arc): Only increase radius when radius
13631         strictly less than d.
13632         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
13633         more than once.
13635         * troff/env.c (environment::environment(symbol),
13636         environment::environment(const environment *)):  Initialize
13637         input_trap_count.
13639 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
13641         * tbl/main.c (main): Add exit(0).
13643         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
13645         * pic/main.c (main):
13646         * eqn/main.c (main):
13647         * tbl/main.c (main):
13648         * etc/soelim.c (main):
13649         * driver/printer.c (printer::~printer):
13650         * troff/node.c (real_output_file::~real_output_file,
13651         real_output_file::flush):  Check for errors on stdout.
13653         * most files: Add 1991 to copyright notice.
13655         * macros/tmac.s: Don't test \n(.x and \n(.y.
13657         * troff/input.c (token::next): Rename `escape_char' label to
13658         `handle_escape_char' and `normal_char' label to
13659         `handle_normal_char'.
13661 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
13663         * groff.c (main, synopsis, help): Support -a option.
13664         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
13665         to trflags while parsing options.
13667 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
13669         * troff/number.c (parse_term): With `m', `M' and `n' scale
13670         indicators, convert scale factor to hunits before scaling.
13672 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
13674         * lib/font.c (scale_round): Better test for overflow when n is
13675         negative.
13677 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
13679         * tbl/main.c (process_format): Add second argument of type
13680         options*. Change callers.  Allow opt->tab_char as well as '\t'
13681         between format items.
13683 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
13685         * macros/tmac.an (PD): With no arguments, make sure register PD is
13686         at least \n[.V].
13687         (TH): Call PD with no argument, instead of setting register PD
13688         directly.
13690 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
13692         * Version 1.00 released.
13694 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
13696         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
13698         * dvi/devdvi/DESC: Mount CW instead of CR.
13700         * dvi/tmac.dvi: Add definition of \(tm.
13702         * dvi/devdvi/texsy.map: Add lh, and rh.
13703         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
13704         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
13706         * dvi/devdvi/FontMakefile: Generate H from cmss10.
13707         * dvi/devdvi/Makefile: Install H.
13708         * dvi/devdvi/H: New file.
13710 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
13712         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
13713         be 0.
13715 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
13717         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
13719         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
13721         * macros/tmac.s (@EN): Handle the case where the equation is empty
13722         but the label is not.
13724 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
13726         * troff/groff.h: New warning category WARN_SPACE.
13727         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
13728         WARN_SPACE to warning_table.
13729         (interpolate_macro): Give a warning of type WARN_SPACE if the name
13730         is longer than two characters and is not defined, but the first
13731         two characters do make a defined name.
13733         * PROBLEMS: New file.
13735         * CHANGES: New file.
13736         * README-0.6, README-1.00: Deleted.
13738         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
13739         * xditview/devX75/Makefile: Make devX75-12.
13740         * xditview/devX100/Makefile: Make devX100-12.
13742         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
13743         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
13745 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
13747         * README-0.7: Rename to README-1.00.
13749         * macros/tmac.pic: New file.
13750         * macros/Makefile (install.nobin): Install tmac.pic.
13752 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
13754         * troff/env.c (hyphen_word): Correct the test for whether the
13755         token is a hyphen.  Reset npos to 0.
13757         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
13759 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
13761         * macros/tmac.s (ds*common-end): Call par*reset.
13762         (PE): Likewise.
13763         (par@reset-indent): Deleted.
13765         * macros/tmac.s (@IP): Divert the label.
13767 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
13769         * xditview/draw.c (setGC): Use a line width of .1m rather than
13770         .04m by default; round rather than truncate value.
13772         * tbl/table.c (class empty_entry): New class.
13773         (empty_entry::empty_entry, empty_entry::line_type): New functions.
13774         (table::add_entry): Represent empty entries by objects of type
13775         empty_entry.
13776         (table_entry::line_type): Return -1.
13777         (table::determine_row_type): Ignore entries with line_type 0.
13778         Treat type -1 as non-lines.
13780 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
13782         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
13783         macros/tmac.s: Rename \(-d to \(Sd.
13785 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
13787         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
13788         * xditview/libXdvi/DviChar.c: Likewise.
13789         * dvi/devdvi/texsy.map: Add `<<', `>>'.
13791 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
13793         * troff/div.c (top_level_diversion::begin_page): Call
13794         init_output() if the_output is 0.
13796 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
13798         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
13799         ESCAPE_c.
13800         (get_copy): Turn \E into ESCAPE_E.
13801         (token::process, asciify): Handle ESCAPE_E.
13803         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
13804         (RD): New macro.
13805         (DS): Implement `.DS R'.
13807 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
13809         * macros/tmac.s (FS): New macro.
13811         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
13813         * macros/tmac.s (cov*tl-init): Remove after first execution
13814         instead of aliasing to @nop.  Call top of page macro explicitly
13815         instead of setting trap; call @init first.  Set pg@top as top of
13816         page macro.
13817         (cov*auto-init): Deleted.  Set cov*tl-init instead of
13818         cov*auto-init as top of page trap. 
13819         (TL, LP): Do a break instead of calling cov*tl-init.
13820         (cov*print): With RP format but no TL, alias FS and FE to @FS and
13821         @FE; in this case also give a warning and always start another
13822         page. No need to set pg@top here.
13823         (cov*tl-init): Rename to cov*first-page-init.
13825         * macros/tmac.s (RP): Do `.pn 0'.
13826         (cov*tl-init): With RP format don't do `.pn 0'.
13828         * macros/tmac.s (pg@cs-top): Set no space mode.
13830         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
13831         (cov*ab-init): Alias TL, AU and AI to these.
13833 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
13835         * macros/tmac.s (@EQ): Move the space before the equation into @EN
13836         (@EN): Do nothing unless \n[dl] is > 0.
13838 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
13840         * pic/object.c (ellipse_object::radius): New function.
13842         * VERSION: Change version to 0.7.
13844         * tbl/table.c (block_entry::do_divert): Declare return type as
13845         void.
13846         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
13848 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
13850         * troff/column.c: New file.
13851         * troff/Makefile: Corresponding changes.
13853         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
13854         Friend of vunits.
13856         * troff/div.c (top_level_diversion::space): If the space causes
13857         the first-page transition and springs a trap, truncate the space
13858         to 0.
13860 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
13862         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
13863         the document.
13865         * pic/troff.c (troff_output::line_thickness,
13866         troff_output::set_fill): Do a horizontal motion to compensate for
13867         the width of the \D escape sequence.
13869 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
13871         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
13872         (not X75).
13874         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
13875         to printf.
13877         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
13878         Supply empty definition.
13879         (text_entry::simple_print, simple_text_entry::simple_print):
13880         Delete declarations.
13881         (table::add_entry): Represent empty entries by objects of type
13882         `simple_entry'.
13884 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
13886         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
13888         * tbl/table.c (left_text_entry::add_tab): New function.
13890         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
13891         initialize like LP.
13893 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
13895         * troff/env.c (environment::start_field): Give an error message if
13896         there is no next tab.
13898 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
13900         * troff/env.c (hyphenate): Skip initial elements with zero
13901         hyphenation code.
13903         * macros/tmac.s (par@init): Keep VS in points rather than units.
13905 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
13907         * pic/main.c (main): Implement `-c' option.
13908         * pic/output.h: Declare make_tpic_output().
13909         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
13910         protected.
13911         (tpic_output): New class.
13912         (tpic_output::tpic_output, tpic_output::set_pen_size,
13913         tpic_output::command, make_tpic_output): New functions.
13915 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
13917         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
13918         if they're not already defined.
13919         * tbl/table.c (init_output): Don't test \n(.g.
13921         * troff/input.c (do_if_request): Delete `g' condition. Recognize
13922         `d', `r' and `c' conditions even in compatibility mode.
13924 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
13926         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
13927         box.
13929 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
13931         * troff/env.h (environment::prev_line_interrupted): New member.
13932         (environment::get_prev_line_interrupted): New function.
13933         * troff/env.c (environment::newline): Set prev_line_interrupted.
13934         (environment::environment(const environment *),
13935         environment::environment(symbol)): Initialize
13936         prev_line_interrupted.
13937         * troff/input.c (process_input_stack): Don't give special
13938         treatment to space and newline at the beginning of the line if the
13939         previous line was interrupted.
13941 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
13943         * eqn/eqn.y: Disallow PRIME by itself.
13944         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
13945         PRIME.
13946         (def_table): Remove definition of '.  Define prime to be `.
13948         * eqn/eqn.y: Split off part of rule `script' into a new rule
13949         `nonsup'.
13951 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
13953         * macros/tmac.s ({, }): New string aliases.
13955 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
13957         * README-0.7: New file.
13959 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
13961         * macros/tmac.s: New file.
13962         * man/groff_ms.man: New file.
13963         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
13964         * Makefile.bd: Similarily.
13965         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
13966         definition of TMAC_S.
13967         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
13968         * macros/TODO: New file.
13970 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
13972         * troff/env.c (right_justify): New function.
13973         (init_env_requests): Bind this to request "rj".
13974         (center_lines): Set right_justify_lines to 0. If we get a bad
13975         integer, center 1 line.
13976         (environment::environment(symbol), environment::environment(const
13977         environment *)): Initialize right_justify_lines.
13978         (environment::get_right_justify_lines): New function.
13979         (init_env_requests): Bind this to number_register ".rj".
13981         * troff/env.c (environment::choose_breakpoint): Implement
13982         hyphenation_margin and hyphenation_space.
13983         (environment::get_hyphenation_space,
13984         environment::get_hyphenation_margin): New functions.
13985         (init_env_requests): Bind these to .hys and .hym.
13986         (hyphenation_space_request, hyphenation_margin_request): New
13987         functions
13988         (init_env_requests): Bind these to hys and hym.
13989         (environment::environment(symbol), environment::environment(const
13990         environment *)): Initialize hyphenation_margin and
13991         hyphenation_space.
13992         * troff/env.h: Corresponding changes to class environment.
13994 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
13996         * troff/div.c (blank_line): Always do a break.
13998         * eqn/box.c (do_text): Turn off escapes while appending text to
13999         string.
14001 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
14003         * troff/input.c (while_break_request, while_continue_request): New
14004         functions.
14005         (init_input_requests): Bind these to "break" and "continue".
14006         (while_depth, while_break_flag): New variables.
14007         (while_request): Update while_depth.  Break out of loop if
14008         while_break_flag is set.
14010 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
14012         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
14013         rather than 0.
14015 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
14017         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
14019         * stringify: New file.
14020         * Makefile (groff.o): Use stringify.
14022         * xditview/tmac.X: Remove definition of \(rn.
14023         * xditview/libXdvi/DviChar.c: Remove radicalex from
14024         Adobe_symbol_map.
14026 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
14028         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
14029         (alphabetic_block_entry::alphabetic_block_entry,
14030         alphabetic_block_entry::divert, alphabetic_block_entry::print):
14031         New functions.
14032         (block_entry::divert): Split off body into ...
14033         (block_entry::do_divert): If the block is alphabetic, subtract 2n
14034         from the line length; also update the span width to dl+2n, and the
14035         alphabetic span width to dl.
14037         * driver/input.c (do_file):  While reading argument to D command,
14038         when expanding buffer, multiply szp by sizeof(int) rather than 2
14039         in the argument to memcpy.
14041         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
14042         width of alphabetic columns.
14044 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
14046         * troff/node.c (lookup_family): Supply second argument to lookup.
14048         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
14049         search, return immediately if v is 0.
14051         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
14052         (troff_output::start_picture): Set this reg.
14053         (troff_output::end_picture): Remove this reg
14054         * eqn/box.c (box::extra_space): Don't produce `\x's if
14055         EQN_NO_EXTRA_SPACE_REG is defined.
14057         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
14058         * eqn/text.c (split_text): Map ' to \(fm when it's the first
14059         character.
14061 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
14063         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
14064         requests.
14066         * troff/div.c (top_level_diversion::top_level_diversion):
14067         Initialize page_number to 0.
14069 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
14071         * groff/troff (environment::environment(const environment *)):
14072         Initialize name to e->name, rather than "anonymous".
14074 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
14076         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
14077         requested_page.  Split middle part into ...
14078         (FindPage): New function.
14079         (SetValues): If we don't yet know the last page, and the requested
14080         page is greater than the current page, call FindPage.
14081         Update the font_map_string before doing this.
14083         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
14084         Translate \(lh and \(rh into left and right double arrows.
14086         * troff/node.c (class hyphen_inhibitor_node): New class.
14087         (hyphen_inhibitor_node::hyphen_inhibitor_node,
14088         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
14089         hyphen_inhibitor_node::type,
14090         hyphen_inhibitor_node::get_hyphenation_type): New functions.
14091         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
14092         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
14093         word.
14095 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
14097         * troff/node.h (dummy_node::get_hyphenation_type,
14098         transparent_dummy_node::get_hyphenation_type):  Declare them.
14099         * troff/node.c: (dummy_node::get_hyphenation_type,
14100         transparent_dummy_node::get_hyphenation_type): New functions.
14102 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
14104         * xditview/libXdvi/draw.c: If M_PI not defined after including
14105         math.h, then define it.
14107         * xditview/Makefile: Add definition of AR. Pass it to the submake
14108         in libXdvi.
14109         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
14111 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
14113         * troff/dictionary.h (object_dictionary::alias): Declare return
14114         value as int.
14115         * troff/dictionary.c (object_dictionary::alias): Return non-zero
14116         if the old name was defined.
14117         * troff/input.c (alias_macro): Give a warning if the old name was
14118         not defined.
14119         * troff/reg.c (alias_reg): Likewise.
14121 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
14123         * troff/input.c (token::next): Delete implementation of \R.
14125         * macros/Makefile: Strip comments from tmac.e while installing it.
14127         * troff/input.c: New variable `nroff_mode'.
14128         (troff_request, nroff_request): New functions.
14129         (init_input_requests): Bind `troff' and `nroff' to troff_request
14130         and nroff_request.
14131         (do_if_request): Compute results of t and n conditions from
14132         nroff_mode.
14134         * text/text.c (split_text): Fix typo in >=.
14136         * eqn/lex.c: Add definition of `==' to def_table.
14138 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
14140         * pic/tex.c (tex_output::start_picture): Change the definitions of
14141         \graph and \graphtemp so that they work properly with Plain TeX.
14143         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
14144         argument to `ar' is not less than the first.
14146         * pic/pic.y: Allow a comma between elements of the variable list
14147         in the argument to `reset'.
14149         * pic/object.c (arc_object::arc_object): Fix computation of
14150         radius.
14152         * eqn/main.c (main): Add exit(0).
14154 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
14156         * troff/div.c (begin_page): Test no_space_mode after doing the
14157         break, but still push the page ejector cookie before doing the
14158         break.  Also set the next page number after doing the break.
14159         
14160         * xditview/xditview.c (NewFile): Don't set the title and icon name
14161         if this is the first file and its name is `-'.
14162         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
14163         the X75 and X100 devices.
14164         (main): If a device has the XT_OPTION flag set and there's exactly
14165         one file argument, pass the driver -xrm and -title options to set
14166         the icon name and window title to the name of the file.
14168         * troff/env.c (environment_switch): If there was an argument but
14169         it wasn't a valid number or name, then pop an environment but
14170         don't give an error message on underflow.
14172         * troff/number.c (start_number): Correct spelling in error message.
14174         * troff/input.c (token::delimiter): Don't print an error message
14175         if err is false.
14177         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
14178         ParseDrawFunction if dw->display_enable is true.
14180 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
14182         * pic/pic.y: Parse text positioning like normal attributes, so as
14183         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
14184         positioning attribute.
14186 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
14188         * tbl/main.c (process_data): When in state START while reading a
14189         text block, don't change to state MIDDLE if c is a newline.
14191 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
14193         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
14194         so as to avoid shadowing parameter.
14196 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
14198         * tbl/table.c (trim_space): Deleted.
14199         (table::add_entry): Don't call trim_space.
14201 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
14203         * VERSION: Change version to 0.6.
14205         * troff/number.c (parse_expr): Make == work.
14207 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
14209         * man/grog.man: New file.
14210         * man/Makefile: Add grog.n to MAN1PAGES.
14211         * etc/grog.sh: New file.
14212         * etc/Makefile: Install grog.sh as grog.
14214 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
14216         * troff/input.c (token::next): Implement \E.
14218 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
14220         * xditview/tmac.X: Change font translations to match tmac.ps.
14222         * troff/input.c (non_empty_name_warning): Don't give a warning if
14223         `\{' terminates the name.
14225 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
14227         * ps/devps/symbol.diff: New file.
14228         * ps/devps/FontMakefile: Mention symbol.diff.
14230 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
14232         * troff/node.c (font_position): Use get_long_name to read the
14233         external_name.
14235         * troff/env.c (environment_switch): If we get a number that's < 0
14236         or >= NENVIRONMENTS, treat it like a name.
14237         Change NENVIRONMENTS to 10.
14239         * troff/groff.h: Remove definition of FONTS_MAX.
14240         * troff/node.h (class font_family): Make map a pointer instead of
14241         an array. Add a map_size member. Make it a class. Make nm const
14242         and public. Make invalidate_fontno a friend.
14243         * troff/node.c: Define font_table_size. Make font_info a pointer
14244         rather than an array.
14245         (class troff_output_file): Allocate font_position dynamically. Add
14246         nfont_positions member.
14247         (troff_output_file::set_font): Grow font_position if necessary.
14248         (troff_output_file::~troff_output_file): Delete font_position.
14249         (troff_output_file::troff_output_file): Allocate font_position.
14250         (grow_font_table): New function.
14251         (troff_output_file::really_begin_page,
14252         troff_output_file:really_copy_page): Use nfont_positions rather
14253         than FONTS_MAX.
14254         (mount_font_no_translate, mount_style): Call grow_font_table if
14255         necessary.
14256         (font_family::font_family): Allocate map.
14257         (font_family::make_definite): Grow map if necessary. Use
14258         font_table_size instead of FONTS_MAX.
14259         (font_family::~font_family): New function.
14260         (invalidate_fontno): Use font_family::map_size.
14261         (get_fontno, env_space_width, env_half_narrow_space_width,
14262         env_narrow_space_width, symbol_fotno, is_good_fontno,
14263         get_bold_fontno, make_glyph_node): Use font_table_size rather than
14264         FONTS_MAX.
14265         (next_available_font_position): Never return 0.
14267 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
14269         * ps/tmac.ps: Add font translations for compatibility with dpost.
14271 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
14273         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
14274         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
14275         Move definitions baseline_sep, shift_down, column_sep,
14276         matrix_side_sep into...
14277         * eqn/box.c: Add them to param_table.
14278         * eqn/pbox.h: Add declarations to pbox.h.
14280         * troff/input.c (set_string): Cast value to unsigned char *.
14282         * troff/token.h (process_input_stack): Declare it static before
14283         declaring it a friend.
14285 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
14287         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
14288         and bottom.
14289         * dvi/devdvi/EX: Regenerate.
14291         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
14292         transparent.
14294 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
14296         * eqn/lex.c: In defaults_table, make definition of `dot' call
14297         `dot_def'.  Don't explicitly make it roman.  Similarily for other
14298         accents.
14300         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
14301         argument.
14302         (for_input::get, for_input::peek): Use this.
14303         (do_for): Add by_is_multiplicative argument.
14304         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
14305         Change semantic value of optional_by to be a double plus a flag
14306         saying whethet the by clause is multiplicative.
14308         * eqn/lex.c (get_delimited_text): Remember location of start of
14309         definition.  Improve error handling when EOF is encountered.
14311         * lib/font.h: Rename handle_x_command to
14312         handle_unknown_font_command.
14313         * lib/font.c (font::load): Call handle_unknown_font_command for
14314         any unknown command in the font description file.  Don't call
14315         handle_x_command. Include the name of the command in the argv.
14316         Improve message for unknown command after kernpairs or charset
14317         command.
14318         * ps/ps.c (ps_font::handle_x_command): Rename to
14319         handle_unknown_font_command.  Remove message about `x download'
14320         command.  Give error message for wrong number of arguments.
14321         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
14322         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
14323         handle_unknown_font_command. Give an error message for wrong
14324         number of arguments.  Rename design_size to designsize.
14325         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
14326         checksum', `designsize' instead of `design_size'.
14328 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
14330         * eqn/*.[chy]: Change underaccent to uaccent.
14332         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
14333         give it the same precedence as ACCENT.
14334         * eqn/other.c (make_underaccent_box): New function.
14335         * eqn/box.h: Declare it.
14336         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
14337         def_table.
14339 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
14341         * pic/pic.y (reset_all): New function. Called in rule for RESET.
14342         (parse_init): Call reset_all.
14343         (define_variable): When defining scale reset only those
14344         pre-defined variables that are scaled.
14345         (defaults_table): Add `scale' as non-scaled value.
14347         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
14348         together with the text; allow any number of positioning words;
14349         allow center as a positioning word.
14351         * pic/object.c (output::compute_scale): Get picture maximum height
14352         and width from variables called maxpswid and maxpsht.
14353         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
14355 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
14357         * pic/object.c (object_spec::make_text): Multiply textht by number
14358         of text items.
14360         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
14361         occur.
14362         (do_sprintf): New function.
14363         (pic.gperf): Add sprintf token.
14364         (text, sprintf): New rules.
14366         * pic/pic.y: `rand()' with no arguments returns a random number
14367         in the range [0,1).
14369         * pic/pic.y: Allow a bare expression to be an attribute: change
14370         precedences to support this.  Change optional_ordinal rule to
14371         optional_ordinal_last to avoid reduce/reduce conflict.
14372         * pic/object.c (object_spec::object_spec): Initialize direction.
14374         * pic/pic.y: Implement ^ operator meaning exponentiation.
14376         * troff/node.h: Add default argument to mount_font.
14377         * troff/node.c (font_position): Read an optional third argument
14378         giving the external_name.
14379         (mount_font): Add optional argument giving the external_name.
14380         (mount_font_not_translate): Have additional argument giving
14381         external name.  Use this name to load the font.  Pass both names
14382         to font_info::font_info.
14383         (font_info::font_info): Have additional argument giving
14384         external_name.
14385         (class tfont): New member external_name.
14386         (font_info::get_tfont): Use external name to construct tfont_spec.
14388 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
14390         * eqn/lex.c (init_table): Add argument giving device.  Define
14391         name of device to be "1".
14392         (do_ifdef): Counts as true if the argument has been defined with
14393         `define'.
14394         * eqn/main.c (main): Call init_table with device argument. Make
14395         device local to main.
14396         * eqn/eqn.h: Change declaration of init_table. Remove declaration
14397         of device.
14399         * pic/lex.c (get_delimited): Allow text to be delimited by
14400         matching {}s.  Don't recognize ending delimiter within a string.
14402         * troff/input.c (get_delim_name): New function.
14403         (token::next): Implement \C.
14405         * lib/font.c (font::load): Grok ---.  Add an alias for each
14406         character based on its code.
14407         (font::get_code_width): Deleted.
14408         * lib/font.h (class font): Declare font::number_to_index().
14409         Remove declaration of font::get_code_width.
14410         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
14411         to indices of named characters.
14412         (font::number_to_index): New function.
14413         * troff/input.c (font::number_to_index): New function.
14414         (get_charinfo_by_number, charinfo::get_number,
14415         charinfo::set_number): New functions.
14416         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
14417         (token::process, token::description, token::get_char,
14418         token::add_to_node_list, token::operator==): Handle
14419         TOKEN_NUMBERED_CHAR.
14420         * troff/charinfo.h: Declare get_charinfo_by_number,
14421         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
14422         charinfo class.
14423         (charinfo::numbered): New function.
14424         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
14425         * troff/env.h (class environment): Remove declaration of ...
14426         * troff/env.c (environment::make_numbered_char_node): Deleted.
14427         * troff/node.c (make_numbered_node): Deleted.
14428         (class numbered_glyph_node): Remove.
14429         (troff_output_file::put_char_width, troff_output_file::put_char):
14430         Handle numbered chars.
14431         (troff_output_file::numbered_char): Removed.
14432         (tfont::get_code_width): Removed.
14433         (make_glyph_node): Don't search special fonts for numbered
14434         characters.
14435         * troff/node.h: Remove declaration of make_numbered_node.
14436         * driver/input.c (do_file): Handle N command.
14437         * driver/printer.h: Add declaration of ...
14438         * driver/printer.c (printer::set_numbered_char): New function.
14439         * dvi/tfmtodit.c (main): Generate unnamed entries.
14440         * ps/devps/afmtodit: Likewise.
14441         * xditview/xtotroff.c (MapFont): Likewise.
14442         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
14444         * tbl/main.c (process_format): If multiple widths are specified
14445         for a column but all the widths are the same, don't give an error
14446         message.
14448         * tbl/table.c (table::do_row): If the current row is all lines and
14449         the stuff doesn't contains a line, mark the top of the row after
14450         printing stuff before the row.  If the current row is not all
14451         lines and the stuff doesn't contain a line, don't unnecessarily
14452         mark the top of the row before printing the stuff.
14453         
14454 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
14456         * troff/groff.h: Remove MAX_PATH.
14457         * troff/input.c (open_file): Dynamically allocate space for the
14458         path.
14459         (open_mac_file, process_macro_file): Corresponding changes.
14461 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
14463         * troff/node.h (class output_file): Make copy_file pure.  Add
14464         vspace method ifdef COLUMN. Add is_printing method.
14465         * troff/node.c: Add class printing_reg. Add class
14466         real_output_file. Derive other output_file classes from
14467         real_output_file; in these classes rename begin_page to
14468         really_begin_page, print_line to really_print_line, copy_file to
14469         really_copy_file, transparent_char to really_transparent_char.
14470         Move output_file::flush to real_output_file. Add printing member
14471         to class output_file.
14472         * troff/div.h: Remove printing member from top_level_diversion.
14473         Add vspace member function to class diversion ifdef COLUMN. Add
14474         some declarations ifdef COLUMN.
14475         * troff/div.c (top_level_diversion::copy_file,
14476         top_level_diversion::transparent_output,
14477         top_level_diversion::output): Don't test printing member before
14478         output.
14479         * troff/input.c: Handle initial variable_space_request ifdef
14480         COLUMN.
14481         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
14482         but comment it out.
14484 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
14486         * troff/div.c (diversion::need): Make any space forced.  If we
14487         sprung a trap, set truncated_space to minus the distance to the
14488         trap and set needed_space to the amount that was needed.
14489         (top_level_diversion::space): A forced space turns no_space_mode
14490         off.
14491         (class constant_vunits_reg): New class.
14492         (init_div_requests): Implement number registers .trunc and .ne
14493         using constant_vunits_reg.
14494         (class truncated_space_reg): Deleted.   
14496         * troff/div.h: Don't have a no_space_mode member in diversion.
14497         Instead have it in top_level_diversion.
14498         * troff/div.c (diversion::diversion): Don't initialize
14499         no_space_mode.
14500         (top_level_diversion::top_level_diversion): Initialize
14501         no_space_mode.
14502         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
14503         (macro_diversion::output): Don't clear no_space_mode.
14505         * troff/input.c (diverted_space_node::reread): Don't call
14506         environment::do_break.  In fill mode, act like a blank line.
14507         (diverted_copy_file_node::reread): Don't call
14508         environment::do_break.
14510         * troff/div.c (blank_line): New function.
14511         * troff/div.h: Declare it.
14512         * troff/input.c (process_input_stack): Call it.
14514         * troff/div.c (truncated_space_reg::get_string): New function.
14515         (init_div_requests): Bind to .trunc.
14516         (space_request, top_level_diversion::space,
14517         top_level_diversion::output, macro_diversion::space,
14518         macro_diversion::output): Update truncated_space.
14519         (macro_diversion::output): Redo calculations when trap sprung.
14520         (macro_diversion::output, macro_diversion::space): No need for
14521         trap_flag.
14523         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
14524         after truncating post line spacing.
14526 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
14528         * ps/devps/prologue (MF, SF): Make them work even if setfont is
14529         defined as a procedure rather than as an operator.
14531 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
14533         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
14535 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
14537         * troff/div.c (top_level_diversion::output): Merge
14538         output_file::print_line and output_file::end_of_line member
14539         functions.
14540         * troff/div.h (class output_file):
14541         * troff/node.c (troff_output_file::print_line,
14542         troff_output_file::end_of_line, output_file::end_of_line,
14543         ascii_output_file::print_line, suppress_output_file::print_line):
14544         Corresponding changes.  
14546 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
14548         * troff/input.c (token::next): Don't give a warning for `\.'.
14550         * troff/env.c (environment::get_center_lines): New function.
14551         (init_env_requests): Bind number register .ce to it.
14552         * troff/env.h: Declare it.
14553         * tbl/table.c (table::init_output): Define reset macro to restore
14554         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
14555         Then do .ce 0.
14556         (table::print): If center option not given, then imply center
14557         option if SAVED_CENTER_REG > 0.
14559 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
14561         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
14562         Troff.ps from DOWNLOAD.
14563         
14564         * troff/Makefile: Change comment in DEFINES to avoid confusing
14565         System V make.
14567         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
14568         code.  Don't try to catch errors with stopped.
14569         (check_line_lengths): New function.
14570         * ps/devps/prologue (EXEC): Deleted.
14571         (EBEGIN, EEND): New procedures.
14573 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
14575         * troff/input.c: Include request.h before node.h.
14576         * troff/node.c: Likewise.
14577         * troff/env.c: Likewise.
14578         * troff/div.c: Likewise.
14579         * troff/node.h (class special_node): Store argument as a macro
14580         rather than a char *.
14581         * troff/node.c (special_node::special_node, special_node::copy):
14582         Grok this.
14583         (special_node::~special_node): Deleted.
14584         (special_node::tprint): Deleted.
14585         (special_node::tprint_start, special_node::tprint_end,
14586         special_node::tprint_char): New functions.
14587         (troff_output_file::special): Deleted.
14588         (troff_output_file::start_special, troff_output_file::end_special,
14589         troff_output_file::special_char): New functions.
14590         * troff/input.c (special_node::tprint): New function.
14591         (do_special): Use macro not char *.
14592         (do_transparent_macro): Deleted.
14593         (token::next): Don't call do_transparent_macro.
14595         * troff/input.c (token::next): Add 'Y' case.
14596         (do_transparent_macro): New function.
14597         * troff/node.c (troff_output_file::special): Handle newlines with
14598         argument using new continuation convention.
14599         * driver/input.c (get_string): Cope with continuation convention.
14600         (do_file): Don't call skip_line after calling get_string(1).
14601         * ps/ps.c (ps_printer::special, ps_printer::do_import,
14602         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
14603         arg.
14604         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
14605         with +.
14607 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
14609         * troff/input.c (asciify): By default, illegal input characters
14610         should return empty string.
14612         * troff/input.c (copy_file): Handle first page transition like title.
14613         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
14615         * troff/input.c (token::next): Improve error message for EOF after
14616         escape character.
14617         (input_char_description): New function.
14618         (get_char_for_escape_name): Use input_char_description.
14619         (token::next): Warn about unrecognized escape sequences.
14620         (warning_table): Add WARN_ESCAPE.
14621         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
14622         accordingly.
14624         * troff/token.h: Remove declaration of process_input_stack.
14626         * troff/input.c: Remove declaration of init_hyphen_requests.
14627         * troff/request.h: Correct spelling in declaration of same.
14629         * troff/input.c (token::next): Check whether escape_char is 0.
14631 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
14633         * groff.c (main, usage, help): Implement -P and -L options.
14634         * groff.sh: Likewise.
14636         * troff/input.c (token::next): Use some gotos to avoid code
14637         duplication.
14639         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
14640         Avoid calling symbol::symbol if name empty.
14642 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
14644         * troff/input.c (init_input_requests): Make \n(.x return the major
14645         version number and \n(.y return the minor version number.
14646         * troff/Makefile: Construct file majorminor.c defining
14647         major_version and minor_version automatically from ../VERSION.
14649         * troff/node.c (class glyph_node): Make operator new and operator
14650         delete public.
14651         (class ligature_node): Similarily.
14653         * troff/input.c (operator==(const macro &, const macro &)): New
14654         function.
14655         (non_interpreted_node::same): Use this.
14656         (string_iterator::string_iterator): Make macro& argument const.
14658         * troff/input.c (input_iterator::get): New function. Don't make
14659         asciify_macro or class non_interpreted_node friends of class
14660         input_iterator.
14661         (non_interpreted_node::interpret): Use input_iterator::get.
14662         (asciify_macro): Likewise.
14664         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
14665         ~non_interpreted_node): Deleted.
14666         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
14667         Deleted.
14669         * troff/symbol.h: Make all symbol member functions const.
14671         * lib/strtol.c: New file.
14672         * lib/Makefile: Add strtol.c.
14673         * Makefile: Define STRTOL as strtol.o to include strtol in
14674         libgroff.a.
14676 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
14678         * pic/troff.c (troff_output::simple_circle): Divide by scale.
14680 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
14682         * troff/input.c (do_special): Use input_level.
14684         * troff/token.h (TOKEN_BACKSPACE): New token.
14685         (token::backspace): New function.
14686         * troff/input.c (token::description, token::next, token::process):
14687         Grok TOKEN_BACKSPACE.
14688         (do_special): Turn TOKEN_BACKSPACE back into \b.
14690         * troff/token.h (token::leader): New function.
14691         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
14693         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
14695         * troff/input.c (do_special): Use token::description in error
14696         message.
14698 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
14700         * troff/input.c (decode_args): Combine quoted and
14701         quote_input_level variables. Make it a for (;;) loop.
14703         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
14705         * troff/input.c (read_long_escape_name): The test for whether to
14706         expand buffer was off by 1.
14707         (read_string): Similarily.
14709 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
14711         * troff/input.c: Use `const int' rather than `static const int'.
14713         * troff/div.h (diversion::copy_file): Declare as pure virtual.
14714         (macro_diversion::copy_file): New function.
14715         * troff/node.h: New class diverted_copy_file_node.
14716         * troff/node.c: Implement it.
14717         * troff/input.c (copy_file): Use diversion::copy_file. Handle
14718         first page transition by pushing a diverted_copy_file_node.
14719         * troff/input.c (token::next, process_input_stack): Don't handle
14720         COPY_FILE_REQUEST.
14722 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
14724         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
14725         whether space widths need adjusting.
14727         * troff/charinfo.h: Generalize translated_to_space to
14728         special_translation so as to allow translation to \&.
14729         * troff/input.c (translate): Allow translation to \&.
14730         (charinfo::*): Corresponding changes.
14731         * troff/node.c (make_node, node::add_char): Corresponding changes.
14732         * troff/node.h (dummy_node::dummy_node): Allow optional first
14733         argument.
14735         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
14736         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
14737         TOKEN_REQUEST.
14738         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
14739         TOKEN_REQUEST with an argument of TITLE_REQUEST.
14740         (token::process): Grok that.
14741         * troff/input.c (copy_file): Handle first page transition like
14742         title by pushing a COPY_FILE_REQUEST cookie.
14743         (token::next, process_input_stack): Grok that.
14744         * troff/node.h (output_file::copy_file): Add x and y arguments.
14745         Make it non-pure.
14746         * troff/div.c (top_level_diversion::copy_file): Supply them.
14747         * troff/node.c (troff_output_file::copy_file): Add x and y
14748         arguments; moveto specified position.  Invalidate font_position
14749         array after copying file.
14750         (output_file::copy_file): New function.
14751         (suppressed_output_file::copy_file, ascii_output::copy_file):
14752         Removed.
14753         * troff/input.c (transparent_file): New function.
14754         (init_input_requests): Bind to "trf".
14755         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
14756         (process_input_stack): Likewise.
14758         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
14760         * troff/node.c (init_node_requests): New number registers .kern
14761         pointing to global_kern_mode, and .lg pointing to
14762         global_ligature_mode.
14764         * troff/node.c (ligature): Don't change it if we get a bad
14765         integer.
14767         * troff/input.c (do_define_string): Don't strip tabs.
14769         * troff/input.c (asciify_macro): Make the string_iterator auto.
14771         * troff/node.c (init_font_requests): Rename to...
14772         (init_node_requests):
14773         * troff/node.h: Change declaration.
14774         * troff/input.c (main): Change call.
14776         * troff/input.c (node::reread, diverted_space_node::reread): New
14777         methods.
14778         (process_input_stack): Call reread rather than
14779         get_diverted_space_node.
14780         * troff/node.c (node::get_diverted_space_node,
14781         diverted_space_node::get_diverted_space_node): Removed.
14782         * troff/node.h: Declare reread methods instead of
14783         get_diverted_space_node methods. Make `n' member private.
14784         * troff/input.c: (token::diverted_space): Removed.
14785         * troff/token.h: Removed declaration.
14786         
14788 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
14790         * eqn/script.c (script_box::compute_metrics): Don't let
14791         SUP_RAISE_FORMAT become negative.
14793         * tbl/table.c (table::do_row): Entries that don't end in the
14794         this row shouldn't make the row non-blank.
14795         
14796         * tbl/table.c (table::make_columns_equal): Only set the width of
14797         columns which are marked as equal.
14798         
14799         * tbl/main.c (process_data): Before issuing excess data error,
14800         if last character was a newline unget it; then get it again after
14801         the error.  Also include the contents of the entry in the message.
14803         * groff.c: New file.
14804         * Makefile: Build groff from groff.c.  Make it possible to use
14805         either groff.sh or groff.c as groff.
14806         * Makefile.bd: Similarily.
14808 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
14810         * groff.sh: Don't delay expansion of $@ in assignment to files.
14811         Remove occurrences of \".
14813 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
14815         * all Makefiles: Simplify and rearrange.
14817         * Makefile: Handle fmod like malloc.
14818         * lib/Makefile: Similarily.
14819         * lib/fmod.c: Remove #ifdef NEED_FMOD.
14821         * Makefile: Rename OPTIMISE to OPTIMIZE.
14823         * groff.sh: Remove assignment to PATH.
14824         * Makefile: Remove SHPATH variable.
14825         * Makefile.bd: Similarily.
14827         * groff.sh: Add -V option to print the pipeline instead of
14828         executing it.
14830 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
14832         * lib/font.c: Split off file searching into ...
14833         * lib/fontfile.c: New file.
14835         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
14837 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
14839         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
14840         Also change misleading comment.
14841         (table::do_vspan): Change similarily misleading comment.
14842         * tbl/main.c (process_data): A format row with an explicit `s'
14843         uses up a data line, even if all the other columns are `_' or `='.
14845         * troff/input.c (token::description): Fix description of
14846         TOKEN_DUMMY and TOKEN_EMPTY.
14848 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
14850         * groff.sh: Fix description of -Z in help message.
14852 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
14854         * pic/object.c (object_spec::make_object): Allow negative and zero
14855         line thicknesses.
14856         * pic/pic.y: Give linethick default value of -1.0.
14857         * pic/troff.c (troff_output::troff_output): Initialize
14858         last_line_thickness to BAD_THICKNESS.
14859         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
14860         (troff_output::line_thickness): Canonicalize negative thicknesses
14861         to RELATIVE_THICKNESS.
14862         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
14863         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
14864         to -1.0.
14865         (tex_output::start_picture): Set pen_size to -2.0.
14867         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
14868         0, then use 0 linewidth.
14869         (ps_printer::ps_printer): Initialize line_thickness to -1.
14871         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
14873         * ps/devps/symbolchars: Remove `or'.
14874         * ps/tmac.ps: Implement \(or with .char.
14876         * ps/devps/symbolchars: Move most characters into textmap.
14877         * ps/devps/textmap: Add names for troff bracket characters. Remove
14878         ul, ru, br, bv.
14880         * ps/devps/TSymbol.ps: Removed.
14881         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
14882         * ps/tmac.ps: Do with .char what TSymbol did.
14883         * ps/devps/download: Remove TSymbol.
14885         * ps/devps/T: Removed.
14886         * ps/devps/Troff.ps: Removed.
14887         * ps/devps/Troff.afm: Removed.
14888         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
14889         * ps/devps/download: Remove Troff.
14890         * ps/devps/FontMakefile: Remove T target.
14891         * ps/devps/DESC-A4: Remove T from font list.
14892         * ps/devps/DESC-letter: Likewise.
14894         * troff/input.c (macro_to_node): Rename to ...
14895         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
14896         character's definition while processing it.
14897         * troff/node.c (node::add_char, make_node): Change calls to
14898         macro_to_node accordingly.
14900         * troff/input.c (token::next): Translate \_ to \(ul.
14902         * tty/devascii/R.proto: Add `|'.
14903         * tty/devlatin1/R.proto: Likewise.
14905 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
14907         * man: Put the version number in all the man pages.
14909 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
14911         * Makefile.bd: New file.
14912         * README.bd: New file.
14914         * VERSION: New file.
14915         * lib/version.c: Removed.
14916         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
14917         in clean target.
14919         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
14920         environment variable.
14922         * all Makefiles: Split install target into install.bin for
14923         binaries, and install.nobin for everything else.
14924         * Makefile: Add bindist target.
14926         * man/afmtodit.man: New file.
14927         * man/Makefile: Add afmtodit.n to MAN1PAGES.
14928         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
14929         in BINDIR.
14930         * ps/Makefile: Pass BINDIR to make install in devps.
14932         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
14933         the space character.
14935         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
14937 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
14939         * ps/ps.c: Redo font downloading.
14940         * ps/devps/download: New file.
14941         * ps/devps/Makefile: Add download to DEVICEFILES.
14942         * ps/devps/afmtodit: Remove -d option.
14943         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
14944         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
14945         * ps/devps/zapfdr.ps: Likewise.
14946         * ps/devps/TSymbol.ps: Likewise.
14948 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
14950         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
14952 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
14954         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
14955         then strip the first line if it starts with %.
14956         * Makefile: Add a comment about this.
14958         * man/tfmtodit.man: New file.
14959         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
14960         * dvi/Makefile: Install tfmtodit in BINDIR.
14962         * dvi/tfmtodit.c (usage): Mention -v option.
14964 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
14966         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
14967         * troff/node.c (troff_output_file::transparent_char): Don't call
14968         flush_tbuf.
14970         * eqn: Add check_tabs method to most box classes.
14971         * eqn/box.c (box::top_level): Call check_tabs.
14973         * eqn/script.c (script_box::output): Use \Z.
14974         * eqn/limit.c (limit_box::output): Use \Z.
14976         * eqn/box.c (box::top_level): Use itoa.
14978 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
14980         * dvi/tmac.dvi: Add font translations for CR, C, TT.
14981         * dvi/devdvi/Makefile: Don't make links to CW.
14983         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
14984         HX, HD.
14985         * xditview/tmac.X: Likewise.
14987         * troff/node.c: Add font translation feature.
14988         (get_font_translation): New function.
14989         (symbol_fontno): Translate the font name.
14990         (mount_font_no_translate): Rename to mount_font to this.
14991         (mount_font): New function.
14992         (font_family::make_definite): Call mount_font_no_translate instead
14993         of mount_font.
14994         (mount_style): Translate the font name.
14995         (font_translate): New function.
14996         (init_font_requests): Bind "ftr" to font_translate.
14998         * ps/devps/prologue (SN): New procedure that rounds a position to
14999         the nearest (pixel + (.25,.25)).
15000         (DL): Use SN to round endpoints.
15002         * lib/version.c: Changed version to 0.5.
15004 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
15006         * Makefile: Move definition of PAGE to the very beginning, so that
15007         people are less likely to miss it.
15009 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
15011         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
15013         * troff/env.c (environment::choose_breakpoint): Make `can't find
15014         breakpoint' error a warning of type WARN_BREAK.  Change message to
15015         `can't break line'.
15016         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
15017         code 040000.
15018         * troff/input.c: Add WARN_BREAK to warning_table.  Include
15019         WARN_BREAK in DEFAULT_WARNING_MASK.
15021         * tty/tmac.tty: Add definition of \(+-.
15023         * groff.sh: Remove `--' option to set command.
15025         * dvi/devdvi/texsy.map: Remove duplicate md entry.
15027         * ps/devps/eqnchar: Better definition of cdot using md.
15028         * dvi/devdvi/eqnchar:  Likewise.
15029         * xditview/devX100/eqnchar:  Likewise.
15030         * xditview/devX75/eqnchar: Likewise.
15031         * eqn/lex.c: Add definition of cdot.
15033 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
15035         * troff/input.c (get_optional_char): New function.
15036         * troff/input.c (set_page_character): Use get_optional_char(),
15037         rather than has_arg() and tok.get_char(1).
15038         * troff/env.c (tab_character, leader_character, hyphen_char,
15039         field_characters): Likewise.
15040         (margin_character): Likewise.  Also always delete the
15041         margin_character_node.
15043         * troff/input.c (token::get_char): Use token::description.
15045         * troff/input.c (has_arg): Don't skip over tab and \}.
15046         * troff/number.c (start_number): Give a warning if the number
15047         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
15049 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
15051         * troff/input.c (empty_name_warning, non_empty_name_warning): New
15052         functions.
15053         (get_name, get_long_name): Use these.  Rename `warn' argument to
15054         `required'.
15056         * troff/node.c (get_fontno): Test that the symbol is not null.
15058         * troff/input.c (token::description): New function.
15059         * troff/number.c (parse_term): Use token::description in `numeric
15060         expression expected' message.
15061         * troff/groff.h: Add WARN_MISSING.
15062         * troff/number.c (start_number): New function.
15063         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
15064         get_incr_number): Use start_number().
15065         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
15066         default.
15067         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
15068         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
15069         token::descripion.
15070         * troff/input.c (token::get_char): Use WARN_MISSING.
15071         * troff/input.c (token::delimiter): Use token::description.
15072         * troff/env.c (environment_switch): Back out Aug 3 change.
15073         * troff/input.c (has_arg): Skip over \}s and tabs but give a
15074         warning.
15075         * troff/token.h (token::tab): New function.
15076         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
15077         * troff/reg.c (alter_format): Likewise.
15078         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
15080 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
15082         * troff (most files): Redo warnings. Divide warnings into various
15083         categories; warning() has an additional first argument indicating
15084         the category it falls into.
15085         * troff/input.c (main): -w now takes an argument. New option -W.
15086         (enable_warning, disable_warning): New functions.
15088         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
15089         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
15091 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
15093         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
15094         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
15095         * xditview/devX75/eqnchar: Likewise.
15096         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
15098         * eqn/other.c: When bar or over applies to a single character
15099         don't produce an overline_box or an underline_box. Instead produce
15100         an accent_box or an underaccent_box, with the accent a line
15101         whose width is accent_width.  New classes underaccent_box,
15102         overline_char_box and underline_char_box.
15103         * eqn/box.h: Move overline_box, underline_box, accent_box class
15104         declarations into eqn/other.c. Add declarations of
15105         make_underline_box, make_overline_box, make_accent_box.
15106         * eqn/eqn.y: Call make_overline_box, make_underline_box
15107         make_accent_box instead of constructors.
15108         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
15110         * eqn/other.c: Add accent_box::~accent_box.
15111         * eqn/box.h: Declare it.
15113         * groff.sh: With -Tps, use eqn -D.
15115         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
15116         rather than \l.
15117         (underline_box::output): Similarily.
15118         (accent_box::output): Use \Z.
15120         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
15121         bit smaller.)
15123 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
15125         * troff/div.c (top_level_diversion::transparent_output(unsigned
15126         char)): Use asciify.
15127         * troff/input.c (asciify): Don't make it static.
15128         * troff/token.h (asciify): Declare it.
15129         
15130         * troff/input.c (get_name, get_long_name, token::get_char,
15131         token::delimiter): Add an extra default argument which says
15132         whether a warning should be printed.
15133         * troff: Pass a non-zero argument to one of these rather than
15134         printing a warning directly.
15136 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
15138         * troff: Consistently use symbol::is_null.
15140         * troff/dictionary.h: Move some inline functions into
15141         dictionary.c.
15143         * troff/request.h: Move inline functions into input.c.
15144         (request_or_macro::invoke): Make it pure.
15146         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
15147         * troff/input.c (init_input_requests): Use class constant_int_reg.
15148         (class compatible_reg): Deleted.
15149         * troff/div.c (init_div_requests): Use class constant_int_reg.
15150         (class last_post_line_extra_space_reg): Deleted.
15152         * troff/env.c (tab_character): Don't change the tab character if
15153         we get an invalid argument.
15154         (hyphen_char): Similarily.
15156         * troff/reg.c (alter_format): Check that nm is not null.
15158         * Makefile, groff.sh: Make it possible to customize the commands
15159         used for printing PostScript and dvi files. Also make it possible
15160         to customize the path used by groff.sh.
15162         * eqn/eqn.y: Make `left' right associative.
15164 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
15166         * pic/pic.h: Added definition of M_SQRT2 for those systems that
15167         don't have it.
15169         * pic/pic.h: Removed definition of INT_MAX.
15171         * troff/node.c (italic_corrected_node::vertical_extent): Omit
15172         `return'.
15174         * troff/input.c (token::next):  Handle \R like \n.
15176 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
15178         * ps/tmac.pc (PSPIC): Simplify.
15180         * troff/env.c (tab_stops::to_string):
15181         * pic/pic.y (object_type_name):
15182         * pic/troff.c (simple_output::line):
15183         * pic/tex.c (tex_output::spline):
15184         * pic/object.c (object_spec::make_object):
15185         * tbl/main.c (process_data):  Add cases to switch statements to
15186         avoid cfront warnings. (Some of these are spurious, since the
15187         switch already has a default case.)
15189         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
15190         `ps-'.  Don't test systat; instead check number of arguments to
15191         ps-bb.
15193 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
15195         * macros/tmac.e: Do not decrease the page offset by 0.5i.
15197         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
15198         Unlink the file as soon as we have opened it, so that we don't
15199         have to bother with signal handlers.
15200         (handler): Deleted.
15201         (fatal_error_exit): Deleted.
15202         (main): Don't call signal.
15204         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
15205         can be ignored.
15206         * dvi/devdvi/Makefile: Use the -k option with S and MI.
15208         * pic/pic.y:  If there is a label, or an nth construction before
15209         the first `.' in the argument to `with', ignore it and generate a
15210         warning.
15211         * pic/lex.c (lex_warning): New function.
15213         * tbl/table.c (table::init_output): In section keep and release
15214         macro, use 0 indent when diverting and the correct indent when
15215         rereading.
15217         * troff/input.c (interpolate_number_format): Do not interpolate
15218         anything if the number register is not defined.
15220         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
15222 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
15224         * ps/devps/prologue (PICTURE): Set components of graphics state to
15225         their default values.
15227         * ps/devps/text.enc: Add trademark
15228         * ps/devps/textmap: Add names for club, spade, heart, diamond,
15229         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
15230         * ps/devps/symbolchars: Add names for summation and product.
15232         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
15233         suchthat. Add pp. Add upper-case letters.
15235         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
15236         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
15237         Upsilon.
15239         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
15240         rA (right angle bracket) to ra.  Introduce names for double-headed
15241         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
15242         * ps/devps/textmap: Likewise for ps device.
15243         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
15244         * tty/devascii/R.proto: Rename lA to la and rA to ra.
15245         * tty/devascii/R.proto: Likewise.
15246         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
15247         \(uA, \(dA.
15248         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
15250         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
15252         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
15253         def_table.
15255 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
15257         * troff/div.c (when_request): Use symbol::is_null rather than
15258         has_arg to determine whether we have an argument.
15259         (change_trap): Remove the trap if we get an invalid number. Give
15260         an error if we don't get at least the macro name.
15261         (diversion_trap): Remove trap if we get an invalid name or number.
15263         * troff/env.c (environment_switch): Pop if we get an invalid
15264         symbol or numeric expression.
15266         * troff/input.c (do_define_macro):  If EOF is encoutered while
15267         defining the macro, do tok.next() before returning.
15269         * troff/token.h (has_arg): Move definition from here, to ...
15270         * troff/input.c (has_arg): ... here
15272         * troff/env.c (space_size): Do nothing if we get an invalid argument.
15273         * troff/input.c (shift): Likewise.
15275         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
15276         for `.c'.
15278         * pic/troff.c (troff_output::start_picture):  Comment out calls to
15279         `..'.
15281         * eqn/main.c (do_file): Subtract 1 from current_lineno if
15282         interpret_lf_args succeeds.
15284         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
15285         \\.  This avoids problems with \$N.
15287         * groff.sh: Pass -C to preprocessors.
15289         * lib/lf.c (interpret_lf_args):  Be more flexible.
15291         * tbl/main.c (main): Add -C option.
15292         (table_input::get): Do not recognize TE if followed by character
15293         other than a space or newline unless -C option given.
15294         (process_input_file): Likewise for lf, TS.
15295         (process_data): Likewise for lf in text blocks.
15297         * eqn/main.c (main): Add -C option.
15298         (do_file): Don't recognize EQ, EN or lf if followed by character
15299         other than space or newline unless -C option given.
15300         * eqn/lex.c (file_input::read_line): Similarily.
15301         * eqn/eqn.h: Declare compatible_flag.
15303         * etc/soelim.c (main): Add -C option.
15304         (interpret_lf_args): Use version in libgroff.
15305         (do_file):
15307         * pic/main.c (main): Add -C option, which sets compatible_flag.
15308         (top_input::get), (top_input::peek):  If -C option not given,
15309         do not recognize .PS/.PE/.PF/.lf if followed by a character
15310         other than space or newline.
15311         * pic/lex.c (file_input::read_line): Similarily.
15312         * pic/pic.h: Add declaration of compatible_flag.
15314 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
15316         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
15318         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
15319         derived from node.  New class space_char_hmotion_node.
15320         * troff/input.c (asciify_macro): New function.
15321         * troff/input.c (init_input_requests): New request `asciify' bound
15322         to asciify_macro.
15323         * macros/mm.diff: New file.
15324         * Makefile:  In install.mm target use `patch' to apply
15325         macros/mm.diff.
15327         * troff/input.c (macro::print_size): Just print the size in bytes.
15329         * troff/div.c (return_request): Correct the argument
15330         interpretation.
15332 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
15334         * troff/node.h (class composite_node): Add sz member.
15335         * troff/node.c (composite_node::size): Return sz.
15336         * troff/input.c (macro_to_node):  Use the initial size in the
15337         environment as the size of the composite_node.
15339         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
15340         default.
15342 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
15344         * troff/div.c (change_trap): If we get a bad number expression,
15345         do nothing.
15347 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
15349         * lib/matherr.c (matherr): Define this only if math.h defines
15350         TLOSS.
15352 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
15354         * troff/div.c (macro_diversion::distance_to_next_trap): If there
15355         no diversion trap return vunits(INT_MAX - vresolution).
15357 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
15359         * troff/input.c (do_zero_width): New implementation that doesn't
15360         use a temporary environment. Use instead:
15361         (token::add_to_node_list): New function.
15362         * troff/env.c (environment::get_prev_char_height),
15363         (environment::get_prev_char_height),
15364         (environment::get_prev_char_skew): New functions.
15365         (environment::get_prev_char): New function.
15366         (environment::get_prev_char_width): Change to use get_prev_char.
15367         (init_env_request): Implement new registers .cht, .cdp, .csk.
15368         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
15369         \Z being processed in a separate environment.
15371 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
15373         * tbl/table.c: Removed TABLE_BOTTOM_REG.
15375         * tbl/table.c (table::init_output): In the section release macro,
15376         give a warning message if the section won't fit on one page.
15378         * tbl/table.c (table::do_top): Emit table keep only if table is
15379         boxed.
15380         (table::do_bottom): Likewise for table release.
15381         (table::table), (table::add_vertical_rule):  Remove reference to
15382         keep member.
15383         * tbl/table.h: Remove keep member.
15385         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
15386         SECTION_RELEASE_MACRO, if there's not enough space before the next
15387         trap to output the diversion, call T# ourselves, set
15388         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
15389         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
15390         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
15391         vertical position and return to it before turning traps on again.
15392         
15393 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
15395         * troff/node.c, troff/node.h: In classes derived from node,
15396         replace prev_char_width method by last_char_node method.
15397         * troff/env.c (environment::get_prev_char_width): Use
15398         node::last_char_node rather than node::get_prev_char_width.
15400         * Makefile: Added comment about -fno-inline on 68030-based
15401         Apollos.
15403         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
15404         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
15405         expressions using sizeof to int.
15406         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
15408         * macros/tmac.e (TS):  Don't move @f back past the current
15409         position.
15411 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
15413         * ps/ps.c (main): Buffer stderr.
15414         * dvi/dvi.c (main): Likewise.
15415         * tty/tty.c (main): Likewise.
15417         * ps/ps.c (ps_printer::do_import): Improve error handling.
15419         * troff/input.c (abort_request): Use asciify.
15421         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
15422         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
15423         type of first argument int rather than char.  This works around a
15424         bug on the 68030 based Apollo using g++ 1.37.1.
15426         * tbl/table.h (class table): Add `keep' member.
15427         * tbl/table.c (table::table): Initialize `keep'.
15428         (table::add_vertical_rule): Set `keep' to 1.
15429         (table::do_top): Only emit table keep macro is `keep' is non-zero.
15430         (table::do_bottom): Likewise for table release macro.
15431         (table::do_row): Emit section keep macro even if the row is 0.
15433 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
15435         * macros/tmac.e (@C): Preserve the font family across the change
15436         in environments.
15438 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
15440         * lib/font.c: Initialize font::hor and font::vert to 1.
15441         (font::load_desc): Check the values of font::hor and font::vert.
15443         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
15444         be included in a C compilation.
15445         (iftoa): Use INT_DIGITS. Include lib.h.
15446         (itoa): Likewise.
15447         (as_string): Likewise.
15448         * tbl/table.c: Removed definition of INT_DIGITS.
15449         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
15450         * troff/input.c (input_input_requests): Likewise.
15451         * ps/ps.c (make_encoding_name): Likewise.
15452         (ps_printer::set_style): Likewise.
15453         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
15455         * tty/devascii/R.proto: Map fm onto '.
15456         * tty/devlatin1/R.proto: Likewise.
15458 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
15460         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
15461         argument to \w is at a different input level.
15463         * tbl/table.c (table::init_output): Define a new macro
15464         REPEATED_VPT_MACRO, like vpt but if in a diversion also
15465         transparently outputs itself.
15466         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
15467         vpt.
15468         (table::do_row): Likewise.
15470         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
15471         TRANSPARENT_STRING_NAME.
15473         * tbl/table.c (table::init_output): In the table release macro
15474         print an error message and don't produce any output if after
15475         issuing the need request the table still will not fit.  Also
15476         remove the diversion after bringing it back.
15478         * tbl/table.c (table::init_output): Define a new macro
15479         REPEATED_MARK_MACRO, like mk but if in a diversion also
15480         transparently outputs itself.
15481         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
15482         is necessary because .TH might not call .T#.
15483         (table::do_top): Likewise TOP_REG.
15484         (table::define_bottom_macro): If TOP_REG is no longer valid, use
15485         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
15486         table header might contain just the two top rules.
15488 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
15490         * troff/div.c: Implement new request `ptr' to print all traps.
15492         * troff/env.c (init_env_requests): Implement `.tabs' reg with
15493         init_string_env_reg.
15494         * troff/env.c (class tab_reg): Deleted.
15496 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
15498         * troff/div.c: New number register .pn returns the number of the
15499         next page as set by the pn request.
15501         * macros/tmac.an: Redid headers and footers.  Number each manual
15502         entry starting from 1 unless \nC is > 0, like Sun.  Added an
15503         optional 5th argument to .TH which specifies the manual name and
15504         appears in the center of the header.  Understand the X, P and D
15505         registers like Sun.
15507 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
15509         * troff/env.c (init_env_requests): New number register `.lt' to
15510         return the title length.
15512         * troff/node.h (class transparent_dummy_node): New class.
15513         * troff/node.c (class transparent_dummy_node): Provide member
15514         functions. 
15515         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
15516         than a dummy_node.
15518         * troff/input.c (token::next): New escape sequence \).
15519         * troff/input.c (get_copy): Recognize \) in copy mode.
15521         * troff/input.c (input_stack::clear): New function.
15522         * troff/input.c (exit_request): Use input_stack::clear.
15524         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
15525         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
15527         * troff/env.c: Move set_page_character to input.c.  Move
15528         page_character to input.c also.
15529         * troff/env.c (title): Split off the reading of the parts of the
15530         title into read_title_parts.
15531         * troff/input.c (read_title_parts): New function.  Check the
15532         input_level when testing whether a token matches the delimiter.
15534         * troff/input.c (exit_request): New function.
15535         * troff/input.c (init_input_requests): Bind ex request to
15536         exit_request rather than exit_groff.
15538         * troff/input.c (exit_groff): Call tok.next() before
15539         process_input_stack().
15541 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
15543         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
15544         * troff/env.h: ditto.
15545         * troff/input.c: ditto.
15547         * troff/env.c (environment::is_empty): Test pending_lines.
15549         * troff/env.c (environment::have_pending_lines): Removed.
15551         * troff/input.c: Add request to flush pending lines from the
15552         environment.
15554         * troff/env.c, troff/env.h: Add automatic widow control feature.
15556         * troff/input.c (exit_groff):  Do process_input_stack() after
15557         do_break() but before setting exit_flag to 2.
15559         * troff/input.c: Remove FLUSH_PENDING_LINES and
15560         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
15561         environment after END_TRAP token seen, but only if there aren't
15562         any more traps still unfinished.
15563         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
15565 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
15567         * troff/env.c: Rename the `retain_size' member of class
15568         pending_output_line to `no_fill'.
15570         * troff/env.c (title): When the line is output, make the
15571         retain_size argument !fill.
15573         * troff/node.h: Add `hyphenated' member to struct breakpoint.
15574         * troff/node.c (space_node::get_breakpoints),
15575         (dbreak_node::get_breakpoints):  Fill this in.
15576         * troff/env.c:  Allow specification of maximum number of
15577         consecutive hyphenated lines.
15579         * troff/env.c (environment::is_empty): Add test for !current_tab.
15581 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
15583         * troff/env.c (environment::hyphenate_line): Don't completely give
15584         up if the word is not to be hyphenated; continue so that breaks
15585         can be made at break_char_node's.
15587         * lib/lib.h: Only define INT_MAX if it's not already defined;
15588         undef INT_MIN if it's already defined.
15590         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
15592         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
15593         This works around a bug in AT&T C++ 2.0 used with an ANSI C
15594         compiler.
15595         
15596         * macros/tmac.an (an-header): Set no-space mode.
15598         * macros/tmac.an (TH): Start a new page if necessary.
15600         * Started using ChangeLog at version 0.4.
15602 Local Variables:
15603 version-control: never
15604 coding: latin-1
15605 End: