* src/roff/nroff/nroff.man: Document option `-M'.
[s-roff.git] / ChangeLog
blob155f463202a139842766c05d8721b51f3e6a0961
1 2005-04-13  Werner LEMBERG  <wl@gnu.org>
3         * src/roff/nroff/nroff.man: Document option `-M'.
5 2005-04-13  Bruce Lilly  <blilly@erols.com>
7         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
9 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
10             Werner LEMBERG  <wl@gnu.org>
12         Add binary relocation support for Windows platforms.
14         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
16         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
18         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
19         (search_path::search_path, search_path::open_file_cautious): Use
20         `relocate'.
22         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
23         src/include/Makefile.sub (HDRS): Updated.
25 2005-04-01  Werner LEMBERG  <wl@gnu.org>
27         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
28         strsave/a_delete.
30         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
32         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
33         lib.h already does it.
35         * src/libs/libgroff/maxpathname.cpp: New file, defining
36         path_name_max.
38         * src/include/lib.h: Add prototype for path_name_max.
40         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
42         * src/include/nonposix.h (PATH_EXT): New macro.
44 2005-03-28  Werner LEMBERG  <wl@gnu.org>
46         Add support for double- and zero-width characters in grotty.
48         * src/devices/grotty/tty.cpp (glyph): Add width. 
49         (tty_printer::make_underline, tty_printer::make_bold,
50         tty_printer::add_character): Add parameter to pass character width.
51         Update all callers.
52         (tty_printer::end_page): Increase hpos by actual character width.
54         * font/devutf8/R.proto: Specify zero width for non-spacing
55         characters.
57         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
59         * Makefile.comm (extraclean): Remove more junk files.
61 2005-03-25  Werner LEMBERG  <wl@gnu.org>
63         * configure.ac: Undo change from 2005-03-24.
64         * configure: Regenerated.
66 2005-03-24  Werner LEMBERG  <wl@gnu.org>
68         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
69         (dist): Search Makefile while descending into $(EXTRADIRS).
71         * doc/Makefile.in (.PHONY): Add.
72         (clean): Don't remove *.png and *.eps.
73         Don't handle *.gif.
74         (realclean): Remove *.png and *.eps.
75         (extraclean): Depend on distclean.
77         * configure.ac: Add copyright.
78         Handle contrib/pdfmark/Makefile.
80         * configure: Regenerated.
82 2005-03-18  Larry Kollar  <kollar@alltel.net>
84         Add numbered and definition lists to www.tmac.
86         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
87         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
88         auxiliary string registers.
89         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
90         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
91         (www-level): Removed.
92         (www-level1, www-level2, www-level3): Initialize to empty.
93         (www-level0, www-level4, www-level5, www-level6, www-level7,
94         www-level8, www-level9): New string registers.
95         (www-push-li, www-pop-li): New macros.
96         (www-push-level, www-pop-level): Renamed to...
97         (www-push-ul-level, www-pop-ul-level): This.
98         Updated.
99         (www-push-ol-level, www-pop-ol-level): New macros.
100         (ULS, ULE): Updated.
101         (OLS, OLE, DLS, DLE): New user macros.
102         (LI): Removed.  It is aliased to one of...
103         (www-li-ul, www-li-ol, www-li-dl): New macros.
105         * tmac/groff_www.man: Document new macros.
107         * NEWS: Updated.
109 2005-03-18  Werner LEMBERG  <wl@gnu.org>
111         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
112         doc-operating-system-NetBSD-2.0.2): New strings.
114         * tmac/groff_mdoc.man: Updated.
116 2005-03-17  Werner LEMBERG  <wl@gnu.org>
118         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
120 2005-03-17  Werner LEMBERG  <wl@gnu.org>
122         * src/libs/libgroff/hypot.c: Renamed to...
123         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
125         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
127         * src/include/lib.h: Updated.
129 2005-03-16  Werner LEMBERG  <wl@gnu.org>
131         Add workaround for broken hypot() on Interix.
133         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
135         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
136         (CSRCS): Add `hypot.c'.
138         * src/include/lib.h: Declare `groff_hypot'.
140         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
141         Use `groff_hypot'.
143         * src/preproc/pic/pic.h: Don't declare `hypot'.
145         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
147 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
149         * src/devices/grohtml/post-html.cpp
150         (html_printer::lookahead_for_tables): End .ce properly to avoid a
151         segfault.
153 2005-03-15  Werner LEMBERG  <wl@gnu.org>
155         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
157         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
159         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
161 2005-03-14  Werner LEMBERG  <wl@gnu.org>
163         Add Cyrillic support to devutf8 and devhtml.
165         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
167         * tmac/unicode.tmac: New file.
169         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
171         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
173         * NEWS: Updated.
175 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
177         * src/libs/libdriver/printer.cpp (check_for_output_error): New
178         function.  It has been introduced to catch peculiar error contexts
179         on MS-Windows platforms.
181 2005-02-28  Werner LEMBERG  <wl@gnu.org>
183         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
184         null pointer.
186         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
188         * configure: Regenerated.
190         * NEWS: Updated.
192 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
194         Integrate `pdfmark' into normal groff build system;
195         install macro `pdfmark' packages, build and install `pdfroff',
196         and PDF format documentation.
198         * Makefile.comm: Add PDFDOCDIR.
200         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
201         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
202         (unstall_dirs): Add pdfdocdir.
204         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
205         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
206         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
207         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
208         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
209         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
210         set ALT_AWK_PROGS.
211         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
212         use of GROFF_AWK_PREFS.
213         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
214         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
216         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
217         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
218         also by modified GROFF_HTML_PROGRAMS).
220 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
222         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
223         paragraph spacing.
224         (html_text::done_para): Unset `start_space'.
225         (html_text::remove_para_align): Call `retrieve_para_space' for the
226         spacing.
228         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
229         `seen_space'.
230         (html_printer::do_check_center): Emit vertical space if necessary.
232         * src/roff/troff/env.cpp (environment_switch): Preserve
233         `seen_space', `seen_eol', and `suppress_next_eol' while switching
234         environments.
236         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
237         `is_special'.
239 2005-02-20  Werner LEMBERG  <wl@gnu.org>
241         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
242         eqn.
244 2005-02-17  Werner LEMBERG  <wl@gnu.org>
246         * doc/pic.ms, man/groff.man: Fix typos.
248         * doc/groff.texinfo: Fix typos.
249         (\LEmacro): Get proper mathematical spacing.
251 2005-02-16  Werner LEMBERG  <wl@gnu.org>
253         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
254         * configure: Regenerated with autoconf 2.59b.
256 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
258         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
259         html_printer::start_font): Fix handling of preformatted text.
261 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
263         These patches modify the indentation implementation to use `<p
264         style=margin-left: n%>'.  Many thanks to Peter and Larry for
265         suggesting this solution.  Grohtml only uses tables for `.IP' and
266         related tags when the first operand has a short width.
268         Similarly, they modify all vertical space code.  By default, grohtml
269         sets up a style sheet which uses no vertical space between `table',
270         `pre', and `p' tags.  It forces spaces when it needs them using
271         `style="margin-top: 1em"'.
273         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
274         (html_table::emit_table_header, html_table::emit_new_row):
275         Rewritten.
276         (html_table::set_space): New function.
277         (html_indent::html_indent): Don't set `is_used'.
278         (html_indent::begin): Rewritten.
279         (html_indent::end): Remove code in function.
281         * src/devices/grohtml/html-table.h: Updated.
282         (html_table): Make `out' public.
284         * src/devices/grohtml/html-text.cpp (html_text::html_text):
285         Initialize `start_space' with FALSE.
286         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
287         (html_text::issue_tag): Add argument to handle space style.
288         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
289         (html_text::flush_text): Don't set `start_space'.
290         (html_text::push_para): Don't set `p->really_issued'.
291         (html_text::do_emittext): Updated.
292         (html_text::do_para): Add paremeter to handle space.
293         Update all callers.
294         (html_text::retrieve_para_space): New function.
296         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
297         (tag_definition): Remove `really_issued'.
298         (html_text): Updated.
300         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
301         `current_column' and `row_space'.
302         Update constructor.
303         (html_printer::emit_raw, html_printer::write_header,
304         html_printer::do_indent, html_printer::do_check_center,
305         html_printer::do_tab_ts): Handle vertical space.
306         (html_printer:do_tab_te, html_printer::do_end_para): Call
307         `remove_para_space'.
308         (html_printer::do_col): Rewritten.
309         (html_printer::flush_globs): Remove debugging code.
310         (html_printer::is_line_start): New function.
311         (html_printer::start_font): Use `is_line_start'.
312         (html_printer::writeHeadMetaStyle): New function.
313         (html_printer::do_file_components, html_printer::~html_printer):
314         Call `writeHeadMetaStyle'.
316         * tmac/www.tmac (www-handle-percent): New macro.
317         (MPIMG): Handle percent values for width and height parameters.
318         (DC): Updated.
320         * tmac/groff_www.man: Updated.
322 2005-02-14  Werner LEMBERG  <wl@gnu.org>
324         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
325         $psname and $italic_angle.
326         Immediately restart file input loops if `split' returns an empty
327         array.
329 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
330             Werner LEMBERG  <wl@gnu.org>
332         Update afmtodit to better support Unicode (Michail).
333         Update afmtodit to use Perl 5 syntax (Werner).
335         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
336         `Getopts::Std'.
337         Decorate variables with `my' where necessary.
338         Use `defined' where necessary to avoid warnings.
339         Don't use `do' for subroutine calls.
340         Other minor syntax updates.
341         Check for both `uXXXX[X[X]]' and `uniXXXX'.
342         Handle glyph variants properly.
343         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
344         strings.
346         * src/utils/afmtodit/afmtodit.man: Updated.
348 2005-02-13  Werner LEMBERG  <wl@gnu.org>
350         Make groff.texinfo work with texinfo 4.8.
352         * doc/groff.texinfo (@Var): Use @r and @slanted.
353         (@defdummy, @Def*): Use @c to avoid empty lines.
354         (\angles): Replaced with...
355         (\Langlemacro, \Ranglemacro): New TeX macros.
356         (@Langlemacro, @Ranglemacro): New variables defined with @set.
357         (@angles): Use @Langlemacro and @Ranglemacro.
358         (\LE): Replaced with...
359         (\LEmacro): New TeX macro.
360         (@LEmacro): New variable defined with @set.
361         (@LE): Use @LEmacro.
362         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
363         variables defined with @set.
364         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
365         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
366         Update all callers.
368         Other minor updates.
370         * doc/texinfo.tex: Update to texinfo version 4.8.
372         * README.CVS: Updated.
374 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
376         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
377         and `FAM' registers.
379 2005-02-05  Werner LEMBERG  <wl@gnu.org>
381         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
382         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
383         Update BSD license.
385 2005-02-01  Werner LEMBERG  <wl@gnu.org>
387         * src/roff/groff/groff.man: Add information about paper size.
389 2005-01-25  Werner LEMBERG  <wl@gnu.org>
391         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
392         NetBSD bin/29114.
394 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
396         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
397         cases.
398         (Re): Emit a warning if called without `.Rs'.
399         (doc-finish-reference): Use parameter for decreasing
400         `doc-reference-count'.
401         (doc-print-reference): Pass specific count parameters to
402         `doc-finish-reference'.
404 2005-01-21  Werner LEMBERG  <wl@gnu.org>
406         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
407         Reset pointers to zero after deallocation.  This fixes a crash
408         if a driver is called with multiple input files.  Reported by
409         Ken Chilton <ken@chiltonfamily.org>.
411         * src/devices/grops/grops.man: Add more info on DSC.
413 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
415         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
416         Remove dead code.
418 2005-01-17  Werner LEMBERG  <wl@gnu.org>
420         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
421         against division by zero.
423 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
425         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
427 2004-12-19  Werner LEMBERG  <wl@gnu.org>
429         * install-sh: New version; taken from texinfo CVS.
431 2004-12-17  Werner LEMBERG  <wl@gnu.org>
433         * tmac/devtag.tmac: Protect against loading twice.
434         Protect agains compatibility mode.
435         * tmac/www.tmac: Protect against loading twice.
436         Load `devtag.tmac' before switching off compatibility mode.
437         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
439 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
441         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
442         * configure: Updated.
444 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
446         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
448 2004-12-15  Werner LEMBERG  <wl@gnu.org>
450         Make `test-groff' work again -- previously, wrong paths have been
451         used.  Additionally, it can now be called from anywhere.
453         * test-groff.in: Don't test for groff binary.  This is no longer
454         necessary since the proper paths are determined by `configure'.
455         (EXEEXT): Removed.  No longer used.
456         (srcdir, builddir): Use values provided by the configure script.
457         (XENVIRONMENT): Updated.
459         * INSTALL: Updated.
461 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
463         Make .tag and .taga work for all devices (but only grohtml actually
464         handles them).
466         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
467         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
468         html_printer::handle_assertion): Don't use hard-coded string
469         lengths.
470         (html_printer::lookahead_for_table): Reset `tbl' properly if
471         necessary.
472         (html_printer::devtag): New function, handling `devtag'.
473         (html_printer::special): Don't handle `html-tag'.
475         * src/include/printer.h, src/libs/libdriver/printer.cpp
476         (printer::devtag): New virtual function.
478         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
479         `devtag'.
481         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
482         src/roff/troff/node.cpp: s/html-tag/devtag/.
484         * src/roff/troff/input.cpp (tag, taga): Always call
485         curenv->add_node.
487         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
488         macros instead of HTML-TAG*.
490         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
492         * tmac/www.tmac: Load devtag.tmac.
493         Replace HTML-TAG* macros with DEVTAG* macros.
494         (HTML, HTML-NS): Changed definitions.
495         (URL): Use HTML-NS.
496         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
498         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
500 2004-12-10  Werner LEMBERG  <wl@gnu.org>
502         Import Mike's `gdiffmk' package.
504         * contrib/gdiffmk/*: New files.
505         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
506         * NEWS: Updated.
508 2004-12-08  Werner LEMBERG  <wl@gnu.org>
510         Import Keith's `pdfmark' package.  Integration is very preliminary.
512         * contrib/pdfmark/*: New files.
513         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
514         * NEWS: Updated.
516 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
518         Fix a bug with title handling in HTML.
520         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
521         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
522         length.
523         (html_printer::handle_tag_within_title): New function.
524         (html_printer::do_title): Use it.
526         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
527         (cov*tl-au-print): Emit `.eo.tl' tag.
529 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
531         * man/groff_char.man: Minor imrovements.
533 2004-12-04  Werner LEMBERG  <wl@gnu.org>
535         * src/preproc/eqn/eqn.man: Revised.
537 2004-11-25  Werner LEMBERG  <wl@gnu.org>
539         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
540         groff source files.
541         Include config.h.
542         Include limits.h.
543         Remove X_NOT_STDC_ENV conditional.
544         (Version_string, program_name): New global variables.
545         (groff_flag): Removed.
546         (MapFont): Updated.
547         (usage): Take a stream as argument.
548         Use `program_name'.
549         Update all callers.
550         (main): Add `long_options' array for `--help' and `--version'.
551         Make `-g' a dummy option.
552         Handle `-v' and unknown options.
553         Remove unused `position' variable.
555         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
556         (XLIBS): Add LIBGROFF.
558         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
559         New files.
561         * src/devices/xditview/Dvi.c (default_font_map): Split into three
562         parts to avoid compiler warning.
563         (resources): Don't initialize with `default_font_map'.
564         (ClassInitialize): Initialize first element of `resources'.
566         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
567         Removed.
569         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
570         src/utils/pfbtops/pfbtops.man: Revised, updated.
572         * configure.ac: Generate src/utils/xtotroff/Makefile.
573         * configure: Regenerated.
575 2004-11-24  Werner LEMBERG  <wl@gnu.org>
577         First fixes to get produce HTML.
579         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
580         attribute.
582         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
583         (HR, LI): Use `HTML</p>', not `HTML'.
585         * doc/webpage.ms: Minor updates.
587 2004-11-23  Larry Kollar  <kollar@alltel.net>
589         Add option -S grohtml to determine the file split level.
591         * src/devices/grohtml/post-html.cpp (split_level): New global
592         variable.
593         (html_header::determine_header_level): Use split_level.
594         (main): Handle `-S' command line option.
595         Sort options.
597         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
599         * src/devices/grohtml/grohtml.man: Document it.
600         Sort options.
602         * NEWS: Document it.
604 2004-11-23  Y T  <doarhop@hotmail.com>
606         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
607         the volume and number refer entries.
609 2004-11-22  Werner LEMBERG  <wl@gnu.org>
611         * src/devices/grohtml/html-table.cpp
612         (html_table::emit_table_header): Don't emit `cols' attribute which
613         doesn't exist in HTML 4.0 and is thus invalid.
615         * NEWS: More minor fixes and updates.
617 2004-11-18  Werner LEMBERG  <wl@gnu.org>
619         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
620         (HTML</p>): Minor clean-up.
622         * tmac/groff_www.man: Updated.
624         * src/devices/grohtml/grohtml.man: Revised and updated.
626         * NEWS: Updated.
628 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
630         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
631         Fix space insertion.
632         (html_printer::do_links): Fix rules generation around automatic
633         heading links.
635         * tmac/www.tmac (LK): Use HTML-TAG-NS.
636         (HR): Simplify.
637         No longer emit empty line for non-HTML devices.
639 2004-11-17  Werner LEMBERG  <wl@gnu.org>
641         * doc/Makefile.in (prepare_examples, webpage.html): Handle
642         `groff.css'.
644         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
645         prepare_examples, webpage.html): Handle `groff.css'.
647 2004-11-15  Werner LEMBERG  <wl@gnu.org>
649         * NEWS, README, doc/webpage.ms: Updated.
651         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
653 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
655         * src/include/printer.h (printer): Remove virtual function
656         `round_width'.
657         Update all source files.
659         * src/devices/grohtml/post-html.cpp (html_printer): New member
660         function `round_width'.
662 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
664         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
665         column key letter suffix.
667 2004-10-14  Werner LEMBERG  <wl@gnu.org>
669         * Makefile.in (check): Depend on `site.exp' and `docheck'.
670         (docheck): Run dejagnu's `runtest' if it exists.
671         (site.exp): Create dejagnu configuration file.
673         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
675 2004-10-13  Werner LEMBERG  <wl@gnu.org>
677         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
678         src/devices/grohtml/post-html.cpp (make_val,
679         html_printer::handle_state_assertion): Fix compiler warnings.
681         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
682         (diversion::diversion): Fix order of initializers.
684         * src/roff/troff/div.h: Don't include `mtsm.h'.
686         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
687         (environment::environment): Fix order of initializers.
688         (environment::make_tag, environment::construct_format_state): Fix
689         compiler warnings.
691         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
692         (input_iterator::input_iterator, macro::macro): Fix order of
693         initializers.
695         * src/roff/troff/mtsm.cpp: Include only necessary header files.
696         (state_set::add, state_set::val): Fix compiler warnings.
698         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
699         (bool_value_state, int_value_state, units_value_state,
700         string_value_state): Remove comma after last element which causes
701         an error with g++ 3.3.3.
703         * src/roff/troff/node.cpp: Include `stringclass.h'.
704         (hline_node::hline_node, vline_node::vline_node,
705         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
706         warnings.
707         (zero_width_node::zero_width_node): Fix order of initializers.
709         * src/roff/troff/node.h: Don't include `mtsm.h'.
710         (hmotion_node): Fix compiler warnings.
712         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
714 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
716         * doc/groff.css: New file.
718         * doc/webpage.ms: Use `groff.css'.
719         Other small fixes.
721         * tmac/an-old.tmac (need_eo_h): New number register.
722         (TH): Emit `.eo.tl' tag after title.
723         (SH): Set `need_eo_h'.
724         (an-trap): Handle `need_eo_h'.
725         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
727         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
728         (TL): Always start diversion.
729         Updated.
730         (@AI): Always call `par@reset'.
731         (@AB): Update code for -Thtml.
732         (cov*tl-au-print): Handle -Thtml.
733         (par@reset): Handle `need_eo_tl', `need_eo_h'.
734         (@IP): Simplified.
735         (@IT-html): Removed.
736         (@SH): Set `need_eo_h' for -Thtml.
737         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
738         Set `need_eo_tl'.
739         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
740         Set `need_eo_h' for -Thtml.
741         (@EQ, @EN): Don't handle -Thtml specially.
742         (par@load-init): Don't handle -Thtml specially.
744         * tmac/www.tmac (www:paraspace): New macro.
745         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
746         (HTML</p>, HTML-TAG-NEXT): New macros.
747         (HnE): Emit tag `.eo.h' instead of break.
748         (HR): s/HTML-NS/HTML/.
749         (www-end-nowhere): End diversion only if `www-html' not set.
750         Emit `.eo.tl' tag.
751         (ULS, ULE): s|HTML|HTML</p>|.
752         (LI): Call `www:paraspace'.
753         (HEAD): New macro.
755 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
757         * src/roff/troff/request.h (macro): Make `p' public.
758         New variable `is_a_diversion'.
759         New member function `is_diversion'.
762         * src/devices/grohtml/html.h (simple_output): New member function
763         `force_nl'.
765         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
766         computation of `total'.
767         (tabs::check_init): New function.
768         (html_table::emit_table_header): Emit style data.
769         (html_table::insert_column): Improved.
771         * src/devices/grohtml/html-table.h: Updated.
773         * src/devices/grohtml/html-text.cpp (html_text::html_text):
774         Initialize `start_space' with TRUE.
775         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
776         cases.
777         (html_text::flush_text): Set `start_space' flag.
778         (html_text::uses_indent, html_text::remove_para_space,
779         html_text::get_alignment): New functions.
780         (html_text::push_para): Updated.
781         (html_text::do_para): Check for empty argument.
782         Don't set `space_emitted'.
783         (html_text::do_space, html_text::emit_space): Updated.
785         * src/devices/grohtml/html-text.h (tag_definition): New variable
786         `really_issued'.
787         (html_text): New member function `uses_indent', `remove_para_space',
788         `get_alignment'.
790         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
791         function.
792         (simple_output:nl): Always emit `\n'.
794         * src/devices/grohtml/post-html.cpp: Include `string.h'.
795         (BASE_POINT_SIZE): Removed.
796         (base_point_size, head_info): New global variables.
797         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
798         `is_eo_h'.
799         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
800         tags, respectively.
801         (page::add_and_encode): Pass additional parameter for tag flag.
802         (assert_pos): New structure.
803         (assert_state): New class.
804         (html_printer): Remove `indentation', `prev_indent'.
805         Add variables `troff_indent', `device_indent', `temp_indent'.
806         Add variables `seen_indent', `next_indent', `seen_pageoffset',
807         `next_pageoffset', `seen_linelenght', `next_linelength',
808         `seen_center', `next_center', `seen_space', `seen_break', `as'.
809         Add member functions `do_check_center', `do_space', `do_head',
810         `get_troff_indent', `restore_troff_indent', `handle_assertion',
811         `handle_state_assertion', `do_end_para', `set_char_and_width'.
812         Change argument to `do_fill' to `char *'.
813         Update constructor.
814         (html_printer::emit_raw): Call `shutdown_table'.
815         Use new functions.
816         (html_printer::do_center): Simplified.
817         (html_printer::do_title): Improved.
818         (html_printer::write_header): Emit one more newline.
819         Use new functions.
820         (html_printer::do_heading, html_printer::do_indent,
821         html_printer::do_eol, html_printer::do_tab_ts,
822         html_printer::do_tab, html_printer::do_tab0,
823         html_printer::calc_po_in, html_printer::next_horiz_pos,
824         html_printer::remove_courier_tabs,
825         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
826         Updated.
827         (html_printer::do_linelength, html_printer::do_pageoffset,
828         html_printer::do_indentation, html_printer::do_tempindent,
829         html_printer::do_tab_te): Simplified.
830         (html_printer::do_pointsize): Check whether point size is really
831         associated a `.tl' tag.
832         (html_printer::do_break): Rewritten.
833         (html_printer::troff_tag): Improved.
834         (html_printer::flush_globs): Updated.
835         (html_printer::lookahead_for_tables): Handle `is_br'.
836         Use new functions.
837         (html_printer::set_char): Check `sbuf_style.f'.
838         (html_printer::write_navigation): Use string comparison.
839         (html_printer::~html_printer): Emit `head_info'.
840         (html_printer::special): Rewritten.
841         (get_str, make_val): New functions.
842         (main): New option `s' to set the base point size.
844         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
846 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
848         * src/roff/troff/node.cpp: New extern `debug_state'.
849         Include `stringclass.h' and `mtsm.h'.
850         Implement new classes and class members from `node.h'.
851         (real_output_file): Make `fp' public.
852         (troff_output_file): New variables `cur_div_level' and `tag_list'.
853         Update constructors.
854         (troff_output_file::really_print_line): Check whether we should push
855         the current troff state and use the state at the start of the
856         invocation of this diversion.
857         (troff_output_file::add_to_tag_list): New member function.
858         (node::add_char): Handle `glyph_comp_np'.
860         * src/roff/troff/node.h: Include `mtsm.h'.
861         (node): New variables `state', `push_state', `div_nest_level',
862         `is_special'.  Update constructors, all descendants.
863         Pass additional argument to `add_char' member function.
864         New virtual member functions `is_tag', `debug_node',
865         `debug_node_list'.  Update all descendants.
866         (tag_node): New class for handling tags.
867         (output_file): Add variable `state'.
869 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
871         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
872         providing a minimal troff state machine to emit meta tags for the
873         post-grohtml device driver.
875         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
876         files.
878 2004-10-09  Werner LEMBERG  <wl@gnu.org>
880         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
882 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
884         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
886         * src/roff/troff/div.h: Include `mtsm.h'.
887         (diversion): New variables `any_chars_added', `needs_push',
888         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
889         `saved_suppress_next_eol', `modified_tag'.
890         New virtual member function `is_diversion'.  Update all descendants.
892         * src/roff/troff/div.cpp (diversion::diversion,
893         macro_diversion::macro_diversion): Updated.
894         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
895         `suppress_next_eol'.
896         (top_level_diversion::space): Handle `curenv->seen_space'.
897         (page_offset): Update tag handling.
898         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
900         * src/roff/troff/env.h (environment): Make `tabs' public.
901         Remove `ignore_next_eol', `emitted_node'.
902         Update `output_line', `output'.
903         New variables `seen_space', `seen_eol', `suppress_next_eol',
904         `seen_break'.
905         New member functions `construct_state', `make_tag',
906         `construct_format_state, `construct_new_line_state,
907         `dump_troff_state'.
908         Remove `add_html_tag', `make_html_tag'.
910         * src/roff/troff/env.cpp: New externs `suppress_push',
911         `get_diversion_state', `global_diverted_space'.
912         (pending_output_line): New variable `was_centered'.
913         Update constructor and all callers.
914         (pending_output_line::output): Call `curenv->construct_format_state'.
915         (environment::environment, environment::copy): Updated.
916         (environment::output): Handle `was_centered'.
917         (environment::add_char): Handle construct and diversion state.
918         (environment::add_node): Handle construct state.
919         (environment::newline): Handle `was_centered'.
920         (environment::output_line): Updated.
921         (environment::possibly_break_line): Updated.
922         Update tag handling.
923         (environment::add_html_tag): Replaced with...
924         (environment::make_tag): New function.
925         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
926         (environment::dump_troff_state): New debugging function.
927         (environment::construct_state, environment::construct_format_state,
928         environment::construct_new_line_state): New functions.
929         (environment::do_break): Updated.
930         Handle `global_diverted_space'.
931         (environment::handle_tag): Update tag handling.
932         (point_size, fill, do_break_request): Don't call `add_html_tag'.
933         (no_fill): Don't call `add_html_tag'.
934         Set `suppress_next_eol'.
935         (center, right_justify, line_length, indent, temporary_indent,
936         set_tabs):
937         Update tag handling.
939         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
940         (input_iterator): New variables `is_diversion', `diversion_state'.
941         Update constructors.
942         (input_stack): New member functions `get_div_level',
943         `get_diversion_state', `check_end_diversion'.
944         New variables `div_level', `diversion_state'.  Initialize them.
945         (suppress_push, global_diverted_space): New global variables.
946         (input_stack::finish_get, input_stack::finish_peek,
947         input_stack::remove_boundary, input_stack::end_file,
948         input_stack::clear, input_stack::pop_macro): Call
949         `check_end_diversion'.
950         (input_stack::push): Handle `div_level' and `diversion_state'.
951         (get_diversion_state): New function.
952         (diverted_space_node::reread): Handle `global_diverted_space'.
953         (macro::macro): Update constructors.
954         (macro::is_diversion): New function.
955         (macro::operator=): Set `is_a_diversion'.
956         (string_iterator): New member function `is_diversion'.
957         (string_iterator::string_iterator): Update constructors.
958         (string_iterator::fill): Set `div_nest_level'.
959         (macro_iterator): New member function `is_diversion'.
960         (do_if_request): Handle `suppress_push'.
961         (tag, taga): New functions.
962         (init_input_requests): Add `tag' and `taga' requests.
964 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
966         * src/include/font.h (font): New member function
967         `get_image_generator'.
968         New variables `unscaled_charwidths' and `image_generator'.
970         * src/libs/libgroff/font.cpp (font::get_width): Always return the
971         character's unscaled width if `font::unscaled_charwidths' is set.
972         (font::get_image_generator): New function.
973         (font::load_desc): Check the `unscaled_charwidths' and
974         `image_generator' keywords.
976         * src/libs/libgroff/fontfile.cpp: Initialize
977         `font::unscaled_charwidths' and `font::image_generator'.
979         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
981         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
983         * man/groff_font.man: Document `unscaled_charwidths' and
984         `image_generator'.
986         * src/preproc/html/pre-html.cpp: Include `device.h'.
987         (image_gen): New global variable.
988         (imageList::createPage): Use `image_gen'.
989         (main): Use `image_generator' keyword.
991 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
993         * tmac/html.tmac: Handle \[sqrtex].
995 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
997         * src/include/printer.h (printer): New virtual method `round_width'.
999         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1000         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1001         src/devices/grotty/tty.cpp (printer::round_width): New function
1002         member.
1004         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1005         function member.
1006         (html_printer::set_numbered_char): Use it.
1008 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1010         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1012         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1014         * configure: Regenerated.
1016         * Makefile.in (GHOSTSCRIPT): New variable.
1017         (MDEFINES): Add GHOSTSCRIPT.
1019 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1021         * INSTALL.gen: Updated (taken from texinfo CVS).
1023 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1025         * NEWS: Updated.
1027 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1029         * tmac/groff_www.man: Revised and updated.
1031 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1033         Fix \$@ and \$* to handle any number of arguments.
1035         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1036         characters.
1038         * src/roff/troff/input.cpp (input_iterator::internal_level):
1039         Removed.
1040         (input_stack): New member functions `increase_level' and
1041         `decrease_level'.
1042         (input_stack::get_level): Don't use `internal_level'.
1043         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1044         (end_quote_iterator): Completely removed.
1045         (interpolate_arg): Build string for \$@ and \$* which is then
1046         pushed onto the input stack.
1048 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1050         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1051         2004-09-19.
1053 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1055         * tmac/an-old.tmac (ne): Using default scaling operator.
1057 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1059         This change implements the following features:
1061         PORPHANS
1062           New numeric register: Defines number of lines following LP, PP,
1063           QP, IP or XP, which must be kept together, before any automatic
1064           page break.  If insufficient space remains on the current page, a
1065           page break is forced before the new paragraph begins.
1067         HORPHANS
1068           New numeric register: Sets number of lines of following paragraph
1069           which must be kept with a heading, defined by NH or SH, before any
1070           automatic page break.  If insufficient space remains on the
1071           current page, a page break is forced before the heading.
1073         GROWPS
1074           (Thanks to Joerg van den Hoff, for this idea).
1076           New numeric register: Sets the first level of heading (set with
1077           NH), which will keep the same point size as body text; e.g. if
1078           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1079           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1080           progressively larger point sizes, determined by \n[PSINCR] (see
1081           below).
1083         PSINCR
1084           New numeric register: Sets the point size increment for each level
1085           of heading, (set with NH), below the threshold level set by
1086           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1087           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1088           and all other levels will remain at 10pt, (because \n[PS] = 10).
1090         SH
1091           Existing macro now accepts a numeric argument, to make heading
1092           size match that of NH with same argument value, when the
1093           GROWPS/PSINCR feature is enabled.
1095         SN-DOT
1096           New string, set by NH macro, replaces the existing (undocumented)
1097           use of SN, to represent the assigned section number.
1099         SN-NO-DOT
1100           New string, set by NH macro, represents the assigned section
1101           number, but omits the terminal period (periods at intermediate
1102           levels are retained).
1104         SN
1105           String set by NH macro, originally undocumented, now implemented
1106           as an alias for SN-DOT (which reproduces original behaviour).
1108         * tmac/s.tmac (PORPHANS): New register.
1109         (par*start): Use it.
1110         (HORPHANS, GROWPS, PSINCR): New registers.
1111         (SH-NO-TAG, @SH): Use them.
1112         (@NH): Improved.
1114 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1116         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1117         of `Ds' and `De' macros.
1119 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1121         In tbl, handle \a as an interpreted leader character if in
1122         compatibility mode.
1124         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1125         LEADER_CHAR): New macros.
1126         (compatible_flag): New declaration.
1128         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1129         LEADER_3, and LEADER_4 to `state'.
1130         (table_input::get): Handle `\a'.
1132         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1133         (LEADER_REG): New macro.
1134         (table::init_output): Define LEADER_REG string register if in
1135         compatibility mode.
1137         * src/preproc/tbl/tbl.man: Document it.
1139 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1141         * tmac/doc.tmac (An): Fix error message.
1143 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1145         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1146         file can't be opened.  UNIX tbl has the same behaviour.
1148 2004-08-05  Y T  <doarhop@hotmail.com>
1150         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1151         (DBRead): If in compatibility mode, take into account the text
1152         when computing figure boundaries.
1154 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1156         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1157         from Tadziu Hoffmann.
1159 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1161         * doc/meref.me: Document `_M' register.
1163 2004-08-03  Martin Husemann  <martin@duskware.de>
1165         Make hpftodit work correctly on big-endian systems.
1167         * src/utils/hpftodit/hpftodit.cpp (File): New method
1168         `get_uint32(char *)'.
1169         (entry): New member `orig_value'.
1170         (read_tags): Use new method.
1171         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1172         Updated.
1174 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1176         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1177         are already in X11's `macros.t' file.
1179 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1181         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1182         Fix casting bug.
1183         (read_and_output_pcltypeface): Handle strings with length <= 4.
1185 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1187         * tmac/s.tmac (pg@top): Don't save `PO' register.
1188         (pg*end-col, pg*end-page): Directly use `PO' register.
1190 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1192         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1194         * src/preproc/refer/refer.cpp (output_references): Check for
1195         empty hash table.
1196         * src/preproc/refer/refer.man: Improve documentation of
1197         `bibliography' command.
1199 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1201         Add requests `fcolor' and `gcolor'.
1203         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1204         New functions.
1205         (init_env_requests): Add `fcolor' and `gcolor'.
1207         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1209         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1210         Document new requests.
1212 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1214         Add support for fractional point sizes in ms macros.  A value for
1215         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1216         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1218         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1219         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1221         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1223 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1225         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1226         Update constructor.
1227         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1228         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1230 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1232         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1233         * tmac/groff_mdoc.man: Updated.
1235 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1237         * doc/groff.texinfo: Further improve documentation of `hcode'.
1239 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1241         Improve appearance of arrows in pic.
1243         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1244         arrow head thin.
1245         Use two line segments for drawing non-filled arrow head.
1246         (line_object::print, spline_object::print): Shorten line length to
1247         avoid arrow sticking.
1248         (arc_object::print): Take arrow direction into account.
1250 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1252         * tmac/groff_www.man: Update documentation of .MPIMG.
1254 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1256         * tmac/an-old.tmac (RI): Always start with font `R'.
1257         (RI, IR): Properly end with font `R'.
1259 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1261         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1262         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1263         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1264         Don't pass more than six arguments to .R, .I, .B, etc., for
1265         compatibility with traditional troff macros.
1267 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1269         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1270         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1271         Update all users.
1272         (PUSH_COMP_MODE): New internal character constant.
1273         Update all users.
1275         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1276         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1277         (token::next, macro::append): Handle PUSH_COMP_MODE.
1278         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1279         POP_GROFFCOMP after each of the decoded arguments to make them
1280         independent from the compatibility mode status.
1281         (comp_mode): Add `COMP_ENABLE'.
1282         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1283         (define_string, append_string, define_macro, define_indirect_macro,
1284         append_macro, append_indirect_macro): Handle `compatible_flag'.
1285         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1287         * man/groff_diff.man, doc/groff.texinfo: Updated.
1289 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1291         * doc/groff.texinfo: Improve documentation of `hcode'.
1292         Use @documentencoding and convert document to latin-1; to do that
1293         make latin characters active and assign proper macros (within a
1294         @tex...@end tex environment).
1295         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1296         * doc/Makefile.sub (groff): Ditto.
1298 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1300         Implement two new conditional operators `F <name>' and `S <name>'
1301         which check whether <name> is a valid font or style, respectively.
1303         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1304         (text_file::text_file): Updated.
1305         (text_file::error): Don't emit message if `silent' is set.
1306         (font::load_font): Add optional third argument (which is directly
1307         passed to `load'.
1308         (font::load): Add optional second argument to check the header of
1309         a font only, without emitting warning or error messages.
1310         * src/include/font.h (font): Updated.
1312         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1313         conditionals.
1314         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1315         fourth argument to check a font without mounting.
1316         (check_font, check_style): New functions.
1317         * src/roff/troff/node.h: Updated.
1319         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1320         Updated.
1322 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1324         Implement new string-valued register `.sty' to return the current
1325         style name.
1327         * env.cpp (environment::get_style_name_string): New function.
1328         (init_env_requests): Add `.sty' register.
1329         * env.h (environment): Updated.
1330         * node.cpp (font_info): Make `get_style_name' a friend.
1331         (get_style_name): New function.
1332         * node.h: Updated.
1334         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1335         Updated.
1337 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1339         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1340         `nospaces' option.
1342 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1344         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1345         and \n[mo] to avoid dependency on current date.
1347 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1349         * Makefile.sub (install_data): New target.
1351 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1353         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1355 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1357         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1358         order of libraries.
1359         (install_data): Add $(srcdir).
1361         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1362         libraries.
1364 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1366         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1367         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1368         Add test for Xmu library.
1369         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1370         GROFF_APPRESDIR_DEFAULT): New macros.
1372         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1373         and GROFF_APPRESDIR_DEFAULT.
1375         * configure: Regenerated.
1377         * Makefile.in (appresdir): New variable.
1378         (MDEFINES): Add appresdir.
1380         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1381         -Xt.
1382         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1384         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1385         `$(srcdir)/eign', not `eign'.
1387         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1389         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1390         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1391         Protect (g)xditview with `\%' to avoid hyphenation.
1392         Other minor formatting.
1394 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1396         Integrate gxditview into groff's standard directory hierarchy.
1398         * src/xditview/*: Moved to ...
1399         * src/devices/xditview/*: Here.
1400         Moved DviChar.h and XFontName.h to src/include.
1401         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1402         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1403         Moved xtotroff.c to new directory src/utils/xtotroff.
1404         Provide proper Makefile.sub files (reusing the stuff from
1405         Imakefile.in).
1406         DESC renamed to DESC.in.
1407         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1408         Converted everything from K&R to ANSI C.
1409         Decorated with const where appropriate.
1410         Cast string constants with `String' and `char *' where appropriate.
1411         Made it compile with C++ (used as a C compiler).
1412         Removed other minor compiler warnings.
1414         * src/devices/xditview/device.c: Include config.h, string.h, and
1415         defs.h.
1416         Don't declare `exit', `strtok', `strchr', and `getenv'.
1417         (FONTPATH): Remove.
1419         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1420         `XFormatFontName'.
1422         * src/devices/xditview/xditview.c: Include config.h.
1423         Include stdio.h earlier.
1424         Protect declaration of `popen' and `pclose' with
1425         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1426         Replace `caddr_t' with `XtPointer'.
1427         (MakePromptFunc): New typedef.
1428         (DoPrint): Use RETSIGTYPE.
1429         (promptfunction): Change type to MakePromptFunc.
1430         (MakePrompt): Use MakePromptFunc for third argument.
1431         (xmalloc): Removed.
1433         * src/devices/xditview/ad2c: Add casts to `String'.
1435         * src/include/XFontName.h (XFontNameString): Don't use array
1436         notation.
1437         Add prototypes for `XParseFontName', `XFormatFontName',
1438         `XCompareFontName', and `XCopyFontName'.
1440         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1441         `XFontName.h'.
1443         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1444         Don't declare `XParseFontName' and `XFormatFontName'.
1445         (xmalloc): Removed.
1446         (main): Remove `optind' and `optarg'.
1448         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1449         (to select programs which need X).
1450         Make XDEVIDIRS depend on `FORCE'.
1451         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1452         X support).
1453         (MDEFINES): Updated.
1454         (LIBDIRS): Use XLIBDIRS.
1455         (CPROGDIRS): Use XPROGDIRS.
1456         (DEVDIRS): Remove font directories for gxditview.
1457         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1458         (EXTRADIRS): Remove src/xditview.
1460         * Makefile.sub (DISCLEANFILES): Updated.
1462         * Makefile.comm (LIBXUTIL): New variable.
1463         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1464         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1466         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1468         * aclocal.m4 (GROFF_X11): New function.
1470         * configure.ac: Call GROFF_X11.
1471         Don't create src/xditview/Imakefile.
1472         Don't emit notice how to build gxditview.
1474         * configure: Regenerated.
1476         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1478 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1480         * Makefile.in (CPPFLAGS): Define.
1481         (MDEFINES): Add CPPFLAGS.
1483 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1485         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1487 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1489         Fix problems with `friend name injections'.
1491         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1492         make_script_box), src/roff/troff/div.h (end_diversions),
1493         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1494         change 2004-04-08.
1496 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1498         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1500 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1502         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1503         src/libs/libgroff/color.cpp: Include lib.h.
1505 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1507         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1508         through Forte 6u1, and for how to get GNU make on Solaris.
1510 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1512         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1513         by Paul Eggert.
1515 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1517         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1518         rule.
1520 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1522         * REVISION: Set to 2.
1524         * aclocal.m4 (GROFF_STDINT_H): Removed.
1525         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1527         * configure.ac: Updated.
1528         * configure, src/include/config.hin: Regenerated.
1530         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1531         inttypes.h conditionally.
1533 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1535 Version 1.19.1 released
1536 =======================
1538 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1540         * src/preproc/refer/label.y (same_author_last_name,
1541         same_author_name): Handle empty sort keys.
1543 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1545         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1546         tmac/TODO: Updated.
1548         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1549         doc-str-Lb-librt): Reset font.
1550         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1551         Provide `doc-str-Lb' to reset font.
1552         * tmac/groff_mdoc.man: Updated.
1554 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1556         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1557         snprintf versions which don't conform to ANSI C 99 (this is,
1558         counting the string's trailing null byte in the return value).
1560 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1562         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1563         that all implementations of sprintf handle null pointers correctly.
1565 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1567         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1568         Document `.U' register.
1570         * src/roff/troff/env.cpp (environment::mark_last_line)
1571         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1573 2004-05-04  Larry Kollar  <kollar@alltel.net>
1575         New read-only register `.U'; it returns 1 in safer mode and 0
1576         otherwise.
1578         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1579         register.
1581 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1583         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1585 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1587         * src/include/font.h (font): Use `int' for ch_index.
1588         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1589         font::compact): Updated.
1591         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1592         warnings.
1594         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1595         (hyphen_word): Fix compiler warnings.
1596         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1597         `char'.
1598         Update all callers.
1599         (get_delim_number, get_line_arg): Change second argument type to
1600         `unsigned char'.
1601         (macro_header::copy, token::next, do_define_string,
1602         do_define_character, substring_request, asciify_macro,
1603         unformat_macro, read_size, non_interpreted_node::interpret,
1604         while_request, main: Fix compiler warnings.
1605         (read_color_draw_node): Initialize `col'.
1607         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1608         `start_col' and `end_col' of type `int'.
1609         (vertical_rule): Make `col' of type `int'.
1611         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1612         for EOF.
1614         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1615         New arrays.
1616         (format_serial): Use them to remove dependency on ASCII.
1618         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1619         compiler warning.
1620         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1621         Ditto.
1623         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1624         compiler warnings.
1625         (glyph): Change type of `hpos' to `int'.
1627         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1628         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1630         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1632         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1634 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1636         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1637         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1638         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1639         `double' instead of `float' everywhere.
1640         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1641         everywhere.
1642         (main): Add return value.
1643         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1644         everywhere.
1645         Update all user functions.
1647         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1648         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1649         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1650         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1651         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1652         src/roff/troff/input.cpp, src/roff/troff/request.h,
1653         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1654         declarations.
1656         * src/utils/indxbib/signal.c: Include stdlib.h.
1658 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1660         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1661         before the first page.
1663 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1665         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1666         (doc-operating-system-*): Updated.
1667         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1668         (doc-str-Lb-*): Add more library names.
1670 2004-04-10  Art Haas  <ahaas@airmail.net>
1672         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1673         use anonymous type.
1675 2004-04-09  Art Haas  <ahaas@airmail.net>
1677         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1679 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1681         * arch/misc/shdeps.sh: Generate better comment for sed script.
1683 2004-04-08  Art Haas  <ahaas@airmail.net>
1685         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1686         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1687         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1688         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1689         (polyfill), src/preproc/grn/main.cpp (polyfill),
1690         src/preproc/refer/command.cpp (command_table),
1691         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1692         gcc 3.5 doesn't like).
1694 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1696         Removing many compiler warnings.  groff should now compile with
1697         a C++ compiler used for C files also.  [Simple variable renamings
1698         to avoid shadowing aren't logged in detail.]
1700         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1701         (draw_dvi_printer::draw) ['c']: Enclose in block.
1703         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1704         (page::add_line): Fix typos.
1705         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1707         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1708         Some local variable renamings.
1709         * src/devices/grolbp/lbp.h: Some local variable renamings.
1711         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1712         variable renamings.
1714         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1715         Remove redundant local variable declaration.
1716         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1717         Don't use `caddr_t' but `void *'.
1718         Enclose functions with `extern "C"' for C++.
1720         * src/libs/libdriver/input.cpp (remember_filename,
1721         remember_source_filename): Use cast for string constant.
1723         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1724         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1725         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1726         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1727         style.
1728         Enclose functions with `extern "C"' for C++.
1729         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1730         (needs_quoting): Return `int'.
1731         (quote_arg): Add proper casts to malloc and realloc.
1732         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1733         various MS Windows environments.
1734         (spawnvp_wrapper): Add proper cast to malloc.
1736         * src/preproc/eqn/box.h: Remove redundant declarations of
1737         `make_script_box', `make_mark_box' and `make_lineup_box'.
1738         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1739         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1740         variable renamings.
1742         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1743         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1744         (dx, dy): Renamed functions to...
1745         (deltax, deltay): This.
1746         * src/preproc/grn/main.cpp: Some local variable renamings.
1747         (deffont): Add `const'.
1748         (initpic, conv): Use cast for string constant.
1750         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1751         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1752         (char_buffer::run_output_filter): Second argument is unused.
1753         * src/preproc/html/pushback.cpp: Some local variable renamings.
1755         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1756         * src/preproc/pic/object.cpp: Some local variable renamings.
1758         * src/preproc/refer/label.y (lookup_label): Remove redundant
1759         declaration of local variable.
1761         * src/preproc/soelim.cpp: Remove redundant declaration of
1762         `interpret_lf_args'.
1764         * src/preproc/tbl/main.cpp: Some local variable renamings.
1766         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1767         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1768         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1769         Don't use C++-style comments.
1771         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1772         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1773         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1774         renamings.
1775         * src/roff/troff/div.h: Remove redundant declaration of
1776         `end_diversions'.
1777         * src/roff/troff/troff.h: Remove redundant declaration of
1778         `cleanup_and_exit'
1779         * src/roff/troff/input.cpp: Remove redundant declaration of
1780         `handle_first_page_transition' and `process_input_stack'.
1782         * src/utils/hpftodit.cpp: Some local variable renamings.
1784         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1785         for C++.
1786         Don't define RETSIGTYPE.
1787         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1789         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1790         (error): Use `const' in argument.
1791         (main): Remove redundant declaration of `optind'.
1792         Move declaration of `Version_string' to top-level.
1794         * PROBLEMS: Document difficulties compiling signal.c if a C++
1795         compiler is used for C.
1797 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1799         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1801 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1803         Make scripts like nroff.sh and neqn.sh portable across various
1804         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1805         non-POSIX path separators.  The idea is to extend those scripts to
1806         decide at run-time (of the script) which path separator to use.
1808         * arch/misc/Makefile.sub: New file.
1809         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1810         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1811         a proper definition of the variable `GROFF_RUNTIME'.
1813         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1814         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1815         (PROGDEPDIRS): New variable.
1816         `FORCE' it.
1817         (PROGDIRS): Add PROGDEPDIRS.
1819         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1820         Don't substitute @SEP@ and @BINDIR@.
1821         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1822         (PATH): Use GROFF_RUNTIME.
1824         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1825         Don't substitute @SEP@ and @BINDIR@.
1826         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1827         (PATH): Use GROFF_RUNTIME.
1829 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1831         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1832         Cygwin which doesn't handle stderr correctly.
1834 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1836         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1837         against empty argument.  Problem reported by <cgd@broadcom.com>.
1839 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1841         * Makefile.in (SEP): Replaced with...
1842         (RT_SEP, SH_SEP): Separators for the target platform's native path
1843         separator and the build environment, respectively.
1844         (fontpath, tmacpath): Use RT_SEP.
1845         (MDEFINES): Updated.
1847         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1848         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1849         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1850         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1852 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1854         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1855         reduce alignment problems with newer printers which use built-in
1856         TrueType fonts (instead of the older Intellifonts).  The ideal
1857         solution is to provide a second set of groff metric files, but this
1858         is extremely time-consuming to produce, given that HP's metric
1859         files are very rudimentary.
1861 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1863         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1864         s/operand/argument/ in error message.
1866 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1868         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1869         is in use.
1871 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1873         * tmac/s.tmac (XE): Fix error message.
1875 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1877         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1878         New macros.
1880         * src/roff/groff/pipeline.c: Declare strcasecmp.
1881         (run_pipeline) [_WIN32]: Use function name variants which don't
1882         start with `_'.
1883         Fix stream handling.
1885 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1887         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1888         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1889         for platforms which use the native Win32 runtime libraries.
1890         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1892         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1893         QUOTE_ARG_REALLOC_ERROR): Fix string.
1895         * src/preproc/html/pre-html.cpp: Remove declaration of
1896         `spawnvp_wrapper'.
1897         Don't use __MINGW32__.
1898         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1899         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1900         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1901         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1902         calls to `set_redirection' and `WAIT'.
1903         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1904         Fix calls to `set_redirection' and `save_and_redirect'.
1905         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1906         to `set_redirection' and `save_and_redirect'.
1907         (usage): Fix message.
1908         (makeTempFiles, main): Use `DEBUG_FILE'.
1910 2004-02-21  Werner LEMBERG  <wl@gnu.org>
1912         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
1914 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
1916         * src/libs/libgroff/quotearg.c: New file, providing proper argument
1917         quoting for MSVC's spawn* and exec* functions.
1918         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
1919         spawnvp with proper quoting for MSVC.
1921         * src/libs/libgroff/assert.cpp (program_name),
1922         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
1923         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
1925         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
1927         * src/include/error.h (program_name): Declare as `extern "C"'.
1928         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
1930 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
1932         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
1933         spawnvp_wrapper.
1934         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
1936 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
1938         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
1939         variable.
1940         (sbasename) [__MSDOS__ || ...]: New function.
1941         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
1942         generic algorithm.
1943         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
1944         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
1945         of XXX.
1946         Use STDOUT_FILENO instead of hardcoded file handle.
1947         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
1949 2004-02-19  Werner LEMBERG  <wl@gnu.org>
1951         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
1952         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
1954 2004-02-18  Werner LEMBERG  <wl@gnu.org>
1956         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
1957         new font and mapping files.
1959 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
1960             Keith Marshall  <keith.d.marshall@ntlworld.com>
1962         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
1963         an input pipe.  This is needed for the MSVC compiler to make troff's
1964         `-o' option work.
1966         * src/roff/troff/div.cpp: Include nonposix.h.
1967         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
1969 2004-02-17  Werner LEMBERG  <wl@gnu.org>
1971         * font/devlj4/generate/special.awk: New script.
1972         * font/devlj4/generate/Makefile (S): Use special.awk.
1973         * font/devlj4/*: Regenerated, including the following new files:
1974         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
1975         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
1976         * NEWS: Document new lj4 fonts and revised hpftodit.
1978 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
1980         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
1982 2004-01-25  Werner LEMBERG  <wl@gnu.org>
1984         * src/libs/libgroff/progname.cpp: Replaced with...
1985         * src/libs/libgroff/progname.c: New file.
1986         * src/libs/libgroff/Makefile.sub: Updated accordingly.
1988 2004-01-17  Werner LEMBERG  <wl@gnu.org>
1990         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
1992 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
1994         * font/devlj4/generate/wingdings.map,
1995         font/devlj4/generate/symbol.map: Include unnamed glyphs.
1996         Use groff glyph names where possible.
1997         * src/devices/grolj4/lj4_font.man: Minor updates.
1999 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2001         * tmac/www.tmac (DC): Handle TTY devices.
2003         * doc/webpage.ms: Document viewCVS from ffii.org.
2004         * NEWS, README: Updated.
2006         * src/roff/groff/groff.man: Mention lj4_font man page.
2008         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2009         variables.
2010         (FONTS): Add SYMBOL and WINGDINGS.
2011         (SYMBOL, WINGDINGS): New targets.
2013 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2015         * src/devices/grolj4/lj4_font.man: New man page.
2016         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2017         * src/devices/grolj4.man: Mention lj4_font man page.
2019         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2020         * src/utils/hpftodit/hpftodit.man: Document it.
2021         (CW): New macro.
2022         Remove details about fonts (which are now in lj4_font.man).
2024         * font/devlj4/generate/symbol.map,
2025         font/devlj4/generate/wingdings.map: New files.
2027 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2029         * README: Mention ffii's viewcvs access.
2031 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2033         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2035 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2037         Revert most of the change from 2004-01-03 to better control used
2038         symbol sets.
2040         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2041         (text_symbol_sets, special_symbol_sets): New arrays.
2042         (symbol_set_table): New global variable.
2043         (read_symbol_sets): Use search order given in the text_symbol_sets
2044         and special_symbol_sets arrays.  If command line flag -a is not
2045         given, search both arrays.
2046         (output_charset): Require x_height_tag only for command line flag -i.
2048 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2050         Implement string-valued registers \n[.m] and \n[.M] to return the
2051         name of the current drawing and background color, respectively.
2053         * src/roff/troff/symbol.h: Moved to...
2054         * src/include/symbol.h: Here.
2055         Small fixes to make it work outside of the `troff' directory.
2056         * src/roff/troff/symbol.cpp: Moved to...
2057         * src/libs/libgroff/symbol.cpp: Here.
2058         Small fixes to make it work outside of the `troff' directory.
2060         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2061         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2062         Updated.
2064         * src/include/color.h: Include symbol.h.
2065         (color): Add new field `nm'.
2066         * src/libs/libgroff/color.cpp (color::color): Updated.
2068         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2069         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2070         src/roff/troff/reg.cpp: Don't include symbol.h.
2072         * src/roff/troff/env.cpp: Don't include symbol.h.
2073         (environment::get_glyph_color_string,
2074         environment_get_fill_color_string): New member functions.
2075         (init_env_requests): Handle `.m' and `.M' registers.
2076         * src/roff/troff/input.cpp: Don't include symbol.h.
2077         (default_symbol): Moved to symbol.cpp/symbol.h.
2078         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2079         to color constructor.
2080         * src/roff/troff/env.h: Updated.
2082         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2083         Document new registers.
2085 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2087         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2088         space_node::nbreaks): Protect against zero `next' field.
2090 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2092         In hpftodit, use the symbol sets offered in the TFM.
2094         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2095         (symbol_set, text_symbol_sets, special_symbol_sets,
2096         symbol_set_table): Removed.
2097         (get_printcode): Removed.
2098         (read_symbol_sets): Initialize `symbol_set' field with
2099         `NO_SYMBOL_SET'.
2100         Simplify code to just use the `kind' value.
2101         (output_charset): Improve output formatting.
2102         (dump_symbols): Simplified.
2104 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2106         * font/devlj4/generate/text.map: Add more MSL numbers.
2108 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2110         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2111         (text_symbol_sets): Add more symbol sets.
2112         (debug_flag): New static variable (moved from `main').
2113         (get_printcode, show_symset): New functions.
2114         (main): Remove `debug_flag'.
2115         (output_charset): Use `show_symset'.
2116         (dump_symbols):  Use `show_symset'.
2117         Print symsets for all glyphs.
2118         (read_map): Actually call `unicode_to_ucode_make' but this time
2119         correctly.
2121 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2123         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2124         Fix placement of comments.
2126 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2128         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2129         option `-d' is given.
2130         (output_charset): Improve warning messages to give more information.
2131         (dump_symbols): Make information more precise.
2132         (usage): Updated.
2133         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2134         appear as-is and shouldn't be decomposed.
2136 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2138         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2139         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2140         (FONTS): Add TrueType font families Arial and Times New Roman.
2141         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2142         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2143         `fl'.
2145 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2147         * test-groff.in (SEP): Quote value.
2148         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2149         `tem' to `char*' to avoid deallocation of a pointer to a constant
2150         object which some compilers don't like.
2152 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2154         * font/devlj4/generate (text.map, special.map): Rewritten to work
2155         with the new hpftodit version.
2157 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2159         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2160         set and 8bit character code for all glyphs also.
2162 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2164         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2166 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2168         More fixes for MSVC compiler.
2170         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2171         $(SEP).
2173         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2174         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2175         (getpid) [_MSC_VER]: Remove.
2176         Include direct.h and process.h conditionally.
2178         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2179         parentheses for a_delete.
2181         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2183         * test-groff: Replaced with...
2184         * test-groff.in: This new template to handle path separator
2185         properly.
2187         * configure.ac: Check for direct.h and process.h.
2188         Generate test-groff script.
2189         * configure, src/include/config.hin: Regenerated.
2191 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2193         Add integral extension glyph.
2194         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2196         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2198         * font/devps/generate/textmap: Provide entry for `integralex' to
2199         override (old) PUA value of the AGL.
2200         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2201         * font/devps/*: Regenerated.
2203         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2204         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2206 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2208         Add forgotten `coproduct' symbol (already available for DVI).
2210         * font/devhtml/R.proto, font/devps/generate/textmap,
2211         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2212         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2213         U+2210 (\[coproduct]).
2215 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2217         hpftodit has been extended to handle TrueType metric files and
2218         more glyphs.  See hpftodit.man for more details.
2220         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2221         ctype.h, and unicode.h.
2222         s/msl/charcode/ everywhere since we now handle Unicode values also.
2223         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2224         Use it where appropriate.
2225         (MULTIPLIER): Replaced with...
2226         (multiplier): New global static variable.
2227         (scale): Updated.
2228         (tag_type): Add more TFM tags.
2229         (tag_name): New array.
2230         (ENUM_TYPE, FLOAT_TYPE): Removed.
2231         (BYTE_TYPE): New value assigned.
2232         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2233         (text_symbol_sets, special_symbol_sets): Extended to cover more
2234         sets.
2235         (check_type): Add return value.
2236         (check_units): Add parameters to get ppi and upem values.
2237         Handle TrueType TFM data.
2238         (output_font_name): New function.
2239         (output_charset): Add parameter to handle TFM type.
2240         Handle TrueType TFMs also.
2241         (em_fract): New macro.
2242         (dump_tags): Be much more verbose and handle more tags.
2243         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2244         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2245         functions.
2246         (read_map): Add parameter to handle TFM type.
2247         Handle both MSL and Unicode mappings.
2248         (main): Add two new command line options `-a' and `-q'.
2249         Updated to make use of new functions.
2250         (usage): Updated.
2252         * src/utils/hpftodit/hpuni.cpp: New file.
2254         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2255         Updated.
2257 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2259         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2261 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2263         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2264         by Michail Vidiassov <master@iaas.msu.ru>.
2266 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2268         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2269         and u0049_0307.
2270         Add missing latin-2 glyphs.
2271         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2273         * tmac/troffrc: Load `composite.tmac' earlier.
2275         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2276         u00{53,73}_0327, and u0049_0307.
2277         * tmac/X.tmac: Add u00{47,67}_0306.
2278         * tmac/tty-char.tmac: Use composite glyph names for readability.
2280         * NEWS: Updated.
2282         * src/include/unicode.h: Remove `extern' keywords.
2284 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2286         * tmac/latin5.tmac: New file.
2288 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2290         Add some glyphs needed for Turkish.
2292         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2293         and u0049_0307.
2295         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2296         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2297         u00{53,73}_0327, and u0049_0307.
2299 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2301         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2302         from 2001-10-04.
2303         Remove trailing zeros.
2305 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2307         Make \? transparent to end-of-sentence recognition.
2309         * src/roff/troff/input.cc (non_interpreted_node): Add
2310         `ends_sentence' member function.
2312 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2314         * doc/groff.texinfo: Document `dt' request correctly.
2315         Other minor typographical improvements.
2317 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2319         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2321 2003-12-10  Richard Stallman  <rms@gnu.org>
2323         * LICENSE: Better wording.
2325 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2327         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2328         * configure, NEWS: Updated.
2330 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2332         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2334 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2336         * LICENSE: Updated.
2338 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2340         * INSTALL: Improved.
2342 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2344         Use path separator character of target platform for compiled-in
2345         default paths.
2347         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2348         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2349         * configure: Regenerated.
2350         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2352 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2354         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2355         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2357 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2359         * LICENSE: New file.
2361 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2363         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2364         ligatures present in AFM files since groff currently only
2365         understands some standard ligatures and nothing else.
2367 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2369         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2370         option -v is given.
2372         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2373         messages.
2374         Close stdout copy.
2375         Don't use Unix wait flags.
2377 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2379         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2380         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2381         src/roff/troff/uniuni.cpp: Moved to...
2382         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2383         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2384         src/libs/libgroff/uniuni.cpp: Here.
2386         * src/include/Makefile.sub.old (HDRS),
2387         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2388         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2390 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2392         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2393         `DEBUG_FILE'.
2394         Updated all users.
2396 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2398         * groff.texinfo: Document special behaviour of `.vs 0'.
2399         Improve documentation of `cflags' request.
2400         * NEWS: Updated.
2402 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2404         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2405         * font/devlj4/CORONET: Regenerated.
2407 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2409         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2410         if processing hyphenation patterns in traditional mode.
2411         Improve error messages.
2413 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2415         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2416         troff_output_file::put_char): Fix type of local variable `c'.
2418 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2420         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2421         declarations.
2422         (i_to_a): Removed.  libgroff already provides this function.
2423         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2425 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2427         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2428         HAVE_DECL_SYS_LIST.
2430 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2432         * COPYING: Use correct version.
2434 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2436         LynxOS 4.0.0 doesn't declare vfprintf.
2438         * configure.ac: Check for vfprintf.
2439         * configure: Regenerated.
2440         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2441         * src/include/config.hin: Regenerated.
2443 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2445         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2447         * configure.ac: Check for vsnprintf.
2448         * configure: Regenerated.
2449         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2450         `HAVE_VSNPRINTF'.
2451         * src/include/config.hin: Regenerated.
2453 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2455         * aclocal.m4: Updated syntax to autoconf 2.59.
2456         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2457         Don't check for gsos2.
2458         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2459         working abs_top_srcdir and abs_top_builddir.
2461         * configure.ac: Updated syntax to autoconf 2.59.
2462         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2463         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2464         * configure: Regenerated.
2466         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2467         s/@groff_top_builddir@/@abs_top_builddir@/.
2469         * src/roff/groff/pipeline.c (xstrsignal):
2470         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2472 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2474         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2475         make start angle smaller than end angle to circumvent a bug in tpic
2476         handling of some versions of dvipdfm (and dvipdfmx).
2478 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2480         * src/devices/grops/grops.man: Improve section on creating EPS.
2482 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2484         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2485         -P-pletter).
2487 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2489         * doc/groff.texinfo: Fix documentation of `.if'.
2491 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2493         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2494         the form `uniXXXX' also.
2496 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2498         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2499         contrib/pic2graph/pic2graph.sh: Implement secure management of
2500         temporary files.
2501         Pass `-P-pletter' to groff to avoid data outside of the converted
2502         area -- some versions of `convert' (for example 5.3.8) don't check
2503         the bounding box of the image but always use a fixed image size
2504         (letter paper format).
2505         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2506         contrib/pic2graph/pic2graph.man: Updated.
2508         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2510 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2512         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2513         troff_output::simple_ellipse, troff_output::simple_arc,
2514         troff_output::simple_line, troff_output::simple_spline,
2515         troff_output::simple_polygon): Insert a space before arguments.
2516         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2517         latter doesn't produce a node, so the following `.sp -1' would do
2518         the wrong thing.
2519         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2520         (and we don't have to care about compatibility mode).
2521         (troff_output::set_color, troff_output::reset_color): Don't emit
2522         `.sp -1' after \M and \m.
2524         * src/roff/troff/input.cpp (old_have_input): New global variable.
2525         (input_stack::get): Handle `old_have_input'.
2526         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2527         `trapping_blank_line' depending on `old_have_input', not
2528         `have_input'.
2530 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2532         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2533         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2534         default directory names for temporary files.
2535         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2537         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2538         [__MSDOS__] (run_pipeline): Honour environment variables.
2539         Don't use `tmpnam' but `tempnam' to work around messy
2540         implementation.
2542         * README.MinGW: New file.
2544 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2546         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2547         `(*t)->next' without testing validity of `*t'.
2548         (usage): Make it more readable.
2550 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2552         Make html device run under both MS-DOS and Win32.
2554         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2555         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2556         spawn or fork+exec has to be used, and whether parent must sleep
2557         until the child process terminates.  Used in
2558         `char_buffer::run_output_filter'.
2559         (copyofstdoutfd): Removed.
2560         (char_buffer): Replace `write_file_html' and `write_file_troff'
2561         member functions with `emit_troff_output' and `run_output_filter'.
2562         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2563         macros.
2564         (replaceFd): Replaced with...
2565         (set_redirection): New auxiliary function.
2566         (waitForChild): Replaced with...
2567         (save_and_redirect): New auxiliary function for.
2569         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2570         functions.
2572 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2574         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2575         (GROFF_LIBC): New function.
2576         * configure.ac: Call GROFF_LIBC.
2577         Check for `kill'.
2578         * configure: Regenerated.
2580         * src/include/lib.h: Handle __MINGW32__.
2581         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2582         Add macro for `pipe'.
2583         Define P_tmpdir.
2585         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2586         correctly.
2588         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2589         Implement.
2591 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2593         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2594         <chuq@chuq.com>.
2596         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2597         directory.
2599 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2601         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2602         src/roff/troff/input.cc (usage): Updated.
2604         * NEWS, doc/groff.texinfo: Updated.
2606 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2608         * src/libs/libgroff/searchpath.cpp
2609         (search_path::open_file_cautious): New function which also handles
2610         `-' as stdin and stdout depending on the access mode.
2611         * src/include/searchpath.h (search_path): Updated.
2613         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2614         * src/devices/grops/ps.h: Include `searchpath.h'.
2615         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2616         Open resource file with `include_search_path.open_file_cautious'.
2617         * src/devices/grops/grops.man: Document new `-I' switch.
2619         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2620         (main), src/devices/grolj4/lj4.cpp (main),
2621         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2623         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2624         Replaced with...
2625         (include_search_path): New global variable.
2626         (include_path_append): Removed.
2627         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2628         (do_file): Simplify, using new
2629         `include_search_path.open_file_cautious'.
2631         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2632         parameter.
2633         (main): Pass arguments to `-I' to both troff and devices.
2634         Improve handling of `-V'.
2635         * src/roff/groff/groff.man: Document changes to -I and -V.
2637         * src/roff/troff/input.cpp (include_search_path): New global
2638         variable.
2639         (next_file, source, ps_bbox_request, transparent_file,
2640         process_input_file): Use new
2641         `include_search_path.open_file_cautious'.
2642         (main) Handle `-I' switch.
2643         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2644         Use new `include_search_path.open_file_cautious'.
2645         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2646         * src/roff/troff/troff.man: Document new `-I' switch.
2648 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2650         Support multiple calls of .Lb in LIBRARY section.
2652         * tmac/doc-common (doc-in-library-section): New register.
2653         (doc-section-library): New string.
2654         (Sh): Set `doc-in-library-section'.
2655         (Rd): Updated.
2656         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2657         if in LIBRARY section.
2658         * tmac/doc.tmac (doc-save-global-vars): Updated.
2659         * NEWS, tmac/groff_mdoc.man: Updated.
2661 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2663         * tmac/doc-common (doc-default-operating-system): New variable.
2664         (Os): Use it.
2666 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2668         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2670 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2672         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2673         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2674         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2675         $(DEVFILES) are not empty.
2676         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2678 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2680         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2681         with parallel runs of `make'.
2683 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2685         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2686         insert SORT_SEP.  With certain combinations of sort specifications,
2687         refer sorted entries in the wrong order.  In particular, entries
2688         with a missing field should be be sorted before all entries that
2689         have that field, before refer looks to the next field.
2691 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2693         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2694         g++ linker is used.  Reported by Mark J. Reed
2695         <mark.reed@turner.com>.
2697 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2699         Add key character `x' to tbl which makes tbl call a user-defined
2700         macro on a table cell.
2702         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2703         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2704         `set_modifier' after printing the compatibility request.
2705         (set_modifier): Print call to `m->macro' if not empty.
2706         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2707         `macro'.
2708         (process_format): Implement cases `x' and `X'.
2709         * src/preproc/tbl/tbl.man, NEWS: Updated.
2711 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2713         * doc/groff.texinfo: Minor fixes.
2715 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2717         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2719 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2721         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2722         argument list to nothing if there is no file to match.  Use `ls' as
2723         a protection, similar to autoconf.
2725         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2726         empty argument lists.
2728         * doc/groff.texinfo: Improve documentation how vertical spacing
2729         and line breaks interact.
2730         Other minor fixes.
2732         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2734 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2736         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2737         EPS (using eps2eps or similar programs to compute the bounding box).
2739 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2741         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2742         * doc/texinfo.tex: Updated from texinfo 4.6.
2743         * README.CVS: From now on we need texinfo 4.6.
2745 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2747         Add requests `dei1' and `ami1' for completeness.
2749         * src/roff/troff/input.cc (calling_mode): Remove
2750         CALLING_DISABLE_COMP.
2751         (comp_mode): New enumeration.
2752         (do_define_string, define_string, define_nocomp_string,
2753         append_string, append_nocomp_string): Updated.
2754         (do_define_macro): Add third parameter.
2755         (define_macro, define_nocomp_macro, define_indirect_macro,
2756         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2757         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2758         functions.
2759         (ignore): Updated.
2760         (init_input_requests): Add `dei1' and `ami1'.
2762         * tmac/trace.tmac: Handle de1 and am1.
2763         (de): Improve tracing message.
2764         (am): Add missing `do'.
2765         (return): Use de1.
2767         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2768         Document new requests.
2770 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2772         Add option -G to .MPIMG to insert a gap between text and the image.
2774         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2775         www-finish-left-ll): Updated.
2776         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2777         (MPIMG): Make option -L and -R optional.
2778         Implement option -G.
2780 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2782         * src/devices/grohtml/post-html.cpp
2783         (html_printer::do_file_components): Don't use `stdout' as lvalue
2784         since it can be a macro.
2786 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2788         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2789         the corresponding test in aclocal.m4.
2791 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2793         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2794         names but RGB values directly.  Otherwise pnmtopng depends on
2795         an external file `rgb.txt' which maps colour names to values.
2797 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2799         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2800         * configure, src/include/config.hin: Regenerated.
2802         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2804 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2806         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2808 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2810         * *.man: Switch to non-compatibility mode temporarily if GNU
2811         syntax extensions are used in the particular man page.
2813         * PROBLEMS: Add solutions for SGR problems.
2815 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2817         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2818         used to change the drawing scheme.
2820         * src/devives/grotty/tty.cpp (bold_flag_option,
2821         underline_flag_option, italic_flag_option, reverse_flag_option,
2822         bold_underline_mode_option): New global variables.
2823         (update_options): New function.
2824         (tty_printer::special): Call update_options.
2825         (main): Don't set xxx_flag but xxx_flag_option, then call
2826         update_options.
2828 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2830         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2832         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2833         values.
2834         (hline_char, vline_char): New global variables.
2835         (tty_printer::tty_printer): Initialize them.
2836         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2837         horizontal and vertical lines.
2838         (crossings): New global array.
2839         (tty_printer::end_page): Use it to determine the proper crossing
2840         character for -Tutf8.
2842 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2844         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2845         (HTMLDOCFILES): Revert to `pic.html'.
2846         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2848 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2850         * doc/pic.ms: Improve documentation of absolute coordinates.
2851         Document absolute positioning of pictures.
2853         * NEWS: Add new pic capability.
2855 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2857         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2858         Rewritten.
2860 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2862         Implement support for dashed and dotted ellipses in pic.  Based on
2863         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2865         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2866         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2867         functions.  Ellipse arcs are approximated with circle arcs.
2868         * src/preproc/pic/common.h (common_output): Updated.
2869         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2870         functions.
2871         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2873         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2875 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2877         Make grotty work on platforms which have unsigned char as the
2878         default for char.  Based on a patch by Thomas Klausner
2879         <wiz@netbsd.org>.
2881         * src/devices/grotty/tty.cpp (schar): New typedef.
2882         Updated calls to declare_ptable and implement_ptable.
2883         (glyph): Use schar for back_color_idx and fore_color_idx.
2884         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2885         (tty_printer::tty_color, tty_printer::tty_printer,
2886         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2888 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2890         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2891         * src/roff/nroff/nroff.man: Updated.
2893 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2895         * NEWS, tmac/groff_www.man: Updated.
2896         * doc/Makefile.sub: Updated.
2898 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2900         Implement support for multiple HTML output files.
2902         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2903         -j command line option.
2905         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2906         global variables.
2907         (file): New fields `new_output_file', `require_links',
2908         `output_file_name'.
2909         (file::file): Updated.
2910         (files::set_file_name, files::set_links_required,
2911         files::are_links_required, files::is_new_output_file,
2912         files::file_name, files::next_file_name): New functions.
2913         (header_desc): New fields `no_of_level_one_headings',
2914         `header_filename'.
2915         (header_desc::header_desc): Updated.
2916         (header_desc::write_headings): Handle multiple files.
2917         (html_printer::write_header): Save file name in which header occurs.
2918         (html_printer::determine_header_level): Possibly split files on
2919         level one headings.
2920         (html_printer::do_links, html_printer::troff_tag): Updated.
2921         (html_printer::insert_split_file, html_printer::do_job_name,
2922         html_printer::emit_link, html_printer::write_navigation,
2923         html_printer::do_file_components): New functions.
2924         (html_printer::~html_printer): Handle multiple files.
2925         (main): Handle command line option `-j'.
2927         * src/devices/grohtml/grohtml.man: Updated.
2929         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
2930         which splits file.
2932         * tmac/www.tmac (JOBNAME): New macro.
2933         * tmac/s.tmac (SH-NO-TAG): New macro.
2934         (@SH): Call SH-NO-TAG.
2935         (@NH): Updated.
2937 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
2939         * tmac/groff_mdoc.man: Improve documentation of punctuation
2940         characters.
2942 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
2944         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
2946 2003-07-03  Werner LEMBERG  <wl@gnu.org>
2948         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
2950 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
2952         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
2953         after `/*' and `*/'.
2954         Fix spacing.
2955         (Fn, Fo): Reduce indentation in synopsis.
2957         * tmac/doc-common (doc-check-depth): New macro.
2958         (doc-end-macro, Sh, Ss): Use it.
2959         (Cd): Fix behaviour in synopsis.
2960         (In): Make it parsed and callable.
2961         If not in the synopsis, represent the C header file enclosed in
2962         angle brackets.
2963         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
2964         Use minus, not hyphen.
2966         * tmc/groff_mdoc.man: Updated.
2968 2003-07-01  Werner LEMBERG  <wl@gnu.org>
2970         Integrated grap2graph, contributed by Eric S. Raymond.
2972         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
2973         New files.
2974         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
2975         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
2977 2003-07-01  Colin Watson  <cjwatson@debian.org>
2979         * src/xditview/*.c: Add prototypes, fix return types, add includes.
2980         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
2982 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
2984         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
2986 2003-06-31  Werner LEMBERG  <wl@gnu.org>
2988         * doc/Makefile.sub (CLEANADD): Remove all files created by
2989         running `make groff.{pdf,dvi}'.
2991         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
2992         src/xditview also.
2994 2003-06-30  Werner LEMBERG  <wl@gnu.org>
2996         * Makefile.in (SHELL): Define as @SHELL@.
2997         (mkinstalldirs): Use $(SHELL).
2998         (MDEFINES): Add $(SHELL).
2999         * Makefile.comm (SHELL): Removed.
3001 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3003         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3004         The X11 documentation files use them.
3005         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3007 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3009         * tmac/e.tmac (@C): Handle .ad also.
3011 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3013         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3015         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3016         Assign `n' even here.  It is possible to construct a node
3017         immediately following an escape character:
3019           .di xx
3020           \?\\\?a
3021           .br
3022           .di
3023           .xx
3025 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3027         * README.WIN32: Removed.
3028         * MANIFEST: Updated.
3030 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3032         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3034 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3036         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3037         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3039 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3041         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3042         is done by the calling function.
3044 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3046         * tmac/X.tmac: Fix definition of `em'.
3048 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3050         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3051         argument.
3053 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3055         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3056         to make items work which consist only of a tag.
3058 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3060         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3061         aren't stretched in a tag (this can fail with unformatted boxes).
3062         Instead, insert a break and go back one line.
3064 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3066         * src/roff/troff/input.cc (return_macro_request): If called with
3067         argument pop macro twice.  We need this to trace `return'.
3069         * tmac/trace.tmac: Handle `return'.
3070         Fix typos.
3072         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3073         Document.
3075 2003-05-15  Larry Kollar  <kollar@alltel.net>
3077         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3078         registers `FPS', `FVS', and `FPD'.
3080 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3082         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3083         correctly.
3085 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3087         * tmac/groff_mdoc.man: Slight improvements.
3089 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3091         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3092         `doc-header-space' after header line if register `cR' is set.
3094 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3096         * TODO: Updated.
3098 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3100         * tmac/doc-common (Nd): Use \[em].
3102 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3104         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3105         doc-footer-space): Initialize to 0.5i.
3106         (doc-setup-page-layout): Don't set doc-header-space and
3107         doc-footer-space.
3109 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3111         * REVISION: Set to 1.
3113         * doc/pic.ms: Document possible problems with `figname'.
3115 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3117 Version 1.19 released
3118 =====================
3120         * VERSION: Set to 1.19.
3121         * REVISION: Set to 0.
3122         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3124         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3125         Define charset as `US-ASCII' in html output.
3127         * tmac/www.tmac (ULE): Add missing scaling indicator.
3129         * win32-diffs: Removed.
3131 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3133         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3134         `.da' and `.boxa'.
3135         Document how to insert discardable whitespace with `.ss'.
3137 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3139         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3140         work with plain TeX also.
3142         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3144 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3146         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3147         Use a loose DTD.
3149 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3151         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3152         vbox with positive height and zero depth if in TeX mode.
3154         * NEWS: Document glyph name changes for grodvi and grolj4.
3156 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3158         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3159         * doc/pic.ms: Fixed.
3161 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3163         HP-UX 10.20 has `snprintf' but it isn't declared.
3165         * configure.ac: Add declaration test for snprintf.
3166         * configure: Regenerated.
3167         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3168         * src/include/config.hin: Regenerated.
3170 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3172         Add keyword `figname' to pic, specifying the name of the picture
3173         box in TeX mode.  Based on a patch from William J Poser
3174         <wjposer@unagi.cis.upenn.edu>.
3176         * src/preproc/pic/pic.y: New token `FIGNAME'.
3177         (macro_name): New rule of type <str>.
3178         (placeless_element): Handle `FIGNAME'.
3179         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3180         * src/preproc/pic/main.cpp (graphname): New global variable.
3181         (do_picture): Initialize `graphname'.
3182         * src/preproc/pic/pic.h: Updated.
3183         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3184         `graphname'.
3185         Simplify TeX code.
3186         (tex_output::text): Beautify output.
3187         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3188         `shaded' and `outlined' unconditionally.
3189         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3190         Minor improvements.
3192         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3193         greater is necessary.
3195 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3197         Add option -r to soelim to avoid emission of `.lf' lines.
3198         Add option -t to produces TeX comment lines instead of `.lf' lines.
3200         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3201         and `tex_flag'.
3202         (usage): Updated.
3203         (main): Handle `-r' and `-t'.
3204         (set_location): Handle `raw_flag' and `tex_flag'.
3205         * src/preproc/soelim/soelim.man, NEWS: Updated.
3207 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3209         * tmac/hyphenex.sh: Replaced with...
3210         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3211         nightmares.
3213         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3214         if --quiet is used for the configure script.
3215         * configure: Regenerated.
3217 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3219         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3220         Add `const' to second argument.
3221         (html_printer::add_table_end): Add `const' to argument.
3222         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3223         `const' to arguments.
3224         * src/devices/grohtml/html-text.h: Updated.
3226         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3227         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3228         argument.
3230         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3231         cast for integer constant.
3233         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3234         (writeNbytes): Add `const' to first argument.
3235         (writeString): Add `const' to argument.
3236         (char_buffer::can_see): Add `const' to third argument.
3237         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3238         `const' to argument.
3239         * src/preproc/html/pushback.h: Updated.
3241         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3242         (include_path_append): Add `const' to argument.
3243         (do_file): Updated.
3245         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3246         for `value'.
3247         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3248         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3249         for `value'.
3250         (unicode_decompose_init::unicode_decompose_init): Updated.
3251         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3252         for `value'.
3253         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3254         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3255         argument.
3257         * tmac/hyphenex.sh: Make script more portable by using a here
3258         document.
3260 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3262         Renamed all `*.cc' files to `*.cpp'.
3263         Updated all configuration files, makefiles, and documentation.
3265 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3267         * tmac/hyphenex.sh: Slight improvements.
3269 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3271         * font/devascii/R.proto, font/devcp1037/R.proto,
3272         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3273         character slots with unnamed glyphs.
3275         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3276         (an-first): New global variable.
3277         (an-header): Emit vertical space between multiple man pages.
3279 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3281         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3282         values.
3284 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3286         * PROBLEMS: Revised.
3288 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3290         * doc/webpage.ms: Improved.
3292 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3294         Add register \n[.height] which returns the value of \H.
3295         Add register \n[.slant] which returns the value of \S.
3297         * src/roff/troff/env.cc (init_env_requests): Implement.
3298         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3299         Document.
3301 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3303         * tmac/html.tmac: Move some of the data into html-end.tmac.
3304         Remove most of the character translations for eqn since html fonts
3305         now cover those characters.
3306         Load www.tmac.
3307         * tmac/html-end.tmac: New file.
3308         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3309         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3310         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3312 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3314         * man/groff_out.man: Document negative values of `N' if -Thtml is
3315         used.
3317 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3319         * Makefile.comm (depend.temp): Check location of YTABC.
3321 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3323         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3324         binary path.
3325         (groff_bin_path): Rename to GROFF_BIN_PATH.
3326         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3327         * doc/Makefile.in (TROFFBIN): New variable for troff
3328         binary path.
3329         (GROFFBIN): New variable for groff binary path.
3330         (groff_bin_path): Rename to GROFF_BIN_PATH.
3331         (TROFF): Use TROFFBIN.
3332         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3333         * doc/Makefile.sub (GROFFBIN): New variable for groff
3334         binary path.
3335         (groff_bin_path): Rename to GROFF_BIN_PATH.
3336         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3338         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3339         with INSTALL_SCRIPT.
3340         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3341         * Makefile.dev (all): Depend on DEVSCRIPTS.
3342         (install_dev): Likewise.
3343         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3344         scripts.
3345         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3346         (DEVGENSCRIPTS): New variable to hold generated scripts.
3348 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3350         * src/libs/libdriver/input.cc (IntArray::operator[],
3351         IntArray::get_data): Remove meaningless `const' in return value.
3353         * README.CVS: New file.
3355 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3357         Check for stdint.h in C++, not in C.
3359         * aclocal.m4 (GROFF_STDINT_H): New function,
3360         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3361         AC_CHECK_HEADERS.
3362         * configure, src/include/config.hin: Regenerated.
3363         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3366         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3367         with a negative value, representing the width of the unbreakable
3368         space (only for -Thtml).  grohtml then converts this back to
3369         &nbsp; and uses the value of N as its width.
3371         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3372         unbreakable_space_node::tprint): Emit `N-<width>'.
3373         * src/include/printer.h (printer::set_numbered_char): Make it
3374         virtual.
3375         Make members `font_table' and `nfonts' protected instead of private.
3376         * src/devices/grohtml/post-html.cc
3377         (html_printer::set_numbered_char): New member function.
3380         * src/libs/libgroff/maxfilename.cc:
3381         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3383         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3384         emit word marker.
3386 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3388         * man/roff.man: Small fixes.
3390 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3392         Make groff independent from locale's numeric settings.
3394         * configure.ac: Check for `setlocale'.
3395         * configure, src/include/config.hin: Regenerated.
3397         * src/include/lib.h: Handle HAVE_SETLOCALE.
3399         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3400         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3401         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3404         * doc/groff.texinfo: Change dir category to `Typesetting'.
3405         (Man font macros): Mention that there is no space between arguments
3406         of .BI and friends.
3408         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3409         (*printer::change_color, *printer::change_fill_color): Add missing
3410         `const'.
3412 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3414         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3415         html_table::is_gap): Compute table widths after converting border
3416         positions to avoid rounding errors.
3418 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3420         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3421         `space_emitted' properly.
3423 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3425         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3426         (html_table::set_linelength): Don't add 1.
3427         (html_table::add_indent): Don't subtract 1.
3429         * tmac/html.tmac: Set default page offset to zero.
3431 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3433         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3435         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3436         unbreakable_space_node::tprint): New functions.
3437         (troff_output_file): Make space_char_hmotion_mode::tprint and
3438         unbreakable_space_node::tprint to friends.
3439         * src/roff/troff/node.h: Updated.
3441         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3442         in the HTML standard).
3444 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3446         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3447         Otherwise, the following code
3449           .di xxx
3450           .ps 10
3451           a
3452           .br
3453           .di
3454           x\*[xxx]
3456         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3457         font changes in diversions for -Thtml.
3459         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3460         `HTML-TAG'.
3461         (an-do-tag-html): Merge with ...
3462         (an-do-tag): This macro.
3463         Change code slightly to circumvent grohtml bug.
3464         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3466         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3467         html_table::is_gap): Round `width' properly.
3469         * tmac/html.tmac: Provide some default layout parameters for
3470         grohtml.
3472         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3473         command.
3475 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3477         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3479 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3481         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3482         defined.
3484 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3486         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3487         `.vs'.
3488         * doc/groff.texinfo: Updated.
3490 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3492         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3493         TOKEN_END_TRAP>: Reset `have_input'.
3495 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3497         * src/roff/groff/groff.man: Mention groff_trace man page.
3499 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3501         * Makefile.in (LIBEXT): New variable to indicate the file extension
3502         of library files.  Computed heuristically from $(OBJEXT).
3503         (MDEFINES): Add $(LIBEXT).
3504         * Makefile.lib, Makefile.comm: Use it.
3506         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3507         overlong lines into smaller chunks.
3508         (get_binary): New function.
3509         (main): Use them.
3510         * src/utils/pfbtops/pfbtops.man: Updated.
3512 2003-03-15  Colin Watson  <cjwatson@debian.org>
3514         * src/roff/groff/groff.man: Minor syntax fix.
3516 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3518         * src/devices/grops/ps.cc (ps_printer::media_set,
3519         ps_printer::~ps_printer): Handle zero paper width and length.
3521 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3523         Add options -p and -l to grodvi.
3525         * src/devices/grodvi/dvi.cc: Include paper.h.
3526         (landscape_flag, user_paper_length, user_paper_width): New global
3527         variables.
3528         (dvi_printer::begin_page): Emit `papersize' special.
3529         Set color after initialization of `cur_h' and `cur_v'.
3530         (main): Add options `-l' and `-p'.
3531         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3532         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3534         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3536 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3538         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3539         * man/groff_tmac.man: This man page.
3540         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3541         deprecated.
3543         * tmac/X.tmac: Don't load pspic.tmac.
3545 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3547         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3548         by Bernd Warken <bwarken@mayn.de>.
3550         * src/include/driver.h (pr): Removed.
3552         * src/libs/libdriver/input.cc (pr): New global variable.
3553         (do_file): Deallocate `pr'.
3554         * src/libs/libdriver/printer.cc (pr): Removed.
3556         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3557         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3558         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3559         (main): Don't delete `pr'.
3561 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3563         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3564         * tmac/papersize.tmac: New file.
3565         * tmac/troffrc: Include `papersize.tmac'.
3566         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3567         * tmac/an-old.tmac: Set LT to LL by default.
3569         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3570         doc/groff.texinfo: Updated.
3572         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3573         bug which caused all odd iso papers to have wrong dimensions.
3575         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3576         (main) <'p'>: Set `user_paper_width' also.
3577         (ps_printer::media_width, ps_printer::media_height): Use values
3578         given with option `-p'.
3580 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3582         * src/include/nonposix.h: Provide default for SET_BINARY.
3584         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3585         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3586         unconditionally.
3588         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3589         (main): Treat \r\n as \n.
3591 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3593         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3594         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3596 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3598         Added support to access more than 256 glyphs in Type 1 fonts.
3600         * src/devices/grops/ps.cc (subencoding): New structure.
3601         (style): Add `sub' field.
3602         Updated all users.
3603         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3604         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3605         functions.
3606         Updated all users.
3607         (ps_printer::set_char): Use `set_subencoding'.
3608         (make_subencoding_name): New function.
3609         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3610         (ps_printer::~ps_printer): Emit subencoding definitions.
3612         * src/devices/grops/psrm.cc (valid_input_table): New array to
3613         properly support EBCDIC.
3614         (white_space): Add `\f'.
3615         (ps_get_line): Change first argument to be of type `string &'.
3616         Updated all callers.
3617         This allows to get lines of arbitrary length.
3618         Use `valid_input_table'.
3619         Remove warning about non-conforming PS line length.  This seems
3620         not to be of great importance -- for example, dvips don't emit
3621         a warning either.
3622         (PS_LINE_MAX): Removed.
3623         (matches_comment): Change first argument to be of type `string &'.
3625         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3627         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3628         %AGL_to_unicode, %default_ligatures): New hash tables.
3629         Read all map entries.
3630         Add unencoded characters.
3631         Check for default ligatures if there are no `L' entries.
3632         Print all kern entries.
3633         Print all characters in charset.
3634         * src/utils/afmtodit/afmtodit.man: Updated.
3636         * font/devps/*: Regerated all fonts.
3638         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3639         of characters, just use `.trin'.  Otherwise the mapping depends
3640         on the font encoding.
3641         * tmac/ps.tmac: Add `fi' and `fl'.
3642         Improve `Fi' and `Fl'.
3643         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3644         * tmac/Xps.tmac: Fix `em'.
3646         * NEWS: Updated.
3648 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3650         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3651         `have_input'.
3653 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3655         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3657         * font/devps/generate/textmap: Remove entry `similarequal'.
3658         * font/devps/symbolmap: Updated.
3660 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3662         * src/libs/libgroff/font.cc (font::load): Fix error message for
3663         bad character type.
3665         * src/devices/grops/grops.man: Improve documentation of the -b
3666         flag.
3668         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3669         `ascii' and `cp1047'.
3671 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3673         Document composite glyphs and the `composite' request.
3675         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3677 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3679         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3680         * font/devdvi/*EC: Updated.
3682         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3683         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3684         * tmac/troffrc: Load `composite.tmac'.
3685         * tmac/Makefile.sub (NORMALFILES): Updated.
3687         * doc/groff.texinfo (Input Encodings): New section.
3688         * NEWS: Updated.
3690 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3692         * doc/texinfo.tex: New version 2003-02-11.06.
3694         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3695         * tmac/groff_mdoc.man: Fix description of `Dt'.
3697 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3699         * font/devps/prologue.ps: Fix for included Postscript that does
3700         a setpagedevice -- which is now safely ignored.
3702         * NEWS: Updated.
3704         * src/devices/grops/ps.cc: Now sets the page size in the generated
3705         document.  This is done in two ways: Via a %%-comment for gv and
3706         the like, and via a PageSize and setpagedevice for programs that
3707         understands Postscript proper, like ps2pdf.
3709         * src/devices/grops/ps.h: New broken-flag to avoid page size
3710         definition, if required.
3712         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3714         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3715         Not really necessary due to the fix in prologue.ps, but cleaner:
3716         Such information does not belong in an .eps file.
3718         * doc/Makefile.sub: See doc/Makefile.in.
3720 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3722         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3723         instead of P1 since the latter is broken in some versions of netpbm.
3724         * configure: Updated.
3726 2003-02-26  Larry Kollar  <kollar@alltel.net>
3728         Make man pages more customizable.
3730         * tmac/an-old.tmac (FT): New register holding footer distance from
3731         bottom.
3732         (HF): New string holding the default heading font.
3733         (TH): Handle registers `IN' and `SN' set on the command line.
3734         Use `FT'.
3735         (PT, BT): New strings to customize header and footer lines.
3736         (an-header, an-footer): Use them.
3737         (SH, SS): Use `HF'.
3738         * tmac/groff_man.man: Document changes.
3740         * doc/groff.texinfo: Document man changes.
3741         Document Ultrix extensions of man.
3743 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3745         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3746         `have_input' after changing back to old environment.
3748         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3749         function up to be defined before first call.  This is necessary to
3750         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3752         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3753         the default font directory also.  Based on a patch from James
3754         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3755         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3756         * src/utils/afmtodit/afmtodit.man: Document it.
3758         * NEWS: Updated.
3760         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3762 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3764         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3765         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3766         * configure.ac: Use it.
3767         * configure: Regenerated.
3768         * Makefile.in: Updated.
3770         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3771         (CLEANADD): Add www.tmac-sed.
3772         (pnmtops_nosetpage): Define default.
3773         (install_data): Handle www.tmac-sed and substitute
3774         @PNMTOPS_NOSETPAGE@.
3775         (stamp-sed): Add www.tmac.
3776         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3777         It now breaks URLs at suitable places.
3778         (www:substring_ok): New register set by...
3779         (www:@test_substring): New macro.
3780         (www:error): New alias to www-error.
3781         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3782         New macros.
3783         (URL): Use www:url_breaks.
3784         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3785         (CDS, CDE): New macros.
3787 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3789         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3790         buffer overflow.
3792 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3794         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3795         can be negative also.
3797         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3798         `int16'.
3799         (read_char_table): Avoid negative ascenders.
3800         (output_charset): Add cast.
3801         * font/devlj4/*: Regenerated.
3803         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3804         possible.
3806         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3807         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3808         of `<>'.
3809         * font/devdvi/*: Regenerated.
3811         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3812         normal width, while the previously used characters (U+2329 and
3813         U+232A) are classified as wide due to canonical equivalence with the
3814         CJK punctuation characters U+3008 and U+3009.
3816         * font/devutf8/R.proto: Updated.
3817         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3819         * man/groff_char.man: Simplify handling of table traps by
3820         introducing `start block' and `end block' macros.
3821         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3822         (DL): Make it work with Unix troff also.
3823         Fix code values of `la' and `ra'.
3825         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3827 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3829         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3830         New destructor, fixing a major memory leak.
3832 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3834         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3835         to be in conformance with Unicode 3.0 and newer.
3837         * font/devlj4/generate/text.map: Add `Eu'.
3838         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3839         * font/devlj4/S: Regenerated.
3841         * man/groff_char.man: Completely rewritten.
3843         * doc/groff.texinfo: Fix description of request and macro arguments.
3845 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3847         Valgrind fixes.
3849         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3850         Deallocate `columns' list.
3851         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3852         New destructor.
3853         (text_glob::text_glob_html, text_glob::text_glob_special,
3854         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3855         text_glob::text_glob_tag): Avoid memory leaks.
3856         (text_glob::remember_table): Free memory before reassigning.
3858 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3860         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3861         alias `hbar'), the Planck constant over two pi.
3863         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3864         `+e' for position 34.
3865         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3866         `u2662' and `u2661'.
3867         * font/devdvi/{MI,S}: Regenerated.
3868         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3869         * font/devlbp/*: Add `hbar' alias.
3870         * font/devlj4/generate/special.map: Ditto.
3871         * font/devlj4/S: Regenerated.
3872         * font/devps/generate/symbolchars: Add `+e'.
3873         * font/devps/generate/textmap: Fix PS name for `-h'.
3874         Add `hbar' alias.
3875         * font/devps/symbolmap: Regenerated.
3877         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3879         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3880         `-h', `hbar'.
3881         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3882         `-h'.
3884         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3885         `hbar'.
3886         * tmac/tty-char.tmac: Add `+e'.
3888 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3890         Another round trying to really fix problems with `have_input'.
3892         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3893         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3895         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3896         handling if both foreground and background colors are default.
3898         * doc/groff.texinfo (Debugging): Document .lf differences to
3899         AT&T troff.
3901 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3903         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3904         null-bytes in created string.
3906         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3907         alias_macro, lookup_request): Improve warning messages.
3909         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3910         not `strdup'.
3911         Free `last_image_filename'.
3913         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
3914         `buffer'.
3915         (imageList::createPage, imageList::createImage): Use `free', not
3916         `a_delete'.
3917         (imageItem::~imageItem): Free `imageName'.
3918         (addRegDef): Use `strsave', not `strdup'.
3919         (get_resolution): Free `pathp'.
3921 2003-02-15  Werner LEMBERG  <wl@gnu.org>
3923         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
3924         to `dummy'.
3926 2003-02-14  Werner LEMBERG  <wl@gnu.org>
3928         Add memory management for colors to deallocate unnamed colors
3929         properly.
3931         * src/include/color.h (color): New members `free_list' and `next'.
3932         New member functions `new' and `delete'.
3933         Add destructor.
3934         * src/libs/libgroff/color.cc: Implement it.
3936         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
3937         for array size of new operator.
3939         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
3940         redundant comparison.
3942         * src/roff/troff/input.cc (word_space_node::reread,
3943         hmotion_node::reread): Avoid warning about unused parameter.
3944         (reset_output_registers): Remove redundant parameter.
3945         (define_color): Undo change 2003-02-12.
3947         * src/roff/troff/reg.h: Updated.
3949         * src/roff/troff/node.cc (troff_output_file::really_print_line,
3950         output_file::put_filename, real_output_file::really_put_filename,
3951         ascii_output_file::really_print_line,
3952         break_char_node::get_hyphen_list): Avoid warning about unused
3953         parameter.
3954         (suppress_node::tprint): Updated.
3956         * configure.ac: Check declaration for rand() and srand().
3957         * configure: Regenerated.
3959         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
3960         conditionally.
3961         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
3962         and srand().
3964         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
3965         to avoid compiler warnings.
3967         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
3968         unused.
3970         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
3971         is unused.
3972         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
3973         (unused) parameter.
3974         Updated all callers.
3976         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
3977         is unused.
3978         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
3979         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
3981         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
3982         Parameter is unused.
3983         (html_printer::add_table_end): Define parameter conditionally.
3984         * src/devices/grohtml/output.cc (simple_output::special): Parameter
3985         is unused.
3987         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
3988         (lbp_printer::set_char): Last parameter is unused.
3990         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
3992 2003-02-13  Werner LEMBERG  <wl@gnu.org>
3994         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
3995         Make \D'f ...' move horizontally again for backwards compatibility.
3996         Replace it with \D'Fg ...' where appropriate to avoid dependency
3997         on horizontal resolution.
3999         * src/roff/troff/input.cc (do_get_long_name): New function.
4000         (get_long_name): Call it.
4002         (read_draw_node): Handle `\D'Fx ...' by calling ...
4003         (read_color_draw_node): New function.
4005         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4006         `end'.
4007         Pass it to `do_get_long_name' which is used instead of
4008         `get_long_name'.
4010         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4011         unnecessary value guard.
4012         (parse_D_command) <'f'>: Add horizontal shift.
4014         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4015         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4016         (FILL_MAX): Removed.
4018         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4019         Updated.
4021 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4023         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4024         do_zero_width): Push `\n' if closing delimiter is missing.
4026         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4027         <'F'>: Make \F non-transparent at the beginning of line.
4028         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4029         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4030         `have_input'.
4032         (define_color): Free color in case of reassignment.
4034         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4035         @DefescListEnd): Use @Var, not @var.
4036         Fix all calls.
4038         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4040         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4041         `shaded' and `outlined' arrays.
4042         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4043         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4044         Use strsave.
4045         (closed_object::set_fill_color): Ditto.
4046         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4047         instead of strdup.
4048         (troff_output::reset_color): Use a_delete instead of free.
4049         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4051 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4053         * doc/groff.texinfo: Improve documentation of `ad'.
4054         Document that \D'f...' is dependent on the horizontal resolution.
4055         * man/groff_diff.man: Improve documentation of \D'f...'.
4057         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4058         compensating \h'...' for \D'f ...' since the latter no longer moves
4059         current position.
4060         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4062 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4064         Improve error messages for `x F' (and `F') commands.
4066         * src/include/error.h: Add declaration for
4067         `current_source_filename'.
4068         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4069         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4070         parameter for source file string.
4071         Updated all callers.
4073         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4074         (remember_source_filename): New function.
4075         (parse_x_command <'F'>, do_file <'F'>): Use it.
4077 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4079         Make grotty not emit warnings about unknown colors more than
4080         necessary.
4082         * src/devices/grotty/tty.cc: Include `ptable.h'.
4083         (TTY_MAX_COLORS): Removed.
4084         (DEFAULT_COLOR_IDX): Defined to -1.
4085         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4086         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4087         Change `tty_colors' to be a ptable.
4088         First arg of `put_color' is now `char'.
4089         New functions `make_rgb_string' and `tty_color'.
4090         (tty_printer::tty_printer): Use `tty_color'.
4091         (tty_printer::color_to_idx): Return value is now `char'.
4092         Use `tty_color'.
4094         * src/include/color.h (color): Add `print_color' member function.
4095         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4097 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4099         Valgrind fixes.
4101         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4102         encoding file.
4104         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4105         assume that value has been allocated with `new[]', thus use
4106         `a_delete' for deallocation.
4108         * src/libs/libdriver/input.cc (get_integer_arg,
4109         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4110         where appropriate.
4112         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4113         * src/libs/libgroff/nametoindex.cc
4114         (character_indexer::named_char_index): Use `new <type>[1]'.
4116         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4117         <type>[1]'.
4118         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4119         (split_text): Use `a_delete'.
4121         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4122         <type>[1]'.
4124         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4125         harmless memory leak.
4126         (hyphen_trie::read_patterns_file): Initialize `buf'.
4127         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4128         Initialize `current_fill_color'and `current_glyph_color'.
4129         * src/roff/troff/glyphuni.cc
4130         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4131         * src/roff/troff/uniuni.cc
4132         (unicode_decompose_init::unicode_decompose_init): Ditto.
4133         * src/roff/troff/uniglyph.cc
4134         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4136 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4138         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4139         `access' before calling `unlink'.
4140         (do_file): Handle __EMX__.
4142         * src/include/nonposix.h: Handle __EMX__.
4144         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4145         (fontpath,tmacpath): Use it.
4146         (MDEFINES): Add it.
4147         Sorted alphabetically.
4149         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4150         @SEP@.
4151         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4152         @SEP@.
4154 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4156         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4157         New files, copied from gnulib.
4158         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4159         * configure.ac: Updated.
4160         * configure: Regenerated.
4162         * src/include/config.hin: Regenerated.
4163         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4164         Don't define `strcasecmp' as `strcmp'.
4165         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4166         Dont define `strncasecmp' as `strncmp'.
4168         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4169         Removed.
4171 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4173         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4174         s/unline/unlink/.
4176 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4178         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4180 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4182         Add US-english hyphenation exceptions (converted from Barbara
4183         Beeton's hyphenation exception log reports which appear irregularly
4184         in TUGBoat).
4186         * tmac/hyphen.us: Updated to latest version.
4187         * tmac/README: Updated.
4188         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4189         * tmac/troffrc: Load `hyphenex.us'.
4190         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4191         * doc/groff.texinfo: Updated.
4193 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4195         Improve hyphenation slightly.  This is a first step in redesigning
4196         the hyphenation algorithm to make it more flexible (e.g. allowing
4197         kerns and ligatures between the hyphenation character and the
4198         following character -- while not used normally in English, other
4199         languages like German would benefit).
4201         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4202         assertion instead of if-clause.
4203         Let `get_hyphen_list' return the number of involved characters in
4204         the hyphenation pattern instead of computing it directly (which
4205         often yields too small values).
4206         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4207         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4208         parameter.
4210 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4212         Fixing a bug which caused groff to hang if the hyphenation exception
4213         dictionary tried to grow.
4215         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4216         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4217         pointer to dictionary.
4219 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4221         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4222         negative left italic correction.
4223         * src/utils/afmtodit/afmtodit.man: Document it.
4225         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4226         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4227         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4229         * NEWS: Updated.
4231 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4233         * NEWS: Updated.
4235 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4237         * src/preproc/refer/refer.man: Mention REFER environment variable.
4239 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4241         Similar to \[is], the square root glyph (\[sr]) and the square root
4242         extension glyph (\[radicalex]) are now text symbols.  The new
4243         mathematical versions are called \[sqrt] and \[sqrtex],
4244         respectively.
4246         * font/devX*/S: Regenerated.
4247         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4248         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4249         * font/devdvi/EX, font/devdvi/S: Regenerated.
4250         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4251         * font/devlj4/generate/special.map: Add `sqrt'.
4252         * font/devlj4/S: Regenerated.
4253         * font/devps/generate/textmap: Add `sqrt'.
4254         * font/devps/S, font/devps/symbolmap: Regenerated.
4256         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4257         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4258         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4259         overlap horizontally.
4261         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4262         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4263         Fix `radicalex'.
4265         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4266         and `sqrtex' are overlapping glyphs.
4268 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4270         * font/devdvi/generate/texsy.map: Add `is'.
4271         * font/devps/symbolmap: Regenerated.
4272         * font/devdvi/*TC, MI, S: Regenerated.
4274         * tmac/dvi.tmac: Remove `is'.
4276 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4278         `is' is now a text symbol (only relevant for dvi).  The math variant
4279         can be accessed with `integral'.
4281         * font/devX*/S: Regenerated.
4282         * font/devdvi/generate/texex.map: Remove `is'.
4283         * font/devdvi/EX: Updated.
4284         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4285         * font/devlj4/generate/special.map: Ditto.
4286         * font/devlj4/S: Regenerated.
4287         * font/devps/generate/textmap: Add `integral'.
4288         * font/devps/S: Regenerated.
4290         * tmac/dvi.tmac: Define `is'.
4292         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4294         * src/preproc/tbl/main.cc (process_format): Fix error message.
4296 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4298         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4299         * font/devps/textmap: Fix entries for `ne' and `nc'.
4300         * font/devps/symbolmap: Regenerated.
4302         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4303         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4304         `38', `58', `78', `-+', `|=', `nc', `ne'.
4306         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4307         Use `schar' for `aq'.
4308         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4309         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4310         * tmac/tty.tmac: Add `ne'.
4312         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4313         for fallback glyphs.
4315 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4317         Add glyph `|='.
4319         * font/devX*/*: Regenerated.
4320         * font/devdvi/generate/ec.map: Remove `eq'.
4321         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4322         Assign `|=' to position 39.
4323         * font/devdvi/*EC, S: Regenerated.
4324         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4325         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4326         Assign `|=' to position 549.
4327         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4328         `equalmath'.
4329         Add `uni2243' for `|='.
4331         * tmac/ec.tmac: Add `eq'.
4332         * tmac/dvi.tmac: Add `=~'.
4333         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4334         `|='.
4336 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4338         * font/devdvi/generate/tc.map: Remove `**'.
4339         * font/devdvi/*TC: Regenerated.
4340         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4341         `78', `<<', `>>'.
4342         * font/devutf8/NOTES: Updated.
4344         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4345         Don't give default parameter to `set_macro'.
4346         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4347         instead of `set_macro'.
4348         (charinfo::setx_macro): Implement it.
4349         (charinfo::set_macro): Don't change `mode'.
4351         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4352         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4353         * tmac/dvi.tmac: Define `!=' with `.schar'.
4355 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4357         * font/devX*/S: Regenerated.
4358         * font/devdvi/generate/ec.map: Remove `pl'.
4359         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4360         * font/devdvi/*{TC,EC}: Regenerated.
4361         * font/devhtml/R.proto: Add `-+'.
4362         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4363         * font/devlbp/*: Remove `or'.
4364         * font/devlj4/generate/special.map: Remove `or'.
4365         * font/devlj4/S: Regenerated.
4366         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4367         `seveneighths', `threeeighths'.
4368         Remove `plusmath'.
4369         Replace `minusplus' with `uni2213'.
4370         * font/devps/symbolmap: Regenerated.
4371         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4372         Add `-+'.
4374         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4375         function.
4376         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4377         Call glyph_color and fill_color even if tcommand_flag isn't set.
4378         (make_node, node::add_char): Check not ci->is_fallback but
4379         ci->is_normal.
4381         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4382         * tmac/ec.tmac: Add .rchar entry for `f/'.
4383         Don't remove `12', `14', `34'.
4384         Define `pl' to be always roman.
4385         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4386         Define `18', `38', `58', `78'.
4387         * tmac/tty.tmac: Add `-+'.
4388         * tmac/dvi.tmac: Define `f/'.
4389         (dvi-frac): Use `f/'.
4390         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4391         Define `18', `38', `58', `78'.
4393 2002-12-15  Colin Watson  <cjwatson@debian.org>
4395         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4397 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4399         Add glyph `tno', a textual variant of `no'.
4401         * font/devX*/*: Regenerated.
4402         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4403         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4404         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4405         * font/devdvi/*: Regenerated.
4406         * font/devlbp/*: Add `tno'.
4407         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4408         * font/devlj4/*: Regenerated.
4409         * font/devps/generate/textmap: Replace `no' with `tno'.
4410         * font/devps/generate/symbolchars: Add `no'.
4411         * font/devps/*: Regenerated.
4413         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4415         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4416         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4418         * NEWS: Updated.
4420         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4421         Add definition for `sd'.
4422         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4424         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4426 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4428         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4429         mode to avoid rounding errors.
4430         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4432         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4433         src/roff/troff/troff.man: Improve documentation of -T.
4435 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4437         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4438         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4440 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4442         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4443         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4444         Scaling Euro.sansserif glyphs down to have the same height as
4445         digits.
4446         Removed unnecessary points; added some extrema.
4448         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4449         Regenerated.
4451 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4453         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4454         and `Euro.symbol.bold.slanted'.
4455         Improve some glyph offsets and widths.
4456         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4457         Regenerated.
4458         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4459         typo.
4460         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4461         direcory.
4463         * tmac/europs.tmac: Updated to new glyph indices.
4464         Use Euro.symbol for font familiy `A'.
4466         * doc/groff.texinfo: Minor improvements.
4468 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4470         * font/devdvi/generate.tc.map: s/%O/%0/.
4471         * font/devdvi/*TC: Regenerated.
4473         * src/roff/troff/div.cc (init_div_requests): Sorted.
4475         * tmac/dvi.tmac: Remove `Ye'.
4476         * tmac/ec.tmac: Remove `Ye'.
4477         Add .rchar entry for `de'.
4479         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4480         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4481         * NEWS: Updated.
4483 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4485         Add PS font for various Euro glyphs.
4487         * font/devps/generate/freeeuro.sfd: New master font file for
4488         pfaedit.
4489         * font/devps/generate/sfdtopfa.pe: New conversion script for
4490         pfaedit.
4491         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4492         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4493         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4494         `freeeuro.sfd'.
4495         * font/devps/EURO: Generated from `freeeuro.afm'.
4496         * font/devps/download: Add `freeuro.pfa'.
4497         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4498         `freeeuro.pfa'.
4500         * tmac/europs.tmac: New file.
4501         * tmac/ps.tmac: Include `europs.tmac'.
4502         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4504 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4506         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4507         * font/devdvi/S: Regenerated.
4508         * font/devhtml/R.proto: Fix `CR' and `ci'.
4509         Add `OK'.
4510         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4511         Remove `bs'.
4512         * font/devps/symbolmap: Regenerated.
4513         * font/devutf8/R.proto: Fix `CR' and `ci'.
4514         Add `OK'.
4515         * font/devutf8/NOTES: Updated.
4517         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4518         `ci'.
4519         Add `OK'.
4520         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4522         * tmac/dvi.tmac: Add `lh' and `rh'.
4523         * tmac/Xps.tmac: Fix `lh' and `rh'.
4524         * tmac/X.tmac: Add `OK'.
4525         * tmac/lj4.tmac: Ditto.
4527 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4529         * font/devX*/S: Regenerated.
4530         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4531         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4532         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4533         * font/devdvi/S: Regenerated.
4534         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4535         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4536         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4537         `bracketleftbt', `bracketrighttp', `bracketrightex',
4538         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4539         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4540         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4541         `rb', and `bv'.
4542         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4543         * font/devutf8/NOTES: Updated.
4544         * font/devlj4/generate/special.map: Add glyph `braceex'.
4545         * font/devlj4/S: Regenerated.
4547         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4549 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4551         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4552         and `vA'.
4553         Fix code for `an'.
4554         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4556         * doc/texinfo.tex: New version from texinfo 4.3.
4557         * doc/groff.texinfo: Updated for texinfo 4.3.
4558         Use @tie{} where appropriate.
4559         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4560         * font/devdvi/generate/tc.map: Remove `rn'.
4561         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4562         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4563         Fix code for `an'.
4564         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4565         font/devX75-12/*: Regenerated.
4567         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4568         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4569         Improve definition of `an'.
4570         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4571         `ru'.
4572         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4573         * tmac/X.tmac: Add definition for `or'.
4574         * tmac/Xps.tmac: Undo change 2002-11-05.
4575         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4577 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4579         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4580         call flush_tbuf.
4582 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4584         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4585         defines a glyph which is searched after the check for fonts declared
4586         with `.special' (and before the check for all mounted special
4587         fonts).  `fschar' defines a glyph for a particular font which is
4588         searched after the check for fonts declared with `.fspecial' (and
4589         before the check for fonts declared with `.special').  `rfschar'
4590         removes glyphs defined with `fschar'.
4592         * src/roff/troff/token.h (char_mode): New enum.
4593         Declare do_define_character.
4594         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4595         `mode'.
4596         (charinfo::is_fallback): Updated.
4597         (charinfo::is_special): New method.
4598         * src/roff/troff/input.cc (do_define_character): Add and use
4599         optional second parameter used as a prefix for font-specific glyph
4600         names.
4601         (define_character, define_fallback_character): Updated.
4602         (define_special_character): New function.
4603         (init_input_requests): Add `schar'.
4604         (charinfo::charinfo, charinfo::set_macro): Updated.
4605         * src/roff/troff/node.cc: Include `stringclass.h'.
4606         (make_glyph_node): Handle special glyphs defined with `.schar' and
4607         `.fschar'.
4608         (define_font_special_character, remove_font_special_character): New
4609         functions.
4610         (init_node_requests): Sorted.
4611         Add `fschar' and `rfschar'.
4612         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4613         Document new requests.
4615         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4616         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4618 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4620         Added new font `SC' (cmtex10) to devdvi.
4622         * devdvi/generate/Makefile (FONTS): Add `SC'.
4623         (SC): New rule.
4624         * devdvi/generate/textex.map: New map file for cmtex.
4625         * devdvi/SC: New.
4626         * devdvi/Makefile.sub (DEVFILES): Updated.
4627         * tmac/dvi.tmac: Add fspecial entries for SC.
4628         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4629         found before `S' since the font position of `SC' is lower due to the
4630         gaps in DESC's `font' line.
4631         * tmac/ec.tmac: Add a `special' call.
4632         * NEWS: Updated.
4634         * font/devhtml/R.proto: Remove double entry for `ti'.
4635         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4636         * tmac/tty-char.tmac: Remove entry for `bq'.
4637         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4638         * tmac/ec.tmac: Don't remove `aq' glyph.
4639         * tmac/X.tmac: Fix entry for `em'.
4640         Add entries for `fo' and `fc'.
4641         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4643         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4644         documentation of `special' and `fspecial' requests.
4646 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4648         * font/devascii/R.proto, font/devcp1047/R.proto,
4649         font/devlatin1/R.proto: Remove entry for `.i'.
4650         * font/devdvi/generate/textt.map: Add entry for `ad'.
4651         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4652         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4653         We need this for getting kerning values to compose `/l' and `/L'.
4654         * font/devdvi: Regenerated font definition files for CM fonts.
4655         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4656         * font/devutf8/R.proto: Ditto.
4657         Remove double entry for `ti'.
4659         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4660         for (groff) ligatures, `la', and `ra'.
4661         Add "'C", "'c", `IJ', and `ij'.
4662         Remove double entry for `ti'.
4663         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4664         double entries.
4665         Add "'C", "'c", `IJ', and `ij'.
4666         Fix entries for (groff) ligatures, `la', and `ra'.
4668         * tmac/ps.tmac (ps-achar): New macro.
4669         Define "'c" and "'C".
4670         * tmac/tty.tmac: Add entry for `.i'.
4671         * tmac/X.tmac (X-achar): New macro.
4672         Define "'c", "'C", and `:Y'.
4673         Add entries for `IJ' and `ij'.
4674         * tmac/Xps.tmac (Xps-achar): New macro.
4675         Define "'c" and "'C".
4676         Add entries for `IJ' and `ij'.
4677         * tmac/lbp.tmac (lbp-achar): New macro.
4678         Add fallback characters for all groff ligatures and many other
4679         glyphs.
4680         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4681         Add entries for `/l' and `/L'.
4682         Define "'c" and "'C".
4683         Add entries for `IJ' and `ij'.
4685 2002-11-02  Larry Kollar  <kollar@alltel.net>
4687         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4689 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4691         Adding support for composite glyphs: \[xxx yyy ...] and the
4692         `composite' request.
4694         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4695         to Unicode-based glyph names.
4696         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4697         glyph names to groff glyph names.
4698         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4699         Unicode-based glyph names.
4700         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4701         for handling Unicode glyph names.
4702         * src/roff/troff/input.cc: Include unicode.h.
4703         (composite_glyph_name): New function.
4704         (token::next) <'['>: Handle Unicode glyph names and composite
4705         glyphs.
4706         (composite_dictionary): New dictionary for the `composite' request.
4707         (composite_request): Implement `composite' request.
4708         (init_input_requests): Add `composite'.
4709         Alphabetically sorted.
4710         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4711         commented out).
4712         (init_env_requests): Alphabetically sorted.
4713         Removed `tas' and `tar' (already commented out).
4714         * src/roff/troff/Makefile.sub: Updated.
4716 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4718         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4719         of options.
4721 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4723         Fix computation of .trunc register.  Additionally, its value (and
4724         the value of the .ne register) is now always set before entering the
4725         trap.
4727         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4728         `needed_space' before calling `space'.
4729         (top_level_diversion::space): Remove special code for 'sp before the
4730         first page.
4731         Call `begin_page' with the discarded space as a parameter.
4732         (top_level_diversion::begin_page): Add optional parameter to set
4733         `truncated_space'.
4734         * src/roff/troff/div.h: Updated.
4736         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4737         \n[.ne].
4739         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4740         (LP): Remove superfluous call to `br'.
4741         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4742         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4744 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4746         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4747         (doc-setup-header): Don't set page register `%'.
4748         * tmac/doc-nroff: Remove variable `C'.
4749         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4750         (doc-setup-header): Don't set page register `%'.
4751         Don't call `bp'.
4752         * tmac/doc-common (doc-header): Call `ns'.
4753         (doc-paragraph): Protect .sp with .br so that it survives traps
4754         possibly set by the user.
4755         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4757         * tmac/doc*: Replace ' with . for consistency if no effect.
4759 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4761         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4762         so that it survives traps possibly set by the user.
4764         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4765         (troff_output_file::set_font): Call flush_tbuf if necessary.
4766         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4767         flush_tbuf and do_motion only if necessary.
4768         (troff_output_file::start_special,
4769         troff_output_file::put_char_width, troff_output_file::put_char,
4770         troff_output_file::draw): Updated.
4771         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4772         vmotion_node::tprint): Undo change 2002-10-23.
4774 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4776         * tmac/www.tmac (DC): Fix case of overlapping images.
4778 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4780         * src/roff/troff/node.cc (troff_output_file::fill_color,
4781         troff_output_file::glyph_color): Set current color before testing
4782         color_flag.
4783         (troff_output_file::put_char_width, troff_output_file::put_char,
4784         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4785         before glyph_color.
4786         (troff_output_file::file_color, troff_output_file::glyph_color):
4787         Call do_motion.
4788         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4789         vmotion_node::tprint): Move first, then call fill_color.
4791 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4793         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4794         possible to use multiple main macro packages.
4796 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4798         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4799         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4800         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4801         is set.
4802         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4803         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4805 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4807         * NEWS, doc/webpage.ms: Updated.
4809 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4811         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4812         troff_output_file::put_char, troff_output_file::fill_color,
4813         troff_output_file::glyph_color): Handle case where color pointer
4814         is null.
4816 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4818         Add the new -r option to grotty.  It is similar to the -i option
4819         except it tells grotty(1) to use the "reverse video" attribute to
4820         render italic fonts.
4822         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4823         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4824         (tty_printer::make_underline, tty_printer::put_color,
4825         tty_printer::end_page): Use it.
4826         (main): Add -r switch.
4827         (usage): Updated.
4828         * src/devices/grotty/grotty.man: Document it.
4830 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4832         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4833         cast to `unsigned char' to properly read patterns with 8bit
4834         characters.
4836 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4838         * REVISION: Increased to 2.
4840 Version 1.18.1 released
4841 =======================
4843 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4845         * doc/webpage.ms, NEWS: Updated.
4847 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4849         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4850         suppress additional whitespace after the header.
4852         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4853         with NetBSD.
4855         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4857 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4859         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4860         (Dt): Use it to improve language localization (especially Russian
4861         and French).
4863 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4865         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4866         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4867         drawing commands.
4868         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4869         curve type.
4870         Call `picurve' for BSPLINE.
4871         (HGPrintElt): Handle BSPLINE.
4872         * src/preproc/grn/README: Document it.
4874 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4876         * src/roff/troff/node.cc (break_char_node::col): New variable.
4877         Updated constructor.
4878         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4879         unconditionally.
4880         (space_node::space_node): Remove assertion.
4881         (break_char_node::add_self): Pass color argument to space node.
4882         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4883         Ditto.
4884         * src/roff/troff/env.cc (environment::do_break,
4885         environment::add_padding): Ditto.
4887 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4889         Redesigning color support in troff.  Colors are no longer
4890         represented as separate nodes but are now part of glyph nodes and
4891         friends.  This fixes the current formatting misbehaviour due to the
4892         changes introduced on 2002-09-20.  Some extra code is necessary for
4893         proper grotty support: Without adding color variables to
4894         space-related nodes, the background color would be changed too late.
4896         * src/roff/troff/node.h, src/roff/troff/node.cc:
4897         s/current_pagecolor/current_fill_color/.
4898         s/current_glyphcolor/current_glyph_color/.
4899         (glyph_color_node, fill_color_node): Removed.
4900         (node::get_glyph_color, node::get_fill_color): New virtual member
4901         functions.
4902         (space_node::col): New variable.
4903         Updated constructors of space_node and derived classes accordingly.
4904         (hmotion_node::col): New variable.
4905         Updated constructors of hmotion_node and space_char_hmotion_node
4906         accordingly.
4907         (vmotion_node::col): New variable.
4908         Updated constructor accordingly.
4909         (draw_node::gcol, draw_node::fcol): New variables.
4910         Updated constructor accordingly.
4911         (special_node::gcol, special_node::fcol): New variables.
4912         Updated constructors accordingly.
4913         (troff_output_file::put_char, troff_output_file::put_charwidth,
4914         troff_output_file::draw): Set glyph and fill color.
4915         (troff_output_file::start_special): Set glyph and fill color.
4916         Always set current font.
4917         (troff_output_file::fill_color, troff_output_file::glyph_color):
4918         Don't call `do_motion'.
4919         (glyph_node::gcol, glyph_node::fcol): New variables.
4920         Updated constructors of glyph_node and ligature_node accordingly.
4921         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
4922         member functions.
4923         (glyph_node::merge_glyph_node,
4924         kern_pair_node::add_discretionary_hyphen,
4925         node::add_discretionary_hyphen): Updated.
4926         (break_char_node::merge_self): Updated.
4927         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4928         vmotion_node::tprint): Handle color.
4929         (make_glyph_node, make_node, node::add_char): Updated.
4931         * src/roff/troff/env.cc (environment::space_newline,
4932         environment::space, environment::output_line, environment::do_break,
4933         environment::make_tab_node, environment::add_padding, title):
4934         Updated.
4935         (environment_switch, environment_copy): Don't add color nodes.
4937         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
4938         nothing.
4939         (token::next): Updated.
4940         \m and \M now are as transparent as \s.
4941         (process_input_stack, token::add_to_node_list, token::process,
4942         read_draw_node): Updated.
4943         (charinfo_to_node_list): Don't add color nodes.
4945         * doc/groff.texinfo: Updated.
4947 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
4949         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
4950         strings.
4952 2002-09-27  Colin Watson  <cjwatson@debian.org>
4954         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
4956 2002-09-23  Werner LEMBERG  <wl@gnu.org>
4958         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
4959         appropriate.
4960         (DEFAULT_LINEWIDTH_FACTOR): New macro.
4961         (linewidth_factor): New global variable.
4962         (lbp_printer::set_line_thickness): Fix case for size < 0, using
4963         linewidth_factor.
4964         (long_options): Add -w/--linewidth option.
4965         (usage): Updated.
4966         (main): Handle -w option to set linewidth_factor.
4967         (lbp_printer::lbp_printer): Initialize req_linethickness, not
4968         line_thickness.
4970         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
4972 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
4974         Fixed a bug in the line thickness setting code.
4976         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
4977         variable.
4978         (lbp_printer::set_line_thickness): Pass environment as second
4979         parameter.
4980         Implement it actually.
4981         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
4982         and `set_line_thickness, depending on the current font size.
4984 2002-09-21  Werner LEMBERG  <wl@gnu.org>
4986         Some Debian patches.
4988         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
4989         * src/roff/troff/node.cc (bracket_node::copy): Initialize
4990         `list->last'.
4992 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4994         * configure: Regenerated with autoconf 2.54.
4996 2002-09-20  Werner LEMBERG  <wl@gnu.org>
4998         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
4999         glyph_color.
5000         Rename cur_fill_color to fill_color.
5001         * src/roff/troff/env.cc: Updated.
5003 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5005         * src/roff/troff/env.cc (title): Copy color status after processing
5006         title.
5007         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5008         fill color nodes to reset colors properly.
5010         * tmac/www.tmac (DC): Fix color handling.
5012         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5013         * doc/groff.texinfo: Fixing documentation of `tl' request.
5014         * doc/webpage.ms: Updated.
5016 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5018         * src/roff/troff/env.cc (environent_switch, environment_copy):
5019         Emit glyph and fill color nodes to initialize colors properly.
5021 2002-09-17  Colin Watson  <cjwatson@debian.org>
5023         * src/roff/troff/env.cc (environment::set_glyph_color,
5024         environment::set_fill_color): Fix typo which prevented \m[] work
5025         correctly.
5027 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5029         Add left and right italic correction to non-slanted PS fonts.  This
5030         is an experimental feature to improve image rendering of grohtml.
5032         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5033         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5034         * font/devps/*: All non-slanted fonts regenerated.
5035         * NEWS: Updated.
5037 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5039         Add a site-specific font directory.
5041         * Makefile.in (localfontdir, legacyfontdir): New variables.
5042         (fontpath): Use them.
5043         (MDEFINES, uninstall_dirs): Updated.
5044         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5045         Remove `FONTPATH' and `MACROPATH'.
5047         * src/roff/troff/troff.man, NEWS: Updated.
5048         * doc/groff.texinfo (Font Directories): New section.
5049         Other minor fixes.
5051         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5052         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5053         src/preproc/grn/grn.man: Minor fixes.
5055         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5056         Remove unused variable.
5058 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5060         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5061         * man/groff_out.man: Fix documentation of 'N'.
5063 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5065         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5066         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5067         set.
5068         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5069         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5070         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5071         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5072         PRE_TAG>: Call `begin' with `FALSE'.
5074 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5076         * src/libs/libgroff/string.cc (string::extract): Fix position of
5077         terminating null byte.
5079 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5081         Add global option `nospaces' to tbl so that leading and trailing
5082         spaces in data items are ignored.
5084         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5085         function to remove leading and trailing spaces.
5086         * src/include/stringclass.h: Updated.
5088         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5090         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5091         option.
5092         Fix typo in error messages.
5093         (process_data): Implement `nospaces' option.
5094         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5096 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5098         * src/include/config.hin: Add `HAVE_ISATTY'.
5099         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5100         `fname' member.
5101         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5102         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5103         `operator!=' for `char'.
5104         * doc/groff.texinfo: Replace @ifnottex block for top node with
5105         @ifhtml block.
5107 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5109         * doc/Makefile.in (.texinfo.html): Add -I switch.
5110         * doc/groff.texinfo: Add @ifnottex block for top node to make
5111         translation to HTML work.
5113 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5115         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5116         (get_papersize, determine_vertical_offset): Removed.
5117         (char_buffer::do_image): Always specify letter size.
5118         (main): Updated.
5119         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5120         -sPAPERSIZE.
5122 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5124         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5125         default indentation.
5127 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5129         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5130         -sPAPERSIZE for gs.
5131         (generateImages): Clean up push-back buffer.
5133 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5135         * doc/groff.texinfo: Minor fixes.
5137 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5139         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5140         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5141         (gsPaper): Removed.
5142         (determine_vertical_offset): Use LETTER_LENGTH.
5143         (createPage): Moved to ...
5144         (imageList::createPage): This.
5145         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5146         (imageList::getMaxX): New function.
5147         (createImage): Moved to ...
5148         (imageList::createImage): This.
5149         (imageList::createImages): New function.
5150         (generateImages): Read `maxx' directly.
5151         Updated.
5152         (scanArguments): Don't specify `gsPaper' for `-o'.
5153         (makeTempFiles): Call `xtmpfile' with the last argument set to
5154         `TRUE'.
5156 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5158         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5159         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5160         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5161         * src/preproc/html/pushback.cc: Include nonposix.h.
5162         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5163         conditionally.
5165 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5167         Use $(OBJEXT) for the object file extension.
5169         * Makefile.comm (.SUFFIXES): Add .obj.
5170         (.cc.obj, .c.obj): New implicit rules.
5171         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5172         (MDEFINES): Add EXEEXT and OBJEXT.
5173         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5175 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5177         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5179 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5181         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5182         the file.
5183         (html_printer::update_min_max, html_printer::add_table_end): New
5184         methods.
5185         (html_printer::lookahead_for_tables): Use them.
5186         Reset page offset correctly.
5187         (html_printer::~html_printer): Add creation of creator comment up.
5189 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5191         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5192         * man/groff_tmac.man: Fix typos.
5193         * man/groff_font.man: Minor reordering.
5194         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5196 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5198         Avoid endless loops while scanning for tables.
5200         * src/devices/grohtml/post-html.cc (list::insert): Set
5201         ptr->right->left.
5202         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5203         all callers.
5204         Return immediately if that argument is NULL.
5205         (html_printer::calc_nf): Don't test if `g' is NULL.
5206         (html_printer::lookahead_for_tables): Use
5207         `glyphs.move_right_get_data'.
5208         Don't test if `g' is NULL.
5210 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5212         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5214         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5215         a pointer.
5216         (char_block::char_block): Allocate `buffer'.
5217         (char_buffer::add_string): Use it.
5219 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5221         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5222         src/devices/grodvi/grodvi.man: Document default line thickness.
5224 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5226         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5227         8192.
5229 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5231         * doc/webpage.ms: Updated.
5233 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5235         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5236         unbreakable space.
5238 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5240         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5241         (&& -> &).
5243 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5245         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5246         tok.next().
5247         (read_gray): Ditto.
5248         Don't push back a space but a newline onto the stack.
5250 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5252         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5253         inadvertently.
5255         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5256         html_printer::start_font): Handle them.
5257         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5258         reset bold and tt.
5259         (html_text::do_bold): Don't reset italic and tt.
5260         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5261         * font/devhtml/DESC.proto: Add those fonts.
5262         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5264 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5266         * MORE.STUFF: Added gpresent.
5268         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5269         whitespace before printing the logging message.
5271 2002-07-31  Colin Watson  <cjwatson@debian.org>
5273         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5274         Initialize `n' to zero.  This fixes a segfault on ARM.
5276 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5278         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5280 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5282         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5283         final semicolon.
5285 2002-07-28  Colin Watson  <cjwatson@debian.org>
5287         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5288         `.ps'.
5289         (html_printer::html_printer): Initialize `pointsize'.
5291 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5293         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5294         gnu.png.
5295         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5296         (gnu.eps): Add -rle switch to pnmtops.
5297         (distfiles): Add gnu.eps and gnu.png.
5299 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5301         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5302         Add `operator!='.
5304 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5306         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5307         ' \+' but '  *' for sed.
5308         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5310 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5312         * doc/groff.texinfo: Document `papersize' keyword.
5313         * NEWS, man/groff_font.man: Updated.
5315 2002-07-23  Colin Watson  <cjwatson@debian.org>
5317         Extend papersize keyword to accept more than a single entry.  The
5318         first valid will be used.
5320         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5321         (font::scan_papersize): Really skip final newline.
5322         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5324 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5326         * configure.ac: Test for isatty.
5327         * configure: Regenerated.
5328         * src/include/posix.h: Check HAVE_ISATTY.
5329         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5330         * src/utils/lookbib/lookbib.cc: Include posix.h.
5331         Don't declare isatty.
5333 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5335         * NEWS: Add `output' request.
5337         * REVISION: Increased to 1.
5339 Version 1.18.0 released
5340 =======================
5342 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5344         Allow internal glyph indices > 0xFF in grohtml for input characters.
5346         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5347         as parameter.
5348         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5349         Updated all callers.
5350         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5351         (html_printer): Updated.
5353 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5355         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5356         * font/devutf8/R.proto: Adding some missing glyphs.
5357         * font/devutf8/NOTES: Updated.
5359         * tmac/dvi.tmac: Add more composite glyphs.
5360         * tmac/html.tmac: Updated.
5362         * man/groff_char.man: Add `sum' and `product' entities.
5364         * NEWS: Updated.
5366 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5368         Improved table, tab, and indenting support.
5370         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5371         string_iterator::suppress_newline_flag): Removed.  Updated all
5372         function which have used it.
5374         * src/roff/troff/env.cc: Include `input.h'.
5375         (environment::add_node): Accept 0 as parameter.
5376         (environment::add_html_tag): Add `force' parameter.
5377         Updated all callers.
5378         (environment::add_html_tag_tabs): Ditto.
5379         For the moment, support left-aligned tabs only.
5380         (environment::make_html_tag): New function.
5381         (fill, no_fill): Set .br html tag additionally.
5382         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5383         (environment::add_html_tag_eol): Removed.
5384         (tab_stops::distance_to_next_tab): Add variant for handling 
5385         nextpos'.
5386         (environment::distance_to_next_tab): Ditto.
5387         Updated all callers.
5388         (environment::handle_tab): Handle tabs for html.
5389         
5390         * src/roff/troff/env.h: Updated.
5392         * src/roff/troff/div.cc: Updated all callers of
5393         `environment::add_html_tag'.
5395         * src/devices/grohtml/html-table.cc,
5396         src/devices/grohtml/html-table.h: New files.
5398         * src/devices/grohtml/html-text.cc (html_text): New members
5399         `blank_para' and `start_space'.
5400         (html_text::issue_tag): Don't emit TABLE_TAG.
5401         Handle indentation for PRE_TAG and P_TAG.
5402         (html_text::end_tag): Updated.
5403         (html_text::table_is_void, html_text::issue_table_begin,
5404         html_text::issue_table_end): Removed.
5405         (html_text::do_push): Simplified.
5406         [DEBUGGING]: Small fix.
5407         (html_text::push_para): Add new parameter for indentation; updated
5408         all callers.
5409         Handle PRE_TAG.
5410         (html_text::do_indent, html_text::do_table, html_text::done_table,
5411         html_text::is_in_table): Removed.
5412         (html_text::do_pre): Handle P_TAG also.
5413         (html_text::shutdown): Handle p->indent.
5414         (html_text::check_emit_text): Simplified.
5415         (html_text::do_emittext): Reset `blank_para'.
5416         (html_text::do_para): Add new parameter for indentation; updated
5417         all callers.
5418         (html_text::remove_indent): New function.
5419         (html_text::do_space): Handle verbatim text properly.
5420         (html_text::ever_emitted_text, html_text::starts_with_space,
5421         html_text::remove_para_align): New functions.
5422         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5424         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5425         Updated.
5427         * src/devices/grohtml/post-html.cc: Include html-table.h.
5428         (INDENTATION): Removed.
5429         (text_glob): Added many `is_<foo>' functions.
5430         Added table description `tab'.
5431         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5432         member functions.
5433         (list): Add `insert' and `move_to' member functions.
5434         (page): Add `insert_tag' member function.
5435         (page::dump_page) [DEBUG_TABLES]: Improved.
5436         (html_printer): Add `table' and `max_linelength' elements.
5437         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5438         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5439         `remove_tabs', `remove_courier_tabs'.
5440         (html_printer::emit_raw): Handle indentation.
5441         (html_printer::do_center, html_printer::write_header): Updated.
5442         (html_printer::is_courier_until_eol): Check for tag.
5443         (html_printer::do_linelength): Handle max_linelength.
5444         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5445         fill_on.
5446         (html_printer::do_tempindent): Updated.
5447         (html_printer::do_indentedparagraph): Removed.
5448         (html_printer::do_indent): Simplified.
5449         (html_printer::do_eol): Use `ever_emitted_text'.
5450         (html_printer::do_flush, html_printer::do_links): Don't call
5451         done_table.
5452         (html_printer::do_break): Handle end_tempindent.
5453         (html_printer::troff_tag): Get argument.
5454         Don't handle `.ip'.
5455         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5456         (html_printer::flush_page): Call `lookahead_for_tables'.
5457         Don't call `done_table'.
5458         (html_printer::add_to_sbuf): Always call do_indent.
5460         * src/devices/grohtml/Makefile.sub: Updated.
5462         * tmac/an-old.tmac (TP): Don't handle html device specially.
5463         (an-do-tag-html): New function which will be used instead of
5464         `an-do-tag' if html device is used.
5466         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5468         * tmac/s.tmac (@IP): Don't handle html device specially.
5469         (@IP-html): New function which will be used instead of `@IP' if
5470         html device is used.
5472         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5473         is a hack which will eventually vanish again.
5474         (PIMG): Handle `-C' option correctly if not html.
5475         (HR): Use HTML-NS.
5477 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5479         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5481 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5483         * contrib/pic2graph/pic2graph.*: Use convert(1).
5484         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5486 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5488         * tmac/groff_trace.man: New file.
5489         * tmac/Makefile.sub: Updated.
5490         * NEWS: Updated.
5492 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5494         * src/roff/groff/groff.man: Add some cross references.
5496 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5498         * src/roff/troff/input.cc (substring_request): Add warnings for
5499         string indices out of range.
5501 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5503         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5504         * font/devdvi/*EC: Regenerated.
5506 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5508         * man/groff_char.man: Updated and extended.
5510 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5512         * src/roff/troff/input.cc (length_macro): Renamed to...
5513         (length_request): This.
5514         Move call of `tok.next()' to the very end, otherwise the register
5515         value hasn't been updated yet.
5516         (init_input_requests): Updated.
5518 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5520         * src/roff/troff/input.cc (substring_macro): Renamed to...
5521         (substring_request): This.
5522         (init_input_requests): Updated.
5523         * src/roff/troff/request.h: Updated.
5525 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5527         * src/roff/grog/grog.sh: Fix typo.
5529 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5531         * win32-diffs: Updated.
5533         Handle `papersize' keyword properly in DESC.
5535         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5536         type.
5537         Updated all callers.
5538         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5539         grolj4.
5540         * src/include/paper.h: Updated.
5542         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5543         Other minor C syntax fixes.
5544         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5545         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5546         members.
5547         (lbp_printer::lbp_printer): Pass three arguments.
5548         Set paper dimensions properly.
5549         (make_printer, main): Updated.
5550         (handle_unknown_desc_command): Fix error messages.
5551         (main): Handle papersize keyword in DESC properly.
5553         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5554         `user_paper_size'.
5555         (lbp_printer::lbp_printer): Pass an argument.
5556         Set paper_size properly.
5557         (handle_unknown_desc_command): Removed.
5558         (make_printer, main): Updated.
5559         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5561         * man/groff_font.man, NEWS: Updated.
5563 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5565         Integrated eqn2graph, contributed by Eric S. Raymond.
5567         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5568         files.
5569         * Makefile.in, NEWS: Updated.
5571 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5573         Changing the substring request to make it fit better with other
5574         string manipulation functions in other programming languages:
5575         Index 0 is now the first character in the string, and index -1
5576         indicates the last character.  Since this request didn't work
5577         properly anyway in the last release, it doesn't harm too much to
5578         change the syntax.
5580         * src/roff/troff/input.cc (substring_macro): Use loops to get
5581         the real string length (ignoring COMPATIBLE_SAVE and
5582         COMPATIBLE_RESTORE) and offsets.
5583         Implement change described above.
5585         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5586         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5588         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5590 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5592         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5593         COMPATIBLE_RESTORE are completely ignored.
5595         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5596         functions.
5597         (macro): `length' field renamed to `len'.
5598         Added new field `empty_macro' (1 if macro is empty), to be used
5599         instead of checking `len'.
5600         Updated all callers.
5601         (macro::empty): Updated.
5602         (macro::length, macro::set, macro::get): New functions.
5603         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5604         Set `empty_macro'.
5605         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5606         COMPATIBLE_RESTORE pairs.
5607         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5608         * src/roff/troff/request.h: Updated.
5610         * doc/groff.texinfo: Document .chop's behaviour better.
5612 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5614         * doc/pic.ms: Fix documentation for the addition of positions.
5616         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5618 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5620         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5622         * src/roff/troff/input.cc (have_string_arg): New global variable.
5623         (read_mode): New enumeration.
5624         (read_escape_name): Use it.  Update all calls.
5625         (read_long_escape_name): Use it.  Update all calls.
5626         Set have_string_arg if appropriate.
5627         (get_char_for_escape_name): Add parameter for handling space
5628         character.
5629         (interpolate_string_with_args, decode_string_args): New functions.
5630         (get_copy, token::next): Call it if necessary.
5631         (interpolate_string): Fix error message.
5633         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5634         Document it.
5636 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5638         * man/groff_tmac.man: Updated and extended.
5640 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5642         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5644 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5646         * doc/pic.ms: Improve documentation of composite block objects.
5648 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5650         * src/roff/troff/input.cc (init_registers): Add three registers
5651         `seconds', `minutes', and `hours' to hold the current time.
5653         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5654         Updated.
5656 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5658         Make \X accept both `\ ' and `\~', converting them to single space
5659         characters.
5661         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5662         (token::unstretchable_space): New inline function.
5663         * src/roff/troff/input.cc (token::next, token::delimiter,
5664         token::description, token::add_to_node_list, token::process): Handle
5665         TOKEN_UNSTRETCHABLE_NODE.
5666         (encode_char): Handle tok.stretchable_space and
5667         tok.unstretchable_space.
5669         * NEWS, doc/groff.texinfo: Document it..
5671 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5673         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5675         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5676         keyword to enable/disable SGR output.
5677         (tty_printer::change_fill_color): New function.
5678         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5680         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5681         call.
5683 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5685         Add a `color' request and a `.color' register to control usage of
5686         colours.
5688         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5689         (color_flag): This (which is the inverse).
5690         (activate_color): New function.
5691         (main, init_input_requests): Updated.
5692         * src/roff/troff/troff.h, src/roff/troff/node.cc
5693         (troff_output_file::fill_color, troff_output_file::glyph_color):
5694         Updated.
5696         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5697         Document the changes.
5699 2002-06-17  Colin Watson  <cjwatson@debian.org>
5701         Circumvent bug in autoconf 2.53 regarding top_builddir.
5703         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5704         * Makefile.in, doc/Makefile.in:
5705         s/@top_builddir@/@groff_top_builddir@/.
5706         * configure: Regenerated (with autoconf 2.53).
5708 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5710         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5711         `paperwidth' and `paperlength' for the `papersize' keyword.
5713 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5715         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5717 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5719         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5720         html_printer::do_linelength, html_printer::do_pageoffset,
5721         html_printer::do_indentation, html_printer::do_tempindent,
5722         html_printer::do_break, html_printer::begin_page): Clear indented
5723         text.
5724         * tmac/html.tmac: Disable hyphenation.
5726 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5728         Don't produce HTML files if utility programs are missing.
5730         * Makefile.in (make_html, make_install_html): New variables.
5731         (MDEFINES): Updated.
5733         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5734         utility programs.
5735         * configure.ac: Use it.
5736         * configure: Regenerated.
5738         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5739         (HTMLEXAMPLESFILES): This new variable.
5740         (EXAMPLESIMAGEFILES): Renamed to...
5741         (HTMLEXAMPLEIMAGEFILES): This.
5742         (CLEANADD): Add HTMLEXAMPLEFILES.
5743         (all): Use `make_html'.
5744         (html): New target.
5745         (install_data): Use `make_install_html'.
5746         Move html stuff to...
5747         (install_html): This new target.
5748         (uninstall_sub): Updated.
5750 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5752         * src/roff/grog/Makefile.sub (grog): Renamed to...
5753         (grog.old): This.
5754         (grog): New rule to always install grog.sh as grog.
5756 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5758         * src/roff/grog/grog.pl: Fix typo.
5760 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5762         * doc/groff.texinfo: Add more info on .tr arguments.
5764 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5766         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5768         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5769         * configure: Regenerated.
5771 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5773         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5775         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5777 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5779         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5780         is not initialized at the time we need it in case `--prefix' hasn't
5781         been set.  Check for `ac_default_prefix' also.
5782         Test for `papersize' keyword also and generalize allowed whitespace.
5783         * configure: Regenerated.
5785         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5786         `paperlength'.
5788         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5789         with...
5790         (src_version, src_revision): New variables to avoid overwriting
5791         from parent make process.
5792         (version.cc): Updated.
5794         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5795         (linebuf, linebufsize): New global variables.
5796         (sys_fatal): Use `fatal' to abort properly.
5797         (get_line): New function.
5798         (get_resolution): Use it.
5799         Improve error messages.
5800         (get_papersize): Check `papersize' also.
5801         Use `get_line'.
5802         Improve error messages.
5804 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5806         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5807         should be removed only if builddir is not srcdir.
5808         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5809         (clean): Depend on `mostlyclean'.
5810         (distclean): Depend on `clean'.
5811         (realclean, extraclean): Depend on `distclean'.
5812         (.y.cc, .y.o): Simplified.  The output files are no longer written
5813         to srcdir but to builddir.
5814         * Makefile.in (MDEFINES): Add `version' and `revision'.
5815         (uninstall_dirs): Fix order of directories.
5816         * doc/Makefile.sub (version, revision): Removed.
5817         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5818         Added `HTMLDOCFILES'.
5819         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5820         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5821         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5822         as prefix.
5824         * doc/texinfo.tex (\authortt): New macro.
5825         (\shortcontt): Define.
5826         (\titlepage): Set \tt to \authortt while defining \authorfont.
5827         (\appendixbox): New macro.
5828         (\chapmacro, \appendixentry): Use \appendixbox to get even
5829         indentation for letters.
5830         (\summarycontents): Set \tt.
5831         (\internalpagesize): Add two arguments for real paper width and
5832         height as needed by pdfTeX.
5833         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5834         Updated.
5835         (\tempdima, \tempdimb): New temporary dimensions.
5836         (\pagesizesyyy): Updated.
5838 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5840         Adding a new keyword `papersize' to the DESC file format (similar
5841         but not completely identical to grolbp's extension).  grops now has
5842         a -p command line option to override `papersize'.  Finally, grolbp
5843         has been adapted to the new syntax.
5845         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5846         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5847         elements.
5848         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5849         (CCSRCS): Add `paper.cc'.
5851         * src/include/font.h (font): Add `papersize' element.
5852         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5853         (font::scan_papersize): New function.
5854         (font::load_desc): Use it for handling `papersize' keyword.
5855         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5857         * src/devices/grops/ps.cc: Include paper.h.
5858         (user_paper_length): New global variable.
5859         (ps_printer): Use paper length as initializer.
5860         (make_printer): Updated.
5861         (main): Handle new `-p' option.
5862         * src/devices/grops/grops.man: Updated.
5864         * src/devices/grolbp/lbp.cc: Include paper.h.
5865         s/papersizes/lbp_papersizes/.
5866         (set_papersize): Use new `papersizes' array.
5867         (handle_unknown_desc_command): Don't handle `papersize'.
5868         (main): Use `font::scan_papersize' for handling `-p' option.
5869         * src/devices/grolbp/grolbp.man: Updated.
5871         * man/groff_font.man: Document `papersize'.
5872         * NEWS: Updated.
5874 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5876         * src/devices/grops/TODO: Updated.
5877         * src/devices/grops/grops.man: More info on paper formats.
5878         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5880 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5882         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5883         to list only if srcdir != currdir.
5884         (distfiles): New target.
5886         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5887         (NOMAKEDIRS): New variable.
5888         (DISTDIRS): Use it.
5890 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5892         Add .output request, similar to \! at top-level.
5894         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5895         (output_request): New function.
5896         (init_input_requests): Add it.
5897         Sorted.
5898         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5899         Document it.
5901         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5902         (prepare_examples): Fix typo.
5903         * doc/groff.texinfo (@direntry): Fix it.
5905 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5907         Including the doc subdir into groff's Makefile system.
5909         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5910         * configure.ac: Use it.
5911         Generate `doc/Makefile'.
5912         * configure: Regenerated.
5914         * Makefile.in (infodir, INSTALL_INFO): New variables.
5915         (MDEFINES, uninstall_dirs): Updated.
5916         (OTHERDIRS): Add `doc'.
5917         * Makefile.comm (CLEANDIRADD): New variable.
5918         (mostlyclean): Use it.
5920         * doc/Makefile.sub, doc/Makefile.in: New files.
5921         * doc/Makefile: Removed.
5923         * NEWS, INSTALL: Updated.
5925 2002-05-24  Werner LEMBERG  <wl@gnu.org>
5927         * doc/homepage.ms: Renamed to ...
5928         * doc/webpage.ms: This.
5929         Use `.NHR'.
5931 2002-05-23  Werner LEMBERG  <wl@gnu.org>
5933         Integrating the `mom' macro package, contributed by Peter Schaffter
5934         <df191@ncf.ca>.
5936         * contrib/mom/*: New subdirectory tree.
5937         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
5938         be used for documentation files.
5939         (MDEFINES, uninstall_dirs): Use them.
5940         (OTHERDIRS): Add contrib/mom.
5941         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
5942         @HTMLDOCDIR@.
5943         * MANIFEST, NEWS: Updated.
5945 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
5947         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
5948         if at outer level; at start-up we are at outer level.
5950         * src/roff/troff/input.cc (do_suppress): Implement it.
5951         Simplify \O[3].
5953         Add option -p to show progress information.
5954         pre-grohtml will now render only one page at a time, reducing the
5955         size of needed disk resources enormously.
5957         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
5958         (imagePageName): New global variable.
5959         (psPageName, show_progress, currentPageNo): New global variables.
5960         (html_system): Close saved stderr and stdout handles.
5961         (write_end_image): Accept a parameter to control \O escape.
5962         (write_start_image): Adapted to new \O meaning.
5963         (char_buffer::write_upto_newline): Updated.
5964         (createAllPages): Replaced with...
5965         (createPage): This new function to create a single page for images.
5966         It uses `psselect' from the psutils package.
5967         (removeAllPages): Removed.
5968         (createImage): Updated.
5969         Handle progress display.
5970         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
5971         (scanArguments): Add option -p.
5972         (makeTempFiles): Updated to create temp files for psPageName and
5973         imagePageName.
5974         (removeTempFiles): Removed.
5975         (main): Updated.
5977         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
5978         html_printer::write_header): Append `\0' to `buffer'.
5979         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
5980         (main): Handle -p.
5981         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
5982         Handle `text_emitted'.
5983         (html_text::table_is_void): Slightly rewritten.
5984         (stop): New external symbol.
5985         (html_text::do_push) [DEBUGGING]: Use it and simplify.
5986         (html_text::shutdown): Call `dump_stack'.
5987         (html_text::do_space): Rewritten.
5988         * src/devices/grohtml/grohtml.man: Document -p and the need of
5989         `psselect'.
5991         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
5992         new \O syntax.
5993         Call \O[0] if `ps4html' is active.
5994         * tmac/s.tmac (@EQ, @EN): Handle html better.
5995         (@TS, TE): Ditto.
5996         * tmac/html.tmac: Don't use black for background colour.
5998         * src/roff/troff/node.cc: Include `div.h'.
5999         (troff_output_file::really_print_line): Don't use `is_on'. 
6000         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6001         troff_output_file::check_charinfo,
6002         troff_output_file::put_char_width, troff_output_file::put_char,
6003         troff_output_file::determine_line_limits, troff_output_file::draw,
6004         real_output_file::begin_page, glyph_color_node::tprintf,
6005         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6006         Use `is_on'.
6007         (troff_output_file::really_on): Call `do_motion'.
6008         (suppress_node::tprint): Use `get_page_number' instead of `%'
6009         register.
6010         Call `reset_output_registers' conditionally on `is_on'.
6012         * doc/groff.texinfo: Document new syntax of \O.
6013         * NEWS, man/groff_diff.man: Updated.
6015 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6017         * MORE.STUFF: Add info about David Frey's deroff implementation.
6018         Mention troff.org.
6020 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6022         Pic's `with' attribute now accepts positions.
6024         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6025         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6026         conflicts.
6027         (object_spec): Add rule for `WITH' and `position'.
6028         (relative_path): Give `corner' the precedence of `CHOP'.
6029         * src/preproc/pic/object.h (path): New members `pos' and
6030         `is_position'.
6031         * src/preproc/pic/object.cc: Updated initializers of `path'.
6032         (path::follow): Handle `is_position'.
6034         * doc/pic.ms: Completely updated grammar description.
6035         Many typographical improvements.
6037 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6039         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6040         code of x in range 0-127) also.
6041         * doc/groff.texinfo, man/groff_diff.man: Updated.
6043         Added keywords `north', `south', `east', and `west' for corners
6044         in pic.
6046         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6047         and WEST.
6048         (yylex): Handle them.
6049         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6050         (corner): Handle them.
6052 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6054         * src/devices/grops/grops.man: Clarify handling of `download' file.
6056 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6058         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6059         Jeffrey Friedl <jfriedl@yahoo.com>.
6061         * src/roff/troff/input.cc (spread_limit, warn_scale,
6062         warn_scaling_indicator): New global variables.
6063         (warnscale_request, spreadwarn_requests): New functions.
6064         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6065         (init_input_requests): Updated.
6066         (error_type): Add `OUTPUT_WARNING'.
6067         (do_error): Handle it.
6068         (output_warning): New warning function which shows output location.
6069         * src/roff/troff/env.h (spread_limit): New external variable.
6070         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6071         `output_warning'.
6072         (distribute_space): Emit warning if added space is larger than
6073         `spread_limit'.
6074         (environment::possibly_break_line): Emit warning if a line can't
6075         be adjusted on both sides.
6077         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6079 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6081         * src/roff/troff/node.cc (special_node::special_node): Use
6082         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6083         \X''\% crashes, for example.
6085         * doc/groff.texinfo: Document \! and \? used at top-level.
6087 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6089         * src/preproc/pic/pic.man: Fix some keyword syntax.
6090         Other minor typographical fixes.
6092         * src/roff/groff/groff.man: Fix typos.
6094 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6096         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6097         (ShortOpt[]): This to avoid problems with refer.
6099         * doc/pic.ms: Fix typo.
6100         Fix pic grammar description.
6102         * tmac/an-old.tmac (ne): Use de1, not de.
6104 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6106         * doc/groff.texinfo: Finished separation of glyphs and characters.
6107         Don't use the string `Appendix' for appendix headers (both in
6108         the text and the table of contents).
6109         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6110         directories.
6112         Use registers LL and LT (similar to -ms) for controlling the
6113         length of title and line, respectively, in the -man and -mdoc
6114         macro packages.
6116         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6117         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6118         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6119         (TH): Use \n[LL].
6120         (an-header, an-p-footer): Use \n[LT].
6121         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6122         doc/groff.texinfo: Document it.
6124 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6126         * doc/fdl.texi: New file.
6127         * doc/groff.texinfo: Include it.
6128         Define and use @copying.
6129         Starting with separating glyph, symbol, and character.
6131 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6133         * Makefile.in (EXEEXT): Set it.
6134         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6135         programs.
6137         * src/include/nonposix.h: Define GS_NAME.
6138         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6140         Some preliminary changes for EMX support under OS/2.
6142         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6143         __EMX__ similar to __MSDOS__.
6144         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6146 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6148         * doc/groff.texinfo: Integrated groff_out.man.
6149         Some macro fixes.
6151 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6153         * man/groff_out.man: Minor fixes.
6155 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6157         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6158         correct page references.
6159         Fixed many index entries.
6161 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6163         * man/roff.man: Enlarged.
6165 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6167         * doc/groff.texinfo: More examples, other fixes.
6169 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6171         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6172         will now form a chain, e.g.
6174           .pi foo
6175           .pi bar
6177         is now the same as
6179           .pi foo | bar
6181         This is for compatibility with plan 9's troff.
6183         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6184         with UNIX troff.
6185         * NEWS: Updated.
6187         * doc/groff.texinfo: Add documentation of remaining requests and
6188         registers.
6190 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6192         * doc/groff.texinfo: Add documentation of remaining escapes.
6194         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6195         * font/devdvi/*TC: Regenerated.
6197 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6199         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6200         if not in compatibility mode, i.e., increment relative to the
6201         previous height.
6202         * doc/groff.texinfo: Updated accordingly.
6204 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6206         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6208 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6210         * src/roff/groff/groff.man: Improve documentation of -P option.
6211         Other minor fixes.
6213 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6215         Add new escape \F to switch font family.
6217         * src/roff/troff/input.cc (token::next): Handle \F.
6218         * src/roff/troff/env.cc (environment::set_family): Handle
6219         `interrupted' flag.
6220         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6221         Document it.
6223 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6225         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6226         spaces in tags.
6228 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6230         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6231         \m[] and \M[], respectively.
6233         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6234         (symbol::symbol): Handle NULL string and empty string differently.
6235         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6236         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6237         Add optional parameter.
6238         Updated calling functions.
6239         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6240         `symbol::is_empty'.
6241         * src/roff/troff/env.cc (environment::set_font): Ditto.
6243         * src/preproc/pic/troff.cc (troff_output::set_fill,
6244         troff_output::reset_color: Updated.
6246         * tmac/www.tmac: Updated.
6248         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6249         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6250         Updated.
6252         * tmac/Xps.tmac: Remove some redundant code.
6254         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6255         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6256         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6257         \f[].
6259 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6261         * src/include/printer.h, src/libs/libdriver/printer.cc
6262         (printer::change_fill_color): New member function.
6263         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6265 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6267         * doc/groff.texinfo: Completed pass on gtroff reference.
6269 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6271         * doc/groff.texinfo: More fixes.
6273 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6275         * src/include/color.h: Decorate with `const'.
6276         Use `size_t'.
6277         Include `stddef.h'.
6278         * src/libs/libgroff.color.cc: Decorate with `const'.
6279         Use `size_t'.
6280         (color::color): Initialize members.
6281         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6282         command according to the documentation.
6284         * man/groff_out.man: Updated.
6285         Minor fixes.
6287 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6289         * src/preproc/html/pre-html.cc (write_start_image): Remove
6290         redundant output.
6291         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6293         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6294         \C'hy' caused an assertion failure.
6296         * src/roff/troff/env.cc (environment::environment): Initialize
6297         `emitted_node'.
6298         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6300 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6302         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6303         Document pvs request and .pvs register.
6305 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6307         * doc/groff.texinfo: Improve and fix documentation of diversions
6308         and environments.
6310 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6312         * doc/groff.texinfo: Fix documentation of drawing functions.
6313         Other minor fixes.
6315 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6317         * doc/groff.texinfo: Better documentation of double quotes as
6318         arguments.
6319         Other minor fixes.
6321 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6323         * man/groff_font.man: Document names of special characters better.
6324         * doc/groff.texinfo: Minor improvements.
6326         * tmac/lbp.tmac: Load latin1.tmac.
6327         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6329         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6331 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6333         * tmac/tty.tmac: Don't use shc request.
6334         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6335         * NEWS: Updated.
6337         * man/groff_diff.man: Minor fixes.
6339         * font/devlbp/*: Remove all `charXXX' entities.
6341         * src/libs/libgroff/font.cc (font::~font): Deallocate
6342         `special_device_coding'.
6343         (font::load): Use `new' for allocating `special_device_coding'.
6344         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6345         Removed unused member.
6347 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6349         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6350         (resource_manager::do_begin_binary,
6351         resource_manager::do_begin_data): Use it.
6353         * doc/texinfo.tex: Updated to version 4.2.
6355         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6356         (token::zero_width_break): New inline function.
6357         * src/roff/troff/input.cc (token::next): Use it.
6358         (token::description): Updated.
6359         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6360         (token::add_to_node_list, token::process): Use it.
6361         * NEWS, doc/groff.texinfo: Updated.
6363         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6364         * tmac/tty.tmac: Add missing backslash.
6366 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6368         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6369         `.ps' register instead of `.s' to handle fractional point sizes.
6370         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6371         limit_box::output): Ditto.
6372         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6373         size_box::output): Ditto.
6374         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6375         over_box::output): Ditto.
6376         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6377         script_box::output): Ditto.
6378         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6379         sqrt_box::output): Ditto.
6381 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6383         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6384         Fix typo.
6386 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6388         * doc/homepage.ms: Reduce title size.
6389         * doc/groff.texinfo: Fix documentation of .t register.
6390         Fix handling of colon.
6391         Fix `\' vs. `\\'.
6393         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6394         only if page length is positive to avoid a loop.
6396         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6397         tbl.
6399 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6401         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6402         s/__CYGWIN32__/__CYGWIN__/.
6404 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6406         * doc/gnu.xpm: New image contributed by Emily Mulley.
6407         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6408         (homepage.html): Be dependent on gnu.eps.
6409         * doc/homepage.ms: Updated to new image.
6411         * src/devices/grohtml/post-html.cc (html_printer): New member
6412         `sbuf_prev_hpos'.
6413         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6414         (html_printer::sbuf_continuation): Use it.
6416 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6418         * src/libs/libgroff/getopt.c: Updated to latest version.
6420         * tmac/README: More on hyphen.tex license.
6422 2002-03-26  Larry Kollar  <kollar@alltel.net>
6424         * doc/groff.texinfo: Add documentation of most missing requests.
6426 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6428         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6429         of `+-', `mu', and `di', respectively.
6431         * font/devascii/R.proto, font/devutf8/R.proto,
6432         font/devlatin1/R.proto, font/devhtml/R.proto,
6433         font/devcp1047/R.proto, font/devlpb/*: Add them.
6434         * font/devps/generate/textmap: Ditto.
6435         * font/devps/*: Regenerated.
6436         * font/devlj4/generate/text.map: Add them.
6437         * font/devlj4/*: Regenerated.
6438         * font/devdvi/generate/tc.map: Use them.
6439         * font/devdvi/generate/texsy.map: Add them.
6440         * font/devdvi/*: Regenerated.
6441         * font/devX*/*: Regenerated.
6443         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6444         tmac/tty-char.tmac: Updated.
6446         * NEWS, man/groff_char.man: Updated.
6448 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6450         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6451         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6452         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6453         we use `.fchar' in dvi.tmac.
6454         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6455         * tmac/Xps.tmac: Simplify some char definitions.
6456         Add definition for \[f/].
6457         * man/groff_char.man: Updated for new X.tmac.
6459         * tmac/README: New file.
6461 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6463         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6464         internal .y.o rule took precendence over the .y.cc rule, compiling
6465         the yacc files with gcc instead of g++.
6467 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6469         * tmac/dvi.tmac: Add replacement font for `CB'.
6471         * tmac/doc.tmac: s/request/macro/ in messages.
6472         (doc-generic-macro): Improve error message.
6473         * tmac/groff_mdoc.man: Minor improvements.
6475 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6477         * doc/groff.texinfo: Document possible conflict between `tr' and
6478         `char' requests.
6480 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6482         Improve handling of hyphenation patterns.  It is now possible to
6483         use most of TeX's pattern files unmodified.  To make the process
6484         more flexible, a new request `hpfcode' has been added which
6485         provides a character code mapping for the `hpf' request.  See
6486         comment before hpf_getc() for more details.
6488         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6489         functions.
6490         (read_patterns_file): Additional parameter for exception dictionary.
6491         Extended to recognize \pattern, \hyphenation, and \endinput.
6492         (do_hyphenation_patterns_file): Updated.
6493         * src/roff/troff/env.h (hpf_code_table): New extern.
6495         * src/roff/troff/input.cc (hpf_code_table): New array.
6496         (init_hpf_code_table, hyphenation_patterns_file_code): New
6497         functions.
6498         (hyphenation_code): Handle translation from `trin' correctly.
6499         (main, init_input_requests): Updated.
6500         (charinfo::set_translation): Handle hyphenation code also.
6502         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6503         inline function.
6505         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6506         char' is used for offsets in hyphenation exceptions.
6508         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6510         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6512 2002-03-20  Larry Kollar  <kollar@alltel.net>
6514         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6515         requests.
6517 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6519         * tmac/html.tmac: Fix serious typo.
6521 2002-03-17  Larry Kollar  <kollar@alltel.net>
6523         * doc/groff.texinfo: Add documentation for `writec' request.
6525 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6527         Added request `hpfa' to append hyphenation patterns.
6529         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6530         parameter `append'.
6531         (hyphenation_patterns_file): Renamed to...
6532         (do_hyphenation_patterns_file): This.
6533         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6534         functions.
6535         (init_hyphen_requests): Updated.
6536         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6538 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6540         Added request `writec' in analogy to `tmc'.
6542         * src/roff/troff/input.cc (write_request): Renamed to...
6543         (do_write_request): This.
6544         Added one parameter.
6545         (write_request, write_request_continue): New functions.
6546         (init_input_requests): Updated.
6547         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6549         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6550         5-10000pt.
6551         * NEWS: Document it.
6553 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6555         * man/groff.man: Add writem request.
6557         Add request `trin' (translate input) to make `.asciify' work
6558         correctly.  This is necessary since `charXXX' entity names are no
6559         longer hardcoded in font definition files.
6561         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6562         `translate_input' members.
6563         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6564         charinfo::set_translation_input): New methods.
6565         (charinfo::set_translation): Add third argument.
6566         * src/roff/troff/input.cc (charinfo:set_translation): Set
6567         `asciify_code'.
6568         (do_translate): Add second argument.
6569         (translate_input): New function.
6570         (init_input_requests): Updated.
6571         * src/roff/troff/node.cc (glyph_node::asciify,
6572         composite_node::asciify): Use `get_asciify_code'.
6574         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6576         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6578 2002-03-14  Larry Kollar  <kollar@alltel.net>
6580         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6582 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6584         Add a new request `sizes' similar to the `sizes' command in DESC
6585         files.
6587         * src/roff/troff/env.cc (override_sizes): New function.
6588         (init_env_requests): Use it.
6589         * src/roff/troff/token.h: Export `read_string'.
6590         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6592 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6594         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6596 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6598         * tmac/pspic.tmac: Add support for -Tdvi.
6599         * tmac/dvi.tmac: Include pspic.tmac.
6600         * src/devices/grodvi/grodvi.man: Document it.
6601         * NEWS: Updated.
6603         * font/devlj4/generate/Makefile: Fix URL of metric files.
6605 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6607         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6609 2002-03-09  Larry Kollar  <kollar@alltel.net>
6611         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6613 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6615         * doc/groff.texinfo: Fixes for texinfo 4.1.
6617 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6619         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6620         included.
6621         Handle CYGWIN properly.
6623 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6625         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6626         * tmac/lbp.tmac: Add some font translations.
6628 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6630         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6631         font/devhtml/R.proto: Remove `charXXX'  entries.
6632         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6633         where appropriate.
6635         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6636         * font/devlj4/*: Regenerated all font definition files.
6637         * tmac/lj4.tmac: Load latin1.tmac.
6639         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6640         from 2000-06-17: LJ4 metric files are *not* text files.
6642         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6643         register to test for EBCDIC.
6645 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6647         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6648         files (as grops already does).
6649         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6650         files.
6651         * src/devices/grops/grops.man: Document comment lines in encoding
6652         files.
6654         * tmac/cp1047.tmac: New file.
6655         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6656         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6657         * tmac/Makefile.sub (NORMALFILES): Updated.
6659         * tmac/ec.tmac: Don't load latin1.tmac again.
6661         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6662         font/devps/generate/dingbats.map,
6663         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6664         font/devps/generate/Makefile (symbolmap): Add header comment.
6665         * font/devps/generate/textmap: Ditto.
6666         Remove `charXXX' entries.
6667         * font/devps/symbolmap: Regenerated.
6668         * font/devps/*: Regenerated all font definition files.
6670 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6672         Add color support to grodvi (for drawing colors are currently
6673         translated to gray values).
6675         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6676         (dvi_printer): Add `cur_color' member.
6677         (dvi_printer::set_color): New function.
6678         (draw_dvi_printer): Remove `fill'.
6679         (draw_dvi_printer::fill_next): Pass environment as parameter.
6680         Update code for new color support translated to gray.
6681         (dvi_printer::set_char): Updated.
6682         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6683         changes crossing the page border.
6684         (dvi_printer::draw): Updated.
6685         Remove cases `f' and `F'.
6686         * tmac/dvi.tmac: Add color definitions.
6687         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6689         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6690         used incorrectly.
6692         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6693         versions of autoconf.
6694         * configure: Updated.
6696         * doc/homepage.ms: Use `.blm'.
6697         * tmac/www.tmac (www-depth): New auxiliary variable.
6698         (www-pop-level): Don't issue HTML tag.
6699         (ULS, ULE, LI): Use absolute indentation.
6701         * src/devices/grops/ps.cc (ps_printer::begin_page,
6702         ps_printer::end_page): Switch forth and back to default color while
6703         starting a new page.
6705 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6707         Add EC and TC fonts to devdvi.
6709         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6710         * font/devdvi/generate/cork.map: Renamed to...
6711         * font/devdvi/generate/ec.map: This.
6712         Remove entry for `aq'.
6713         * font/devdvi/generate/tc.map: New file.
6714         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6715         EC and TC fonts.
6716         (FONTS): Updated.
6717         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6718         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6719         * tmac/ec.tmac: New file.
6720         * tmac/Makefile.sub (NORMALFILES): Updated.
6721         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6722         * man/groff_char.man: Check `ECFONTS' register.
6724         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6726 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6728         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6729         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6730         * font/devdvi/*: Updated.
6731         * tmac/dvi.tmac: Formatting.
6733         Add font `HBI' for the dvi output.
6734         Add support for font families `T' and `H'.
6736         * font/devdvi/HBI: New file.
6737         * font/devdvi/B: Renamed to ...
6738         * font/devdvi/TB: This.
6739         * font/devdvi/BI: Renamed to ...
6740         * font/devdvi/TBI: This.
6741         * font/devdvi/I: Renamed to ...
6742         * font/devdvi/TI: This.
6743         * font/devdvi/R: Renamed to ...
6744         * font/devdvi/TR: This.
6745         * font/devdvi/H: Renamed to ...
6746         * font/devdvi/HR: This.
6747         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6748         * font/devdvi/generate/Makefile (HBI): New rule.
6749         (FONTS): Updated.
6750         (R, I, B, BI, H): Renamed to ...
6751         (TR, TI, TB, TBI, HR): This, respectively.
6752         (srcdir): Fixed.
6753         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6754         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6755         Add `styles' and `family' keywords.
6756         * tmac/dvi.tmac: Alias `H' to `HR'.
6757         Add some fspecial requests for italic fonts.
6758         Add TR and TI as special.
6759         Add support for `_' with font CWI.
6761         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6762         operator `:'.  Until now, the expression `0:1' would return 2
6763         instead of 1.
6765 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6767         * man/groff_char.man: Added some missing PS glyph names (from the
6768         Adobe Glyph List).
6769         * font/devps/generate/textmap, font/devps/symbolmap: Add
6770         `arrowupdn'.
6772         * doc/groff.texinfo: Minor additions and fixes.
6773         * man/groff_diff.man: Remove documentation of fp request.  This
6774         is already covered in the original troff manual.
6775         Updated to be consistent with other doc files.
6776         * NEWS: Updated.
6778 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6780         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6781         TTYDEVDIRS.
6782         Define new variable OTHERDEVDIRS (containing `font/devlj4
6783         font/devlbp' if not EBCDIC).
6784         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6785         (OTHERDEVDIRS): New variable.
6786         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6787         * configure: Regenerated.
6789         * NEWS, src/devices/grotty/grotty.man: Updated.
6791 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6793         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6794         get_line_arg): Honour input level.
6796         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6798         * font/*/*: Implement it in all font files.
6799         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6800         * font/devps/symbolmap: Updated.
6801         * font/devlj4/generate/text.map: Updated.
6802         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6803         * font/devdvi/generate/texmi.map: Updated.
6805         * font/devutf8/R.proto: Remove all `charXXX' entries.
6806         * font/devutf8/NOTES: Updated.
6808         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6809         version 4.1.0.
6811         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6813         * NEWS, man/groff_char.man: Updated.
6815 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6817         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6819 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6821         * src/roff/grog/grog.pl: Fix computation of $refer.
6823 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6825         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6826         `snprintf' and `vsnprintf'.
6828         * src/include/htmlindicate.h: Renamed to...
6829         * src/include/htmlhint.h: This.
6830         * src/include/Makefile.sub: Updated.
6831         * src/preproc/eqn/main.cc: Updated.
6833 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6835         * man/roff.man, man/groff_out.man, man/groff.man,
6836         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6837         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6839         * win32-diffs: Updated.
6841 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6843         * doc/Makefile (clean): Add *.eps.
6844         (MEMACROS): Removed.
6845         (TFLAG): New variable.
6846         (TROFF): Use it.
6847         Add -ww.
6848         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6849         (.me.dit): Fixed.
6850         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6852         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6853         `.tl'.
6854         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6855         unstripped.
6856         * src/roff/troff/troff.man: Fix order of parameter description.
6858         * NEWS: Updated.
6860 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6862         Simplify image handling for grohtml.
6863         Fix <p> bug.
6865         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6866         comment out.
6867         (html_text::dump_stack): Don't emit newline while debugging.
6868         (html_text::do_push) [DEBUGGING]: Print more info.
6869         (html_text::check_emit_text): Fix handling of <p>.
6870         * src/devices/grohtml/html.h: Updated.
6871         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6872         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6873         send its data to stderr also.
6874         Update all callers.
6875         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6876         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6877         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6879         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6880         Removed.
6881         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6882         is_inline_image): Removed.
6883         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6884         (graphic_start, graphic_end): Removed.
6885         * src/include/htmlindicate.h: Updated.
6886         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6887         (macroset_template): New global variable.
6888         (makeFileName): Use `macroset_template'.
6889         (write_end_image): Don't take a parameter.
6890         Don't emit newline.
6891         (write_start_image: Don't emit newline.
6892         (char_buffer::write_upto_newline): Updated.
6893         (char_buffer::skip_to_newline): Renamed to ...
6894         (char_buffer::skip_until_newline): This.
6895         Fix code.
6896         (char_buffer::write_file_troff, char_buffer::write_file_html):
6897         Simplified.
6898         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6899         (removeAllPages): Remove `DEBUGGING' conditionals.
6900         (addRegDef, dump_args): New functions.
6901         (char_buffer::do_html, char_buffer::do_image): Handle
6902         `www-image-template' command line variable.
6903         Add more debugging code.
6904         (addps4html): Removed.
6905         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6907         * src/preproc/eqn/main.cc: Include `ctype.h'.
6908         (suppress_html): Removed.
6909         (do_file): Updated.
6910         (inline_equation): Use `html_begin_suppress' and
6911         `html_end_suppress'.
6912         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
6913         (troff_output::start_picture, troff_output::finish_picture):
6914         Updated.
6915         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
6916         (process_input_file): Updated.
6918         * src/roff/troff/div.cc (page_number): Set page number only if the
6919         `ps4html' register isn't defined.
6920         * src/roff/troff/input.cc (image_no): New external variable.
6921         (do_suppress): Use it.
6922         * src/roff/troff/node.h (suppress_node::image_id): New member.
6923         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
6924         (suppress_node::suppress_node): Initialize `image_id' member.
6925         (suppress_node::same): Handle `image_id' also.
6926         (suppress_node::copy): Updated.
6927         (last_image_id): New global variable.
6928         (suppress_node::tprint): Use it.
6930         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
6931         HTML-IMAGE-END.
6932         * tmac/pspic.mac (PSPIC): Fix html support.
6933         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
6934         * tmac/www.tmac (www-image-template): Set up.
6935         (HTMLINDEX): Renamed to...
6936         (HX): This.
6937         (BODYCOLOR): Renamed to...
6938         (BCL): This.
6939         (BACKGROUND): Renamed to...
6940         (BGIMG): This.
6941         (URL): Change order of parameters for consistency.
6942         (MAILTO): Renamed to...
6943         (MTO): This.
6944         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
6945         (IMG, PIMG, MPIMG): This.
6946         (HTML-H-BEGIN, HTML-H-END): Renamed to...
6947         (HnS, HnE): This.
6948         (LINKS): Renamed to...
6949         (LK): This.
6950         (LINE): Renamed to...
6951         (HR): This.
6952         (NO-AUTO-RULE): Renamed to...
6953         (NHR): This.
6954         (HTML-TL): Renamed to...
6955         (HTL): This.
6956         (UL-BEGIN, UL-END): Renamed to...
6957         (ULS, ULE): This.
6958         (DROPCAP): Renamed to...
6959         (DC): This.
6960         (TS, TE, EQ, EN): Provide default definitions.
6961         (www-make-unique-name): Updated.
6962         (HTML-IMAGE-INLINE): Fix typo.
6963         * tmac/groff_www.man: Updated.
6965         * doc/Makefile (homepage.html): Add option -r to grohtml.
6966         Use shortened image name.
6967         * doc/groff.texinfo: Updated info on grohtml strings and macros.
6968         * doc/homepage.ms: Updated and extended.
6970 2002-02-14  Werner LEMBERG  <wl@gnu.org>
6972         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
6974         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
6975         SGR_BACK_DEFAULT_COLOR): Replaced with ...
6976         (tty_printer::put_color): Use it.
6977         (ttr_printer::end_page): Simplify.
6979 2002-02-13  Werner LEMBERG  <wl@gnu.org>
6981         * tmac/groff_tmac.man: Moved to...
6982         * man/groff_tmac.man: This place.
6983         * tmac/Makefile.sub, man/Makefile.sub: Updated.
6985 2002-02-12  Werner LEMBERG  <wl@gnu.org>
6987         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
6988         $(COMPILE.c) to not include groff's assert.h.
6990         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
6991         variable.
6992         * NEWS, src/drivers/grotty/grotty.man: Document it.
6994 2002-02-11  Werner LEMBERG  <wl@gnu.org>
6996         * src/libs/snprintf/snprintf.c: Updated to latest version
6997         (2002-02-11).
6999         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7000         test whether there is `.]' also.
7001         Don't check for spaces after `.['.
7002         * src/roff/grog/grog.sh: Do the same.
7004 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7006         Illegal -> Invalid.
7008         * src/libs/libgroff/illegal.cc: Renamed to ...
7009         * src/libs/libgroff/invalid.cc: This.
7010         (illegal_char_table): Renamed to ...
7011         (invalid_char_table): This.
7012         * src/libs/libgroff/Makefile.sub: Updated.
7013         * win32-diffs: Updated.
7015         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7016         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7017         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7018         font::load), src/preproc/eqn/main.cc (read_line, main),
7019         src/preproc/eqn/lex.cc (file_input::read_line),
7020         src/preproc/pic/lex.cc (file_input::read_line,
7021         simple_file_input::get, simple_file_input::peek),
7022         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7023         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7024         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7025         do_bib), src/preproc/tbl/main.cc (table_input::get),
7026         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7027         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7028         do_zero_width, read_request, encode_char, ps_get_line,
7029         transparent_file, get_char_for_escape_name, transparent_translate,
7030         asciify, input_char_description, read_string, set_string),
7031         src/roff/troff/env.cc (environment::add_html_tag),
7032         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7034         * src/include/lib.h: Updated.
7036         * src/preproc/eqn/eqn.cc: Removed.
7038         * NEWS: Updated.
7040         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7042 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7044         * doc/gnu.xpm: New image.
7045         * doc/Makefile (DOCS): Add homepage.ps.
7046         Add rules for converting xpm->png and xpm->eps.
7047         Use `gnu.{xpm,eps}' as image names.
7048         * doc/homepage.ms: Updated.
7050 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7052         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7053         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7054         Remove calls to `B1' and `B2'
7055         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7056         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7057         auxiliary variables for MARGIN-PNG-IMAGE.
7058         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7059         auxiliary macros for MARGIN-PNG-IMAGE.
7060         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7061         the margin.
7062         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7063         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7064         (DROPCAP): New macro to produce dropcap characters.
7065         (www-do-image): Renamed back to...
7066         (HTML-DO-IMAGE): This.
7067         Updated all callers.
7069         * doc/Makefile (gnubw.eps): Updated.
7070         * doc/homepage.ms: Updated.
7072 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7074         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7075         Added `linethick' to table in section `Style Variables'.
7077 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7079         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7081 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7083         Adding options -C (compatibility mode) and -c (grotty's old output
7084         scheme) to nroff.
7086         * src/roff/nroff/nroff.sh: Implement it.
7087         Remove `-Wall'.
7088         * NEWS, src/roff/nroff/nroff.man: Updated.
7090         * PROBLEMS: Document bison 1.32 bug.
7092         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7094         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7095         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7096         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7097         * src/roff/troff/env.h: Add prototype for `title'.
7099         Adding EBCDIC support to grotty.
7101         * src/devices/grotty/tty.cc (CSI): New macro.
7102         (SGR_*, tty_printer::put_color): Use it.
7104 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7106         Implementing color support in grotty.  The new switch -c activates
7107         the old drawing scheme, disabling color at the same time.  The new
7108         switch `-i' selects italic instead of underlining (SGR only).
7110         * src/devices/grotty/tty.cc (putstring): New define instead of
7111         `fputs'.  Updated all callers.
7112         (old_drawing_scheme): New global variable.
7113         (COLOR_CHANGE): New enum value.
7114         (SGR_*): New defines containing color handling escape sequences.
7115         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7116         (glyph): New members `back_color_idx' and `fore_color_idx'.
7117         (glyph::order): Add COLOR_CHANGE.
7118         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7119         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7120         New methods `make_underline', `make_bold', `color_to_idx',
7121         `change_color', `put_color'.
7122         (cu_flag): Moved into `tty_printer' class.
7123         (tty_printer::tty_printer): Initialize colors.
7124         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7125         tty_printer::draw, tty_printer::end_page): Handle colors also.
7126         (main): Add options `-c' and `-i'.
7127         (usage): Updated.
7128         * NEWS, src/devices/grotty/grotty.man: Updated.
7130         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7131         * src/libs/libgroff/errarg.c: Implement it.
7133         * src/include/printer.h (printer): Add `change_color' method
7134         (currently used by grotty only).
7135         * src/libs/libdriver/printer.cc: Implement it.
7136         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7137         call to `pr->change_color'.
7139         * src/roff/troff/node.cc (troff_output_file::fill_color,
7140         troff_output_file::glyph_color): Call `do_motion'.
7142         * tmac/tty.tmac: Add color definitions.
7144         * src/roff/groff/groff.man: Minor fixes.
7146 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7148         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7149         it.  This is a preparation for future changes.
7151 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7153         * src/roff/troff/input.cc (process_input_stack): Fix the case
7154         where leading spaces are followed by \f or \s; previously, an
7155         incorrect space width has been used.
7157         * doc/roff.man (quoted_char): Fix argument.
7158         (comment): Define string.
7160 2002-02-04  Larry Kollar  <kollar@alltel.net>
7162         * doc/groff.texinfo: More fixes.
7164 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7166         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7167         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7168         `restore_compatibility' before `output_string' -- the LINE_STRING
7169         register now already contains proper switches from and to
7170         compatibility mode.
7172         * man/groff_char.man: Add Euro symbol.
7173         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7174         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7175         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7176         Other minor fixes.
7178         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7179         texinfo->pdf.
7180         (.texinfo.html): Add support for texinfo->html.
7182 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7184         Added three new requests `ds1', `as1', and `ami'.  The former two
7185         are equivalent to `ds' and `as' with the difference that
7186         compatibility mode is saved on entry, switched off during string
7187         expansion, and restored on exit.  The latter is the pendant to `dei'
7188         for `am'.
7190         (do_define_string): Use `define_mode' and `calling mode'.
7191         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7192         end of string, respectively.
7193         (define_string, append_string): Use `calling_mode'.
7194         (define_nocomp_string, append_nocomp_string,
7195         define_string_indirect): New functions.
7196         (init_input_requests): Updated.
7197         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7199         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7200         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7201         mm macro package accesses this string register directly.
7202         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7204         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7205         compatibility mode.
7207 2002-02-02  Larry Kollar  <kollar@alltel.net>
7209         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7211 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7213         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7215 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7217         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7218         * man/groff_out.man: Revised and updated.
7220 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7222         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7223         out the unused `{' and `}' commands.  Undefined by default.
7224         (IntArray): Make `data' private.
7225         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7226         new methods instead.
7227         (skip_line_D, skip_to_end_of_line): New functions.
7228         (get_D_fixed_args): Use `skip_line_D'.
7229         Changed to handle dummy odd arguments by ...
7230         (get_D_fixed_args_odd_dummy): This new function.
7231         (get_D_variable_args): Split some code into ...
7232         (get_possibly_integer_args): This new function.
7233         (send_draw): Use more `const'.
7234         (delete_current_env): New function.
7235         (position_to_end_of_args): Use `size_t'.
7236         Updated.
7237         (send_draw): Updated.
7238         (parse_D_command): Handle `c', `C', and `t' better.
7239         Updated.
7240         (do_file): Updated.
7242 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7244         * NEWS: Revised.
7245         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7246         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7247         proper HTML output -- see the comment in the file for more
7248         information.
7249         Updated all calls.
7251 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7253         Fixes to make color changes of 2002-01-21 work with grohtml.
7255         * src/devices/grohtml/post-html.cc (style): Updated.
7256         (html_printer): Remove unused methods.
7257         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7258         html_printer::special): Updated.
7259         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7260         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7261         Added some debugging code.
7262         (html_text::start_tag): Updated.
7263         (html_text::do_push): New method.
7264         (html_text::push_para): Call it.
7265         Add method for handling color.
7266         (html_text::do_color): Updated.
7267         (html_text::shutdown): Handle color.
7268         * src/devices/grohtml/html-text.h (tag_definition): New member
7269         `col'.
7270         Updated.
7272 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7274         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7276 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7278         Add two switches -a and -g to control the antialiasing bits for
7279         text and graphics, respectively.
7281         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7282         `-g'.
7283         * src/devices/grohtml/grohtml.man: Document them.
7284         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7285         New macros.
7286         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7287         (setupAntiAlias): New function.
7288         (createAllPages): Updated.
7289         (scanArguments): Handle `-a' and `-g'.
7290         (main): Call `setupAntiAlias'.
7291         * NEWS: Updated.
7293 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7295         * doc/groff.texinfo (Def*): Call index function after deffn.
7297         * tmac/html.tmac: Call `nroff' request.
7299 2002-01-26  Larry Kollar  <kollar@alltel.net>
7301         * tmac/groff_ms.man: Add some omissions.
7303 2002-01-25  Larry Kollar  <kollar@alltel.net>
7305         * tmac/groff_ms.man: Typographical improvements.
7307 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7309         * doc/groff.texinfo: Updated version and copyright.
7310         * src/devices/grops/grops.man: Updated.
7312         * tmac/groff_tmac.man: Fix `ig' macro.
7314         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7315         nroff mode.
7316         Use `.ne' unconditionally everywhere.
7317         (TS): Only insert some vertical space.  Doing a page break is no
7318         longer necessary due to the redefinition of the `ne' request.
7320         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7321         warning for unknown subcommands but parse and pass them to the
7322         device driver.
7324 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7326         * tmac/groff_www.man, NEWS: Fix typos.
7328 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7330         Complete revision of color support:
7332           Adapt programs to the new libdriver/input.cc.
7334           Color spaces are no longer converted to RGB but transferred as-is
7335           in the troff intermediate output format.
7337           Handle default color gracefully.  troff now supports a `default'
7338           color (which can't be changed).
7340           grops will now use the proper color space functions if available.
7342           Update pic.
7344         Note that currently grohtml doesn't handle colors properly.  This
7345         has to be fixed.
7347         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7348         (ui_to_a): New function.
7349         * src/include/lib.h: Updated.
7351         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7352         (color): Simplified; removed all `double' members and methods.
7353         A new array `components' now holds the color parameters.
7354         (color::is_default, color::get_components): New methods.
7355         (color::operator==, color:operator!=): New.
7356         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7357         to make access to the `components' array more comprehensible.
7358         * src/libs/libgroff/color.cc: Implement new color support.
7359         (atoh): Small fixes.
7360         (color::read_encoding): Simplified for new troff intermediate color
7361         output format.
7362         (default_color): New global variable.
7364         * src/roff/troff/input.cc (default_symbol): New global variable.
7365         (lookup_color): Use it.
7366         (default_black): Removed.
7367         (do_glyph_color, do_fill_color): Simplified.
7368         (define_color): Handle default color.
7369         Improve warnings.
7370         (do_if_request): Handle default color.
7371         * src/roff/troff/env.cc (environment::environment): Initialize
7372         colors with `default_color'.
7373         * src/roff/troff/node.cc (troff_output_file::put): Add method
7374         for `unsigned int'.
7375         (troff_output_file::hex): Removed.
7376         (troff_output_file::fill_color, troff_output_file::glyph_color):
7377         Updated to include/color.h and libdriver/input.cc.
7379         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7380         fill color properly (identically to the outline color).  \D'f...'
7381         doesn't work any more.
7382         All function calls to it updated.
7384         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7385         Updated.
7386         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7387         Updated.
7389         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7390         (ps_printer::sbuf_color): Make a real member instead of pointer.
7391         (ps_printer::fill_color, ps_printer::output_color): Removed.
7392         (ps_printer::ps_printer): Updated.
7393         (ps_printer::set_char): Ditto.
7394         (ps_printer::set_color): Use various color schemes.
7395         Use `put_color' method.
7396         (ps_printer::flush_sbuf): Don't set color.
7397         (ps_printer::fill_path): Take `environment' as parameter.
7398         Simplify color handling.
7399         (ps_printer::set_line_thickness): Renamed to ...
7400         (ps_printer::set_line_thickness_and_color): This (and updated).
7401         (ps_printer::set_color): Change second parameter from `complete'
7402         to `fill' which better describes what it does.
7403         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7404         and text in the right order.
7405         Updated.
7406         Remove branches for `f' and `F'; this is handled by
7407         libdriver/input.cc.
7408         * src/devices/grops/ps.h: Updated.
7409         * font/devps/prologue (FL): Redefined.
7410         ({F,C}r,k,g: New color functions (with and without filling).
7412         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7413         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7414         doc/groff.texinfo, NEWS: Updated.
7416 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7418         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7419         in this file for what has been changed.
7421 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7423         * test-groff: Fix GROFF_FONT_PATH.
7424         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7425         is read before .TH or .Dd is parsed.
7427 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7429         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7430         quadrant boundaries.
7432 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7434         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7435         applied last patch.
7437 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7439         * tmac/doc.common: Initialize %I register for the %I macro to
7440         avoid (harmless) warning.
7441         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7442         when in the SYNOPSIS section.
7444 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7446         * src/preproc/pic/lex.cc (get_token): Fix typo.
7448 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7450         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7452 2002-01-17  Larry Kollar  <kollar@alltel.net>
7454         * tmac/groff_ms.man: Completely rewritten.
7456 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7458         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7460 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7462         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7463         fill colors.
7464         (ps_printer::draw): Ditto.
7466 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7468         * tmac/groff_mdoc.man: Minor fixes.
7470 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7472         * man/groff_out.man: Some fixes.
7474 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7476         * doc/pic.ms: Fix typos.
7478 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7480         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7482 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7484         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7485         symbols.
7486         * NEWS: Updated.
7488 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7490         * man/groff_out.man: Revised.
7491         * man/roff.man: Minor fixes.
7492         * src/roff/troff/troff.man: Some reordering.
7494 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7496         * tmac/an-old.tmac: Add dummy macros for equation support.
7498 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7500         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7502         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7503         man pages.
7504         * tmac/groff_man.man: Small improvements.
7506 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7508         * man/groff_diff.man: Revised.
7510 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7512         * tmac/www.tmac: Remove extraneous backslash.
7514 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7516         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7518 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7520         Integrated groffer, contributed by Bernd Warken.
7522         * contrib/groffer/*: New.       
7523         * Makefile.in, NEWS: Updated.
7525 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7527         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7528         registers defined in macro packages.
7529         Revising the ms part.
7531 2002-01-04  Larry Kollar  <kollar@alltel.net>
7533         * doc/groff.texinfo: Add documentation for ms macros.
7535 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7537         First step in adding PS support for the Euro symbol.  `eu' is the
7538         official Euro logo, `Eu' is a font-specific glyph variant.
7540         * font/devps/text.enc: Add `Euro' at position 9.
7541         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7542         * font/devps/symbolmap: Regenerated.
7544         * NEWS: Updated.
7546 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7548         * man/roff.man: Revised.
7550 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7552         * src/roff/groff/groff.man: Completely rewritten.
7554 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7556         * doc/Makefile: Updated.
7558 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7560         * tmac/www.tmac: Make all names of internal macros/registers/strings
7561         lowercase, and prepend `www-'.
7562         Other minor changes.
7563         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7565 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7567         Implement option `-b' in grohtml to set the HTML background colour.
7569         * src/devices/grohtml/post-html.cc (default_background): New global
7570         variable.
7571         (html_printer::html_printer): Initialize `background' to
7572         `default_background'.
7573         (main): Implement option `-b'.
7574         (usage): Updated.
7575         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7576         of `-b' option.
7577         * src/devices/grohtml/grohtml.man: Updated.
7578         * doc/Makefile (.ms.html): Use `-b'.
7579         * tmac/html.tmac: Don't set background color.
7581         Add new grohtml tag `.html-tl'.
7583         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7584         member variable.
7585         (title_desc::title_desc): Updated.
7586         (html_printer::troff_tag): Handle `.html-tl'.
7587         (html_printer::write_title): Use `with_h1'.
7588         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7589         (HTML-TL): New macro.
7591         Add support for unordered lists in HTML.
7593         * tmac/www.tmac (www-level): New auxiliary register.
7594         (www-level1, www-level2, www-level3): New auxiliary strings.
7595         (www-push-level, www-pop-level): New auxiliary macros
7596         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7598         Miscellaneous.
7600         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7601         (DEFAULT_VERTICAL_OFFSET): Removed.
7602         (IMAGE_BOARDER_PIXELS): Set to 0.
7603         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7604         (vertical_offset): Initialize with 0.
7605         (gsPaper): New global variable.
7606         (get_resolution): Scan for and return unsigned int.
7607         (get_papersize): New function to get paper length from devps/DESC.
7608         (determine_vertical_offset): New function.
7609         (createAllPages): Produce gray-level images and use proper page
7610         length.
7611         (createImage): Use `-quiet' option of pnmcrop.
7612         (addZ): Fix passing of `-Z'.
7613         (scanArguments): Fix handling of `-o'.
7614         (main): Call `determine_vertical_offset'.
7615         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7616         code for `l'.
7618         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7619         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7620         glyph descenders properly.
7622         * doc/homepage.ms: Include `gnubw.eps'.
7623         * doc/Makefile (gnubw.eps): New rule.
7624         (homepage.html): Depend on `gnubw.eps'.
7626 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7628         * src/roff/troff/input.cc (default_black): Fix return value.
7630 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7632         * tmac/doc-common (Dt): Change output of architecture strings.
7633         Do some syntax cleanup.
7634         * tmac/groff_mdoc.man: Updated.
7636 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7638         Adding an `itc' request (input line trap accepting \c).
7640         * src/roff/troff/env.h (environment): New member
7641         `continued_input_trap'.
7642         Make `do_input_trap' a friend function instead of `input_trap'.
7643         * src/roff/troff/env.cc (environment::environment,
7644         environment::copy): Updated.
7645         (environment::newline): Implement it.
7646         (do_input_trap): New function.
7647         (input_trap): Call `do_input_trap'.
7648         (input_trap_continued): New function.
7649         (init_env_requests): Updated.
7650         * src/roff/troff/TODO: Updated.
7652         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7653         `.it'.
7655         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7657 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7659         * tmac/doc-common, tmac/doc-syms: Small updates.
7661 2001-12-22  Colin Watson  <cjwatson@debian.org>
7663         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7665 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7667         * MANIFEST: New file.
7669 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7671         * src/preproc/grn/grn.man: Updated.
7673 2001-12-22  Solar Designer  <solar@openwall.com>
7675         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7676         (DBRead): Use it.
7678 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7680         Implement a fallback character request `.fchar'.
7682         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7683         (is_fallback): New inline function.
7684         * src/roff/troff/input.cc (do_define_character): New function.
7685         (define_character): Call `do_define_character'.
7686         (define_fallback_character): New function.
7687         (init_input_requests): Add `fchar'.
7688         (charinfo::charinfo): Updated.
7689         (charinfo::set_macro): New argument to set `fallback' flag.
7690         * src/roff/troff/node.cc (make_glyph_node, make_node,
7691         node::add_char): Check `fallback' flag.
7692         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7694 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7696         * groff.texinfo: Document exact search algorithm for glyphs.
7698 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7700         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7701         the left side of $(MANPAGES) rule to make it always non-empty.
7703 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7705         * src/roff/troff/input.cc (default_black): Define default color
7706         `black' if not yet defined.
7708 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7710         Implement new string-valued register `.fn' to return the current
7711         real (internal) font name.
7713         * env.cc (environment::get_font_name_string): New function.
7714         (init_env_requests): Add `.fn' register.
7715         * env.h (environment): Updated.
7716         * node.cc (font_info): Make `get_font_name' a friend.
7717         (get_font_name): New function.
7718         * node.h: Updated.
7720         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7722 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7724         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7726 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7728         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7730 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7732         * man/groff_diff.man: Adding documentation for \O.
7734 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7736         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7737         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7739 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7741         * man/roff.man: Revised.
7742         * src/roff/groff/groff.man: Replace man page references with a
7743         pointer to roff.man.
7745 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7747         * man/roff.man: Completely rewritten.
7749 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7751         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7753 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7755         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7756         longer used.
7757         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7758         order of initializers.
7759         * NEWS: Updated.
7761 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7763         * doc/groff.texinfo: Fix documentation of \O.
7765         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7766         html_text::do_table, html_text::do_emittext, html_text::do_para):
7767         Use `const' for first argument.
7768         (html_text::do_table): Use cast.
7769         * src/devices/grohtml/html-text.h: Updated.
7770         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7771         method for `const string &s'.
7772         * src/devices/grohtml/html.h: Updated.
7773         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7774         (ANCHOR_TEMPLATE): Modified.
7775         (manufacture_headings): New global variable to handle `-h' option.
7776         (is_subsection): Removed.
7777         (char_buffer::add_string): Add `const' to first argument.
7778         Protect against invalid string argument.
7779         Add method for `const string &s'.
7780         (text_glob): Completely redesigned.
7781         (page): Use `const' for strings and remove string length variable.
7782         (page::add_html): Removed.
7783         (page::add_end_encode): New member function.
7784         (to_unicode): Moved upwards.
7785         (title_desc, header_desc): Updated.
7786         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7787         definition.
7788         (html_printer::is_bold, html_printer::make_bold): New member
7789         functions.
7790         (html_printer::end_of_line): Updated.
7791         (generate_img_src, html_printer::do_auto_image,
7792         html_printer::do_title, html_printer::write_header,
7793         html_printer::determine_header_level, html_printer::do_heading,
7794         html_printer::do_linelength, html_printer::do_pageoffset,
7795         html_printer::do_indentation, html_printer::do_tempindent,
7796         html_printer::do_indentedparagraph, html_printer::do_break,
7797         html_printer::flush_sbuf, get_html_translation,
7798         html_printer::begin_page, html_printer::special): Rewritten to get
7799         rid of static string length limit.
7800         (html_printer::troff_tag): Added `.no-auto-rule'.
7801         (html_printer::flush_globs): Small fix.
7802         (html_printer::determine_space): Don't compute `space_width'.
7803         (html_printer::translate_to_html): Renamed to ...
7804         (html_printer::emit_html): This (with updates).
7805         (html_printer::write_header): Implement `-h' option.
7806         (html_printer::draw): Remove commented-out code.  Handle `F'
7807         command.
7808         (html_printer::add_char_to_sbuf): Removed.
7809         (html_printer::add_to_sbuf): Rewritten.
7810         (html_printer::sbuf_continuation): Fixed.
7811         (html_printer::seen_backwards_escape, reverse,
7812         html_printer::remove_last_char_from_sbuf): Removed.
7813         (char_translate_to_html, str_translate_to_html): Removed.
7814         (html_printer::overstrike): New function member.
7815         (html_printer::set_char): Use it.
7816         (html_printer::do_body): New function member.
7817         (html_printer::~html_printer): Use it.
7818         (main): Handle `-h' option.
7819         (usage): Updated.
7820         * src/devices/grohtml/grohtml.man: Document -h switch.
7822         * src/preproc/html/pre-html.cc: Include searchpath.h
7823         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7824         (get_resolution): New function.
7825         (checkImageDir): Use `0777' permissions in mkdir()
7826         (write_start_image): Rewritten to use `\O[5...]'.
7827         (createImage, generateImages): Updated.
7828         (main): Handle `F' and `h' options.
7829         Use `get_resolution'.
7831         * src/roff/troff/input.cc (begin, end, image): Removed.
7832         (do_suppress): Take parameter.
7833         Handle modified syntax of `\O'.
7834         (token::next): Updated.
7835         (init_markup_requests): Removed.
7836         (main): Updated.
7838         * src/roff/troff/div.h: Add declaration for begin_page().
7840         * tmac/color-html.tmac: Removed.  Contents moved to...
7841         * tmac/html.tmac: Here.  Set background color.
7842         * tmac/color.tmac: Removed.  Contents moved to...
7843         * tmac/ps.tmac: Here.
7844         * tmac/www.tmac: Remove the title command when generating images
7845         for html.
7846         (NO_AUTO_RULE): New macro.
7847         (HTML_DO_IMAGE): Use revised `\O' escapes.
7848         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7850 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7852         * tmac/groff_mdoc.man: Fix typo.
7854 2001-12-01  Colin Watson  <cjwatson@debian.org>
7856         * man/roff.man: Fix typo.
7858 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7860         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7861         stdlib.h.
7863         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7864         more than one argument to \D'f ...'.
7866         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7868 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7870         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7871         loaded only once.
7873         * tmac/groff_man.man: Minor cosmetic fix.
7875 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7877         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7878         tmac/groff_www.man: s/mwww/www/.
7880 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7882         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7883         * configure: Regenerated.
7884         * win32-diffs: Updated.
7886         * tmac/groff_mwww.tmac: Renamed to ...
7887         * tmac/groff_www.tmac: This.
7888         * tmac/mwww.tmac: Removed.
7889         * NEWS, tmac/Makefile.sub: Updated.
7891 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7893         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7894         Fix explanation of `\D' and `rt'.
7896 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7898         * tmac/an-old.tmac (an-header): Set header length equal to page
7899         width.
7900         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7901         minor fixes.
7902         * NEWS: Small fix.
7904 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7906         * NEWS, man/Makefile.sub: Updated.
7908 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7910         * man/ditroff.man: New file.
7912 2001-11-17  Werner LEMBERG  <wl@gnu.org>
7914         * man/groff_differences.man: Renamed to ...
7915         * man/groff_diff.man: This.  Updated.
7916         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
7918         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
7919         * src/preproc/html/pushback.cc: This.  Updated.
7920         * src/preproc/html/pushbackbuffer.h: Renamed to ...
7921         * src/preproc/html/pushback.h: This.
7922         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
7923         Updated.
7925         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
7926         * src/libs/libgroff/htmlhint.cc: This.
7927         * src/libs/libgroff/Makefile.sub: Updated.
7929         * tmac/an-old.tmac (an-end): Fix page length.
7931 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7933         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
7934         * man/Makefile.sub: Include groff_differences.man.
7935         * VERSION: Set to 1.18.
7936         * REVISION: Set to 0.
7938 2001-11-16  Bernd Warken  <bwarken@mayn.de>
7940         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
7941         the second dot (or ending macro name) to end a macro.
7942         * doc/groff.texinfo: Doc fix.
7944 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
7946         * tmac/doc-common (doc-header): Handle very long document titles
7947         better.
7949 2001-11-16  Werner LEMBERG  <wl@gnu.org>
7951         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
7953 2001-11-15  Werner LEMBERG  <wl@gnu.org>
7955         * src/roff/troff/troff.man: Revised and split into troff.man and...
7956         * man/groff_differences.man: New file.
7957         * NEWS: Updated.
7959 2001-11-13  Werner LEMBERG  <wl@gnu.org>
7961         * tmac/an-old.tmac (TS, TE): New macros for table support.
7963 2001-11-12  Werner LEMBERG  <wl@gnu.org>
7965         * src/include/lib.h: Provide a fix for emx to not include
7966         groff-getopt.h.
7968 2001-10-27  Werner LEMBERG  <wl@gnu.org>
7970         * src/roff/troff/input.cc (substring_macro): Fix computation of
7971         boundary values.
7973 2001-10-20  Werner LEMBERG  <wl@gnu.org>
7975         Undo change from 2001-08-28.
7977         * src/roff/troff/input.cc (have_input): New global variable.
7978         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
7979         in compatibility mode.
7980         (process_input_stack): Use it.
7982 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
7984         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
7985         being handled as end-of-sentence characters,
7987 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
7989         * src/roff/troff/input.cc (file_iterator): New members
7990         `suppress_newline_flag' and `seen_escape'.
7991         (file_iterator::next_file): Updated.
7992         (file_iterator::fill): Use it.
7993         (string_iterator): New member `suppress_newline_flag'.
7994         (string_iterator::fill): Set it.
7995         (get_color_element): Use MAX_COLOR_VAL.
7996         * src/roff/troff/env.cc (environment): Remove `need_eol'.
7997         (no_fill): Don't set `env->ignore_next_eol'.
7998         (environment::newline): Handle `eol' tag properly.
7999         Emit `eol.ce'.
8000         (environment::add_html_tag): Set `env->ignore_next_eol'.
8001         Don't handle `.ce'.
8002         * src/roff/troff/env.h (environment): Updated.
8004         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8005         member function.
8006         (html_printer::outstanding_eol): New member function.
8007         (html_printer::do_title): Use new functions.
8008         (html_printer::troff_tag): Test `id_eol_ce'.
8010 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8012         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8013         files work with -C also.
8015 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8017         * doc/pic.ms: Minor fix.
8018         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8019         as a valid command line switch.
8020         * src/devices/grohtml/post-html.cc (main): Ditto.
8021         (usage): Updated.
8022         * src/devices/grohtml/grohtml.man: Updated.
8023         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8025 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8027         Implementing color support in troff, pic, grops, and grohtml.  These
8028         changes are based on a major patch provided by Gaius Mulley
8029         <gaius@glam.ac.uk>.
8031         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8032         definitions with both hex values and fractions.
8034         New escapes: \m and \M for drawing and background color,
8035         respectively.  This corresponds to the troff output commands `m'
8036         and `DF'.
8038         groff and troff accept command line switch `-c' to disable color
8039         output (which is automatically disabled in compatibility mode).
8041         New scaling indicator `f' for fractions (1f = 65536u).
8043         New conditional operator `m' to test for defined colors with `if'
8044         and `ie'.
8046         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8047         (or `outlined'), and `shaded' added to pic.
8049         * src/include/color.h: New file.
8050         * src/include/driver.h: Include it.
8051         * src/include/printer.h: Include color.h.
8052         (environment): New members `col' and `fill'.
8053         (printer): Remove `adjust_arc_center' member function.
8054         * src/include/Makefile.sub: Updated.
8056         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8057         `env.fill'.
8058         Handle `m' and `DF' troff commands.
8059         * src/libs/libgroff/color.cc: New file.
8060         * src/libs/libgroff/Makefile.sub: Updated.
8062         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8063         (stop): Removed.
8064         (createImage): Fix computation of `y2'.
8065         Use `pnmcrop' also.
8066         (buffer::write_file_html): Remove calls to `stop'.
8068         * src/preproc/pic/common.h (common_output): New abstract function
8069         members `set_color', `reset_color', `get_last_filled', and
8070         `get_outline_color'.
8071         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8072         (object_spec): Add members `shaded' and `outlined'.
8073         * src/preproc/pic/output.h (output): `command' is now abstract.
8074         New function members `set_color', `reset_color', `get_last_filled',
8075         and `get_outline_color'.
8076         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8077         `outline[d]', and `shaded'.
8078         * src/preproc/pic/object.cc (output::command): Removed.
8079         (output::set_location): Moved to output.h.
8080         (graphic_object): Add protected members `outline_color' and
8081         `color_fill'.
8082         Add member functions `set_outline_color', `get_outline_color', and
8083         `set_fill_color'.
8084         (closed_object): Add member function `set_fill_color'.
8085         Add member `color_fill'.
8086         (graphic_object::print_text): Use `out->set_color' and
8087         `out->reset_color'.
8088         (box_object::print, ellipse_object::print, circle_object::print,
8089         line_object::print, spline_object::print, arc_object::print): Ditto.
8090         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8091         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8092         `SHADED', making them `%left'.
8093         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8094         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8095         `set_color', `reset_color', `get_last_filled', and
8096         `get_outline_color'.
8097         * src/preproc/pic/troff.cc (simple_output): New abstract function
8098         members `set_color', `reset_color', and `get_last_filled'.
8099         (simple_output::polygon, simple_output::circle,
8100         simple_output::ellipse): Use `get_last_filled'.
8101         (troff_output): New members `last_filled' and `last_outlined'.
8102         New function members `set_color', `reset_color', `get_last_filled',
8103         and `get_outline_color'.
8104         (troff_output::finish_picture): Use `reset_color'.
8105         (troff_output::set_fill): Test `last_filled'.
8106         * src/preproc/pic/pic.man: Updated.
8108         * src/roff/groff/groff.cc (main): Implement `-c' option.
8109         (synopsis, help): Updated.
8110         src/roff/groff/groff.man: Updated.
8112         * src/roff/troff/troff.h: Include color.h.
8113         (warning_type): Add WARN_COLOR.
8114         * src/roff/troff/env.h (environment): New members
8115         `{cur,prev}_{glyph,fill}_color'.
8116         New member functions `get_{prev_,}{glyph,fill}_color'.
8117         * src/roff/troff/env.cc: Initialize and implement them.
8118         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8119         Replace `NULL' with `0' everywhere for consistency.
8120         (lookup_color, default_black, do_glyph_color, do_fill_color,
8121         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8122         define_color): New functions.
8123         (token::next): Implement \M and \m escapes.
8124         (do_if_request): Implement `m' operator.
8125         (usage): Updated.
8126         (main): Implement `-c' option.
8127         (init_markup_requests): Add `defcolor' request.
8128         (warning_table): Add `color' warning.
8129         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8130         classes.
8131         * src/roff/troff/node.cc (troff_output_file): New members
8132         `current_{page,glyph}color'.  New member functions `put_hex',
8133         `glyph_color', and `fill_color'.
8134         (glyph_color_node::*, fill_color_node::*): Implement it.
8135         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8136         (parse_term): Add support for `f'.
8137         * src/roff/troff/troff.man: Updated.
8139         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8140         entry for `F'.
8141         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8142         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8144         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8145         (tag_definition): Use `void *' for arg1.
8146         (html_text): New member functions `do_color' and `done_color'.
8147         Use `void *' for second parameter of `push_para' member function.
8148         New `push_para' member function with a single parameter.
8149         Use `char *' for parameter of `issue_table_begin' member funtion.
8150         New `issue_color_begin' member function.
8151         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8152         COLOR_TAG.
8153         (html_text::issue_color_begin): New function.
8154         (html_text::issue_table_begin): Use `char *' for parameter.
8155         (html_text::start_tag, html_text::shutdown,
8156         html_text::check_emit_text): Updated.
8157         (html_text::push_para): Use `void *' for second parameter.
8158         Add same function with only one parameter.
8159         (html_text::do_*): Updated.
8160         (html_text::do_color, html_text::done_color): New functions.
8161         * src/devices/grohtml/post-html.cc (style): New member `col'.
8162         Mew member `style' with 6 parameters.
8163         (style::style, style::operator==): Updated.
8164         (html_printer::do_font): Use it.
8165         (html_printer::draw): Add dummy entry for `F'.
8166         (html_printer::set_char): Updated.
8167         * src/devices/grohtml/grohtml.man: Updated.
8169         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8170         trailing zeroes removed.
8171         (ps_printer): New members `sbuf_color', `fill_color', and
8172         `output_color'.
8173         Removed member `fill'.
8174         New member function `set_color'.
8175         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8176         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8177         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8179         * tmac/color-html.tmac, tmac/color.tmac: New files.
8180         * tmac/troffrc: Include them.
8181         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8182         * tmac/Makefile.sub: Updated.
8184         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8185         man/groff.man: Updated.
8186         * font/devps/prologue.ps: Define FC and CO functions.
8188 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8190         Fix incorrect cropping of images and incorrect handling of special
8191         characters.  Fix handling of file names in \O.
8193         * src/include/geometry.h: New file.
8194         * src/libs/libgroff/geometry.cc: New file.
8195         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8196         to `geometry.cc'.
8197         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8198         initial spaces.
8199         (do_suppress): Updated.
8200         * src/roff/troff/node.cc: Include geometry.h.
8201         (troff_output_file::flush_tbuf): Fixed parameters to
8202         `check_output_limits'.
8203         (troff_output_file::check_charinfo): Ditto.
8204         (troff_output_file::determine_line_limits): Add support for `Da'
8205         and `Dl' commands.
8207         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8208         Add new parameter `is_special' to decode special characters from
8209         escape sequences.
8210         (html_printer::do_title, html_printer::do_heading,
8211         html_printer::do_indentedparagraph,
8212         html_printer::translate_to_html, html_printer::special): Updated.
8214 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8216         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8217         Fix entry for config.h.
8218         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8219         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8220         * src/preproc/eqn/eqn.man: Document -d command line option.
8222 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8224         * man/groff.man: Use
8226           .ev xxx
8227           .na
8228           .nh
8229           <table>
8230           .ev
8232         instead of the old code (`.ad .hy' after the table) to suppress
8233         incorrect hyphenation for grohtml output.
8235 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8237         * man/groff_font.man, man/groff_out.man: Minor fixes.
8239 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8241         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8242         Arnold Robbins <arnold@skeeve.com>).
8244 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8246         * configure: Regenerated with autoconf 2.52.
8248         * doc/groff.texinfo: Complete revision of indices.
8250 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8252         * doc/Makefile (clean): Updated to delete all indices.
8254 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8256         * src/roff/troff/troff.man: Remove superfluous line.
8258         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8259         given on the command line (or rather, if only the default warnings
8260         are set).
8262 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8264         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8265         use .ne for TTY devices.
8267 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8269         * src/roff/troff/token.h, src/roff/troff/input.cc:
8270         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8272 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8274         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8275         * src/roff/troff/input.cc (token::next): Return
8276         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8277         compatibility mode.
8278         (token::description): Updated.
8279         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8280         (token::add_to_node_list, token::process): Ignore
8281         TOKEN_TRANSPARENT_ESCAPE.
8283 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8285         * tmac/an-old.tmac: Fix `S' string.
8287 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8289         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8291 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8293         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8294         backslashes).
8295         Many other minor fixes.
8297         * configure.ac: Add message at end to inform how to compile
8298         xditview.
8299         * configure: Regenerated.
8301 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8303         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8304         Updated to latest version of libc.
8306 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8308         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8309         Autoconf 2.50 and newer can handle this.
8310         * configure: Regenerated.
8312 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8314         * doc/pic.ms: Fix typo.
8315         * src/preproc/tbl/tbl.man: Document case of global options.
8317 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8319         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8320         handling of `CR' font.
8322 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8324         Use a config.h file.
8326         * src/include/lib.h: Include config.h.
8327         * All C files: Ditto (if necessary).
8328         * All C++ source and header files: Include lib.h first (if
8329         necessary).
8331         * src/include/config.hin: New file (autogenerated by autoheader).
8332         * stamp-h.in: New file.
8333         * configure.ac: Updated.
8334         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8335         (GROFF_ARRAY_DELETE): Simplified.
8336         * Makefile.sub (DISTCLEANFILES): Updated.
8337         Added targets for remaking config.status, config.hin, config.h,
8338         stamp-h.in, and stamp-h.
8339         * configure: Regenerated.
8341 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8343         * NEWS: Updated.
8345 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8347         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8348         (do_sprintf): Use snprintf().
8350 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8352         * src/libs/snprintf/*: Added an snprintf module written by Mark
8353         Martinec.
8354         * src/libs/libgroff/Makefile.sub: Updated.
8355         * configure.ac: Add test for snprintf().
8356         * Makefile.in: Updated.
8357         * configure: Regenerated.
8359         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8360         uses snprintf().
8362 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8364         * tmac/doc.tmac (Ex): New implementation.
8365         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8367 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8369         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8370         argument.
8371         * tmac/groff_tmac.man: Updated.
8373 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8375         * src/preproc/tbl/tbl.man: Minor documentation update.
8377 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8379         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8380         * configure.ac: Add declaration test for gettimeofday().
8381         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8382         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8383         * configure: Regenerated.
8385 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8387         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8388         * configure.ac: Add declaration test for strcasecmp().
8389         * Makefile.in: Updated.
8390         * configure: Regenerated.
8391         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8392         this is necessary because groff's mkstemp.cc is C++.
8393         Add declaration conditionally for strcasecmp().
8395 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8397         Integrated pic2graph, contributed by Eric S. Raymond.
8399         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8400         files.
8401         * Makefile.in, NEWS: Updated.
8403         * src/preproc/tbl/tbl.man: Revised.
8405 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8407         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8409 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8411         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8412         requests.
8414 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8416         * Makefile.sub (configure): Depend on configure.ac, not
8417         configure.in.
8418         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8420 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8422         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8423         fixes.
8425 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8427         * src/roff/troff/troff.man: Improve documentation of -E option.
8429 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8431         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8432         Simplified.
8434 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8436         * src/preproc/refer/refer.cc: Undo last change.
8437         * src/devices/grohtml/post-html.cc: Ditto.
8439 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8441         * src/preproc/refer/refer.cc: Include `lib.h'.
8442         * src/devices/grohtml/post-html.cc: Ditto.
8444 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8446         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8447         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8448         * Makefile.in: Comment updated.
8449         * configure: Regenerated.
8451 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8453         * src/preproc/pic/pic.cc: Removed.
8454         * src/preproc/pic/pic_tab.h: Removed.
8455         * src/preproc/refer/label.cc: Removed.
8457         * doc/Makefile (.ms.html): Don't use a file name extension in
8458         argument to grohtml's -I option.
8459         * Makefile.in (dist): Remove CVS directories.
8460         Call `distfiles' target.
8462         * src/devices/grohtml/grohtml.man: Add information about valid
8463         versions of pnmtopng.
8464         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8465         name instead of number.
8467 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8469         * doc/groff.texinfo: Minor fixes.
8471 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8473         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8474         (clean): Updated.
8476 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8478         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8479         * src/libs/libgroff/mkstemp.cc: New file.
8480         * src/libs/libgroff/mksdir.cc: New file.
8481         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8482         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8483         * src/libs/libgroff/Makefile.sub: Updated.
8484         * src/include/lib.h: Add mksdir() prototype.
8485         * src/include/posix.h: Define S_IXUSR if not yet defined.
8487         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8488         (createAllPages): Use mksdir() instead of current code.
8489         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8490         (main): [!HAVE_MKSTEMP]: Removed.
8492         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8493         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8494         macros.
8495         * configure.ac: Add tests for stdint.h, sys/time.h, and
8496         gettimeofday().
8497         Call new GROFF_xxx macros.
8498         * configure: Regenerated.
8499         * Makefile.in: Comments updated.
8501 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8503         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8504         instead of current code.
8505         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8506         * src/roff/groff/groff.cc (possible_command::insert_args): New
8507         function.
8508         (main): Use it for predriver handling instead of insert_arg().
8510 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8512         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8513         groff also.
8515         * src/include/posix.h: Define S_IWUSR if not yet defined.
8517 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8519         * NEWS: Updated.
8521 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8523         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8524         Some other minor fixes.
8525         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8527 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8529         Replace call to `troff' with `groff -Z' to make it aware of
8530         GROFF_BIN_PATH.
8532         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8533         (troff_command, command_prefix): Removed.
8534         (alterDeviceTo): Use groff.
8535         (addZ): New function.
8536         (char_buffer::do_html): Use it.
8537         (scanArguments): Use TROFF_COMMAND.
8538         (findPrefix): Removed.
8539         (main): Updated.
8540         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8542 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8544         * doc/pic.ms: Documentation fixes.
8546 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8548         Replace atexit() with global destructor.
8550         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8551         (xtmpfile_list_init): New global structure to deallocate
8552         xtmpfile_list on exit.  Its destructor inherits most code from
8553         remove_tmp_files().
8554         (remove_tmp_files): Deleted.
8555         (add_tmp_file): Simplified.
8557 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8559         Replace strdup() with strsave().
8561         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8562         (set_papersize): Use strsave() and a_delete.
8563         (main): Use strsave().
8564         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8565         removeAllPages): Use strsave() and a_delete.
8567         * configure.ac: Remove test for strdup.
8568         * Makefile.in: Comment updated.
8569         * configure: Regenerated.
8571 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8573         * win32-diffs: Updated.
8575 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8577         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8578         removing the old one.
8579         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8581 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8583         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8585 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8587         Merge -xwidth into -width.  Add -xwidth functionality to -column
8588         also.
8590         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8591         avoid warning.
8592         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8593         string immediately following a leading dot starts with a valid mdoc
8594         argument.
8595         Add similar code to the -column branch.
8596         (doc-Bl-usage): Updated.
8597         * groff_mdoc.man: s/-xwidth/-width/.
8599 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8601         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8602         running into centered or non-formatted text.
8604 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8606         Introduce short and long prefixes to have the selection at run-time
8607         whether there is a 8+3 limit for names of temporary files.
8609         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8610         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8611         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8612         variables.
8613         (temp_init): New global structure to initialize above three
8614         variables.
8615         (xtmptemplate): Use two parameters for long and short prefix.
8616         Simplify code use above three variables.
8617         (xtmpfile): Use long and short prefixes as parameters.
8618         * src/include/lib.h: Updated.
8620         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8621         with ...
8622         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8623         (createAllPages, makeTempFiles): Updated.
8625 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8627         * REVISION: Increased to 3.
8629 Version 1.17.2 released
8630 =======================
8632 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8634         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8635         to size_t.
8637 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8639         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8640         Fix synopsis.
8641         * tmac/groff_mdoc.man: Fix synopsis.
8643 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8645         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8646         Restore `doc-Pa-font'.
8648 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8650         * src/utils/indxbib/dirnamemax.c: Moved to ...
8651         * src/libs/libgroff/maxfilename.cc: Here.
8652         s/dir_name_max/file_name_max/.
8653         Add copyright.
8654         * src/include/lib.h: Add file_name_max.
8655         * src/utils/indxbib/indxbib.cc: Updated.
8656         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8657         Updated.
8659         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8660         as empty.
8661         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8663         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8664         REGION_TEMPLATE): New macros.
8665         (createAllPages, makeTempFiles): Use them.
8666         Include `nonposix.h'.
8667         (html_system): New function.
8668         (createAllPages, createImage): Use it.
8669         Use EXE_EXT.
8671         * tmac/www.tmac: Fix typos.
8673 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8675         * tmac/www.tmac: Disable hyphenation in normal text only if output
8676         device is html.
8677         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8678         * tmac/groff_mwww.man, NEWS: Updated.
8680 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8682         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8683         image location.
8685 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8687         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8688         doc-display-ps-stack): Implement font and font size stack for
8689         displays.
8691 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8693         * REVISION: Increased to 2.
8694         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8696         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8697         beginning of a line.
8698         * src/groff/grog/grog.sh: Ditto.
8700 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8702         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8703         make it portable.
8705 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8707         Fix problems with preprocessor string for `man' program.
8709         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8710         Updated/added copyright.
8711         Moved Emacs's local variable to identify nroff mode to the end of
8712         the file; add local variable if missing.
8714 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8716         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8717         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8718         * configure: Regenerated.
8720 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8722         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8723         * configure: Regenerated.
8725 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8727         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8728         but www.tmac.
8729         * doc/pic.ms: Fix typos.
8731 Version 1.17.1 released
8732 =======================
8734 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8736         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8737         * configure: Updated.
8739 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8741         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8742         image names.
8743         * src/roff/troff/dic.cc (blank_line): Add html tag.
8745 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8747         * src/roff/troff/input.cc (do_suppress): Fix typo.
8749 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8751         Added two new options (-D and -I) to specify image names and a
8752         subdirectory to place the images in.
8754         Change syntax from \\Ox to \\O[x].
8756         * src/devices/grohtml/post-html.cc (main): Add options.
8757         (usage): Updated.
8758         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8759         Use `NULL' instead of `0' for null string pointers.
8760         (MAX_RETRIES): New macro.
8761         (lengthOfintToStr, intToStr, make_message): New functions.
8762         (makeFileName): Make function static.
8763         Implement -D and -I options.
8764         (checkImageDir): New function.
8765         (write_end_image, write_start_image): Use new syntax of \O.
8766         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8767         make_message().
8768         (createImage): Use make_message().
8769         (addps4html): Add guard for malloc().
8770         (usage, scanArguments): Updated.
8771         (makeTempFiles): Use mkstemp().
8772         (removeTempFiles): Use unlink().
8773         (findPrefix): Add guard for malloc().
8774         (main): Updated.
8775         * src/roff/troff/input.cc (get_delim_file_name): New function to
8776         parse \O.
8777         (do_suppress): Updated to parse new syntax.
8778         * src/devices/grohtml/grohtml.man: Updated.
8779         * tmac/www.tmac: Updated to new syntax.
8781         * NEWS: Updated.
8783 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8785         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8787         * src/devices/grohtml/grohtml.man: Minor improvements.
8789 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8791         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8793 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8795         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8796         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8797         the former.
8798         * src/preproc/grn/grn.man: Add proper '\" string.
8800 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8802         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8804 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8806         Updated to autoconf 2.50.
8808         * configure.in: Renamed to...
8809         * configure.ac: This.
8810         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8811         (GROFF_OS390): Updated.
8812         * configure: Regenerated.
8814 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8816         * src/roff/troff/env.c, src/roff/troff/env.h,
8817         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8818         from 2000-12-21.
8820 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8822         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8824 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8826         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8827         less than or equal zero; set it to 1 then.
8828         * src/roff/troff/node.h (node::node): Initialize `last'.
8830 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8832         * tmac/an-old.tmac: Make predefined strings work in compatibility
8833         mode.
8834         Add troff version guard.
8835         * tmac/doc.tmac: Simplify version guard.
8837 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8839         The .ns and .rs requests are now honoured not only in the top-level
8840         but in all diversions (similar to UNIX troff).
8842         This change is based on a patch from Tadziu Hoffmann
8843         <hoffmann@usm.uni-muenchen.de>.
8845         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8846         (top_level_diversion): Remove `no_space_mode' member.
8847         * src/roff/troff/div.cc (diversion::diversion,
8848         top_level_diversion::top_level_diversion): Updated.
8849         (macro_diversion::output): Reset `no_space_mode'.
8850         (no_space, restore_spacing): Use `curdiv' unconditionally.
8851         (space_request, blank_line): Check `curdiv->no_space_mode'.
8852         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8853         `curdiv' unconditionally.
8854         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8855         Updated.
8857 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8859         Added two new requests `de1' and `am1' which are similar to `de' and
8860         `am' with the difference that compatibility mode is saved on entry,
8861         switched off during macro execution, and restored on exit.
8863         * src/roff/troff/input.h: Added two new special characters
8864         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8865         * src/roff/troff/input.cc (input_iterator): Added two member
8866         functions `save_compatible_flag' and `get_compatible_flag'.
8867         (input_stack): Ditto.
8868         (string_iterator): Ditto.  Also add private member
8869         `saved_compatible_flag'.
8870         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8871         (calling_mode): New enumeration.
8872         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8873         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8874         (define_macro, define_indirect_macro, append_macro, ignore): Use
8875         `calling_mode'.
8876         (define_nocomp_macro, append_nocomp_macro): New functions.
8877         (init_input_requests): Updated.
8878         (do_request): Rename local variable `saved_compatible_flag' to
8879         `old_compatible_flag'.
8880         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8882         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8883         public and trap-invoked macros.  As a consequence, the man macros
8884         work in compatibility mode also.
8886 2001-05-06  Solar Designer  <solar@openwall.com>
8888         * Makefile.in: Use $(mandir).
8890 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8892         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8894 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8896         Added `.ns' number register: Returns 1 in no-space mode (if in
8897         top-level diversion), 0 otherwise.
8899         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8900         (init_div_requests): Updated.
8901         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8902         Document it.
8904 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8906         * src/roff/nroff/nroff.man: Improved documentation (especially
8907         locales).
8909 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8911         Added `brp' request: This is \p as a request.
8913         * src/roff/troff/env.cc (environment::do_break): Add parameter
8914         `spread'.
8915         (do_break_request): New function (was `break_request').
8916         (break_request): Calls `do_break_request'.
8917         (break_spread_request): New; calls `do_break_request'.
8918         (init_env_requests): Updated.
8919         * src/roff/troff/env.h: Updated.
8920         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8922         * REVISION: Increased to 1.
8923         * win32-diffs: Updated.
8925 2001-05-01  Werner LEMBERG  <wl@gnu.org>
8927         * tmac/an-old.tmac: Fix minor compatibility mode issue.
8928         * tmac/troffrc-end: Make it really work in compatibility mode.
8930 2001-04-27  Werner LEMBERG  <wl@gnu.org>
8932         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
8933         stdlib.h.
8935 2001-04-22  Werner LEMBERG  <wl@gnu.org>
8937         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
8938         latest versions from glibc CVS archive.
8940         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
8941         <c.zeelenberg@hccnet.nl>.
8943 2001-04-21  Werner LEMBERG  <wl@gnu.org>
8945         * configure.in: Move check for mkstemp() to...
8946         * aclocal.m4 (GROFF_MKSTEMP): This new function.
8947         * configure: Regenerated.
8949         * src/include/groff-getopt.h: Don't use variable names in
8950         declarations.
8952         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
8953         * src/devices/grohtml/Makefile.sub,
8954         src/devices/grohtml/post-html.cc: Updated.
8956 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
8958         * configure.in: Add special check for mkstemp().
8959         * src/libs/libgroff/tmpfile.cc: Use it.
8960         * src/utils/indxbib/indxbib.cc: Ditto.
8961         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
8962         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
8963         `const'.
8965 2001-04-20  Bruce Lilly  <blilly@erols.com>
8967         `Version_string' as C++ object was not visible to linker from C
8968         object files.
8969         Add `const' to `Version_string'.
8971         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
8972         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
8973         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
8974         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
8975         (scanArguments), src/preproc/refer/refer.cc (main),
8976         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
8977         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
8978         (main), src/devices/grohtml/post-html.cc (main),
8979         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
8980         (main), src/utils/hpftodit/hpftodit.cc (main),
8981         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
8982         (main), src/utils/lkbib/lkbib.cc (main),
8983         src/utils/addftinfo/addftinfo.cc (main): Implement it.
8985         * src/roff/groff/pipeline.c: Add _UWIN.
8986         * src/include/nonposix.h: Ditto.
8988 2001-04-20  Werner LEMBERG  <wl@gnu.org>
8990         * src/include/lib.h: Use HAVE_STRERROR.
8991         * src/roff/groff/pipeline.c: Ditto.
8992         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
8993         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
8994         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
8995         * win32-diffs: Updated.
8996         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
8998 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9000         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9001         instead of hardwired `"troff"'.
9002         (char_buffer::read_file): Remove unused variables.
9003         (char_buffer::write_file_troff): Ditto.
9004         (char_buffer::write_file_html): Ditto.
9005         (generateImages): Ditto.
9006         (abs): Removed.
9007         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9009         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9011         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9012         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9013         index_search_item::search1): Ditto.
9014         * src/roff/troff/node.h (width_list): Reorder members.
9015         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9016         (lookup_warning): Ditto.
9017         (prepend_string): Commented out.
9018         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9019         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9020         * src/preproc/tbl/main.cc (process_format): Ditto.
9021         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9022         compiler warnings.
9023         * src/preproc/pic/pic.cc: Updated.
9024         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9025         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9026         * src/preproc/refer/command.cc (execute_command): Ditto.
9027         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9028         * src/preproc/refer/token.cc (lookup_token): Ditto.
9029         * src/preproc/soelim/soelim.cc: Ditto.
9030         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9031         (isHexDigit): Commented out.
9032         (pushBackBuffer::isString): Remove unused variable.
9033         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9034         warning.
9035         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9036         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9037         Ditto.
9038         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9039         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9040         lookup_paper_size): Ditto.
9041         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9042         (text_glob, element_list): Reorder members.
9043         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9044         compiler warning.
9045         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9046         return value to `void'.
9047         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9048         of initializers.
9049         * src/devices/grohtml/html.h (simple_output::check_newline,
9050         simple_output::space_or_newline, simple_output::enable_newlines):
9051         Add return value.
9052         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9053         compiler warnings.
9054         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9055         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9056         output_ligatures, output_charset, read_map): Ditto.
9057         * src/utils/lookbib/lookbib.cc (main): Ditto.
9058         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9059         (do_file): Fix typo (`=' -> `==').
9060         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9061         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9063 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9065         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9066         Fix usage of GROFF_BIN_PATH.
9067         * src/roff/nroff/nroff.man: Updated.
9069 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9071         * NEWS: Fixing typos.
9072         Updated.
9074 Version 1.17 released
9075 =====================
9077 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9079         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9080         directory, not in $(srcdir).
9082 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9084         * doc/groff.texinfo: More info on conditionals.
9086 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9088         * doc/groff.texinfo: Added some info about groff internals.
9090         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9091         about missing special character only if the name is non-null.
9093 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9095         Removing the grohtml-old device driver which is now obsolete.
9097         * src/devices/grohtml-old/*: Removed.
9098         * font/devhtml-old/*: Removed.
9099         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9100         Remove comments.
9101         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9102         * test-groff (PATH): Updated.
9103         * tmac/Makefile.sub (NORMALFILES): Updated.
9104         * tmac/an-old.tmac: Remove special code for html-old device.
9105         Replace `html-or-html-old' register with `an-html'.
9106         * tmac/eqnrc: Updated.
9107         * tmac/html-old.tmac: Removed.
9108         * tmac/troffrc, tmac/troffrc-end: Updated.
9109         * tmac/www.tmac: Remove special code for html-old device.
9110         Replace `html-or-html-old' register with `www-html'.
9112         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9113         src/libs/libgroff/htmlindicate.cc (graphic_end),
9114         include/htmlindicate.h, src/preproc/grn/*.cc,
9115         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9116         single argument for consistency with rest of source code.
9118         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9120 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9122         * src/roff/troff/troff.man: Fixing typos.
9124 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9126         * doc/pic.ms: Fixing many font switches.
9127         * doc/groff.texinfo: Fixes, additions.
9128         * MORE.STUFF: Updated.
9130 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9132         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9133         simple anchor.
9134         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9135         cropping of images.
9136         (removeTempFiles): New function to tidy up temporary files.
9137         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9138         Many fixes to do with the new inline suppress node and image regions
9139         are much tighter.
9140         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9141         (generate_img_src): New function.
9142         (html_printer::do_auto_image): Utilizes it.
9143         (do_heading, do_title): Include inline images within their contents.
9144         (html_printer::begin_page): Tidied up comments that are issued to
9145         the html output file.
9146         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9147         than courier.
9148         (text_glob::is_br): New method used by do_heading.
9149         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9150         equivalent diversion.
9151         * src/include/html-strings.h: Altered image tags to reflect the
9152         inline image node.
9153         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9154         parameter.
9155         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9156         it is already inside a pic image.  Only emit tags if the argument
9157         `-Tps:html' is present.
9158         * src/preproc/tbl/main.cc: Changes to reflect additional
9159         `html_end_suppress' parameter.
9160         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9161         emitted since the last eol tag was written.
9162         * src/roff/troff/env.h: New boolean `emitted_node'.
9163         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9164         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9165         * src/roff/troff/node.cc (check_charinfo): New method. 
9166         (troff_output_file::determine_line_limits): Alterations to limit
9167         checking.
9168         * tmac/www.tmac: Changes to reflect new suppress nodes.
9169           
9170 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9172         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9173         Escape the html_glyph in the buffer.
9174         (str_translate_to_html): Output the unescaped escaped_char.
9175         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9176         `frame=void', not `frame=none'.  Add `border=0'.
9178 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9180         * PROBLEMS: Add some words on how to avoid wrapper macros.
9182 2001-04-11  Blake McBride  <blake@florida-software.com>
9184         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9186 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9188         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9189         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9190         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9191         * Makefile.sub (DISTCLEANFILES): Here.
9193         * libs/libgroff/new.cc: Include `nonposix.h'.
9194         * win32-diffs: Updated.
9196 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9198         Added skeleton macro for defunct macros.
9200         Updated documentation.
9202         When inside displays, an empty input line warning should be
9203         suppressed.  If another macro call is put inside a display,
9204         all subsequent empty lines found in that display caused a
9205         warning to be emitted.
9207         * tmac/doc.tmac (doc-defunct-macro): New macro.
9208         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9209         (doc-restore-global-vars): Fixed typo.
9210         (doc-empty-line): Check the `doc-display-depth' register to
9211         determine whether we are inside display or not.
9213         * tmac/doc-common: Removed `Or' and `Sf' registers.
9214         Moved obsolete `Ds' macro to doc.tmac.
9216         * tmac/groff_mdoc.man: Bump document date.
9217         Document `.Vt' under ``Variable Types''.
9218         Removed documentation for obsolete `.Or' macro.
9220 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9222         * NEWS: Updated.
9223         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9225 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9227         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9228         (usage): Add stream argument. Don't exit.
9229         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9230         Write --version output to stdout, not stderr.
9231         (usage): Add stream argument. Don't exit.
9232         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9233         (usage): Add stream argument. Don't exit.
9234         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9235         constants.
9236         (usage): Add stream argument. Don't exit.
9237         (main): Write --help output to stdout, not stderr.
9238         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9239         (usage): Add stream argument. Don't exit.
9240         * src/devices/grops/ps.cc (main): Accept --help and --version.
9241         (usage): Add stream argument. Don't exit.
9242         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9243         (usage): Add stream argument. Don't exit.
9244         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9245         (main): Accept --help and --version.
9246         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9247         (main): Accept --help and --version.
9248         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9249         (scanArguments): Accept --help and --version.
9250         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9251         (main): Accept --help and --version.
9252         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9253         (usage): Add stream argument. Don't exit.
9254         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9255         exit.
9256         (main): Accept --help and --version.
9257         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9258         (main): Accept --help and --version.
9259         * src/roff/groff/groff.cc (main): Accept --help and --version.
9260         (synopsis): Add stream argument.
9261         (help): Write --help output to stdout, not stderr.
9262         (usage): Add stream argument. Don't exit.
9263         * src/roff/grog/grog.pl: Accept --help and --version.
9264         (help): New sub.
9265         * src/roff/grog/grog.sh: Accept --help and --version.
9266         * src/roff/nroff/nroff.sh: Accept --help and --version.
9267         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9268         (usage): Add stream argument. Don't exit.
9269         (main): Accept --help and --version.
9270         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9271         (usage): New function with stream argument, doesn't exit.
9272         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9273         (usage): New function with stream argument, doesn't exit.
9274         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9275         (usage): Add stream argument. Don't exit.
9276         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9277         (main): Accept --help and --version.
9278         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9279         exit.
9280         (main): Accept --help and --version.
9281         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9282         (main): Accept --help and --version.
9283         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9284         (usage): Add stream argument. Don't exit.
9286 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9288         Fix indentation in SYNOPSIS.
9290         Updated to include changes of latest BSD mdoc version (basically,
9291         the only change is that `.Fn' and `.Fc' put a final semicolon after
9292         a function declaration in the SYNOPSIS section).
9294         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9295         (doc-in-synopsis-section): New variable.  Updated all related
9296         functions.
9297         (doc-indent-synopsis-active): New register.
9298         (Nd, Fn, Fo): Use it.
9299         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9300         `.Cd' with long argument line produces indented wrapped lines. 
9301         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9302         undesirable line break to be output.
9303         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9304         `.rs'.
9305         (Fn, Fc): Add final `;' to output.
9306         (doc-save-global-vars, doc-restore-global-vars): Updated.
9307         * tmac/doc-common: Remove `Ex' register.
9308         Updated.
9309         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9310         copyright.
9312 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9314         * tmac/doc.tmac (Cd): Simplify code.
9315         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9317 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9319         Implement continuous underlining for nroff mode.  To do that, a new
9320         request in the ditroff language has been added: `x u N' (N is 0
9321         or 1).
9323         \X and \Y are now transparent to end-of-sentence recognition.
9325         * src/include/printer.h (printer): Add `type' parameter to `special'
9326         method.
9327         * src/libs/libdriver/printer.cc (printer::special): Updated.
9328         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9330         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9331         specials of type `p'.
9332         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9333         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9334         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9335         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9336         (glyph::order): New method.
9337         (tty_printer::add_char): Use it.
9338         (tty_printer::special): New method.
9339         (tty_printer::end_page): Implement it.
9341         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9342         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9343         to set `no_init_string'.
9344         (special_node::tprint_start): Use it.
9345         (special_node::same, special_node::copy): Updated.
9346         (special_node::ends_sentence): New method.
9347         (troff_output_file::start_special): Add parameter to include
9348         inititialization of special conditionally.
9350         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9351         * src/roff/troff/env.cc (do_underline_special): New function.
9352         (environment::set_font): Use it.
9353         (do_underline): Use it.  This was `underline()'.
9354         (underline): Call `do_underline()'.
9355         (continuous_underline): New function which calls `do_underline()'.
9356         (environment::newline): Use `do_underline_special()'.
9357         (init_env_requests): Updated.
9359         * NEWS, man/troff_out.man: Updated.
9361 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9363         * font/devutf8/R.proto: Fix code of 'shc'.
9365 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9367         Many fixes.  Diag lists can now be nested also; additionally,
9368         `-compact' and `-offset' are supported.
9370         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9371         (doc-list-have-indent-stackXXX): A new register stack.
9372         (doc-have-diag-list): Removed.
9373         (Bl): Use `doc-list-have-indent-stackXXX'.
9374         (El): Updated.
9375         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9376         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9377         (doc-set-vertical-and-indent): Ditto.
9378         (doc-next-list-depth): Removed.
9379         (doc-increment-list-stack): Updated.
9380         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9381         `doc-next-list-depth'.
9382         (doc-end-list, doc-end-column-list): Don't use
9383         `doc-increment-list-stack'.
9384         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9385         (doc-save-global-vars, doc-restore-global-vars): Updated.
9386         * tmac/doc-common: Updated.
9387         * tmac/groff_mdoc.man: Updated.
9388         * NEWS: Fix typo.
9390 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9392         * src/devices/grotty/grotty.man: Fix grammatical error.
9394 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9396         Remove .Ld from mdoc package; replace it with special handling of
9397         `...'.
9399         * tmac/doc-common: Remove `Ld' register.
9400         Uncomment `doc-volume-ds-*' strings.
9401         Remove `doc-operating-system-default'.
9402         (Os): Updated.
9403         * tmac/doc-syms (Ld): Removed.
9404         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9405         `...' specially.
9406         * NEWS: Updated.
9408         * tmac/groff_mdoc.man: Many fixes and updates.
9410 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9412         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9413         Bond <tkb@tkb.mpl.com>.
9414         * tmac/www.tmac: Save compatibility mode.
9416 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9418         * tmac/groff_mdoc.man: Many fixes.
9420 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9422         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9423         isn't recognized.
9425 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9427         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9428         diversion.  This fixes overlong tags.
9430 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9432         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9433         * tmac/doc-syms: Fix error messages.
9434         * tmac/an-old.tmac: Remove incorrect double backslashes.
9436 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9438         * tmac/Makefile.sub: Strip mdoc.local also
9439         * tmac/strip.sed: Fixed.
9441 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9443         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9444         selecting the font size.
9445         * tmac/groff_mdoc.man, NEWS: Document it.
9447 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9449         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9450         to `sv' request.
9451         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9452         argument to restore previous font family.
9453         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9455         * doc/groff.texinfo: More fixes and additions (mainly for font
9456         manipulating commands).
9458         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9459         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9460         * tmac/Makefile.sub, NEWS: Updated.
9462 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9464         Replaced mdoc implementation.  The new version is `state of the
9465         art', using almost all new features of groff 1.17 -- it won't run
9466         with older versions.
9468         * tmac/doc.tmac: Completely rewritten.
9469         * tmac/doc-common: Ditto.
9470         * tmac/doc-nroff: Ditto.
9471         * tmac/doc-ditroff: Ditto.
9472         * tmac/doc-syms: Ditto.
9473         * tmac/mdoc.local: New file.
9474         * tmac/groff_mdoc.samples.man: Replaced with ...
9475         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9476         * tmac/strip.sed: Updated.
9477         * tmac/Makefile.sub: Updated.
9478         * INSTALL: Updated.
9480         * tmac/groff_man.man: Add `man.local' to the FILES section.
9482 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9484         * doc/groff.texinfo: Added many @noindent.
9485         Replaced @end_Example -> @endExample.
9486         Added info whether registers are r/o.
9487         Many other additions and fixes.
9489 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9491         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9492         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9493         Improved @Def* macros: Now the exact syntax of request, register,
9494         and escapes is shown.
9495         Added macros for parentheses and brackets to be used in @Def*.
9496         Many fixes and improvements of the documentation.
9498 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9500         * doc/groff.texinfo: Added new index: `st' (for strings).
9501         Added macros @Defstr(x).
9502         Added macro @Example (adding @group).
9503         Other minor improvements.
9505 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9507         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9508         `rq' for requests.  `fn' is no longer used.
9509         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9510         Removed @Deffn(x).
9512         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9513         number with name of man page.
9515 2001-03-19  Larry Kollar  <kollar@alltel.net>
9517         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9518         consistency.
9520 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9522         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9523         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9524         * src/devices/grohtml/grohtml.man: Fixing typos.
9526 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9528         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9529         * tmac/groff_mwww.man: Remove .LINE macro
9530         * tmac/www.tmac (LINE): Add `.ti'.
9532         * src/devices/grohtml/post-html.cc (html_printer): New member
9533         `indent'.
9534         (html_printer::emit_raw): Use it.
9535         (html_printer::do_linelength): Ditto.
9536         (html_printer::do_pageoffset): Ditto.
9537         (html_printer::do_indentation): Ditto.
9538         (html_printer::do_tempindent): Ditto.
9539         (html_printer::do_break): Ditto.
9540         (html_printer::begin_page): Ditto.
9541         (html_printer::do_indentedparagraph): New function.
9542         (html_printer::troff_tag): Handle `.ip'.
9543         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9544         Add `<td width=...>' handling.
9545         (html_text::do_table): Add parameter.
9546         (html_text::do_indent): Updated.
9547         * src/devices/groohtml/html-text.h: Updated.
9549 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9551         Introduced simple html tables to implement indentation.
9553         * src/devices/grohtml/html.h (word, word_list): New structures.
9554         (simple_output): Use it.
9555         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9556         (html_printer): Improve indentation handling.
9557         (html_printer::emit_raw): Set `in_table' element.  Handle
9558         indentation if set.
9559         (html_printer::write_header): Move conditional downwards.
9560         Don't allow whitespace in tags.
9561         (html_printer::do_linelength): Handle line length and indentation
9562         conditionally.
9563         (html_printer::do_pageoffset): Handle indentation conditionally.
9564         (html_printer::do_indentation): Ditto.
9565         (html_printer::do_tempindent): New function member.
9566         (html_printer::do_fill): Take care of indentation.
9567         (html_printer::do_flush): Finish table.
9568         (html_printer::do_links): Ditto.
9569         (html_printer::do_break): New function for handling `.br' and `.ti'.
9570         (html_printer::troff_tag): Use it.
9571         Handle `.ti'.
9572         (html_printer::flush_globs): Fix.
9573         (html_printer::flush_page): Finish table.
9574         (html_printer::html_printer): Fix error message.  Set up
9575         `linelength'.
9576         (html_printer::add_to_sbuf): Remove special handling of character
9577         code 255.
9578         (to_unicode): Remove `stop()'.
9579         (html_printer::write_title): Cleanup.
9580         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9581         (html_printer::~html_printer): Flush text and end the line.
9582         Use `put_string()'.
9583         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9584         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9585         emission of tags.
9586         (html_text::start_tag): Disable newlines.
9587         (html_text::table_is_void): New function.
9588         (html_text::issue_table_begin): Ditto.
9589         (html_text::issue_table_end): Ditto.
9590         (html_text::push_para): Better table handling.
9591         (html_text::do_indent): New function.
9592         (html_text::do_table): Ditto.
9593         (html_text::done_table): Ditto.
9594         (html_text::do_tt): Handle PRE_TAG.
9595         (html_text::is_in_table): New function.
9596         (html_text::check_emit_text): Handle tables.
9597         (html_text::do_emittext): Use `nl()'.
9598         (html_text::do_para): Handle table.
9599         (html_text::remove_def): New function.
9600         * src/devices/grohtml/output.cc (word, word_list): Implement
9601         methods.
9602         (simple_output::end_line): Flush last word.
9603         (simple_output::simple_comment): Ditto.
9604         (simple_output::begin_comment): Recoded.
9605         (simple_output::end_comment): Ditto.
9606         (simple_output::comment_arg): Removed.
9607         (simple_output::check_newline): Improve test and flush last word.
9608         (simple_output::space_or_newline): Improved.
9609         (simple_output::write_newline): Replaced with...
9610         (simple_output::nl): This.
9611         (simple_output::put_raw_char): Flush last word.
9612         (simple_output::check_space): Removed.
9613         (simple_output::put_translated_string): Ditto.
9614         (simple_output::put_string): Simplified.
9615         (simple_output::put_number): Updated.
9616         (simple_output::put_float): Ditto.
9617         (simple_output::put_symbol): Removed.
9618         (simple_output::enable_newlines): Add `check_newline()'.
9619         (simple_output::flush_last_word): New function.
9621         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9622         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9624         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9625         * tmac/an-old.tmac (TP): Ditto.
9627 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9629         * mdate.sh: Make it POSIX compliant.
9631 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9633         Added the `return' request to end a macro immediately.  It simply
9634         pops iterators from the input stack until a macro iterator is found.
9636         * src/roff/troff/input.cc (input_iterator::is_macro,
9637         macro_iterator::is_macro): New member.
9638         (input_return_boundary): New class to signal an immediate return
9639         to while_request().
9640         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9641         New functions.
9642         (input_stack::clear): Use it.
9643         (input_stack::pop_macro): New function.
9644         (while_request): Use `is_return_boundary()'.
9645         (return_macro_request): New function.
9646         (init_input_requests): Use it.
9648         * src/roff/troff/TODO: Updated.
9649         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9651 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9653         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9654         cleanup.
9656 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9658         Make `\B' more rigid.
9660         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9661         parameter.
9662         (get_number_rigidly): New function.
9663         * src/roff/troff/input.cc (do_expr_test): Use it.
9664         * src/roff/troff/token.h: Updated.
9666         * src/roff/troff/request.h: Fix typo (init_html_request ->
9667         init_markup_request).
9669 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9671         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9672         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9673         are now `.begin', `.end', `.image'.
9675         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9676         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9677         Use add_char_to_sbuf().
9678         (to_unicode): New function.
9679         (char_translate_to_html): Changing type of `ch' parameter.
9680         Use `to_unicode()'.
9681         (html_printer::~html_printer): Comment out doctype string.
9682         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9683         instead of `.html-end'.
9684         (write_start_image): Use `.begin' and `.image' instead of
9685         `.html-begin' and `.html-image'.
9686         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9687         (html_begin): Renamed to ...
9688         (begin): This.
9689         (html_end): Renamed to ...
9690         (end): This.
9691         (html_image): Renamed to ...
9692         (image): This.
9693         (init_html_requests): Renamed to ...
9694         (init_markup_requests): This.
9695         * tmac/www.tmac: Updated.
9697 2001-02-28  Bram  <bram@avontuur.org>
9699         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9700         constructor.
9702 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9704         * doc/meref.me: Fixing some typos.
9706 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9708         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9709         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9710         * src/roff/troff/node.h: Updated.
9712 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9714         * tmac/groff_tmac.man: Fix typo.
9716 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9718         Fixing a bug which prevented proper end-of-sentence recognition
9719         between an `unformatted' box and the following text.  As a
9720         consequence, vertical line distances are no longer preserved in
9721         boxes after a call to `.unformat' -- because boxes aren't
9722         line-oriented (contrary to diversions), this doesn't make sense
9723         anyway.
9725         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9726         value.
9727         (vertical_size_node::set_unformat_flag): New method.
9728         * src/roff/troff/node.hh: Updated.
9729         * src/roff/troff/input.cc (word_space_node::reread,
9730         hmotion_node::reread): Reset `unformat' flag after usage.
9731         (unformat_macro): Append only if `set_unformat_flag()' returns
9732         non-zero.
9733         * src/roff/troff/troff.man: Updated.
9735 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9737         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9738         documentation of `asciify' and `unformat' requests.
9740 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9742         Redesigned the `unformat' request.  It is no longer connected with
9743         `asciify' but rather uses new `reread()' methods if the `unformat'
9744         flag is set.  Additionally, the handling of space characters after
9745         unformatting has been fixed so that they retain their width.
9747         * src/roff/troff/node.h (width_list): New structure to store
9748         original widths of spaces.
9749         (node): Added `unformat' member.
9750         Replaced `num_spaces' variable with `orig_width' list.
9751         * src/roff/troff/node.cc (*node::asciify,
9752         asciify_reverse_node_list): Removed `unformat_only' flag and related
9753         code.
9754         (word_space_node::asciify, word_space_node::word_space_node): Use
9755         `orig_width'.
9756         (word_space_node::~word_space_node): New destructor.
9757         (word_space_node::copy): Updated to handle `orig_width'.
9758         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9759         (*node::merge_space): Update `orig_width' list if necessary.
9760         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9761         * src/roff/troff/enc.cc (environment::space_newline): Use
9762         `width_list'.
9763         (environment::space): Added method to handle space width and
9764         sentence space width as parameters.  Use `width_list'.
9765         (environment::make_tab_node): Updated.
9766         * src/roff/troff/env.h: Updated.
9767         * src/roff/troff/input.cc (word_space_node::reread,
9768         unbreakable_space_node::reread, hmotion_node::reread): New methods
9769         to handle nodes specially if `unformat' flag is set.
9770         (do_asciify_macro): Renamed back to ...
9771         (asciify_macro): This.
9772         (unformat_macro): New implementation to simply set the `unformat'
9773         flag.
9775         * MORE.STUFF: Added more info about deroff.
9777 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9779         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9780         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9781         and `add_self()' methods to avoid hyphenation.  For example, the
9782         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9783         soft hyphen after `foo'.  Now the hyphen list is correctly
9784         `foo<ignore><ignore>bar'.
9786 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9788         * tmac/groff_tmac.man: Fix `BIR' macro.
9790 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9792         A new escape sequence `\:', inserting a zero-width break point.
9794         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9795         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9796         Implement it.
9797         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9798         method.
9799         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9800         and `asciify()' methods.
9801         * src/roff/troff/node.cc (space_node::space_node): Updated.
9802         (space_node::asciify): Handle `was_escape_colon'.
9803         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9805         Handle `\~' similar to other comparable requests.
9807         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9808         label.
9809         (token::next): Move creation of an unbreakable_space_node to...
9810         (token::add_to_node_list): Here.
9812         Fix a bug which sometimes prevented hyphenation of words connected
9813         with `\~' or `\ ' (and other escape sequences handled as
9814         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9815         (after a call to the `unformat' request).
9817         * src/roff/troff/env.h (environment::possibly_break_line,
9818         environment::hyphenate_line): Introducing `start_here' parameter.
9819         * src/roff/troff/env.cc (environment::space_newline,
9820         environment::space): Use it.
9821         (environment::possibly_break_line, environment::hyphenate_line):
9822         Implement it.
9823         * src/roff/troff/input.cc (process_input_stack): Use it.
9824         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9825         space_char_hmotion_node, overstrike_node): Add
9826         `get_hyphenation_type()' method.
9827         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9828         if `unformat_only' is active.
9830 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9832         Implemented new read-only number register `.linetabs' which
9833         returns 1 if in line-tabs mode, 0 otherwise.
9835         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9836         * src/roff/troff/env.cc (get_line_tabs): New function.
9837         (init_env_requests): Use it.
9838         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9840         * VERSION, REVISION: Changing to 1.17.0.
9842 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9844         Fixed a bug which prevented hyphenation of words which are finished
9845         with `\)'.
9847         * src/roff/troff/token.h (token): Add enum type
9848         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9849         * src/roff/troff/input.cc (token::next, token::description,
9850         get_line_arg, token::add_to_node_list, token::process): Use it.
9852 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9854         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9855         * src/roff/troff/div.cc (do_divert): Use it.
9857         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9859 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9861         Adding the `linetabs' request.  If set, tab distances are not
9862         computed relative to the input line but relative to the output line.
9864         * src/roff/troff/env.h (environment): New member `line_tabs'.
9865         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9866         (environment::environment, environment::copy): Updated.
9867         (environment::distance_to_next_tab): Use `line_tabs'.
9868         (init_env_requests): Register request.
9869         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9870         fixes.
9872 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9874         Introducing a new read-only register `.int' which is set to a
9875         positive value if the last output line is interrupted (i.e., if it
9876         contains `\c').
9878         * src/roff/troff/env.cc (init_env_requests): Add it.
9879         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9881 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9883         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9884         * src/preproc/html/pre-html.cc (findPrefix): New function which
9885         generates the troff executable name via the system prefix.
9886         * src/preproc/eqn/main.cc: Modified warning message.
9888 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9890         troff's `box' and `boxa' requests didn't preserve temporary
9891         indentation.
9893         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9894         `saved_target_text_length' members.
9895         * src/roff/troff/div.cc (do_divert): Use them.
9897         Tabs (but not yet leaders and fields) are now handled correctly by
9898         `asciify' request.
9900         * node.h (hmotion_node): Add field `was_tab'.
9901         * env.cc (environment::make_tab_node): Set it.
9902         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9904         Added new request `unformat' which will, contrary to `asciify',
9905         preserve font information after unformatting (i.e., only nodes
9906         dealing with horizontal space are converted back to input
9907         characters).
9909         * input.cc (asciify_macro): Renamed to ...
9910         (do_asciify_macro): this, having a new parameter `unformat_only'.
9911         (asciify_macro, unformat_macro): New; using do_asciify_macro.
9912         (init_input_requests): Added `unformat'.
9913         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
9914         parameter to control asciification process.
9915         * node.h (*_node::asciify): Ditto.
9916         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9918 2001-01-20  Werner LEMBERG  <wl@gnu.org>
9920         * doc/groff.texinfo: Minor improvement of `.in' documentation.
9922 2001-01-18  Werner LEMBERG  <wl@gnu.org>
9924         * tmac/ps.tmac: Remove call of psold.tmac.
9925         * tmac/psold.tmac: Comment updated.
9926         * tmac/psnew.tmac: Removed since no longer needed.
9927         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
9929         * font/devutf8/R.proto: Adding `shc' glyph.
9930         * font/devutf8/NOTES: Updated.
9932         * test-groff: Updated.
9934 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
9936         First cut of the new html device driver.  Changes to pre-html and
9937         the new grohtml are too numerous to be documented here.
9939         Stuff related to `html' has been renamed to `html-old' and `html2'
9940         stuff has been renamed to `html' (including directories).  The new
9941         html device driver is therefore invoked as `-Thtml'.
9943         Added new `\O' escape to suppress output (needed by html driver).
9945         Added functions and code to pass info about input-level commands
9946         (`.in', `.fl', etc.) to html driver.
9948         Three new functions (.html-begin, .html-end, and .html-image) for
9949         better html handling: `html-begin' will execute the remaining line
9950         if at the outermost nesting level, increasing an internal counter.
9951         `html-end' does the same but decreases the internal counter.
9952         `html_image' puts its arguments into a special node (suppress_node)
9953         to define an image region.
9955         The `output' request has been removed.
9957         * tmac/html-tags.tmac: Removed.
9958         * tmac/arkup.tmac: Updated and renamed to ...
9959         * tmac/www.tmac: New file.
9960         * tmac/markup.tmac Updated and renamed to ...
9961         * tmac/mwww.tmac: New file.
9962         * tmac/Makefile.sub: Updated.
9963         * tmac/an-old.tmac: Updated.
9964         * tmac/eqnrc: Updated.
9965         * tmac/groff_man.man
9966         * tmac/groff_markup.man: Updated and renamed to ...
9967         * tmac/groff_mwww.man: New file.
9968         * tmac/groff_tmac.man: Updated.
9969         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
9970         * tmac/html.tmac: Updated and renamed from html2.tmac.
9971         * tmac/pspic.tmac: Updated html support.
9972         * tmac/s.tmac: Added html output support.
9973         * tmac/troffrc, tmac/troffrc-end: Updated.
9975         * Makefile.in, doc/Makefile: Updated.
9976         * doc/groff.texinfo: Added info about new `\O' escape.
9977         * doc/homepage.ms: Use `MAILTO' macro.
9979         * font/devhtml/DESC.proto: Add `C' font.
9980         * font/devhtml/Makefile.sub: Updated.
9981         * font/devhtml/R.proto: Minor fixes.
9982         * font/devhtml-old/Makefile.sub: Updated.
9984         * src/devices/grohtml-old/Makefile.sub: Updated.
9986         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
9987         method.
9988         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
9989         graphic_start): Add `inline' parameter.  Update.
9990         (html_end_suppress, graphic_end): Update.
9992         * src/include/html-strings.h: New file.
9993         * src/include/htmlindicate.h: Comments updated.
9994         * src/include/printer.h: Updated.
9996         * src/preproc/eqn/main.cc (do_file, main): Updated.
9997         * src/preproc/pic/troff.cc (troff_output::start_picture,
9998         troff_output::finish_picture): Updated.
9999         * src/preproc/tbl/main.cc (process_input_file): Updated.
10001         * src/roff/groff/groff.cc (main): Updated.
10002         Pass device arguments to predrivers also.
10003         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10004         * src/roff/troff/env.h (environment): Updated.
10005         New elements `need_eol' and `ignore_next_eol' (for html output).
10006         * src/roff/troff/env.cc (environment::environment): Add initializers
10007         for `need_eol' and `ignore_next_eol'.
10008         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10009         functions.
10010         (point_size, fill, no_fill, center, right_justify, line_length,
10011         indent, temporary_indent, break_request, handle_tab): Use
10012         `add_html_tag()'.
10013         (set_tabs): Use `add_html_tag_tabs()'.
10014         (environment::add_html_tag): Updated.
10015         (environment::do_break): Updated.
10016         * src/roff/troff/div.cc (space_request, flush_output): Use
10017         `environment::add_html_tag()'.
10018         * src/roff/troff/input.cc: Updated.
10019         New variable `html_level' to indicate nested `html-begin' requests.
10020         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10021         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10022         `force_tprint()' method.
10023         (token::next): Handle `\O'.
10024         (do_suppress): Implement it.
10025         (html_begin, html_end, html_image): New functions.
10026         (init_output_requests): Renamed to ...
10027         (init_html_requests): this.
10028         (main): Use it.
10029         (macro::append_str, macro::append_unsigned, macro::append_int): New
10030         methods.
10031         New variable `output_low_mark_miny' to limit minimal value of y.
10032         (reset_output_registers): Use it.
10033         (output_request): Removed.
10034         (get_output_registers): New function.
10035         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10036         (*_node): Added `force_tprint()' if necessary.
10037         (special_node): New elements `tf' and `get_tfont()'.
10038         (suppress_node): New class.
10039         * src/roff/troff/node.cc:
10040         New global variables `image_no' and `suppress_start_page'.
10041         (real_output_file): New method `is_on()'.
10042         (troff_output_file): New method `start_special(tfont)'.
10043         (troff_output_file::really_print_line): Use `tprint' conditionally.
10044         (real_output_file::print_line): Updated.
10045         (real_output_file::on): Updated.
10046         (*_node): Added `force_tprint()'.
10047         (special_node::special_node): Initializer updated.
10048         (special_node::same, special_node::copy, special_node::tprint_start):
10049         Updated.
10050         (get_reg_int, get_reg_str): New functions.
10051         (suppress_node::*): New methods.
10052         New global variables last_position, last_image_filename;
10053         (min): New inline function.
10054         * src/roff/troff/reg.h, src/roff/troff/request.h,
10055         src/roff/troff/troff.h: Updated.
10057 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10059         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10060         documentation of `asciify' request.
10062 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10064         * src/roff/troff/input.cc: Move definition of special characters
10065         like `ESCAPE_TILDE' to ...
10066         * src/roff/troff/input.h: New file.
10067         * src/roff/troff/Makefile.sub (HDRS): Add it.
10069         Extending the .asciify request to `unformat' space characters also.
10071         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10072         to count input space characters.
10073         Update constructors to take care of it.
10074         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10075         `ESCAPE_SPACE' instead of normal space.
10076         (word_space_node::asciify): New method.
10077         (unbreakable_space_node::asciify): New method.
10078         (word_space_node::merge_space): New method.
10079         * src/roff/troff/env.cc (environment::space_newline,
10080         environment::space): Add code to initialize `num_spaces' (using the
10081         constructor of `word_space_node').
10082         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10083         Document it.
10085 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10087         * man/groff_char.man: Use table header traps only conditionally.
10089 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10091         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10093 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10095         Introducing the `box' and `boxa' requests which are similar to
10096         `di' resp. `da' but omitting a partially filled line (which is
10097         restored after ending the diversion).
10099         * src/roff/troff/div.h (diversion): Add elements to save partially
10100         filled line.
10101         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10102         partially filled line.
10103         (divert, divert_append): Updated.
10104         (box, box_append): New functions.
10105         (init_div_requests): Use them.
10106         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10107         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10109         * doc/groff.texinfo: Fix documentation of `lf' request.
10111 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10113         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10115 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10117         Ignore `ss' request if in compatibility mode.
10119         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10120         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10121         * src/roff/troff/env.cc (space_size): Use it.
10123         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10124         `ss' request in nroff mode.
10126         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10127         changes.
10129 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10131         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10133 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10135         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10136         * src/preproc/eqn/neqn.man: Small fixes and additions.
10138 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10140         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10141         Fixing typo.
10143         * src/preproc/eqn/neqn.man: New file.
10145         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10146         negative' warning.
10148         * tmac/e.tmac: Add `T&' macro.
10149         Fix `indent cannot be negative' warning.
10150         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10152 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10154         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10156 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10158         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10159         `alloca' symbol .
10161         * MORE.STUFF: Added info about deroff for djgpp.
10163         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10164         documentation of -rcR switch.
10166 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10168         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10169         if -rcR=1 (which is now the default in nroff mode), a single, very
10170         long page is created instead of multiple pages: All `ne' and `wh'
10171         requests are put into conditionals; a new macro `an-end' is added to
10172         be called with `em'.
10174         Some other minor cleanups.
10176         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10178 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10180         Fixing a bug which prevented hyphenation in words followed
10181         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10183         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10184         Adding possibly_break_line().
10185         * src/roff/troff/env.h (environment): Make possibly_break_line()
10186         public.
10188         Make `\~' usable in .tr request.
10190         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10191         (token): Add stretchable_space().
10192         * src/roff/troff/input.cc (token::next, token::delimiter,
10193         token::description, process_input_stack, do_translate,
10194         add_to_node_list, token::process): Use it.
10195         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10196         for adjusting the space.
10197         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10198         for stretchable space.
10199         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10200         (make_node): Add code for stretchable space.
10201         * src/roff/troff/env.cc (environment::add_char): Use it.
10202         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10203         (get_copy, token::next, transparent_translate, asciify): Use it.
10205         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10206         doc/groff.texinfo: Updated.
10207         * man/groff.man: Small reorderings.
10209 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10211         * NEWS: Fixes.
10212         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10213         option.
10214         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10215         `safer_macro_path' to -M option.
10216         * src/roff/troff/troff.man: Fixes.
10218 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10220         Use safer path (except for config files) if -U isn't specified.  Add
10221         a special macro path (without home and current directory) for config
10222         files.  Add home directory to unsafe path for consistency.  Don't
10223         include the home directory in the font path.
10225         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10226         `macro_path'.
10227         * src/include/macropath.h: Add `config_macrp_path'.
10228         * src/libs/libgroff/fontfile.cc: Fix font path.
10229         * src/roff/troff/input.cc (process_startup_file): Use
10230         `config_macro_path'.
10231         (main): Select unsafe path if -U is given.
10233         * src/preproc/eqn/main.cc (main): Fixing search path for
10234         configuration file.
10235         * src/preproc/eqn/eqn.man: Updated.
10237         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10238         Updated.
10240         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10241         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10242         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10243         src/devices/grotty/grotty.man: Updated.
10245         * Makefile.in: Fix comments.
10247 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10249         * tmac/safer.tmac: Empty file added (again) for compatibility
10250         reasons.
10251         * tmac/Makefile.sub: Updated.
10253 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10255         * src/devices/grodvi/dvi.cc (main),
10256         src/devices/grohtml2/post-html.cc (main),
10257         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10258         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10259         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10260         (main), src/preproc/html2/pre-html.cc (main),
10261         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10262         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10263         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10264         (main), src/utils/hpftodit/hpftodit.cc (main),
10265         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10266         (main), src/utils/lookbib/lookbib.cc (main),
10267         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10268         (main): Use stdout for -v.
10269         * src/roff/groff/groff.cc (run_commands),
10270         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10271         to make direct printing to stdout possible.
10272         * src/roff/groff/pipeline.h: Updated.
10274         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10275         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10276         * src/utils/afmtodit/afmtodit.man: Updated.
10278         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10279         (version): New function.
10280         (usage): Updated.
10281         * src/utils/addftinfo/addftinfo.man: Updated.
10283         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10284         Fixing copyright dates.
10286         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10287         replacing it.
10289         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10290         version_string.
10292         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10294 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10296         In all programs, make -v return immediately with exit status 0 to
10297         be compliant with the GNU standard.
10299         * src/devices/grodvi/dvi.cc (main),
10300         src/devices/grohtml2/post-html.cc (main),
10301         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10302         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10303         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10304         (main), src/preproc/html2/pre-html.cc (main),
10305         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10306         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10307         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10308         (main): Implement it.
10309         * NEWS: Updated.
10311         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10312         and postprocessors to the -v option.
10314         * src/roff/grog/grog.pl: Implement -v.
10315         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10316         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10318         * src/roff/nroff/nroff.sh: Implement -v.
10319         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10320         * src/roff/nroff/nroff.man: Updated.
10321         
10322         * src/preproc/eqn/main.cc (main): Fix comment typo.
10324         * MORE.STUFF: Added info about djgpp port of grap.
10326 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10328         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10329         mode (or rather, implemented non-compatibility mode).
10330         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10332         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10333         replacing it -- we don't find gxditview otherwise.
10334         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10336         * src/preproc/pic/depend: Removed.  Unnecessary.
10338         Implemented dummy keyword `solid' in pic for compatibility with
10339         AT&T pic.
10341         * lex.cc (lookup_keyword): Added `solid'.
10342         * pic.y: Added SOLID with dummy rule.
10343         * pic.cc, pic_tab.h: Regenerated.
10344         * doc/pic.ms: Updated.
10346 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10348         For security reasons, don't use the current directory but the home
10349         directory while searching and scanning troffrc and troffrc-end.
10350         Similarly, replace the current directory with the home directory
10351         in the font path.
10353         * Makefile.in (fontpath, tmacpath): Remove current directory.
10355         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10356         two parameters `add_home' and `add_current'.
10357         (search_path::~search_path, search_path::command_line_dir,
10358         search_path::open_file): Remove tests for `dirs' being zero.
10359         * src/include/searchpath.h: Adjust.
10360         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10361         `safer_macro_path'.
10362         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10364         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10365         * src/roff/troff/input.cc: Use `mac_path', initialized with
10366         `macro_path'.
10367         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10368         * src/roff/troff/env.cc: Use `mac_path'.
10370         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10372         * NEWS, man/roff.man, src/roff/troff/troff.man,
10373         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10374         Updated.
10376 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10378         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10380         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10381         * configure.in: Fix typo in comment.
10382         * configure: Regenerated.
10384         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10385         copyright dates.
10387 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10389         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10391         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10392         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10393         $(systemtmacdir).
10394         Use @libdir@.
10395         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10396         * tmac/Makefile.sub (install_data): Create
10397         $(systemtmacdir) and $(localtmacdir).
10398         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10399         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10400         NEWS, doc/groff.texinfo: Updated and minor fixes.
10402         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10403         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10404         $(systemtmacdir) since the wrapper files are platform-dependent.
10406 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10408         * doc/groff.texinfo: Fix typo.
10410 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10412         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10413           tmac.doc.old -> doc-old.tmac
10414           tmac.an.old  -> an-old.tmac
10416         * tmac/tmac.*: Moved to ...
10417         * tmac/*.tmac: this.
10418         * tmac/man.local: Fix comment.
10419         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10420         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10421         Added some `FILES' sections.  More use of @...@ directives.  Other
10422         minor updates.
10423         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10424         * doc/homepage.ms, doc/groff.texinfo: Updated.
10425         * man/groff.man, man/roff.man: Updated.
10426         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10427         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10428         src/devices/grotty/grotty.man: Updated.
10429         * src/preproc/pic/pic.man: Updated.
10430         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10431         instead of -mdoc.old.
10432         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10433         * src/roff/nroff/nroff.man: Updated.
10434         * NEWS: Updated.
10436         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10438         * tmac/mm.diff: Removed -- it has no use now since the mm package
10439         is part of groff.
10441         * tmac/*: Removed trailing spaces.
10443         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10444         the tmac subdirectory also).
10446         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10447         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10448         stuff since it is no longer needed.
10450         * README, PROBLEMS: Updated.
10452 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10454         Invert current behaviour: Search first FOOBAR.tmac, then
10455         tmac.FOOBAR.
10457         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10458         (open_mac_file, macro_source): Implement it.
10459         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10460         doc/groff.texinfo, NEWS: Document it.
10462         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10463         Small documentation improvements.
10465         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10466         subdirectory also).
10468         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10470 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10472         Add local tmac directory (groff/site-tmac).
10474         * Makefile.in: Add $(localtmacdir).
10475         (uninstall_dirs): Add $(localtmacdir).
10476         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10477         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10478         in $(localtmacdir).  Create $(localtmacdir).
10479         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10480         Updated and minor fixes.
10482         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10484         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10486 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10488         Move hyphen.us to tmac directory.
10490         * src/roff/troff/hyphen.us: Removed.
10491         * src/tmac/hyphen.us: Added.
10492         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10494         Change installation structure for data files from .../groff/... to
10495         .../groff/<version><revision>/... to be conform with other GNU
10496         programs.
10498         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10499         doc/Makefile: Implement it.
10500         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10501         * configure: Updated.
10502         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10503         * NEWS: Document it.
10504         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10505         @MACRODIR@ instead of hard-coded directories.
10507 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10509         Implement $GROFF_BIN_PATH environment variable (which defaults to
10510         $bindir) used for child programs of groff and similar wrappers.
10512         * gendefs.sh: Improve documentation.
10513         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10514         src/preproc/eqn/Makefile.sub (neqn),
10515         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10516         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10517         $GROFF_BIN_PATH.
10518         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10519         $GROFF_PATH__ (the latter for communication with troff).
10520         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10521         set.
10522         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10523         doc/groff.texinfo: Document it.
10525         * doc/groff.texinfo: Improve documentation of troff's -a option.
10527 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10529         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10530         non-intrusive eol marker.
10531         (troff_output_file::determine_line_limits): New function.
10532         (troff_output_file::draw): Use it.
10533         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10534         output_pending_lines() instead of output_line().
10535         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10536         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10537         createImage): Small fixes.
10538         
10539 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10541         Replace tmac.safer with a real secure solution.
10543         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10544         system_request, pipe_output): Disable requests if in safer mode.
10545         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10546         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10547         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10548         doc/groff.texinfo, src/roff/groff/groff.man,
10549         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10551         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10552         (resource_manager::output_prolog): Replace setenv() with putenv().
10554 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10556         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10557         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10558         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10559         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10560         compilation errors with some compilers.  It seems that this code
10561         is no longer necessary -- if yes, it is easy to add some #ifdef's
10562         for that particular old-fashioned compiler.
10564         * MORE.STUFF: Added info about Meta-tbl.
10566         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10568 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10570         Adding a new escape sequence \B'...': If the string between
10571         the delimiters is a valid numeric expression, return the character
10572         `1', and `0' otherwise.  This is an analogon to \A.
10574         * src/roff/troff/input.cc (do_expr_test): Implement it.
10575         (token::next): Use it.
10576         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10578         * tmac/tmac.trace: Made independent from escape character.
10580 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10582         Adding a new request .dei: define indirect.  The first and second
10583         parameter of .dei are taken from string registers instead directly;
10584         this very special request is needed to make tmac.trace independent
10585         from the escape character (which might even be disabled).
10587         * src/roff/troff/input.cc (do_define_macro): Implement it.
10588         (define_macro_indirect): New function.
10589         (init_input_requests): Use it.
10591         Adding two requests .ecs and .ecr: Save and restore the escape
10592         character.  These two requests are needed to make tmac.trace
10593         independent from the escape character (which might even be
10594         disabled).
10596         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10597         Implement it.
10598         (init_input_requests): Use it.
10600         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10602 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10604         Adding a new option -P and new environment variable GROPS_PROLOGUE
10605         to grops, selecting a different prologue file (minor modifications
10606         by WL).
10608         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10609         src/devices/grops/ps.cc (main): Implement it.
10610         * src/devices/grops/grops.man, NEWS: Document it.
10612 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10614         * INSTALL: Add info about selecting paper format.
10616 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10618         * src/roff/troff/input.cc (main): Fixing compiler warning.
10619         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10620         strings.h from the former to the latter.
10621         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10622         stuff from the former to the latter.
10624 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10626         Implementing two new requests .tm1 and .tmc: The former is similar
10627         to .tm but can output leading spaces; its syntax is similar to
10628         defining a string, i.e., a `"' can be used to mark the beginning of
10629         the string to be written to stderr: `.tm1 " test'.  The latter is
10630         similar to .tm1 but doesn't write out a final newline character.
10632         * src/roff/troff/input.cc (terminal1, terminal_continue,
10633         do_terminal): New functions.
10634         (init_input_requests): Use them.
10635         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10637 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10639         * tmac/groff_mdoc.samples.man: Small fixes.
10641 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10643         * tmac/groff_mdoc.man: Fixing typo.
10645 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10647         Implementing a .nop request which does nothing.
10649         * src/roff/troff/input.cc (nop_request): New function.
10650         (init_input_requests): Use it.
10651         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10653 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10655         * doc/groff.texinfo: Added some comments.
10657 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10659         * src/roff/troff/TODO: Updated.
10661 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10663         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10665 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10667         * font/devps/generate/Makefile (SHELL): Define explicitly to
10668         "/bin/sh", for non-Unix platforms.
10669         (extraclean): Use a more portable "" quoting instead of a
10670         backslash (which doesn't work on DOS/Windows).
10671         
10672         * font/devlj4/generate/Makefile (extraclean): Ditto.
10674         * font/devdvi/generate/Makefile (extraclean): Ditto.
10676 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10678         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10679         src/roff/troff/troff.man: Document Eli's latest changes.
10681 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10683         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10684         macro file names of the form NAME.tmac as well as tmac.NAME.
10686 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10688         * src/include/posix.h: Remove definition of FILENAME_MAX.
10690         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10691         `sys_fatal' and `stop' function().
10693         * test-groff: Updated.
10695 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10697         Added the new troff command .output <arg> to suppress output (while
10698         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10699         registers (for passing the output dimensions to the output device).
10701         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10702         parameter.
10703         * src/roff/troff/node.h, src/roff/troff/node.cc
10704         (troff_output_file::really_print_line,
10705         ascii_output_file::really_print_line,
10706         supress_output_file::really_print_line): Use `width' parameter.
10707         (troff_output_file::really_on, troff_output_file::really_off,
10708         output_file::on, output_file::off, real_output_file::on,
10709         real_output_file::off, real_output_file::really_on,
10710         real_output_file::really_off): New functions.
10711         (real_output_file:public output_file): New variable `output_on'.
10712         (real_output_file::begin_page, real_output_file::copy_file,
10713         real_output_file::transparent_char, real_output_file::print_line):
10714         Use it.
10715         (real_output_file::print_line): Use check_output_limits.
10716         * src/roff/troff/reg.h, src/roff/troff/request.h,
10717         src/roff/troff/input.cc (assign_registers): New function to remove
10718         two `goto's.
10719         (do_ps_file): Use it.
10720         (check_output_limits, reset_output_registers, output_request,
10721         init_output_requests): New functions.
10722         (init_input_requests): Updated.
10724         Added new grohtml2 device and html2 preprocessor (coding
10725         not yet finished) which will eventually replace grohtml.
10727         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10728         Updated.
10729         * src/include/htmlindicate.h, src/include/htmlindicate
10730         (html_begin_suppress, html_end_suppress): New functions.
10731         * src/preproc/tbl/main.cc: Use it.
10732         * src/roff/groff/groff.cc: Add support for html2 device (which will
10733         automatically invoke the html2 preprocessor).
10734         * src/roff/troff/input.cc (is_html2): New variable.
10735         * src/roff/troff/troff.h, src/roff/troff/env.h,
10736         src/roff/troff/env.cc (environment::add_html_tag): New function
10737         (uses `is_html2').
10738         (environment::do_break): Use it.
10739         * font/devhtml2/*: New files.
10740         * src/devices/grohtml2: New device.
10741         * src/preproc/html2: New preprocessor.
10742         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10744 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10746         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10748 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10750         * src/include/lib.h: Provide a fix for IRIX to not include
10751         groff-getopt.h.
10753 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10755         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10756         since some non-GNU sed programs can't handle null regexps.
10757         * configure, src/preproc/eqn/Makefile.sub,
10758         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10760         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10761         bug (string.h and strings.h are both needed according to latest
10762         POSIX standard).
10764         * MORE.STUFF: Added info about unroff and troffcvt.
10766 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10768         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10769         used before -ms.
10771         * tmac/tmac.man.old: Remove unused number register.
10773         * tmac.doc: Minor documentation fix.
10775 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10777         * src/roff/groff/pipeline.c (is_system_shell):
10778         Fix typo: "monocased_shell" no longer exists.
10780 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10782         Remove FILENAME_MAX limits.
10784         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10785         that the argument length is less than FILENAME_MAX.
10786         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10787         Use struct hack to allocate and free file name.
10788         (struct xtmpfile_list): fname is now part of the structure,
10789         not a pointer to another string.
10791 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10793         * src/include/posix.h: Add a default value for FILENAME_MAX.
10795 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10797         Add support for new BSD-style man pages (with ".Dd" instead of
10798         ".TH"), so that "groff -man" understands both styles, even
10799         when running "groff -man" on a host whose system man page
10800         macros don't support ".Dd".
10802         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10803         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10804         in case the system man macros don't define Dd or TH.
10806         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10807         * tmac/tmac.an: New one-line file.
10808         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10810 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10812         * src/roff/troff/troff.man: Fixing typos.
10814 Version 1.16.1 released
10815 =======================
10817 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10819         Preparing release 1.16.1.
10821         * REVISION: Revision number set to 1.
10822         * MORE.STUFF: Added info about port to DOS.
10823         * NEWS, win32-diffs: Updated.
10825         * src/include/nonposix.h: Remove first line -- this file is used
10826         in C also.
10828         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10829         link to it.
10831 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10833         * doc/texinfo.tex: Update to latest version.
10835 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10837         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10838         commands that fail.  Don't assume that "export a=b" is valid shell
10839         syntax.  This is needed for Solaris 2.5.1.
10841         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10842         comment about missing Solaris headers.
10844         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10846 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10848         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10849         SET_BINARY().
10851         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10853         * win32-diffs: Updated.
10854         * README.WIN32: Added CRs to make all Windows editors happy.
10856         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10857         src/roff/groff/pipeline.c).
10859 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10861         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10862         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10864 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10866         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10867         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10868         are binary files.
10869         (main): Support non-Posix systems with several different styles of
10870         slash characters in file names.
10872         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10873         (main) [SET_BINARY]: Switch stdin into binary mode.
10875         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10876         (main): Support file names with several possible slash-type
10877         characters, as given by DIR_SEPS[] in nonposix.h.
10878         (main) [__MSDOS__]: If renaming the temporary index file fails
10879         because it has more than one dot in its trunk, replace the dot
10880         with an underscore and try again.
10881         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10882         Newline.
10883         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10885         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10886         (File::File): Open the input file in binary mode.  Strip CR
10887         characters from each CR-LF pair.
10888         (xbasename): Support file names with several possible slash-type
10889         characters, as given by DIR_SEPS[] in nonposix.h.
10891         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10893         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10894         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10895         [!_POSIX_VERSION]: Define for traditional Unix systems.
10896         (real_output_file::real_output_file): Remove the MSVC-specific
10897         call to popen, use instead POPEN_WT, appropriately defined on
10898         nonposix.h.  #include nonposix.h.
10899         (real_output_file::~real_output_file): Remove the MSVC-specific
10900         call to pclose, a suitable macro is now defined on nonposix.h.
10901         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10902         and WEXITSTATUS instead of assuming traditional Unix
10903         interpretation of the status returned by pclose.
10905         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10906         call to popen, use POPEN_RT instead (appropriately defined on
10907         nonposix.h).  #include nonposix.h.
10908         (ps_bbox_request): Open the PostScript file in binary mode.
10909         Close the file after processing it.
10910         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10911         nonposix.h.
10913         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
10914         A version of run_pipeline that doesn't use `fork'.
10915         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
10916         (system_shell_name, system_shell_dash_c)
10917         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
10918         the ugliness of testing DOS/Windows file names for equality, and
10919         support both stock shells and ports of Unix shells.
10921         * src/roff/groff/groff.cc: #include nonposix.h.
10922         (BSHELL): Definition moved to nonposix.h.
10923         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
10924         instead of a literal "-c".
10925         (xbasename): Support file names with several possible slash-type
10926         characters, as given by DIR_SEPS[] in nonposix.h.
10927         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
10928         of literal strings.
10930         * src/preproc/soelim/soelim.cc: #include nonposix.h.
10931         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
10933         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
10934         pic_tab.h.
10936         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
10938         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
10939         eqn_tab.h.
10941         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
10943         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
10944         P_tmpdir is defined, use it instead of the literal "/tmp".
10945         (remove_tmp_files, add_tmp_file): New functions.
10946         (xtmpfile): Record temporary files and register an atexit function
10947         to delete them explicitly, instead of relying on the OS to do
10948         that, which doesn't work on non-Unix systems.
10950         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
10951         (search_path::search_path): Use PATH_SEP instead of a literal
10952         colon.
10953         (search_path::command_line_dir): Ditto.
10954         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
10955         to support non-Posix systems.
10957         * src/libs/libbib/search.cc: #include nonposix.h.
10958         (search_list::add_file): Open the file in binary mode.
10960         * src/libs/libbib/linear.cc: #include nonposix.h.
10961         (file_buffer::load): Remove \r characters preceding \n from the
10962         loaded buffer.
10964         * src/libs/libbib/index.cc: #include nonposix.h.
10965         (make_index_search_item): Open index_filename in O_BINARY mode.
10966         (index_search_item_iterator::get_tag): Ditto.  Remove \r
10967         characters before \n characters.
10968         (index_search_item::check_files): Open files in binary mode.
10969         (index_search_item::munge_filename): Support DOS-style file names
10970         with backslashes and drive letters, use IS_ABSOLUTE.
10972         * src/devices/grops/ps.cc: #include nonposix.h.
10973         (main) [SET_BINARY]: Switch stdout to binary mode.
10975         * src/devices/grolj4/lj4.cc: #include nonposix.h.
10976         (main) [SET_BINARY]: Switch stdout to binary mode.
10978         * src/devices/grolbp/lbp.cc: #include nonposix.h
10979         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
10981         * src/devices/grodvi/dvi.cc: #include nonposix.h.
10982         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
10983         nonposix.h).
10984         (main) [SET_BINARY]: Switch stdout to binary mode.
10985         [_MSC_VER]: Remove an explicit call to _setmode.
10987         * src/include/nonposix.h: New file.
10989         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
10990         operation when building with DJGPP.
10991         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
10992         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
10993         ENVSETUP.
10995         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
10996         MS-DOS.
10997         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
10998         etc. can include a semi-colon on DOS/Windows.
10999         (depend.temp): Use depend1.temp instead of depend.temp1, to
11000         prevent files from overerwiting each other on 8+3 filesystems.
11002         * gendef.sh (t): Change definition to work with DOS/Windows.
11004         doc/groff.texinfo: Apart of some typo corrections, I also changed
11005         some index entris, to make them more non-ambiguous, and also put
11006         @ignore around some parts that are not yet written, to allow the
11007         Info output be readable.
11009 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11011         Replaced specific checks for function declarations with a generic
11012         routine taken from GNU bfd.
11014         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11015         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11016         * configure.in: Use it.
11017         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11018         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11019         src/roff/groff/groff.cc: Use it.
11020         * Makefile.in, configure: Updated.
11022 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11024         * src/devides/grolbp/lbp.h: Removed unused variables.
11026 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11028         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11029         strncasecmp().
11031 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11033         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11034         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11035         * configure.in: Use it.
11036         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11037         * configure, Makefile.in: Updated.
11039         * configure.in: Add test for strncasecmp().
11040         * src/include/lib.h: Use it.
11042 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11044         * src/preproc/grn/Makefile.sub: Add MLIB.
11046 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11048         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11050 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11052         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11054         * PROBLEMS: Small update.
11056         * src/devices/grolbp/lbp.cc: Various small fixes.
11058 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11060         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11062         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11064 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11066         * man/roff.man: Removed unused macro.
11068 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11070         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11071         This is needed e.g. if you do
11072         `make distclean; ./configure; make dist'.
11074 Version 1.16 released
11075 =====================
11077 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11079         Adding font CWI (constant width italic) to devdvi.
11081         * font/devdvi/CWI: New file.
11082         * font/devdvi/generate/Makefile: Add generating rule.
11083         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11084         tmac/tmac.dvi: Use it.
11085         * NEWS: Announce it.
11087         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11088         * font/devlj4/generate/Makefile: Cosmetic changes only.
11090         * man/groff.man: Removed most of the redundant description of
11091         special characters (which is in groff_char.man).  Added font
11092         translation CB->CR for devdvi.  Other minor fixes.
11094         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11095         (registered) symbols.
11097 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11099         * doc/Makefile: Added rule for creating info files.
11101         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11102         AMS font metrics.
11103         * font/devdvi/generate/Makefile: Fixed dependencies.
11105         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11106         NewCentury Schoolbook!
11107         * font/devps/generate/afmname: Will now run with GNU awk.
11108         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11109         * font/devps/generate/Makefile: Cosmetic changes only.
11111 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11113         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11114         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11115         `.SS' now produces a heading with a smaller size than `.SH'. 
11116         Completely formatted.
11117         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11119         * man/groff.man: Improved table appearance.  Use of `eo' request
11120         to reduce number of doubled backslashes in macro definitions.
11121         Replacing `\e' with `\(rs'.  Other minor fixes.
11123         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11124         to have correct line number.
11126         * INSTALL: Small improvement.
11128 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11130         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11131         WL).
11133 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11135         * man/groff.man: Complete update (with a lot of corrections by WL).
11137 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11139         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11141         * font/*/*: Implement it.
11142         * man/groff_char.man, NEWS: Document it.
11144         * src/include/unix.h: Removed.  It isn't used.
11146         * doc/groff.texinfo: Slight improvements.
11148 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11150         * README, win32-diffs: Small fixes and improvements.
11152 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11154         * FDL: New file (the Free Documentation License version 1.1).
11156         * doc/groff.texinfo: Added many start-up values for gtroff.
11157         Some structural improvements of the source code.
11159 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11161         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11162         * src/roff/troff/troff.man: Added info about troffrc-end.
11164 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11166         * Makefile.in (EXTRADIRS): Fix typos.
11167         (dist): Handle deletion of old .tar.gz file correctly.
11168         (DISTDIRS): Include all tty output devices.
11170         * doc/groff.texinfo: Adding more cross references; countless other
11171         fixes.
11173 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11175         * MORE.STUFF: Added Robert Marks's utilities.
11177 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11179         Added win32 port contributed by Blake McBride
11180         <blake@florida-software.com>.
11182         * README.WIN32, win32-diffs: New files.
11183         * NEWS: Updated.
11185         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11186         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11187         (change): Removed unused variables.
11189         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11190         (savebounds): Changed return value from `int' to `void'.
11191         * src/preproc/grn/hdb.cc: Ditto.
11193         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11194         final backslash in comment to avoid compiler warning.
11196         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11198         * doc/groff.texinfo: More fixes.
11200 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11202         * tmac/tmac.doc: Documentation fix.
11204 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11206         * doc/groff.texinfo: Reading the source code shows up a lot of
11207         omissions and incorrect data...  More conversion to @Deffn macros.
11209 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11211         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11212         dependency.
11214         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11216 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11218         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11219         improvements.
11221         * doc/groff.texinfo: Extended history section.  More conversion to
11222         @Deffn macros.  More .tr documentation.
11224 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11226         * doc/groff.texinfo: Completed tab section.  Added info about
11227         fields.
11229 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11231         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11233 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11235         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11236         LaTeX 2e).
11237         * NEWS: Document it.
11239         * man/troff.man: Minor optical improvements.
11241 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11243         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11245         * font/*/*: Implement it.
11246         * man/groff_char.man, NEWS: Document it.
11248 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11250         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11251         expansion.
11252         * NEWS: Document the three new man pages.
11254         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11255         * configure: Updated.
11257         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11259 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11261         Added grap support to grog.
11263         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11264         * src/roff/grog/grog.man: Document it.
11266         * doc/groff.texinfo, NEWS: Add info about grap support.
11268         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11269         (with slight fixes by me).
11271         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11272         * tmac/Makefile.sub: Add groff_tmac.man.
11273         * man/roff.man: New file giving overview of roff system.
11274         * man/troff.man: A short reference of troff.
11275         * man/Makefile.sub: Add roff.man and troff.man.
11277 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11279         Added grap support to groff.
11281         * src/roff/groff/groff.cc: Implement it.
11282         * src/roff/groff/groff.man: Document it.
11284         * src/devices/grotty/grotty.man: Add cp1047 device.
11285         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11286         Ditto.
11287         * src/roff/groff/groff.man: Ditto.
11288         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11289         * doc/groff.texinfo: Ditto.
11291         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11292         for cp1047.
11294 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11296         * man/groff_char.man: Add `pc' glyph.
11297         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11298         * tmac/tmac.tty: Add `pc' glyph.
11299         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11300         we use cp1047 output device.
11302         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11303         there are still hardcoded latin1->unicode values in utf8's font
11304         definition files.
11305         * configure: Updated.
11306         * NEWS: Minor clarification.  Updated.
11308         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11309         Unix.
11311 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11313         Adding EBCDIC code page 1047.
11315         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11316         font/devcp1047/DESC.proto: New files.
11318         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11319         either ascii/latin1 or cp1047.
11320         * Makefile.in: Use it.
11321         * configure: Updated.
11323         Replacing and/or adding `md' (mathdot) glyph with `pc'
11324         (periodcentered) in all text fonts.
11326         * font/*/*: Change it.
11328 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11330         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11332         * configure.in: Add check for strings.h.
11333         * src/include/driver.h: Use HAVE_STRINGS_H.
11334         * src/devices/grolbp/lpb.cc: Remove string.h.
11336         * src/include/groff-getopt.h: New file.  It will be used instead of
11337         getopt.h (to be included in lib.h) to avoid endless problems with
11338         picky C++ compilers.
11339         * src/include/lib.h: Use groff-getopt.h.
11340         * src/include/Makefile.sub: Updated.
11342         * configure: Updated.
11343         * Makefile.in: Updated.
11345         * NEWS: Mention EBCDIC support.
11347 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11349         * TODO: Some additions.
11351 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11353         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11354         of mso request.
11356 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11358         * src/roff/troff/troff.man: Minor fixes.
11360 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11362         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11363         `.T' string register and the incompatible definition of the `.T'
11364         number register (compared to Unix troff).
11366         * man/groff_char.man: Add some missing characters.
11367         * font/devutf8/NOTES: Update.
11369 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11371         * src/include/htmlindicate.h, src/include/lib.h,
11372         src/include/posix.h: Fix copyright.
11374         * src/include/Makefile.sub: Update.
11376 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11378         * src/roff/troff/input.cc (input_char_description): Removing
11379         superfluous space char.
11381         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11383         * doc/groff.texinfo: Document EBCDIC.
11385 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11387         Introducing `shc' as the glyph name for the soft hyphen character.
11389         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11390         font/devlatin1/R.proto: Use it.
11392         * NEWS: Updated.
11394 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11396         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11397         dependency on ASCII order.
11399 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11401         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11402         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11404         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11405         to increase portability.
11407 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11409         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11410         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11411         the generic `\n' if under OS/390 Unix.
11413         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11415         * configure: Regenerated.
11417 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11419         * doc/groff.texinfo: More conversions to @Deffn.
11421 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11423         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11424         with `:'.
11426         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11428 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11430         * doc/groff.texinfo: More conversions to @Deffn.
11432 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11434         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11435         Updated to latest version (glibc 2.1.3).
11437 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11439         * doc/Makefile (clean): Include more index files.
11440         Add rule texinfo->dvi.
11442 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11444         * doc/groff.texinfo: Added new index `op' for operators.  More
11445         info on end of sentence characters.  More use of @Deffn.
11447 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11449         * */*.man: Adding a note that a whitespace can be inserted between
11450         a command line option and its parameter -- we are using GNU getopt.
11452         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11454 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11456         Correct anachronism of calling the man macro file with `-man'
11457         instead of `-m man' etc.
11459         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11460         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11461         load tmac.<package>.
11463         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11465         * NEWS: Updated.
11467         * doc/groff.texinfo: Updated.
11469         * tmac/groff_man.man: Copyright added.
11471 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11473         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11474         typeset the request resp. escape name with a tt font -- due to a
11475         bug in texinfo.tex it is necessary to use the `-e' switch with
11476         texi2dvi.
11478         Improving info about usage of groff units.
11480         Other minor fixes.
11482 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11484         * doc/groff.texinfo: Added section about man macro package
11485         (I've basically taken groff_man.man).  Introducing new indices `ma'
11486         for macros/strings and `gl' for glyph names.  Other minor fixes.
11488         * tmac/groff_man.man: Fixed some typos.
11490 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11492         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11493         Other minor fixes.
11495         * doc/texinfo.tex: New file.
11497 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11499         * doc/groff.texinfo: Improved section on number registers.  Other
11500         minor updates.
11502 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11504         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11505         synopsis.
11507         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11508         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11509         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11510         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11512         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11514         * src/roff/grog/grog.man: Updated copyright date.
11516 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11518         * configure.in: Added test for strdup.
11520         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11521         is available.
11523         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11525         Other minor fixes.
11527 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11529         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11531 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11533         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11534         compilers silent.
11535         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11536         * src/include/lib.h: Remove some spaces.
11538 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11540         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11541         initializers from arguments (some compilers don't like this).
11543 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11545         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11546         used by pic and eqn to tell grohtml where the graphic regions start
11547         and end.
11548         * src/libs/libgroff/Makefile.sub: Use it.
11549         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11550         graphic_start() and graphic_end() from htmlindicate.cc.
11552 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11554         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11555         * tmac/groff_man.man: More fixes.
11557 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11559         * doc/Makefile: Added texput.log to the `clean' target.
11560         * doc/groff.texinfo: Added info about delimiters for escapes.
11562 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11564         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11565         other graphic formats.
11567 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11569         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11570         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11571         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11572         files.
11574 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11576         * doc/groff.texinfo: Spelling fixes.
11578 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11580         * tmac/groff_man.man: Completely revised to cover everything in
11581         tmac.an.
11583         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11584         Other minor fixings.
11585         * src/roff/troff/env.cc (environment_copy): Improve error message and
11586         fix itoa->i_to_a.
11587         * src/roff/troff/TODO: Updated.
11589         * doc/Makefile: Bug fixes -- this is still provisional, though...
11591         * tmac/eqnrc: Small fixes.
11593 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11595         Adding a request `evc' to copy environments.
11597         * src/roff/troff/env.cc (environment::copy, environment_copy):
11598         Implement it.
11599         * src/roff/troff/env.h: Add prototype.
11601 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11603         Adding strsep() -- Solaris 8 doesn't have it.
11605         * configure.in: Test it.
11606         * src/devices/grolbp/lbp.cc: Add code.
11608 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11610         * src/roff/troff/div.cc (macro_diversion::output,
11611         top_level_diversion::output): Fixing an incompatibility with
11612         original troff: \x'0' updates the .a register also.  Thanks to
11613         <Andries.Brouwer@cwi.nl> for pointing this out.
11614         * doc/groff.texinfo: Document it.
11616         * Makefile.in: Create Makefile.dep if necessary before calling the
11617         submake process to avoid warning about nonexistent file.
11619         * NEWS, PROJECTS: Updated.
11621 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11623         * tmac/troffrc: Add tmac.lbp.
11625 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11627         * tmac/tmac.lbp: New file.
11628         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11629         command.
11631 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11633         * Makefile.in: Fixing $(subdir).
11635         * README, NEWS: Small fixes.
11637         * test-groff: Adding path to grolbp.
11639         * configure.in: The (new) file src/xditview/Imakefile.in will be
11640         also configured -- it is now possible to build gxditview in a
11641         directory different from $srcdir.
11643 2000-03-02  Blake McBride  <blake@florida-software.com>
11645         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11647         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11649 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11651         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11652         files.
11654 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11656         Adding GNU getopt to the groff distribution.
11658         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11659         New files.
11660         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11661         * aclocal.a4: Remove GROFF_GETOPT function.
11662         * configure.in, Makefile.in, PROBLEMS: Update.
11663         * src/include/lib.h: Replace getopt tests with getopt.h.
11664         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11666         * doc/groff.texinfo: Further checking/updating.  Adding more index
11667         entries.
11669         * man/groff_out.man: Fix nroff mode activation (for emacs).
11670         * man/groff_font.man: Add missing ligature.
11672 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11674         * doc/groff.texinfo: Further checking/updating.  Adding more index
11675         entries.
11677         * src/devices/grolbp/grolbp.man: Added a comment line at the
11678         beginning of the file (similar to shell scripts) which indicates
11679         that `tbl' should be used as a preprocessor.
11681 2000-02-27  Blake McBride  <blake@florida-software.com>
11683         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11684         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11686         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11687         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11688         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11689         src/include/lib.h, src/libs/libgroff/errarg.cc,
11690         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11691         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11692         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11693         src/roff/troff/div.cc, src/roff/troff/env.cc,
11694         src/roff/troff/input.cc, src/roff/troff/node.cc,
11695         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11696         if_to_a() to avoid name clashes.
11697         * src/include/posix.h: Don't use unistd.h.
11698         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11699         clause for integrating non-Unix xtmpfile() code.
11700         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11701         structure; use "rt" for popen() in pipe_source(); add getpid()
11702         dummy function.
11703         * src/roff/troff/node.cc: Use special versions of popen() in
11704         real_output_file() and pclose() in ~real_output_file().
11706 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11708         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11709         LBP-8 series laser printers).  This code has been contributed by
11710         Francisco Andrés Verdú <pandres@dragonet.es>.
11712         * src/devices/grolbp/*: The grolbp output device.
11713         * font/devlpb/*: The font description files.
11714         * Makefile.in: Add grolpb and devlbp subdirectories.
11716         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11717         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11718         typographic fixes.
11720         * doc/groff.texinfo: Further checking/updating.  Adding more index
11721         entries.
11723         * NEWS: Updated.
11725         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11727         * man/groff_font.man: Adding info about obsolete DESC keywords.
11728         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11729         keywords.
11731 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11733         * src/preproc/grn/grn.man: Added info about the gremlin file format
11734         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11736 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11738         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11739         friends to be non-integer.
11741         * src/preproc/grn/grn.man: Document it.
11743         * doc/groff.texinfo: Further checking/updating.  Adding more index
11744         entries.
11746 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11748         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11749         line thicknesses to be integer multiples of this value.
11751         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11752         corresponding code doesn't work (yet).
11754         * doc/groff.texinfo: Further checking/updating.  Adding more index
11755         entries.
11757 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11759         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11760         specify line thickness instead of base units.  The new default
11761         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11762         thick lines respectively.
11764         Removed unused variable `prevval'.
11766         * src/preproc/grn/grn.man: Updated.
11768 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11770         * src/preproc/grn/main.cc: Slight formatting.
11772         * src/roff/groff/groff.man: Formatting fix.
11773         * src/preproc/grn/grn.man: Ditto.
11775         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11777         * doc/groff.texinfo: Further checking/updating.
11779 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11781         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11783         * test-groff: Added grn subdir to path.
11785         * doc/groff.texinfo: Some restructing and other small improvements.
11787         * src/roff/groff/groff.cc (help): Fixed info string.
11789 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11791         * doc/meref.me: Fix description of .GS request.
11793         * src/roff/troff/troff.man: Fixing typo.
11795         Adding the `grn' preprocessor for gremlin graphic files.
11797         * src/preproc/grn/*: This is the Berkeley distribution written by
11798         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11799         Senderowicz and Werner Lemberg.
11801         * doc/grnexampl.{me,g}: A sample for grn.
11803         * Makefile.in: Added subdirectory entry for grn.
11805         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11806         called with the switch `-g'.
11808         * src/roff/groff/groff.man: Updated.
11810         * src/roff/grog/grog.{man,pl,sh}: Updated.
11812         * NEWS: Updated.
11814 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11816         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11817         parametrically polymorphic.
11819         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11820         and the alterations to xtmpfile.
11821         xtmpfile can be requested to return the filename created
11822         and asked not to unlink the temp file.  The default behaviour
11823         if parameters are absent is exactly the same as before.
11825 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11827         A new request `length' is available which returns the length of a
11828         string in a number register:
11830         * src/roff/troff/input.cc (length_macro): Implement it.
11831         * src/roff/troff/input.cc (init_input_requests): Register it.
11833 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11835         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11836         of the `substring' request.
11838         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11839         request.
11841         * src/roff/troff/TODO, NEWS: Updated.
11843 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11845         * src/roff/groff/groff.man: Added an example.
11847 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11849         I've considerably modified the directory structure of the
11850         distribution to get a more vertical layout.  For example, the number
11851         of top level directories has been reduced from 42 to 6.
11853         As a consequence, many changes, especially to the makefiles, were
11854         necessary:
11856         * The makefile variables `top_builddir' and `top_srcdir' have been
11857         introduced.  Virtually all relative paths have been replaced with
11858         absolute ones using these two variables.
11860         * Dependencies (in the files `Makefile.dep') are no longer part of
11861         the distribution.  Instead, they are created during a `make install'
11862         in the build directory.
11864         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11865         make `top_srcdir' and `top_builddir' absolute.
11867         Some other changes:
11869         * Man pages now depend on the files `VERSION' and `REVISION'.
11871         * The added shell script `mkinstalldirs' will replace `mkdir' in
11872         almost all cases.
11874         * VERSION: Version number increased to 1.16.
11876 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11878         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11880         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11881         (after an update of the mm stuff).
11883         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11885 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11887         The .psbb request will now also accept Mac PS images (i.e. using LF
11888         as the EOL character).
11890         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11891         (with slight modifications).
11892         * troff/input.cc (do_ps_file): Use it.
11894         * test-groff: Add grohtml and grolj4 output devices to PATH.
11896 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11898         * NEWS, MORE.STUFF: Updated.
11900 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11902         Add the `srand' command to pic.
11904         * pic/lex.cc, pic/pic.y: Implement it.
11905         * pic/pic.man: Document it.
11906         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11908 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11910         Add a new request `.psbb'.  This does exactly what the external
11911         program psbb did.  It scans a PostScript image file for a
11912         %%BoundingBox comment and extracts the bounding box values (in
11913         PostScript units) which are then stored in the four new (read-only)
11914         number registers `llx', `lly', `urx', and `ury'.
11916         This will allow the usage of the .PSPIC macro without worrying
11917         about unsafe behaviour of groff, i.e., it will work without the
11918         `-U' switch of groff.
11920         * troff/input.cc: Implement it.
11921         * tmac/tmac.pspic: Use it.
11922         * troff/troff.man, grops/grops.man, NEWS: Document it.
11923         * psbb/*, Makefile.in: Remove it since it is no longer needed.
11925         This is bloody C code simply adapted from psbb.c!  Any improvements
11926         welcome.
11928 2000-01-29  Werner LEMBERG  <wl@gnu.org>
11930         * man/groff_font.man: Minor clarifications.
11932         * NEWS: Updated.
11934 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11936         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
11938 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
11940         * man/groff_font.man: Brought up to date regarding tcommand
11941         extensions.
11942         * libgroff/font.cc: Handle everything after `--' as a comment
11943         in the font files.
11944         * devps/*: Added comment delimiter inside devps font files.
11946 2000-01-28  Werner LEMBERG  <wl@gnu.org>
11948         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
11949         \fC...\fP (which now works as expected).
11951         * troff/troff.man: Fix typo.
11953 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
11955         Completed the pass_filenames implementation in troff.
11957         * libdriver/input.cc: Will read the new `F' tcommand.
11958         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
11959         * troff/input.cc: Use it.
11961 2000-01-26  Werner LEMBERG  <wl@gnu.org>
11963         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
11964         font will now be updated even if an invalid font is selected.
11966 2000-01-24  Werner LEMBERG  <wl@gnu.org>
11968         * doc/homepage.ms: Updated for new tmac.arkup.
11970         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
11972         * tmac/tmac.arkup: Cleanup.
11974         Added `\&' to .HTML macro to `leave vertical mode', so to say.
11976         Removed obsolete .LINK macro completely.
11978         The macros .URL, .FTP, and .MAILTO now accept a third argument which
11979         will be immediately appended to the second argument (to be used with
11980         punctuation, for example).
11982         Disabled .CDFTP macro temporarily for security reasons.
11984         * tmac/groff_markup.man: Complete revision for latest changes in
11985         tmac.arkup -- note that it does not yet format correctly with
11986         grohtml :-(
11988 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
11990         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
11991         * devutf8/R.proto: Add mappings for wp, lh, rh.
11992         * devutf8/NOTES: Updated.
11994 2000-01-23  Werner LEMBERG  <wl@gnu.org>
11996         * doc/groff.texinfo: Updated version/copyright info.
11998 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12000         Added support for two new directives in device descriptions:
12001         `pass_filenames' (to pass the input file name to the output device)
12002         and `use_charnames_in_special' (to support e.g. accented characters
12003         in the `X' request).
12005         * include/font.h, troff/charinfo.h: Declare it.
12007         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12009         * devhtml/DESC: Use it.
12011         * troff/input.cc: New function encoded_char.
12013         * troff/token.h: Add test for `specialness'.
12015 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12017         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12018         mistake from the list of files to be installed.
12020 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12022         * README: Added info how to apply patches.
12024 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12026         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12028 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12030         * troff/input.cc: Add support for troffrc-end.
12032         * tbl/main.cc: Altered to issue table-start and table-end special
12033         characters if using the html device.
12035         * devhtml/*: Modified font files to incorporate html encoding of
12036         characters.
12038         * tmac/groff_markup.man: New file documenting tmac.arkup.
12040         * tmac/troffrc-end: New file.  This is invoked after all user
12041         specified macros.  Currently used by the html device to include
12042         tmac.html.  Thus no need for users to specify -mhtml anymore.
12044         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12045         (MAN7): Add groff_markup.man.
12047         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12049         * tmac/troffrc: tmac.arkup will now be called for the html device.
12051         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12052         extra device specific information about fonts.
12054         * doc/homepage.ms: New file.  It is an example how an HTML home page
12055         could look like with grohtml.
12057         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12059 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12061         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12062         of Im, Re.
12064         * devutf8/NOTES: Updated.
12066 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12068         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12069         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12070         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12071         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12072         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12073         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12074         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12075         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12076         warnings.
12078         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12080 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12082         grolj4: Paper size will be searched case-insensitively.
12084         * include/lib.h: Add check for strcasecmp().
12085         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12086         * configure.in: Check for strcasecmp().
12088 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12090         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12091         `REVISION'.
12093 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12095         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12096         revision scheme.
12098         Add a new read-only register, `.Y', which contains the groff
12099         revision.
12101         * troff/input.cc (init_input_requests): Define it.
12102         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12103         * doc/groff.texinfo, troff/troff.man: Document it.
12105         * libgroff/Makefile.sub (version.cc): Add definition of
12106         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12107         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12108         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12109         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12110         troff/input.cc, pfbtops/pfbtops.c: Use it.
12112 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12114         Add a revision scheme to the groff package.
12116         * REVISION: New file.
12117         * libgroff/Makefile.sub (version.cc): Use it to define
12118         `revision_string[]'.
12119         * grops/psrm.cc: Use revision_string (converted to an unsigned
12120         integer) in constructor of resource_manager.
12122 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12124         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12125         files.
12126         * Makefile.in (DEVDIRS): Add devutf8.
12127         * grotty/tty.cc: Include device.h.
12128         (glyph): Change type of `code' to `unsigned int'.
12129         (tty_printer): New field is_utf8.  Constructor takes device argument.
12130         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12131         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12132         (tty_printer::put_char): New function.
12133         (tty_printer::end_page): Use put_char() instead of ::putchar().
12134         (make_printer): Pass device to tty_printer constructor.
12135         * nroff.sh: Determine default device by calling 'locale'.  As a
12136         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12137         Recognize UTF-8 locales.
12138         * tmac/eqnrc: Recognize utf8 like latin1.
12139         * tmac/troffrc: Device utf8 needs tmac.tty.
12141 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12143         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12145 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12147         Add a new predefined writeable number register, `year',
12148         which contains the current year.
12150         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12151         * tmac/tmac.s: Use it.
12152         * troff/input.cc (init_registers): Initialize it.
12154 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12156         * PROBLEMS: Fixed typo.
12158 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12160         * PROBLEMS: Add Y2k advice for the yr number register.
12162 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12164         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12166 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12168         * tmac/tmac.arkup: Slight modification of macros to provide better
12169         appearance for non-HTML formats.
12171 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12173         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12174         does not automatically translate to malloc(n) on all OSes
12175         (e.g., SunOS) so do it explicitly.  Also, check the returned
12176         value.
12178 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12180         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12182         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12183         expects this variable
12185 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12187         * doc/Makefile: Added instructions to create HTML and text
12188         versions of some files.
12190 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12192         * Updated INSTALL.gen.
12194         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12195         better resp. correctly with non-HTML devices.
12197 Version 1.15 released
12198 =====================
12200 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12202         * NEWS, VERSION: Changed to 1.15
12204 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12206         * nroff/nroff.man: -S is safer, not safe.
12208         * groff/groff.cc (main): Use `safer', not `safe', in variable
12209         names.  This does not change the behavior.
12211         * troff/input.cc (main): Likewise.
12213         * nroff/nroff.sh: Likewise.
12215         * troff/input.cc (prepend_string): New function.
12216         (main): Prepend -msafer, so that we check macro libraries for
12217         safety.
12219         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12221 Version 1.14 released
12222 =====================
12224 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12226         * NEWS, VERSION: Changed to 1.14.
12228 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12230         * refer/refer.cc: Fixing the last fix.
12232 Version 1.13 released
12233 =====================
12235 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12237         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12238         number disappear.
12240         * NEWS: Updated.
12242         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12244         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12245         document conventions, the version number must be a real.
12247 Version 1.12.1 released
12248 =======================
12250 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12252         * VERSION: Changed to 1.12.1.
12254 1999-12-22  Alan Rooks  <arooks@istar.ca>
12256         * refer/refer.cc (do_file): Slight modification to satisfy the
12257         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12258         UnixWare 7.1.
12260 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12262         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12263         notices.
12265         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12266         list of unsafe requests.
12268         * pic/pic.man: Fixed a typo.
12270         * man/groff_out.man: Fixed a typo.
12272 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12274         * Makefile.in: Doc fixes.
12276 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12278         * groff/groff.cc: Missing `U' option added to getopt().
12280         * troff/troff.man: Missing `U' option added to synopsis.
12282 Version 1.12 released
12283 =====================
12285 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12287         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12288         to the synopsis.
12290         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12291         with the more appropriate terms `safer' and `unsafe'.
12293         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12294         sys_nerr and sys_errlist[].
12296         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12298         * pic/pic.y, pic/pic.cc: Added check for fmod().
12300 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12302         * VERSION: Changed to 1.12.
12304         Here some patches from various sources; most of them taken from
12305         the Debian distribution.
12307         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12308         tmac/Makefile.sub: New files copied directly from the NetBSD
12309         distribution.  Probably, some additional adaptation later on is
12310         necessary...
12312         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12313         of unsafe requests.
12315         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12316         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12317         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12318         (`-S') is now the default.
12320         * README, NEWS: Updated.
12322 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12324         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12326         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12328 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12330         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12331         grief than relief today.  Additionally, it is against the GNU
12332         coding standards.
12334         * configure: Recreated.
12336 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12338         * configure.in: Added GROFF_LIBM.
12340         * configure: Recreated.
12342         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12343         necessary.
12345         * Makefile.in: Added definition of $(LIBM).
12347         * Makefile.comm (LIBM): Removed.
12349         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12351 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12353         * doc/Makefile: Added rule for generation pic.html.
12355         (clean): Files produced by grohtml will be removed also.
12357         * doc/pic.ms: Small fix.
12359         * tmac/tmac.html: Fixed suppression of headers.
12361 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12363         * tmac/tmac.html: Fixing horizontal arrows.
12365         Turning off hyphenation.
12367         * tmac/tmac.an: Improved support for grohtml; better indentation,
12368         no footers/headers.
12370 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12372         * tmac/tmac.arkup: Added CDFTP macro
12374         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12375         macros.
12377         * tmac/troffrc: Some additions for HTML stuff.
12379 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12381         * tmac/tmac.html: Small changes.
12383 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12385         * doc/groff.texinfo: Minor fixes.
12387 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12389         * devhtml/TR: Changed spacewidth to 3.
12391         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12393         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12395         * tmac/tmac.arkup: New file.
12397         * grohtml/ChangeLog: New file.
12399 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12401         * doc/groff.texinfo (Common Features): Added Copying chapter.
12402         Changed format to @smallbook.
12404 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12406         * NEWS: Added info about groff.texinfo.
12408         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12409         warning messages.
12411 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12413         * groff/groff.man: More updates.
12415 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12417         * doc/groff.texinfo: New file.  This manual is still very
12418         rudimentary.  It has been originally contributed by Trent
12419         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12420         additions by me.
12422         * INSTALL: Added information about the `doc' subdir
12424         * troff/troff.man: Minor fixes.
12426         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12427         reordered options.
12429         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12431         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12432         also, otherwise it is included itself in another call of `make
12433         dist'.
12435         * groff/groff.cc (synopsis): Removed superfluous space.
12437         * PROJECTS, PROBLEMS, NEWS: Updated.
12439         * VERSION: Updated to 1.12beta.
12441         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12443         * README: Updated: Included documentation about CVS repository,
12444         mailing lists, and daily snapshots.
12446         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12448 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12450         * tmac/tmac.an: If the tag didn't fit into the space that the
12451         macro `TP' specifies, the rest of the tag went into the space for
12452         the next line.
12454 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12456         * grolj4/lj4.cc: Added duplex printing (option `-d').
12458         * grolj4/grolj4.man: Document duplex printing.
12460 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12462         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12463         non-GNUish sed programs.
12465         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12466         definition.
12468         * configure.in (LIBS): Added `-lc'
12470         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12472         * pic/tex.cc (solid_arc): Casting M_PI to double.
12474         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12476         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12477         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12478         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12480         * groff/groff_man.man: New file.  This manual page was originally
12481         written for the Debian GNU/Linux system by Susan G. Kleinmann
12482         <sgk@debian.org>.
12484         * eqn/list.cc (list_box::compute_metrics,
12485         list_box::compute_sublist_width): Removed variable declaration to
12486         avoid shadowing warnings.
12488         * grops/psrm.cc (resource_manager::process_file): Ditto.
12490         * tfmtodit/tfmtodit.cc (main): Ditto.
12492         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12493         to avoid shadowing warnings.
12495         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12496         shadowing loop variable.
12498         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12500 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12502         New grohtml frontend to convert groff input to html.
12504         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12506         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12508         * tmac/eqnrc: Added html device.
12510         * tmac/tmac.html: New file.
12512         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12513         (troff_output::start_picture, troff_output::finish_picture),
12514         tbl/main.cc (process_input_file):
12515         Surrounded output with `graphics_start' and `graphics_end' so that
12516         the html driver can identify non-text portions.
12518         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12519         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12520         grotty/tty.ps (tty_printer::set_char): Additional parameter
12521         `name'.
12523         * include/printer.h: Class printer: New function
12524         set_char_and_width; new variables (is_char_named, is_named_set,
12525         named_command, named_char_s, named_char_n) to hold information
12526         about named characters -- needed by the html driver.
12528         * libdriver/printer.cc (printer::set_ascii_char,
12529         printer::set_special_char): Use set_char_and_width.
12531         * devhtml/*: New device files for html driver.
12533         * grohtml/*: New driver grohtml.
12535 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12537         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12538         default strings.
12540 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12542         * libgroff/string.cc (search): Small fix to test against NULL
12543         pointer.
12545 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12547         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12548         \b'abc') were stacked in reverse order when processed in a
12549         diversion.
12551         * troff/node.h: Added `*last' to struct `node' to make the above
12552         fix work.
12554         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12555         The default scale for the 'f' and 't' graphics functions were 'm'
12556         rather than 'u' (i.e., no scaling).
12558 1999-09-11  Peter Miller  <peterm@jna.com.au>
12560         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12561         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12562         defining include paths.
12564         * soelim/soelim.cc (include_path_append): New function.
12566 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12568         * tbl/main.cc (process_options): Unix (at least Documenter's
12569         Workbench) tbl allows arbitrary non-alpha characters between
12570         options.
12572 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12574         Y2k fixes.  Don't assume that the current year precedes 2000.
12576         * doc/meref.me: Add \n(y2, \n(y4.
12578         * tmac/doc-common (Yr): New number register.
12579         (Dd): Don't assume current year precedes 2000.
12581         * tmac/tmac.e (td): Likewise.
12582         (y2, y4): New number registers.
12584         * pic/pic.man: Update reference for pic paper to May, 1991
12585         version.
12587 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12589         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12590         Removed quotation marks which prevented correct expansion of
12591         $(tmac_wrap).
12593         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12595 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12597         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12598         `config.cache'.
12600         * Removed configure.old.
12602 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12604         * VERSION: Updated to 1.11.1
12606 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12608         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12610         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12611         added quotations around $(tmac_wrap) to avoid syntax error if
12612         variable is empty.
12614         * configure: Newly generated using autoconf 2.13.
12616         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12618 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12620         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12621         doc/Makefile. doc/pic.ms, groff/groff.man:
12622         Prepare for 1.11 release.  No code changes.
12623         Documentation for pic added (doc/pic.ms).
12625 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12627         * Version 1.10 released.
12629 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12631         * afmtodit/afmtodit.pl: Avoid comment on first line.
12633 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12635         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12636         * configure.in: Call it.
12638         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12639         (distfiles): Doesn't depend on config.log or config.cache.
12641 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12643         * grog/grog.sh: Use print "" rather than print in END rule.
12645 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12647         * tbl/main.cc (process_data): Don't give error for excess data
12648         entries that are comments.
12650 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12652         * tbl/main.cc (process_data): Fix case where new for-scope rules
12653         silently change meaning of code.
12655 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12657         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12658         of non-zero hyphenation codes.
12660 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12662         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12664 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12666         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12668 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12670         * tmac/tmac.andoc: Make it work in compatibility mode.
12672         * refer/token.h (token_info::is_range_sep): New function.
12673         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12674         * refer/ref.cc (reference::output): More sophisticated check for
12675         multiple pages.
12677         * devps/prologue.ps (MANUAL): New procedure.
12678         * grops/ps.cc (main): New -m option.
12679         (usage): Include -m.
12680         (ps_printer::~ps_printer): Implement -m.
12682         * aclocal.m4 (GROFF_G): New macro.
12683         * configure.in: Call it.
12684         * Makefile.in (g): Provided by configure.
12686         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12688         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12689         translations.
12691         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12692         (tmac_m, tmac_s): Deleted.
12693         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12694         tmac_s_prefix): New variables.
12695         (MDEFINES): Change accordingly.
12696         * Makefile.comm (.man.n): Use new TMAC_* variables.
12697         * configure.in (GROFF_TMAC): Call.
12698         * aclocal.m4 (GROFF_TMAC): Define.
12699         * tmac/Makefile.sub (stamp_wrap): New target.
12700         (install_data, uninstall_sub): Handle macro wrapping.
12702 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12704         * tbl/main.cc (main): Ignore -T option.
12706 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12708         * devlj4/generate/special.map: Add definition of \(nb.
12710         * tmac/tmac.dvi: Add definition of \(nb.
12712         * troff/dictionary.c (dictionary::dictionary): association::v gets
12713         initialized by association::association.
12715         * tmac/Makefile.sub: Avoid using temporary files when installing.
12717         * troff/env.cc (environment::set_font): Make bad font number a
12718         warning.
12720         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12722         * Makefile.in (datadir): Use share rather than lib.
12724         * groff/groff.cc (basename): Rename to xbasename.
12726 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12728         * Makefile (CCLIBS): Don't use.
12729         * Makefile.ccpg: Likewise.
12731         * acgroff.m4: Rename to...
12732         * aclocal.m4: Modify extensively for autoconf 2.
12733         * configure.in: Likewise.
12734         * Makefile.in: Likewise.
12736         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12737         defined.
12738         (xstrsignal): Check for definition of NSIG. Conditionalize
12739         on SYS_SIGLIST_DECLARED.  Make return type const.
12741 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12743         * troff/input.cc (interpolate_macro): Rephrase missing space
12744         warning.
12746 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12748         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12749         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12750         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12751         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12752         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12753         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12754         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12755         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12756         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12757         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12758         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12759         Fix 'for' scoping.
12761 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12763         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12764         string_iterator.
12765         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12766         file.
12767         (macro_iterator::macro_iterator): Add additional argument.
12769 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12771         * troff/div.cc (vertical_size::vertical_size): In place of integer
12772         specifying line spacing use cunits specifying post vertical
12773         space.
12774         (macro_diversion::output, top_level_diversion::output): Likewise.
12775         * troff/div.h: Change declarations accordingly.
12776         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12777         field.
12778         (pending_output_line::pending_output_line,
12779         pending_output_line::output, environment::output,
12780         environment::output_line, environment::output_title,
12781         environment::hyphenate_line):  In place of
12782         integer specifying line spacing use cunits specifying post vertical
12783         space.
12784         (environment::environment): Add post_vertical_spacing and
12785         prev_post_vertical_spacing arguments.
12786         (environment::get_post_vertical_spacing): New function.
12787         (environment::total_post_vertical_spacing): New function.
12788         (environment::post_vertical_spacing): New function.
12789         (init_env_requests): Initialize pvs request and .pvs register.
12790         * troff/env.h: Change declarations.
12792 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12794         * tmac/tmac.pspic: Immediately remove the temporary file.
12796 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12798         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12799         height is specified.
12801 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12803         * tbl/table.c (struct vertical rule, class table_entry): Use int
12804         not short for start_row and end_row.
12806 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12808         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12809         functions.
12810         (diverted_space_node::reread, process_input_stack): Call
12811         trapping_blank_line() rather than blank_line().
12812         (init_input_requests): Bind "blm" to blank_line_macro().
12814         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12816 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12818         * troff/env.cc (environment::possibly_break_line): Require that
12819         width total excluding width of final space node be greater than
12820         the target text length.
12822 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12824         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12826 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12828         * troff/node.cc (charinfo_node): New class.
12829         (glyph_node, composite_node): Derive from charinfo_node.  Change
12830         member functions accordingly.
12832 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12834         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12836 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12838         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12840         * devps/generate/textmap (notsubset): Add.
12842         * tmac/tmac.a4: New file.
12844 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12846         * pic/main.cc (had_parse_error): New variable.
12847         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12848         returns non-zero.
12849         (main): Return 1 if had_parse_error is true.
12851 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12853         * grolj4/lj4.cc (main): Avoid use of strtoul.
12855 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12857         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12858         iso_8859_1 or $LESSCHARSET is latin1.
12860 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12862         * hpftodit: New directory.
12863         * Makefile.in (CCPROGDIRS): Add hpftodit.
12864         * devlj4/generate: New directory.
12866 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12868         * configure.in: Don't use AC_VFORK.
12869         * groff/pipeline.c (run_pipeline): Use fork() always.
12871 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12873         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12875         * Makefile.in (CCPROGDIRS): Add grolj4.
12876         (DEVDIRS): Add devlj4.
12877         * grolj4, devlj4: New directories.
12878         * tmac/troffrc: Handle lj4.
12879         * tmac/tmac.lj4: New file.
12881 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12883         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12885 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12887         * troff/input.cc (do_if_request): At end of second string, switch
12888         environments before getting next token.
12890 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12892         * devps/psstrip.sed: Split rule that strips whitespace on either
12893         side of delimiters.
12895 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12897         * troff/node.h (font_family::make_definition): Add return value to
12898         declaration.  * troff/symbol.h (symbol::operator==,
12899         symbol::operator!=): Likewise.
12901 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12903         * groff/groff.cc (main, help, synopsis): Handle -S.
12904         (possible_command::insert_arg): New function.
12906         * tmac/tmac.safer: New file.
12907         * tmac/msafer.man: New file.
12908         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12910 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
12912         * pic/pic.h, pic/main.cc (safer_flag): New variable.
12913         * pic/pic.y (placeless_element): Avoid unsafe operations if
12914         `safer_flag' is set.
12915         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
12917 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
12919         * eqn/lex.cc (get_token): Put call to add_context() in block to
12920         work around Sun C++ 4.0 bug.
12922         * include/stringclass.h (operator +): Use ?: instead of `if' to
12923         work around Sun C++ 4.0 bug.
12925 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
12927         * tbl/main.cc (process_format): Accept - as a synonym for the _
12928         key letter.
12930         * libbib/index.cc (minus_one): Don't declare as const.
12932 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
12934         * troff/input.cc (get_char_for_escape_name): Push back a newline.
12936 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
12938         * troff/input.cc (write_macro_request): New function.
12939         (init_input_requests): Bind write_macro_request to writem.
12941 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
12943         * tmac/tmac.s (@EN): Turn filling back on even if there was no
12944         equation.
12946         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
12948         * tmac/tmac.s (@TS): Renamed from TS.
12949         (TS): Call LP then TS again.
12950         (cov*ab-init): Alias @TS to TS.
12952         * tmac/tmac.s: Allow QP or RS to initialize.
12954         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
12955         Move initializations of PS and LL here.
12956         (par@init): Don't initialize HY.  Avoid changing environment 0.
12957         (par*env-init): Don't all par@reset.
12959 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
12961         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
12963 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
12965         * Makefile.in (MDEFINES): Add LDFLAGS.
12966         (LDFLAGS): Add definition line.
12968 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
12970         * troff/input.cc (get_optional_char): Split off error check into...
12971         (check_missing_character): New function.
12972         * troff/token.h: Declare it.
12973         * troff/env.cc (margin_character): Don't call get_optional_char.
12974         Only call tok.next() after making the node.
12976         * include/lib.h (getopt): Make 2nd argument char *const *.
12978 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
12980         * nroff/conftest.sh: Deleted.
12982 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
12984         * pic/make-dos-dist: Deleted.
12986 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
12988         * devps/psstrip.sed: Strip comments before stripping trailing
12989         white space.
12991 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
12993         * Version 1.09 released.
12995 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
12997         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
12999 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13001         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13003 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13005         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13006         about returning without a value.
13008         * troff/charinfo.h (charinfo::get_special_translation): Cast
13009         TRANSLATE_NONE to int.
13011         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13012         test.  Fix test so that it works with n unsigned.
13014         * pic/pic.y (defaults_table): Fully bracket initializer.
13015         * pic/lex.cc (lookup_keyword): Likewise.
13016         * eqn/lex.cc (token_table, def_table): Likewise.
13017         * eqn/box.cc (param_table): Likewise.
13018         * troff/input.cc (warning_table): Likewise.
13019         * libgroff/font.cc (table): Likewise.
13020         * grops/ps.cc (ps_printer::special): Likewise.
13021         * grops/psrm.cc (resource_manager::process_file): Likewise.
13022         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13023         * refer/command.cc (command_table): Likewise.
13024         * addftinfo/addftinfo.cc (param_table): Likewise.
13026         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13027         about temp's being unused.
13028         (unused): New function.
13030         * groff/pipeline.cc: Declare c_fatal.
13032         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13033         uchar.
13035         * libbib/index.cc (index_search_item::load): Prevent compiler
13036         warnings about fd_closer's being unused.
13037         (unused): New function.
13039 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13041         * troff/input.cc (copy_mode_error): Make `prefix' static.
13042         Fix typo.
13044         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13045         defined.
13046         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13047         HAVE_CC_OSFCN_H and modify accordingly.
13049         * troff/input.cc (init_charset_table): radicalex overlaps
13050         horizontally.
13052         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13053         udodo!hans@relay.NL.net).
13054         * groff/configure.in: Call it.
13056         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13057         * groff/configure.in: Call it.
13058         * include/lib.h: Conditionalize declaration of pclose.
13060         * troff/div.cc (last_page_number): New global variable.
13061         (top_level_diversion::begin_page): Exit if we just printed the
13062         last page.
13063         * troff/div.h (last_page_number): Declare it.
13064         * troff/input.cc (parse_output_page_list): Set last_page_number.
13066         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13067         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13068         tmac/tmac.X: Likewise.
13069         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13070         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13072 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13074         * tmac/doc-ditroff (hK): Remove groff specific code which
13075         prevented page-breaks between separate manual entries.  If this is
13076         the first page, don't set the page number to 1.
13078         * acgroff.m4 (GROFF_POSIX): New macro.
13079         * configure.in: Use it.
13081         * troff/node.cc (class real_output_file,
13082         real_output_file::real_output_file,
13083         real_output_file::~real_output_file): Conditionalize use of
13084         popen/pclose on POPEN_MISSING.
13085         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13086         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13087         (pipe_source): Similarily.
13089         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13091         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13092         presence of declarations by trying to compile example with
13093         conflicting declarations.  (gcc only gives a warning for missing
13094         declarations.)
13096 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13098         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13099         (from Ulrich Lauther).
13101 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13103         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13105 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13107         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13108         pointers and ints have different sizes.
13110 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13112         * tmac/tmac.s (par*env-init): Call par@reset.
13114 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13116         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13117         tag.
13118         (par*push-tag-env, par*pop-tag-env): New macros.
13120 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13122         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13123         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13125         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13126         comment.  Include <time.h>.
13128 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13130         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13131         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13132         lines.
13134 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13136         * troff/input.cc (read_request): Only print a prompt if reading
13137         from the terminal.  Also clearerr on EOF if reading from the
13138         terminal.  Declare isatty.
13140 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13142         * refer/label.y: Rename map_t to map_func and extractor_t to
13143         extractor_func.
13145 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13147         * include/assert.h: Don't use volatile.
13148         * libgroff/assert.cc: Likewise.
13150 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13152         * troff/input.cc (abort_request): Look at character in tok before
13153         calling get_copy().
13155 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13157         * troff/troff.h (NO_RETURN): Deleted.
13158         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13159         * troff/input.cc (exit_troff): Likewise
13161         * Makefile.in: Remove `Making ...' messages since GNU make now
13162         gives these. 
13164         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13166 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13168         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13169         to constant 1 inch.
13171 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13173         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13175 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13177         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13178         MARK_REG if there was no left delimiter.
13180 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13182         * pic/troff.cc (troff_output::text): Set line thickness to
13183         relative before outputting text.
13185         * tmac/tmac.e (@k): Don't zero ?T.
13186         ((z): Likewise.
13188 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13190         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13192 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13194         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13195         Paul Eggert).
13197 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13199         * troff/input.cc (ignoring): New variable.
13200         (ignore): Set ignoring during call to do_define_macro.
13201         (do_define_macro): Clear ignoring before interpolating terminating
13202         macro.
13203         (copy_mode_error): New function.
13204         (get_char_for_escape_name, read_long_escape_name,
13205         interpolate_arg): Use copy_mode_error.
13206         (warning_table): Add WARN_IG.
13207         * troff/troff.h (WARN_IG): Declare.
13208         (WARN_TOTAL): Change accordingly.
13210         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13211         * groff/groff.cc (strsignal): Delete declaration.
13213 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13215         * troff/div.cc (page_offset): Use 'm' as default scaling.
13217 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13219         * nroff/nroff.sh: Ignore -u.
13221 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13223         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13225 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13227         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13228         drawing box.
13229         (B2): With -Tascii, leave additional vertical space before
13230         and after. Ensure that the left and right indent is restored to
13231         what it was even if the point size changes.  Don't call
13232         par@finish. Change the indent, line length and title length
13233         directly.  With -Tascii, make the width of the box 1n less.
13234         (B1): Remember 1n at the current point size.  Don't call
13235         par@reset.  Change the indent, line length and title length
13236         directly.  Ensure that the temporary indent is preserved.
13237         (par*box-mark-top): Turn off no spacing mode.
13239 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13241         * Makefile.in (dist): Use .gz suffix.
13243 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13245         * troff/input.cc (main): Add return 0.
13246         * pic/main.cc (main): Use return instead of exit.
13247         * tbl/main.cc (main): Likewise.
13248         * eqn/main.cc (main): Likewise.
13249         * grops/ps.cc (main): Likewise.
13250         * grotty/tty.cc (main): Likewise.
13251         * groff/groff.cc (main): Likewise.
13252         * grodvi/dvi.cc (main): Likewise.
13253         * refer/refer.cc (main): Likewise.
13254         * indxbib/indxbib.cc (main): Likewise.
13255         * lkbib/lkbib.cc (main): Likewise.
13256         * soelim/soelim.cc (main): Likewise.
13257         * addftinfo/addftinfo.cc (main): Likewise.
13258         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13259         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13261         * troff/token.h (process_input_stack): Don't declare as static.
13262         * troff/input.cc: Likewise.
13264         * troff/node.c (invalidate_fontno): Make it a static member of
13265         class font_family.  Change callers.
13266         * troff/node.c: Change declaration.
13268         * tbl/main.cc (struct input_entry_format): Add explicit public
13269         specifier.
13270         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13271         struct double_hline_stuff): Likewise.
13272         * tbl/table.h (struct entry_format): Likewise.
13273         * pic/object.h (struct saved_state): Likewise.
13275         * include/stringclass.h: Add forward declarations of friend
13276         functions that are later declared as inline.  Don't include inline
13277         specifier in friend declaration.
13279         * libgroff/lib.h: Declare popen and pclose.
13280         * acgroff.m4 (GROFF_POPEN): New macro.
13281         * configure.in: Call it.
13283         * include/lib.h (PI): New constant. Undef first if necessary.
13284         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13285         * grops/ps.cc (degrees, radians): Likewise.
13286         * libgroff/font.cc (font::get_skew): Likewise.
13288         * grops/ps.cc (is_ascii): New function.
13289         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13290         isprint.
13291         (ps_printer::define_encoding): Use csspace.
13292         * libgroff/strtol.c (ISASCII): New macro.
13293         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13294         Use ISASCII rather than isascii.
13295         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13296         * libgroff/cset.cc: Likewise.
13297         * libdriver/input.cc: Include cset.h.
13298         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13299         than isdigit().
13301         * refer/refer.cc (main): Use %ld rather than %d for longs.
13303         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13304         S_ISREG macro.
13306         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13308 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13310         * troff/input.cc (hyphenation_code): Skip white space between
13311         char/code pairs.
13313 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13315         * tbl/table.h (table::entry_list_tailp): New member.
13316         (table::table): Initialize it.
13317         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13318         behaviour.
13320 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13322         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13323         with negative horizontal positions. Remove casts of glyph::hpos to
13324         int.
13325         (USHRT_MAX): Delete definition.
13326         (SHRT_MAX, SHRT_MIN): New definitions.
13327         (glyph::hpos): Change type to short.
13328         (tty_printer::end_page): Output multiple backspaces if necessary.
13329          Remove casts of glyph::hpos to int.
13330         
13331 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13333         * tmac/tmac.s (@RT): New definition.
13335 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13337         * refer/refer.cc (do_file): Make sure current_filename is set when
13338         filename is "-".
13340         * pic/common.cc (common_output::dot_line): Handle zero length
13341         lines.
13343 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13345         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13346         (par@init): Initialize \n[HY].
13348 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13350         * troff/dictionary.cc (dictionary::remove): Continue when
13351         r < j < i.
13353 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13355         * Makefile.com (.y.cc): Avoid ending up with two versions of
13356         $(YTABH).
13358 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13360         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13361         (\(,C): Likewise.  Also fix typo.
13363 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13365         * lib.h: Delete extraneous semi-colon.
13367         * Add pso request: `so' from a pipe.
13368         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13369         (file_iterator::close): New function.
13370         (file_iterator::~file_iterator, file_iterator::next_file): Use
13371         file_iterator::close.
13372         (file_iterator::backtrace): Say `process' rather than `file' when
13373         the stream is popened.
13374         (pipe_source): New function.
13375         (init_input_requests): Bind ".pso" to pipe_source.
13377 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13379         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13381         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13382         digits in lower case.
13384 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13386         * Version 1.08 released.
13388         * Makefile.in (dist): Insert || true after ln -s commands that
13389         might fail.
13391         * mm: Update to mm 1.16.
13393         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13394         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13395         SH_SCRIPT_SED_CMD.
13396         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13397         MDEFINES.
13398         * nroff/Makefile.sub (nroff): New target.
13399         (install_data): Install nroff.
13400         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13401         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13403 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13405         * eqn/Makefile.sub (neqn): Add chmod +x.
13407         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13409 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13411         * troff/input.cc (string_iterator::string_iterator()): Initialize
13412         lineno and count.
13414 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13416         * troff/div.cc (macro_diversion::space,
13417         top_level_diversion::space): Don't set high_water_mark.
13418         (macro_diversion::output, top_level_diversion::output): Don't
13419         include post line space in high water mark.
13421 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13423         * eqn/eqn.y: Don't define YYDEBUG.
13424         * pic/pic.y: Likewise.
13426 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13428         * tmac/tmac.e ([3): Add space after comma following editors.
13429         Change double spaces to single spaces.
13430         ([4): Change double spaces to single spaces.
13432         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13433         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13434         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13435         after %!PS-Adobe- (for Newsprint).
13437         * troff/div.cc (top_level_diversion::begin_page): When
13438         before_first_page is 1, set page_number to 1.
13440 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13442         * eqn/box.cc (box::top_level): Protect equation with \&.
13444 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13446         * groff/groff.cc (possible_command::set_name): Delete old name.
13448         * groff/groff.cc (possible_command::~possible_command): Use
13449         a_delete.
13451         * troff/node.cc (troff_output_file::begun_page): New member.
13452         (troff_output_file::troff_output_file): Initialize it.
13453         (troff_output_file::really_begin_page): Only output V command if a
13454         page has been begun.
13456         * pic/pic.y (placeless_element): Delete argument to PRINT after
13457         use.
13459 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13461         * Make wrapman work.
13462         * troff/div.h (class top_level_diversion): Replace
13463         first_page_begun by before_first_page (with opposite sense).
13464         * Change first_page_begun to before_first_page inverting sense.
13465         * troff/div.cc (class nl_reg): New class.
13466         (init_div_requests): Use class nl_reg for \n(nl.
13467         (top_level_diversion::begin_page): Don't call
13468         output_file::begin_page if before_first_page is 2;
13469         reset before_first_page afterwards.  If have_next_page_number is
13470         false, then always increment page_number.
13471         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13472         Restore compatibility mode after loading, and then disable
13473         compatibility mode in TH.
13475 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13477         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13478         past last line.
13479         * troff/node.h (output_file::trailer): Declare.
13480         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13481         * troff/node.cc (output_file::trailer): New function.
13482         (troff_output_file::~troff_output_file): Move most code into...
13483         (troff_output_file::trailer): New function.
13484         (class troff_output_file): Delete page_length member. Declare
13485         trailer().
13486         (troff_output_file::really_begin_page): Use current page length
13487         for final V command.
13489         * tbl/main.cc (struct options): New decimal_point_char member.
13490         (options::options): Initialize this.
13491         (process_options): Implement decimalpoint option.
13492         (process_data): Pass decimal_point_char option to table::table.
13493         * tbl/table.h (class table): New decimal_point_char member.
13494         (table::table): Add additional argument.
13495         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13496         second argument specifying decimal point character.  Use this
13497         instead of '.'.
13498         (table::table): Initialize decimal_point_char.
13499         (table::add_entry): Change call to find_dot.
13501         * troff/input.cc (get_copy, token::next): Implement \V.
13502         (interpolate_environment_variable): New function.
13504 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13506         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13507         * pic/pic.y: Likewise.
13509         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13510         Add casts to int.
13511         * refer/ref.cc (reference::insert_field, reference::delete_field):
13512         Likewise.
13513         * troff/number.cc (parse_term): Likewise.
13515         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13516         * configure.in: Use GROFF_PROG_YACC.
13518         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13519         and g++.
13520         * Makefile.in (OPTIMIZE): New define.
13521         (DEBUG): Empty by default.
13522         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13524         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13525         (GROFF_ARRAY_DELETE): Likewise.
13526         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13528         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13530         * devps/psstrip.sed: Use different delimiter on last line (so that
13531         it works with BSD 4.4 sed.)
13533 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13535         * devps/psstrip.sed: Delete comments.
13537         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13538         optind, opterr, optarg.
13539         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13540         opterr, optarg.
13542 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13544         * Makefile.in (check): Dummy target.
13546 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13548         * Version 1.07 released.
13550         * Integrate mm 1.11.
13552         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13553         where start_col was meant.
13555 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13557         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13559 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13561         * troff/input.cc (token::next): Make \z\o'...' and similar things
13562         work.
13564         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13565         constants.
13566         (environment): Add margin_character_flags member.
13567         * env.cc (environment::environment(symbol),
13568         environment::environment(const environment *): Initialize
13569         margin_character_flags.
13570         (margin_character): Rewrite.
13571         (environment::output_line): Add a margin character if
13572         margin_character_flags is non-zero.  Turn off the
13573         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13574         zero, use margin_character_node without copying and then set
13575         margin_character_node to 0.
13577         * devps/DESC.in: Change minimum size to 1000.
13579 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13581         * troff/symbol.h (symbol::hash): Change return type to unsigned
13582         long.
13583         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13584         Add casts to int.
13586         * test-groff: Use -r rather than -x.
13588         * grops/psfig.diff: Include in distribution again.
13590 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13592         * Makefile.in (dist): Use gzip.
13594 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13596         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13597         unistd.h as well as in stdlib.h.
13598         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13599         defined; otherwise include <sys/types.h> and <unistd.h> if
13600         UNISTD_H_DECLARES_GETOPT is defined.
13602         * configure.in: use builtin(include, ... rather than include(...
13603         * configure: Regenerate with autoconf 1.3.
13605         * libdriver/print.cc (printer::adjust_arc_center): Use new
13606         algorithm suggested by Andy Fyfe.
13608         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13609         * include/printer.h: Declare this.
13610         * grops/ps.cc (ps_printer::draw): Use it.
13611         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13613 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13615         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13617 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13619         * eqn/main.cc (main): Handle "eqn -".
13621 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13623         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13625         * mm: Integrate version 1.08.
13627         * pic/troff.cc (troff_output::finish_picture): Set
13628         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13629         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13630         if it's not defined. Check whether the register is non-zero rather
13631         than whether it's not defined.
13632         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13634         * indxbib/indxbib.cc: Move all signal handling into...
13635         * indxbib/signal.c: New file.
13636         * configure.in: Call AC_RETSIGTYPE.
13638         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13639         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13640         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13642         * troff/input.cc (token::token, token::operator=): Work round SGI
13643         C++ bug.
13644         * pic/object.cc (position::position): Likewise.
13646 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13648         * pic/pic.h: Move declaration of hypot().
13650 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13652         * pic/pic.h: Declare hypot().
13654         * pic/pic.h: Define M_PI if necessary.
13656 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13658         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13659         `.ta T' feature.
13661         * devps/prologue.ps (RE): Handle the possibility that the old font
13662         doesn't have a FontName entry.
13664 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13666         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13667         (@C): Use @fam not fam.
13669 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13671         * lookbib/lookbib.cc (main): Change type of start to const char *.
13672         * lkbib/lkbib.cc (main): Likewise.
13674         * eqn/lex.cc (definition::definition): Don't use member
13675         initializer syntax for members of anonymous unions.
13677         * troff/input.cc (input_stack::backtrace): Change type of to const
13678         char *.
13680 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13682         * include/stringclass.h (class string): Declare inline friend
13683         functions as inline in class declaration.
13684         * troff/hvunits.h (class hunits, class vunits): Likewise.
13685         * include/refid.h (class reference_id): Likewise
13686         * troff/troff.h (points_to_units(units), scale(units, double)):
13687         Delete declarations.
13688         * libdriver/input.cc (get_char): Delete declaration.
13689         * include/lib.h: Change 2nd argument of getopt from const char **
13690         to char **.
13691         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13692         char **' before assigning to a `const char **'.
13693         * tbl/table.cc: Delete extra declarations of prints().
13695 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13697         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13698         char **' before assigning to a `const char **'.
13700         * libgroff/errarg.cc (errarg::errarg): Don't use member
13701         initializer syntax for members of anonymous unions.
13703 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13705         * mm: Integrate version 1.07.
13707 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13709         * troff/input.c (translate2): Rename to
13710         (translate_no_transparent).
13711         (init_input_requests): Rename tr2 to trnt.
13713 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13715         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13716         (charinfo::set_translation, charinfo::set_special_translation):
13717         Add second argument that specifies value for
13718         transparent_translate.
13719         (charinfo::get_translation, charinfo::get_special_translation):
13720         Add optional second argument that specifies whether translation is
13721         being used for transparent throughput.
13722         * troff/input.cc (charinfo::set_translation,
13723         charinfo::set_special_translation): Handle second argument.
13724         (charinfo::charinfo): Initialize transparent_translate.
13725         (translate): Split main part off into
13726         (do_translate): New function.  Pass argument saying whether
13727         translation applies to transparent throughput.
13728         (translate2): New request.
13729         (init_input_requests): Bind translate2 to `tr2'.
13731 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13733         * tbl/table.h (class table): Add `nokeep' flag.
13734         * tbl/main.cc (process_options): Handle `nokeep' option.
13735         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13736         table::do_bottom): Don't output keep/release macro definitions or
13737         calls when `nokeep' option has been specified.
13739 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13741         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13743 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13745         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13746         block_entry::divert, alphabetic_block_entry::divert): Add extra
13747         argument giving column separation.
13748         (table::compute_widths): Pass column separation to
13749         table_entry::divert().
13750         (block_entry::do_divert): If an entry spans multiple columns and a
13751         minimumum width has been specified for each column, then set the
13752         line length to the sum of the widths (plus possibly the column
13753         separations).
13755         * troff/input.cc (set_escape_char): Don't set the escape_char
13756         until after calling has_arg().
13758 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13760         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13761         case.
13763         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13764         in case where r > nrows - 1.
13766         * tbl/table.cc (BODY_HEIGHT): Deleted.
13767         (LINE_SEP): New definition.
13768         (table::print_single_hline, table::print_double_hline,
13769         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13770         table::do_row, table::do_top): Use LINE_SEP space before a line
13771         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13773         * tbl/table.cc (text_entry::print_contents): New function.
13774         (text_string_name, right_text_string_name): Deleted.
13775         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13776         (simple_text_entry::do_width, numeric_text_entry::do_width,
13777         alphabetic_text_entry::do_width): Don't store the contents of the
13778         entry in a string.
13779         (left_text_entry::simple_print, right_text_entry::simple_print,
13780         center_text_entry::simple_print,
13781         alphabetic_text_entry::simple_print,
13782         numeric_text_entry::simple_print): Print the entry directly
13783         instead of using the stored string.
13785 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13787         * devps/Makefile: Strip PostScript files.
13788         * devps/prologue: Rename to...
13789         * devps/prologue.ps.
13790         * devps/psstrip.sed: New file.
13791         * devps/download: Use .pfa rather than .ps for installed versions
13792         of fonts.
13794 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13796         * troff/env.cc (input_trap): Give a warning if the argument is out
13797         of range.
13799         * troff/env.cc (adjust): Treat negative argument as missing. Round
13800         argument > 5 down to 5.
13802         * troff/env.cc (center, right_justify): Make negative argument zero.
13804         * troff/div.cc (page_offset, vertical_position_traps): Treat
13805         invalid argument as missing.
13806         * troff/env.cc (line_spacing, line_length, title_length, indent,
13807         underline, hyphen_line_max_request, control_char,
13808         no_break_control_char, widow_control_request, adjust, input_trap,
13809         point_size): Likewise.
13810         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13811         constant_space): Likewise.
13812         * troff/input.cc (compatible, shift, warn_request,
13813         set_escape_char): Likewise.
13815         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13816         * tbl/table.cc (table::table): Likewise.
13818         * Makefile.dev (install_dev): depends on $(DEVFILES).
13820 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13822         * devX75, devX75-12, devX100, devX100-12: New directories.
13823         * Makefile.in: Add these to DEVDIRS.
13825         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13826         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13827         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13828         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13829         targets.
13830         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13831         (uninstall): New target.
13832         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13833         uninstall_prog, uninstall_dev): New targets.
13835         * troff/div.cc (return_request): Treat an invalid argument as
13836         missing.
13838 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13840         * tmac/tmac.e ((f): Set up the environment even when there's a
13841         current diversion.  Transperently throughput a call to @N.
13842         (@N): New macro.
13844 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13846         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13847         up to vertical resolution.
13849         * tbl/table.cc (table::do_row): Change row number after printing
13850         stuff list.
13852         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13854 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13856         * Rename CHANGES to NEWS.
13858 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13860         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13862 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13864         * man.ultrix: Removed.
13866 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13868         * Makefile.comm (extraclean): Delete files whose names begin with
13869         `='.
13871         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13872         aligned text.
13874 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13876         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13877         * troff/div.cc (page_length, need_space, space_request): Treat
13878         invalid optional argument as missing.
13879         * troff/env.cc (number_lines): If the first argument is present
13880         but not a number, turn on line numbering, don't change the next
13881         line number and parse the remaining arguments.
13883         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13885 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13887         * eqn/box.h: Change declaration accordingly.
13888         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13889         the specified size was bad but don't give an error.  Check for
13890         overflow.
13891         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13892         * eqn/lex (do_size): Likewise.
13894 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13896         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13897         compatible headers.
13899 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13901         * tbl/table.cc (table::init_output): Improve error message when
13902         table won't fit on one page.
13904 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13906         * pic/troff.cc (troff_output::start_picture): Generate line
13907         containing a horizontal motion equal to the width of the picture.
13909         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13910         using GROFF_COMMAND_PREFIX environment variable.
13912 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
13914         * mdate.sh: Use $NF rather than $(NF).
13916 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
13918         * pic/main.cc (main):  Use %1 not %c in argument to warning.
13920         * eqn/main.cc (main): Output code to check that geqn was given the
13921         correct -T option.
13923 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
13925         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
13926         `ln -s ../Makefile .; make; rm -f Makefile'.
13928         * troff/hyphen: Rename to...
13929         * troff/hyphen.us:
13930         * troff/input.cc (main): Delete -H option. Don't call
13931         read_hyphen_file().
13932         * troff/env.cc: Include searchpath.h and macropath.h.
13933         (exception_dictionary): Deleted.
13934         (ht): Deleted.
13935         (read_hyphen_file): Deleted.
13936         (hyphenation_language): New struct.
13937         (class trie, class hyphen_trie): Move declarations up.
13938         (trie_node::~trie_node): Deleted.
13939         (trie::delete_trie_node): New function.
13940         (trie::do_delete): New pure virtual function.
13941         (hyphen_trie::do_delete): New function.
13942         (trie::~trie): New function.
13943         (hyphen_trie::~hyphen_trie): New function.
13944         (trie::clear): No need to chcek that tp is not 0.
13945         (current_language, language_dictionary): New variables.
13946         (hyphen_word): Give an error if no current language.  Use
13947         exceptions dictionary in current language.
13948         (hyphen_trie::read_patterns_file): Find file using macro_path.
13949         Allow comments (starting with %) in patterns file.  Don't make it
13950         a fatal error if the file can't be found.
13951         (hyphenate): Return if no current language.  Get the exceptions
13952         dictionary and the hyphenation patterns from the current language.
13953         (set_hyphenation_language): New variable.
13954         (hyphenation_patterns_file): New function.
13955         (hyphenation_language_reg): New class.
13956         (hyphenation_language_reg::get_string): New function.
13957         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
13958         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
13959         register.
13960         * groff/groff.cc (main, help, synopsis): Delete -H option.
13961         * include/Makefile.sub: Don't define HYPHENFILE.
13962         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
13963         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
13964         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
13965         hyphenation patterns.
13967 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
13969         * eqn/neqn.sh: New file.
13970         * eqn/Makefile.sub: Handle neqn.sh.
13972         * eqn/eqn.h: Declare `nroff' variable.
13973         * eqn/box.cc (param_table): Add `nroff' param.
13974         (nroff): Define it.
13975         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
13976         variable.
13977         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
13979         * troff/troff.h (WARN_FONT): New warning.
13980         (WARN_TOTAL): Change accordingly.
13981         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
13982         (warning_table): Add WARN_FONT.
13983         * troff/node.cc (mount_font_no_translate): Pass argument to
13984         font::load_font.  If this is non-zero, give a warning.
13985         Don't give an error message when accessing a font that has already
13986         been found to be invalid.
13987         * include/font.h (font::load, font::load_font): Add additional
13988         optional argument which suppresses error message if the font is
13989         not found.
13990         * libgroff/font.cc (font::load_font): Handle additional argument.
13991         (font::load): Add additional argument. If this is non-null, set it
13992         to 1 and don't give error message.
13994         * include/printer.h (printer::end_page): Add argument giving
13995         length of page.
13996         * libdriver/input.cc (do_file): Pass this.
13997         * grops/ps.cc (ps_printer::end_page): Add argument.
13998         * grodvi/dvi.cc (dvi_printer::end_page,
13999         draw_dvi_printer::end_page): Add argument.
14000         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14001         columns_per_page members. New member nlines.
14002         (DEFAULT_LINES_PER_PAGE): Deleted.
14003         (tty_printer::tty_printer): Don't compute lines_per_page from
14004         font::paperlength. Don't compute columns_per_page from
14005         font::paperwidth.
14006         (tty_printer::add_char): Don't check horizontal position against
14007         columns_per_page. Grow glyphs vector if neccessary.
14008         (tty_printer::end_page): Add argument giving page_length in units.
14009         Discard lines past end of page.
14011 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14013         * tmac/tmac.tty-char: Fix definition of \(/l.
14015         * tmac/tmac.X: Define \(en.
14017 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14019         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14020         lpq, then use lp rather than lpr.
14022         * tmac/tmac.s (par@reset): Don't call `ad'.
14023         (par*env-init): Call `ad'.
14025 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14027         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14028         date.
14030         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14031         * indxbib/indxbib.cc: Likewise.
14033 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14035         * libgroff/putenv.c: New file.
14036         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14037         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14038         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14039         stdlib.h with AC_HAVE_HEADERS.
14041 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14043         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14044         does not exist.
14046 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14048         * eqn/box.cc (gsize): Make it an int.
14049         (set_gsize): Parse argument handling increment or decrement.
14050         (box::top_level): Convert gsize to a string.
14052         * troff/input.cc (exit_troff): Make buf unsigned char [].
14053         Call to make_temp_iterator casts buf to char*.
14055         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14057         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14058         * Makefile.cpg (depend.temp): Likewise.
14060         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14062         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14064 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14066         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14068 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14070         * Version 1.06 released.
14072         * Integrate mm 1.04.
14074 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14076         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14078 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14080         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14081         ligatures command.
14082         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14083         afmtodit. Regenerate.
14085         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14086         @f back past the current position.
14088         * tmac/tmac.e: Change calls to @R so that comments are not part of
14089         arguments.
14091 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14093         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14095         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14096         check that we can link a call to a function declared in <stdio.h>.
14097         (GROFF_UNISTD_H): New macro.
14098         * configure.in: Call it.
14099         * Makefile.in: Document it.
14100         * include/posix.h: New file.
14101         * troff/troff.h: Don't include <osfcn.h>
14102         * troff/input.cc: Include posix.h.
14103         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14104         osfcn.h.
14105         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14106         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14107         <fcntl.h>.
14108         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14109         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14110         * libbib/search.cc (O_RDONLY): Delete definition.
14111         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14112         Don't include <osfcn.h>.
14114         * acgroff.m4 (GROFF_TIME_T): New macro.
14115         * configure.in: Call it.
14116         * Makefile.in: Document it.
14118         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14119         * configure.in: Call it.
14120         * Makefile.in: Document -DTRADITIONAL_CPP.
14121         * include/ptable.h: Don't include generic.h.
14122         (name2): Define it.
14124         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14125         Afterwards remove [T1 and [T2.
14126         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14127         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14128         (ref*add-T2): Renamed from ref*add-T.
14129         (ref*add-T1): New macro.
14131 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14133         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14135         * libbib/index.cc: Include <fcntl.h>.
14136         (O_RDONLY): Define if necessary.
14137         (make_index_search_item, index_search_item_iterator::get_tag,
14138         index_search_item::check_files): Use O_RDONLY.
14139         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14140         (O_RDONLY): Define if necessary.
14141         (search_list::add_file): Use O_RDONLY.
14142         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14143         <sys/stat.h>.
14144         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14145         (main): Use these.
14147         * libbib/index.cc (S_ISREG): Define it if necessary.
14148         (index_search_item::load): Use S_ISREG.
14150         * include/driver.h: Include <errno.h>.
14152 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14154         * eqn/box.cc (body_height): Increase default value to 85.
14155         (body_depth): Increase default value to 35.
14157 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14159         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14160         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14161         protected from expansion with \E.
14163         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14165         * Makefile (Makefile): New target.
14167         * Makefile.sub (configure, distfiles): New targets.
14169         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14170         construct.
14172 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14174         * eqn/box.cc (param_table): Add body_height and body_depth.
14176         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14178 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14180         * psbb/Makefile.sub: Don't link with libgroff.a.
14182         * acgroff.m4 (GROFF_PUTENV): New macro.
14183         * configure.in: Call GROFF_PUTENV.
14184         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14185         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14186         is defined.
14188         * troff/env.cc (distribute_space): Rename force_forward argument
14189         to force_reverse.  Reverse the list if force_reverse is true.
14191 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14193         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14195         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14196         height or depth to be negative.  Guard against SUP_RAISE quantity
14197         being negative.
14199 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14201         * devps/generate/textmap: Add `an' (arrowhorizex).
14202         * tmac/tmac.ps: \(an overlaps horizontally.
14203         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14205         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14206         * devps/textmap: Add arrowvertex.
14207         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14208         updownarrow delimiters.
14209         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14211         * tbl/table.cc (simple_entry::position_vertically,
14212         block_entry::position_vertically):  For a centered entry, perform
14213         the motion in two stages.
14215         * refer/refer.cc (split_punct): Don't call lookup_token if there
14216         is no token.
14218 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14220         * troff/input.cc (token::next): Delete token_node after copying
14221         token.
14223         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14224         cur_point_size.
14226         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14228         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14230 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14232         * grops/ps.cc (usage): -b option takes an argument.
14234         * devps/prologue (PLG): New procedure.
14235         * grops/ps.cc (main, usage): New -g option.
14236         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14237         length using PLG.
14239 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14241         * include/cset.h: Include <limits.h> if we have it.
14243         * libgroff/illegal.cc: New file.
14244         * include/lib.h (illegal_input_char): Use table.
14245         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14246         * pic/lex.cc (ARG1): Renumber to 14.
14247         * eqn/lex.cc (ARG1): Likewise.
14249         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14250         (eg 1.05.90) correctly.
14252 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14254         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14255         Rename $r and $R registers to $v and $V.
14256         ($r, $R): Initialize to 0.
14257         (@v, @V): New macros.
14258         (sz): Call @v.
14259         (@M): Call @V.
14261         * troff/input.cc (main, usage): Add -R option that says not to
14262         load troffrc.
14263         * eqn/main.cc (main, usage): Rename -n to -R.
14265 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14267         * devps/DESC.in: Leave font positions 5-9 blank.
14268         * devdvi/DESC.in: Likewise.
14270         * grog/grog.pl: Handle `.PS <file' correctly.
14272         * troff/input.cc (input_stack::push): Improve error message when
14273         input stack limit exceeded.
14275 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14277         * refer/refer.cc (main): Fix typo in handling of `a' option.
14279         * refer/refer.cc (do_bib): In state START after a newline remain
14280         in state START.
14282         * groff/groff.sh: Deleted.
14283         * groff/Makefile.sub: Delete handling of groff.sh.
14285         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14286         to determine whether to use \X'ps:...'.
14287         * tmac/troffrc: Set 0p register to 0.
14288         * tmac/tmac.ps: Set 0p register to 1.
14290         * groff/groff.cc: Support -X option. Give warning for -TXps and
14291         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14292         * tmac/troffrc: Support -r.X=1.
14294         * pic/troff.cc (troff_output::dot): Don't test
14295         zero_length_line_flag.
14297 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14299         * include/lib.h: Declare getopt() and friends unless
14300         STDLIB_H_DECLARES_GETOPT is defined.
14302         * doc/chars.tr: Delete.
14303         * man/groff_char.man: New file.
14305 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14307         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14308         user has changed register format.
14310 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14312         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14313         `postpro' command in DESC file.  Get spooler command from `print'
14314         command in DESC file.  Execute spooler command with /bin/sh.
14316         * groff/groff.cc: Split Unix-specific parts into...
14317         * groff/pipeline.c: New file.
14319         * LICENSE: Delete.
14320         * COPYING: New file.
14321         * all files: Update copyright notices.
14323         * Rearrange files.  Redo Makefiles.  Use autoconf.
14325 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14327         * troff/input.c (charinfo_to_node_list): Interpret character
14328         definition with escape_char of `\'.
14330 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14332         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14333         Define INT_DIGITS as big enough for 64-bit integer.
14334         * lib/strtol.c: Don't include lib.h.
14335         * lib/lib.h: Delete ifdef __cplusplus stuff.
14337 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14339         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14340         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14341         get DESC from current directory.
14343 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14345         * tbl/main.c (main): Always reset the line number when reading
14346         from stdin.
14348         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14349         table::define_bottom_macro, table::do_row, table::do_top): Round
14350         vertical spacing up to vertical resolution.
14352 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14354         * ps/ps.h (enum resource_type): Avoid comma at end of
14355         enumerator-list.
14356         * dvi/dvi.c (class dvi_printer): Likewise.
14357         * dvi/tfmtodit.c (gf::load): Likewise.
14358         * refer/label.y (struct expression): Likewise.
14359         * refer/refer.c (class label_processing_state): Likewise.
14360         * refer/indxbib.c (do_file): Likewise.
14361         * troff/troff.c (enum warning_type): Likewise.
14362         * tbl/main.c (process_data): Likewise.
14363         * troff/charinfo.h (class charinfo):
14365 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14367         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14369 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14371         * groff.c: Move to new groff subdirectory.
14372         * groff/Makefile: New file.
14373         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14375         * man/mdate.sh: Use ls -L if supported.
14377         * Consolidate all header files produced by gendef into lib/defs.h.
14378         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14379         Don't include path.h.
14380         * lib/Makefile (path.h): Don't generate.
14381         * troff/input.c: Include defs.h. Don't include config.h.
14382         * troff/Makefile (config.h): Don't generate.
14383         * refer/index.h: Don't include suffix.h.
14384         * refer/index.c: Include defs.h.
14385         * refer/indxbib.c: Include defs.h.
14386         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14387         defs.h.
14388         * refer/Makefile (suffix.h, path.h): Don't generate.
14389         * groff.c: Don't include config.h. Include defs.h.
14390         * Makefile (config.h): Don't generate.
14391         (lib/defs.h): Generate.
14392         (topclean): Remove lib/defs.h.
14394 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14396         * lib/malloc.c, lib/getpagesize.h: Deleted.
14397         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14398         related stuff.
14399         * lib/Makefile: Delete malloc-related stuff.
14400         * lib/new.c: Workaround COOKIE_BUG if necessary.
14402         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14403         needed header files directly.
14404         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14405         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14407 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14409         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14410         argument.
14411         * lib/font (font::load_desc, font::load): Don't split argument of
14412         unknown command.
14413         (font::handle_unknown_font_command): Change type.
14414         * ps/ps.c (ps_font::handle_unknown_font_command,
14415         handle_unknown_desc_command): Change type.
14416         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14418 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14420         * lib/font.h (font::handle_unknown_font_command): Add file and
14421         line arguments.
14422         * lib/font.c (font::handle_unknown_font_command):
14423         * ps/ps.c (ps_font::handle_unknown_font_command):
14424         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14425         lineno arguments.  Use _with_file_and_line functions for error
14426         reporting.
14428         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14429         data member.
14430         * lib/font.c (font::set_unknown_desc_command_handler): New
14431         function.
14432         (font::load_desc): For unknown commands, call
14433         unknown_desc_command_handler if not null.
14434         * lib/font.h (class font): Declare them.
14435         (FONT_COMMAND_HANDLER): New typedef.
14436         * ps/ps.c (handle_unknown_desc_command): New function.
14437         (main): Set bflag if we had a -b option. Call
14438         font::set_unknown_desc_command_handler.
14439         (broken.h): Don't include.
14440         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14441         submake 
14442         * ps/devps/Makefile: Add `broken' command to DESC file using
14443         BROKEN_SPOOLER_FLAGS.
14445         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14447         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14449         * macros/tmac.e (@R, @S): New macros.
14450         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14451         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14452         Declare $H, $[0-9], .. macros with @S.
14453         Declare |0, |1, |2, |3 strings with @S.
14455         * macros/tmac.e (@S): Rename to @U.
14457         * macros/tmac.e (@z): Define @b and bp as empty instead of
14458         deleting them,
14460         * macros/tmac.e (@m): Deleted.
14461         (@h): Don't call @m.
14462         (@z): Don't set @m trap.
14464         * macros/tmac.e ($h, $f): Define |z as empty string.
14466         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14467         (@q): Likewise.
14469         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14470         removing them.
14471         ()f): Likewise for * register.
14473         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14474         argument is missing, don't change $R.  Call sr with three
14475         arguments when initializing.
14477 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14479         * macros/tmac.e (sr): New macro.
14480         Initialize $r and $R using sr.
14482         * macros/tmac.e (,): Delete \*(#[.
14484         * troff/env.c (set_tabs): Read the tab type even if the position
14485         is bad.  Allow the position of the first tab stop to be negative.
14487 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14489         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14490         _POSIX_VERSION.
14491         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14492         rather than -DPATHCONF_MISSING.
14493         * Makefile: Get rid of PATHCONF_MISSING.
14495         * refer/map.c: New file.
14496         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14497         to map_len.
14498         * refer/Makefile: Handle map.c.
14499         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14501 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14503         * Makefile: RANLIB should be `true' if there is no ranlib.
14504         * lib/Makefile (libgroff.a): Simplify.
14505         * driver/Makefile (libdriver.a): Simplify.
14507         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14508         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14509         defined.
14511 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14513         * troff/env.c (compare_ranges): Declare as extern "C".
14515         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14517         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14519 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14521         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14522         but conditionalize use of \X based on \*(.T.
14523         (grops_output::*): Deleted.
14524         * pic/output.h: Delete declaration of make_grops_output.
14525         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14526         by default. -n sets it to 0.
14527         (usage): Corresponding changes.
14528         * groff.c (main): Don't pass -x or -p to pic.
14529         * groff.sh: Likewise.
14531         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14532         to be non-zero.
14534         * ps/devps/afmtodit: Change calculation of asc_boundary and
14535         desc_boundary.  Make these bounds inclusive.
14536         * ps/devps: Regenerate font files.
14538 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14540         * macros/tmac.latin1: New file.
14541         * macros/tmac.tty-char: Use tmac.latin1.
14542         (tmac.tty-tr): Deleted.
14543         * macros/Makefile: Install tmac.latin1.
14544         * macros/tmac.dvi: Use tmac.latin1.
14545         * macros/troffrc: Translate \[char160] onto no-break space here.
14546         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14548 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14550         * macros/tmac.Xps: Use `do' request.
14552         * macros/tmac.ps: Use `do' request.
14554         * macros/tmac.e (@C): Use `do' request.
14556         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14557         * macros/Makefile: Install tmac.X*.
14559         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14560         * tty/Makefile: Don't install tmac.tty*.
14561         * macros/Makefile: Install tmac.tty*.
14563         * dvi/tmac.dvi: Move to macros.
14564         * dvi/Makefile: Don't install tmac.dvi.
14565         * macros/Makefile: Install tmac.dvi.
14567         * ps/tmac.ps*: Move to macros.
14568         * ps/Makefile: Don't install tmac.ps*.
14569         * macros/Makefile: Install tmac.ps*.
14571         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14572         option.
14573         * macros/eqnrc: Set draw_lines parameter based on device.
14574         * groff.c: Don't pass -D flag to eqn.
14575         * groff.sh: Likewise.
14576         * eqn/main.c: Warn about use of -D.
14578         * troff/input.c (process_startup_file): New function.
14579         (main): Call process_startup_file().
14580         * macros/troffrc: New file.
14581         * macros/Makefile: Install troffrc.
14582         * groff.c (main): Don't pass extra -m option to troff. For a 
14583         pseudo device pass the name of the pseudo device to troff using
14584         -d.
14585         * groff.sh: Likewise.
14586         * groff.c (possible_command::prepend_arg): Deleted.
14588         * troff/input.c (do_request): New function.
14589         (init_input_requests): Bind "do" to do_request.
14591         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14592         load eqnrc from macro directory.
14593         * macros/eqnrc: New file.
14594         * macros/Makefile: Install eqnrc.
14595         * ps/devps/eqnchar: Deleted.
14596         * ps/devps/Makefile: Don't install eqnchar.
14597         * dvi/devdvi/eqnchar: Deleted.
14598         * dvi/devdvi/Makefile: Don't install eqnchar.
14599         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14600         variable optM.
14602         * lib/device.[ch]: New files.
14603         * lib/font.h (font::set_device_name, font::get_device_name):
14604         Deleted.
14605         * lib/fontfile.c: Use device.h.
14606         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14607         * troff/input.c: Delete definition of `device'.
14608         (main): Don't initialize device.
14609         * troff/troff.h: Include device.h rather than declaring device.
14610         * troff/Makefile: No need to handle DEVICE.
14611         * driver/input.c: Include device.h. Don't use
14612         font::{set,get}_device_name.
14613         * groff.c, Makefile: Rename device.h to config.h.
14614         * groff.c: Use library device variable.
14615         * eqn/main.c: Use library device variable.
14616         * eqn/Makefile: No need to handle DEVICE.
14618         * lib/searchpath.[ch]: New files.
14619         * lib/Makefile: Handle searchpath.[ch].
14620         * troff/input.c (open_file, init_dirs): Deleted.
14621         (macro_dirs): Deleted.
14622         (open_mac_file, macro_source): Use class search_path.
14623         (add_string, struct string_list): Move definition.
14624         (main): Change -M option to use macro_path. Delete call to
14625         init_dirs().
14626         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14627         Rewrite to use class search_path.
14628         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14629         * lib/Makefile: fontfile.c depends on searchpath.h.
14630         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14631         MACROPATH.
14632         * lib/macropath.[ch]: New files.
14633         * troff/Makefile: No need to handle MACROPATH.
14635         * troff/input.c: Delete DUMP code.
14636         * lib/fontfile.c, lib/font.h: Delete
14637         font::forget_command_line_font_dirs.
14639         * troff/input.c (push_token): New function.
14640         (handle_first_page_transition): Use push_token().
14641         (process_input_stack): Change handling of a space at the beginning
14642         of the line.
14644 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14646         * troff/input.c (font_dirs): Delete unused variable.
14648         * eqn/lex.c (do_set): Correct error messages.
14650 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14652         * troff/input.c (do_define_string): Allow the string name to be
14653         followed immediately by a tab.
14654         (define_character): Likewise.
14656 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14658         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14659         be negative.
14661         * troff/input.c (input_iterator::is_file): New virtual function.
14662         (file_iterator::is_file): New function.
14663         (input_stack::end_file): New function.
14664         (input_stack::next_file): Handle the situation where there is no
14665         file on the input stack correctly.  Avoid making two passes over
14666         the input stack.
14667         (next_file): Make the filename optional; in this case call
14668         input_stack::end_file().
14670 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14672         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14673         produce a real _ charater when the current font is CW and _
14674         otherwise.
14676         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14677         expression to work around gcc 2.2 bug.
14679 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14681         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14683         * troff/env.c (environment::add_padding): New function.
14684         (environment::add_char): Use add_padding().
14685         (environment::space): Likewise.
14686         (environment::wrap_up_field): Add some padding if there is none
14687         and there's no current tab.
14688         * troff/env.h: Declare environment::add_padding.
14690 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14692         * pic/pic.y: undef fmod and rand before declaring them.
14694 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14696         * troff/input.c (main): If the DESC file specifies a font name of
14697         0, then leave the corresponding font position empty.
14699         * nroff.sh: New file.
14700         * Makefile (install.nobin): Install nroff.sh.
14702         * tty/devlatin1/R.proto: Add ao as synonym for de.
14703         * tty/tmac.tty-char: Define ao as o.
14705         * tty/dev{ascii,latin1}/R.proto: Add aq.
14706         * tty/tmac.tty-char: Delete definition of aq.
14708 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14710         * troff/input.c (init_charset_table): Don't translate 0240.
14711         * ps/tmac.ps: Translate char160 to space.
14712         * dvi/tmac.dvi: Likewise.
14713         * tty/tmac.tty: Likewise.
14715 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14717         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14719         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14720         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14721         \(oe, \(r?, \(r!.
14723         * tty/tmac.tty-char: Add \(ah.
14725         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14726         No need to define \(FM and \(!/. Conditionalize all character
14727         definitions.
14729         * ps/devps/lgreekmap: Add +h, +f, +p.
14731         * ps/tmac.psnew: New file.
14732         * ps/Makefile: Install tmac.psnew.
14734         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14735         character definitions in compatible mode.
14737         * troff/input.c (remove_character): New function.
14738         (init_input_requests): Bind remove_character to "rchar".
14740         * ps/tmac.psold: New file.
14741         * ps/Makefile: Install tmac.psold.
14742         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14743         characters into tmac.psold.  Make these definitions unconditional.
14745         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14747         * ps/tmac.ps: Don't define \('c and \('C.
14749         * ps/devps/textmap: Move Greek characters to...
14750         * ps/devps/symbolchars:
14752 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14754         * ps/devps/text.enc: Add quotesingle.
14755         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14756         * tty/tmac.tty-char: Likewise.
14757         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14758         * dvi/devdvi/texi.map: Add Fn.
14759         * dvi/devdvi/msam.map: Add lz.
14760         * dvi/tmac.dvi: Handle Bq, bq, aq.
14762         * pic/lex.c (get_token): Recognize 'th.
14763         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14765 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14767         * ps/devps/textmap: Move di, mu, +- to...
14768         * ps/devps/symbolchars:
14770         * macros/tmac.s (@XS): Don't call par@reset or fi.
14771         (XA): Call LP. Turn off adjustment. Reduce line length.
14773         * macros/tmac.s: Initially alias XS to LP.
14774         (XS): Rename to @XS.
14775         (cov*ab-init): Alias XS to @XS.
14777 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14779         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14780         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14781         (token::is_size, token::changes_env): Deleted.
14782         * troff/number.c (parse_term): No need to process \s explicitly.
14783         Call tok.next() only after scale indicator has been processed.
14784         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14785         \f etc explicitly.
14786         (token::next): Handle \s, \f, \S, \H immediately rather than
14787         returning them as tokens.
14788         (token::operator==, token::description, token::add_to_node_list,
14789         token::process): Remove handling of deleted tokens.
14791         * troff/env.c (environment::add_char): When adding padding
14792         indicator character, call start_line() if necessary.
14794 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14796         * ps/devps/afmtodit: Don't output 0 kerns.
14798         * ps/devps/afmtodit: Remove directory from name of encoding in
14799         font description file.
14801         * ps/devps/afmtodit: Improve error messages.
14803         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14805         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14806         * ps/devps/FontMakefile: Deleted.
14807         * ps/devps/afmname: New file.
14809         * ps/devps/symbol.sed: New file.
14810         * ps/devps/symbol.diff: Deleted.
14811         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14812         Generate zapfdr.afm from zapfd.afm.
14814         * tty/tmac.tty (tty-char): Prefix definition with ".
14816         * macros/tmac.an (TP): Don't start a diversion if one has already
14817         been started.
14819         * tty/tmac.tty-char: Add Latin-1 characters.
14821         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14823 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14825         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14826         Move declaration of struct horizontal_span.
14828         * tbl/table.c (table::table): Initialize span_list.
14829         (table::~table): Delete span_list.
14831         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14833         * ps/devps/Makefile: Avoid dependency on GNU make.
14835         * ps/tmac.ps: Check that character does not already exist before
14836         defining it.
14838         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14839         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14840         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14841         files.
14843         * tty/tmac.tty-char: New file.
14844         * tty/Makefile: Install tmac.tty-char.
14845         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14846         tmac.tty-char.
14848         * tty/tmac.tty: Fix definition of \(34.
14850         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14851         bracket-drawing characters onto |. Add *o.
14853         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14854         only if current_field.
14856         * troff/dictionary.c (dictionary::lookup): Free old_table after
14857         rehashing. 
14859 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14861         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14862         whose glyphs are identical to glyphs of some Roman character.
14864         * tty/devlatin1/R.proto (bu): Deleted.
14865         * tty/devascii/R.proto (bu): Deleted.
14866         * tty/tmac.tty: Add definition of \(bu.
14868         * eqn/main.c (do_file): Pass FILE as argument.
14869         (main): Automatically load eqnchar.  New options -F and -n.
14870         Pass do_file an opened FILE.
14871         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14872         No need to include font.h.
14873         * groff.sh: Likewise.  Don't need to use - for standard input.
14874         Prefix files with -- if first file starts with -.
14876         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14878         * troff/env.c (environment::possibly_break_line): Don't set line
14879         to 0 across call to output_line().  Don't call output_line() until
14880         after discarding nodes after break.
14882 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14884         * request.h (macro::empty): Declare it.
14885         * input.c (macro::empty): New method.
14886         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14887         macro is empty.
14889 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14891         * troff/env.c (environment::start_field): Decrement space_total
14892         when a space is frozen.
14894 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14896         * macros/tmac.an (R): Delete macro.
14898         * troff/input.c (get_copy, token::next): Support \# (like \" but
14899         newline is ignored).
14901         * troff/input.c (token::next): Fix error message in 'Y' case.
14903 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14905         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14906         a delimiter name.
14908 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14910         * c++test.c: Include <osfcn.h>.
14912         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
14913         <errno.h> doesn't.
14915 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
14917         * tbl/table.c (table::divide_span): Don't count column separation
14918         if expand was specified.
14920         * tbl/main.c (process_format): Don't ignore width specs in
14921         continued format.  Give warning for changing equal widths or
14922         column separation in continued format.
14923         (process_data): Set column separation, minimum width, equal
14924         columns at end of table.
14926 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
14928         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
14929         node::add_discretionary_hyphen): Use soft_hyphen_char.
14930         (set_soft_hyphen_char): New function.
14931         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
14933         * Makefile (c++tested): Give more helpful message if test fails.
14935 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
14937         * troff/input.c (init_charset_table): Translate 0240 to
14938         an unbreakable space.
14940         * troff/token.h (token::hyphen_indicator): New function.
14941         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
14942         translation.
14943         * troff/input.c (translate): Allow translation to \%.
14944         * troff/node.c (node::add_char): Handle
14945         TRANSLATE_HYPHEN_INDICATOR.     
14946         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
14948         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
14949         for \(hy.
14951         * tty/devlatin1/R.proto: \(hy and - should print as 055.
14953 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
14955         * groff.c (run_commands): If the last command gets a SIGPIPE send
14956         a SIGPIPE to all children than haven't yet terminated.  When
14957         command terminates, set pid field to -1.
14959 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
14961         * groff.c (main): Pass an appropriate -filename option to gxditview.
14963 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
14965         * Makefile.bd (install): Remove existing program before copying.
14967         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
14968         programs which have Unix counterparts to be installed with
14969         user-specified prefix.
14971         * troff/input.c (exit_troff): Don't check if exit_started.
14972         (exit_request): Don't call exit_troff if exit_started.
14974         * Makefile.bd (install.mm): Rename to install.dwbmm.
14976 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
14978         * driver/input.c (do_file): Add missing break for '#' case.
14980 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
14982         * troff/input.c (input_stack::clear):  Clear past any boundaries and
14983         then add the boundaries back.
14985         * troff/input.c (exit_troff): Return immediately if already
14986         exiting.
14988         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
14989         end macro.
14990         (pg*end-page): If the text has ended and there are no more
14991         footnotes or keeps, exit.
14993         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
14995         * troff/input.c (init_charset_table): Make \(rq transparent by
14996         default.
14998         * macros/tmac.an: Define lq and rq strings.
15000         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15002 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15004         * troff/env.c (environment::final_break): New function.
15005         (environment::newline): Set prev_line_interrupted to 2 if
15006         exit_started.
15007         * troff/env.h: Declare environment::final_break.
15008         * troff/input.c (exit_troff): Call environment::final_break()
15009         instead of environment::do_break().
15011         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15012         doesn't already exist.
15013         * macros/man.local: New file.
15014         * macros/tmac.an: Load man.local.
15015         * macros/man.ultrix: New file.
15017 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15019         * troff/input.c (exit_groff): Rename to...
15020         (exit_troff): New function.
15022         * troff/div.c (exit_started, done_end_macro,
15023         seen_last_page_ejector): New global variables.
15024         (began_page_in_end_macro): New static variable.
15025         (exit_flag): Deleted.
15026         (top_level_diversion::top_level_diversion): Initialize
15027         last_page_count.
15028         (top_level_diversion): More elaborate test for whether
15029         cleanup_and_exit() should be called.
15030         Set began_page_in_end_macro if the end macro isn't yet finished.
15031         * troff/div.h (top_level_diversion::last_page_count): New data
15032         member.
15033         (top_level_diversion::set_last_page): New function.
15034         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15035         * troff/env.c (do_break): Zero prev_line_interrupted.
15036         * troff/input.c (exit_flag): Delete declaration.
15037         (LAST_PAGE_EJECTOR): New magic cookie.
15038         (token::next): Handle LAST_PAGE_EJECTOR.
15039         (exit_groff): Set exit_started and done_end_macro instead of
15040         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15041         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15042         another ejection after setting seen_last_page_ejector.
15044 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15046         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15048         * macros/tmac.e (TH): Make sure there's room for the initial
15049         header.
15051         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15052         Set FVS in points rather than units.
15054 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15056         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15057         position of empty slots.
15059 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15061         * ps/devps/S: Fix height and depth of parenrightex.
15062         * ps/devps/symbol.diff: Regenerate.
15064 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15066         * tmac.e (u): Do underlining as in -mgs.
15068 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15070         * tty/tty.c (tty_printer::end_page): If overstriking is
15071         suppressed, still turn overstruck horizontal and vertical lines
15072         into +.
15074         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15075         2.1.
15077         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15079 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15081         * Version 1.05 released.
15083 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15085         * tty/tty.c: Instead of keeping an array of glyphs and then
15086         sorting it, keep a ordered linked list of glyphs for each line.
15088         * driver/driver.h: Include stddef.h.
15090         * tty/tty.c (compare_glyph):
15091         * refer/refer.c (rcompare):
15092         * troff/env.c (compare_ranges): Arguments of qsort comparison
15093         function should be const void *.
15095         * troff/number.c (parse_term):
15096         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15097         switch statement.
15099         * refer/label.y (consider_authors): Don't access variables
15100         constructed under a condition outside that condition: put braces
15101         round for statement containing declaration; redeclare use of same
15102         variable later.
15104         * pic/pic.y (text_expr): Delete production that allows
15105         parenthesised text_expr.
15106         (expr): Allow a conditional_expr to appear in parentheses.
15107         (conditional_expr): Rename to any_expr.
15109         * mm: Install new version 1.01 from jh.
15111         * lib/font.c (font::get_width): Cache scaled widths.
15112         (font::font): Initialize widths_cache.
15113         (font::~font): Destroy widths_cache.
15114         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15116 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15118         * c++test.c, c++test.ref: New files.
15119         * Makefile: Check that the C++ compiler works.
15121         * ps/tmac.pspic (PSPIC): Do a break.
15123         * ps/tmac.ps: Move definition of PSPIC into...
15124         * ps/tmac.pspic: New file.
15125         (PSPIC): Draw box around picture, but make it invisible to grops.
15126         * ps/tmac.ps: Load tmac.pspic.
15127         * ps/Makefile: Install tmac.pspic.
15129 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15131         * lib/font.c (scale_round): If n is negative,
15132         subtract .5 before truncating floating point result.
15134         * lib/fontfile.c: Include <errno.h>.
15136 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15138         * driver/input.c (get_char): Inline. Don't update current_lineno.
15139         Change callers to up date current_lineno if necessary.
15140         Use get_char() instead of getc(current_file).
15142 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15144         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15146 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15148         * tty/tty.c (tmac.tty): Define \(rg as (R).
15150 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15152         * lib/lib.h: New define a_delete.
15153         * Use a_delete instead of delete when deleting an array of objects
15154         without destructors.
15156         * lib/lib.h: Rename adelete to ad_delete.
15157         * Change uses of adelete.
15159 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15161         * eqn/eqn.y: Include lib.h.
15163         * troff/node.c (grow_font_table): Delete old_font_table.
15165         * mm: Install new version from jh.
15167 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15169         * tbl/table.h (format_type): Make global instead of local to class
15170         entry_format.  Prefix enumerators with FORMAT_.
15171         * tbl/table.c, tbl/main.c: Corresponding changes.
15172         * refer/token.h (token_type): Make global.  Prefix enumerators
15173         with TOKEN_.
15174         * refer/token.[ch]: Corresponding changes.
15175         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15177         * troff/div.c (node::set_vertical_size): Don't name argument.
15179 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15181         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15182         * lib/lib.h: Define adelete accordingly.
15183         * pic/object.c (graphic_object::graphic_object):
15184         * tbl/main.c (format::~format):
15185         * tbl/table.c (table::~table):
15186         * refer/ref.c (reference::~reference, reference::merge,
15187         reference::insert_field, reference::delete_field): Use adelete.
15189         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15190         * refer/token.h:
15191         * tbl/table.h: Corresponding changes.
15193         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15194         Ensure total_angle is positive.
15196 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15198         * refer/ref.c (reference::merge, reference::insert_field,
15199         reference::delete_field): Avoid delete[0].
15201         * refer/token.c (init_special_chars): Move calls to cmupper
15202         outside calls to init_two_char_letter to work around bug in gcc
15203         2.0.
15205 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15207         * lib/new.c (operator new): Use __builtin_new for g++.
15209         * pic/object.c (graphic_object::~graphic_object):  Don't use
15210         delete [] on 0.
15212         * pic/object.c (output::compute_scale): Initialize max_width and
15213         max_height.
15215 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15217         * troff/input.c (write_request): Call fflush.
15219         * troff/node.h (class composite_node): Move declaration to node.c
15220         * troff/input.c (charinfo_to_node): Rename to ...
15221         (charinfo_to_node_list): Return node list rather than composite
15222         node.
15223         * troff/node.c (make_composite_node): New function.
15224         (make_node, add_char): Call make_composite_node instead of
15225         charinfo_to_node.
15226         (class composite_node): Add a tfont * member.  Delete font_size
15227         member.
15228         (composite_node::composite_node, composite_node::copy,
15229         composite_node::size): Corresponding changes.
15230         (composite_node::tprint): Provide constant spacing, emboldening
15231         and track kerning as specified in tfont.
15232         (composite_node::width): Change width calculation accordingly.
15233         * troff/env.h (environment::composite): New member.
15234         (environment::is_composite, environment::set_composite): New
15235         functions.
15236         * troff/env.c (environment::environment): Initialize composite.
15237         * troff/input.c (charinfo_to_node): Call
15238         environment::set_composite.
15239         * troff/node.c (make_composite_node, make_glyph_node): Use the
15240         plain version of the tfont if the environment is composite.
15242         * troff/node.c (font_info::get_space_width): Additional argument
15243         giving space_size.  Handle constant space correctly. Scale by
15244         space_size unless constant spaced.
15245         (env_sentence_space_width): New function.
15246         * troff/node.h: Declare it.
15247         * troff/env.h (environment::get_space_size,
15248         environment::get_sentence_space_size,
15249         environment::get_narrow_space_width,
15250         environment::get_half_narrow_space_width): Make inline.
15251         (environment::get_space_width): Make inline.  Just call
15252         env_space_width.
15253         * troff/env.c: Delete definitions for funtions made inline.
15254         (environment::space_newline, environment::space): Use
15255         env_sentence_space_width(). Don't scale by space_size.
15256         * troff/node.h: Move declarations of env*space_width() functions
15257         into env.h.
15259 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15261         * macros/tmac.s (PS): Don't try to set negative indent.
15263 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15265         * pic/pic.y: Fix min function.
15267 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15269         * man/mdate.sh: Clear LANGUAGE.
15271 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15273         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15274         * pic/lex.c: New COMMAND keyword.
15275         * pic/pic.y (print_args, print_arg): New rules.
15276         (placeless_element): Use print_args for PRINT.
15277         New COMMAND element.
15279 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15281         * troff/input.c (terminal): Handle missing argument correctly.
15283         * pic/pic.y (text_expr): New rule.
15285         * pic/pic.y: Implement := operator.
15287 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15289         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15290         mdoc.
15292 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15294         * ps/devps/dingbatsrmap: Include this in the distribution.
15296         * macros/tmac.doc: Replace with new version from 2nd Networking
15297         Release. Fix loading of doc-* files.
15298         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15299         * macros/tmac.doc.old: New file.  Apply fixes that had been
15300         applied to old tmac.doc.
15301         * macros/tmac.andoc: Check that we're running under groff.
15302         * macros/Makefile: Rework.
15304 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15306         * tbl/table.h (format_type): 
15307         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15308         typedef to make these types visible at file scope.
15309         * Makefile: Add NESTED_TYPES configuration option.
15311         * troff/div.c (mark): At the top level use the value of
15312         nl_reg_contents rather than the current vertical position.
15314 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15316         * tty/tty.c: Implement \D for horizontal or vertical lines.
15317         (tty_printer::set_char): Use vec_used+2 as serial number.
15318         Don't allow size of vector to exceed USHRT_MAX-2.
15319         Split off part into...
15320         (tty_printer::add_char): New function.
15321         (tty_printer::draw): New function.
15322         (compare_glyph): Handle equal serial numbers.
15323         (tty_printer::end_page): Handle overstruck characters from \D.
15324         (main, usage): Implement -d option.
15326 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15328         * tbl/main.c (process_format):
15329         * eqn/text.c (split_text):
15330         * troff/input.c (token::next): Use inner block for declarations
15331         with initializers in switch statement.
15333 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15335         * pic/common.c (common_output::dash_line): Cope with zero-length
15336         lines.
15338 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15340         * Version 1.04 released.
15342 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15344         * macros/tmac.an (TH): Define a macro an-init to define variables
15345         based on command line arguments.
15346         (an-header): Call it.
15348 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15350         * Makefile (install.mm): Rename to install.dwbmm.
15352         * Makefile: Integrate mm.
15353         * mm: New directory.
15355 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15357         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15358         <sys/types.h>.
15360         * pic/troff.c (troff_output::simple_spline,
15361         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15362         shadowing parameter.
15364         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15366         * lib/ptable.h: Add explicit casts when converting from unsigned
15367         long to unsigned.
15369         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15370         * dvi/devdvi/Makefile: Install SA, SB.
15372         * refer/indxbib.c: Add declaration of mktemp.
15374         * refer/lookbib.c: Add declaration of isatty.
15376 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15378         * pic/lex.c (interpolate_macro_with_args):  While collecting
15379         arguments, keep track of whether we're in a string.
15381 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15383         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15384         down with \v, so as to avoid problems with top of page trap
15385         setting no space mode.
15387 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15389         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15391 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15393         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15394         Improve error message.
15396 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15398         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15399         printf("%03o");
15401 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15403         * groff.c (possible_command::execp): Always use _exit() after a
15404         failed exec.
15406         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15407         NO_SYS_WAIT_H   configuration options.
15408         * groff.c: Use these options.  Use POSIX-style macros to extract
15409         fields from the status returned by wait().
15411 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15413         * tbl/table.c (table::compute_separation_factor): Allow the
15414         separation factor to drop to 0.
15416 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15418         * refer/search.c: Include <errno.h>.
15420 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15422         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15424         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15425         C++. 
15427         * pic/lex.c (input_stack::bol): Move definition out of class body.
15429         * pic/main.c: On MSDOS munge argv[0].
15431         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15433         * lib/ptable.c (hash_string): Use unsigned long rather than
15434         unsigned.
15435         (next_ptable_size): Use unsigned rather than int.  Give an error
15436         message if we've hit the largest table size.
15437         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15438         table size.
15440         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15441         flags as const unisgned long rather than as enums.
15443         * pic/output.c: Deleted.
15445         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15447         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15448         Add additional argument.
15449         (line_entry::note_double_vrule_on_{left,right}): Set value of
15450         douvle_vrule_on_{right,left} flag according to argument.
15451         (simple_line_entry::simple_print,
15452         simple_line_entry::double_line_print): If adjacent to double vrule
15453         on a corner extend rather than shorten the rule by half the double
15454         vrule sep.
15456         * troff/number.c (parse_term): In checking for overflow, handle the
15457         case where the current horizontal position is negative.
15459 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15461         * pic/object.c (draw_arrow): Check for object having zero length.
15463 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15465         * eqn/main.c (do_file): Split off inline equation handling into...
15466         (inline_equation): New function.  Search for starting delimiter
15467         using...
15468         (delim_search): New function. Don't recognize a delimiter that
15469         occurs in the name of an escape sequence, number register, string
15470         etc.
15472 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15474         * eqn/delim.c (delim_box::compute_metrics): Don't call
15475         define_extensible_string if left is 0.
15476         (delim_box::output):  Don't print the left delimiter if left is 0.
15477         (delim_box::debug_print): Check for left == 0 before calling printf.
15479 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15481         * troff/Makefile (majorminor.c): Include only digits in
15482         minor_version.
15484 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15486         * refer/dirnamemax.c: new file.
15487         * refer/genlimits.c: Deleted.
15488         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15489         Don't check path length.
15490         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15491         * Makefile: Add PATHCONF_MISSING option.
15493         * refer/indxbib.c (get_cwd): New function.
15494         (main): Use get_cwd().
15495         * lib/getcwd.c: New file.
15496         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15497         GETCWD in SUBFLAGS.
15498         * lib/Makefile: Compile getcwd.o.
15500         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15501         userdict.
15503         * refer/indxbib.c (main): Check success of mktemp.
15505         * lib/tmpfile.c: New file.
15506         * lib/Makefile: Add tmpfile.c.
15507         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15508         * ps/ps.h: Delete declaration of mktemp().
15509         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15510         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15511         * driver/driver.h: No need now to include errno.h.
15513         * everywhere: Set errno to 0 before calling fopen().
15515         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15516         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15517         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15519 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15521         * troff/env.h (translate_space_to_dummy): Declare it.
15522         * troff/env.c (environment::space_newline, environment::space):
15523         If translate_space_to_dummy is set then make the width of spaces 0.
15524         * troff/input.c (translate): If the second character of a
15525         translation is a space, translate to unbreakable space.  If the
15526         first character is a space, set or clear translate_space_to_dummy
15527         according to whether the second character is \&.  Weird!
15529 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15531         * groff.c (run_commands): Don't use non-zero exit code because a
15532         command gets SIGPIPE.
15534         * groff.c, groff.sh: Use -mXps with -TXps.
15536         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15537         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15538         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15539         (ps_printer::special): New specials invis and endinvis.
15540         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15541         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15542         (ps_printer::end_page): Check that invis_count == 0.
15543         (ps_printer::invis_count): New member.
15544         (ps_printer::ps_printer): Initialize invis_count to 0.
15546         * troff/env.c (environment::hyphenate_line): Hyphenation
15547         indicator at beginning of word inhibits splitting after -, \(em
15548         etc.
15550         * pic/pic.y (element): Allow another element to follow } without
15551         any intervening separator.
15553 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15555         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15557 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15559         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15560         declaration of wait() in header files.
15561         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15563         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15565         * lib/lib.h: Declare return type of strerror as char *.
15567         * man/Makefile: Add g flag to sed substitutions.
15568         * Makefile (shgroff, bindist): Likewise.
15570 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15572         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15573         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15574         userdict.
15576 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15578         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15579         userdict.
15581 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15583         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15584         group.
15586 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15588         * troff/input.c (define_number_reg):  If currently undefined,
15589         don't define it if the argument is an invalid expression.
15591         * Makefile: Ignore return value of `if' commands without `else'
15592         parts.
15594         * Makefile: Split up CPPDEFINES into a series of separate
15595         configuration options.
15597         * troff/input.c (init_registers): Use time_t instead of long
15598         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15599         than passing pointer.
15600         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15602         * lib/Makefile (fontpath.h): Use gendef.
15604 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15606         * troff/input.c (input_iterator::shift): Delete argument name.
15607         * troff/node.c (suppress_output_file::really_begin_page,
15608         suppress_output_file::really_transparent_char, node::ascii_print,
15609         node::tprint): Delete names of unused arguments.
15611 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15613         * refer/label.y (string):  Pass $4 to command_error.
15615 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15617         * Version 1.03 released.
15619 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15621         * Makefile: Pass definition of SHELL in SUBFLAGS.
15623         * gendef: New file.
15624         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15625         ps/Makefile: Use gendef to construct header files that are
15626         constructed from the Makefile.
15628         * macros/Makefile: make all should build stripped version of tmac.e.
15630         * refer/Makefile (clean): Remove y.output.
15632 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15634         * ps/pfbtops.c (main): Add -v option which prints out a version
15635         number.
15636         * ps/Makefile (pfbtops): Link with libgroff.a.
15638 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15640         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15641         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15643         * refer/lkbib.c (main): Always terminate reference with blank
15644         line.
15645         * refer/lookbib.c (main): Likewise.
15647         * refer/linear.c (file_buffer::load): Check that the file is not a
15648         binary file.
15650         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15651         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15652         Delete second inclusion of <sys/param.h>.
15654 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15656         * troff/token.h (token::special): Deleted.
15658         * tbl/main.c (process_format): Rework so that opt->tab_char is
15659         recognized only when appropriate.
15661         * ps/Makefile (clean): Remove pfbtops.
15663 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15665         * lib/font.c (text_file::next): Don't return if we have got a
15666         blank line.
15668 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15670         * refer/refer.c (store_reference): Get hash code from old_table[i]
15671         when rehashing the table.
15673 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15675         * eqn/box.c (box::top_level): Save size and prev size using \R and
15676         restore it afterwards. Set the size to the size at the beginning
15677         of the line.
15678         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15679         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15681         * refer/Makefile (limits.h): Use ./genlimits.
15683 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15685         * refer/index.c: Delete declarations of stat() and fstat().
15687 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15689         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15691 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15693         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15695 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15697         * troff/input.c (token::get_char): Handle \e.
15699         * refer/linear.c: Delete declarations of fstat() and stat().
15701 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15703         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15704         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15706 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15708         * troff/input.c (do_define_macro): Improve error handling for end
15709         of file while defining macro.
15711 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15713         * eqn/box.h: Fix declaration of set_gsize.
15714         * eqn/box.c (set_gsize): Make argument const char *.
15715         (gsize): Declare as char *.
15716         * eqn/main.c (main): Don't convert gsize to int.
15717         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15719         * Version 1.02 released.
15721 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15723         * macros/tmac.andoc: New file.
15724         * macros/Makefile: Install tmac.andoc.
15726         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15727         operator new and delete on OP_DELETE_BROKEN not being defined.
15728         * Makefile: Mention OP_DELETE_BROKEN.
15730 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15732         * Makefile (bindist): Pass SUBFLAGS.
15734 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15736         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15738         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15739         parameter.
15741         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15743         * ps/ps.h, ps/psrm.c: Make comment_table and
15744         header_comment_table local to resource_manager::process_file.
15746         * groff.sh: With -TXps pass -printCommand option to gxditview.
15748         * groff.c (possible_command::print): Implement using
15749         append_arg_to_string.
15751         * xditview: Merge in new implementation with own ChangeLog.
15753 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15755         * groff.c (main): Implement PRINT_OPTION.
15756         (append_arg_to_string): New command.
15757         (device_table): Set PRINT_OPTION flag for Xps.
15759 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15761         * troff/groff.h: Rename to troff.h.
15763         * pic/lex.c (lookup_keyword, docmp): New functions.
15764         (get_token): Use new lookup_keyword.
15765         Don't include key.h.
15766         * pic/key.[ch], pic/pic.gperf: Deleted.
15767         * pic/Makefile: Remove gperf stuff.
15769         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15770         into output.h.
15771         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15773         * troff/Makefile, troff/node.c: Move definition of
15774         STORE_WIDTH into node.c.
15776         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15778 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15780         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15781         dvi/devdvi/texb.map: Add lq and rq.
15782         dvi/devdvi: Regenerate fonts.
15783         * ps/devps/textmap: Add lq and rq.
15784         * ps/devps: Regenerate fonts.
15785         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15786         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15788         * pic/object.c (position_rectangle): When checking radius
15789         cope with possiblity that width or height is negative.
15790         (box_object::box_object): Have separate xrad and yrad with
15791         signs matching signs of dim components.
15792         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15793         (box_object::print): With rounded boxes use absolute values
15794         for dim and rad arguments.
15796         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15797         in fontpath.h.
15799         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15801         * various files: Add explicit destructors to keep Saber CC +d
15802         happy.
15804 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15806         * eqn/box.c (box::top_level): Restore fonts correctly after
15807         font changes in line containing inline equation.  Also
15808         restore previous font as well as current font.
15809         * eqn/pbox.h: Define necessary string and register names.
15811         * troff/input.c (token::next): Case 'R' calls do_register.
15812         (do_register): New function.
15814 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15816         * groff.c, groff.sh: Support Xps device.  Allow each device
15817         to have a pseudo_name and a real_name.
15819         * groff.c (run_commands): Don't print `Broken pipe' messages.
15821         * ps/pfbtops.c: New file.
15822         * ps/Makefile: Add pfbtops.
15824         * troff/number.c (parse_term): Improved error message.
15826 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15828         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15830         * Makefile: Integrate refer.
15831         * refer: New directory.
15832         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15833         man/lkbib.man: New files.
15834         * man/Makefile: Support refer man pages.
15836         * lib/lib.h: Declare is_prime.
15837         * lib/prime.c: New file.
15839         * troff/input.c (macro_source): New function.
15840         (init_input_requests): Bind "mso" to macro_source.
15842         * troff/env.c (environment::possibly_break_line): Maintain
15843         pointer to pointer to node to be split in ndp so as to avoid
15844         using address of freed node.
15846         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15847         pointer to first node to be hyphenated in startp so as to
15848         avoid using address of freed node.
15850         * troff/env.c (class trie, class hyphen_trie): Make the
15851         elements of the trie be of type char not unsigned char.
15852         Declare arguments to be const char* instead of unsigned char *.
15853         
15854         * troff/env.c (hyphenate): Initialize hbuf[0].
15856         * troff/input.c (set_string): Declare p to be char * and cast
15857         *p to unsigned char when necessary.
15859         * troff/input.c (do_define_macro): Declare s to be const
15860         char*. Cast element to unisgned char when necessary, Declare
15861         d to be an int.  Handle EOF better.
15863         * troff/Makefile, troff/input.c: Different scheme for passing
15864         definitions of MACROPATH, HYPHENFILE and DEVICE.
15866 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15868         * tty/devascii/R.proto: Delete entry for em.
15869         * tty/devlatin1/R.proto: Likewise.
15871 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15873         * troff/input.c (translate): Stop when we get a space. Treat eof
15874         like newline.
15876         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15878 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15880         * tbl/main.c (process_format): A font name following a `f'
15881         modifier that starts with a digit can be only one character long.
15882         Also deal with EOF on the second character of the font name.
15884 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15886         * troff/input.c (token::next): Turn \~ into an
15887         unbreakable_space_node.
15888         * troff/node.c (unbreakable_space_node): New class.
15889         * troff/node.h: Declare it.
15891 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15893         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15894         it's >= 0, before outputting it as a single byte.
15896 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15898         * lib/font.c: Make font_char_metric::code an int.
15899         (font::get_code): Change return type to int.
15900         (font::load): Allow code to be arbitrary integer.
15901         * lib/font.h (font::get_code): Change return type to int.
15902         (font::number_to_index): Change argument type to int.
15903         * troff/input.c (token::next):  In case 'N', allow any value.
15904         Store value in token::val.
15905         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15906         (token::get_char, token::add_to_node_list, token::process): Get
15907         number from val.
15908         (charinfo::set_number): Change argument to int.
15909         (charinfo::get_number):  Require that NUMBERED flag be set.
15910         (get_charinfo_by_number): Store numbered characters not between 0
15911         and 255 in a dictionary.
15912         * troff/charinfo.h (get_charinfo_by_number): Change argument type
15913         to int.
15914         (charinfo::number): Change type to int.
15915         (charinfo::set_number): Change type of set_number to int.
15916         * troff/node.c (troff_output_file::put_char_width,
15917         troff_output_file::put_char): Test whether character is numbered
15918         using charinfo::numbered().
15919         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
15920         values of num.
15921         * lib/nametoindex.c: New implementation to cope with arbitrary
15922         number characters.
15924         * troff/input.c (token::operator==): Test val for
15925         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
15926         TOKEN_SIZE.
15928         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
15929         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
15931 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
15933         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
15934         variable.
15936         * all Makefiles: rm targets of cp and >.
15938         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
15939         it.
15941         * eqn/lex.c (def_table): Add dollar.
15943 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
15945         * troff/input.c (do_width): Push back newline before closing delim
15946         like do_bracket.
15948 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
15950         * groff.c (possible_command::prepend_arg): New function.
15951         (main): Prepend device -m option.
15952         * groff.sh: Put device -m options before command-line options.
15954 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
15956         * macros/tmac.an (IP): Quote argument to TP.
15958         * ps/ps.c (main): New option -b, which sets...
15959         (broken_flags): New variable.
15960         (ps_printer::~ps_printer): Incorporate the setup section in the
15961         prolog if (broken_flags & NO_SETUP_SECTION).
15962         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
15963         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
15964         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
15965         ps_printer::print_needed_font_comment,
15966         ps_printer::print_supplied_font_comment,
15967         ps_printer::print_include_font_comments,
15968         ps_printer::lookup_doc_font, ps_printer::download_fonts,
15969         ps_printer::read_download_file, read_document_fonts, add_font,
15970         skip_line, parse_fonts_arg, document_font::document_font,
15971         document_font::~document_font, document_font::download,
15972         ps_output::include_file):  Deleted.
15973         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
15974         rather than %!PS-Adobe-2.0.  Make calls to
15975         resource_manager::need_font for each font that we used. Replace
15976         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
15977         print_supplied_font_comment, print_needed_font_comment by call to
15978         resource_manager::print_header_comments. Output %%Orientation
15979         comment. Output %%Requirements: numcopies comment if ncopies > 1.
15980         Don't output the prolog directly.  Instead call
15981         resource_manager::output_prolog.  Only define #copies when ncopies
15982         > 1.  Delete calls to print_include_font_comments  and
15983         download_fonts.  Add call to resource_manager::document_setup.
15984         (ps_printer::do_file): Call resource_manager::import_file instead
15985         of including it ourselves.
15986         (ps_printer::do_import): Likewise.  Also don't call
15987         merge_import_fonts. Push userdict on the dictionary stack before
15988         and pop it afterwards.
15989         Move declaration of ps_output into ps.h.
15990         * ps/psrm.c: New file implementing resource_manager class.
15991         * ps/ps.h: New file declaring ps_output and resource_manager
15992         classes.
15993         * ps/devps/zapfdr.ps:
15994         * ps/devps/symbolsl.ps:
15995         * ps/devps/prologue:  Use 3.0 conventions.
15996         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
15997         Add default definition of BROKEN_SPOOLER_FLAGS.
15998         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
15999         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16001 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16003         * etc/grog.pl: New file.
16004         * Makefile (GROG): New variable.
16005         Add GROG to SUBFLAGS.
16006         * etc/Makefile (GROG): New variable.
16007         (install.nobin): Install $(GROG) rather than grog.sh.
16009 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16011         * eqn/special.c (special_box::compute_metrics): Make the input and
16012         output strings the same.  Get the new height and depth from the
16013         predefined height and depth registers.  Also make subscript kern
16014         and skew available.
16015         (special_box::compute_subscript_kern, special_box::compute_skew):
16016         New functions.
16018         * eqn/box.c (pointer_box::compute_skew,
16019         simple_box::compute_metrics, box::top_level)
16020         * eqn/text.c (prime_box::compute_metrics,
16021         prime_box::comput_subscript_kern)
16022         * eqn/limit.c (limit_box::compute_metrics):
16023         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16024         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16025         negative numbers in `nr' requests with a leading 0.
16027 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16029         * eqn/special.c: New file.
16030         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16031         Add new rule for simple.
16032         * eqn/lex.c (token_table): Add SPECIAL.
16033         * eqn/box.h: Declare make_special_box.
16034         * eqn/Makefile: Add special.[co].
16036 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16038         * ps/devps/prologue: Possibly set packing to true while defining.
16039         Create grops dictionary here.  Initialize local variables before
16040         defining procedures.
16041         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16042         the dictionary stack. Set strokeadjust and overprint to false if
16043         the relevant operators are defined.
16044         (PEND): New procedure.
16045         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16046         prologue.  Do everything else in the setup section.
16047         (ps_printer::do_import): Just call PBEGIN and PEND around the
16048         picture. Also push userdict before, and pop it afterwards.
16050 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16052         * troff/node.c (bracket_node::tprint): Brackets were being printed
16053         1m too low.
16055         * macros/tmac.an (SH, SS): Set fill mode.
16057 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16059         * troff/div.c (top_level_diversion::begin_page): Set
16060         high_water_mark to 0.
16062 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16064         * man/mdate.sh: New file.
16065         * man/mdate.c: Deleted.
16066         * man/Makefile: Use mdate.sh instead of mdate.
16067         (mdate): Deleted.
16069         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16071 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16073         * man/mdate.c: New file.
16074         * man/*.man: Replace modification date by @MDATE@.
16075         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16076         (mdate): New target.
16078         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16079         Remove illegal input characters.
16081 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16083         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16085 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16087         * troff/div.c (begin_page): Change behaviour when
16088         !first_page_begun and !break_flag.
16090         * troff/input.c (do_name_test): Return 0 if argument is empty.
16092         * troff/input.c (read_long_escape_name): Require closing ] to be
16093         at same input level as opening [.
16095         * troff/input.c (read_increment_and_escape_name): New function.
16096         (get_copy, process_input_stack): Use this for \n.
16098 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16100         * troff/div.c (top_level_diversion::begin_page): Ignore the
16101         current value of page_number if !first_page_begun.
16103         * groff.c (main): Fix declaration of buf.
16105         * troff/input.c (do_name_test): New function.
16106         (token::next): Implement \A.
16107         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16108         (token::description, token::add_to_node_list, token::process):
16109         Handle TOKEN_ESCAPE.
16110         * troff/token.h: New token TOKEN_ESCAPE.
16112 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16114         * pic/main.c (do_picture): Allow space before and after filename
16115         following `<'.  Check that the filename is not empty.
16117 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16119         * Version 1.01 released. 
16121         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16123         * dvi/tmac.dvi: ftr HR to H.
16125         * macros/tmac.e: Round up computation of $r.
16127         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16128         Use \n(.s instead of \n[.s].
16130         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16131         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16132         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16133         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16134         short names in the char definitions.
16136         * ps/tmac.ps: Don't give up completely in compatibility mode.
16137         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16138         quote in front of \n(.s. Add u to factors inside \s[...].
16140 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16142         * tty/tmac.tty: Call the nroff request.
16144         * macros/tmac.e ((x, )x):  Better definitions that work properly
16145         in a diversion.
16146         (@0, @1): Helper macros for (x.
16148         * macros/tmac.e ($s, hl): Use \l rather than \D.
16150         * tty/tmac.tty: Make it work better in compatibility mode.
16151         (pchar): Rename to tty-char.
16153         * macros/tmac.e (@E): New macro.
16154         (r, i, b, rb, bi): Use @E.
16156         * macros/tmac.e (@F): Don't use (;...) syntax.
16158         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16159         it was modified for groff.
16161         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16163         * macros/tmac.e (<., .>): Removed.
16164         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16166         * macros/tmac.e: Remove check that groff is being used.
16168         * macros/tmac.e (@C): Change families only if using groff; turn
16169         compatibility mode off while changing familes. Save compatibility
16170         mode before changing families and restore it afterwards.
16172         * macros/tmac.e (@h): Remove test for offset + line length.
16174         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16175         (lo, th, ac): Define to call @S instead of using als.
16177         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16178         the ratio of the vertical spacing to the point size in units
16179         expressed as a percentage.  Use these instead of $10r and $10R,
16180         Delete $10r and $10R.
16182         * lib/font.c (font::load): In default computation of space_width,
16183         divide by sizescale.  Use scale_round.
16185         * macros/tmac.an (TP): Don't call `nf'.
16186         (an-do-tag): Don't call `fi'.
16188 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16190         * troff/input.c (process_input_stack): Handle the case where
16191         spaces at the beginning of an input line are followed by a
16192         newline.
16194 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16196         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16197         * groff.sh: Use pic -x with the dvi device.
16199         * dvi/devdvi/FontMakefile (H): Don't use -s.
16201         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16202         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16203         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16204         in FONTS.
16206 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16208         * ps/psfig.diff: New file.
16209         * ps/tmac.psfig: New file.
16211 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16213         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16214         (]-): Don't call ref*do-tl.
16216         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16218         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16219         (fn@do-FS): Rename to fn*do-FS.
16221         * troff/input.c (transparent_translate): New function.
16222         (process_input_stack): Apply transparent_translate before calling
16223         diversion::transparent_output(unsigned char).
16225 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16227         * troff/input.c (do_define_macro): Define the macro before calling
16228         skip_line.
16230         * xditview/Makefile: Add DEVICES variable.  Change install target
16231         to use this.
16233 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16235         * groff.c (run_commands): Handle the possibility that there are
16236         child processes other than those forked by us.
16238 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16240         * lib/string.c (string::append): New function.
16241         * lib/stringclass.h: Declare it.
16243 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16245         * eqn/main.c (main): New option -N which sets
16246         no_newline_in_delim_flag. 
16247         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16248         in delimiters.
16249         * groff.c (main): Pass -N on to eqn.
16250         (help, synopsis): Mention -N.
16251         * groff.sh: Implement -N.
16253 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16255         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16256         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16257         (XP): Allow as initializer.
16259 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16261         * troff/env.c (environment::wrap_up_field): If field_spaces are
16262         non-zero and we have a current_tab, subtract padding from
16263         tab_distance.  If this makes tab_distance <= 0, use the next tab
16264         stop instead.  If there isn't any next tab or it's a left tab,
16265         wrap up the current tab.
16266         (environment::start_field): Initialize tab_precedes_field.
16267         (environment::wrap_up_tab): If there's a current field, update
16268         pre_field_width, field_distance and tab_precedes_field.
16269         * troff/env.h (environment::tab_precedes_field): New member.
16271 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16273         * ps/ps.c (ps_printer::do_file): New function.
16274         (ps_printer::special): Bind to `file' special.
16275         (ps_printer::do_exec): Set ndefined_styles to 0.
16277 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16279         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16280         Avoid stripping first character from the start of unrecognized
16281         escapes.  Use lex_error instead of error to report errors.
16282         * eqn/lex.c (get_token): Rework handling of escapes.
16283         (lex_error): Move declaration into...
16284         * eqn/eqn.h.
16286         * xditview/xditview.c (main): Make -page option work.
16288         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16290 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16292         * macros/tmac.s (B2): Correct size of box.
16294 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16296         * macros/tmac.s (B2): Postpone drawing the box until in the
16297         top-level diversion.
16299         * tty/tmac.tty: Add font translations for C, CR, CW.
16301         * groff.c (synopsis, help): Document -i.
16302         * groff.sh: Implement -i.
16304         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16305         Simplify the construction of SN.
16307         * troff/number.c (parse_term): Give `|' a higher precedence.
16308         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16309         accordingly.
16311         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16313 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16315         * lib/string.c (string::move): New function.
16316         * lib/stringclass.h: Declare it.
16318 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16320         * troff/env.c (distribute_space): Add optional argument
16321         `force_forward'.
16322         (environment::wrap_up_field): Call distribute_space with
16323         `force_forward' argument of 1.
16325 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16327         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16328         Inline it.  Move reallocation into...
16329         (string::grow1): New function.
16330         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16331         dependencies to include library header files.
16332         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16334 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16336         * macros/tmac.s (@NH): Use the same number registers than -ms does
16337         for the heading level counters.  Use the same string that -ms does
16338         for the number for this heading.
16340 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16342         * lib/new.c (operator new): Cast result of malloc to char *.
16344         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16345         is not null.
16347 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16349         * groff.c (main): Support -i.
16351 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16353         * pic/pic.h: Include <osfcn.h>.
16355         * ps/ps.c: Add declaration of mktemp.
16357         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16358         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16359         argument as union wait *.
16360         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16361         argument to union wait *.
16363 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16365         * tty/tmac.tty: Add definition of \(co.
16367         * pic/object.c (make_arc): Only increase radius when radius
16368         strictly less than d.
16369         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16370         more than once.
16372         * troff/env.c (environment::environment(symbol),
16373         environment::environment(const environment *)):  Initialize
16374         input_trap_count.
16376 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16378         * tbl/main.c (main): Add exit(0).
16380         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16382         * pic/main.c (main):
16383         * eqn/main.c (main):
16384         * tbl/main.c (main):
16385         * etc/soelim.c (main):
16386         * driver/printer.c (printer::~printer):
16387         * troff/node.c (real_output_file::~real_output_file,
16388         real_output_file::flush):  Check for errors on stdout.
16390         * most files: Add 1991 to copyright notice.
16392         * macros/tmac.s: Don't test \n(.x and \n(.y.
16394         * troff/input.c (token::next): Rename `escape_char' label to
16395         `handle_escape_char' and `normal_char' label to
16396         `handle_normal_char'.
16398 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16400         * groff.c (main, synopsis, help): Support -a option.
16401         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16402         to trflags while parsing options.
16404 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16406         * troff/number.c (parse_term): With `m', `M' and `n' scale
16407         indicators, convert scale factor to hunits before scaling.
16409 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16411         * lib/font.c (scale_round): Better test for overflow when n is
16412         negative.
16414 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16416         * tbl/main.c (process_format): Add second argument of type
16417         options*. Change callers.  Allow opt->tab_char as well as '\t'
16418         between format items.
16420 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16422         * macros/tmac.an (PD): With no arguments, make sure register PD is
16423         at least \n[.V].
16424         (TH): Call PD with no argument, instead of setting register PD
16425         directly.
16427 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16429         * Version 1.00 released.
16431 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16433         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16435         * dvi/devdvi/DESC: Mount CW instead of CR.
16437         * dvi/tmac.dvi: Add definition of \(tm.
16439         * dvi/devdvi/texsy.map: Add lh, and rh.
16440         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16441         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16443         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16444         * dvi/devdvi/Makefile: Install H.
16445         * dvi/devdvi/H: New file.
16447 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16449         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16450         be 0.
16452 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16454         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16456         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16458         * macros/tmac.s (@EN): Handle the case where the equation is empty
16459         but the label is not.
16461 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16463         * troff/groff.h: New warning category WARN_SPACE.
16464         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16465         WARN_SPACE to warning_table.
16466         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16467         is longer than two characters and is not defined, but the first
16468         two characters do make a defined name.
16470         * PROBLEMS: New file.
16472         * CHANGES: New file.
16473         * README-0.6, README-1.00: Deleted.
16475         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16476         * xditview/devX75/Makefile: Make devX75-12.
16477         * xditview/devX100/Makefile: Make devX100-12.
16479         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16480         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16482 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16484         * README-0.7: Rename to README-1.00.
16486         * macros/tmac.pic: New file.
16487         * macros/Makefile (install.nobin): Install tmac.pic.
16489 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16491         * troff/env.c (hyphen_word): Correct the test for whether the
16492         token is a hyphen.  Reset npos to 0.
16494         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16496 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16498         * macros/tmac.s (ds*common-end): Call par*reset.
16499         (PE): Likewise.
16500         (par@reset-indent): Deleted.
16502         * macros/tmac.s (@IP): Divert the label.
16504 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16506         * xditview/draw.c (setGC): Use a line width of .1m rather than
16507         .04m by default; round rather than truncate value.
16509         * tbl/table.c (class empty_entry): New class.
16510         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16511         (table::add_entry): Represent empty entries by objects of type
16512         empty_entry.
16513         (table_entry::line_type): Return -1.
16514         (table::determine_row_type): Ignore entries with line_type 0.
16515         Treat type -1 as non-lines.
16517 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16519         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16520         macros/tmac.s: Rename \(-d to \(Sd.
16522 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16524         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16525         * xditview/libXdvi/DviChar.c: Likewise.
16526         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16528 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16530         * troff/div.c (top_level_diversion::begin_page): Call
16531         init_output() if the_output is 0.
16533 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16535         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16536         ESCAPE_c.
16537         (get_copy): Turn \E into ESCAPE_E.
16538         (token::process, asciify): Handle ESCAPE_E.
16540         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16541         (RD): New macro.
16542         (DS): Implement `.DS R'.
16544 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16546         * macros/tmac.s (FS): New macro.
16548         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16550         * macros/tmac.s (cov*tl-init): Remove after first execution
16551         instead of aliasing to @nop.  Call top of page macro explicitly
16552         instead of setting trap; call @init first.  Set pg@top as top of
16553         page macro.
16554         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16555         cov*auto-init as top of page trap. 
16556         (TL, LP): Do a break instead of calling cov*tl-init.
16557         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16558         @FE; in this case also give a warning and always start another
16559         page. No need to set pg@top here.
16560         (cov*tl-init): Rename to cov*first-page-init.
16562         * macros/tmac.s (RP): Do `.pn 0'.
16563         (cov*tl-init): With RP format don't do `.pn 0'.
16565         * macros/tmac.s (pg@cs-top): Set no space mode.
16567         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16568         (cov*ab-init): Alias TL, AU and AI to these.
16570 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16572         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16573         (@EN): Do nothing unless \n[dl] is > 0.
16575 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16577         * pic/object.c (ellipse_object::radius): New function.
16579         * VERSION: Change version to 0.7.
16581         * tbl/table.c (block_entry::do_divert): Declare return type as
16582         void.
16583         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16585 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16587         * troff/column.c: New file.
16588         * troff/Makefile: Corresponding changes.
16590         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16591         Friend of vunits.
16593         * troff/div.c (top_level_diversion::space): If the space causes
16594         the first-page transition and springs a trap, truncate the space
16595         to 0.
16597 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16599         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16600         the document.
16602         * pic/troff.c (troff_output::line_thickness,
16603         troff_output::set_fill): Do a horizontal motion to compensate for
16604         the width of the \D escape sequence.
16606 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16608         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16609         (not X75).
16611         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16612         to printf.
16614         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16615         Supply empty definition.
16616         (text_entry::simple_print, simple_text_entry::simple_print):
16617         Delete declarations.
16618         (table::add_entry): Represent empty entries by objects of type
16619         `simple_entry'.
16621 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16623         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16625         * tbl/table.c (left_text_entry::add_tab): New function.
16627         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16628         initialize like LP.
16630 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16632         * troff/env.c (environment::start_field): Give an error message if
16633         there is no next tab.
16635 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16637         * troff/env.c (hyphenate): Skip initial elements with zero
16638         hyphenation code.
16640         * macros/tmac.s (par@init): Keep VS in points rather than units.
16642 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16644         * pic/main.c (main): Implement `-c' option.
16645         * pic/output.h: Declare make_tpic_output().
16646         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16647         protected.
16648         (tpic_output): New class.
16649         (tpic_output::tpic_output, tpic_output::set_pen_size,
16650         tpic_output::command, make_tpic_output): New functions.
16652 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16654         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16655         if they're not already defined.
16656         * tbl/table.c (init_output): Don't test \n(.g.
16658         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16659         `d', `r' and `c' conditions even in compatibility mode.
16661 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16663         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16664         box.
16666 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16668         * troff/env.h (environment::prev_line_interrupted): New member.
16669         (environment::get_prev_line_interrupted): New function.
16670         * troff/env.c (environment::newline): Set prev_line_interrupted.
16671         (environment::environment(const environment *),
16672         environment::environment(symbol)): Initialize
16673         prev_line_interrupted.
16674         * troff/input.c (process_input_stack): Don't give special
16675         treatment to space and newline at the beginning of the line if the
16676         previous line was interrupted.
16678 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16680         * eqn/eqn.y: Disallow PRIME by itself.
16681         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16682         PRIME.
16683         (def_table): Remove definition of '.  Define prime to be `.
16685         * eqn/eqn.y: Split off part of rule `script' into a new rule
16686         `nonsup'.
16688 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16690         * macros/tmac.s ({, }): New string aliases.
16692 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16694         * README-0.7: New file.
16696 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16698         * macros/tmac.s: New file.
16699         * man/groff_ms.man: New file.
16700         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16701         * Makefile.bd: Similarily.
16702         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16703         definition of TMAC_S.
16704         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16705         * macros/TODO: New file.
16707 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16709         * troff/env.c (right_justify): New function.
16710         (init_env_requests): Bind this to request "rj".
16711         (center_lines): Set right_justify_lines to 0. If we get a bad
16712         integer, center 1 line.
16713         (environment::environment(symbol), environment::environment(const
16714         environment *)): Initialize right_justify_lines.
16715         (environment::get_right_justify_lines): New function.
16716         (init_env_requests): Bind this to number_register ".rj".
16718         * troff/env.c (environment::choose_breakpoint): Implement
16719         hyphenation_margin and hyphenation_space.
16720         (environment::get_hyphenation_space,
16721         environment::get_hyphenation_margin): New functions.
16722         (init_env_requests): Bind these to .hys and .hym.
16723         (hyphenation_space_request, hyphenation_margin_request): New
16724         functions
16725         (init_env_requests): Bind these to hys and hym.
16726         (environment::environment(symbol), environment::environment(const
16727         environment *)): Initialize hyphenation_margin and
16728         hyphenation_space.
16729         * troff/env.h: Corresponding changes to class environment.
16731 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16733         * troff/div.c (blank_line): Always do a break.
16735         * eqn/box.c (do_text): Turn off escapes while appending text to
16736         string.
16738 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16740         * troff/input.c (while_break_request, while_continue_request): New
16741         functions.
16742         (init_input_requests): Bind these to "break" and "continue".
16743         (while_depth, while_break_flag): New variables.
16744         (while_request): Update while_depth.  Break out of loop if
16745         while_break_flag is set.
16747 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16749         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16750         rather than 0.
16752 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16754         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16756         * stringify: New file.
16757         * Makefile (groff.o): Use stringify.
16759         * xditview/tmac.X: Remove definition of \(rn.
16760         * xditview/libXdvi/DviChar.c: Remove radicalex from
16761         Adobe_symbol_map.
16763 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16765         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16766         (alphabetic_block_entry::alphabetic_block_entry,
16767         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16768         New functions.
16769         (block_entry::divert): Split off body into ...
16770         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16771         from the line length; also update the span width to dl+2n, and the
16772         alphabetic span width to dl.
16774         * driver/input.c (do_file):  While reading argument to D command,
16775         when expanding buffer, multiply szp by sizeof(int) rather than 2
16776         in the argument to memcpy.
16778         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16779         width of alphabetic columns.
16781 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16783         * troff/node.c (lookup_family): Supply second argument to lookup.
16785         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16786         search, return immediately if v is 0.
16788         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16789         (troff_output::start_picture): Set this reg.
16790         (troff_output::end_picture): Remove this reg
16791         * eqn/box.c (box::extra_space): Don't produce `\x's if
16792         EQN_NO_EXTRA_SPACE_REG is defined.
16794         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16795         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16796         character.
16798 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16800         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16801         requests.
16803         * troff/div.c (top_level_diversion::top_level_diversion):
16804         Initialize page_number to 0.
16806 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16808         * groff/troff (environment::environment(const environment *)):
16809         Initialize name to e->name, rather than "anonymous".
16811 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16813         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16814         requested_page.  Split middle part into ...
16815         (FindPage): New function.
16816         (SetValues): If we don't yet know the last page, and the requested
16817         page is greater than the current page, call FindPage.
16818         Update the font_map_string before doing this.
16820         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16821         Translate \(lh and \(rh into left and right double arrows.
16823         * troff/node.c (class hyphen_inhibitor_node): New class.
16824         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16825         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16826         hyphen_inhibitor_node::type,
16827         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16828         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16829         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16830         word.
16832 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16834         * troff/node.h (dummy_node::get_hyphenation_type,
16835         transparent_dummy_node::get_hyphenation_type):  Declare them.
16836         * troff/node.c: (dummy_node::get_hyphenation_type,
16837         transparent_dummy_node::get_hyphenation_type): New functions.
16839 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16841         * xditview/libXdvi/draw.c: If M_PI not defined after including
16842         math.h, then define it.
16844         * xditview/Makefile: Add definition of AR. Pass it to the submake
16845         in libXdvi.
16846         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16848 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16850         * troff/dictionary.h (object_dictionary::alias): Declare return
16851         value as int.
16852         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16853         if the old name was defined.
16854         * troff/input.c (alias_macro): Give a warning if the old name was
16855         not defined.
16856         * troff/reg.c (alias_reg): Likewise.
16858 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16860         * troff/input.c (token::next): Delete implementation of \R.
16862         * macros/Makefile: Strip comments from tmac.e while installing it.
16864         * troff/input.c: New variable `nroff_mode'.
16865         (troff_request, nroff_request): New functions.
16866         (init_input_requests): Bind `troff' and `nroff' to troff_request
16867         and nroff_request.
16868         (do_if_request): Compute results of t and n conditions from
16869         nroff_mode.
16871         * text/text.c (split_text): Fix typo in >=.
16873         * eqn/lex.c: Add definition of `==' to def_table.
16875 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16877         * pic/tex.c (tex_output::start_picture): Change the definitions of
16878         \graph and \graphtemp so that they work properly with Plain TeX.
16880         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16881         argument to `ar' is not less than the first.
16883         * pic/pic.y: Allow a comma between elements of the variable list
16884         in the argument to `reset'.
16886         * pic/object.c (arc_object::arc_object): Fix computation of
16887         radius.
16889         * eqn/main.c (main): Add exit(0).
16891 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16893         * troff/div.c (begin_page): Test no_space_mode after doing the
16894         break, but still push the page ejector cookie before doing the
16895         break.  Also set the next page number after doing the break.
16896         
16897         * xditview/xditview.c (NewFile): Don't set the title and icon name
16898         if this is the first file and its name is `-'.
16899         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16900         the X75 and X100 devices.
16901         (main): If a device has the XT_OPTION flag set and there's exactly
16902         one file argument, pass the driver -xrm and -title options to set
16903         the icon name and window title to the name of the file.
16905         * troff/env.c (environment_switch): If there was an argument but
16906         it wasn't a valid number or name, then pop an environment but
16907         don't give an error message on underflow.
16909         * troff/number.c (start_number): Correct spelling in error message.
16911         * troff/input.c (token::delimiter): Don't print an error message
16912         if err is false.
16914         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
16915         ParseDrawFunction if dw->display_enable is true.
16917 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
16919         * pic/pic.y: Parse text positioning like normal attributes, so as
16920         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
16921         positioning attribute.
16923 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
16925         * tbl/main.c (process_data): When in state START while reading a
16926         text block, don't change to state MIDDLE if c is a newline.
16928 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
16930         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
16931         so as to avoid shadowing parameter.
16933 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
16935         * tbl/table.c (trim_space): Deleted.
16936         (table::add_entry): Don't call trim_space.
16938 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
16940         * VERSION: Change version to 0.6.
16942         * troff/number.c (parse_expr): Make == work.
16944 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
16946         * man/grog.man: New file.
16947         * man/Makefile: Add grog.n to MAN1PAGES.
16948         * etc/grog.sh: New file.
16949         * etc/Makefile: Install grog.sh as grog.
16951 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
16953         * troff/input.c (token::next): Implement \E.
16955 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
16957         * xditview/tmac.X: Change font translations to match tmac.ps.
16959         * troff/input.c (non_empty_name_warning): Don't give a warning if
16960         `\{' terminates the name.
16962 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
16964         * ps/devps/symbol.diff: New file.
16965         * ps/devps/FontMakefile: Mention symbol.diff.
16967 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
16969         * troff/node.c (font_position): Use get_long_name to read the
16970         external_name.
16972         * troff/env.c (environment_switch): If we get a number that's < 0
16973         or >= NENVIRONMENTS, treat it like a name.
16974         Change NENVIRONMENTS to 10.
16976         * troff/groff.h: Remove definition of FONTS_MAX.
16977         * troff/node.h (class font_family): Make map a pointer instead of
16978         an array. Add a map_size member. Make it a class. Make nm const
16979         and public. Make invalidate_fontno a friend.
16980         * troff/node.c: Define font_table_size. Make font_info a pointer
16981         rather than an array.
16982         (class troff_output_file): Allocate font_position dynamically. Add
16983         nfont_positions member.
16984         (troff_output_file::set_font): Grow font_position if necessary.
16985         (troff_output_file::~troff_output_file): Delete font_position.
16986         (troff_output_file::troff_output_file): Allocate font_position.
16987         (grow_font_table): New function.
16988         (troff_output_file::really_begin_page,
16989         troff_output_file:really_copy_page): Use nfont_positions rather
16990         than FONTS_MAX.
16991         (mount_font_no_translate, mount_style): Call grow_font_table if
16992         necessary.
16993         (font_family::font_family): Allocate map.
16994         (font_family::make_definite): Grow map if necessary. Use
16995         font_table_size instead of FONTS_MAX.
16996         (font_family::~font_family): New function.
16997         (invalidate_fontno): Use font_family::map_size.
16998         (get_fontno, env_space_width, env_half_narrow_space_width,
16999         env_narrow_space_width, symbol_fotno, is_good_fontno,
17000         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17001         FONTS_MAX.
17002         (next_available_font_position): Never return 0.
17004 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17006         * ps/tmac.ps: Add font translations for compatibility with dpost.
17008 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17010         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17011         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17012         Move definitions baseline_sep, shift_down, column_sep,
17013         matrix_side_sep into...
17014         * eqn/box.c: Add them to param_table.
17015         * eqn/pbox.h: Add declarations to pbox.h.
17017         * troff/input.c (set_string): Cast value to unsigned char *.
17019         * troff/token.h (process_input_stack): Declare it static before
17020         declaring it a friend.
17022 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17024         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17025         and bottom.
17026         * dvi/devdvi/EX: Regenerate.
17028         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17029         transparent.
17031 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17033         * eqn/lex.c: In defaults_table, make definition of `dot' call
17034         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17035         accents.
17037         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17038         argument.
17039         (for_input::get, for_input::peek): Use this.
17040         (do_for): Add by_is_multiplicative argument.
17041         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17042         Change semantic value of optional_by to be a double plus a flag
17043         saying whethet the by clause is multiplicative.
17045         * eqn/lex.c (get_delimited_text): Remember location of start of
17046         definition.  Improve error handling when EOF is encountered.
17048         * lib/font.h: Rename handle_x_command to
17049         handle_unknown_font_command.
17050         * lib/font.c (font::load): Call handle_unknown_font_command for
17051         any unknown command in the font description file.  Don't call
17052         handle_x_command. Include the name of the command in the argv.
17053         Improve message for unknown command after kernpairs or charset
17054         command.
17055         * ps/ps.c (ps_font::handle_x_command): Rename to
17056         handle_unknown_font_command.  Remove message about `x download'
17057         command.  Give error message for wrong number of arguments.
17058         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17059         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17060         handle_unknown_font_command. Give an error message for wrong
17061         number of arguments.  Rename design_size to designsize.
17062         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17063         checksum', `designsize' instead of `design_size'.
17065 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17067         * eqn/*.[chy]: Change underaccent to uaccent.
17069         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17070         give it the same precedence as ACCENT.
17071         * eqn/other.c (make_underaccent_box): New function.
17072         * eqn/box.h: Declare it.
17073         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17074         def_table.
17076 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17078         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17079         (parse_init): Call reset_all.
17080         (define_variable): When defining scale reset only those
17081         pre-defined variables that are scaled.
17082         (defaults_table): Add `scale' as non-scaled value.
17084         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17085         together with the text; allow any number of positioning words;
17086         allow center as a positioning word.
17088         * pic/object.c (output::compute_scale): Get picture maximum height
17089         and width from variables called maxpswid and maxpsht.
17090         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17092 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17094         * pic/object.c (object_spec::make_text): Multiply textht by number
17095         of text items.
17097         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17098         occur.
17099         (do_sprintf): New function.
17100         (pic.gperf): Add sprintf token.
17101         (text, sprintf): New rules.
17103         * pic/pic.y: `rand()' with no arguments returns a random number
17104         in the range [0,1).
17106         * pic/pic.y: Allow a bare expression to be an attribute: change
17107         precedences to support this.  Change optional_ordinal rule to
17108         optional_ordinal_last to avoid reduce/reduce conflict.
17109         * pic/object.c (object_spec::object_spec): Initialize direction.
17111         * pic/pic.y: Implement ^ operator meaning exponentiation.
17113         * troff/node.h: Add default argument to mount_font.
17114         * troff/node.c (font_position): Read an optional third argument
17115         giving the external_name.
17116         (mount_font): Add optional argument giving the external_name.
17117         (mount_font_not_translate): Have additional argument giving
17118         external name.  Use this name to load the font.  Pass both names
17119         to font_info::font_info.
17120         (font_info::font_info): Have additional argument giving
17121         external_name.
17122         (class tfont): New member external_name.
17123         (font_info::get_tfont): Use external name to construct tfont_spec.
17125 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17127         * eqn/lex.c (init_table): Add argument giving device.  Define
17128         name of device to be "1".
17129         (do_ifdef): Counts as true if the argument has been defined with
17130         `define'.
17131         * eqn/main.c (main): Call init_table with device argument. Make
17132         device local to main.
17133         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17134         of device.
17136         * pic/lex.c (get_delimited): Allow text to be delimited by
17137         matching {}s.  Don't recognize ending delimiter within a string.
17139         * troff/input.c (get_delim_name): New function.
17140         (token::next): Implement \C.
17142         * lib/font.c (font::load): Grok ---.  Add an alias for each
17143         character based on its code.
17144         (font::get_code_width): Deleted.
17145         * lib/font.h (class font): Declare font::number_to_index().
17146         Remove declaration of font::get_code_width.
17147         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17148         to indices of named characters.
17149         (font::number_to_index): New function.
17150         * troff/input.c (font::number_to_index): New function.
17151         (get_charinfo_by_number, charinfo::get_number,
17152         charinfo::set_number): New functions.
17153         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17154         (token::process, token::description, token::get_char,
17155         token::add_to_node_list, token::operator==): Handle
17156         TOKEN_NUMBERED_CHAR.
17157         * troff/charinfo.h: Declare get_charinfo_by_number,
17158         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17159         charinfo class.
17160         (charinfo::numbered): New function.
17161         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17162         * troff/env.h (class environment): Remove declaration of ...
17163         * troff/env.c (environment::make_numbered_char_node): Deleted.
17164         * troff/node.c (make_numbered_node): Deleted.
17165         (class numbered_glyph_node): Remove.
17166         (troff_output_file::put_char_width, troff_output_file::put_char):
17167         Handle numbered chars.
17168         (troff_output_file::numbered_char): Removed.
17169         (tfont::get_code_width): Removed.
17170         (make_glyph_node): Don't search special fonts for numbered
17171         characters.
17172         * troff/node.h: Remove declaration of make_numbered_node.
17173         * driver/input.c (do_file): Handle N command.
17174         * driver/printer.h: Add declaration of ...
17175         * driver/printer.c (printer::set_numbered_char): New function.
17176         * dvi/tfmtodit.c (main): Generate unnamed entries.
17177         * ps/devps/afmtodit: Likewise.
17178         * xditview/xtotroff.c (MapFont): Likewise.
17179         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17181         * tbl/main.c (process_format): If multiple widths are specified
17182         for a column but all the widths are the same, don't give an error
17183         message.
17185         * tbl/table.c (table::do_row): If the current row is all lines and
17186         the stuff doesn't contains a line, mark the top of the row after
17187         printing stuff before the row.  If the current row is not all
17188         lines and the stuff doesn't contain a line, don't unnecessarily
17189         mark the top of the row before printing the stuff.
17190         
17191 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17193         * troff/groff.h: Remove MAX_PATH.
17194         * troff/input.c (open_file): Dynamically allocate space for the
17195         path.
17196         (open_mac_file, process_macro_file): Corresponding changes.
17198 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17200         * troff/node.h (class output_file): Make copy_file pure.  Add
17201         vspace method ifdef COLUMN. Add is_printing method.
17202         * troff/node.c: Add class printing_reg. Add class
17203         real_output_file. Derive other output_file classes from
17204         real_output_file; in these classes rename begin_page to
17205         really_begin_page, print_line to really_print_line, copy_file to
17206         really_copy_file, transparent_char to really_transparent_char.
17207         Move output_file::flush to real_output_file. Add printing member
17208         to class output_file.
17209         * troff/div.h: Remove printing member from top_level_diversion.
17210         Add vspace member function to class diversion ifdef COLUMN. Add
17211         some declarations ifdef COLUMN.
17212         * troff/div.c (top_level_diversion::copy_file,
17213         top_level_diversion::transparent_output,
17214         top_level_diversion::output): Don't test printing member before
17215         output.
17216         * troff/input.c: Handle initial variable_space_request ifdef
17217         COLUMN.
17218         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17219         but comment it out.
17221 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17223         * troff/div.c (diversion::need): Make any space forced.  If we
17224         sprung a trap, set truncated_space to minus the distance to the
17225         trap and set needed_space to the amount that was needed.
17226         (top_level_diversion::space): A forced space turns no_space_mode
17227         off.
17228         (class constant_vunits_reg): New class.
17229         (init_div_requests): Implement number registers .trunc and .ne
17230         using constant_vunits_reg.
17231         (class truncated_space_reg): Deleted.   
17233         * troff/div.h: Don't have a no_space_mode member in diversion.
17234         Instead have it in top_level_diversion.
17235         * troff/div.c (diversion::diversion): Don't initialize
17236         no_space_mode.
17237         (top_level_diversion::top_level_diversion): Initialize
17238         no_space_mode.
17239         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17240         (macro_diversion::output): Don't clear no_space_mode.
17242         * troff/input.c (diverted_space_node::reread): Don't call
17243         environment::do_break.  In fill mode, act like a blank line.
17244         (diverted_copy_file_node::reread): Don't call
17245         environment::do_break.
17247         * troff/div.c (blank_line): New function.
17248         * troff/div.h: Declare it.
17249         * troff/input.c (process_input_stack): Call it.
17251         * troff/div.c (truncated_space_reg::get_string): New function.
17252         (init_div_requests): Bind to .trunc.
17253         (space_request, top_level_diversion::space,
17254         top_level_diversion::output, macro_diversion::space,
17255         macro_diversion::output): Update truncated_space.
17256         (macro_diversion::output): Redo calculations when trap sprung.
17257         (macro_diversion::output, macro_diversion::space): No need for
17258         trap_flag.
17260         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17261         after truncating post line spacing.
17263 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17265         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17266         defined as a procedure rather than as an operator.
17268 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17270         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17272 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17274         * troff/div.c (top_level_diversion::output): Merge
17275         output_file::print_line and output_file::end_of_line member
17276         functions.
17277         * troff/div.h (class output_file):
17278         * troff/node.c (troff_output_file::print_line,
17279         troff_output_file::end_of_line, output_file::end_of_line,
17280         ascii_output_file::print_line, suppress_output_file::print_line):
17281         Corresponding changes.  
17283 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17285         * troff/input.c (token::next): Don't give a warning for `\.'.
17287         * troff/env.c (environment::get_center_lines): New function.
17288         (init_env_requests): Bind number register .ce to it.
17289         * troff/env.h: Declare it.
17290         * tbl/table.c (table::init_output): Define reset macro to restore
17291         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17292         Then do .ce 0.
17293         (table::print): If center option not given, then imply center
17294         option if SAVED_CENTER_REG > 0.
17296 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17298         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17299         Troff.ps from DOWNLOAD.
17300         
17301         * troff/Makefile: Change comment in DEFINES to avoid confusing
17302         System V make.
17304         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17305         code.  Don't try to catch errors with stopped.
17306         (check_line_lengths): New function.
17307         * ps/devps/prologue (EXEC): Deleted.
17308         (EBEGIN, EEND): New procedures.
17310 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17312         * troff/input.c: Include request.h before node.h.
17313         * troff/node.c: Likewise.
17314         * troff/env.c: Likewise.
17315         * troff/div.c: Likewise.
17316         * troff/node.h (class special_node): Store argument as a macro
17317         rather than a char *.
17318         * troff/node.c (special_node::special_node, special_node::copy):
17319         Grok this.
17320         (special_node::~special_node): Deleted.
17321         (special_node::tprint): Deleted.
17322         (special_node::tprint_start, special_node::tprint_end,
17323         special_node::tprint_char): New functions.
17324         (troff_output_file::special): Deleted.
17325         (troff_output_file::start_special, troff_output_file::end_special,
17326         troff_output_file::special_char): New functions.
17327         * troff/input.c (special_node::tprint): New function.
17328         (do_special): Use macro not char *.
17329         (do_transparent_macro): Deleted.
17330         (token::next): Don't call do_transparent_macro.
17332         * troff/input.c (token::next): Add 'Y' case.
17333         (do_transparent_macro): New function.
17334         * troff/node.c (troff_output_file::special): Handle newlines with
17335         argument using new continuation convention.
17336         * driver/input.c (get_string): Cope with continuation convention.
17337         (do_file): Don't call skip_line after calling get_string(1).
17338         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17339         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17340         arg.
17341         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17342         with +.
17344 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17346         * troff/input.c (asciify): By default, illegal input characters
17347         should return empty string.
17349         * troff/input.c (copy_file): Handle first page transition like title.
17350         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17352         * troff/input.c (token::next): Improve error message for EOF after
17353         escape character.
17354         (input_char_description): New function.
17355         (get_char_for_escape_name): Use input_char_description.
17356         (token::next): Warn about unrecognized escape sequences.
17357         (warning_table): Add WARN_ESCAPE.
17358         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17359         accordingly.
17361         * troff/token.h: Remove declaration of process_input_stack.
17363         * troff/input.c: Remove declaration of init_hyphen_requests.
17364         * troff/request.h: Correct spelling in declaration of same.
17366         * troff/input.c (token::next): Check whether escape_char is 0.
17368 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17370         * groff.c (main, usage, help): Implement -P and -L options.
17371         * groff.sh: Likewise.
17373         * troff/input.c (token::next): Use some gotos to avoid code
17374         duplication.
17376         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17377         Avoid calling symbol::symbol if name empty.
17379 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17381         * troff/input.c (init_input_requests): Make \n(.x return the major
17382         version number and \n(.y return the minor version number.
17383         * troff/Makefile: Construct file majorminor.c defining
17384         major_version and minor_version automatically from ../VERSION.
17386         * troff/node.c (class glyph_node): Make operator new and operator
17387         delete public.
17388         (class ligature_node): Similarily.
17390         * troff/input.c (operator==(const macro &, const macro &)): New
17391         function.
17392         (non_interpreted_node::same): Use this.
17393         (string_iterator::string_iterator): Make macro& argument const.
17395         * troff/input.c (input_iterator::get): New function. Don't make
17396         asciify_macro or class non_interpreted_node friends of class
17397         input_iterator.
17398         (non_interpreted_node::interpret): Use input_iterator::get.
17399         (asciify_macro): Likewise.
17401         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17402         ~non_interpreted_node): Deleted.
17403         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17404         Deleted.
17406         * troff/symbol.h: Make all symbol member functions const.
17408         * lib/strtol.c: New file.
17409         * lib/Makefile: Add strtol.c.
17410         * Makefile: Define STRTOL as strtol.o to include strtol in
17411         libgroff.a.
17413 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17415         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17417 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17419         * troff/input.c (do_special): Use input_level.
17421         * troff/token.h (TOKEN_BACKSPACE): New token.
17422         (token::backspace): New function.
17423         * troff/input.c (token::description, token::next, token::process):
17424         Grok TOKEN_BACKSPACE.
17425         (do_special): Turn TOKEN_BACKSPACE back into \b.
17427         * troff/token.h (token::leader): New function.
17428         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17430         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17432         * troff/input.c (do_special): Use token::description in error
17433         message.
17435 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17437         * troff/input.c (decode_args): Combine quoted and
17438         quote_input_level variables. Make it a for (;;) loop.
17440         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17442         * troff/input.c (read_long_escape_name): The test for whether to
17443         expand buffer was off by 1.
17444         (read_string): Similarily.
17446 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17448         * troff/input.c: Use `const int' rather than `static const int'.
17450         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17451         (macro_diversion::copy_file): New function.
17452         * troff/node.h: New class diverted_copy_file_node.
17453         * troff/node.c: Implement it.
17454         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17455         first page transition by pushing a diverted_copy_file_node.
17456         * troff/input.c (token::next, process_input_stack): Don't handle
17457         COPY_FILE_REQUEST.
17459 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17461         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17462         whether space widths need adjusting.
17464         * troff/charinfo.h: Generalize translated_to_space to
17465         special_translation so as to allow translation to \&.
17466         * troff/input.c (translate): Allow translation to \&.
17467         (charinfo::*): Corresponding changes.
17468         * troff/node.c (make_node, node::add_char): Corresponding changes.
17469         * troff/node.h (dummy_node::dummy_node): Allow optional first
17470         argument.
17472         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17473         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17474         TOKEN_REQUEST.
17475         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17476         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17477         (token::process): Grok that.
17478         * troff/input.c (copy_file): Handle first page transition like
17479         title by pushing a COPY_FILE_REQUEST cookie.
17480         (token::next, process_input_stack): Grok that.
17481         * troff/node.h (output_file::copy_file): Add x and y arguments.
17482         Make it non-pure.
17483         * troff/div.c (top_level_diversion::copy_file): Supply them.
17484         * troff/node.c (troff_output_file::copy_file): Add x and y
17485         arguments; moveto specified position.  Invalidate font_position
17486         array after copying file.
17487         (output_file::copy_file): New function.
17488         (suppressed_output_file::copy_file, ascii_output::copy_file):
17489         Removed.
17490         * troff/input.c (transparent_file): New function.
17491         (init_input_requests): Bind to "trf".
17492         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17493         (process_input_stack): Likewise.
17495         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17497         * troff/node.c (init_node_requests): New number registers .kern
17498         pointing to global_kern_mode, and .lg pointing to
17499         global_ligature_mode.
17501         * troff/node.c (ligature): Don't change it if we get a bad
17502         integer.
17504         * troff/input.c (do_define_string): Don't strip tabs.
17506         * troff/input.c (asciify_macro): Make the string_iterator auto.
17508         * troff/node.c (init_font_requests): Rename to...
17509         (init_node_requests):
17510         * troff/node.h: Change declaration.
17511         * troff/input.c (main): Change call.
17513         * troff/input.c (node::reread, diverted_space_node::reread): New
17514         methods.
17515         (process_input_stack): Call reread rather than
17516         get_diverted_space_node.
17517         * troff/node.c (node::get_diverted_space_node,
17518         diverted_space_node::get_diverted_space_node): Removed.
17519         * troff/node.h: Declare reread methods instead of
17520         get_diverted_space_node methods. Make `n' member private.
17521         * troff/input.c: (token::diverted_space): Removed.
17522         * troff/token.h: Removed declaration.
17523         
17525 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17527         * eqn/script.c (script_box::compute_metrics): Don't let
17528         SUP_RAISE_FORMAT become negative.
17530         * tbl/table.c (table::do_row): Entries that don't end in the
17531         this row shouldn't make the row non-blank.
17532         
17533         * tbl/table.c (table::make_columns_equal): Only set the width of
17534         columns which are marked as equal.
17535         
17536         * tbl/main.c (process_data): Before issuing excess data error,
17537         if last character was a newline unget it; then get it again after
17538         the error.  Also include the contents of the entry in the message.
17540         * groff.c: New file.
17541         * Makefile: Build groff from groff.c.  Make it possible to use
17542         either groff.sh or groff.c as groff.
17543         * Makefile.bd: Similarily.
17545 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17547         * groff.sh: Don't delay expansion of $@ in assignment to files.
17548         Remove occurrences of \".
17550 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17552         * all Makefiles: Simplify and rearrange.
17554         * Makefile: Handle fmod like malloc.
17555         * lib/Makefile: Similarily.
17556         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17558         * Makefile: Rename OPTIMISE to OPTIMIZE.
17560         * groff.sh: Remove assignment to PATH.
17561         * Makefile: Remove SHPATH variable.
17562         * Makefile.bd: Similarily.
17564         * groff.sh: Add -V option to print the pipeline instead of
17565         executing it.
17567 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17569         * lib/font.c: Split off file searching into ...
17570         * lib/fontfile.c: New file.
17572         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17574 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17576         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17577         Also change misleading comment.
17578         (table::do_vspan): Change similarily misleading comment.
17579         * tbl/main.c (process_data): A format row with an explicit `s'
17580         uses up a data line, even if all the other columns are `_' or `='.
17582         * troff/input.c (token::description): Fix description of
17583         TOKEN_DUMMY and TOKEN_EMPTY.
17585 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17587         * groff.sh: Fix description of -Z in help message.
17589 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17591         * pic/object.c (object_spec::make_object): Allow negative and zero
17592         line thicknesses.
17593         * pic/pic.y: Give linethick default value of -1.0.
17594         * pic/troff.c (troff_output::troff_output): Initialize
17595         last_line_thickness to BAD_THICKNESS.
17596         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17597         (troff_output::line_thickness): Canonicalize negative thicknesses
17598         to RELATIVE_THICKNESS.
17599         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17600         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17601         to -1.0.
17602         (tex_output::start_picture): Set pen_size to -2.0.
17604         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17605         0, then use 0 linewidth.
17606         (ps_printer::ps_printer): Initialize line_thickness to -1.
17608         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17610         * ps/devps/symbolchars: Remove `or'.
17611         * ps/tmac.ps: Implement \(or with .char.
17613         * ps/devps/symbolchars: Move most characters into textmap.
17614         * ps/devps/textmap: Add names for troff bracket characters. Remove
17615         ul, ru, br, bv.
17617         * ps/devps/TSymbol.ps: Removed.
17618         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17619         * ps/tmac.ps: Do with .char what TSymbol did.
17620         * ps/devps/download: Remove TSymbol.
17622         * ps/devps/T: Removed.
17623         * ps/devps/Troff.ps: Removed.
17624         * ps/devps/Troff.afm: Removed.
17625         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17626         * ps/devps/download: Remove Troff.
17627         * ps/devps/FontMakefile: Remove T target.
17628         * ps/devps/DESC-A4: Remove T from font list.
17629         * ps/devps/DESC-letter: Likewise.
17631         * troff/input.c (macro_to_node): Rename to ...
17632         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17633         character's definition while processing it.
17634         * troff/node.c (node::add_char, make_node): Change calls to
17635         macro_to_node accordingly.
17637         * troff/input.c (token::next): Translate \_ to \(ul.
17639         * tty/devascii/R.proto: Add `|'.
17640         * tty/devlatin1/R.proto: Likewise.
17642 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17644         * man: Put the version number in all the man pages.
17646 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17648         * Makefile.bd: New file.
17649         * README.bd: New file.
17651         * VERSION: New file.
17652         * lib/version.c: Removed.
17653         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17654         in clean target.
17656         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17657         environment variable.
17659         * all Makefiles: Split install target into install.bin for
17660         binaries, and install.nobin for everything else.
17661         * Makefile: Add bindist target.
17663         * man/afmtodit.man: New file.
17664         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17665         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17666         in BINDIR.
17667         * ps/Makefile: Pass BINDIR to make install in devps.
17669         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17670         the space character.
17672         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17674 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17676         * ps/ps.c: Redo font downloading.
17677         * ps/devps/download: New file.
17678         * ps/devps/Makefile: Add download to DEVICEFILES.
17679         * ps/devps/afmtodit: Remove -d option.
17680         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17681         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17682         * ps/devps/zapfdr.ps: Likewise.
17683         * ps/devps/TSymbol.ps: Likewise.
17685 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17687         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17689 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17691         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17692         then strip the first line if it starts with %.
17693         * Makefile: Add a comment about this.
17695         * man/tfmtodit.man: New file.
17696         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17697         * dvi/Makefile: Install tfmtodit in BINDIR.
17699         * dvi/tfmtodit.c (usage): Mention -v option.
17701 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17703         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17704         * troff/node.c (troff_output_file::transparent_char): Don't call
17705         flush_tbuf.
17707         * eqn: Add check_tabs method to most box classes.
17708         * eqn/box.c (box::top_level): Call check_tabs.
17710         * eqn/script.c (script_box::output): Use \Z.
17711         * eqn/limit.c (limit_box::output): Use \Z.
17713         * eqn/box.c (box::top_level): Use itoa.
17715 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17717         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17718         * dvi/devdvi/Makefile: Don't make links to CW.
17720         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17721         HX, HD.
17722         * xditview/tmac.X: Likewise.
17724         * troff/node.c: Add font translation feature.
17725         (get_font_translation): New function.
17726         (symbol_fontno): Translate the font name.
17727         (mount_font_no_translate): Rename to mount_font to this.
17728         (mount_font): New function.
17729         (font_family::make_definite): Call mount_font_no_translate instead
17730         of mount_font.
17731         (mount_style): Translate the font name.
17732         (font_translate): New function.
17733         (init_font_requests): Bind "ftr" to font_translate.
17735         * ps/devps/prologue (SN): New procedure that rounds a position to
17736         the nearest (pixel + (.25,.25)).
17737         (DL): Use SN to round endpoints.
17739         * lib/version.c: Changed version to 0.5.
17741 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17743         * Makefile: Move definition of PAGE to the very beginning, so that
17744         people are less likely to miss it.
17746 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17748         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17750         * troff/env.c (environment::choose_breakpoint): Make `can't find
17751         breakpoint' error a warning of type WARN_BREAK.  Change message to
17752         `can't break line'.
17753         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17754         code 040000.
17755         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17756         WARN_BREAK in DEFAULT_WARNING_MASK.
17758         * tty/tmac.tty: Add definition of \(+-.
17760         * groff.sh: Remove `--' option to set command.
17762         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17764         * ps/devps/eqnchar: Better definition of cdot using md.
17765         * dvi/devdvi/eqnchar:  Likewise.
17766         * xditview/devX100/eqnchar:  Likewise.
17767         * xditview/devX75/eqnchar: Likewise.
17768         * eqn/lex.c: Add definition of cdot.
17770 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17772         * troff/input.c (get_optional_char): New function.
17773         * troff/input.c (set_page_character): Use get_optional_char(),
17774         rather than has_arg() and tok.get_char(1).
17775         * troff/env.c (tab_character, leader_character, hyphen_char,
17776         field_characters): Likewise.
17777         (margin_character): Likewise.  Also always delete the
17778         margin_character_node.
17780         * troff/input.c (token::get_char): Use token::description.
17782         * troff/input.c (has_arg): Don't skip over tab and \}.
17783         * troff/number.c (start_number): Give a warning if the number
17784         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17786 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17788         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17789         functions.
17790         (get_name, get_long_name): Use these.  Rename `warn' argument to
17791         `required'.
17793         * troff/node.c (get_fontno): Test that the symbol is not null.
17795         * troff/input.c (token::description): New function.
17796         * troff/number.c (parse_term): Use token::description in `numeric
17797         expression expected' message.
17798         * troff/groff.h: Add WARN_MISSING.
17799         * troff/number.c (start_number): New function.
17800         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17801         get_incr_number): Use start_number().
17802         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17803         default.
17804         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17805         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17806         token::descripion.
17807         * troff/input.c (token::get_char): Use WARN_MISSING.
17808         * troff/input.c (token::delimiter): Use token::description.
17809         * troff/env.c (environment_switch): Back out Aug 3 change.
17810         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17811         warning.
17812         * troff/token.h (token::tab): New function.
17813         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17814         * troff/reg.c (alter_format): Likewise.
17815         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17817 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17819         * troff (most files): Redo warnings. Divide warnings into various
17820         categories; warning() has an additional first argument indicating
17821         the category it falls into.
17822         * troff/input.c (main): -w now takes an argument. New option -W.
17823         (enable_warning, disable_warning): New functions.
17825         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17826         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17828 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17830         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17831         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17832         * xditview/devX75/eqnchar: Likewise.
17833         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17835         * eqn/other.c: When bar or over applies to a single character
17836         don't produce an overline_box or an underline_box. Instead produce
17837         an accent_box or an underaccent_box, with the accent a line
17838         whose width is accent_width.  New classes underaccent_box,
17839         overline_char_box and underline_char_box.
17840         * eqn/box.h: Move overline_box, underline_box, accent_box class
17841         declarations into eqn/other.c. Add declarations of
17842         make_underline_box, make_overline_box, make_accent_box.
17843         * eqn/eqn.y: Call make_overline_box, make_underline_box
17844         make_accent_box instead of constructors.
17845         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17847         * eqn/other.c: Add accent_box::~accent_box.
17848         * eqn/box.h: Declare it.
17850         * groff.sh: With -Tps, use eqn -D.
17852         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17853         rather than \l.
17854         (underline_box::output): Similarily.
17855         (accent_box::output): Use \Z.
17857         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17858         bit smaller.)
17860 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17862         * troff/div.c (top_level_diversion::transparent_output(unsigned
17863         char)): Use asciify.
17864         * troff/input.c (asciify): Don't make it static.
17865         * troff/token.h (asciify): Declare it.
17866         
17867         * troff/input.c (get_name, get_long_name, token::get_char,
17868         token::delimiter): Add an extra default argument which says
17869         whether a warning should be printed.
17870         * troff: Pass a non-zero argument to one of these rather than
17871         printing a warning directly.
17873 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17875         * troff: Consistently use symbol::is_null.
17877         * troff/dictionary.h: Move some inline functions into
17878         dictionary.c.
17880         * troff/request.h: Move inline functions into input.c.
17881         (request_or_macro::invoke): Make it pure.
17883         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17884         * troff/input.c (init_input_requests): Use class constant_int_reg.
17885         (class compatible_reg): Deleted.
17886         * troff/div.c (init_div_requests): Use class constant_int_reg.
17887         (class last_post_line_extra_space_reg): Deleted.
17889         * troff/env.c (tab_character): Don't change the tab character if
17890         we get an invalid argument.
17891         (hyphen_char): Similarily.
17893         * troff/reg.c (alter_format): Check that nm is not null.
17895         * Makefile, groff.sh: Make it possible to customize the commands
17896         used for printing PostScript and dvi files. Also make it possible
17897         to customize the path used by groff.sh.
17899         * eqn/eqn.y: Make `left' right associative.
17901 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17903         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17904         don't have it.
17906         * pic/pic.h: Removed definition of INT_MAX.
17908         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17909         `return'.
17911         * troff/input.c (token::next):  Handle \R like \n.
17913 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
17915         * ps/tmac.pc (PSPIC): Simplify.
17917         * troff/env.c (tab_stops::to_string):
17918         * pic/pic.y (object_type_name):
17919         * pic/troff.c (simple_output::line):
17920         * pic/tex.c (tex_output::spline):
17921         * pic/object.c (object_spec::make_object):
17922         * tbl/main.c (process_data):  Add cases to switch statements to
17923         avoid cfront warnings. (Some of these are spurious, since the
17924         switch already has a default case.)
17926         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
17927         `ps-'.  Don't test systat; instead check number of arguments to
17928         ps-bb.
17930 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
17932         * macros/tmac.e: Do not decrease the page offset by 0.5i.
17934         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
17935         Unlink the file as soon as we have opened it, so that we don't
17936         have to bother with signal handlers.
17937         (handler): Deleted.
17938         (fatal_error_exit): Deleted.
17939         (main): Don't call signal.
17941         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
17942         can be ignored.
17943         * dvi/devdvi/Makefile: Use the -k option with S and MI.
17945         * pic/pic.y:  If there is a label, or an nth construction before
17946         the first `.' in the argument to `with', ignore it and generate a
17947         warning.
17948         * pic/lex.c (lex_warning): New function.
17950         * tbl/table.c (table::init_output): In section keep and release
17951         macro, use 0 indent when diverting and the correct indent when
17952         rereading.
17954         * troff/input.c (interpolate_number_format): Do not interpolate
17955         anything if the number register is not defined.
17957         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
17959 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
17961         * ps/devps/prologue (PICTURE): Set components of graphics state to
17962         their default values.
17964         * ps/devps/text.enc: Add trademark
17965         * ps/devps/textmap: Add names for club, spade, heart, diamond,
17966         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
17967         * ps/devps/symbolchars: Add names for summation and product.
17969         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
17970         suchthat. Add pp. Add upper-case letters.
17972         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
17973         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
17974         Upsilon.
17976         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
17977         rA (right angle bracket) to ra.  Introduce names for double-headed
17978         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
17979         * ps/devps/textmap: Likewise for ps device.
17980         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
17981         * tty/devascii/R.proto: Rename lA to la and rA to ra.
17982         * tty/devascii/R.proto: Likewise.
17983         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
17984         \(uA, \(dA.
17985         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
17987         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
17989         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
17990         def_table.
17992 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
17994         * troff/div.c (when_request): Use symbol::is_null rather than
17995         has_arg to determine whether we have an argument.
17996         (change_trap): Remove the trap if we get an invalid number. Give
17997         an error if we don't get at least the macro name.
17998         (diversion_trap): Remove trap if we get an invalid name or number.
18000         * troff/env.c (environment_switch): Pop if we get an invalid
18001         symbol or numeric expression.
18003         * troff/input.c (do_define_macro):  If EOF is encoutered while
18004         defining the macro, do tok.next() before returning.
18006         * troff/token.h (has_arg): Move definition from here, to ...
18007         * troff/input.c (has_arg): ... here
18009         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18010         * troff/input.c (shift): Likewise.
18012         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18013         for `.c'.
18015         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18016         `..'.
18018         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18019         interpret_lf_args succeeds.
18021         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18022         \\.  This avoids problems with \$N.
18024         * groff.sh: Pass -C to preprocessors.
18026         * lib/lf.c (interpret_lf_args):  Be more flexible.
18028         * tbl/main.c (main): Add -C option.
18029         (table_input::get): Do not recognize TE if followed by character
18030         other than a space or newline unless -C option given.
18031         (process_input_file): Likewise for lf, TS.
18032         (process_data): Likewise for lf in text blocks.
18034         * eqn/main.c (main): Add -C option.
18035         (do_file): Don't recognize EQ, EN or lf if followed by character
18036         other than space or newline unless -C option given.
18037         * eqn/lex.c (file_input::read_line): Similarily.
18038         * eqn/eqn.h: Declare compatible_flag.
18040         * etc/soelim.c (main): Add -C option.
18041         (interpret_lf_args): Use version in libgroff.
18042         (do_file):
18044         * pic/main.c (main): Add -C option, which sets compatible_flag.
18045         (top_input::get), (top_input::peek):  If -C option not given,
18046         do not recognize .PS/.PE/.PF/.lf if followed by a character
18047         other than space or newline.
18048         * pic/lex.c (file_input::read_line): Similarily.
18049         * pic/pic.h: Add declaration of compatible_flag.
18051 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18053         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18055         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18056         derived from node.  New class space_char_hmotion_node.
18057         * troff/input.c (asciify_macro): New function.
18058         * troff/input.c (init_input_requests): New request `asciify' bound
18059         to asciify_macro.
18060         * macros/mm.diff: New file.
18061         * Makefile:  In install.mm target use `patch' to apply
18062         macros/mm.diff.
18064         * troff/input.c (macro::print_size): Just print the size in bytes.
18066         * troff/div.c (return_request): Correct the argument
18067         interpretation.
18069 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18071         * troff/node.h (class composite_node): Add sz member.
18072         * troff/node.c (composite_node::size): Return sz.
18073         * troff/input.c (macro_to_node):  Use the initial size in the
18074         environment as the size of the composite_node.
18076         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18077         default.
18079 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18081         * troff/div.c (change_trap): If we get a bad number expression,
18082         do nothing.
18084 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18086         * lib/matherr.c (matherr): Define this only if math.h defines
18087         TLOSS.
18089 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18091         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18092         no diversion trap return vunits(INT_MAX - vresolution).
18094 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18096         * troff/input.c (do_zero_width): New implementation that doesn't
18097         use a temporary environment. Use instead:
18098         (token::add_to_node_list): New function.
18099         * troff/env.c (environment::get_prev_char_height),
18100         (environment::get_prev_char_height),
18101         (environment::get_prev_char_skew): New functions.
18102         (environment::get_prev_char): New function.
18103         (environment::get_prev_char_width): Change to use get_prev_char.
18104         (init_env_request): Implement new registers .cht, .cdp, .csk.
18105         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18106         \Z being processed in a separate environment.
18108 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18110         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18112         * tbl/table.c (table::init_output): In the section release macro,
18113         give a warning message if the section won't fit on one page.
18115         * tbl/table.c (table::do_top): Emit table keep only if table is
18116         boxed.
18117         (table::do_bottom): Likewise for table release.
18118         (table::table), (table::add_vertical_rule):  Remove reference to
18119         keep member.
18120         * tbl/table.h: Remove keep member.
18122         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18123         SECTION_RELEASE_MACRO, if there's not enough space before the next
18124         trap to output the diversion, call T# ourselves, set
18125         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18126         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18127         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18128         vertical position and return to it before turning traps on again.
18129         
18130 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18132         * troff/node.c, troff/node.h: In classes derived from node,
18133         replace prev_char_width method by last_char_node method.
18134         * troff/env.c (environment::get_prev_char_width): Use
18135         node::last_char_node rather than node::get_prev_char_width.
18137         * Makefile: Added comment about -fno-inline on 68030-based
18138         Apollos.
18140         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18141         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18142         expressions using sizeof to int.
18143         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18145         * macros/tmac.e (TS):  Don't move @f back past the current
18146         position.
18148 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18150         * ps/ps.c (main): Buffer stderr.
18151         * dvi/dvi.c (main): Likewise.
18152         * tty/tty.c (main): Likewise.
18154         * ps/ps.c (ps_printer::do_import): Improve error handling.
18156         * troff/input.c (abort_request): Use asciify.
18158         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18159         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18160         type of first argument int rather than char.  This works around a
18161         bug on the 68030 based Apollo using g++ 1.37.1.
18163         * tbl/table.h (class table): Add `keep' member.
18164         * tbl/table.c (table::table): Initialize `keep'.
18165         (table::add_vertical_rule): Set `keep' to 1.
18166         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18167         (table::do_bottom): Likewise for table release macro.
18168         (table::do_row): Emit section keep macro even if the row is 0.
18170 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18172         * macros/tmac.e (@C): Preserve the font family across the change
18173         in environments.
18175 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18177         * lib/font.c: Initialize font::hor and font::vert to 1.
18178         (font::load_desc): Check the values of font::hor and font::vert.
18180         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18181         be included in a C compilation.
18182         (iftoa): Use INT_DIGITS. Include lib.h.
18183         (itoa): Likewise.
18184         (as_string): Likewise.
18185         * tbl/table.c: Removed definition of INT_DIGITS.
18186         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18187         * troff/input.c (input_input_requests): Likewise.
18188         * ps/ps.c (make_encoding_name): Likewise.
18189         (ps_printer::set_style): Likewise.
18190         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18192         * tty/devascii/R.proto: Map fm onto '.
18193         * tty/devlatin1/R.proto: Likewise.
18195 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18197         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18198         argument to \w is at a different input level.
18200         * tbl/table.c (table::init_output): Define a new macro
18201         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18202         transparently outputs itself.
18203         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18204         vpt.
18205         (table::do_row): Likewise.
18207         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18208         TRANSPARENT_STRING_NAME.
18210         * tbl/table.c (table::init_output): In the table release macro
18211         print an error message and don't produce any output if after
18212         issuing the need request the table still will not fit.  Also
18213         remove the diversion after bringing it back.
18215         * tbl/table.c (table::init_output): Define a new macro
18216         REPEATED_MARK_MACRO, like mk but if in a diversion also
18217         transparently outputs itself.
18218         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18219         is necessary because .TH might not call .T#.
18220         (table::do_top): Likewise TOP_REG.
18221         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18222         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18223         table header might contain just the two top rules.
18225 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18227         * troff/div.c: Implement new request `ptr' to print all traps.
18229         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18230         init_string_env_reg.
18231         * troff/env.c (class tab_reg): Deleted.
18233 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18235         * troff/div.c: New number register .pn returns the number of the
18236         next page as set by the pn request.
18238         * macros/tmac.an: Redid headers and footers.  Number each manual
18239         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18240         optional 5th argument to .TH which specifies the manual name and
18241         appears in the center of the header.  Understand the X, P and D
18242         registers like Sun.
18244 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18246         * troff/env.c (init_env_requests): New number register `.lt' to
18247         return the title length.
18249         * troff/node.h (class transparent_dummy_node): New class.
18250         * troff/node.c (class transparent_dummy_node): Provide member
18251         functions. 
18252         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18253         than a dummy_node.
18255         * troff/input.c (token::next): New escape sequence \).
18256         * troff/input.c (get_copy): Recognize \) in copy mode.
18258         * troff/input.c (input_stack::clear): New function.
18259         * troff/input.c (exit_request): Use input_stack::clear.
18261         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18262         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18264         * troff/env.c: Move set_page_character to input.c.  Move
18265         page_character to input.c also.
18266         * troff/env.c (title): Split off the reading of the parts of the
18267         title into read_title_parts.
18268         * troff/input.c (read_title_parts): New function.  Check the
18269         input_level when testing whether a token matches the delimiter.
18271         * troff/input.c (exit_request): New function.
18272         * troff/input.c (init_input_requests): Bind ex request to
18273         exit_request rather than exit_groff.
18275         * troff/input.c (exit_groff): Call tok.next() before
18276         process_input_stack().
18278 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18280         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18281         * troff/env.h: ditto.
18282         * troff/input.c: ditto.
18284         * troff/env.c (environment::is_empty): Test pending_lines.
18286         * troff/env.c (environment::have_pending_lines): Removed.
18288         * troff/input.c: Add request to flush pending lines from the
18289         environment.
18291         * troff/env.c, troff/env.h: Add automatic widow control feature.
18293         * troff/input.c (exit_groff):  Do process_input_stack() after
18294         do_break() but before setting exit_flag to 2.
18296         * troff/input.c: Remove FLUSH_PENDING_LINES and
18297         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18298         environment after END_TRAP token seen, but only if there aren't
18299         any more traps still unfinished.
18300         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18302 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18304         * troff/env.c: Rename the `retain_size' member of class
18305         pending_output_line to `no_fill'.
18307         * troff/env.c (title): When the line is output, make the
18308         retain_size argument !fill.
18310         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18311         * troff/node.c (space_node::get_breakpoints),
18312         (dbreak_node::get_breakpoints):  Fill this in.
18313         * troff/env.c:  Allow specification of maximum number of
18314         consecutive hyphenated lines.
18316         * troff/env.c (environment::is_empty): Add test for !current_tab.
18318 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18320         * troff/env.c (environment::hyphenate_line): Don't completely give
18321         up if the word is not to be hyphenated; continue so that breaks
18322         can be made at break_char_node's.
18324         * lib/lib.h: Only define INT_MAX if it's not already defined;
18325         undef INT_MIN if it's already defined.
18327         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18329         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18330         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18331         compiler.
18332         
18333         * macros/tmac.an (an-header): Set no-space mode.
18335         * macros/tmac.an (TH): Start a new page if necessary.
18337         * Started using ChangeLog at version 0.4.
18339 Local Variables:
18340 version-control: never
18341 coding: latin-1
18342 End: