* src/include/nonposix.h (access) [_MSC_VER]: New macro.
[s-roff.git] / ChangeLog
blob4e09fb6742715d81220ce991a33b0429c98df337
1 2004-05-02  Werner LEMBERG  <wl@gnu.org>
3         Undo getopt changes from 2004-04-30.  We don't want a dependency
4         on gettext.
6         * src/include/getopt_int.h: Removed.
8         * src/include/getopt.h, src/include/groff-getopt.h,
9         src/include/Makefile.sub, src/libs/libgroff/getopt.c,
10         src/libs/libgroff/getopt1.c: Revert to previous version.
13         * src/include/nonposix.h (access) [_MSC_VER]: New macro.
15         * src/include/posix.h (F_OK): Define conditionally.
17         * src/devices/grotty/tty.cpp (tty_printer::make_underline): Use
18         different variable name in second `for' loop to avoid MSVC compiler
19         problem.
21 2004-04-30  Werner LEMBERG  <wl@gnu.org>
23         AC_TYPE_SIGNAL from current autoconf can fail if CC=g++.
25         * aclocal.m4 (GROFF_TYPE_SIGNAL): New function.
26         * configure.ac: Use GROFF_TYPE_SIGNAL, not AC_TYPE_SIGNAL.
27         * configure, src/include/config.hin: Regenerated.
29         * PROBLEMS: Updated.
32         Update getopt files.
34         * src/include/getopt.h, src/libs/libgroff/getopt.c,
35         src/libs/libgroff/getopt1.c: Updated from GNU libc CVS.
37         * src/include/getopt_int.h: New file (from GNU libc CVS).
39         * src/include/groff-getopt.h: Updated.
41         * src/include/Makefile.sub (HDRS): Add getopt_int.h.
44         * font/devutf8/NOTES: Updated.
46 2004-04-28  Werner LEMBERG  <wl@gnu.org>
48         Bug fix for Win32 relocatable code.  Based on a patch from Keith
49         Marshall.
51         * src/libs/libgroff/maxpathname.cpp (PATH_MAX): Test for `_MAX_PATH'
52         also.
54         * src/libs/libgroff/relocate.c (DEBUG): Define it conditionally.
55         (searchpath) [_WIN32]: Use `_fullpath', not `realpath'.
57 2005-04-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
59         Correct `gnu.eps' handling for build from distribution tarball, with
60         separate source and build directories.
62         * doc/Makefile.sub: (examples.stamp): New target; forces copy of
63         grnexmpl.g, groff.css and gnu.eps from source to build directory;
64         generate gnu.eps from gnu.xpm if required; touch examples.stamp.
65         (prepare_examples): Make it depend on examples.stamp.
66         (CLEANADD): Add examples.stamp.
68 2005-04-27  Werner LEMBERG  <wl@gnu.org>
70         Implement the rule
72           position: '(' position ')'
74         in pic.
76         * src/preproc/pic/pic.y (position, position_not_place): Handle
77         additional parentheses.
79         * doc/pic.ms: Updated.
81 2005-04-23  Larry Jones  <lawrence.jones@ugs.com>
83         * src/utils/xtotroff/xtotroff.c (MapFont): Fix variable declaration.
85 2005-04-18  Werner LEMBERG  <wl@gnu.org>
87         * src/roff/groff/pipeline.c: Don't include ctype.h.
89 2005-04-13  Werner LEMBERG  <wl@gnu.org>
91         * src/roff/nroff/nroff.man: Document option `-M'.
93 2005-04-13  Bruce Lilly  <blilly@erols.com>
95         * src/roff/nroff/nroff.sh: Make the script accept option `-M'.
97 2005-04-01  Kees Zeelenberg  <kzlg@users.sourceforge.net>
98             Werner LEMBERG  <wl@gnu.org>
100         Add binary relocation support for Windows platforms.
102         * src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.
104         * src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.
106         * src/libs/libgroff/searchpath.cpp: Handle `relocate'.
107         (search_path::search_path, search_path::open_file_cautious): Use
108         `relocate'.
110         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
111         src/include/Makefile.sub (HDRS): Updated.
113 2005-04-01  Werner LEMBERG  <wl@gnu.org>
115         * src/devices/grohtml/post-html.cpp: Don't use strdup/free but
116         strsave/a_delete.
118         * src/libs/libgroff/font.cpp: Replace strdup with strsave.
120         * src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
121         lib.h already does it.
123         * src/libs/libgroff/maxpathname.cpp: New file, defining
124         path_name_max.
126         * src/include/lib.h: Add prototype for path_name_max.
128         * src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.
130         * src/include/nonposix.h (PATH_EXT): New macro.
132 2005-03-28  Werner LEMBERG  <wl@gnu.org>
134         Add support for double- and zero-width characters in grotty.
136         * src/devices/grotty/tty.cpp (glyph): Add width. 
137         (tty_printer::make_underline, tty_printer::make_bold,
138         tty_printer::add_character): Add parameter to pass character width.
139         Update all callers.
140         (tty_printer::end_page): Increase hpos by actual character width.
142         * font/devutf8/R.proto: Specify zero width for non-spacing
143         characters.
145         * tmac/unicode.tmac: Remove definitions for non-spacing entities.
147         * Makefile.comm (extraclean): Remove more junk files.
149 2005-03-25  Werner LEMBERG  <wl@gnu.org>
151         * configure.ac: Undo change from 2005-03-24.
152         * configure: Regenerated.
154 2005-03-24  Werner LEMBERG  <wl@gnu.org>
156         * Makefile.in (NOMAKEDIRS): Add contrib/gdiffmk/tests.
157         (dist): Search Makefile while descending into $(EXTRADIRS).
159         * doc/Makefile.in (.PHONY): Add.
160         (clean): Don't remove *.png and *.eps.
161         Don't handle *.gif.
162         (realclean): Remove *.png and *.eps.
163         (extraclean): Depend on distclean.
165         * configure.ac: Add copyright.
166         Handle contrib/pdfmark/Makefile.
168         * configure: Regenerated.
170 2005-03-18  Larry Kollar  <kollar@alltel.net>
172         Add numbered and definition lists to www.tmac.
174         * tmac/www.tmac (www-ul-level1, www-ul-level2, www-ul-level3,
175         www-ol-level1, www-ol-level2, www-ol-level3, www-ol-tmp): New
176         auxiliary string registers.
177         (www-ul-level, www-ol-level, www-dl-level, www-ol-ctr1, www-ol-ctr2,
178         www-ol-ctr3, www-dl-shift): New auxiliary number registers.
179         (www-level): Removed.
180         (www-level1, www-level2, www-level3): Initialize to empty.
181         (www-level0, www-level4, www-level5, www-level6, www-level7,
182         www-level8, www-level9): New string registers.
183         (www-push-li, www-pop-li): New macros.
184         (www-push-level, www-pop-level): Renamed to...
185         (www-push-ul-level, www-pop-ul-level): This.
186         Updated.
187         (www-push-ol-level, www-pop-ol-level): New macros.
188         (ULS, ULE): Updated.
189         (OLS, OLE, DLS, DLE): New user macros.
190         (LI): Removed.  It is aliased to one of...
191         (www-li-ul, www-li-ol, www-li-dl): New macros.
193         * tmac/groff_www.man: Document new macros.
195         * NEWS: Updated.
197 2005-03-18  Werner LEMBERG  <wl@gnu.org>
199         * tmac/doc-common (doc-operating-system-NetBSD-2.0.1,
200         doc-operating-system-NetBSD-2.0.2): New strings.
202         * tmac/groff_mdoc.man: Updated.
204 2005-03-17  Werner LEMBERG  <wl@gnu.org>
206         * doc/Makefile.sub (CLEANADD): Add `groff.html'.
208 2005-03-17  Werner LEMBERG  <wl@gnu.org>
210         * src/libs/libgroff/hypot.c: Renamed to...
211         * src/libs/libgroff/hypot.cpp: This.  Updated to C++.
213         * src/libs/libgroff/Makefile.sub (CCSRCS, CSRCS): Updated.
215         * src/include/lib.h: Updated.
217 2005-03-16  Werner LEMBERG  <wl@gnu.org>
219         Add workaround for broken hypot() on Interix.
221         * src/libs/libgroff/hypot.c: New wrapper file for `hypot'.
223         * src/libs/libgroff/Makefile.sub (OBJS): Add `hypot.o'.
224         (CSRCS): Add `hypot.c'.
226         * src/include/lib.h: Declare `groff_hypot'.
228         * src/preproc/grn/hgraph.cpp: Don't declare `hypot'.
229         Use `groff_hypot'.
231         * src/preproc/pic/pic.h: Don't declare `hypot'.
233         * src/preproc/pic/object.cpp (hypot): Use `groff_hypot'.
235 2005-03-15  Gaius Mulley  <gaius@glam.ac.uk>
237         * src/devices/grohtml/post-html.cpp
238         (html_printer::lookahead_for_tables): End .ce properly to avoid a
239         segfault.
241 2005-03-15  Werner LEMBERG  <wl@gnu.org>
243         makeinfo 4.8 doesn't produce good HTML output from groff.texinfo.
245         * doc/fixinfo.sh: New script to postprocess makeinfo's HTML output.
247         * doc/Makefile.in (.texinfo.html): Call fixinfo.sh.
249 2005-03-14  Werner LEMBERG  <wl@gnu.org>
251         Add Cyrillic support to devutf8 and devhtml.
253         * font/devutf8/R.proto, font/devhtml/R.proto: Add Cyrillic blocks.
255         * tmac/unicode.tmac: New file.
257         * tmac/tty.tmac: Include unicode.tmac if device is utf8.
259         * tmac/Makefile.sub (NORMALFILES): Add unicode.tmac.
261         * NEWS: Updated.
263 2005-03-02  Keith Marshall  <keith.d.marshall@ntlworld.com>
265         * src/libs/libdriver/printer.cpp (check_for_output_error): New
266         function.  It has been introduced to catch peculiar error contexts
267         on MS-Windows platforms.
269 2005-02-28  Werner LEMBERG  <wl@gnu.org>
271         * src/roff/troff/input.cpp (string_iterator::fill): Protect against
272         null pointer.
274         * tmac/papersize.tmac: Convert `paper' string contents to lowercase.
276         * configure: Regenerated.
278         * NEWS: Updated.
280 2005-02-28  Keith Marshall  <keith.d.marshall@ntlworld.com>
282         Integrate `pdfmark' into normal groff build system;
283         install macro `pdfmark' packages, build and install `pdfroff',
284         and PDF format documentation.
286         * Makefile.comm: Add PDFDOCDIR.
288         * Makefile.in: (MDEFINES) ALT_AWK_PROGS, ALT_GHOSTSCRIPT_PROGS,
289         pdfdocdir, make_pdfdoc, make_install_pdfdoc: New variables.
290         (unstall_dirs): Add pdfdocdir.
292         * aclocal.m4: (GROFF_GHOSTSCRIPT_PREFS): New function; support
293         `--with-alt-gs' option, set ALT_GHOSTSCRIPT_PROGS.
294         (GROFF_GHOSTSCRIPT_PATH): Support `--with-gs' option, force use of
295         GROFF_GHOSTSCRIPT_PREFS, set GHOSTSCRIPT.
296         (GROFF_HTML_PROGRAMS): Force use of GROFF_GHOSTSCRIPT_PATH; tidy up.
297         (GROFF_AWK_PREFS): New function; support `--with-alt-awk' option,
298         set ALT_AWK_PROGS.
299         (GROFF_AWK_PATH): New function; support `--with-awk' option, force
300         use of GROFF_AWK_PREFS.
301         (GROFF_PDFDOC_PROGRAMS): New function; force use of GROFF_AWK_PATH
302         and GROFF_GHOSTSCRIPT_PATH, set make_pdfdoc and make_install_pdfdoc.
304         * configure.ac: Add AC_PREREQ(2.59), GROFF_PDFDOC_PROGRAMS.
305         Remove GROFF_GHOSTSCRIPT_PATH, (forced by GROFF_PDFDOC_PROGRAMS, and
306         also by modified GROFF_HTML_PROGRAMS).
308 2005-02-27  Gaius Mulley  <gaius@glam.ac.uk>
310         * src/devices/grohtml/html-text.cpp (html_text::do_pre): Preserve
311         paragraph spacing.
312         (html_text::done_para): Unset `start_space'.
313         (html_text::remove_para_align): Call `retrieve_para_space' for the
314         spacing.
316         * src/devices/grohtml/post-html.cpp (html_printer::emit_raw): Unset
317         `seen_space'.
318         (html_printer::do_check_center): Emit vertical space if necessary.
320         * src/roff/troff/env.cpp (environment_switch): Preserve
321         `seen_space', `seen_eol', and `suppress_next_eol' while switching
322         environments.
324         * src/roff/troff/node.cpp (suppress_node::suppress_node): Set
325         `is_special'.
327 2005-02-20  Werner LEMBERG  <wl@gnu.org>
329         * src/preproc/eqn/eqn.man, NEWS: Document various extensions of
330         eqn.
332 2005-02-17  Werner LEMBERG  <wl@gnu.org>
334         * doc/pic.ms, man/groff.man: Fix typos.
336         * doc/groff.texinfo: Fix typos.
337         (\LEmacro): Get proper mathematical spacing.
339 2005-02-16  Werner LEMBERG  <wl@gnu.org>
341         * aclocal.m4 (GROFF_APPRESDIR_CHECK): Improve warning message.
342         * configure: Regenerated with autoconf 2.59b.
344 2005-02-16  Gaius Mulley  <gaius@glam.ac.uk>
346         * src/devices/grohtml/post-html.cpp (html_printer::is_line_start,
347         html_printer::start_font): Fix handling of preformatted text.
349 2005-02-15  Gaius Mulley  <gaius@glam.ac.uk>
351         These patches modify the indentation implementation to use `<p
352         style=margin-left: n%>'.  Many thanks to Peter and Larry for
353         suggesting this solution.  Grohtml only uses tables for `.IP' and
354         related tags when the first operand has a short width.
356         Similarly, they modify all vertical space code.  By default, grohtml
357         sets up a style sheet which uses no vertical space between `table',
358         `pre', and `p' tags.  It forces spaces when it needs them using
359         `style="margin-top: 1em"'.
361         * src/devices/grohtml/html-table.cpp: Include `html-text.h'.
362         (html_table::emit_table_header, html_table::emit_new_row):
363         Rewritten.
364         (html_table::set_space): New function.
365         (html_indent::html_indent): Don't set `is_used'.
366         (html_indent::begin): Rewritten.
367         (html_indent::end): Remove code in function.
369         * src/devices/grohtml/html-table.h: Updated.
370         (html_table): Make `out' public.
372         * src/devices/grohtml/html-text.cpp (html_text::html_text):
373         Initialize `start_space' with FALSE.
374         (html_text::end_tag) <P_TAG, PRE_TAG>: Updated.
375         (html_text::issue_tag): Add argument to handle space style.
376         (html_text::start_tag) <P_TAG, PRE_TAG>: Updated.
377         (html_text::flush_text): Don't set `start_space'.
378         (html_text::push_para): Don't set `p->really_issued'.
379         (html_text::do_emittext): Updated.
380         (html_text::do_para): Add paremeter to handle space.
381         Update all callers.
382         (html_text::retrieve_para_space): New function.
384         * src/devices/grohtml/html-text.h (STYLE_VERTICAL_SPACE): New macro.
385         (tag_definition): Remove `really_issued'.
386         (html_text): Updated.
388         * src/devices/grohtml/post-html.cpp (html_printer): Add variables
389         `current_column' and `row_space'.
390         Update constructor.
391         (html_printer::emit_raw, html_printer::write_header,
392         html_printer::do_indent, html_printer::do_check_center,
393         html_printer::do_tab_ts): Handle vertical space.
394         (html_printer:do_tab_te, html_printer::do_end_para): Call
395         `remove_para_space'.
396         (html_printer::do_col): Rewritten.
397         (html_printer::flush_globs): Remove debugging code.
398         (html_printer::is_line_start): New function.
399         (html_printer::start_font): Use `is_line_start'.
400         (html_printer::writeHeadMetaStyle): New function.
401         (html_printer::do_file_components, html_printer::~html_printer):
402         Call `writeHeadMetaStyle'.
404         * tmac/www.tmac (www-handle-percent): New macro.
405         (MPIMG): Handle percent values for width and height parameters.
406         (DC): Updated.
408         * tmac/groff_www.man: Updated.
410 2005-02-14  Werner LEMBERG  <wl@gnu.org>
412         * src/utils/afmtodit/afmtodit.pl: Remove an incorrect `my' from
413         $psname and $italic_angle.
414         Immediately restart file input loops if `split' returns an empty
415         array.
417 2005-02-13  Michail Vidiassov  <master@iaas.msu.ru>
418             Werner LEMBERG  <wl@gnu.org>
420         Update afmtodit to better support Unicode (Michail).
421         Update afmtodit to use Perl 5 syntax (Werner).
423         * src/utils/afmtodit/afmtodit.pl: Don't use `getopts.pl' but
424         `Getopts::Std'.
425         Decorate variables with `my' where necessary.
426         Use `defined' where necessary to avoid warnings.
427         Don't use `do' for subroutine calls.
428         Other minor syntax updates.
429         Check for both `uXXXX[X[X]]' and `uniXXXX'.
430         Handle glyph variants properly.
431         (%unicode_decomposed, %AGL_to_unicode): Don't use `u' prefix in
432         strings.
434         * src/utils/afmtodit/afmtodit.man: Updated.
436 2005-02-13  Werner LEMBERG  <wl@gnu.org>
438         Make groff.texinfo work with texinfo 4.8.
440         * doc/groff.texinfo (@Var): Use @r and @slanted.
441         (@defdummy, @Def*): Use @c to avoid empty lines.
442         (\angles): Replaced with...
443         (\Langlemacro, \Ranglemacro): New TeX macros.
444         (@Langlemacro, @Ranglemacro): New variables defined with @set.
445         (@angles): Use @Langlemacro and @Ranglemacro.
446         (\LE): Replaced with...
447         (\LEmacro): New TeX macro.
448         (@LEmacro): New variable defined with @set.
449         (@LE): Use @LEmacro.
450         (@Lparenmacro, @Rparenmacro, @Lbrackmacro, @Rbrackmacro): New
451         variables defined with @set.
452         (@lparen, @rparen, @lbrack, @rbrack): Replaced with...
453         (@Lparen, @Rparen, @Lbrack, @Rbrack): New macros.
454         Update all callers.
456         Other minor updates.
458         * doc/texinfo.tex: Update to texinfo version 4.8.
460         * README.CVS: Updated.
462 2005-02-09  Alejandro López-Valencia <palopez@etb.net.co> (tiny change)
464         * doc/groff.texinfo (ms Document Control Registers): Document `HY'
465         and `FAM' registers.
467 2005-02-05  Werner LEMBERG  <wl@gnu.org>
469         * tmac/groff_mdoc.man, tmac/doc-common, tmac/doc-ditroff,
470         tmac/doc-nroff, tmac/doc-old.tmac, tmac/doc-syms, tmac/doc.tmac:
471         Update BSD license.
473 2005-02-01  Werner LEMBERG  <wl@gnu.org>
475         * src/roff/groff/groff.man: Add information about paper size.
477 2005-01-25  Werner LEMBERG  <wl@gnu.org>
479         * src/roff/nroff/nroff.sh: Handle `*.ISO8859-1' in locale.  From
480         NetBSD bin/29114.
482 2005-01-22  Ruslan Ermilov  <ru@FreeBSD.org>
484         * tmac/doc.tmac (Sm): Improved.  It didn't work properly in many
485         cases.
486         (Re): Emit a warning if called without `.Rs'.
487         (doc-finish-reference): Use parameter for decreasing
488         `doc-reference-count'.
489         (doc-print-reference): Pass specific count parameters to
490         `doc-finish-reference'.
492 2005-01-21  Werner LEMBERG  <wl@gnu.org>
494         * src/libs/libdriver/input.cpp (delete_current_env, do_file):
495         Reset pointers to zero after deallocation.  This fixes a crash
496         if a driver is called with multiple input files.  Reported by
497         Ken Chilton <ken@chiltonfamily.org>.
499         * src/devices/grops/grops.man: Add more info on DSC.
501 2005-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
503         * tmac/doc-common (Dd), tmac/doc-ditroff (gX, doc-setup-header):
504         Remove dead code.
506 2005-01-17  Werner LEMBERG  <wl@gnu.org>
508         * src/roff/troff/div.cpp (top_level_diversion::space): Protect
509         against division by zero.
511 2005-01-13  Ruslan Ermilov  <ru@FreeBSD.org>
513         * tmac/doc.tmac (Ef): Restore doc-curr-font and doc-curr-size.
515 2004-12-19  Werner LEMBERG  <wl@gnu.org>
517         * install-sh: New version; taken from texinfo CVS.
519 2004-12-17  Werner LEMBERG  <wl@gnu.org>
521         * tmac/devtag.tmac: Protect against loading twice.
522         Protect agains compatibility mode.
523         * tmac/www.tmac: Protect against loading twice.
524         Load `devtag.tmac' before switching off compatibility mode.
525         * tmac/an-old.tmac, tmac/s.tmac: Load `devtag.tmac'.
527 2004-12-16  Mike Bianchi  <mbianchi@Foveal.com>
529         * configure.ac: Produce `contrib/gdiffmk/tests/runtests'.
530         * configure: Updated.
532 2004-12-15  Thomas Klausner  <wiz@netbsd.org>
534         * tmac/doc-syms, tmac/groff_mdoc.man: Add `libpam' library.
536 2004-12-15  Werner LEMBERG  <wl@gnu.org>
538         Make `test-groff' work again -- previously, wrong paths have been
539         used.  Additionally, it can now be called from anywhere.
541         * test-groff.in: Don't test for groff binary.  This is no longer
542         necessary since the proper paths are determined by `configure'.
543         (EXEEXT): Removed.  No longer used.
544         (srcdir, builddir): Use values provided by the configure script.
545         (XENVIRONMENT): Updated.
547         * INSTALL: Updated.
549 2004-12-14  Gaius Mulley  <gaius@glam.ac.uk>
551         Make .tag and .taga work for all devices (but only grohtml actually
552         handles them).
554         * src/devices/grohtml/post-html.cpp: s/html-tag/devtag/.
555         (text_glob::is_br, page::add_tag, html_printer::troff_tag,
556         html_printer::handle_assertion): Don't use hard-coded string
557         lengths.
558         (html_printer::lookahead_for_table): Reset `tbl' properly if
559         necessary.
560         (html_printer::devtag): New function, handling `devtag'.
561         (html_printer::special): Don't handle `html-tag'.
563         * src/include/printer.h, src/libs/libdriver/printer.cpp
564         (printer::devtag): New virtual function.
566         * src/libs/libdriver/input.cpp (parse_x_command) <'X'>: Handle
567         `devtag'.
569         * src/roff/troff/env.cpp, src/roff/troff/mtsm.cpp,
570         src/roff/troff/node.cpp: s/html-tag/devtag/.
572         * src/roff/troff/input.cpp (tag, taga): Always call
573         curenv->add_node.
575         * tmac/an-old.tmac, tmac/s.tmac, tmac/troffrc-end: Use DEVTAG*
576         macros instead of HTML-TAG*.
578         * tmac/devtag.tmac: New file, defining the DEVTAG-* macros.
580         * tmac/www.tmac: Load devtag.tmac.
581         Replace HTML-TAG* macros with DEVTAG* macros.
582         (HTML, HTML-NS): Changed definitions.
583         (URL): Use HTML-NS.
584         (HTML-TAG, HTML-TAG-NS, HTML-TAG-NEXT): Removed.
586         * tmac/Makefile.sub (NORMALFILES): Add devtag.tmac.
588 2004-12-10  Werner LEMBERG  <wl@gnu.org>
590         Import Mike's `gdiffmk' package.
592         * contrib/gdiffmk/*: New files.
593         * Makefile.in (OTHERDIRS): Add contrib/gdiffmk.
594         * NEWS: Updated.
596 2004-12-08  Werner LEMBERG  <wl@gnu.org>
598         Import Keith's `pdfmark' package.  Integration is very preliminary.
600         * contrib/pdfmark/*: New files.
601         * Makefile.in (OTHERDIRS): Add contrib/pdfmark.
602         * NEWS: Updated.
604 2004-12-07  Gaius Mulley  <gaius@glam.ac.uk>
606         Fix a bug with title handling in HTML.
608         * src/devices/grohtml/post-html.cpp (text_glob::is_nf,
609         text_glob::is_fi, text_glob::is_ce): Use strlen to compute string
610         length.
611         (html_printer::handle_tag_within_title): New function.
612         (html_printer::do_title): Use it.
614         * tmac/s.tmac (TL): Don't set `need_eo_tl'.
615         (cov*tl-au-print): Emit `.eo.tl' tag.
617 2004-12-05  Alejandro López-Valencia  <dradul@etb.net.co>
619         * man/groff_char.man: Minor imrovements.
621 2004-12-04  Werner LEMBERG  <wl@gnu.org>
623         * src/preproc/eqn/eqn.man: Revised.
625 2004-11-25  Werner LEMBERG  <wl@gnu.org>
627         * src/utils/xtotroff/xtotroff.c: Reformat to be similar to other
628         groff source files.
629         Include config.h.
630         Include limits.h.
631         Remove X_NOT_STDC_ENV conditional.
632         (Version_string, program_name): New global variables.
633         (groff_flag): Removed.
634         (MapFont): Updated.
635         (usage): Take a stream as argument.
636         Use `program_name'.
637         Update all callers.
638         (main): Add `long_options' array for `--help' and `--version'.
639         Make `-g' a dummy option.
640         Handle `-v' and unknown options.
641         Remove unused `position' variable.
643         * src/utils/xtotroff/Makefile.sub (MAN1): Define.
644         (XLIBS): Add LIBGROFF.
646         * src/utils/xtotroff/xtotroff.man, src/utils/xtotroff/Makefile.in:
647         New files.
649         * src/devices/xditview/Dvi.c (default_font_map): Split into three
650         parts to avoid compiler warning.
651         (resources): Don't initialize with `default_font_map'.
652         (ClassInitialize): Initialize first element of `resources'.
654         * src/devices/xditview/Makefile.sub (devdir, xtotroff, DPIS, fonts):
655         Removed.
657         * src/utils/lkbib/lkbib.man, src/utils/lookbib/lookbib.man,
658         src/utils/pfbtops/pfbtops.man: Revised, updated.
660         * configure.ac: Generate src/utils/xtotroff/Makefile.
661         * configure: Regenerated.
663 2004-11-24  Werner LEMBERG  <wl@gnu.org>
665         First fixes to get produce HTML.
667         * src/devices/grohtml/post-html.cpp (generate_img_src): Add `alt'
668         attribute.
670         * tmac/www.tmac (IMG, PIMG, MPIMG): Add `alt' attribute.
671         (HR, LI): Use `HTML</p>', not `HTML'.
673         * doc/webpage.ms: Minor updates.
675 2004-11-23  Larry Kollar  <kollar@alltel.net>
677         Add option -S grohtml to determine the file split level.
679         * src/devices/grohtml/post-html.cpp (split_level): New global
680         variable.
681         (html_header::determine_header_level): Use split_level.
682         (main): Handle `-S' command line option.
683         Sort options.
685         * src/preproc/html/pre-html.cpp (scanArguments): Updated.
687         * src/devices/grohtml/grohtml.man: Document it.
688         Sort options.
690         * NEWS: Document it.
692 2004-11-23  Y T  <doarhop@hotmail.com>
694         * tmac/s.tmac (ref*add-V, ref*add-N): New macros for handling
695         the volume and number refer entries.
697 2004-11-22  Werner LEMBERG  <wl@gnu.org>
699         * src/devices/grohtml/html-table.cpp
700         (html_table::emit_table_header): Don't emit `cols' attribute which
701         doesn't exist in HTML 4.0 and is thus invalid.
703         * NEWS: More minor fixes and updates.
705 2004-11-18  Werner LEMBERG  <wl@gnu.org>
707         * tmac/www.tmac (HTML-NS, HTML-TAG-NS, HTML-TAG-NEXT): Simplified.
708         (HTML</p>): Minor clean-up.
710         * tmac/groff_www.man: Updated.
712         * src/devices/grohtml/grohtml.man: Revised and updated.
714         * NEWS: Updated.
716 2004-11-18  Gaius Mulley  <gaius@glam.ac.uk>
718         * src/devices/grohtml/post-html.cpp (html_printer::do_heading):
719         Fix space insertion.
720         (html_printer::do_links): Fix rules generation around automatic
721         heading links.
723         * tmac/www.tmac (LK): Use HTML-TAG-NS.
724         (HR): Simplify.
725         No longer emit empty line for non-HTML devices.
727 2004-11-17  Werner LEMBERG  <wl@gnu.org>
729         * doc/Makefile.in (prepare_examples, webpage.html): Handle
730         `groff.css'.
732         * doc/Makefile.sub (EXAMPLEFILES, CLEANNOTSRCDIRADD,
733         prepare_examples, webpage.html): Handle `groff.css'.
735 2004-11-15  Werner LEMBERG  <wl@gnu.org>
737         * NEWS, README, doc/webpage.ms: Updated.
739         * tmac/www.tmac (HTML, HTML-TAG): Minor clean-ups.
741 2004-10-30  Gaius Mulley  <gaius@glam.ac.uk>
743         * src/include/printer.h (printer): Remove virtual function
744         `round_width'.
745         Update all source files.
747         * src/devices/grohtml/post-html.cpp (html_printer): New member
748         function `round_width'.
750 2004-10-20  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
752         * src/preproc/tbl/table.cpp (table::do_row): Fix handling of the `d'
753         column key letter suffix.
755 2004-10-14  Werner LEMBERG  <wl@gnu.org>
757         * Makefile.in (check): Depend on `site.exp' and `docheck'.
758         (docheck): Run dejagnu's `runtest' if it exists.
759         (site.exp): Create dejagnu configuration file.
761         * Makefile.sub (DISTCLEANFILES): Add files related to dejagnu.
763 2004-10-13  Werner LEMBERG  <wl@gnu.org>
765         * src/devices/grohtml/html-text.cpp (html_text_get_alignment),
766         src/devices/grohtml/post-html.cpp (make_val,
767         html_printer::handle_state_assertion): Fix compiler warnings.
769         * src/roff/troff/div.cpp: Include `stringclass.h' and `mtsm.h'.
770         (diversion::diversion): Fix order of initializers.
772         * src/roff/troff/div.h: Don't include `mtsm.h'.
774         * src/roff/troff/env.cpp: Include `stringclass.h' and `mtsm.h'.
775         (environment::environment): Fix order of initializers.
776         (environment::make_tag, environment::construct_format_state): Fix
777         compiler warnings.
779         * src/roff/troff/input.cpp: Include `stringclass.h' and `mtsm.h'.
780         (input_iterator::input_iterator, macro::macro): Fix order of
781         initializers.
783         * src/roff/troff/mtsm.cpp: Include only necessary header files.
784         (state_set::add, state_set::val): Fix compiler warnings.
786         * src/roff/troff/mtsm.h: Don't include `stringclass.h'.
787         (bool_value_state, int_value_state, units_value_state,
788         string_value_state): Remove comma after last element which causes
789         an error with g++ 3.3.3.
791         * src/roff/troff/node.cpp: Include `stringclass.h'.
792         (hline_node::hline_node, vline_node::vline_node,
793         space_char_hmotion_node, left_italic_corrected_node): Fix compiler
794         warnings.
795         (zero_width_node::zero_width_node): Fix order of initializers.
797         * src/roff/troff/node.h: Don't include `mtsm.h'.
798         (hmotion_node): Fix compiler warnings.
800         * src/roff/troff/number.cpp: Include `stringclass.h' and `mtsm.h'.
802 2004-10-12  Gaius Mulley  <gaius@glam.ac.uk>
804         * doc/groff.css: New file.
806         * doc/webpage.ms: Use `groff.css'.
807         Other small fixes.
809         * tmac/an-old.tmac (need_eo_h): New number register.
810         (TH): Emit `.eo.tl' tag after title.
811         (SH): Set `need_eo_h'.
812         (an-trap): Handle `need_eo_h'.
813         (an-do-tag): s/HTML-TAG-NS/HTML-TAG-NEXT/.
815         * tmac/s.tmac (need_eo_h, need_eo_tl): New number registers.
816         (TL): Always start diversion.
817         Updated.
818         (@AI): Always call `par@reset'.
819         (@AB): Update code for -Thtml.
820         (cov*tl-au-print): Handle -Thtml.
821         (par@reset): Handle `need_eo_tl', `need_eo_h'.
822         (@IP): Simplified.
823         (@IT-html): Removed.
824         (@SH): Set `need_eo_h' for -Thtml.
825         (par@TL): s/HTML-TAG/HTMl-TAG-NS/.
826         Set `need_eo_tl'.
827         (@NH): s/HTML-TAG/HTMl-TAG-NS/.
828         Set `need_eo_h' for -Thtml.
829         (@EQ, @EN): Don't handle -Thtml specially.
830         (par@load-init): Don't handle -Thtml specially.
832         * tmac/www.tmac (www:paraspace): New macro.
833         (HTML-NS, HTML-TAG-NS): Use new `tag' request.
834         (HTML</p>, HTML-TAG-NEXT): New macros.
835         (HnE): Emit tag `.eo.h' instead of break.
836         (HR): s/HTML-NS/HTML/.
837         (www-end-nowhere): End diversion only if `www-html' not set.
838         Emit `.eo.tl' tag.
839         (ULS, ULE): s|HTML|HTML</p>|.
840         (LI): Call `www:paraspace'.
841         (HEAD): New macro.
843 2004-10-11  Gaius Mulley  <gaius@glam.ac.uk>
845         * src/roff/troff/request.h (macro): Make `p' public.
846         New variable `is_a_diversion'.
847         New member function `is_diversion'.
850         * src/devices/grohtml/html.h (simple_output): New member function
851         `force_nl'.
853         * src/devices/grohtml/html-table.cpp (tabs::compatible): Fix
854         computation of `total'.
855         (tabs::check_init): New function.
856         (html_table::emit_table_header): Emit style data.
857         (html_table::insert_column): Improved.
859         * src/devices/grohtml/html-table.h: Updated.
861         * src/devices/grohtml/html-text.cpp (html_text::html_text):
862         Initialize `start_space' with TRUE.
863         (html_text::end_tag, html_start_tag): Fix `P_TAG' and `PRE_TAG'
864         cases.
865         (html_text::flush_text): Set `start_space' flag.
866         (html_text::uses_indent, html_text::remove_para_space,
867         html_text::get_alignment): New functions.
868         (html_text::push_para): Updated.
869         (html_text::do_para): Check for empty argument.
870         Don't set `space_emitted'.
871         (html_text::do_space, html_text::emit_space): Updated.
873         * src/devices/grohtml/html-text.h (tag_definition): New variable
874         `really_issued'.
875         (html_text): New member function `uses_indent', `remove_para_space',
876         `get_alignment'.
878         * src/devices/grohtml/output.cpp (simple_output::force_nl): New
879         function.
880         (simple_output:nl): Always emit `\n'.
882         * src/devices/grohtml/post-html.cpp: Include `string.h'.
883         (BASE_POINT_SIZE): Removed.
884         (base_point_size, head_info): New global variables.
885         (text_glob): New member functions `is_ll', `is_tl', `is_eo_tl',
886         `is_eo_h'.
887         (text_glob::is_nf, text_glob::is_fi): Handle `.fi 0' and `.fi 1'
888         tags, respectively.
889         (page::add_and_encode): Pass additional parameter for tag flag.
890         (assert_pos): New structure.
891         (assert_state): New class.
892         (html_printer): Remove `indentation', `prev_indent'.
893         Add variables `troff_indent', `device_indent', `temp_indent'.
894         Add variables `seen_indent', `next_indent', `seen_pageoffset',
895         `next_pageoffset', `seen_linelenght', `next_linelength',
896         `seen_center', `next_center', `seen_space', `seen_break', `as'.
897         Add member functions `do_check_center', `do_space', `do_head',
898         `get_troff_indent', `restore_troff_indent', `handle_assertion',
899         `handle_state_assertion', `do_end_para', `set_char_and_width'.
900         Change argument to `do_fill' to `char *'.
901         Update constructor.
902         (html_printer::emit_raw): Call `shutdown_table'.
903         Use new functions.
904         (html_printer::do_center): Simplified.
905         (html_printer::do_title): Improved.
906         (html_printer::write_header): Emit one more newline.
907         Use new functions.
908         (html_printer::do_heading, html_printer::do_indent,
909         html_printer::do_eol, html_printer::do_tab_ts,
910         html_printer::do_tab, html_printer::do_tab0,
911         html_printer::calc_po_in, html_printer::next_horiz_pos,
912         html_printer::remove_courier_tabs,
913         html_printer::insert_tab0_foreach_tab, html_printer::begin_page):
914         Updated.
915         (html_printer::do_linelength, html_printer::do_pageoffset,
916         html_printer::do_indentation, html_printer::do_tempindent,
917         html_printer::do_tab_te): Simplified.
918         (html_printer::do_pointsize): Check whether point size is really
919         associated a `.tl' tag.
920         (html_printer::do_break): Rewritten.
921         (html_printer::troff_tag): Improved.
922         (html_printer::flush_globs): Updated.
923         (html_printer::lookahead_for_tables): Handle `is_br'.
924         Use new functions.
925         (html_printer::set_char): Check `sbuf_style.f'.
926         (html_printer::write_navigation): Use string comparison.
927         (html_printer::~html_printer): Emit `head_info'.
928         (html_printer::special): Rewritten.
929         (get_str, make_val): New functions.
930         (main): New option `s' to set the base point size.
932         * src/preproc/html/pre-html.cpp (scanArguments): Handle option `s'.
934 2004-10-10  Gaius Mulley  <gaius@glam.ac.uk>
936         * src/roff/troff/node.cpp: New extern `debug_state'.
937         Include `stringclass.h' and `mtsm.h'.
938         Implement new classes and class members from `node.h'.
939         (real_output_file): Make `fp' public.
940         (troff_output_file): New variables `cur_div_level' and `tag_list'.
941         Update constructors.
942         (troff_output_file::really_print_line): Check whether we should push
943         the current troff state and use the state at the start of the
944         invocation of this diversion.
945         (troff_output_file::add_to_tag_list): New member function.
946         (node::add_char): Handle `glyph_comp_np'.
948         * src/roff/troff/node.h: Include `mtsm.h'.
949         (node): New variables `state', `push_state', `div_nest_level',
950         `is_special'.  Update constructors, all descendants.
951         Pass additional argument to `add_char' member function.
952         New virtual member functions `is_tag', `debug_node',
953         `debug_node_list'.  Update all descendants.
954         (tag_node): New class for handling tags.
955         (output_file): Add variable `state'.
957 2004-10-09  Gaius Mulley  <gaius@glam.ac.uk>
959         * src/roff/troff/mtsm.cpp, src/roff/troff/mtsm.h: New files,
960         providing a minimal troff state machine to emit meta tags for the
961         post-grohtml device driver.
963         * src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS): Handle new
964         files.
966 2004-10-09  Werner LEMBERG  <wl@gnu.org>
968         * tmac/trace.tmac: Fix handling of `am' and `am1' calls.
970 2004-10-06  Gaius Mulley  <gaius@glam.ac.uk>
972         * src/roff/troff/column.cpp (vjustify_node::copy): Updated.
974         * src/roff/troff/div.h: Include `mtsm.h'.
975         (diversion): New variables `any_chars_added', `needs_push',
976         `saved_seen_break', `saved_seen_space', `saved_seen_eol',
977         `saved_suppress_next_eol', `modified_tag'.
978         New virtual member function `is_diversion'.  Update all descendants.
980         * src/roff/troff/div.cpp (diversion::diversion,
981         macro_diversion::macro_diversion): Updated.
982         (do_divert): Handle `seen_break', `seen_space', `seen_eol',
983         `suppress_next_eol'.
984         (top_level_diversion::space): Handle `curenv->seen_space'.
985         (page_offset): Update tag handling.
986         (space_request, blank_line, flush_output): Don't call `add_html_tag'.
988         * src/roff/troff/env.h (environment): Make `tabs' public.
989         Remove `ignore_next_eol', `emitted_node'.
990         Update `output_line', `output'.
991         New variables `seen_space', `seen_eol', `suppress_next_eol',
992         `seen_break'.
993         New member functions `construct_state', `make_tag',
994         `construct_format_state, `construct_new_line_state,
995         `dump_troff_state'.
996         Remove `add_html_tag', `make_html_tag'.
998         * src/roff/troff/env.cpp: New externs `suppress_push',
999         `get_diversion_state', `global_diverted_space'.
1000         (pending_output_line): New variable `was_centered'.
1001         Update constructor and all callers.
1002         (pending_output_line::output): Call `curenv->construct_format_state'.
1003         (environment::environment, environment::copy): Updated.
1004         (environment::output): Handle `was_centered'.
1005         (environment::add_char): Handle construct and diversion state.
1006         (environment::add_node): Handle construct state.
1007         (environment::newline): Handle `was_centered'.
1008         (environment::output_line): Updated.
1009         (environment::possibly_break_line): Updated.
1010         Update tag handling.
1011         (environment::add_html_tag): Replaced with...
1012         (environment::make_tag): New function.
1013         (environment::add_html_tag_tabs, environment::make_html_tag): Removed.
1014         (environment::dump_troff_state): New debugging function.
1015         (environment::construct_state, environment::construct_format_state,
1016         environment::construct_new_line_state): New functions.
1017         (environment::do_break): Updated.
1018         Handle `global_diverted_space'.
1019         (environment::handle_tag): Update tag handling.
1020         (point_size, fill, do_break_request): Don't call `add_html_tag'.
1021         (no_fill): Don't call `add_html_tag'.
1022         Set `suppress_next_eol'.
1023         (center, right_justify, line_length, indent, temporary_indent,
1024         set_tabs):
1025         Update tag handling.
1027         * src/roff/troff/input.cpp: Don't include `stringclass.h'.
1028         (input_iterator): New variables `is_diversion', `diversion_state'.
1029         Update constructors.
1030         (input_stack): New member functions `get_div_level',
1031         `get_diversion_state', `check_end_diversion'.
1032         New variables `div_level', `diversion_state'.  Initialize them.
1033         (suppress_push, global_diverted_space): New global variables.
1034         (input_stack::finish_get, input_stack::finish_peek,
1035         input_stack::remove_boundary, input_stack::end_file,
1036         input_stack::clear, input_stack::pop_macro): Call
1037         `check_end_diversion'.
1038         (input_stack::push): Handle `div_level' and `diversion_state'.
1039         (get_diversion_state): New function.
1040         (diverted_space_node::reread): Handle `global_diverted_space'.
1041         (macro::macro): Update constructors.
1042         (macro::is_diversion): New function.
1043         (macro::operator=): Set `is_a_diversion'.
1044         (string_iterator): New member function `is_diversion'.
1045         (string_iterator::string_iterator): Update constructors.
1046         (string_iterator::fill): Set `div_nest_level'.
1047         (macro_iterator): New member function `is_diversion'.
1048         (do_if_request): Handle `suppress_push'.
1049         (tag, taga): New functions.
1050         (init_input_requests): Add `tag' and `taga' requests.
1052 2004-10-05  Gaius Mulley  <gaius@glam.ac.uk>
1054         * src/include/font.h (font): New member function
1055         `get_image_generator'.
1056         New variables `unscaled_charwidths' and `image_generator'.
1058         * src/libs/libgroff/font.cpp (font::get_width): Always return the
1059         character's unscaled width if `font::unscaled_charwidths' is set.
1060         (font::get_image_generator): New function.
1061         (font::load_desc): Check the `unscaled_charwidths' and
1062         `image_generator' keywords.
1064         * src/libs/libgroff/fontfile.cpp: Initialize
1065         `font::unscaled_charwidths' and `font::image_generator'.
1067         * font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
1069         * font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
1071         * man/groff_font.man: Document `unscaled_charwidths' and
1072         `image_generator'.
1074         * src/preproc/html/pre-html.cpp: Include `device.h'.
1075         (image_gen): New global variable.
1076         (imageList::createPage): Use `image_gen'.
1077         (main): Use `image_generator' keyword.
1079 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1081         * tmac/html.tmac: Handle \[sqrtex].
1083 2004-10-04  Gaius Mulley  <gaius@glam.ac.uk>
1085         * src/include/printer.h (printer): New virtual method `round_width'.
1087         * src/devices/grodvi/dvi.cpp, src/devices/grolbp/lbp.cpp,
1088         src/devices/grolj4/lj4.cpp, src/devices/grops/ps.cpp,
1089         src/devices/grotty/tty.cpp (printer::round_width): New function
1090         member.
1092         * src/devices/grohtml/post-html.cpp (printer::round_width): New
1093         function member.
1094         (html_printer::set_numbered_char): Use it.
1096 2004-10-03  Gaius Mulley  <gaius@glam.ac.uk>
1098         * aclocal.m4 (GROFF_GHOSTSCRIPT_PATH): New macro.
1100         * configure.ac: Call GROFF_GHOSTSCRIPT_PATH.
1102         * configure: Regenerated.
1104         * Makefile.in (GHOSTSCRIPT): New variable.
1105         (MDEFINES): Add GHOSTSCRIPT.
1107 2004-10-03  Werner LEMBERG  <wl@gnu.org>
1109         * INSTALL.gen: Updated (taken from texinfo CVS).
1111 2004-09-28  Werner LEMBERG  <wl@gnu.org>
1113         * NEWS: Updated.
1115 2004-09-28  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1117         * tmac/groff_www.man: Revised and updated.
1119 2004-09-26  Werner LEMBERG  <wl@gnu.org>
1121         Fix \$@ and \$* to handle any number of arguments.
1123         * src/roff/troff/input.h (BEGIN_QUOTE, END_QUOTE): New special
1124         characters.
1126         * src/roff/troff/input.cpp (input_iterator::internal_level):
1127         Removed.
1128         (input_stack): New member functions `increase_level' and
1129         `decrease_level'.
1130         (input_stack::get_level): Don't use `internal_level'.
1131         (get_copy, token::next): Handle BEGIN_QUOTE and END_QUOTE.
1132         (end_quote_iterator): Completely removed.
1133         (interpolate_arg): Build string for \$@ and \$* which is then
1134         pushed onto the input stack.
1136 2004-09-23  Keith Marshall  <keith.d.marshall@ntlworld.com>
1138         * tmac/groff_ms.man, doc/groff.texinfo: Document changes from
1139         2004-09-19.
1141 2004-09-23  Werner LEMBERG  <wl@gnu.org>
1143         * tmac/an-old.tmac (ne): Using default scaling operator.
1145 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1147         This change implements the following features:
1149         PORPHANS
1150           New numeric register: Defines number of lines following LP, PP,
1151           QP, IP or XP, which must be kept together, before any automatic
1152           page break.  If insufficient space remains on the current page, a
1153           page break is forced before the new paragraph begins.
1155         HORPHANS
1156           New numeric register: Sets number of lines of following paragraph
1157           which must be kept with a heading, defined by NH or SH, before any
1158           automatic page break.  If insufficient space remains on the
1159           current page, a page break is forced before the heading.
1161         GROWPS
1162           (Thanks to Joerg van den Hoff, for this idea).
1164           New numeric register: Sets the first level of heading (set with
1165           NH), which will keep the same point size as body text; e.g. if
1166           GROWPS is set to 3, .NH 3, .NH 4, ... will produce headings at the
1167           point size specified by \n[PS], but .NH 2 and .NH 1 will have
1168           progressively larger point sizes, determined by \n[PSINCR] (see
1169           below).
1171         PSINCR
1172           New numeric register: Sets the point size increment for each level
1173           of heading, (set with NH), below the threshold level set by
1174           GROWPS; e.g. if \n[PS] = 10, \n[GROWPS] = 3 and \n[PSINCR] = 2.0p,
1175           then .NH 1 will produce 14pt headings, .NH 2 will produce 12pt,
1176           and all other levels will remain at 10pt, (because \n[PS] = 10).
1178         SH
1179           Existing macro now accepts a numeric argument, to make heading
1180           size match that of NH with same argument value, when the
1181           GROWPS/PSINCR feature is enabled.
1183         SN-DOT
1184           New string, set by NH macro, replaces the existing (undocumented)
1185           use of SN, to represent the assigned section number.
1187         SN-NO-DOT
1188           New string, set by NH macro, represents the assigned section
1189           number, but omits the terminal period (periods at intermediate
1190           levels are retained).
1192         SN
1193           String set by NH macro, originally undocumented, now implemented
1194           as an alias for SN-DOT (which reproduces original behaviour).
1196         * tmac/s.tmac (PORPHANS): New register.
1197         (par*start): Use it.
1198         (HORPHANS, GROWPS, PSINCR): New registers.
1199         (SH-NO-TAG, @SH): Use them.
1200         (@NH): Improved.
1202 2004-09-19  Keith Marshall  <keith.d.marshall@ntlworld.com>
1204         * NEWS, doc/groff.texinfo, tmac/groff_ms.man: Document the deletion
1205         of `Ds' and `De' macros.
1207 2004-09-10  Werner LEMBERG  <wl@gnu.org>
1209         In tbl, handle \a as an interpreted leader character if in
1210         compatibility mode.
1212         * src/preproc/tbl/table.h (PREFIX, PREFIX_CHAR, LEADER,
1213         LEADER_CHAR): New macros.
1214         (compatible_flag): New declaration.
1216         * src/preproc/tbl/main.cpp (table_input): Add LEADER_1, LEADER_2,
1217         LEADER_3, and LEADER_4 to `state'.
1218         (table_input::get): Handle `\a'.
1220         * src/preproc/tbl/table.cpp (PREFIX): Removed.
1221         (LEADER_REG): New macro.
1222         (table::init_output): Define LEADER_REG string register if in
1223         compatibility mode.
1225         * src/preproc/tbl/tbl.man: Document it.
1227 2004-08-18  Werner LEMBERG  <wl@gnu.org>
1229         * tmac/doc.tmac (An): Fix error message.
1231 2004-08-06  Werner LEMBERG  <wl@gnu.org>
1233         * src/preproc/tbl/main.cpp (main): Call `fatal' not `error' if a
1234         file can't be opened.  UNIX tbl has the same behaviour.
1236 2004-08-05  Y T  <doarhop@hotmail.com>
1238         * src/preproc/grn/hdb.cpp (compatibility_flag): Add declaration.
1239         (DBRead): If in compatibility mode, take into account the text
1240         when computing figure boundaries.
1242 2004-08-05  Werner LEMBERG  <wl@gnu.org>
1244         * src/preproc/soelim/soelim.man: Improved.  Based on suggestions
1245         from Tadziu Hoffmann.
1247 2004-08-03  Werner LEMBERG  <wl@gnu.org>
1249         * doc/meref.me: Document `_M' register.
1251 2004-08-03  Martin Husemann  <martin@duskware.de>
1253         Make hpftodit work correctly on big-endian systems.
1255         * src/utils/hpftodit/hpftodit.cpp (File): New method
1256         `get_uint32(char *)'.
1257         (entry): New member `orig_value'.
1258         (read_tags): Use new method.
1259         (output_font_name, read_and_output_pcltypeface, dump_ascii):
1260         Updated.
1262 2004-08-01  Werner LEMBERG  <wl@gnu.org>
1264         * tmac/s.tmac: Undo change 2003-06-29.  The proper macro definitions
1265         are already in X11's `macros.t' file.
1267 2004-08-01  Jeff Conrad  <jeff_conrad@msn.com>
1269         * src/utils/hpftodit/hfptodit.cpp (output_font_name, dump_ascii):
1270         Fix casting bug.
1271         (read_and_output_pcltypeface): Handle strings with length <= 4.
1273 2004-07-27  Egil Kvaleberg  <egil@kvaleberg.no>
1275         * tmac/s.tmac (pg@top): Don't save `PO' register.
1276         (pg*end-col, pg*end-page): Directly use `PO' register.
1278 2004-07-27  Werner LEMBERG  <wl@gnu.org>
1280         * man/groff_tmac.man: Mention `trace' and `pic' macro packages.
1282         * src/preproc/refer/refer.cpp (output_references): Check for
1283         empty hash table.
1284         * src/preproc/refer/refer.man: Improve documentation of
1285         `bibliography' command.
1287 2004-07-26  Werner LEMBERG  <wl@gnu.org>
1289         Add requests `fcolor' and `gcolor'.
1291         * src/roff/troff/env.cpp (fill_color_change, glyph_color_change):
1292         New functions.
1293         (init_env_requests): Add `fcolor' and `gcolor'.
1295         * src/roff/troff/input.h: Export do_glyph_color and do_fill_color.
1297         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1298         Document new requests.
1300 2004-07-24  Werner LEMBERG  <wl@gnu.org>
1302         Add support for fractional point sizes in ms macros.  A value for
1303         PS, VS, FPS, and FVS greater than or equal to 1000 is always divided
1304         by 1000.  For example, `.nr PS 10250' sets the font size to 10.25p.
1306         * tmac/s.tmac (@AU, @AI, par@load-init, par@init, par@reset, NL,
1307         PX): Handle fractional point sizes for PS, VS, FPS, and FVS.
1309         * tmac/groff_ms.man, docs/groff.texinfo, NEWS: Document it.
1311 2004-07-19  Werner LEMBERG  <wl@gnu.org>
1313         * src/preproc/pic/lex.cpp (for_input): Add member `from'.
1314         Update constructor.
1315         (do_for, for_input::get, for_input::peek): Handle negative `by'.
1316         * src/preproc/pic/pic.man, doc/pic.ms, NEWS: Document it.
1318 2004-07-08  Thomas Klausner  <wiz@netbsd.org>
1320         * tmac/doc-syms (doc-str-St--p1003.1-2004): New string.
1321         * tmac/groff_mdoc.man: Updated.
1323 2004-07-05  Werner LEMBERG  <wl@gnu.org>
1325         * doc/groff.texinfo: Further improve documentation of `hcode'.
1327 2004-07-04  Sang Dae Yu  <sdyu@bh.knu.ac.kr>
1329         Improve appearance of arrows in pic.
1331         * src/preproc/pic/object.cpp (draw_arrow): Make outline of filled
1332         arrow head thin.
1333         Use two line segments for drawing non-filled arrow head.
1334         (line_object::print, spline_object::print): Shorten line length to
1335         avoid arrow sticking.
1336         (arc_object::print): Take arrow direction into account.
1338 2004-07-03  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
1340         * tmac/groff_www.man: Update documentation of .MPIMG.
1342 2004-07-03  Werner LEMBERG  <wl@gnu.org>
1344         * tmac/an-old.tmac (RI): Always start with font `R'.
1345         (RI, IR): Properly end with font `R'.
1347 2004-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1349         * man/ditroff.man, man/groff_font.man, man/groff_out.man,
1350         src/devices/grohtml/grohtml.man, src/preproc/grn/grn.man,
1351         src/preproc/pic/pic.man, tmac/groff_man.man, tmac/groff_ms.man:
1352         Don't pass more than six arguments to .R, .I, .B, etc., for
1353         compatibility with traditional troff macros.
1355 2004-07-02  Werner LEMBERG  <wl@gnu.org>
1357         * src/roff/troff/input.h: s/COMPATIBLE_SAVE/PUSH_GROFF_MODE/.
1358         s/COMPATIBLE_RESTORE/POP_GROFFCOMP_MODE/.
1359         Update all users.
1360         (PUSH_COMP_MODE): New internal character constant.
1361         Update all users.
1363         * src/roff/troff/input.cpp (get_copy): Handle PUSH_GROFF_MODE,
1364         PUSH_COMP_MODE, and POP_GROFFCOMP_MODE.
1365         (token::next, macro::append): Handle PUSH_COMP_MODE.
1366         (decode_args): Add PUSH_GROFF_MODE or PUSH_COMP_MODE before and
1367         POP_GROFFCOMP after each of the decoded arguments to make them
1368         independent from the compatibility mode status.
1369         (comp_mode): Add `COMP_ENABLE'.
1370         (do_define_string, do_define_macro): Handle COMP_ENABLE.
1371         (define_string, append_string, define_macro, define_indirect_macro,
1372         append_macro, append_indirect_macro): Handle `compatible_flag'.
1373         (chop_macro, substring_request, asciify): Handle PUSH_COMP_MODE.
1375         * man/groff_diff.man, doc/groff.texinfo: Updated.
1377 2004-07-01  Werner LEMBERG  <wl@gnu.org>
1379         * doc/groff.texinfo: Improve documentation of `hcode'.
1380         Use @documentencoding and convert document to latin-1; to do that
1381         make latin characters active and assign proper macros (within a
1382         @tex...@end tex environment).
1383         * doc/Makefile.in (.texinfo.html, groff): Use --enable-encoding.
1384         * doc/Makefile.sub (groff): Ditto.
1386 2004-06-29  Werner LEMBERG  <wl@gnu.org>
1388         Implement two new conditional operators `F <name>' and `S <name>'
1389         which check whether <name> is a valid font or style, respectively.
1391         * src/libs/libgroff/font.cpp (text_file): Add `silent' member.
1392         (text_file::text_file): Updated.
1393         (text_file::error): Don't emit message if `silent' is set.
1394         (font::load_font): Add optional third argument (which is directly
1395         passed to `load'.
1396         (font::load): Add optional second argument to check the header of
1397         a font only, without emitting warning or error messages.
1398         * src/include/font.h (font): Updated.
1400         * src/roff/troff/input.cpp (do_if_request): Implement `S' and `F'
1401         conditionals.
1402         * src/roff/troff/node.cpp (mount_font_no_translate): Add optional
1403         fourth argument to check a font without mounting.
1404         (check_font, check_style): New functions.
1405         * src/roff/troff/node.h: Updated.
1407         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1408         Updated.
1410 2004-06-27  Werner LEMBERG  <wl@gnu.org>
1412         Implement new string-valued register `.sty' to return the current
1413         style name.
1415         * env.cpp (environment::get_style_name_string): New function.
1416         (init_env_requests): Add `.sty' register.
1417         * env.h (environment): Updated.
1418         * node.cpp (font_info): Make `get_style_name' a friend.
1419         (get_style_name): New function.
1420         * node.h: Updated.
1422         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
1423         Updated.
1425 2004-06-15  Werner LEMBERG  <wl@gnu.org>
1427         * src/preproc/tbl/main.cpp (process_data) <GOT_RIGHT_BRACE>: Handle
1428         `nospaces' option.
1430 2004-06-10  Colin Percival  <colin.percival@wadham.ox.ac.uk>
1432         * doc/meintro.me, doc/meref.me: Don't use \*[td], \n[dy], \*[mo],
1433         and \n[mo] to avoid dependency on current date.
1435 2004-06-08  Werner LEMBERG  <wl@gnu.org>
1437         * Makefile.sub (install_data): New target.
1439 2004-06-04  Werner LEMBERG  <wl@gnu.org>
1441         * src/libs/libxutil/Makefile.sub (EXTRA_CFLAGS): Define.
1443 2004-06-03  Werner LEMBERG  <wl@gnu.org>
1445         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Fix typo and
1446         order of libraries.
1447         (install_data): Add $(srcdir).
1449         * src/utils/xtotroff/Makefile.sub (EXTRA_LDFLAGS): Fix order of
1450         libraries.
1452 2004-06-02  Werner LEMBERG  <wl@gnu.org>
1454         * aclocal.m4 (GROFF_X11): s/have_no_x/groff_no_x/.
1455         Add X11 stuff to CFLAGS, LDFLAGS, and LIBS temporarily.
1456         Add test for Xmu library.
1457         (GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1458         GROFF_APPRESDIR_DEFAULT): New macros.
1460         * configure.ac: Call GROFF_APPRESDIR_OPTION, GROFF_APPRESDIR_CHECK,
1461         and GROFF_APPRESDIR_DEFAULT.
1463         * configure: Regenerated.
1465         * Makefile.in (appresdir): New variable.
1466         (MDEFINES): Add appresdir.
1468         * src/devices/xditview/Makefile.sub (EXTRA_LDFLAGS): Add -Xmu and
1469         -Xt.
1470         (install_data, uninstall_sub): New targets to handle GXditview.ad.
1472         * src/utils/indxbib/Makefiles.ub (install_data): Depend on
1473         `$(srcdir)/eign', not `eign'.
1475         * MANIFEST, INSTALL, NEWS, PROBLEMS: Updated.
1477         * man/groff_out.man, man/roff.man, src/devices/grops/grops.man,
1478         src/devices/xditview/gxditview.man, src/roff/groff/groff.man:
1479         Protect (g)xditview with `\%' to avoid hyphenation.
1480         Other minor formatting.
1482 2004-06-01  Werner LEMBERG  <wl@gnu.org>
1484         Integrate gxditview into groff's standard directory hierarchy.
1486         * src/xditview/*: Moved to ...
1487         * src/devices/xditview/*: Here.
1488         Moved DviChar.h and XFontName.h to src/include.
1489         Moved DviChar.c and XFontName.c to new directory src/libs/libxutil.
1490         Split off `xmalloc' into new file src/libs/libxutil/xmalloc.c.
1491         Moved xtotroff.c to new directory src/utils/xtotroff.
1492         Provide proper Makefile.sub files (reusing the stuff from
1493         Imakefile.in).
1494         DESC renamed to DESC.in.
1495         Removed GXDitview-ad.h, INSTALL, Imakefile.in.
1496         Converted everything from K&R to ANSI C.
1497         Decorated with const where appropriate.
1498         Cast string constants with `String' and `char *' where appropriate.
1499         Made it compile with C++ (used as a C compiler).
1500         Removed other minor compiler warnings.
1502         * src/devices/xditview/device.c: Include config.h, string.h, and
1503         defs.h.
1504         Don't declare `exit', `strtok', `strchr', and `getenv'.
1505         (FONTPATH): Remove.
1507         * src/devices/xditview/font.c: Don't declare `XParseFontName' and
1508         `XFormatFontName'.
1510         * src/devices/xditview/xditview.c: Include config.h.
1511         Include stdio.h earlier.
1512         Protect declaration of `popen' and `pclose' with
1513         NEED_DECLARATION_POPEN and NEED_DECLARATION_PCLOSE.
1514         Replace `caddr_t' with `XtPointer'.
1515         (MakePromptFunc): New typedef.
1516         (DoPrint): Use RETSIGTYPE.
1517         (promptfunction): Change type to MakePromptFunc.
1518         (MakePrompt): Use MakePromptFunc for third argument.
1519         (xmalloc): Removed.
1521         * src/devices/xditview/ad2c: Add casts to `String'.
1523         * src/include/XFontName.h (XFontNameString): Don't use array
1524         notation.
1525         Add prototypes for `XParseFontName', `XFormatFontName',
1526         `XCompareFontName', and `XCopyFontName'.
1528         * src/include/Makefile.sub (HDRS): Add `DviChar.h' and
1529         `XFontName.h'.
1531         * src/utils/xtotroff/xtotroff.c: Include getopt.h.
1532         Don't declare `XParseFontName' and `XFormatFontName'.
1533         (xmalloc): Removed.
1534         (main): Remove `optind' and `optarg'.
1536         * Makefile.in (XDEVDIRS, XPROGDIRS, XLIBDIRS): New variables
1537         (to select programs which need X).
1538         Make XDEVIDIRS depend on `FORCE'.
1539         (X_CFLAGS, X_LIBS, X_EXTRA_LIBS, X_PRE_LIBS): New variables (for
1540         X support).
1541         (MDEFINES): Updated.
1542         (LIBDIRS): Use XLIBDIRS.
1543         (CPROGDIRS): Use XPROGDIRS.
1544         (DEVDIRS): Remove font directories for gxditview.
1545         (ALLDIRS, DISTDIRS): Add XDEVDIRS.
1546         (EXTRADIRS): Remove src/xditview.
1548         * Makefile.sub (DISCLEANFILES): Updated.
1550         * Makefile.comm (LIBXUTIL): New variable.
1551         (.cpp.o, .cpp.obj): Handle EXTRA_CCFLAGS.
1552         (.c.o, .c.obj, .y.o): Handle EXTRA_CFLAGS.
1554         * Makefile.cpg, Makefile.ccpg ($PROG): Handle EXTRA_LDFLAGS.
1556         * aclocal.m4 (GROFF_X11): New function.
1558         * configure.ac: Call GROFF_X11.
1559         Don't create src/xditview/Imakefile.
1560         Don't emit notice how to build gxditview.
1562         * configure: Regenerated.
1564         * test-groff.in (GROFF_BIN_PATH, XENVIRONMENT): Updated.
1566 2004-05-28  Akihiro Sagawa  <sagawa@sohgoh.net>
1568         * Makefile.in (CPPFLAGS): Define.
1569         (MDEFINES): Add CPPFLAGS.
1571 2004-05-27  Werner LEMBERG  <wl@gnu.org>
1573         * arch/misc/Makefile.sub (shdeps.sed): Use $(srcdir).
1575 2004-05-26  Niklas Edmundsson  <nikke@acc.umu.se>
1577         Fix problems with `friend name injections'.
1579         * src/preproc/eqn/box.h (make_mark_box, make_lineup_box,
1580         make_script_box), src/roff/troff/div.h (end_diversions),
1581         src/roff/troff/env.h (title), input.cpp (process_input_stack): Undo
1582         change 2004-04-08.
1584 2004-05-25  Bernd Warken  <bwarken@mayn.de>
1586         * src/preproc/pic/pic.man, doc/pic.ms: Add example for `command'.
1588 2004-05-25  Werner LEMBERG  <wl@gnu.org>
1590         * src/libs/libgroff/cset.cpp, src/libs/libgroff/lf.cpp,
1591         src/libs/libgroff/color.cpp: Include lib.h.
1593 2004-05-25  Paul Eggert  <eggert@cs.ucla.edu>
1595         * PROBLEMS: Update documentation for problems with Sun C++ 5.0
1596         through Forte 6u1, and for how to get GNU make on Solaris.
1598 2004-05-24  Werner LEMBERG  <wl@gnu.org>
1600         * PROBLEMS: Document problems with gcc 3.4.0 on Sun.  Reported
1601         by Paul Eggert.
1603 2004-05-15  Keith Marshall  <keith.d.marshall@ntlworld.com>
1605         * arch/misc/Makefile.sub (shdeps.sed): Don't use `$<' in explicit
1606         rule.
1608 2005-05-14  Werner LEMBERG  <wl@gnu.org>
1610         * REVISION: Set to 2.
1612         * aclocal.m4 (GROFF_STDINT_H): Removed.
1613         (GROFF_INTTYPES_H): Define HAVE_CC_INTTYPES_H.
1615         * configure.ac: Updated.
1616         * configure, src/include/config.hin: Regenerated.
1618         * src/libs/libgroff/tmpname.cpp: Don't include stdint.h but
1619         inttypes.h conditionally.
1621 2003-05-13  Werner LEMBERG  <wl@gnu.org>
1623 Version 1.19.1 released
1624 =======================
1626 2004-05-10  Stephen Gildea  <http://www.gildea.com/stephen>
1628         * src/preproc/refer/label.y (same_author_last_name,
1629         same_author_name): Handle empty sort keys.
1631 2004-05-10  Werner LEMBERG  <wl@gnu.org>
1633         * NEWS, README, TODO, PROJECTS, PROBLEMS, MANIFEST, doc/webpage.ms,
1634         tmac/TODO: Updated.
1636         * tmac/doc-syms (doc-str-Lb-libposix, doc-str-Lb-libpthread,
1637         doc-str-Lb-librt): Reset font.
1638         (Lb): Rename `doc-str-Lb' to `doc-str-Lb1'.
1639         Provide `doc-str-Lb' to reset font.
1640         * tmac/groff_mdoc.man: Updated.
1642 2004-05-08  Jan Schaumann  <jschauma@netmeister.org>
1644         * src/preproc/html/pre-html.cpp (make_message): Make it work for
1645         snprintf versions which don't conform to ANSI C 99 (this is,
1646         counting the string's trailing null byte in the return value).
1648 2004-05-07  Keith Marshall  <keith.d.marshall@ntlworld.com>
1650         * src/roff/troff/node.cpp (suppress_node::tprint): Don't expect
1651         that all implementations of sprintf handle null pointers correctly.
1653 2004-05-04  Werner LEMBERG  <wl@gnu.org>
1655         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
1656         Document `.U' register.
1658         * src/roff/troff/env.cpp (environment::mark_last_line)
1659         [WIDOW_CONTROL]: Fix scope of `p' for new C++ compilers.
1661 2004-05-04  Larry Kollar  <kollar@alltel.net>
1663         New read-only register `.U'; it returns 1 in safer mode and 0
1664         otherwise.
1666         * src/roff/troff/input.cpp (init_input_requests): Implement `.U'
1667         register.
1669 2004-05-03  Werner LEMBERG  <wl@gnu.org>
1671         * install-sh, mkinstalldirs: New versions; taken from texinfo CVS.
1673 2004-04-17  Werner LEMBERG  <wl@gnu.org>
1675         * src/include/font.h (font): Use `int' for ch_index.
1676         * src/libs/libgroff/font.cpp (font::alloc_ch_index,
1677         font::compact): Updated.
1679         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix compiler
1680         warnings.
1682         * src/roff/troff/div.cpp (begin_page), src/roff/troff/env.cpp
1683         (hyphen_word): Fix compiler warnings.
1684         * src/roff/troff/input.cpp (get_char_for_escape_name): Return
1685         `char'.
1686         Update all callers.
1687         (get_delim_number, get_line_arg): Change second argument type to
1688         `unsigned char'.
1689         (macro_header::copy, token::next, do_define_string,
1690         do_define_character, substring_request, asciify_macro,
1691         unformat_macro, read_size, non_interpreted_node::interpret,
1692         while_request, main: Fix compiler warnings.
1693         (read_color_draw_node): Initialize `col'.
1695         * src/preproc/tbl/table.cpp (horizontal_span, table_entry): Make
1696         `start_col' and `end_col' of type `int'.
1697         (vertical_rule): Make `col' of type `int'.
1699         * src/preproc/grn/hdb.cpp (DBRead): Protect call to getc with check
1700         for EOF.
1702         * src/preproc/refer/label.y (uppercase_array, lowercase_array):
1703         New arrays.
1704         (format_serial): Use them to remove dependency on ASCII.
1706         * src/devices/grops/ps.cpp (ps_printer::define_encoding): Fix
1707         compiler warning.
1708         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
1709         Ditto.
1711         * src/devices/grotty/tty.cpp (tty_font::load_tty_font): Fix
1712         compiler warnings.
1713         (glyph): Change type of `hpos' to `int'.
1715         * src/devices/lbp/lbp.cpp (strsep): Removed.  Unused.
1716         * src/devices/lbp/lbp.h (splinerel): Fix compiler warnings.
1718         * src/utils/tfmtodit.cpp (gf::load): Fix compiler warnings.
1720         * src/utils/pfbtops/pfbtops.c (get_text): Fix compiler warning.
1722 2004-04-16  Werner LEMBERG  <wl@gnu.org>
1724         * src/devices/grolbp/lbp.h, src/preproc/grn/gprint.h,
1725         src/preproc/grn/hgraph.cpp, src/preproc/grn/hpoint.cpp,
1726         src/preproc/html/pushback.cpp, src/preproc/html/pushback.h: Use
1727         `double' instead of `float' everywhere.
1728         * src/preproc/grn/main.cpp: Use `double' instead of `float'
1729         everywhere.
1730         (main): Add return value.
1731         * src/preproc/grn/hdb.cpp: Use `double' instead of `float'
1732         everywhere.
1733         Update all user functions.
1735         * src/include/search.h, src/include/ptable.h, src/include/printer.h,
1736         src/preproc/eqn/box.h, src/preproc/pic/object.h,
1737         src/preproc/refer/refer.h, src/preproc/tbl/table.h,
1738         src/preproc/tbl/table.cpp, src/roff/troff/env.h,
1739         src/roff/troff/div.h, src/roff/troff/token.h, src/roff/troff/node.h,
1740         src/roff/troff/input.cpp, src/roff/troff/request.h,
1741         src/roff/troff/node.cpp: Don't mix `struct' and `class' in forward
1742         declarations.
1744         * src/utils/indxbib/signal.c: Include stdlib.h.
1746 2004-04-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
1748         * tmac/s.tmac (@init, RP): Allow initialization of the PO register
1749         before the first page.
1751 2004-04-14  Thomas Klausner  <wiz@netbsd.org>
1753         * tmac/doc-common (doc-volume-as-*): Use lowercase names.
1754         (doc-operating-system-*): Updated.
1755         * tmac/doc-syms (doc-str-St-*): Various small fixes.
1756         (doc-str-Lb-*): Add more library names.
1758 2004-04-10  Art Haas  <ahaas@airmail.net>
1760         * src/utils/hpftodit/hpuni.cpp (hp_msl_to_unicode_list): Don't
1761         use anonymous type.
1763 2004-04-09  Art Haas  <ahaas@airmail.net>
1765         * src/utils/tfmtodit.cpp (lig_chars): Don't use anonymous type.
1767 2004-04-09  Keith Marshall  <keith.d.marshall@ntlworld.com>
1769         * arch/misc/shdeps.sh: Generate better comment for sed script.
1771 2004-04-08  Art Haas  <ahaas@airmail.net>
1773         * src/libs/libgroff/glyphuni.cpp (glyph_to_unicode_list),
1774         src/libs/libgroff/uniglyph.cpp (unicode_to_glyph_list),
1775         src/libs/libgroff/uniuni.cpp (unicode_decompose_list),
1776         src/preproc/eqn/box.cpp (param_table), src/preproc/grn/hgraph.cpp
1777         (polyfill), src/preproc/grn/main.cpp (polyfill),
1778         src/preproc/refer/command.cpp (command_table),
1779         src/utils/tfmtodit.cpp (lig_table): Don't use anonymous types (which
1780         gcc 3.5 doesn't like).
1782 2004-04-08  Werner LEMBERG  <wl@gnu.org>
1784         Removing many compiler warnings.  groff should now compile with
1785         a C++ compiler used for C files also.  [Simple variable renamings
1786         to avoid shadowing aren't logged in detail.]
1788         * src/devices/grodvi/dvi.cpp: Some local variable renamings.
1789         (draw_dvi_printer::draw) ['c']: Enclose in block.
1791         * src/devices/grohtml/post-html.cpp: Some local variable renamings.
1792         (page::add_line): Fix typos.
1793         * src/devices/grohtml/html-text.cpp: Some local variable renamings.
1795         * src/devices/grolbp/lbp.cpp: Don't define _GNU_SOURCE.
1796         Some local variable renamings.
1797         * src/devices/grolbp/lbp.h: Some local variable renamings.
1799         * src/devices/grolj4/lj4.cpp, src/devices/grotty/tty.cpp: Some local
1800         variable renamings.
1802         * src/libs/libbib/index.cpp (index_search_item_iterator::get_tag):
1803         Remove redundant local variable declaration.
1804         * src/libs/libbib/map.c (mapread, unmap): Don't use K&R style.
1805         Don't use `caddr_t' but `void *'.
1806         Enclose functions with `extern "C"' for C++.
1808         * src/libs/libdriver/input.cpp (remember_filename,
1809         remember_source_filename): Use cast for string constant.
1811         * src/libs/libgroff/font.cpp, src/libs/libgroff/fontfile.cpp,
1812         src/libs/libgroff/nametoindex.cpp, src/libs/libgroff/paper.cpp,
1813         src/libs/libgroff/geometry.cpp: Some local variable renamings.
1814         * src/libs/libgroff/iftoa.c, src/libs/libgroff/itoa.c: Don't use K&R
1815         style.
1816         Enclose functions with `extern "C"' for C++.
1817         * src/libs/libgroff/quotearg.c (TRUE,FALSE): Define as macros.
1818         (needs_quoting): Return `int'.
1819         (quote_arg): Add proper casts to malloc and realloc.
1820         * src/libs/libgroff/spawnvp.c: Compile code only for MS-DOS and
1821         various MS Windows environments.
1822         (spawnvp_wrapper): Add proper cast to malloc.
1824         * src/preproc/eqn/box.h: Remove redundant declarations of
1825         `make_script_box', `make_mark_box' and `make_lineup_box'.
1826         * src/preproc/eqn/eqn.y: Remove redundant declaration of `strsave'.
1827         * src/preproc/eqn/script.cpp, src/preproc/eqn/pile.cpp: Some local
1828         variable renamings.
1830         * src/preproc/grn/hpoint.cpp: Some local variable renamings.
1831         * src/preproc/grn/hgraph.cpp: Some local variable renamings.
1832         (dx, dy): Renamed functions to...
1833         (deltax, deltay): This.
1834         * src/preproc/grn/main.cpp: Some local variable renamings.
1835         (deffont): Add `const'.
1836         (initpic, conv): Use cast for string constant.
1838         * src/preproc/html/pre-html.cpp: Some local variable renamings.
1839         (makeFileName, alterDeviceTo, addZ): Use cast for string constant.
1840         (char_buffer::run_output_filter): Second argument is unused.
1841         * src/preproc/html/pushback.cpp: Some local variable renamings.
1843         * src/preproc/pic/pic.y: Remove redundant declaration of `do_copy'.
1844         * src/preproc/pic/object.cpp: Some local variable renamings.
1846         * src/preproc/refer/label.y (lookup_label): Remove redundant
1847         declaration of local variable.
1849         * src/preproc/soelim.cpp: Remove redundant declaration of
1850         `interpret_lf_args'.
1852         * src/preproc/tbl/main.cpp: Some local variable renamings.
1854         * src/roff/groff/groff.cpp (main): Use cast for string constant.
1855         * src/roff/groff/pipeline.c: Enclose declarations of `error',
1856         `c_fatal', and `i_to_a' with `extern "C"' for C++.
1857         Don't use C++-style comments.
1859         * src/roff/troff/env.h: Remove redundant declaration of `title'.
1860         * src/roff/troff/node.h, src/roff/troff/env.cpp,
1861         src/roff/troff/div.cpp, src/roff/troff/node.cpp: Some local variable
1862         renamings.
1863         * src/roff/troff/div.h: Remove redundant declaration of
1864         `end_diversions'.
1865         * src/roff/troff/troff.h: Remove redundant declaration of
1866         `cleanup_and_exit'
1867         * src/roff/troff/input.cpp: Remove redundant declaration of
1868         `handle_first_page_transition' and `process_input_stack'.
1870         * src/utils/hpftodit.cpp: Some local variable renamings.
1872         * src/utils/indxbib/signal.c: Enclose functions with `extern "C"'
1873         for C++.
1874         Don't define RETSIGTYPE.
1875         * src/utils/indxbib/indxbib.cpp: Some local variable renamings.
1877         * src/utils/pfbtops/pfbtops.cpp: Don't use K&R style.
1878         (error): Use `const' in argument.
1879         (main): Remove redundant declaration of `optind'.
1880         Move declaration of `Version_string' to top-level.
1882         * PROBLEMS: Document difficulties compiling signal.c if a C++
1883         compiler is used for C.
1885 2004-04-07  Werner LEMBERG  <wl@gnu.org>
1887         * Makefile.sub (DISTCLEANFILES): Add `test-groff'.
1889 2004-04-06  Keith Marshall  <keith.d.marshall@ntlworld.com>
1891         Make scripts like nroff.sh and neqn.sh portable across various
1892         (Unix-like) shell implementations from Cygwin, MSYS, etc., which use
1893         non-POSIX path separators.  The idea is to extend those scripts to
1894         decide at run-time (of the script) which path separator to use.
1896         * arch/misc/Makefile.sub: New file.
1897         * arch/misc/shdeps.sh: New file, generating OS dependency fixups.
1898         This script handles @GROFF_BIN_PATH_SETUP@, replacing it with
1899         a proper definition of the variable `GROFF_RUNTIME'.
1901         * Makefile.in (SH_DEPS_SED_SCRIPT): New variable.
1902         (MDEFINES): Add SH_DEPS_SED_SCRIPT.
1903         (PROGDEPDIRS): New variable.
1904         `FORCE' it.
1905         (PROGDIRS): Add PROGDEPDIRS.
1907         * src/preproc/eqn/Makefile.sub (neqn): Call SH_DEPS_SED_SCRIPT.
1908         Don't substitute @SEP@ and @BINDIR@.
1909         * src/preproc/eqn/neqn.sh: Use @GROFF_BIN_PATH_SETUP@.
1910         (PATH): Use GROFF_RUNTIME.
1912         * src/roff/nroff/Makefile.sub (nroff): Call SH_DEPS_SED_SCRIPT.
1913         Don't substitute @SEP@ and @BINDIR@.
1914         * src/roff/nroff/nroff.sh: Use @GROFF_BIN_PATH_SETUP@.
1915         (PATH): Use GROFF_RUNTIME.
1917 2004-04-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1919         * src/roff/nroff/nroff.sh: Implement work-around for sh.exe from
1920         Cygwin which doesn't handle stderr correctly.
1922 2004-03-08  Werner LEMBERG  <wl@gnu.org>
1924         * Makefile.comm (install_dev, uninstall_dev): Protect `for' loops
1925         against empty argument.  Problem reported by <cgd@broadcom.com>.
1927 2004-03-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
1929         * Makefile.in (SEP): Replaced with...
1930         (RT_SEP, SH_SEP): Separators for the target platform's native path
1931         separator and the build environment, respectively.
1932         (fontpath, tmacpath): Use RT_SEP.
1933         (MDEFINES): Updated.
1935         * contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1936         * doc/Makefile.sub (GROFF_BIN_PATH): Use SH_SEP.
1937         * src/preproc/eqn/Makefile.sub (neqn): Use SH_SEP.
1938         * src/roff/nroff/Makefile.sub (nroff): Use SH_SEP.
1940 2004-03-05  Werner LEMBERG  <wl@gnu.org>
1942         * fonts/devlj4/Makefile.sub (LJ4RES): Set to 1200.  This helps to
1943         reduce alignment problems with newer printers which use built-in
1944         TrueType fonts (instead of the older Intellifonts).  The ideal
1945         solution is to provide a second set of groff metric files, but this
1946         is extremely time-consuming to produce, given that HP's metric
1947         files are very rudimentary.
1949 2004-03-01  Werner LEMBERG  <wl@gnu.org>
1951         * src/devices/grolj4/lj4.cpp (main): Fix argument of getopt_long.
1952         s/operand/argument/ in error message.
1954 2004-03-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
1956         * src/roff/groff/groff.cpp (main): Don't allow option -o if -Thtml
1957         is in use.
1959 2004-03-01  Antti Kantee  <pooka@netbsd.org>
1961         * tmac/s.tmac (XE): Fix error message.
1963 2004-02-27  Jeff Conrad  <jeff_conrad@msn.com>
1965         * src/include/nonposix.h (write, dup, dup2, close) [_MSC_VER]:
1966         New macros.
1968         * src/roff/groff/pipeline.c: Declare strcasecmp.
1969         (run_pipeline) [_WIN32]: Use function name variants which don't
1970         start with `_'.
1971         Fix stream handling.
1973 2004-02-27  Keith Marshall  <keith.d.marshall@ntlworld.com>
1975         * src/include/nonposix.h: Fix declaration of `system_shell_name'.
1976         Declare `spawnvp_wrapper' and macro definitions of spawnvp only
1977         for platforms which use the native Win32 runtime libraries.
1978         (FLUSH_INPUT_PIPE) [_UWIN]: Provide non-empty version.
1980         * src/libs/libgroff/quotearg.c (QUOTE_ARG_MALLOC_ERROR,
1981         QUOTE_ARG_REALLOC_ERROR): Fix string.
1983         * src/preproc/html/pre-html.cpp: Remove declaration of
1984         `spawnvp_wrapper'.
1985         Don't use __MINGW32__.
1986         s/DEBUG_FILE/DEBUG_FILE_DIR/.
1987         (DEBUG_TEXT, DEBUG_NAME, DEBUG_FILE) [DEBUGGING]: New macros.
1988         (OUTPUT_STREAM, PS_OUTPUT_STREAM, REGION_OUTPUT_STREAM): New macros.
1989         (char_buffer::run_output_filter) [MAY_FORK_CHILD_PROCESS]: Fix
1990         calls to `set_redirection' and `WAIT'.
1991         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Remove unused variable `i' and `j'.
1992         Fix calls to `set_redirection' and `save_and_redirect'.
1993         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Fix calls
1994         to `set_redirection' and `save_and_redirect'.
1995         (usage): Fix message.
1996         (makeTempFiles, main): Use `DEBUG_FILE'.
1998 2004-02-21  Werner LEMBERG  <wl@gnu.org>
2000         * src/roff/troff/troff.h (WARN_TOTAL): Fix value.
2002 2004-02-21  Keith Marshall  <keith.d.marshall@ntlworld.com>
2004         * src/libs/libgroff/quotearg.c: New file, providing proper argument
2005         quoting for MSVC's spawn* and exec* functions.
2006         * src/libs/libgroff/spawnvp.c: New file, providing a wrapper around
2007         spawnvp with proper quoting for MSVC.
2009         * src/libs/libgroff/assert.cpp (program_name),
2010         src/libs/libgroff/new.cpp (program_name): Declare as `extern "C"'.
2011         * src/libs/libgroff/Makefile.sub (OBJS, CSRCS): Updated.
2013         * src/roff/troff/input.cpp (program_name): Declare as `extern "C"'.
2015         * src/include/error.h (program_name): Declare as `extern "C"'.
2016         * src/include/nonposix.h [__MSDOS__ ...]: Handle spawnvp.
2018 2004-02-21  Jeff Conrad  <jeff_conrad@msn.com>
2020         * src/preproc/html/pre-html.cpp [__CYGWIN__ ...]: Declare
2021         spawnvp_wrapper.
2022         [MAY_SPAWN_ASYNCHRONOUS_CHILD]: Declare i and j.
2024 2004-02-20  Jeff Conrad  <jeff_conrad@msn.com>
2026         * src/roff/groff/pipeline.c (cmd) [__MSDOS__ || ...]: New global
2027         variable.
2028         (sbasename) [__MSDOS__ || ...]: New function.
2029         (system_shell_name) [__MSDOS__ || ...]: Use a different, more
2030         generic algorithm.
2031         (system_shell_dash_c, is_system_shell) [__MSDOS__ || ...]: Updated.
2032         (run_pipeline) [_WIN32]: Use _XXX variants for some macros instead
2033         of XXX.
2034         Use STDOUT_FILENO instead of hardcoded file handle.
2035         (signal_catcher) [__MSDOS__]: Moved to non-_WIN32 section.
2037 2004-02-19  Werner LEMBERG  <wl@gnu.org>
2039         * src/roff/troff/div.cpp: Include nonposix.h after troff.h to
2040         avoid warnings w.r.t. redefinition of P_tmpdir for some compilers.
2042 2004-02-18  Werner LEMBERG  <wl@gnu.org>
2044         * font/devlj4/Makefile.sub (DEVFILES): Updated to contain all
2045         new font and mapping files.
2047 2004-02-18  Jeff Conrad  <jeff_conrad@msn.com>
2048             Keith Marshall  <keith.d.marshall@ntlworld.com>
2050         * src/include/nonposix.h (FLUSH_INPUT_PIPE): New macro to empty
2051         an input pipe.  This is needed for the MSVC compiler to make troff's
2052         `-o' option work.
2054         * src/roff/troff/div.cpp: Include nonposix.h.
2055         (cleanup_and_exit): Call FLUSH_INPUT_PIPE.
2057 2004-02-17  Werner LEMBERG  <wl@gnu.org>
2059         * font/devlj4/generate/special.awk: New script.
2060         * font/devlj4/generate/Makefile (S): Use special.awk.
2061         * font/devlj4/*: Regenerated, including the following new files:
2062         Arial (AR, AB, AI, ABI), Times New Roman (TNRR, TNRB, TNRI, TNRBI),
2063         MS Symbol (SYMBOL), Wingdings (WINGDINGS).
2064         * NEWS: Document new lj4 fonts and revised hpftodit.
2066 2004-02-17  Paco Andrés Verdú  <pandres@dragonet.es>
2068         * src/devices/grolbp/lbp.h (vmdvarc): Fix formatting string.
2070 2004-01-25  Werner LEMBERG  <wl@gnu.org>
2072         * src/libs/libgroff/progname.cpp: Replaced with...
2073         * src/libs/libgroff/progname.c: New file.
2074         * src/libs/libgroff/Makefile.sub: Updated accordingly.
2076 2004-01-17  Werner LEMBERG  <wl@gnu.org>
2078         * font/devlj4/generate/Makefile (SYMBOL): Use 9nb28703.tfm.
2080 2004-01-16  Jeff Conrad  <jeff_conrad@msn.com>
2082         * font/devlj4/generate/wingdings.map,
2083         font/devlj4/generate/symbol.map: Include unnamed glyphs.
2084         Use groff glyph names where possible.
2085         * src/devices/grolj4/lj4_font.man: Minor updates.
2087 2004-01-13  Werner LEMBERG  <wl@gnu.org>
2089         * tmac/www.tmac (DC): Handle TTY devices.
2091         * doc/webpage.ms: Document viewCVS from ffii.org.
2092         * NEWS, README: Updated.
2094         * src/roff/groff/groff.man: Mention lj4_font man page.
2096         * font/devlj4/generate/Makefile (SYMBOLMAP, WINGDINGSMAP): New
2097         variables.
2098         (FONTS): Add SYMBOL and WINGDINGS.
2099         (SYMBOL, WINGDINGS): New targets.
2101 2004-01-13  Jeff Conrad  <jeff_conrad@msn.com>
2103         * src/devices/grolj4/lj4_font.man: New man page.
2104         * src/devices/grolj4/Makefile.sub (MAN5): New variable.
2105         * src/devices/grolj4.man: Mention lj4_font man page.
2107         * src/utils/hpftodit/hpftodit.cpp (read_map): Handle line comments.
2108         * src/utils/hpftodit/hpftodit.man: Document it.
2109         (CW): New macro.
2110         Remove details about fonts (which are now in lj4_font.man).
2112         * font/devlj4/generate/symbol.map,
2113         font/devlj4/generate/wingdings.map: New files.
2115 2004-01-12  Werner LEMBERG  <wl@gnu.org>
2117         * README: Mention ffii's viewcvs access.
2119 2004-01-09  Werner LEMBERG  <wl@gnu.org>
2121         * font/devlj4/generate/special.map: Map MSL 228 to U+221F.
2123 2004-01-09  Jeff Conrad  <jeff_conrad@msn.com>
2125         Revert most of the change from 2004-01-03 to better control used
2126         symbol sets.
2128         * src/utils/hpftodit/hpftodit.cpp (symbol_set): New structure.
2129         (text_symbol_sets, special_symbol_sets): New arrays.
2130         (symbol_set_table): New global variable.
2131         (read_symbol_sets): Use search order given in the text_symbol_sets
2132         and special_symbol_sets arrays.  If command line flag -a is not
2133         given, search both arrays.
2134         (output_charset): Require x_height_tag only for command line flag -i.
2136 2004-01-06  Werner LEMBERG  <wl@gnu.org>
2138         Implement string-valued registers \n[.m] and \n[.M] to return the
2139         name of the current drawing and background color, respectively.
2141         * src/roff/troff/symbol.h: Moved to...
2142         * src/include/symbol.h: Here.
2143         Small fixes to make it work outside of the `troff' directory.
2144         * src/roff/troff/symbol.cpp: Moved to...
2145         * src/libs/libgroff/symbol.cpp: Here.
2146         Small fixes to make it work outside of the `troff' directory.
2148         * src/include/Makefile.sub (HDRS), src/libs/libgroff/Makefile.sub
2149         (OBJS, CCSRCS), src/roff/troff/Makefile.sub (OBJS, CCSRCS, HDRS):
2150         Updated.
2152         * src/include/color.h: Include symbol.h.
2153         (color): Add new field `nm'.
2154         * src/libs/libgroff/color.cpp (color::color): Updated.
2156         * src/roff/troff/dictionary.cpp, src/roff/troff/div.cpp,
2157         src/roff/troff/node.cpp, src/roff/troff/number.cpp,
2158         src/roff/troff/reg.cpp: Don't include symbol.h.
2160         * src/roff/troff/env.cpp: Don't include symbol.h.
2161         (environment::get_glyph_color_string,
2162         environment_get_fill_color_string): New member functions.
2163         (init_env_requests): Handle `.m' and `.M' registers.
2164         * src/roff/troff/input.cpp: Don't include symbol.h.
2165         (default_symbol): Moved to symbol.cpp/symbol.h.
2166         (do_glyph_color, do_fill_color, define_color): Pass symbol name
2167         to color constructor.
2168         * src/roff/troff/env.h: Updated.
2170         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2171         Document new registers.
2173 2004-01-05  Werner LEMBERG  <wl@gnu.org>
2175         * src/roff/troff/node.cpp (space_node::get_breakpoints,
2176         space_node::nbreaks): Protect against zero `next' field.
2178 2004-01-03  Jeff Conrad  <jeff_conrad@msn.com>
2180         In hpftodit, use the symbol sets offered in the TFM.
2182         * src/utils/hpftodit/hpftodit.cpp (NO_GLYPH): New constant.
2183         (symbol_set, text_symbol_sets, special_symbol_sets,
2184         symbol_set_table): Removed.
2185         (get_printcode): Removed.
2186         (read_symbol_sets): Initialize `symbol_set' field with
2187         `NO_SYMBOL_SET'.
2188         Simplify code to just use the `kind' value.
2189         (output_charset): Improve output formatting.
2190         (dump_symbols): Simplified.
2192 2004-01-02  Werner LEMBERG  <wl@gnu.org>
2194         * font/devlj4/generate/text.map: Add more MSL numbers.
2196 2004-01-02  Jeff Conrad  <jeff_conrad@msn.com>
2198         * src/utils/hpftodit/hpftodit.cpp (is_decomposed): New macro.
2199         (text_symbol_sets): Add more symbol sets.
2200         (debug_flag): New static variable (moved from `main').
2201         (get_printcode, show_symset): New functions.
2202         (main): Remove `debug_flag'.
2203         (output_charset): Use `show_symset'.
2204         (dump_symbols):  Use `show_symset'.
2205         Print symsets for all glyphs.
2206         (read_map): Actually call `unicode_to_ucode_make' but this time
2207         correctly.
2209 2004-01-01  Werner LEMBERG  <wl@gnu.org>
2211         * font/devlj4/generate/text.map, font/devlj4/generate/special.map:
2212         Fix placement of comments.
2214 2004-01-01  Jeff Conrad  <jeff_conrad@msn.com>
2216         * src/utils/hpftodit/hpftodit.cpp (main): Read map file also if
2217         option `-d' is given.
2218         (output_charset): Improve warning messages to give more information.
2219         (dump_symbols): Make information more precise.
2220         (usage): Updated.
2221         (read_map): Don't call unicode_to_ucode_name; the glyph names must
2222         appear as-is and shouldn't be decomposed.
2224 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2226         * src/utils/hpftodit/hpftodit.cpp (dump_tags): Handle posture_tag.
2227         * font/devlj4/generate/Makefile (IFLAG): Updated to new units.
2228         (FONTS): Add TrueType font families Arial and Times New Roman.
2229         (TNRR, TNRB, TNRI, TNRBI, AR, AB, AI, ABI): New targets.
2230         * font/devlj4/generate/text.map: Fix Unicode values of `fi' and
2231         `fl'.
2233 2003-12-31  Jeff Conrad  <jeff_conrad@msn.com>
2235         * test-groff.in (SEP): Quote value.
2236         * src/roff/troff/node.cpp (suppress_node::tprint): Change type of
2237         `tem' to `char*' to avoid deallocation of a pointer to a constant
2238         object which some compilers don't like.
2240 2003-12-31  Werner LEMBERG  <wl@gnu.org>
2242         * font/devlj4/generate (text.map, special.map): Rewritten to work
2243         with the new hpftodit version.
2245 2003-12-30  Jeff Conrad  <jeff_conrad@msn.com>
2247         * src/utils/hpftodit/hpftodit.cpp (output_charset): Emit HP symbol
2248         set and 8bit character code for all glyphs also.
2250 2003-12-30  Werner LEMBERG  <wl@gnu.org>
2252         * src/libs/libgroff/strcasecmp.c: Updated from gnulib.
2254 2003-12-29  Werner LEMBERG  <wl@gnu.org>
2256         More fixes for MSVC compiler.
2258         * doc/Makefile.sub, contrib/mom/Makefile.sub (GROFF_BIN_PATH): Use
2259         $(SEP).
2261         * src/include/nonposix.h (STDIN_FILENO, STDOUT_FILENO,
2262         STDERR_FILENO) [_MSC_VER]: Define conditionally.
2263         (getpid) [_MSC_VER]: Remove.
2264         Include direct.h and process.h conditionally.
2266         * src/roff/troff/node.cpp (suppress_node::tprint): Don't use
2267         parentheses for a_delete.
2269         * src/utils/lookbib/lookbib.cpp: Include nonposix.h.
2271         * test-groff: Replaced with...
2272         * test-groff.in: This new template to handle path separator
2273         properly.
2275         * configure.ac: Check for direct.h and process.h.
2276         Generate test-groff script.
2277         * configure, src/include/config.hin: Regenerated.
2279 2003-12-28  Werner LEMBERG  <wl@gnu.org>
2281         Add integral extension glyph.
2282         Add new option `-x' to afmtodit to suppress use of built-in AGL.
2284         * font/devhtml/R.proto, font/devutf8/R.proto: Add `u23AE'.
2286         * font/devps/generate/textmap: Provide entry for `integralex' to
2287         override (old) PUA value of the AGL.
2288         * font/devps/generate/Makefile (SS): Add afmtodit option `-x'.
2289         * font/devps/*: Regenerated.
2291         * src/utils/afmtodit/afmtodit.pl: Add option `-x'.
2292         * src/utils/afmtodit/afmtodit.man, NEWS: Updated.
2294 2003-12-27  Werner LEMBERG  <wl@gnu.org>
2296         Add forgotten `coproduct' symbol (already available for DVI).
2298         * font/devhtml/R.proto, font/devps/generate/textmap,
2299         font/devps/symbolmap, font/devutf8/R.proto, man/groff_char.man,
2300         src/libs/libgroff/uniglyph.cc, src/libs/libgroff/glyphuni.cpp: Add
2301         U+2210 (\[coproduct]).
2303 2003-12-26  Jeff Conrad  <jeff_conrad@msn.com>
2305         hpftodit has been extended to handle TrueType metric files and
2306         more glyphs.  See hpftodit.man for more details.
2308         * src/utils/hpftodit/hpftodit.cpp: Include stdio.h, string.h, 
2309         ctype.h, and unicode.h.
2310         s/msl/charcode/ everywhere since we now handle Unicode values also.
2311         (equal, NO, YES, MSL, SYMSET, UNICODE, UNICODE): New macros.
2312         Use it where appropriate.
2313         (MULTIPLIER): Replaced with...
2314         (multiplier): New global static variable.
2315         (scale): Updated.
2316         (tag_type): Add more TFM tags.
2317         (tag_name): New array.
2318         (ENUM_TYPE, FLOAT_TYPE): Removed.
2319         (BYTE_TYPE): New value assigned.
2320         (ASCII_TYPE, RATIONAL_TYPE): New enumeration values.
2321         (text_symbol_sets, special_symbol_sets): Extended to cover more
2322         sets.
2323         (check_type): Add return value.
2324         (check_units): Add parameters to get ppi and upem values.
2325         Handle TrueType TFM data.
2326         (output_font_name): New function.
2327         (output_charset): Add parameter to handle TFM type.
2328         Handle TrueType TFMs also.
2329         (em_fract): New macro.
2330         (dump_tags): Be much more verbose and handle more tags.
2331         (dump_ascii, dump_symbol_sets, dump_symbols): New functions.
2332         (hp_msl_to_ucode_name, unicode_to_ucode_name, is_uname): New
2333         functions.
2334         (read_map): Add parameter to handle TFM type.
2335         Handle both MSL and Unicode mappings.
2336         (main): Add two new command line options `-a' and `-q'.
2337         Updated to make use of new functions.
2338         (usage): Updated.
2340         * src/utils/hpftodit/hpuni.cpp: New file.
2342         * src/utils/hpftodit/Makefile.sub, src/utils/hpftodit/hpftodit.man:
2343         Updated.
2345 2003-12-25  Werner LEMBERG  <wl@gnu.org>
2347         * src/include/nonposix.h (read) [_MSC_VER]: Define.
2349 2003-12-24  Werner LEMBERG  <wl@gnu.org>
2351         * src/utils/afmtodit/afmtodit.man: Some reformulations as suggested
2352         by Michail Vidiassov <master@iaas.msu.ru>.
2354 2003-12-20  Werner LEMBERG  <wl@gnu.org>
2356         * font/devhtml/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2357         and u0049_0307.
2358         Add missing latin-2 glyphs.
2359         * font/devutf8/R.proto: Add missing latin-2 glyphs.
2361         * tmac/troffrc: Load `composite.tmac' earlier.
2363         * tmac/dvi.tmac, tmac/ps.tmac, tmac/lbp.tmac: Add u00{47,67}_0306,
2364         u00{53,73}_0327, and u0049_0307.
2365         * tmac/X.tmac: Add u00{47,67}_0306.
2366         * tmac/tty-char.tmac: Use composite glyph names for readability.
2368         * NEWS: Updated.
2370         * src/include/unicode.h: Remove `extern' keywords.
2372 2003-12-20  Nilgün Belma Bugüner  <nilgun@superonline.com>
2374         * tmac/latin5.tmac: New file.
2376 2003-12-19  Werner LEMBERG  <wl@gnu.org>
2378         Add some glyphs needed for Turkish.
2380         * font/devutf8/R.proto: Add u00{47,67}_0306, u00{53,73}_0327,
2381         and u0049_0307.
2383         * tmac/composite.tmac: Add `,' as a synonym for `ac' accent. 
2384         * tmac/tty-char.tmac: Add representations for u00{47,67}_0306,
2385         u00{53,73}_0327, and u0049_0307.
2387 2003-12-18  Werner LEMBERG  <wl@gnu.org>
2389         * src/devices/grops/ps.cc (ps_output::put_float): Revert change
2390         from 2001-10-04.
2391         Remove trailing zeros.
2393 2003-12-17  Werner LEMBERG  <wl@gnu.org>
2395         Make \? transparent to end-of-sentence recognition.
2397         * src/roff/troff/input.cc (non_interpreted_node): Add
2398         `ends_sentence' member function.
2400 2003-12-16  Werner LEMBERG  <wl@gnu.org>
2402         * doc/groff.texinfo: Document `dt' request correctly.
2403         Other minor typographical improvements.
2405 2003-12-10  Michail Vidiassov  <master@iaas.msu.ru>
2407         * src/utils/afmtodit/Makefile.sub (afmtodit): Fix typo.
2409 2003-12-10  Richard Stallman  <rms@gnu.org>
2411         * LICENSE: Better wording.
2413 2003-12-09  Werner LEMBERG  <wl@gnu.org>
2415         * aclocal.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Set default value to 0.
2416         * configure, NEWS: Updated.
2418 2003-12-08  Werner LEMBERG  <wl@gnu.org>
2420         * FDL: Updated to version 1.2 (from www.gnu.org/copyleft).
2422 2003-12-07  Bernd Warken  <bwarken@mayn.de>
2424         * LICENSE: Updated.
2426 2003-12-07  Werner LEMBERG  <wl@gnu.org>
2428         * INSTALL: Improved.
2430 2003-12-05  Keith Marshall  <keith.d.marshall@ntlworld.com>
2432         Use path separator character of target platform for compiled-in
2433         default paths.
2435         * aclocal.m4 (GROFF_TARGET_PATH_SEPARATOR): New macro.
2436         * configure.ac: Use GROFF_TARGET_PATH_SEPARATOR.
2437         * configure: Regenerated.
2438         * Makefile.in (SEP): Use GROFF_PATH_SEPARATOR.
2440 2003-12-05  Werner LEMBERG  <wl@gnu.org>
2442         * src/include/nonposix.h (PATH_SEP_CHAR): New definition.
2443         Replace `PATH_SEP[0]' with `PATH_SEP_CHAR' everywhere.
2445 2003-12-04  Bernd Warken  <bwarken@mayn.de>
2447         * LICENSE: New file.
2449 2003-12-03  Werner LEMBERG  <wl@gnu.org>
2451         * src/utils/afmtodit/afmtodit.pl: Comment out code which handles
2452         ligatures present in AFM files since groff currently only
2453         understands some standard ligatures and nothing else.
2455 2003-12-03  Jeff Conrad  <jeff_conrad@msn.com>
2457         * src/roff/groff/groff.cpp (main): Don't run the spooler if
2458         option -v is given.
2460         * src/roff/groff/pipeline.c (run_pipeline) [_WIN32]: Fix error
2461         messages.
2462         Close stdout copy.
2463         Don't use Unix wait flags.
2465 2003-12-02  Werner LEMBERG  <wl@gnu.org>
2467         * src/roff/troff/glyphuni.cpp, src/roff/troff/unicode.cpp,
2468         src/roff/troff/unicode.h, src/roff/troff/uniglyph.cpp,
2469         src/roff/troff/uniuni.cpp: Moved to...
2470         * src/libs/libgroff/glyphuni.cpp, src/libs/libgroff/unicode.cpp,
2471         src/libs/libgroff/unicode.h, src/libs/libgroff/uniglyph.cpp,
2472         src/libs/libgroff/uniuni.cpp: Here.
2474         * src/include/Makefile.sub.old (HDRS),
2475         src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
2476         src/roff/troff/Makefile.sub (HDRS, PBJS, CCSRCS): Updated.
2478 2003-12-01  Keith Marshall  <keith.d.marshall@ntlworld.com>
2480         * src/preproc/htlp/pre-html.cpp (__tmpfile): Renamed to
2481         `DEBUG_FILE'.
2482         Updated all users.
2484 2003-12-01  Werner LEMBERG  <wl@gnu.org>
2486         * groff.texinfo: Document special behaviour of `.vs 0'.
2487         Improve documentation of `cflags' request.
2488         * NEWS: Updated.
2490 2003-11-29  Werner LEMBERG  <wl@gnu.org>
2492         * font/devlj4/generate/Makefile (CORONET): Use correct TFM.
2493         * font/devlj4/CORONET: Regenerated.
2495 2003-11-24  Werner LEMBERG  <wl@gnu.org>
2497         * src/roff/troff/env.cpp (hyphen_trie::read_patterns_file): Fix loop
2498         if processing hyphenation patterns in traditional mode.
2499         Improve error messages.
2501 2003-11-20  Werner LEMBERG  <wl@gnu.org>
2503         * src/roff/troff/node.cpp (troff_output_file::put_char_width,
2504         troff_output_file::put_char): Fix type of local variable `c'.
2506 2003-11-19  Werner LEMBERG  <wl@gnu.org>
2508         * src/roff/groff/pipeline.c (P): Removed.  Updated all function
2509         declarations.
2510         (i_to_a): Removed.  libgroff already provides this function.
2511         (run_pipeline) [_WIN32]: Don't use itoa but i_to_a.
2513 2003-11-18  Keith Marshall  <keith.d.marshall@ntlworld.com>
2515         * src/roff/groff/pipeline.c (xstrsignal): Fix usage of
2516         HAVE_DECL_SYS_LIST.
2518 2003-11-17  Werner LEMBERG  <wl@gnu.org>
2520         * COPYING: Use correct version.
2522 2003-11-11  Werner LEMBERG  <wl@gnu.org>
2524         LynxOS 4.0.0 doesn't declare vfprintf.
2526         * configure.ac: Check for vfprintf.
2527         * configure: Regenerated.
2528         * src/include/lib.h: Handle `NEED_DECLARATION_VFPRINTF'.
2529         * src/include/config.hin: Regenerated.
2531 2003-11-10  Werner LEMBERG  <wl@gnu.org>
2533         LynxOS 4.0.0 has snprintf (without declaration) but no vsnprintf.
2535         * configure.ac: Check for vsnprintf.
2536         * configure: Regenerated.
2537         * src/include/lib.h: Handle `NEED_DECLARATION_VSNPRINTF' and
2538         `HAVE_VSNPRINTF'.
2539         * src/include/config.hin: Regenerated.
2541 2003-11-09  Werner LEMBERG  <wl@gnu.org>
2543         * aclocal.m4: Updated syntax to autoconf 2.59.
2544         (GROFF_HTML_PROGRAMS): Use AC_FOREACH.
2545         Don't check for gsos2.
2546         (GROFF_SRCDIR, GROFF_BUILDDIR): Removed.  autoconf 2.59 provides
2547         working abs_top_srcdir and abs_top_builddir.
2549         * configure.ac: Updated syntax to autoconf 2.59.
2550         Don't call GROFF_SRCDIR and GROFF_BUILDDIR.
2551         Replace call to AC_DECL_SYS_SIGLIST with call to AC_CHECK_DECLS.
2552         * configure: Regenerated.
2554         * Makefile.in, doc/Makefile.in: s/@top_srcdir@/@abs_top_srcdir@/,
2555         s/@groff_top_builddir@/@abs_top_builddir@/.
2557         * src/roff/groff/pipeline.c (xstrsignal):
2558         s/SYS_SIGLIST_DECLARED/HAVE_DECL_SYS_SIGLIST/.
2560 2003-11-07  Werner LEMBERG  <wl@gnu.org>
2562         * src/devices/grodvi/dvi.cpp (draw_dvi_printer::draw) ['a']: Always
2563         make start angle smaller than end angle to circumvent a bug in tpic
2564         handling of some versions of dvipdfm (and dvipdfmx).
2566 2003-10-30  Werner LEMBERG  <wl@gnu.org>
2568         * src/devices/grops/grops.man: Improve section on creating EPS.
2570 2003-10-29  Werner LEMBERG  <wl@gnu.org>
2572         * contrib/pic2graph/pic2graph.sh: Fix typo (-P-letter ->
2573         -P-pletter).
2575 2003-10-28  Werner LEMBERG  <wl@gnu.org>
2577         * doc/groff.texinfo: Fix documentation of `.if'.
2579 2003-10-27  Michail Vidiassov  <master@iaas.msu.ru>
2581         * src/utils/afmtodit/afmtodit.pl: Handle unmapped characters of
2582         the form `uniXXXX' also.
2584 2003-10-27  Werner LEMBERG  <wl@gnu.org>
2586         * contrib/eqn2graph/eqn2graph.sh, contrib/grap2graph/grap2graph.sh,
2587         contrib/pic2graph/pic2graph.sh: Implement secure management of
2588         temporary files.
2589         Pass `-P-pletter' to groff to avoid data outside of the converted
2590         area -- some versions of `convert' (for example 5.3.8) don't check
2591         the bounding box of the image but always use a fixed image size
2592         (letter paper format).
2593         * contrib/eqn2graph/eqn2graph.man, contrib/grap2graph/grap2graph.man,
2594         contrib/pic2graph/pic2graph.man: Updated.
2596         * src/roff/groff/groff.man: Document $TMP and $TEMP.
2598 2003-10-26  Werner LEMBERG  <wl@gnu.org>
2600         * src/preproc/pic/troff.cpp (troff_output::simple_circle,
2601         troff_output::simple_ellipse, troff_output::simple_arc,
2602         troff_output::simple_line, troff_output::simple_spline,
2603         troff_output::simple_polygon): Insert a space before arguments.
2604         (troff_output::set_fill): Emit `\&' before `\D'Fg...' since the
2605         latter doesn't produce a node, so the following `.sp -1' would do
2606         the wrong thing.
2607         Don't emit `.sp -1' after \M.  This also doesn't produce a token
2608         (and we don't have to care about compatibility mode).
2609         (troff_output::set_color, troff_output::reset_color): Don't emit
2610         `.sp -1' after \M and \m.
2612         * src/roff/troff/input.cpp (old_have_input): New global variable.
2613         (input_stack::get): Handle `old_have_input'.
2614         (process_input_stack) <token::TOKEN_NEWLINE>: Call
2615         `trapping_blank_line' depending on `old_have_input', not
2616         `have_input'.
2618 2003-10-20  Keith Marshall  <keith.d.marshall@ntlworld.com>
2620         * src/libs/libgroff/tmpfile.cpp [__MSDOS__, _Win32]
2621         (WIN32_TMPDIR_ENVVAR, MSDOS_TMPDIR_ENVVAR): New macros, providing
2622         default directory names for temporary files.
2623         [__MSDOS__, _Win32] (temp_init::temp_init): Use them.
2625         * src/roff/groff/pipeline.c [__MSDOS__]: Include stdlib.h.
2626         [__MSDOS__] (run_pipeline): Honour environment variables.
2627         Don't use `tmpnam' but `tempnam' to work around messy
2628         implementation.
2630         * README.MinGW: New file.
2632 2003-10-16  Werner LEMBERG  <wl@gnu.org>
2634         * src/preproc/html/pre-html.cpp (write_upto_newline): Don't use
2635         `(*t)->next' without testing validity of `*t'.
2636         (usage): Make it more readable.
2638 2003-10-16  Keith Marshall  <keith.d.marshall@ntlworld.com>
2640         Make html device run under both MS-DOS and Win32.
2642         * src/preproc/html/pre-html.cpp (MAY_FORK_CHILD_PROCESS,
2643         MAY_SPAWN_ASYNCHRONOUS_CHILD): New macros to control whether
2644         spawn or fork+exec has to be used, and whether parent must sleep
2645         until the child process terminates.  Used in
2646         `char_buffer::run_output_filter'.
2647         (copyofstdoutfd): Removed.
2648         (char_buffer): Replace `write_file_html' and `write_file_troff'
2649         member functions with `emit_troff_output' and `run_output_filter'.
2650         (DEVICE_FORMAT, HTML_OUTPUT_FILTER, IMAGE_OUTPUT_FILTER): New
2651         macros.
2652         (replaceFd): Replaced with...
2653         (set_redirection): New auxiliary function.
2654         (waitForChild): Replaced with...
2655         (save_and_redirect): New auxiliary function for.
2657         (char_buffer::do_html, char_buffer::do_image): Simplified, using new
2658         functions.
2660 2003-10-14  Keith Marshall  <keith.d.marshall@ntlworld.com>
2662         * aclocal.m4 (GROFF_SYS_NERR): Check stdlib.h also.
2663         (GROFF_LIBC): New function.
2664         * configure.ac: Call GROFF_LIBC.
2665         Check for `kill'.
2666         * configure: Regenerated.
2668         * src/include/lib.h: Handle __MINGW32__.
2669         * src/include/nonposix.h [_MSC_VER]: Handle __MINGW32__.
2670         Add macro for `pipe'.
2671         Define P_tmpdir.
2673         * src/roff/groff/pipeline.c (run_pipeline): Handle `no_pipe'
2674         correctly.
2676         * src/utils/indxbib/signal.c (handle_fatal_signal) [!HAVE_KILL]:
2677         Implement.
2679 2003-10-13  Werner LEMBERG  <wl@gnu.org>
2681         Finally fix change 2003-08-26, based on ideas from Chuck Silvers
2682         <chuq@chuq.com>.
2684         * contrib/mom/Makefile.sub: Use a stamp file in the `examples'
2685         directory.
2687 2003-10-12  Werner LEMBERG  <wl@gnu.org>
2689         * src/roff/groff/groff.cpp (help), src/devices/grops/ps.cpp (usage),
2690         src/roff/troff/input.cc (usage): Updated.
2692         * NEWS, doc/groff.texinfo: Updated.
2694 2003-10-12  Peter Miller  <millerp@canb.auug.org.au>
2696         * src/libs/libgroff/searchpath.cpp
2697         (search_path::open_file_cautious): New function which also handles
2698         `-' as stdin and stdout depending on the access mode.
2699         * src/include/searchpath.h (search_path): Updated.
2701         * src/devices/grops/ps.cpp (main): Handle new `-I' switch.
2702         * src/devices/grops/ps.h: Include `searchpath.h'.
2703         * src/devices/grops/psrm.cpp (resource_manager::supply_resource):
2704         Open resource file with `include_search_path.open_file_cautious'.
2705         * src/devices/grops/grops.man: Document new `-I' switch.
2707         * src/devices/grodvi/dvi.cpp (main), src/devices/grolbp/lbp.cpp
2708         (main), src/devices/grolj4/lj4.cpp (main),
2709         src/devices/grotty/tty.cpp (main): Ignore new `-I' switch.
2711         * src/preproc/soelim/soelim.cpp (include_list_length, include_list):
2712         Replaced with...
2713         (include_search_path): New global variable.
2714         (include_path_append): Removed.
2715         (main): Use `include_search_path.command_line_dir' to handle `-I'.
2716         (do_file): Simplify, using new
2717         `include_search_path.open_file_cautious'.
2719         * src/roff/groff/groff.cpp (print_commands): Accept file handle as
2720         parameter.
2721         (main): Pass arguments to `-I' to both troff and devices.
2722         Improve handling of `-V'.
2723         * src/roff/groff/groff.man: Document changes to -I and -V.
2725         * src/roff/troff/input.cpp (include_search_path): New global
2726         variable.
2727         (next_file, source, ps_bbox_request, transparent_file,
2728         process_input_file): Use new
2729         `include_search_path.open_file_cautious'.
2730         (main) Handle `-I' switch.
2731         * src/roff/troff/node.cpp (troff_output_file::really_copy_file):
2732         Use new `include_search_path.open_file_cautious'.
2733         * src/roff/troff/node.h: New extern symbol `include_search_path'.
2734         * src/roff/troff/troff.man: Document new `-I' switch.
2736 2003-09-15  Ruslan Ermilov  <ru@FreeBSD.org>
2738         Support multiple calls of .Lb in LIBRARY section.
2740         * tmac/doc-common (doc-in-library-section): New register.
2741         (doc-section-library): New string.
2742         (Sh): Set `doc-in-library-section'.
2743         (Rd): Updated.
2744         * tmac/doc-syms (Lb): Insert breaks before and after arguments
2745         if in LIBRARY section.
2746         * tmac/doc.tmac (doc-save-global-vars): Updated.
2747         * NEWS, tmac/groff_mdoc.man: Updated.
2749 2003-09-14  Ruslan Ermilov  <ru@FreeBSD.org>
2751         * tmac/doc-common (doc-default-operating-system): New variable.
2752         (Os): Use it.
2754 2003-09-08  Werner LEMBERG  <wl@gnu.org>
2756         * tmac/doc.tmac (doc-reset-reference): Handle data for `%I' also.
2758 2003-08-31  Werner LEMBERG  <wl@gnu.org>
2760         * contrib/mom/Makefile.sub: Fix last change to make it really work.
2761         * Makefile.comm: Use `test ... ||' in favor of `if test ...; then'.
2762         (install_dev, uninstall_dev): Check whether $(DEVSCRIPTS) and
2763         $(DEVFILES) are not empty.
2764         * Makefile.in: Use `test ... ||' in favor of `if test ...; then'.
2766 2003-08-26  Chuck Silvers  <chuq@chuq.com>
2768         * contrib/mom/Makefile.sub (prepare_make_examples): Make it work
2769         with parallel runs of `make'.
2771 2003-08-23  Stephen Gildea  <http://www.gildea.com/stephen>
2773         * src/preproc/ref/ref.cpp (reference::compute_sort_key): Always
2774         insert SORT_SEP.  With certain combinations of sort specifications,
2775         refer sorted entries in the wrong order.  In particular, entries
2776         with a missing field should be be sorted before all entries that
2777         have that field, before refer looks to the next field.
2779 2003-08-23  Werner LEMBERG  <wl@gnu.org>
2781         * src/utils/pfbtops/Makefile.sub (LINK.c): Define it so that the
2782         g++ linker is used.  Reported by Mark J. Reed
2783         <mark.reed@turner.com>.
2785 2003-08-16  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2787         Add key character `x' to tbl which makes tbl call a user-defined
2788         macro on a table cell.
2790         * src/preproc/tbl/table.h (entry_modifier): Add `macro'.
2791         * src/preproc/tbl/table.cpp (block_entry::do_divert): Call
2792         `set_modifier' after printing the compatibility request.
2793         (set_modifier): Print call to `m->macro' if not empty.
2794         * src/preproc/tbl/main.cpp (entry_format::debug_print): Handle
2795         `macro'.
2796         (process_format): Implement cases `x' and `X'.
2797         * src/preproc/tbl/tbl.man, NEWS: Updated.
2799 2003-08-15  Werner LEMBERG  <wl@gnu.org>
2801         * doc/groff.texinfo: Minor fixes.
2803 2003-08-09  Werner LEMBERG  <wl@gnu.org>
2805         * tmac/an-old.tmac [cR]: Fix redefinition of `bp'.
2807 2003-08-07  Werner LEMBERG  <wl@gnu.org>
2809         * doc/Makefile.sub: Not all shells expand wildcards in the `for'
2810         argument list to nothing if there is no file to match.  Use `ls' as
2811         a protection, similar to autoconf.
2813         * Makefile.comm (install_dev, uninstall_dev): Protect `for' against
2814         empty argument lists.
2816         * doc/groff.texinfo: Improve documentation how vertical spacing
2817         and line breaks interact.
2818         Other minor fixes.
2820         * tmac/www.tmac: Initialize `www-htmlimage-gap'.
2822 2003-08-03  Werner LEMBERG  <wl@gnu.org>
2824         * NEWS, src/devices/grops/grops.man: -b16 is necessary to produce
2825         EPS (using eps2eps or similar programs to compute the bounding box).
2827 2003-07-24  Werner LEMBERG  <wl@gnu.org>
2829         * doc/groff.texinfo: Use the new @/ command to avoid overlong lines.
2830         * doc/texinfo.tex: Updated from texinfo 4.6.
2831         * README.CVS: From now on we need texinfo 4.6.
2833 2003-07-23  Werner LEMBERG  <wl@gnu.org>
2835         Add requests `dei1' and `ami1' for completeness.
2837         * src/roff/troff/input.cc (calling_mode): Remove
2838         CALLING_DISABLE_COMP.
2839         (comp_mode): New enumeration.
2840         (do_define_string, define_string, define_nocomp_string,
2841         append_string, append_nocomp_string): Updated.
2842         (do_define_macro): Add third parameter.
2843         (define_macro, define_nocomp_macro, define_indirect_macro,
2844         append_macro, append_nocomp_macro, append_indirect_macro): Updated.
2845         (define_indirect_nocomp_macro, append_indirect_nocomp_macro): New
2846         functions.
2847         (ignore): Updated.
2848         (init_input_requests): Add `dei1' and `ami1'.
2850         * tmac/trace.tmac: Handle de1 and am1.
2851         (de): Improve tracing message.
2852         (am): Add missing `do'.
2853         (return): Use de1.
2855         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
2856         Document new requests.
2858 2003-07-22  Heinz-Jürgen Oertel  <hj.oertel@surfeu.de>
2860         Add option -G to .MPIMG to insert a gap between text and the image.
2862         * tmac/www.tmac (www-finish-left-po, www-finish-right-ll,
2863         www-finish-left-ll): Updated.
2864         (www-image-just, www-image-gap, www-htmlimage-gap): New variables.
2865         (MPIMG): Make option -L and -R optional.
2866         Implement option -G.
2868 2003-07-22  Gaius Mulley  <gaius@glam.ac.uk>
2870         * src/devices/grohtml/post-html.cpp
2871         (html_printer::do_file_components): Don't use `stdout' as lvalue
2872         since it can be a macro.
2874 2003-07-22  Werner LEMBERG  <wl@gnu.org>
2876         * src/libs/libgroff/strerror.c: Include errno.h to be in sync with
2877         the corresponding test in aclocal.m4.
2879 2003-07-21  Werner LEMBERG  <wl@gnu.org>
2881         * src/preproc/html/pre-html.cpp (TRANSPARENT): Don't use colour
2882         names but RGB values directly.  Otherwise pnmtopng depends on
2883         an external file `rgb.txt' which maps colour names to values.
2885 2003-07-20  Werner LEMBERG  <wl@gnu.org>
2887         * aclocal.m4 (GROFF_SYS_ERRLIST): Include stdlib.h for MinGW.
2888         * configure, src/include/config.hin: Regenerated.
2890         * src/libs/libgroff/strerror.c: Include stdlib.h for MinGW.
2892 2003-07-19  Werner LEMBERG  <wl@gnu.org>
2894         * PROBLEMS: Add solution for UTF-8 problem with hyphens.
2896 2003-07-18  Werner LEMBERG  <wl@gnu.org>
2898         * *.man: Switch to non-compatibility mode temporarily if GNU
2899         syntax extensions are used in the particular man page.
2901         * PROBLEMS: Add solutions for SGR problems.
2903 2003-07-17  Werner LEMBERG  <wl@gnu.org>
2905         Don't ignore grotty's command line options if \X'tty: sgr ...' is
2906         used to change the drawing scheme.
2908         * src/devives/grotty/tty.cpp (bold_flag_option,
2909         underline_flag_option, italic_flag_option, reverse_flag_option,
2910         bold_underline_mode_option): New global variables.
2911         (update_options): New function.
2912         (tty_printer::special): Call update_options.
2913         (main): Don't set xxx_flag but xxx_flag_option, then call
2914         update_options.
2916 2003-07-14  Werner LEMBERG  <wl@gnu.org>
2918         Make grotty emit proper Unicode box drawing characters for -Tutf8.
2920         * src/devices/grotty/tty.cpp (START_LINE, END_LINE): New enum
2921         values.
2922         (hline_char, vline_char): New global variables.
2923         (tty_printer::tty_printer): Initialize them.
2924         (tty_printer::draw): Emit START_LINE and END_LINE flags for both
2925         horizontal and vertical lines.
2926         (crossings): New global array.
2927         (tty_printer::end_page): Use it to determine the proper crossing
2928         character for -Tutf8.
2930 2003-07-12  Werner LEMBERG  <wl@gnu.org>
2932         * doc/Makefilesub (HTMLDOCFILESALL): New macro.
2933         (HTMLDOCFILES): Revert to `pic.html'.
2934         (CLEANADD, install_html, uninstall_sub): Use HTMLDOCFILESALL.
2936 2003-07-11  Werner LEMBERG  <wl@gnu.org>
2938         * doc/pic.ms: Improve documentation of absolute coordinates.
2939         Document absolute positioning of pictures.
2941         * NEWS: Add new pic capability.
2943 2003-07-09  Hartmut Henkel  <hartmut_henkel@gmx.de>
2945         * src/libs/libgroff/geometry.cpp (check_output_arc_limits):
2946         Rewritten.
2948 2003-07-07  Werner LEMBERG  <wl@gnu.org>
2950         Implement support for dashed and dotted ellipses in pic.  Based on
2951         a patch from Hartmut Henkel <hartmut_henkel@gmx.de>.
2953         * src/preproc/pic/common.cpp (common_output::ellipse_arc,
2954         common_output::dashed_ellipse, common_output::dotted_ellipse): New
2955         functions.  Ellipse arcs are approximated with circle arcs.
2956         * src/preproc/pic/common.h (common_output): Updated.
2957         * src/preproc/pic/tex.cpp (tex_output::ellipse): Use new ellipse
2958         functions.
2959         * src/preproc/pic/troff.cpp (simple_output::ellipse): Ditto.
2961         * src/preproc/pic/TODO, src/preproc/pic/pic.man: Updated.
2963 2003-07-06  Werner LEMBERG  <wl@gnu.org>
2965         Make grotty work on platforms which have unsigned char as the
2966         default for char.  Based on a patch by Thomas Klausner
2967         <wiz@netbsd.org>.
2969         * src/devices/grotty/tty.cpp (schar): New typedef.
2970         Updated calls to declare_ptable and implement_ptable.
2971         (glyph): Use schar for back_color_idx and fore_color_idx.
2972         (tty_printer): Use schar for curr_fore_idx and curr_back_idx.
2973         (tty_printer::tty_color, tty_printer::tty_printer,
2974         tty_printer::color_to_idx, tty_printer::put_color): Updated.
2976 2003-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
2978         * src/roff/nroff/nroff.sh: Add option -d for completeness.
2979         * src/roff/nroff/nroff.man: Updated.
2981 2003-07-05  Werner LEMBERG  <wl@gnu.org>
2983         * NEWS, tmac/groff_www.man: Updated.
2984         * doc/Makefile.sub: Updated.
2986 2003-07-05  Gaius Mulley  <gaius@glam.ac.uk>
2988         Implement support for multiple HTML output files.
2990         * src/preproc/html/pre-html.cpp (scanArguments): Dummy handling for
2991         -j command line option.
2993         * src/devices/grohtml/post-html.cpp (job_name, multiple_files): New
2994         global variables.
2995         (file): New fields `new_output_file', `require_links',
2996         `output_file_name'.
2997         (file::file): Updated.
2998         (files::set_file_name, files::set_links_required,
2999         files::are_links_required, files::is_new_output_file,
3000         files::file_name, files::next_file_name): New functions.
3001         (header_desc): New fields `no_of_level_one_headings',
3002         `header_filename'.
3003         (header_desc::header_desc): Updated.
3004         (header_desc::write_headings): Handle multiple files.
3005         (html_printer::write_header): Save file name in which header occurs.
3006         (html_printer::determine_header_level): Possibly split files on
3007         level one headings.
3008         (html_printer::do_links, html_printer::troff_tag): Updated.
3009         (html_printer::insert_split_file, html_printer::do_job_name,
3010         html_printer::emit_link, html_printer::write_navigation,
3011         html_printer::do_file_components): New functions.
3012         (html_printer::~html_printer): Handle multiple files.
3013         (main): Handle command line option `-j'.
3015         * src/devices/grohtml/grohtml.man: Updated.
3017         * doc/Makefile.sub (pic.html), doc/Makefile.in (pic.html): New rule
3018         which splits file.
3020         * tmac/www.tmac (JOBNAME): New macro.
3021         * tmac/s.tmac (SH-NO-TAG): New macro.
3022         (@SH): Call SH-NO-TAG.
3023         (@NH): Updated.
3025 2003-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
3027         * tmac/groff_mdoc.man: Improve documentation of punctuation
3028         characters.
3030 2003-07-04  Ruslan Ermilov  <ru@FreeBSD.org>
3032         * tmac/doc.tmac (Bd): Change to doc-Li-font later.
3034 2003-07-03  Werner LEMBERG  <wl@gnu.org>
3036         * tmac/an-old.tmac [cR]: Redefine `bp' to avoid empty lines.
3038 2003-07-01  Ruslan Ermilov  <ru@FreeBSD.org>
3040         * tmac/doc.tmac (doc-do-func, doc-do-func-args): Don't print a comma
3041         after `/*' and `*/'.
3042         Fix spacing.
3043         (Fn, Fo): Reduce indentation in synopsis.
3045         * tmac/doc-common (doc-check-depth): New macro.
3046         (doc-end-macro, Sh, Ss): Use it.
3047         (Cd): Fix behaviour in synopsis.
3048         (In): Make it parsed and callable.
3049         If not in the synopsis, represent the C header file enclosed in
3050         angle brackets.
3051         (doc-str-Rv-std-suffix, doc-str-Rv-stds-suffix, doc-str-Rv-std0):
3052         Use minus, not hyphen.
3054         * tmc/groff_mdoc.man: Updated.
3056 2003-07-01  Werner LEMBERG  <wl@gnu.org>
3058         Integrated grap2graph, contributed by Eric S. Raymond.
3060         * contrib/grap2graph/{Makefile.sub, grap2graph.sh, grap2graph.man}:
3061         New files.
3062         * Makefile.in, NEWS, MANIFEST, contrib/eqn2graph.man,
3063         contrib/pic2graph.man, src/roff/groff/groff.man: Updated.
3065 2003-07-01  Colin Watson  <cjwatson@debian.org>
3067         * src/xditview/*.c: Add prototypes, fix return types, add includes.
3068         Based on work by Fumitoshi UKAI <ukai@debian.or.jp>.
3070 2003-06-31  Ruslan Ermilov  <ru@FreeBSD.org>
3072         * tmac/tty-char.tmac: Provide `lb', `rb', `lk', `rk', `lt', `rt'.
3074 2003-06-31  Werner LEMBERG  <wl@gnu.org>
3076         * doc/Makefile.sub (CLEANADD): Remove all files created by
3077         running `make groff.{pdf,dvi}'.
3079         * Makefile.sub (DISTCLEANFILES): Remove all non-source files from
3080         src/xditview also.
3082 2003-06-30  Werner LEMBERG  <wl@gnu.org>
3084         * Makefile.in (SHELL): Define as @SHELL@.
3085         (mkinstalldirs): Use $(SHELL).
3086         (MDEFINES): Add $(SHELL).
3087         * Makefile.comm (SHELL): Removed.
3089 2003-06-29  Werner LEMBERG  <wl@gnu.org>
3091         * tmac/s.tmac (De, Ds): New aliases for .DE and .DS, respectively.
3092         The X11 documentation files use them.
3093         * tmac/groff_ms.man, doc/groff.texinfo: Document them.
3095 2003-06-15  Robert Goulding  <goulding@Princeton.EDU>
3097         * tmac/e.tmac (@C): Handle .ad also.
3099 2003-06-12  Werner LEMBERG  <wl@gnu.org>
3101         * src/preproc/tbl/tbl.man: Document formatting of text blocks.
3103         * src/roff/troff/input.cc (token::next) <handle_escape_char>:
3104         Assign `n' even here.  It is possible to construct a node
3105         immediately following an escape character:
3107           .di xx
3108           \?\\\?a
3109           .br
3110           .di
3111           .xx
3113 2003-06-10  Werner LEMBERG  <wl@gnu.org>
3115         * README.WIN32: Removed.
3116         * MANIFEST: Updated.
3118 2003-06-07  Werner LEMBERG  <wl@gnu.org>
3120         * src/roff/nroff/nroff.sh: Don't emit SGR for option -u.
3122 2003-06-05  Werner LEMBERG  <wl@gnu.org>
3124         * src/preproc/pic/pic.y <sprintf_args>: Implement workaround for bug
3125         in Compaq C++ V6.5-033 for Compaq Tru64 UNIX V5.1A (Rev. 1885).
3127 2003-06-03  Werner LEMBERG  <wl@gnu.org>
3129         * src/preproc/grn/hdb.cpp (DBRead): Don't close file handle; this
3130         is done by the calling function.
3132 2003-05-22  Ruslan Ermilov  <ru@FreeBSD.org>
3134         * tmac/X.tmac: Fix definition of `em'.
3136 2003-05-22  Werner LEMBERG  <wl@gnu.org>
3138         * src/roff/troff/input.cc (return_macro_request): Fix detection of
3139         argument.
3141 2003-05-18  Werner LEMBERG  <wl@gnu.org>
3143         * tmac/doc.tmac (doc-tag-list): Force horizontal mode after tag
3144         to make items work which consist only of a tag.
3146 2003-05-17  Werner LEMBERG  <wl@gnu.org>
3148         * tmac/doc.tmac (doc-tag-list): Don't use \Z to assure that spaces
3149         aren't stretched in a tag (this can fail with unformatted boxes).
3150         Instead, insert a break and go back one line.
3152 2003-05-16  Werner LEMBERG  <wl@gnu.org>
3154         * src/roff/troff/input.cc (return_macro_request): If called with
3155         argument pop macro twice.  We need this to trace `return'.
3157         * tmac/trace.tmac: Handle `return'.
3158         Fix typos.
3160         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3161         Document.
3163 2003-05-15  Larry Kollar  <kollar@alltel.net>
3165         * tmac/groff_ms.man, doc/groff.texinfo: Improve documentation of
3166         registers `FPS', `FVS', and `FPD'.
3168 2003-05-15  Werner LEMBERG  <wl@gnu.org>
3170         * src/utils/pfbtops/pfbtops.c (get_text): Handle loop counter
3171         correctly.
3173 2003-05-03  Ruslan Ermilov  <ru@FreeBSD.org>
3175         * tmac/groff_mdoc.man: Slight improvements.
3177 2003-05-03  Werner LEMBERG  <wl@gnu.org>
3179         * tmac/doc-common (doc-header): Emit vertical space of 1v instead of
3180         `doc-header-space' after header line if register `cR' is set.
3182 2003-05-02  Werner LEMBERG  <wl@gnu.org>
3184         * TODO: Updated.
3186 2003-05-01  Ruslan Ermilov  <ru@FreeBSD.org>
3188         * tmac/doc-common (Nd): Use \[em].
3190 2003-05-01  Werner LEMBERG  <wl@gnu.org>
3192         * tmac/doc-ditroff, tmac/doc-nroff (doc-header-space,
3193         doc-footer-space): Initialize to 0.5i.
3194         (doc-setup-page-layout): Don't set doc-header-space and
3195         doc-footer-space.
3197 2003-04-30  Werner LEMBERG  <wl@gnu.org>
3199         * REVISION: Set to 1.
3201         * doc/pic.ms: Document possible problems with `figname'.
3203 2003-04-29  Werner LEMBERG  <wl@gnu.org>
3205 Version 1.19 released
3206 =====================
3208         * VERSION: Set to 1.19.
3209         * REVISION: Set to 0.
3210         * doc/groff.texinfo, doc/webpage.ms, NEWS: Updated.
3212         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3213         Define charset as `US-ASCII' in html output.
3215         * tmac/www.tmac (ULE): Add missing scaling indicator.
3217         * win32-diffs: Removed.
3219 2003-04-28  Werner LEMBERG  <wl@gnu.org>
3221         * doc/groff.texinfo: Document `dn' and `dl' registers if used with
3222         `.da' and `.boxa'.
3223         Document how to insert discardable whitespace with `.ss'.
3225 2003-04-27  Werner LEMBERG  <wl@gnu.org>
3227         * src/preproc/pic/tex.cpp (tex_output::start_picture): Make code
3228         work with plain TeX also.
3230         * src/preproc/pic/pic.man, doc/pic.ms: Fix TeX code example.
3232 2003-04-25  Gaius Mulley  <gaius@glam.ac.uk>
3234         * src/devices/grohtml/post-html.cpp (html_printer::~html_printer):
3235         Use a loose DTD.
3237 2003-04-24  Werner LEMBERG  <wl@gnu.org>
3239         * src/preproc/pic/pic.man, doc/pic.ms: Explain how to get a
3240         vbox with positive height and zero depth if in TeX mode.
3242         * NEWS: Document glyph name changes for grodvi and grolj4.
3244 2003-04-23  Werner LEMBERG  <wl@gnu.org>
3246         * src/preproc/pic/tex.cpp (tex_output::start_picture): Fix TeX code.
3247         * doc/pic.ms: Fixed.
3249 2003-04-21  Werner LEMBERG  <wl@gnu.org>
3251         HP-UX 10.20 has `snprintf' but it isn't declared.
3253         * configure.ac: Add declaration test for snprintf.
3254         * configure: Regenerated.
3255         * src/include/lib.h: Handle `NEED_DECLARATION_SNPRINTF'.
3256         * src/include/config.hin: Regenerated.
3258 2003-04-19  Werner LEMBERG  <wl@gnu.org>
3260         Add keyword `figname' to pic, specifying the name of the picture
3261         box in TeX mode.  Based on a patch from William J Poser
3262         <wjposer@unagi.cis.upenn.edu>.
3264         * src/preproc/pic/pic.y: New token `FIGNAME'.
3265         (macro_name): New rule of type <str>.
3266         (placeless_element): Handle `FIGNAME'.
3267         * src/preproc/pic/lex.cpp (lookup_keyword): Add `figname'.
3268         * src/preproc/pic/main.cpp (graphname): New global variable.
3269         (do_picture): Initialize `graphname'.
3270         * src/preproc/pic/pic.h: Updated.
3271         * src/preproc/pic/tex.cpp (tex_output::start_picture): Use
3272         `graphname'.
3273         Simplify TeX code.
3274         (tex_output::text): Beautify output.
3275         * src/preproc/pic/object.cpp (object_spec::~object_spec): Deallocate
3276         `shaded' and `outlined' unconditionally.
3277         * NEWS, src/preproc/pic/pic.man, doc/pic.ms: Updated.
3278         Minor improvements.
3280         * PROBLEMS, README.CVS: Mention that bison version 1.875b or
3281         greater is necessary.
3283 2003-04-17  Hartmut Henkel  <hartmut_henkel@gmx.de>
3285         Add option -r to soelim to avoid emission of `.lf' lines.
3286         Add option -t to produces TeX comment lines instead of `.lf' lines.
3288         * src/preproc/soelim/soelim.cpp: New global variables `raw_flag'
3289         and `tex_flag'.
3290         (usage): Updated.
3291         (main): Handle `-r' and `-t'.
3292         (set_location): Handle `raw_flag' and `tex_flag'.
3293         * src/preproc/soelim/soelim.man, NEWS: Updated.
3295 2003-04-17  Werner LEMBERG  <wl@gnu.org>
3297         * tmac/hyphenex.sh: Replaced with...
3298         * tmac/hyphenex.pl: This perl script to avoid sed compatibility
3299         nightmares.
3301         * aclocal.m4 (GROFF_HTML_PROGRAMS): Emit useful warning message
3302         if --quiet is used for the configure script.
3303         * configure: Regenerated.
3305 2003-04-16  Werner LEMBERG  <wl@gnu.org>
3307         * src/devices/grohtml/post-html.cpp (text_glob::text_glob):
3308         Add `const' to second argument.
3309         (html_printer::add_table_end): Add `const' to argument.
3310         * src/devices/grohtml/html-text.cpp (html_text::issue_tag): Add
3311         `const' to arguments.
3312         * src/devices/grohtml/html-text.h: Updated.
3314         * src/devices/grolbp/charset.h (symset): Use `unsigned char'.
3315         * src/devices/grolbp/lbp.h (lbpputc): Use `unsigned char' for
3316         argument.
3318         * src/devices/grotty/tty.cpp (tty_printer::make_rgb_string): Use
3319         cast for integer constant.
3321         * src/preproc/html/pre-html.cpp (image_device): Use `const'.
3322         (writeNbytes): Add `const' to first argument.
3323         (writeString): Add `const' to argument.
3324         (char_buffer::can_see): Add `const' to third argument.
3325         * src/preproc/html/pushback.cpp (pushBackBuffer::isString): Add
3326         `const' to argument.
3327         * src/preproc/html/pushback.h: Updated.
3329         * src/preproc/soelim/soelim.cpp (include_list): Add `const'.
3330         (include_path_append): Add `const' to argument.
3331         (do_file): Updated.
3333         * src/roff/troff/uniglyph.cpp (unicode_to_glyph_list): Use `const'
3334         for `value'.
3335         (unicode_to_glyph_init::unicode_to_glyph_init): Updated.
3336         * src/roff/troff/uniuni.cpp (unicode_decompose_list): Use `const'
3337         for `value'.
3338         (unicode_decompose_init::unicode_decompose_init): Updated.
3339         * src/roff/troff/glyphuni.cpp (glyph_to_unicode_list): Use `const'
3340         for `value'.
3341         (glyph_to_unicode_init::glyph_to_unicode_init): Updated.
3342         * src/roff/troff/input.cc (process_startup_file): Add `const' to
3343         argument.
3345         * tmac/hyphenex.sh: Make script more portable by using a here
3346         document.
3348 2003-04-15  Werner LEMBERG  <wl@gnu.org>
3350         Renamed all `*.cc' files to `*.cpp'.
3351         Updated all configuration files, makefiles, and documentation.
3353 2003-04-14  Werner LEMBERG  <wl@gnu.org>
3355         * tmac/hyphenex.sh: Slight improvements.
3357 2003-04-13  Werner LEMBERG  <wl@gnu.org>
3359         * font/devascii/R.proto, font/devcp1037/R.proto,
3360         font/devlatin1/R.proto, font/devutf8/R.proto: Fill up remaining
3361         character slots with unnamed glyphs.
3363         * tmac/an-old.tmac: Fix hyphenation value if `cR' is active.
3364         (an-first): New global variable.
3365         (an-header): Emit vertical space between multiple man pages.
3367 2003-04-11  Werner LEMBERG  <wl@gnu.org>
3369         * doc/groff.texinfo, man/groff_out.man: \S only accepts integer
3370         values.
3372 2003-04-10  Werner LEMBERG  <wl@gnu.org>
3374         * PROBLEMS: Revised.
3376 2003-04-10  Bernd Warken  <bwarken@mayn.de>
3378         * doc/webpage.ms: Improved.
3380 2003-04-09  Werner LEMBERG  <wl@gnu.org>
3382         Add register \n[.height] which returns the value of \H.
3383         Add register \n[.slant] which returns the value of \S.
3385         * src/roff/troff/env.cc (init_env_requests): Implement.
3386         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
3387         Document.
3389 2003-04-08  Werner LEMBERG  <wl@gnu.org>
3391         * tmac/html.tmac: Move some of the data into html-end.tmac.
3392         Remove most of the character translations for eqn since html fonts
3393         now cover those characters.
3394         Load www.tmac.
3395         * tmac/html-end.tmac: New file.
3396         * tmac/troffrc: Load html.tmac not www.tmac for -Thtml.
3397         * tmac/troffrc-end: Load html-end.tmac not html.tmac for -Thtml.
3398         * tmac/Makefile.sub (NORMALFILES): Add html-end.tmac.
3400 2003-04-07  Werner LEMBERG  <wl@gnu.org>
3402         * man/groff_out.man: Document negative values of `N' if -Thtml is
3403         used.
3405 2003-04-06  Werner LEMBERG  <wl@gnu.org>
3407         * Makefile.comm (depend.temp): Check location of YTABC.
3409 2003-04-05  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3411         * contrib/mom/Makefile.sub (GROFFBIN): New variable for groff
3412         binary path.
3413         (groff_bin_path): Rename to GROFF_BIN_PATH.
3414         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3415         * doc/Makefile.in (TROFFBIN): New variable for troff
3416         binary path.
3417         (GROFFBIN): New variable for groff binary path.
3418         (groff_bin_path): Rename to GROFF_BIN_PATH.
3419         (TROFF): Use TROFFBIN.
3420         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3421         * doc/Makefile.sub (GROFFBIN): New variable for groff
3422         binary path.
3423         (groff_bin_path): Rename to GROFF_BIN_PATH.
3424         (GROFF): Use GROFFBIN and GROFF_BIN_PATH.
3426         * Makefile.comm (install_dev): Install scripts from DEVSCRIPTS
3427         with INSTALL_SCRIPT.
3428         (uninstall_dev): Uninstall scripts from DEVSCRIPTS.
3429         * Makefile.dev (all): Depend on DEVSCRIPTS.
3430         (install_dev): Likewise.
3431         * font/devdvi/Makefile.sub (DEVSCRIPTS): New variable to hold
3432         scripts.
3433         * font/devps/Makefile.sub (DEVSCRIPTS): Likewise.
3434         (DEVGENSCRIPTS): New variable to hold generated scripts.
3436 2003-04-05  Werner LEMBERG  <wl@gnu.org>
3438         * src/libs/libdriver/input.cc (IntArray::operator[],
3439         IntArray::get_data): Remove meaningless `const' in return value.
3441         * README.CVS: New file.
3443 2003-04-04  Werner LEMBERG  <wl@gnu.org>
3445         Check for stdint.h in C++, not in C.
3447         * aclocal.m4 (GROFF_STDINT_H): New function,
3448         * configure.ac: Check for stdint.h with GROFF_STDINT_H instead of
3449         AC_CHECK_HEADERS.
3450         * configure, src/include/config.hin: Regenerated.
3451         * src/libs/libgroff/tmpname.cc: Use HAVE_CC_STDINT_H.
3454         Fix handling of &nbsp; in grohtml.  To do this, troff emits `N'
3455         with a negative value, representing the width of the unbreakable
3456         space (only for -Thtml).  grohtml then converts this back to
3457         &nbsp; and uses the value of N as its width.
3459         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3460         unbreakable_space_node::tprint): Emit `N-<width>'.
3461         * src/include/printer.h (printer::set_numbered_char): Make it
3462         virtual.
3463         Make members `font_table' and `nfonts' protected instead of private.
3464         * src/devices/grohtml/post-html.cc
3465         (html_printer::set_numbered_char): New member function.
3468         * src/libs/libgroff/maxfilename.cc:
3469         s/HAVE_LIMITS_H/HAVE_CC_LIMITS_H/.
3471         * src/roff/troff/node.cc (unbreakable_space_node::tprint): Don't
3472         emit word marker.
3474 2003-04-03  Sergey A. Osokin  <osa@freebsd.org.ru>
3476         * man/roff.man: Small fixes.
3478 2003-04-03  Werner LEMBERG  <wl@gnu.org>
3480         Make groff independent from locale's numeric settings.
3482         * configure.ac: Check for `setlocale'.
3483         * configure, src/include/config.hin: Regenerated.
3485         * src/include/lib.h: Handle HAVE_SETLOCALE.
3487         * src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
3488         (main), src/devices/grops/ps.cc (main), src/preproc/grn/main.cc
3489         (main), src/preproc/pic/main.cc (main): Call `setlocale'.
3492         * doc/groff.texinfo: Change dir category to `Typesetting'.
3493         (Man font macros): Mention that there is no space between arguments
3494         of .BI and friends.
3496         * src/libs/libdriver/printer.cc, src/devices/grotty/tty.cc
3497         (*printer::change_color, *printer::change_fill_color): Add missing
3498         `const'.
3500 2003-04-02  Werner LEMBERG  <wl@gnu.org>
3502         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3503         html_table::is_gap): Compute table widths after converting border
3504         positions to avoid rounding errors.
3506 2003-04-01  Werner LEMBERG  <wl@gnu.org>
3508         * src/devices/grohtml/html-text.cc (html_text::do_space): Handle
3509         `space_emitted' properly.
3511 2003-03-31  Werner LEMBERG  <wl@gnu.org>
3513         * src/devices/grohtml/html-table.cc: Fix column width calculation.
3514         (html_table::set_linelength): Don't add 1.
3515         (html_table::add_indent): Don't subtract 1.
3517         * tmac/html.tmac: Set default page offset to zero.
3519 2003-03-30  Werner LEMBERG  <wl@gnu.org>
3521         Make groff emit `&nbsp;' for `\ ' and `\~' if `-Thtml' is used.
3523         * src/roff/troff/node.cc (space_char_hmotion_node::tprint,
3524         unbreakable_space_node::tprint): New functions.
3525         (troff_output_file): Make space_char_hmotion_mode::tprint and
3526         unbreakable_space_node::tprint to friends.
3527         * src/roff/troff/node.h: Updated.
3529         * font/devhtml/R.proto: Add `&nbsp' at position 0xA0 (as defined
3530         in the HTML standard).
3532 2003-03-29  Werner LEMBERG  <wl@gnu.org>
3534         * src/roff/troff/env.cc (point_size): Fix emission of html tag.
3535         Otherwise, the following code
3537           .di xxx
3538           .ps 10
3539           a
3540           .br
3541           .di
3542           x\*[xxx]
3544         produces `x a' instead of `xa'.  This is a temporary fix, disabling
3545         font changes in diversions for -Thtml.
3547         * tmac/an-old.tmac (TH, SH): Use `HTML-TAG-NS' instead of
3548         `HTML-TAG'.
3549         (an-do-tag-html): Merge with ...
3550         (an-do-tag): This macro.
3551         Change code slightly to circumvent grohtml bug.
3552         * tmac/troffrc-end: Define dummy for HTML-TAG-NS.
3554         * src/devices/grohtml/html-table.cc (html_table::emit_col,
3555         html_table::is_gap): Round `width' properly.
3557         * tmac/html.tmac: Provide some default layout parameters for
3558         grohtml.
3560         * font/devhtml/DESC.proto: Don't use discrete values for `sizes'
3561         command.
3563 2003-03-28  Werner LEMBERG  <wl@gnu.org>
3565         src/devices/grops/ps.cc (ps_printer::do_import): Fix error message.
3567 2003-03-27  Werner LEMBERG  <wl@gnu.org>
3569         * tmac/an-old.tmac (BT): Don't call .tl if register `ps4html' is
3570         defined.
3572 2003-03-20  Werner LEMBERG  <wl@gnu.org>
3574         * src/roff/troff/env.cc (vertical_spacing): Allow zero value for
3575         `.vs'.
3576         * doc/groff.texinfo: Updated.
3578 2003-03-19  Werner LEMBERG  <wl@gnu.org>
3580         * src/roff/troff/input.cc (process_input_stack) <TOKEN_BEGIN_TRAP,
3581         TOKEN_END_TRAP>: Reset `have_input'.
3583 2003-03-18  Werner LEMBERG  <wl@gnu.org>
3585         * src/roff/groff/groff.man: Mention groff_trace man page.
3587 2003-03-16  Werner LEMBERG  <wl@gnu.org>
3589         * Makefile.in (LIBEXT): New variable to indicate the file extension
3590         of library files.  Computed heuristically from $(OBJEXT).
3591         (MDEFINES): Add $(LIBEXT).
3592         * Makefile.lib, Makefile.comm: Use it.
3594         * src/utils/pfbtops/pfbtops.c (get_text): New function.  Split
3595         overlong lines into smaller chunks.
3596         (get_binary): New function.
3597         (main): Use them.
3598         * src/utils/pfbtops/pfbtops.man: Updated.
3600 2003-03-15  Colin Watson  <cjwatson@debian.org>
3602         * src/roff/groff/groff.man: Minor syntax fix.
3604 2003-03-14  Egil Kvaleberg  <egil@kvaleberg.no>
3606         * src/devices/grops/ps.cc (ps_printer::media_set,
3607         ps_printer::~ps_printer): Handle zero paper width and length.
3609 2003-03-13  Werner LEMBERG  <wl@gnu.org>
3611         Add options -p and -l to grodvi.
3613         * src/devices/grodvi/dvi.cc: Include paper.h.
3614         (landscape_flag, user_paper_length, user_paper_width): New global
3615         variables.
3616         (dvi_printer::begin_page): Emit `papersize' special.
3617         Set color after initialization of `cur_h' and `cur_v'.
3618         (main): Add options `-l' and `-p'.
3619         * font/devdvi/Makefile.sub (DESC): Set `papersize'.
3620         * src/devices/grodvi/grodvi.man, NEWS: Updated.
3622         * src/devices/grops/psrm.cc (valid_input_table): Fixed.
3624 2003-03-12  Werner LEMBERG  <wl@gnu.org>
3626         * src/devices/grops/grops.man: Move documentation of .PSPIC to...
3627         * man/groff_tmac.man: This man page.
3628         * man/groff_font.man: Declare `paperwidth' and `paperlength' as
3629         deprecated.
3631         * tmac/X.tmac: Don't load pspic.tmac.
3633 2003-03-11  Werner LEMBERG  <wl@gnu.org>
3635         Make variable `pr' local to libdriver/input.cc.  Based on a patch
3636         by Bernd Warken <bwarken@mayn.de>.
3638         * src/include/driver.h (pr): Removed.
3640         * src/libs/libdriver/input.cc (pr): New global variable.
3641         (do_file): Deallocate `pr'.
3642         * src/libs/libdriver/printer.cc (pr): Removed.
3644         * src/devices/grodvi/dvi.cc (main), src/devices/grohtml/post-html.cc
3645         (main), src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
3646         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
3647         (main): Don't delete `pr'.
3649 2003-03-10  Werner LEMBERG  <wl@gnu.org>
3651         * tmac/a4.tmac, tmac/composite.tmac: Use `.do'.
3652         * tmac/papersize.tmac: New file.
3653         * tmac/troffrc: Include `papersize.tmac'.
3654         * tmac/Makefile.sub (NORMALFILES): Add `papersize.tmac'.
3655         * tmac/an-old.tmac: Set LT to LL by default.
3657         * NEWS, MANIFEST, tmac/groff_man.man, man/groff_tmac.man,
3658         doc/groff.texinfo: Updated.
3660         * src/libs/libgroff/paper.cc (add_iso_paper): Fix very embarassing
3661         bug which caused all odd iso papers to have wrong dimensions.
3663         * src/devices/grops/ps.cc (user_paper_width): New global variable.
3664         (main) <'p'>: Set `user_paper_width' also.
3665         (ps_printer::media_width, ps_printer::media_height): Use values
3666         given with option `-p'.
3668 2003-03-09  Werner LEMBERG  <wl@gnu.org>
3670         * src/include/nonposix.h: Provide default for SET_BINARY.
3672         * src/devices/grodvi/dvi.cc, src/devices/grolbp/lbp.cc,
3673         src/devices/grolj4/lj4.cc, src/devices/grops/ps.cc: Call SET_BINARY
3674         unconditionally.
3676         * src/utils/pfbtops/pfbtops.c: Call SET_BINARY unconditionally.
3677         (main): Treat \r\n as \n.
3679 2003-03-08  Werner LEMBERG  <wl@gnu.org>
3681         * tmac/an-old.tmac: Use register `HY' to control hyphenation.
3682         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Document it.
3684 2003-03-07  Werner LEMBERG  <wl@gnu.org>
3686         Added support to access more than 256 glyphs in Type 1 fonts.
3688         * src/devices/grops/ps.cc (subencoding): New structure.
3689         (style): Add `sub' field.
3690         Updated all users.
3691         (ps_printer): Add `subencodings' and `next_subencoding_index' fields.
3692         Add `set_subencoding', `get_subfont' and `encode_subfont' member
3693         functions.
3694         Updated all users.
3695         (ps_printer::set_char): Use `set_subencoding'.
3696         (make_subencoding_name): New function.
3697         (ps_printer::set_style): Handle case where `sty.sub' is not zero.
3698         (ps_printer::~ps_printer): Emit subencoding definitions.
3700         * src/devices/grops/psrm.cc (valid_input_table): New array to
3701         properly support EBCDIC.
3702         (white_space): Add `\f'.
3703         (ps_get_line): Change first argument to be of type `string &'.
3704         Updated all callers.
3705         This allows to get lines of arbitrary length.
3706         Use `valid_input_table'.
3707         Remove warning about non-conforming PS line length.  This seems
3708         not to be of great importance -- for example, dvips don't emit
3709         a warning either.
3710         (PS_LINE_MAX): Removed.
3711         (matches_comment): Change first argument to be of type `string &'.
3713         * src/devices/grops/grops.man, src/devices/grops/TODO: Updated.
3715         * src/utils/afmtodit/afmtodit.pl (%unicode_decomposed,
3716         %AGL_to_unicode, %default_ligatures): New hash tables.
3717         Read all map entries.
3718         Add unencoded characters.
3719         Check for default ligatures if there are no `L' entries.
3720         Print all kern entries.
3721         Print all characters in charset.
3722         * src/utils/afmtodit/afmtodit.man: Updated.
3724         * font/devps/*: Regerated all fonts.
3726         * tmac/latin[129].tmac, tmac/cp1047.tmac: Don't test for existence
3727         of characters, just use `.trin'.  Otherwise the mapping depends
3728         on the font encoding.
3729         * tmac/ps.tmac: Add `fi' and `fl'.
3730         Improve `Fi' and `Fl'.
3731         * tmac/X.tmac, tmac/lbp.tmac, tmac/tty.tmac: Improve `Fi' and `Fl'.
3732         * tmac/Xps.tmac: Fix `em'.
3734         * NEWS: Updated.
3736 2003-03-04  Werner LEMBERG  <wl@gnu.org>
3738         * src/roff/troff/input.cc (charinfo_to_node_list): Reset
3739         `have_input'.
3741 2003-03-03  Werner LEMBERG  <wl@gnu.org>
3743         * Makefile.sub (DISTCLEANFILES): Add gxditview._man.
3745         * font/devps/generate/textmap: Remove entry `similarequal'.
3746         * font/devps/symbolmap: Updated.
3748 2003-03-02  Werner LEMBERG  <wl@gnu.org>
3750         * src/libs/libgroff/font.cc (font::load): Fix error message for
3751         bad character type.
3753         * src/devices/grops/grops.man: Improve documentation of the -b
3754         flag.
3756         * tmac/tty.tmac: Load latin1.tmac for all TTY devices except
3757         `ascii' and `cp1047'.
3759 2003-03-01  Werner LEMBERG  <wl@gnu.org>
3761         Document composite glyphs and the `composite' request.
3763         * man/groff.man, man/groff_diff.man, doc/groff.texinfo: Do it.
3765 2003-02-28  Werner LEMBERG  <wl@gnu.org>
3767         * font/devdvi/generate/ec.map: Add some more Unicode entities.
3768         * font/devdvi/*EC: Updated.
3770         * tmac/composite.tmac, tmac/latin2.tmac, tmac/latin9.tmac: New files.
3771         * tmac/latin1 (latin1-tr): Undo any previous mapping.
3772         * tmac/troffrc: Load `composite.tmac'.
3773         * tmac/Makefile.sub (NORMALFILES): Updated.
3775         * doc/groff.texinfo (Input Encodings): New section.
3776         * NEWS: Updated.
3778 2003-02-27  Werner LEMBERG  <wl@gnu.org>
3780         * doc/texinfo.tex: New version 2003-02-11.06.
3782         * tmac/doc-common (Dt): Don't emit warning for unknown section.
3783         * tmac/groff_mdoc.man: Fix description of `Dt'.
3785 2003-02-26  Egil Kvaleberg  <egil@kvaleberg.no>
3787         * font/devps/prologue.ps: Fix for included Postscript that does
3788         a setpagedevice -- which is now safely ignored.
3790         * NEWS: Updated.
3792         * src/devices/grops/ps.cc: Now sets the page size in the generated
3793         document.  This is done in two ways: Via a %%-comment for gv and
3794         the like, and via a PageSize and setpagedevice for programs that
3795         understands Postscript proper, like ps2pdf.
3797         * src/devices/grops/ps.h: New broken-flag to avoid page size
3798         definition, if required.
3800         * src/devices/grops/grops.man: New broken-flag 16 mentioned.
3802         * doc/Makefile.in: Added -nosetpage flag (via @pnmtops_nosetpage@).
3803         Not really necessary due to the fix in prologue.ps, but cleaner:
3804         Such information does not belong in an .eps file.
3806         * doc/Makefile.sub: See doc/Makefile.in.
3808 2003-02-26  Ralph Corderoy  <ralph@inputplus.co.uk>
3810         * aclocal.m4 (GROFF_PNMTOPS_NOSETPAGE): Use P2 format for testing
3811         instead of P1 since the latter is broken in some versions of netpbm.
3812         * configure: Updated.
3814 2003-02-26  Larry Kollar  <kollar@alltel.net>
3816         Make man pages more customizable.
3818         * tmac/an-old.tmac (FT): New register holding footer distance from
3819         bottom.
3820         (HF): New string holding the default heading font.
3821         (TH): Handle registers `IN' and `SN' set on the command line.
3822         Use `FT'.
3823         (PT, BT): New strings to customize header and footer lines.
3824         (an-header, an-footer): Use them.
3825         (SH, SS): Use `HF'.
3826         * tmac/groff_man.man: Document changes.
3828         * doc/groff.texinfo: Document man changes.
3829         Document Ultrix extensions of man.
3831 2003-02-26  Werner LEMBERG  <wl@gnu.org>
3833         * src/roff/troff/input.cc (do_width, do_if_request): Reset
3834         `have_input' after changing back to old environment.
3836         * src/devices/grolbp/lbp.cc (lbp_printer::set_line_thickness): Move
3837         function up to be defined before first call.  This is necessary to
3838         avoid a compilation problem with Sun's WorkShop 6 C++ compiler.
3840         * src/utils/afmtodit/afmtodit.pl: Make script search for files in
3841         the default font directory also.  Based on a patch from James
3842         J. Ramsey <jjramsey_6x9eq42@yahoo.com>.
3843         * src/utils/afmtodit/Makefile.sub (afmtodit): Handle @FONTDIR@.
3844         * src/utils/afmtodit/afmtodit.man: Document it.
3846         * NEWS: Updated.
3848         * tmac/groff_man.man, doc/groff.texinfo: Many minor fixes.
3850 2003-02-25  Gaius Mulley  <gaius@glam.ac.uk>
3852         * aclocal.m4 (GROFF_HTML_PROGRAMS): Add test for pnmtops.
3853         (GROFF_PNMTOPS_NOSETPAGE): New macro.
3854         * configure.ac: Use it.
3855         * configure: Regenerated.
3856         * Makefile.in: Updated.
3858         * tmac/Makefile.sub (NORMALFILES): Remove www.tmac.
3859         (CLEANADD): Add www.tmac-sed.
3860         (pnmtops_nosetpage): Define default.
3861         (install_data): Handle www.tmac-sed and substitute
3862         @PNMTOPS_NOSETPAGE@.
3863         (stamp-sed): Add www.tmac.
3864         * tmac/www.tmac: Rewritten, based on a patch by Bernd Warken.
3865         It now breaks URLs at suitable places.
3866         (www:substring_ok): New register set by...
3867         (www:@test_substring): New macro.
3868         (www:error): New alias to www-error.
3869         (www:lenstr, www:splitstr, www:url_breaks, www:url_breaks_splitted):
3870         New macros.
3871         (URL): Use www:url_breaks.
3872         (PIMG, MPIMG): Use @PNMTOPS_NOSETPAGE@.
3873         (CDS, CDE): New macros.
3875 2003-02-25  Werner LEMBERG  <wl@gnu.org>
3877         * src/devices/grops/ps.cc (ps_printer::define_encoding): Avoid
3878         buffer overflow.
3880 2003-02-24  Werner LEMBERG  <wl@gnu.org>
3882         Contrary to the PCL5 Developer's Guide, the ascenders in TFM files
3883         can be negative also.
3885         * src/utils/hpftodit/hpftodit.cc (char_info): `ascent' must be
3886         `int16'.
3887         (read_char_table): Avoid negative ascenders.
3888         (output_charset): Add cast.
3889         * font/devlj4/*: Regenerated.
3891         Replace unnamed glyphs for DVI fonts with `uXXXX' glyph names where
3892         possible.
3894         * font/devdvi/generate/{tc,texttt,ec,texmi,texsy,textex}.map: Do it.
3895         * font/devdvi/generate/textex.map: Map glyph 23 to `u21C6' instead
3896         of `<>'.
3897         * font/devdvi/*: Regenerated.
3899         Map `la' and `ra' to U+27E8 and U+27E9.  These two characters have
3900         normal width, while the previously used characters (U+2329 and
3901         U+232A) are classified as wide due to canonical equivalence with the
3902         CJK punctuation characters U+3008 and U+3009.
3904         * font/devutf8/R.proto: Updated.
3905         * src/roff/troff/uniglyph.cc, src/roff/troff/glyphuni.cc: Ditto.
3907         * man/groff_char.man: Simplify handling of table traps by
3908         introducing `start block' and `end block' macros.
3909         (Ns, Ne, 2s, 2e, Ds, De): New macros.
3910         (DL): Make it work with Unix troff also.
3911         Fix code values of `la' and `ra'.
3913         * tmac/dvi.tmac: Define `<>' for CW and CWI.
3915 2003-02-23  Gaius Mulley  <gaius@glam.ac.uk>
3917         * src/devices/grohtml/post-html.cc (element_list::~element_list):
3918         New destructor, fixing a major memory leak.
3920 2003-02-22  Werner LEMBERG  <wl@gnu.org>
3922         * font/devhtml/R.proto, font/devutf8/R.proto: Flip `*f' and `+f'
3923         to be in conformance with Unicode 3.0 and newer.
3925         * font/devlj4/generate/text.map: Add `Eu'.
3926         * font/devlj4/generate/special.map: Flip `*e' and `+e'.
3927         * font/devlj4/S: Regenerated.
3929         * man/groff_char.man: Completely rewritten.
3931         * doc/groff.texinfo: Fix description of request and macro arguments.
3933 2003-02-20  Gaius Mulley  <gaius@glam.ac.uk>
3935         Valgrind fixes.
3937         * src/devices/grohtml/html-table.cc (html_table::~html_table):
3938         Deallocate `columns' list.
3939         * src/devices/grohtml/post-html.cc (char_block::~char_block):
3940         New destructor.
3941         (text_glob::text_glob_html, text_glob::text_glob_special,
3942         text_glob::text_glob_line, text_glob::text_glob_auto_image,
3943         text_glob::text_glob_tag): Avoid memory leaks.
3944         (text_glob::remember_table): Free memory before reassigning.
3946 2003-02-19  Werner LEMBERG  <wl@gnu.org>
3948         Add glyph `+e', greek lunate epsilon symbol, and `-h' (with the
3949         alias `hbar'), the Planck constant over two pi.
3951         * font/devdvi/generate/texmi.map: Use `*e' for position 15 and
3952         `+e' for position 34.
3953         * font/devdvi/generate/texsy.map: Replace `DI' and `HE' with
3954         `u2662' and `u2661'.
3955         * font/devdvi/{MI,S}: Regenerated.
3956         * font/devhtml/R.proto, font/devutf8/R.proto: Add `+e', `-h', `hbar'.
3957         * font/devlbp/*: Add `hbar' alias.
3958         * font/devlj4/generate/special.map: Ditto.
3959         * font/devlj4/S: Regenerated.
3960         * font/devps/generate/symbolchars: Add `+e'.
3961         * font/devps/generate/textmap: Fix PS name for `-h'.
3962         Add `hbar' alias.
3963         * font/devps/symbolmap: Regenerated.
3965         * src/devices/grops/ps.cc (transform_fill): Removed since unused.
3967         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `+e',
3968         `-h', `hbar'.
3969         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `+e',
3970         `-h'.
3972         * tmac/X.tmac, tmac/ps.tmac: Provide definitions for `-h' and
3973         `hbar'.
3974         * tmac/tty-char.tmac: Add `+e'.
3976 2003-02-17  Werner LEMBERG  <wl@gnu.org>
3978         Another round trying to really fix problems with `have_input'.
3980         * src/roff/troff/input.cc (input_stack::get): Handle `have_input'.
3981         (token::next) <'\n'>, <\'\n'>: Don't handle `have_input'.
3983         * src/devices/grotty/tty.cc (tty_printer::put_color): Fix color
3984         handling if both foreground and background colors are default.
3986         * doc/groff.texinfo (Debugging): Document .lf differences to
3987         AT&T troff.
3989 2003-02-16  Werner LEMBERG  <wl@gnu.org>
3991         * src/devices/grotty/tty.cc (tty_printer::make_rgb_string): Avoid
3992         null-bytes in created string.
3994         * src/roff/troff/input.cc (lookup_color, interpolate_macro,
3995         alias_macro, lookup_request): Improve warning messages.
3997         * src/roff/troff/node.cc (suppress_node::tprint): Use `strsave',
3998         not `strdup'.
3999         Free `last_image_filename'.
4001         * src/preproc/html/pre-html.cc (char_block::char_block): Initialize
4002         `buffer'.
4003         (imageList::createPage, imageList::createImage): Use `free', not
4004         `a_delete'.
4005         (imageItem::~imageItem): Free `imageName'.
4006         (addRegDef): Use `strsave', not `strdup'.
4007         (get_resolution): Free `pathp'.
4009 2003-02-15  Werner LEMBERG  <wl@gnu.org>
4011         * src/devices/grotty/tty.cc (tty_printer::tty_printer): Fix pointer
4012         to `dummy'.
4014 2003-02-14  Werner LEMBERG  <wl@gnu.org>
4016         Add memory management for colors to deallocate unnamed colors
4017         properly.
4019         * src/include/color.h (color): New members `free_list' and `next'.
4020         New member functions `new' and `delete'.
4021         Add destructor.
4022         * src/libs/libgroff/color.cc: Implement it.
4024         * src/libs/libgroff/font.cc (font::add_kern): Use integer cast
4025         for array size of new operator.
4027         * src/libs/libdriver/input.cc (IntArray::operator[]): Remove
4028         redundant comparison.
4030         * src/roff/troff/input.cc (word_space_node::reread,
4031         hmotion_node::reread): Avoid warning about unused parameter.
4032         (reset_output_registers): Remove redundant parameter.
4033         (define_color): Undo change 2003-02-12.
4035         * src/roff/troff/reg.h: Updated.
4037         * src/roff/troff/node.cc (troff_output_file::really_print_line,
4038         output_file::put_filename, real_output_file::really_put_filename,
4039         ascii_output_file::really_print_line,
4040         break_char_node::get_hyphen_list): Avoid warning about unused
4041         parameter.
4042         (suppress_node::tprint): Updated.
4044         * configure.ac: Check declaration for rand() and srand().
4045         * configure: Regenerated.
4047         * src/preproc/pic/pic.h: Declare fmod(), rand(), and srand()
4048         conditionally.
4049         * src/preproc/pic/pic.y: Remove declaration of fmod(), rand(),
4050         and srand().
4052         * src/preproc/eqn/delim.cc (delim_table): Add missing initializers
4053         to avoid compiler warnings.
4055         * src/preproc/grn/hgraph.cc (HGPrintElt): Second parameter is
4056         unused.
4058         * src/devices/grops/ps.cc (ps_printer::set_char): Last parameter
4059         is unused.
4060         * src/devices/grops/psrm.cc (skip_possible_newline): Remove first
4061         (unused) parameter.
4062         Updated all callers.
4064         * src/devices/grotty/tty.cc (tty_printer::set_char): Last parameter
4065         is unused.
4066         * src/devices/grodvi/dvi.cc (dvi_printer::set_char): Ditto.
4067         * src/devices/grolj4/lj4.cc (lj4_printer::set_char): Ditto.
4069         * src/devices/grohtml/post-html.cc (html_printer::emit_line):
4070         Parameter is unused.
4071         (html_printer::add_table_end): Define parameter conditionally.
4072         * src/devices/grohtml/output.cc (simple_output::special): Parameter
4073         is unused.
4075         * src/devices/grolbp/lbp.cc: Define _GNU_SOURCE conditionally.
4076         (lbp_printer::set_char): Last parameter is unused.
4078         * src/utils/indxbib/indxbib.cc (main): Remove redundant comparison.
4080 2003-02-13  Werner LEMBERG  <wl@gnu.org>
4082         New commands \D'Fr ...', \D'Fc ...', etc. for orthogonality.
4083         Make \D'f ...' move horizontally again for backwards compatibility.
4084         Replace it with \D'Fg ...' where appropriate to avoid dependency
4085         on horizontal resolution.
4087         * src/roff/troff/input.cc (do_get_long_name): New function.
4088         (get_long_name): Call it.
4090         (read_draw_node): Handle `\D'Fx ...' by calling ...
4091         (read_color_draw_node): New function.
4093         (read_rgb, read_cmy, read_cmyk, read_gray): New optional argument
4094         `end'.
4095         Pass it to `do_get_long_name' which is used instead of
4096         `get_long_name'.
4098         * src/libs/libdriver/input.cc (color_from_Df_command): Remove
4099         unnecessary value guard.
4100         (parse_D_command) <'f'>: Add horizontal shift.
4102         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Use \D'Fg ...'.
4103         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4104         (FILL_MAX): Removed.
4106         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4107         Updated.
4109 2003-02-12  Werner LEMBERG  <wl@gnu.org>
4111         * src/roff/troff/input.cc (do_name_test, do_expr_test,
4112         do_zero_width): Push `\n' if closing delimiter is missing.
4114         (token::next) <ESCAPE_NEWLINE>, <'\n'>, <\'\n'>: Reset `have_input'.
4115         <'F'>: Make \F non-transparent at the beginning of line.
4116         (process_input_stack) <token::TOKEN_CHAR, token::TOKEN_NEWLINE,
4117         token::TOKEN_REQUEST, token::TOKEN_BEGIN_TRAP>: Don't handle
4118         `have_input'.
4120         (define_color): Free color in case of reassignment.
4122         * doc/groff.texinfo (@Defesc, @DefescList, @DefescItem,
4123         @DefescListEnd): Use @Var, not @var.
4124         Fix all calls.
4126         * src/preproc/grn/hgraph.cc (HGPrintElt): Fix typo.
4128         * src/preproc/pic/object.cc (object_spec::~object_spec): Free
4129         `shaded' and `outlined' arrays.
4130         (object_spec::object_spec): Initialize `shaded' and `outlined'.
4131         (graphic_object::set_fill_color, graphic_object::set_outline_color):
4132         Use strsave.
4133         (closed_object::set_fill_color): Ditto.
4134         * src/preproc/pic/troff.cc (troff_output::set_color): Use strsave
4135         instead of strdup.
4136         (troff_output::reset_color): Use a_delete instead of free.
4137         * src/preproc/pic/main.cc (do_file): Free `out' in case of error.
4139 2003-02-11  Werner LEMBERG  <wl@gnu.org>
4141         * doc/groff.texinfo: Improve documentation of `ad'.
4142         Document that \D'f...' is dependent on the horizontal resolution.
4143         * man/groff_diff.man: Improve documentation of \D'f...'.
4145         * src/preproc/grn/hgraph.cc (HGPrintElt) <POLYGON>: Don't emit
4146         compensating \h'...' for \D'f ...' since the latter no longer moves
4147         current position.
4148         * src/preproc/pic/troff.cc (troff_output::set_fill): Ditto.
4150 2003-02-10  Werner LEMBERG  <wl@gnu.org>
4152         Improve error messages for `x F' (and `F') commands.
4154         * src/include/error.h: Add declaration for
4155         `current_source_filename'.
4156         * src/libs/libgroff/filename.cc: Add `current_source_filename'.
4157         * src/libs/libgroff/error.cc (do_error_with_file_and_line): Add
4158         parameter for source file string.
4159         Updated all callers.
4161         * src/libs/libdriver/input.cc: Add `current_source_filename'.
4162         (remember_source_filename): New function.
4163         (parse_x_command <'F'>, do_file <'F'>): Use it.
4165 2003-02-09  Werner LEMBERG  <wl@gnu.org>
4167         Make grotty not emit warnings about unknown colors more than
4168         necessary.
4170         * src/devices/grotty/tty.cc: Include `ptable.h'.
4171         (TTY_MAX_COLORS): Removed.
4172         (DEFAULT_COLOR_IDX): Defined to -1.
4173         (glyph): Change `back_color_idx' and `fore_color_idx' to `char'.
4174         (tty_printer): Change `curr_back_idx' and `curr_fore_idx' to `char'.
4175         Change `tty_colors' to be a ptable.
4176         First arg of `put_color' is now `char'.
4177         New functions `make_rgb_string' and `tty_color'.
4178         (tty_printer::tty_printer): Use `tty_color'.
4179         (tty_printer::color_to_idx): Return value is now `char'.
4180         Use `tty_color'.
4182         * src/include/color.h (color): Add `print_color' member function.
4183         * src/libs/libgroff/color.cc (color::print_color): Implement it.
4185 2003-02-08  Werner LEMBERG  <wl@gnu.org>
4187         Valgrind fixes.
4189         * src/devices/grops/ps.cc (ps_printer::define_encoding): Close
4190         encoding file.
4192         * src/include/ptable.h (PTABLE::~PTABLE, PTABLE::define): Always
4193         assume that value has been allocated with `new[]', thus use
4194         `a_delete' for deallocation.
4196         * src/libs/libdriver/input.cc (get_integer_arg,
4197         get_possibly_int_args, parse_x_command, do_file): Use `a_delete'
4198         where appropriate.
4200         * src/libs/libgroff/new.cc (delete) [!COOKIE_BUG]: Define.
4201         * src/libs/libgroff/nametoindex.cc
4202         (character_indexer::named_char_index): Use `new <type>[1]'.
4204         * src/preproc/eqn/lex.cc (init_table, do_definition): Use `new
4205         <type>[1]'.
4206         * src/preproc/eqn/text.cc (set_special_char_type): Ditto.
4207         (split_text): Use `a_delete'.
4209         * src/preproc/pic/pic.y (define_label, define_variable): Use `new
4210         <type>[1]'.
4212         * src/roff/troff/env.cc (environment::choose_breakpoint): Avoid
4213         harmless memory leak.
4214         (hyphen_trie::read_patterns_file): Initialize `buf'.
4215         * src/roff/troff/node.cc (troff_output_file::troff_output_file):
4216         Initialize `current_fill_color'and `current_glyph_color'.
4217         * src/roff/troff/glyphuni.cc
4218         (glyph_to_unicode_init::glyph_to_unicode_init): Use `new <type>[1]'.
4219         * src/roff/troff/uniuni.cc
4220         (unicode_decompose_init::unicode_decompose_init): Ditto.
4221         * src/roff/troff/uniglyph.cc
4222         (unicode_to_glyph_init::unicode_to_glyph_init): Ditto.
4224 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4226         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Check with
4227         `access' before calling `unlink'.
4228         (do_file): Handle __EMX__.
4230         * src/include/nonposix.h: Handle __EMX__.
4232         * Makefile.in (SEP): New variable; set to @PATH_SEPARATOR@.
4233         (fontpath,tmacpath): Use it.
4234         (MDEFINES): Add it.
4235         Sorted alphabetically.
4237         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Use
4238         @SEP@.
4239         * src/preproc/eqn/Makefile.sub, src/roff/nroff/Makefile.sub: Handle
4240         @SEP@.
4242 2003-01-27  Werner LEMBERG  <wl@gnu.org>
4244         * src/libs/libgroff/strcasecmp.c, src/libs/libgroff/strncasecmp.c:
4245         New files, copied from gnulib.
4246         * src/libs/libgroff/Makefile.sub (CSRCS): Add them.
4247         * configure.ac: Updated.
4248         * configure: Regenerated.
4250         * src/include/config.hin: Regenerated.
4251         * src/include/lib.h [!HAVE_STRCASECMP]: Declare `strcasecmp'.
4252         Don't define `strcasecmp' as `strcmp'.
4253         [!HAVE_STRNCASECMP]: Declare `strncasecmp'.
4254         Dont define `strncasecmp' as `strncmp'.
4256         * src/roff/groff/pipeline.c [!HAVE_STRCASECMP, !HAVE_STRNCASECMP]:
4257         Removed.
4259 2003-01-26  Werner LEMBERG  <wl@gnu.org>
4261         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Fix typo:
4262         s/unline/unlink/.
4264 2003-01-25  Werner LEMBERG  <wl@gnu.org>
4266         * doc/groff.texinfo (Ligatures and Kerning): Mention limitations.
4268 2003-01-24  Werner LEMBERG  <wl@gnu.org>
4270         Add US-english hyphenation exceptions (converted from Barbara
4271         Beeton's hyphenation exception log reports which appear irregularly
4272         in TUGBoat).
4274         * tmac/hyphen.us: Updated to latest version.
4275         * tmac/README: Updated.
4276         * tmac/hyphenex.us, tmac/hyphenex.sh: New files.
4277         * tmac/troffrc: Load `hyphenex.us'.
4278         * tmac/Makefile.sub (NORMALFILES): Add `hyphenex.us'.
4279         * doc/groff.texinfo: Updated.
4281 2003-01-23  Werner LEMBERG  <wl@gnu.org>
4283         Improve hyphenation slightly.  This is a first step in redesigning
4284         the hyphenation algorithm to make it more flexible (e.g. allowing
4285         kerns and ligatures between the hyphenation character and the
4286         following character -- while not used normally in English, other
4287         languages like German would benefit).
4289         * src/roff/troff/env.cc (environment::hyphenate_line): Use
4290         assertion instead of if-clause.
4291         Let `get_hyphen_list' return the number of involved characters in
4292         the hyphenation pattern instead of computing it directly (which
4293         often yields too small values).
4294         * src/roff/troff/node.h (*::get_hyphen_list): Add second parameter.
4295         * src/roff/troff/node.cc (*::get_hyphen_list): Handle new second
4296         parameter.
4298 2003-01-22  Werner LEMBERG  <wl@gnu.org>
4300         Fixing a bug which caused groff to hang if the hyphenation exception
4301         dictionary tried to grow.
4303         * src/roff/troff/env.cc (hyphen_trie::insert_hyphenation,
4304         hyphen_trie::read_patterns_file, do_hyphenation_patterns_file): Use
4305         pointer to dictionary.
4307 2003-01-20  Werner LEMBERG  <wl@gnu.org>
4309         * src/utils/afmtodit/afmtodit.pl: Add switch `-m' to suppress
4310         negative left italic correction.
4311         * src/utils/afmtodit/afmtodit.man: Document it.
4313         * font/devps/generate/Makefile (RFLAG): Add `-m'.
4314         * font/devps/{AB,AR,BMB,BMR,CB,CR,EURO,HB,HR,HNB,HNR,NB,NR,PB,PR,
4315         S,TB,TR,ZD,ZDR}: Regenerated with afmtodit options `-i 0 -m'.
4317         * NEWS: Updated.
4319 2003-01-16  Werner LEMBERG  <wl@gnu.org>
4321         * NEWS: Updated.
4323 2003-01-16  Jörgen Grahn  <jgrahn@algonet.se>
4325         * src/preproc/refer/refer.man: Mention REFER environment variable.
4327 2003-01-05  Werner LEMBERG  <wl@gnu.org>
4329         Similar to \[is], the square root glyph (\[sr]) and the square root
4330         extension glyph (\[radicalex]) are now text symbols.  The new
4331         mathematical versions are called \[sqrt] and \[sqrtex],
4332         respectively.
4334         * font/devX*/S: Regenerated.
4335         * font/devdvi/generate/texex.map: Rename `sr[0123]' to `sqrt[0123]'.
4336         * font/devdvi/generate/texsy.map: Rename `sr' to `sqrt'.
4337         * font/devdvi/EX, font/devdvi/S: Regenerated.
4338         * font/devhtml/R.proto, font/devutf8/R.proto: Add `sqrt'.
4339         * font/devlj4/generate/special.map: Add `sqrt'.
4340         * font/devlj4/S: Regenerated.
4341         * font/devps/generate/textmap: Add `sqrt'.
4342         * font/devps/S, font/devps/symbolmap: Regenerated.
4344         * src/preproc/eqn/sqrt.cc (SQRT_CHAR, RADICAL_EXTENSION_CHAR,
4345         SQRT_CHAIN, BAR_CHAIN): Use `sqrt*' and `sqrtex*'.
4346         * src/roff/troff/input.cc (init_charset_table): Make `sqrtex'
4347         overlap horizontally.
4349         * tmac/X.tmac, tmac/ps.tmac, tmac/lj4.tmac: Add `sqrtex'.
4350         * tmac/dvi.tmac: Add `sr', and `sqrtex'.
4351         Fix `radicalex'.
4353         * doc/groff.texinfo, man/groff_diff.man: Document that `radicalex'
4354         and `sqrtex' are overlapping glyphs.
4356 2003-01-04  Werner LEMBERG  <wl@gnu.org>
4358         * font/devdvi/generate/texsy.map: Add `is'.
4359         * font/devps/symbolmap: Regenerated.
4360         * font/devdvi/*TC, MI, S: Regenerated.
4362         * tmac/dvi.tmac: Remove `is'.
4364 2003-01-03  Werner LEMBERG  <wl@gnu.org>
4366         `is' is now a text symbol (only relevant for dvi).  The math variant
4367         can be accessed with `integral'.
4369         * font/devX*/S: Regenerated.
4370         * font/devdvi/generate/texex.map: Remove `is'.
4371         * font/devdvi/EX: Updated.
4372         * font/devhtml/R.proto, font/devutf8/R.proto: Add `integral'.
4373         * font/devlj4/generate/special.map: Ditto.
4374         * font/devlj4/S: Regenerated.
4375         * font/devps/generate/textmap: Add `integral'.
4376         * font/devps/S: Regenerated.
4378         * tmac/dvi.tmac: Define `is'.
4380         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `integral'.
4382         * src/preproc/tbl/main.cc (process_format): Fix error message.
4384 2003-01-02  Werner LEMBERG  <wl@gnu.org>
4386         * font/devhtml/R.proto, font/devutf8/R.proto: Add `ne' and `nc'.
4387         * font/devps/textmap: Fix entries for `ne' and `nc'.
4388         * font/devps/symbolmap: Regenerated.
4390         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list),
4391         src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `18',
4392         `38', `58', `78', `-+', `|=', `nc', `ne'.
4394         * tmac/dvi.tmac: Add `nm', `ne', `nc'.
4395         Use `schar' for `aq'.
4396         * tmac/ps.tmac, tmac/X.tmac: Add `nc' and `ne'.
4397         * tmac/ec.tmac: Add `SC' to special fonts for `CW' and `CWI'.
4398         * tmac/tty.tmac: Add `ne'.
4400         * src/roff/troff/node.cc (make_glyph_node): Test with `get_macro'
4401         for fallback glyphs.
4403 2002-12-29  Werner LEMBERG  <wl@gnu.org>
4405         Add glyph `|='.
4407         * font/devX*/*: Regenerated.
4408         * font/devdvi/generate/ec.map: Remove `eq'.
4409         * font/devdvi/generate/texsy.map: Make `~=' the same as `~~'.
4410         Assign `|=' to position 39.
4411         * font/devdvi/*EC, S: Regenerated.
4412         * font/devhtml/R.proto, font/devutf8/R.proto: Add `|='.
4413         * font/devlj4/generate/special.map: Make `~=' the same as `~~'.
4414         Assign `|=' to position 549.
4415         * font/devps/generate/textmap, font/devps/enerate/symbolmap: Remove
4416         `equalmath'.
4417         Add `uni2243' for `|='.
4419         * tmac/ec.tmac: Add `eq'.
4420         * tmac/dvi.tmac: Add `=~'.
4421         * tmac/tty-char.tmac, tmac/ps.tmac, tmac/X.tmac, tmac/lbp.tmac: Add
4422         `|='.
4424 2002-12-21  Werner LEMBERG  <wl@gnu.org>
4426         * font/devdvi/generate/tc.map: Remove `**'.
4427         * font/devdvi/*TC: Regenerated.
4428         * font/devhtml/R.proto, font/devutf8/R.proto: Add `18', `38', `58',
4429         `78', `<<', `>>'.
4430         * font/devutf8/NOTES: Updated.
4432         * src/roff/troff/charinfo.h (charinfo): Add `setx_macro' function.
4433         Don't give default parameter to `set_macro'.
4434         * src/roff/troff/input.cc (do_define_character): Use `setx_macro'
4435         instead of `set_macro'.
4436         (charinfo::setx_macro): Implement it.
4437         (charinfo::set_macro): Don't change `mode'.
4439         * tmac/tty.tmac: Add `18', `38', `58', `78', `<<', `>>'.
4440         * tmac/ps.tmac, tmac/X.tmac: Add `<<', `>>'.
4441         * tmac/dvi.tmac: Define `!=' with `.schar'.
4443 2002-12-20  Werner LEMBERG  <wl@gnu.org>
4445         * font/devX*/S: Regenerated.
4446         * font/devdvi/generate/ec.map: Remove `pl'.
4447         * font/devdvi/generate/tc.map: Remove `mi', `14', `12', `34'.
4448         * font/devdvi/*{TC,EC}: Regenerated.
4449         * font/devhtml/R.proto: Add `-+'.
4450         Remove double entries for `rk', `lk', `lt', `rt', `rb', `lb'.
4451         * font/devlbp/*: Remove `or'.
4452         * font/devlj4/generate/special.map: Remove `or'.
4453         * font/devlj4/S: Regenerated.
4454         * font/devps/generate/textmap: Add `fiveeighths', `oneeighth',
4455         `seveneighths', `threeeighths'.
4456         Remove `plusmath'.
4457         Replace `minusplus' with `uni2213'.
4458         * font/devps/symbolmap: Regenerated.
4459         * font/devutf8/R.proto: Replace `shc' with unnamed glyph.
4460         Add `-+'.
4462         * src/roff/troff/charinfo.h (charinfo): Add `is_normal' inline
4463         function.
4464         * src/roff/troff/node.cc (troff_output_file::put_char_width):
4465         Call glyph_color and fill_color even if tcommand_flag isn't set.
4466         (make_node, node::add_char): Check not ci->is_fallback but
4467         ci->is_normal.
4469         * tmac/lj4.tmac, tmac/lbp.tmac: Define `or'.
4470         * tmac/ec.tmac: Add .rchar entry for `f/'.
4471         Don't remove `12', `14', `34'.
4472         Define `pl' to be always roman.
4473         * tmac/ps.tmac (ps-frac, ps-frac-mono): New macros.
4474         Define `18', `38', `58', `78'.
4475         * tmac/tty.tmac: Add `-+'.
4476         * tmac/dvi.tmac: Define `f/'.
4477         (dvi-frac): Use `f/'.
4478         * tmac/X.tmac (X-frac, X-frac-mono): New macros.
4479         Define `18', `38', `58', `78'.
4481 2002-12-15  Colin Watson  <cjwatson@debian.org>
4483         * contrib/pic2graph/pic2graph.sh: Add missing `;;'.
4485 2002-12-10  Werner LEMBERG  <wl@gnu.org>
4487         Add glyph `tno', a textual variant of `no'.
4489         * font/devX*/*: Regenerated.
4490         * font/{devcp1047,devlatin1,devutf8,devhtml}/R.proto: Add `tno'.
4491         * font/devdvi/generate/{tc.map: Replace `no' with `tno'.
4492         * font/devdvi/generated/{texsy,textex}.map: Add `tno'.
4493         * font/devdvi/*: Regenerated.
4494         * font/devlbp/*: Add `tno'.
4495         * font/devlj4/generate/tex.map: Replace `no' with `tno'.
4496         * font/devlj4/*: Regenerated.
4497         * font/devps/generate/textmap: Replace `no' with `tno'.
4498         * font/devps/generate/symbolchars: Add `no'.
4499         * font/devps/*: Regenerated.
4501         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Add `tno'.
4503         * tmac/cp1047.tmac, tmac/latin1.tmac: Replace `no' with `tno'.
4504         * tmac/tty-char.tmac: Add entry for `tno' and `3d'.
4506         * NEWS: Updated.
4508         * tmac/dvi.tmac: Replace most `\\' with `\E'.
4509         Add definition for `sd'.
4510         * tmac/X.tmac, tmac/ps.tmac: Replace most `\\' with `\E'.
4512         * tmac/eqnrc <dvi>: Use `integral' instead of `is' glyph.
4514 2002-12-08  Werner LEMBERG  <wl@gnu.org>
4516         * tmac/an-old.tmac (TH): Use integer value for `IN' if in nroff
4517         mode to avoid rounding errors.
4518         (an-do-tag, an-do-tag-html, RS, RE): Remove redundant `.br'.
4520         * src/roff/groff/groff.man, src/roff/nroff/nroff.man,
4521         src/roff/troff/troff.man: Improve documentation of -T.
4523 2002-12-07  Jeff Conrad  <jeff_conrad@msn.com>
4525         * src/roff/groff/pipeline.c: Don't define `const' for _WIN32.
4526         (run_pipeline) [_WIN32]: Provide working function without `fork'.
4528 2002-12-06  Werner LEMBERG  <wl@gnu.org>
4530         * font/devps/generate/freeeuro.sfd: Make dimensions of Euro.symbol
4531         glyphs compatible to Adobe's Euro fonts (scaling them down a bit).
4532         Scaling Euro.sansserif glyphs down to have the same height as
4533         digits.
4534         Removed unnecessary points; added some extrema.
4536         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4537         Regenerated.
4539 2002-12-04  Werner LEMBERG  <wl@gnu.org>
4541         * font/devps/generate/freeeuro.sfd: Add glyphs `Euro.symbol.slanted'
4542         and `Euro.symbol.bold.slanted'.
4543         Improve some glyph offsets and widths.
4544         * font/devps/EURO, font/devps/freeeuro.afm, font/devps/freeeuro.pfa:
4545         Regenerated.
4546         * font/devps/generate/Makefile (freeeuro.afm freeeuro.pfa): Fix
4547         typo.
4548         * font/devps/generate/sfdtopfa.pe: Generate PFA in current
4549         direcory.
4551         * tmac/europs.tmac: Updated to new glyph indices.
4552         Use Euro.symbol for font familiy `A'.
4554         * doc/groff.texinfo: Minor improvements.
4556 2002-12-02  Werner LEMBERG  <wl@gnu.org>
4558         * font/devdvi/generate.tc.map: s/%O/%0/.
4559         * font/devdvi/*TC: Regenerated.
4561         * src/roff/troff/div.cc (init_div_requests): Sorted.
4563         * tmac/dvi.tmac: Remove `Ye'.
4564         * tmac/ec.tmac: Remove `Ye'.
4565         Add .rchar entry for `de'.
4567         * man/groff.man, man/groff_diff.man: Document register `.pe'.
4568         * doc/groff.texinfo: Document registers `.pe', `.n', and `.w'.
4569         * NEWS: Updated.
4571 2002-11-30  Werner LEMBERG  <wl@gnu.org>
4573         Add PS font for various Euro glyphs.
4575         * font/devps/generate/freeeuro.sfd: New master font file for
4576         pfaedit.
4577         * font/devps/generate/sfdtopfa.pe: New conversion script for
4578         pfaedit.
4579         * font/devps/generate/Makefile (FONTS): Add `EURO'.
4580         (EURO, freeeuro.afm, freeeuro.pfa): New rules.
4581         * font/devps/freeeuro.pfa, font/devps/freeeuro.afm: Generated from
4582         `freeeuro.sfd'.
4583         * font/devps/EURO: Generated from `freeeuro.afm'.
4584         * font/devps/download: Add `freeuro.pfa'.
4585         * font/devps/Makefile.sub (NORMALFILES): Adde `EURO' and
4586         `freeeuro.pfa'.
4588         * tmac/europs.tmac: New file.
4589         * tmac/ps.tmac: Include `europs.tmac'.
4590         * tmac/Makefile.sub (DISTFILES): Add `europs.tmac'.
4592 2002-11-29  Werner LEMBERG  <wl@gnu.org>
4594         * font/devdvi/generate/texsy.map: Remove `lh' and `rh'.
4595         * font/devdvi/S: Regenerated.
4596         * font/devhtml/R.proto: Fix `CR' and `ci'.
4597         Add `OK'.
4598         * font/devps/generate/textmap: Fix `lh', `rh', and `sq'.
4599         Remove `bs'.
4600         * font/devps/symbolmap: Regenerated.
4601         * font/devutf8/R.proto: Fix `CR' and `ci'.
4602         Add `OK'.
4603         * font/devutf8/NOTES: Updated.
4605         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Fix `CR' and
4606         `ci'.
4607         Add `OK'.
4608         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4610         * tmac/dvi.tmac: Add `lh' and `rh'.
4611         * tmac/Xps.tmac: Fix `lh' and `rh'.
4612         * tmac/X.tmac: Add `OK'.
4613         * tmac/lj4.tmac: Ditto.
4615 2002-11-24  Werner LEMBERG  <wl@gnu.org>
4617         * font/devX*/S: Regenerated.
4618         * font/devascii/R.proto, font/devcp1047/R.proto: Remove glyphs `lb',
4619         `lc', `lf', `lk', `lt', `rb', `rc', `rf', `rk', and `rt'.
4620         * font/devdvi/generate/texsy.map: Remove `or' glyph.
4621         * font/devdvi/S: Regenerated.
4622         * font/devhtml/R.proto, font/devutf8/R.proto: Add/fix glyphs
4623         `parenlefttp', `parenleftex', `parenleftbt', `parenrighttp',
4624         `parenrightex', `parenrightbt', `bracketlefttp', `bracketleftex',
4625         `bracketleftbt', `bracketrighttp', `bracketrightex',
4626         `bracketrightbt', `bracelefttp', `braceleftmid', `braceleftbt',
4627         `braceex', `braceleftex', `bracerightex', `bracerighttp',
4628         `bracerightmid', `bracerightbt', `lt', `lk', `lb', `rt', `rk',
4629         `rb', and `bv'.
4630         * src/roff/troff/glyphuni.cc, src/roff/troff/uniglyph.cc: Ditto.
4631         * font/devutf8/NOTES: Updated.
4632         * font/devlj4/generate/special.map: Add glyph `braceex'.
4633         * font/devlj4/S: Regenerated.
4635         * tmac/tty-char.tmac: Add glyphs `lf', `rf', `lc', and `rc'.
4637 2002-11-14  Werner LEMBERG  <wl@gnu.org>
4639         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Add `va'
4640         and `vA'.
4641         Fix code for `an'.
4642         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Ditto.
4644         * doc/texinfo.tex: New version from texinfo 4.3.
4645         * doc/groff.texinfo: Updated for texinfo 4.3.
4646         Use @tie{} where appropriate.
4647         * font/devdvi/generate/ec.map: Don't include `or' and `bv'.
4648         * font/devdvi/generate/tc.map: Remove `rn'.
4649         * font/devdvi/*TC, font/devdvi/*EC: Regenerated.
4650         * font/devhtml/R.proto, font/devutf8/R.proto: Add `vA'.
4651         Fix code for `an'.
4652         * font/devX100/*, font/devX100-12/*, font/devX75/*,
4653         font/devX75-12/*: Regenerated.
4655         * tmac/dvi.tmac: Add special fonts `SA' and `SB'.
4656         Use .char (again) for `br', `ul', `rn', `or', and `ru'.
4657         Improve definition of `an'.
4658         * tmac/ps.tmac: Use .char (again) for `br', `ul', `rn', `or', and
4659         `ru'.
4660         * tmac/lj4.tmac: Use .char (again) for `br', `ul', `rn', and `ru'.
4661         * tmac/X.tmac: Add definition for `or'.
4662         * tmac/Xps.tmac: Undo change 2002-11-05.
4663         * tmac/lbp.tmac: Add definitions for `br', `rn', `ul', and `ru'.
4665 2002-11-11  Werner LEMBERG  <wl@gnu.org>
4667         * src/roff/troff/node.cc (troff_output_file::put_char): Always
4668         call flush_tbuf.
4670 2002-11-10  Werner LEMBERG  <wl@gnu.org>
4672         Added three new requests `schar', `fschar', and `rfschar'.  `schar'
4673         defines a glyph which is searched after the check for fonts declared
4674         with `.special' (and before the check for all mounted special
4675         fonts).  `fschar' defines a glyph for a particular font which is
4676         searched after the check for fonts declared with `.fspecial' (and
4677         before the check for fonts declared with `.special').  `rfschar'
4678         removes glyphs defined with `fschar'.
4680         * src/roff/troff/token.h (char_mode): New enum.
4681         Declare do_define_character.
4682         * src/roff/troff/charinfo.h (charinfo): Replace `fallback' with
4683         `mode'.
4684         (charinfo::is_fallback): Updated.
4685         (charinfo::is_special): New method.
4686         * src/roff/troff/input.cc (do_define_character): Add and use
4687         optional second parameter used as a prefix for font-specific glyph
4688         names.
4689         (define_character, define_fallback_character): Updated.
4690         (define_special_character): New function.
4691         (init_input_requests): Add `schar'.
4692         (charinfo::charinfo, charinfo::set_macro): Updated.
4693         * src/roff/troff/node.cc: Include `stringclass.h'.
4694         (make_glyph_node): Handle special glyphs defined with `.schar' and
4695         `.fschar'.
4696         (define_font_special_character, remove_font_special_character): New
4697         functions.
4698         (init_node_requests): Sorted.
4699         Add `fschar' and `rfschar'.
4700         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo:
4701         Document new requests.
4703         * font/devhtml/R.proto, font/devutf8/R.proto: Add `va'.
4704         * tmac/dvi.tmac: Add `va' for CW and CWI (using `.fschar').
4706 2002-11-08  Werner LEMBERG  <wl@gnu.org>
4708         Added new font `SC' (cmtex10) to devdvi.
4710         * devdvi/generate/Makefile (FONTS): Add `SC'.
4711         (SC): New rule.
4712         * devdvi/generate/textex.map: New map file for cmtex.
4713         * devdvi/SC: New.
4714         * devdvi/Makefile.sub (DEVFILES): Updated.
4715         * tmac/dvi.tmac: Add fspecial entries for SC.
4716         Add `MI', `S' and `CW' to the `special' call.  Otherwise, `SC' is
4717         found before `S' since the font position of `SC' is lower due to the
4718         gaps in DESC's `font' line.
4719         * tmac/ec.tmac: Add a `special' call.
4720         * NEWS: Updated.
4722         * font/devhtml/R.proto: Remove double entry for `ti'.
4723         * tmac/tty.tmac: Add entries for `IJ', `ij', and `bq'.
4724         * tmac/tty-char.tmac: Remove entry for `bq'.
4725         * tmac/lbp.tmac: Add entries for `lq', `rq', `fo', `fc', and `em'.
4726         * tmac/ec.tmac: Don't remove `aq' glyph.
4727         * tmac/X.tmac: Fix entry for `em'.
4728         Add entries for `fo' and `fc'.
4729         * tmac/dvi.tmac: Add entries for `em', `en', `hy', `fo', and `fc'.
4731         * doc/groff.texinfo, man/groff.man, man/groff_diff.man: Fix
4732         documentation of `special' and `fspecial' requests.
4734 2002-11-05  Werner LEMBERG  <wl@gnu.org>
4736         * font/devascii/R.proto, font/devcp1047/R.proto,
4737         font/devlatin1/R.proto: Remove entry for `.i'.
4738         * font/devdvi/generate/textt.map: Add entry for `ad'.
4739         * font/devdvi/generate/texr.map, font/devdvi/generate/texb.map,
4740         font/devdvi/generate/texi.map: Add dummy glyph name `slash@for@l'.
4741         We need this for getting kerning values to compose `/l' and `/L'.
4742         * font/devdvi: Regenerated font definition files for CM fonts.
4743         * font/devhtml/R.proto: Add entries for "'C", "'c", `IJ', and `ij'.
4744         * font/devutf8/R.proto: Ditto.
4745         Remove double entry for `ti'.
4747         * src/roff/troff/glyphuni.cc (glyph_to_unicode_list): Fix entries
4748         for (groff) ligatures, `la', and `ra'.
4749         Add "'C", "'c", `IJ', and `ij'.
4750         Remove double entry for `ti'.
4751         * src/roff/troff/uniglyph.cc (unicode_to_glyph_list): Remove all
4752         double entries.
4753         Add "'C", "'c", `IJ', and `ij'.
4754         Fix entries for (groff) ligatures, `la', and `ra'.
4756         * tmac/ps.tmac (ps-achar): New macro.
4757         Define "'c" and "'C".
4758         * tmac/tty.tmac: Add entry for `.i'.
4759         * tmac/X.tmac (X-achar): New macro.
4760         Define "'c", "'C", and `:Y'.
4761         Add entries for `IJ' and `ij'.
4762         * tmac/Xps.tmac (Xps-achar): New macro.
4763         Define "'c" and "'C".
4764         Add entries for `IJ' and `ij'.
4765         * tmac/lbp.tmac (lbp-achar): New macro.
4766         Add fallback characters for all groff ligatures and many other
4767         glyphs.
4768         * tmac/dvi.tmac: Fix definitions of `_' and `ul'.
4769         Add entries for `/l' and `/L'.
4770         Define "'c" and "'C".
4771         Add entries for `IJ' and `ij'.
4773 2002-11-02  Larry Kollar  <kollar@alltel.net>
4775         * PROBLEMS: Document how to solve Mac OS X compilation problems.
4777 2002-11-02  Werner LEMBERG  <wl@gnu.org>
4779         Adding support for composite glyphs: \[xxx yyy ...] and the
4780         `composite' request.
4782         * src/roff/troff/glyphuni.cc: New file for mapping groff glyph names
4783         to Unicode-based glyph names.
4784         * src/roff/troff/uniglyph.cc: New file for mapping Unicode-based
4785         glyph names to groff glyph names.
4786         * src/roff/troff/uniuni.cc: New file for canonically decomposing
4787         Unicode-based glyph names.
4788         * src/roff/troff/unicode.cc, src/roff/troff/unicode.h: New files
4789         for handling Unicode glyph names.
4790         * src/roff/troff/input.cc: Include unicode.h.
4791         (composite_glyph_name): New function.
4792         (token::next) <'['>: Handle Unicode glyph names and composite
4793         glyphs.
4794         (composite_dictionary): New dictionary for the `composite' request.
4795         (composite_request): Implement `composite' request.
4796         (init_input_requests): Add `composite'.
4797         Alphabetically sorted.
4798         * src/roff/troff/env.cc (tabs_save, tabs_restore): Removed (already
4799         commented out).
4800         (init_env_requests): Alphabetically sorted.
4801         Removed `tas' and `tar' (already commented out).
4802         * src/roff/troff/Makefile.sub: Updated.
4804 2002-10-31  Ruslan Ermilov  <ru@FreeBSD.org>
4806         * src/roff/nroff/nroff.man, src/roff/nroff/nroff.sh: Fix description
4807         of options.
4809 2002-10-29  Werner LEMBERG  <wl@gnu.org>
4811         Fix computation of .trunc register.  Additionally, its value (and
4812         the value of the .ne register) is now always set before entering the
4813         trap.
4815         * src/roff/troff/div.cc (diversion::need): Set `truncated_space' and
4816         `needed_space' before calling `space'.
4817         (top_level_diversion::space): Remove special code for 'sp before the
4818         first page.
4819         Call `begin_page' with the discarded space as a parameter.
4820         (top_level_diversion::begin_page): Add optional parameter to set
4821         `truncated_space'.
4822         * src/roff/troff/div.h: Updated.
4824         * doc/groff.texinfo: Improve documentation of .sp, \n[.trunc], and
4825         \n[.ne].
4827         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Undo change 2002-10-26.
4828         (LP): Remove superfluous call to `br'.
4829         * tmac/doc-common (doc-paragraph): Undo change 2002-10-26.
4830         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4832 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4834         * tmac/doc-ditroff: Remove useless switch/variable -rC.
4835         (doc-setup-header): Don't set page register `%'.
4836         * tmac/doc-nroff: Remove variable `C'.
4837         (doc-setup-page-layout): Set doc-header-space to .5i unconditionally.
4838         (doc-setup-header): Don't set page register `%'.
4839         Don't call `bp'.
4840         * tmac/doc-common (doc-header): Call `ns'.
4841         (doc-paragraph): Protect .sp with .br so that it survives traps
4842         possibly set by the user.
4843         * tmac/doc.tmac (Bd, Bl, doc-set-vertical-and-indent): Ditto.
4845         * tmac/doc*: Replace ' with . for consistency if no effect.
4847 2002-10-26  Werner LEMBERG  <wl@gnu.org>
4849         * tmac/an-old.tmac (SH, SS, TP, IP, HP, TS): Protect .sp with .br
4850         so that it survives traps possibly set by the user.
4852         * src/roff/troff/node.cc: Fix the changes from 2002-10-23.
4853         (troff_output_file::set_font): Call flush_tbuf if necessary.
4854         (troff_output_file::fill_color, troff_output_file::glyph_color): Call
4855         flush_tbuf and do_motion only if necessary.
4856         (troff_output_file::start_special,
4857         troff_output_file::put_char_width, troff_output_file::put_char,
4858         troff_output_file::draw): Updated.
4859         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4860         vmotion_node::tprint): Undo change 2002-10-23.
4862 2002-10-25  Werner LEMBERG  <wl@gnu.org>
4864         * tmac/www.tmac (DC): Fix case of overlapping images.
4866 2002-10-23  Werner LEMBERG  <wl@gnu.org>
4868         * src/roff/troff/node.cc (troff_output_file::fill_color,
4869         troff_output_file::glyph_color): Set current color before testing
4870         color_flag.
4871         (troff_output_file::put_char_width, troff_output_file::put_char,
4872         troff_output_file::draw): Don't call flush_tbuf and/or do_motion
4873         before glyph_color.
4874         (troff_output_file::file_color, troff_output_file::glyph_color):
4875         Call do_motion.
4876         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
4877         vmotion_node::tprint): Move first, then call fill_color.
4879 2002-10-20  Werner LEMBERG  <wl@gnu.org>
4881         * doc/groff.texinfo, man/groff_tmac.man: Document that it is not
4882         possible to use multiple main macro packages.
4884 2002-10-19  Werner LEMBERG  <wl@gnu.org>
4886         * src/devices/grops/ps.cc (cmyk_flag): New global variable.
4887         (ps_printer::set_color): Set `cmyk_flag' for CMY and CMYK colors.
4888         (ps_printer::~ps_printer): Emit `%%Extensions: CMYK' if `cmyk_flag'
4889         is set.
4890         * font/devps/prologue.ps (Fk, Ck): Enclose definitions with a
4891         `where' construction since `cmyksetcolor' is a PS Level 2 operator.
4893 2002-10-16  Werner LEMBERG  <wl@gnu.org>
4895         * NEWS, doc/webpage.ms: Updated.
4897 2002-10-14  Werner LEMBERG  <wl@gnu.org>
4899         * src/roff/troff/node.cc (troff_output_file::put_char_width,
4900         troff_output_file::put_char, troff_output_file::fill_color,
4901         troff_output_file::glyph_color): Handle case where color pointer
4902         is null.
4904 2002-10-13  Ruslan Ermilov  <ru@FreeBSD.org>
4906         Add the new -r option to grotty.  It is similar to the -i option
4907         except it tells grotty(1) to use the "reverse video" attribute to
4908         render italic fonts.
4910         * src/devices/grotty/tty.cc (reverse_flag): New global variable.
4911         (SGR_REVERSE, SGR_NO_REVERSE): New macros.
4912         (tty_printer::make_underline, tty_printer::put_color,
4913         tty_printer::end_page): Use it.
4914         (main): Add -r switch.
4915         (usage): Updated.
4916         * src/devices/grotty/grotty.man: Document it.
4918 2002-10-11  Ruslan Ermilov  <ru@FreeBSD.org>
4920         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
4921         cast to `unsigned char' to properly read patterns with 8bit
4922         characters.
4924 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4926         * REVISION: Increased to 2.
4928 Version 1.18.1 released
4929 =======================
4931 2002-10-08  Werner LEMBERG  <wl@gnu.org>
4933         * doc/webpage.ms, NEWS: Updated.
4935 2002-10-07  Werner LEMBERG  <wl@gnu.org>
4937         * tmac/doc-common (Ss): Add final `.ns' (similar to `.Sh') to
4938         suppress additional whitespace after the header.
4940         * tmac/doc-ditroff, tmac/doc-nroff (Am): New string to be in sync
4941         with NetBSD.
4943         * src/preproc/grn/grn.man, tmac/groff_mdoc.man, NEWS: Updated.
4945 2002-10-07  Ruslan Ermilov  <ru@FreeBSD.org>
4947         * tmac/doc-common(doc-volume-operating-system-ateol): New flag.
4948         (Dt): Use it to improve language localization (especially Russian
4949         and French).
4951 2002-10-07  Daniel Senderowicz  <daniel@synchrods.com>
4953         * src/preproc/grn/gprint.h (BSPLINE, BEZIER): New macros.
4954         * src/preproc/grn/hdb.cc (DBGetType): Parse spline and bezier
4955         drawing commands.
4956         * src/preproc/grn/hgraph.cc (drawwig): Add parameter to control
4957         curve type.
4958         Call `picurve' for BSPLINE.
4959         (HGPrintElt): Handle BSPLINE.
4960         * src/preproc/grn/README: Document it.
4962 2002-10-03  Werner LEMBERG  <wl@gnu.org>
4964         * src/roff/troff/node.cc (break_char_node::col): New variable.
4965         Updated constructor.
4966         (space_node::tprint, word_space_node::tprint): Call `fill_color'
4967         unconditionally.
4968         (space_node::space_node): Remove assertion.
4969         (break_char_node::add_self): Pass color argument to space node.
4970         * src/roff/troff/input.cc (token::add_to_node_list, token::process):
4971         Ditto.
4972         * src/roff/troff/env.cc (environment::do_break,
4973         environment::add_padding): Ditto.
4975 2002-10-02  Werner LEMBERG  <wl@gnu.org>
4977         Redesigning color support in troff.  Colors are no longer
4978         represented as separate nodes but are now part of glyph nodes and
4979         friends.  This fixes the current formatting misbehaviour due to the
4980         changes introduced on 2002-09-20.  Some extra code is necessary for
4981         proper grotty support: Without adding color variables to
4982         space-related nodes, the background color would be changed too late.
4984         * src/roff/troff/node.h, src/roff/troff/node.cc:
4985         s/current_pagecolor/current_fill_color/.
4986         s/current_glyphcolor/current_glyph_color/.
4987         (glyph_color_node, fill_color_node): Removed.
4988         (node::get_glyph_color, node::get_fill_color): New virtual member
4989         functions.
4990         (space_node::col): New variable.
4991         Updated constructors of space_node and derived classes accordingly.
4992         (hmotion_node::col): New variable.
4993         Updated constructors of hmotion_node and space_char_hmotion_node
4994         accordingly.
4995         (vmotion_node::col): New variable.
4996         Updated constructor accordingly.
4997         (draw_node::gcol, draw_node::fcol): New variables.
4998         Updated constructor accordingly.
4999         (special_node::gcol, special_node::fcol): New variables.
5000         Updated constructors accordingly.
5001         (troff_output_file::put_char, troff_output_file::put_charwidth,
5002         troff_output_file::draw): Set glyph and fill color.
5003         (troff_output_file::start_special): Set glyph and fill color.
5004         Always set current font.
5005         (troff_output_file::fill_color, troff_output_file::glyph_color):
5006         Don't call `do_motion'.
5007         (glyph_node::gcol, glyph_node::fcol): New variables.
5008         Updated constructors of glyph_node and ligature_node accordingly.
5009         (glyph_node::get_glyph_color, glyph_node::get_fill_color): New
5010         member functions.
5011         (glyph_node::merge_glyph_node,
5012         kern_pair_node::add_discretionary_hyphen,
5013         node::add_discretionary_hyphen): Updated.
5014         (break_char_node::merge_self): Updated.
5015         (word_space_node::tprint, space_node::tprint, hmotion_node::tprint,
5016         vmotion_node::tprint): Handle color.
5017         (make_glyph_node, make_node, node::add_char): Updated.
5019         * src/roff/troff/env.cc (environment::space_newline,
5020         environment::space, environment::output_line, environment::do_break,
5021         environment::make_tab_node, environment::add_padding, title):
5022         Updated.
5023         (environment_switch, environment_copy): Don't add color nodes.
5025         * src/roff/troff/input.cc (do_glyph_color, do_fill_color): Return
5026         nothing.
5027         (token::next): Updated.
5028         \m and \M now are as transparent as \s.
5029         (process_input_stack, token::add_to_node_list, token::process,
5030         read_draw_node): Updated.
5031         (charinfo_to_node_list): Don't add color nodes.
5033         * doc/groff.texinfo: Updated.
5035 2002-09-27  Ruslan Ermilov  <ru@FreeBSD.org>
5037         * tmac/doc-common (ds-operating-system-FreeBSD-4.*): New version
5038         strings.
5040 2002-09-27  Colin Watson  <cjwatson@debian.org>
5042         * src/roff/troff/node.cc (bracket_node::copy): Check `list' != 0.
5044 2002-09-23  Werner LEMBERG  <wl@gnu.org>
5046         * src/devices/grolbp/lbp.cc: Replace `300' with `font::res' where
5047         appropriate.
5048         (DEFAULT_LINEWIDTH_FACTOR): New macro.
5049         (linewidth_factor): New global variable.
5050         (lbp_printer::set_line_thickness): Fix case for size < 0, using
5051         linewidth_factor.
5052         (long_options): Add -w/--linewidth option.
5053         (usage): Updated.
5054         (main): Handle -w option to set linewidth_factor.
5055         (lbp_printer::lbp_printer): Initialize req_linethickness, not
5056         line_thickness.
5058         * src/devices/grolbp/grolbp.man, NEWS, doc/webpage.ms: Updated.
5060 2002-09-22  Paco Andrés Verdú  <pandres@dragonet.es>
5062         Fixed a bug in the line thickness setting code.
5064         * src/devices/grolbp/lbp.cc (lbp_printer::req_linethickness): New
5065         variable.
5066         (lbp_printer::set_line_thickness): Pass environment as second
5067         parameter.
5068         Implement it actually.
5069         (lpb_printer::set_char, lbp_printer::draw): Use `req_linethickness'
5070         and `set_line_thickness, depending on the current font size.
5072 2002-09-21  Werner LEMBERG  <wl@gnu.org>
5074         Some Debian patches.
5076         * src/roff/groff/pipeline.h (MAX_COMMANDS): Increase to 12.
5077         * src/roff/troff/node.cc (bracket_node::copy): Initialize
5078         `list->last'.
5080 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5082         * configure: Regenerated with autoconf 2.54.
5084 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5086         * src/roff/troff/env.h (environment): Rename cur_glyph_color to
5087         glyph_color.
5088         Rename cur_fill_color to fill_color.
5089         * src/roff/troff/env.cc: Updated.
5091 2002-09-20  Werner LEMBERG  <wl@gnu.org>
5093         * src/roff/troff/env.cc (title): Copy color status after processing
5094         title.
5095         * src/roff/troff/input.cc (charinfo_to_node_list): Emit glyph and
5096         fill color nodes to reset colors properly.
5098         * tmac/www.tmac (DC): Fix color handling.
5100         * src/preproc/pic/pic.man, doc/pic.ms: Document some color issues.
5101         * doc/groff.texinfo: Fixing documentation of `tl' request.
5102         * doc/webpage.ms: Updated.
5104 2002-09-19  Werner LEMBERG  <wl@gnu.org>
5106         * src/roff/troff/env.cc (environent_switch, environment_copy):
5107         Emit glyph and fill color nodes to initialize colors properly.
5109 2002-09-17  Colin Watson  <cjwatson@debian.org>
5111         * src/roff/troff/env.cc (environment::set_glyph_color,
5112         environment::set_fill_color): Fix typo which prevented \m[] work
5113         correctly.
5115 2002-09-17  Werner LEMBERG  <wl@gnu.org>
5117         Add left and right italic correction to non-slanted PS fonts.  This
5118         is an experimental feature to improve image rendering of grohtml.
5120         * font/devps/generate/Makefile (RFLAG): New variable, set to `-i 0'.
5121         ({T,H,C,P,N,BM,A,HN}{R,B}, ZD, S, ZDR): Use it.
5122         * font/devps/*: All non-slanted fonts regenerated.
5123         * NEWS: Updated.
5125 2002-09-16  Werner LEMBERG  <wl@gnu.org>
5127         Add a site-specific font directory.
5129         * Makefile.in (localfontdir, legacyfontdir): New variables.
5130         (fontpath): Use them.
5131         (MDEFINES, uninstall_dirs): Updated.
5132         * Makefile.comm (.man.n): Add `LOCALFONTDIR' and `LEGACYFONTDIR'.
5133         Remove `FONTPATH' and `MACROPATH'.
5135         * src/roff/troff/troff.man, NEWS: Updated.
5136         * doc/groff.texinfo (Font Directories): New section.
5137         Other minor fixes.
5139         * src/devices/grodvi/grodvi.man, src/devices/grohtml/grohtml.man,
5140         src/devices/grolbp/grolbp.man, src/devices/grolj4/grolj4.man,
5141         src/preproc/grn/grn.man: Minor fixes.
5143         * src/devices/grohtml/post-html.cc (html_printer::do_tab_ts):
5144         Remove unused variable.
5146 2002-09-11  Werner LEMBERG  <wl@gnu.org>
5148         * doc/groff.texinfo, man/groff_font.man: Clarify argument of \N.
5149         * man/groff_out.man: Fix documentation of 'N'.
5151 2002-09-09  Gaius Mulley  <gaius@glam.ac.uk>
5153         * doc/Makefile.in (webpage.html): Depend on gnu.eps also.
5154         * src/roff/troff/env.cc (indent): Emit html tag only if break_flag is
5155         set.
5156         * src/devices/grohtml/post-html.cc (text_glob::is_br_ni): Removed.
5157         (text_glob::is_br, html_printer::lookahead_for_tables): Updated.
5158         (html_printer::do_tab_ts): Call `emit_table_header' with `FALSE'.
5159         * src/devices/grohtml/html-text.cc (html_text::start_tag) <P_TAG,
5160         PRE_TAG>: Call `begin' with `FALSE'.
5162 2002-09-09  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5164         * src/libs/libgroff/string.cc (string::extract): Fix position of
5165         terminating null byte.
5167 2002-09-08  Werner LEMBERG  <wl@gnu.org>
5169         Add global option `nospaces' to tbl so that leading and trailing
5170         spaces in data items are ignored.
5172         * src/libs/libgroff/string.cc (string::remove_spaces): New member
5173         function to remove leading and trailing spaces.
5174         * src/include/stringclass.h: Updated.
5176         * src/preproc/tbl/table.h (table): Add flag `NOSPACES'.
5178         * src/preproc/tbl/main.cc (process_options): Handle `nospaces'
5179         option.
5180         Fix typo in error messages.
5181         (process_data): Implement `nospaces' option.
5182         * src/preproc/tbl/tbl.man, NEWS, doc/webpage.ms: Updated.
5184 2002-09-07  Werner LEMBERG  <wl@gnu.org>
5186         * src/include/config.hin: Add `HAVE_ISATTY'.
5187         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Drop `const' for
5188         `fname' member.
5189         * src/libs/libgroff/tmpname.cc: Include `time.h'.
5190         * src/libs/libdriver/input.cc (Char): Add `operator==' and
5191         `operator!=' for `char'.
5192         * doc/groff.texinfo: Replace @ifnottex block for top node with
5193         @ifhtml block.
5195 2002-09-06  Werner LEMBERG  <wl@gnu.org>
5197         * doc/Makefile.in (.texinfo.html): Add -I switch.
5198         * doc/groff.texinfo: Add @ifnottex block for top node to make
5199         translation to HTML work.
5201 2002-09-05  Gaius Mulley  <gaius@glam.ac.uk>
5203         * src/preproc/html/pre-html.cc (LETTER_LENGTH): Removed.
5204         (get_papersize, determine_vertical_offset): Removed.
5205         (char_buffer::do_image): Always specify letter size.
5206         (main): Updated.
5207         (imageList::createPage): Use -dDEVICEHEIGHTPOINTS instead of
5208         -sPAPERSIZE.
5210 2002-09-05  Werner LEMBERG  <wl@gnu.org>
5212         * doc/groff.texinfo, tmac/groff_man.man: Improve documentation of
5213         default indentation.
5215 2002-09-04  Gaius Mulley  <gaius@glam.ac.uk>
5217         * src/preproc/html/pre-html.cc (imageList::createPage): Use
5218         -sPAPERSIZE for gs.
5219         (generateImages): Clean up push-back buffer.
5221 2002-09-04  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5223         * doc/groff.texinfo: Minor fixes.
5225 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5227         * src/preproc/html/pre-html.cc (DEFAULT_LINE_LENGTH): New macro.
5228         (MAX_WIDTH, A4_LENGTH, A4_OFFSET, LETTER_OFFSET): Removed.
5229         (gsPaper): Removed.
5230         (determine_vertical_offset): Use LETTER_LENGTH.
5231         (createPage): Moved to ...
5232         (imageList::createPage): This.
5233         Call gs with -dDEVICEWIDTHPOINTS to avoid cropping.
5234         (imageList::getMaxX): New function.
5235         (createImage): Moved to ...
5236         (imageList::createImage): This.
5237         (imageList::createImages): New function.
5238         (generateImages): Read `maxx' directly.
5239         Updated.
5240         (scanArguments): Don't specify `gsPaper' for `-o'.
5241         (makeTempFiles): Call `xtmpfile' with the last argument set to
5242         `TRUE'.
5244 2002-08-24  Werner LEMBERG  <wl@gnu.org>
5246         * src/include/nonposix.h (mkdir, WAIT, creat) [_MSC_VER]: Define.
5247         (WAIT, _WAIT_CHILD) [!_MSC_VER]: Define.
5248         * src/preproc/html/pre-html.cc (waitForChild): Use WAIT.
5249         * src/preproc/html/pushback.cc: Include nonposix.h.
5250         * src/roff/groff/pipeline.c: Define strcasecmp and strncasecmp
5251         conditionally.
5253 2002-08-23  Werner LEMBERG  <wl@gnu.org>
5255         Use $(OBJEXT) for the object file extension.
5257         * Makefile.comm (.SUFFIXES): Add .obj.
5258         (.cc.obj, .c.obj): New implicit rules.
5259         * Makefile.in (OBJEXT): New variable, initialized from autoconf.
5260         (MDEFINES): Add EXEEXT and OBJEXT.
5261         * */Makefile.sub: s/.o/.$(OBJEXT)/.
5263 2002-08-22  Werner LEMBERG  <wl@gnu.org>
5265         * INSTALL: Mention texinfo 4.2 as a prerequisite.
5267 2002-08-21  Gaius Mulley  <gaius@glam.ac.uk>
5269         * src/devices/grohtml/post-html.cc (colType): Make enum global to
5270         the file.
5271         (html_printer::update_min_max, html_printer::add_table_end): New
5272         methods.
5273         (html_printer::lookahead_for_tables): Use them.
5274         Reset page offset correctly.
5275         (html_printer::~html_printer): Add creation of creator comment up.
5277 2002-08-20  Werner LEMBERG  <wl@gnu.org>
5279         * tmac/an-old.tmac (T&): New dummy macro to avoid warning.
5280         * man/groff_tmac.man: Fix typos.
5281         * man/groff_font.man: Minor reordering.
5282         * contrib/eqn2graph/eqn2graph.man (Tp): New macro.
5284 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5286         Avoid endless loops while scanning for tables.
5288         * src/devices/grohtml/post-html.cc (list::insert): Set
5289         ptr->right->left.
5290         (html_printer::next_horiz_pos): Add `text_glob' argument; update
5291         all callers.
5292         Return immediately if that argument is NULL.
5293         (html_printer::calc_nf): Don't test if `g' is NULL.
5294         (html_printer::lookahead_for_tables): Use
5295         `glyphs.move_right_get_data'.
5296         Don't test if `g' is NULL.
5298 2002-08-18  Gaius Mulley  <gaius@glam.ac.uk>
5300         A better fix, replacing fix 2002-08-15, for increasing SIZE.
5302         * src/devices/grohtml/post-html.cc (char_block): Make `buffer'
5303         a pointer.
5304         (char_block::char_block): Allocate `buffer'.
5305         (char_buffer::add_string): Use it.
5307 2002-08-15  Werner LEMBERG  <wl@gnu.org>
5309         * src/devices/grops/grops.man, src/devices/grolj4/grolj4.man,
5310         src/devices/grodvi/grodvi.man: Document default line thickness.
5312 2002-08-15  Gaius Mulley  <gaius@glam.ac.uk>
5314         * src/devices/grohtml/post-html.cc (char_block): Increase SIZE to
5315         8192.
5317 2002-08-14  Werner LEMBERG  <wl@gnu.org>
5319         * doc/webpage.ms: Updated.
5321 2002-08-09  Werner LEMBERG  <wl@gnu.org>
5323         * src/roff/troff/node.cc (node::add_char): Call `freeze_space' for
5324         unbreakable space.
5326 2002-08-08  Aaron Campbell  <aaron@monkey.org>
5328         * src/preproc/pic/object.cc (object_spec::make_move): Fix typo
5329         (&& -> &).
5331 2002-08-08  Werner LEMBERG  <wl@gnu.org>
5333         * src/roff/troff/input.cc (read_rgb, read_cmy, read_cmyk): Call
5334         tok.next().
5335         (read_gray): Ditto.
5336         Don't push back a space but a newline onto the stack.
5338 2002-08-07  Gaius Mulley  <gaius@glam.ac.uk>
5340         Add fonts `CI', `CB', and `CBI' to grohtml which have been omitted
5341         inadvertently.
5343         * src/devices/grohtml/post-html.cc (html_printer::end_font,
5344         html_printer::start_font): Handle them.
5345         * src/devices/grohtml/html-text.cc (html_text::do_italic): Don't
5346         reset bold and tt.
5347         (html_text::do_bold): Don't reset italic and tt.
5348         (html_text::do_tt, html_text::do_pre): Don't reset bold and italic.
5349         * font/devhtml/DESC.proto: Add those fonts.
5350         * font/devhtml/Makefile.sub (PROTOFONTS): Updated.
5352 2002-08-07  Werner LEMBERG  <wl@gnu.org>
5354         * MORE.STUFF: Added gpresent.
5356         * tmac/trace.tmac: Show nesting level by a corresponding amount of
5357         whitespace before printing the logging message.
5359 2002-07-31  Colin Watson  <cjwatson@debian.org>
5361         * src/devices/grohtml/html-table.cc (html_table::finish_row):
5362         Initialize `n' to zero.  This fixes a segfault on ARM.
5364 2002-07-30  Werner LEMBERG  <wl@gnu.org>
5366         * doc/grnexmpl.me: Remove calls to .st and .sc which are undefined.
5368 2002-07-29  Werner LEMBERG  <wl@gnu.org>
5370         * src/preproc/pic/pic.y (print_arg, relative_path): Add missing
5371         final semicolon.
5373 2002-07-28  Colin Watson  <cjwatson@debian.org>
5375         * src/devices/grohtml/post-html (html_printer::troff_tag): Handle
5376         `.ps'.
5377         (html_printer::html_printer): Initialize `pointsize'.
5379 2002-07-26  Werner LEMBERG  <wl@gnu.org>
5381         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Remove gnu.eps and
5382         gnu.png.
5383         (CLEANNOTSRCDIRADD): Add gnu.eps and gnu.png.
5384         (gnu.eps): Add -rle switch to pnmtops.
5385         (distfiles): Add gnu.eps and gnu.png.
5387 2002-07-25  Petter Reinholdtsen  <pere@hungry.com>
5389         * src/libs/libdriver/input.cc (Char): Add const to `operator=='.
5390         Add `operator!='.
5392 2002-07-24  Werner LEMBERG  <wl@gnu.org>
5394         * doc/Makefile.in, doc/Makefile.sub (groff_bin_path): Don't use
5395         ' \+' but '  *' for sed.
5396         (GROFF): Set GROFF_COMMAND_PREFIX to empty value.
5398 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5400         * doc/groff.texinfo: Document `papersize' keyword.
5401         * NEWS, man/groff_font.man: Updated.
5403 2002-07-23  Colin Watson  <cjwatson@debian.org>
5405         Extend papersize keyword to accept more than a single entry.  The
5406         first valid will be used.
5408         * src/libs/libgroff/font.cc (font::load_desc): Implement it.
5409         (font::scan_papersize): Really skip final newline.
5410         * src/preproc/html/pre-html.cc (get_papersize): Ditto.
5412 2002-07-23  Werner LEMBERG  <wl@gnu.org>
5414         * configure.ac: Test for isatty.
5415         * configure: Regenerated.
5416         * src/include/posix.h: Check HAVE_ISATTY.
5417         * src/roff/troff/input.cc [ISATTY_MISSING]: Removed.
5418         * src/utils/lookbib/lookbib.cc: Include posix.h.
5419         Don't declare isatty.
5421 2002-07-21  Werner LEMBERG  <wl@gnu.org>
5423         * NEWS: Add `output' request.
5425         * REVISION: Increased to 1.
5427 Version 1.18.0 released
5428 =======================
5430 2002-07-19  Gaius Mulley  <gaius@glam.ac.uk>
5432         Allow internal glyph indices > 0xFF in grohtml for input characters.
5434         * src/devices/grohtml/post-html.cc (to_unicode): Use `unsigned int'
5435         as parameter.
5436         (html_printer::add_to_sbuf): Use `unsigned int' as first parameter.
5437         Updated all callers.
5438         (html_printer::sbuf_continuation, html_printer::overstrike): Ditto.
5439         (html_printer): Updated.
5441 2002-07-19  Werner LEMBERG  <wl@gnu.org>
5443         * font/devhtml/R.proto: Updated to HTML 4, adding many glyphs.
5444         * font/devutf8/R.proto: Adding some missing glyphs.
5445         * font/devutf8/NOTES: Updated.
5447         * tmac/dvi.tmac: Add more composite glyphs.
5448         * tmac/html.tmac: Updated.
5450         * man/groff_char.man: Add `sum' and `product' entities.
5452         * NEWS: Updated.
5454 2002-07-18  Gaius Mulley  <gaius@glam.ac.uk>
5456         Improved table, tab, and indenting support.
5458         * src/roff/troff/input.cc (file_iterator::suppress_newline_flag,
5459         string_iterator::suppress_newline_flag): Removed.  Updated all
5460         function which have used it.
5462         * src/roff/troff/env.cc: Include `input.h'.
5463         (environment::add_node): Accept 0 as parameter.
5464         (environment::add_html_tag): Add `force' parameter.
5465         Updated all callers.
5466         (environment::add_html_tag_tabs): Ditto.
5467         For the moment, support left-aligned tabs only.
5468         (environment::make_html_tag): New function.
5469         (fill, no_fill): Set .br html tag additionally.
5470         (environment::newline): Emit `eol.ce' or `eol' tag for html.
5471         (environment::add_html_tag_eol): Removed.
5472         (tab_stops::distance_to_next_tab): Add variant for handling 
5473         nextpos'.
5474         (environment::distance_to_next_tab): Ditto.
5475         Updated all callers.
5476         (environment::handle_tab): Handle tabs for html.
5477         
5478         * src/roff/troff/env.h: Updated.
5480         * src/roff/troff/div.cc: Updated all callers of
5481         `environment::add_html_tag'.
5483         * src/devices/grohtml/html-table.cc,
5484         src/devices/grohtml/html-table.h: New files.
5486         * src/devices/grohtml/html-text.cc (html_text): New members
5487         `blank_para' and `start_space'.
5488         (html_text::issue_tag): Don't emit TABLE_TAG.
5489         Handle indentation for PRE_TAG and P_TAG.
5490         (html_text::end_tag): Updated.
5491         (html_text::table_is_void, html_text::issue_table_begin,
5492         html_text::issue_table_end): Removed.
5493         (html_text::do_push): Simplified.
5494         [DEBUGGING]: Small fix.
5495         (html_text::push_para): Add new parameter for indentation; updated
5496         all callers.
5497         Handle PRE_TAG.
5498         (html_text::do_indent, html_text::do_table, html_text::done_table,
5499         html_text::is_in_table): Removed.
5500         (html_text::do_pre): Handle P_TAG also.
5501         (html_text::shutdown): Handle p->indent.
5502         (html_text::check_emit_text): Simplified.
5503         (html_text::do_emittext): Reset `blank_para'.
5504         (html_text::do_para): Add new parameter for indentation; updated
5505         all callers.
5506         (html_text::remove_indent): New function.
5507         (html_text::do_space): Handle verbatim text properly.
5508         (html_text::ever_emitted_text, html_text::starts_with_space,
5509         html_text::remove_para_align): New functions.
5510         (html_text::dump_stack_element, html_text::dump_stack): Updated.
5512         * src/devices/grohtml/html_text.h (HTML_TAG): Remove TABLE_TAG.
5513         Updated.
5515         * src/devices/grohtml/post-html.cc: Include html-table.h.
5516         (INDENTATION): Removed.
5517         (text_glob): Added many `is_<foo>' functions.
5518         Added table description `tab'.
5519         Added `get_arg',`get_tab_args', `remember_table', and `get_table'
5520         member functions.
5521         (list): Add `insert' and `move_to' member functions.
5522         (page): Add `insert_tag' member function.
5523         (page::dump_page) [DEBUG_TABLES]: Improved.
5524         (html_printer): Add `table' and `max_linelength' elements.
5525         Add many `do_<foo>', `insert_<foo>', `next_horiz_pos',
5526         `lookahead_for_tables', `shutdown_table', `calc_nf', `calc_po_in',
5527         `remove_tabs', `remove_courier_tabs'.
5528         (html_printer::emit_raw): Handle indentation.
5529         (html_printer::do_center, html_printer::write_header): Updated.
5530         (html_printer::is_courier_until_eol): Check for tag.
5531         (html_printer::do_linelength): Handle max_linelength.
5532         (html_printer::do_page_offset, html_printer::do_indentation): Handle
5533         fill_on.
5534         (html_printer::do_tempindent): Updated.
5535         (html_printer::do_indentedparagraph): Removed.
5536         (html_printer::do_indent): Simplified.
5537         (html_printer::do_eol): Use `ever_emitted_text'.
5538         (html_printer::do_flush, html_printer::do_links): Don't call
5539         done_table.
5540         (html_printer::do_break): Handle end_tempindent.
5541         (html_printer::troff_tag): Get argument.
5542         Don't handle `.ip'.
5543         Handle `.tab-ts', `.tab-te', `.col', `tab', and `tab0' tags.
5544         (html_printer::flush_page): Call `lookahead_for_tables'.
5545         Don't call `done_table'.
5546         (html_printer::add_to_sbuf): Always call do_indent.
5548         * src/devices/grohtml/Makefile.sub: Updated.
5550         * tmac/an-old.tmac (TP): Don't handle html device specially.
5551         (an-do-tag-html): New function which will be used instead of
5552         `an-do-tag' if html device is used.
5554         * tmac/html.tmac: Call .po to pass default page offset to grohtml.
5556         * tmac/s.tmac (@IP): Don't handle html device specially.
5557         (@IP-html): New function which will be used instead of `@IP' if
5558         html device is used.
5560         * tmac/www.tmac (HTML-NS, HTML-TAG-NS): New auxiliary macros -- this
5561         is a hack which will eventually vanish again.
5562         (PIMG): Handle `-C' option correctly if not html.
5563         (HR): Use HTML-NS.
5565 2002-07-17  Werner LEMBERG  <wl@gnu.org>
5567         * src/utils/afmtodit/afmtodit.pl: Don't use `-P-' for invoking perl.
5569 2002-07-14  Eric S. Raymond  <esr@thyrsus.com>
5571         * contrib/pic2graph/pic2graph.*: Use convert(1).
5572         * contrib/eqn2graph/eqn2graph.*: Minor fixes.
5574 2002-07-14  Bernd Warken  <bwarken@mayn.de>
5576         * tmac/groff_trace.man: New file.
5577         * tmac/Makefile.sub: Updated.
5578         * NEWS: Updated.
5580 2002-07-13  Werner LEMBERG  <wl@gnu.org>
5582         * src/roff/groff/groff.man: Add some cross references.
5584 2002-07-12  Werner LEMBERG  <wl@gnu.org>
5586         * src/roff/troff/input.cc (substring_request): Add warnings for
5587         string indices out of range.
5589 2002-07-11  Werner LEMBERG  <wl@gnu.org>
5591         * font/devdvi/generate/ec.map: Fix typo (`(l' -> `/l').
5592         * font/devdvi/*EC: Regenerated.
5594 2002-07-10  Bernd Warken  <bwarken@mayn.de>
5596         * man/groff_char.man: Updated and extended.
5598 2002-07-10  Werner LEMBERG  <wl@gnu.org>
5600         * src/roff/troff/input.cc (length_macro): Renamed to...
5601         (length_request): This.
5602         Move call of `tok.next()' to the very end, otherwise the register
5603         value hasn't been updated yet.
5604         (init_input_requests): Updated.
5606 2002-07-09  Werner LEMBERG  <wl@gnu.org>
5608         * src/roff/troff/input.cc (substring_macro): Renamed to...
5609         (substring_request): This.
5610         (init_input_requests): Updated.
5611         * src/roff/troff/request.h: Updated.
5613 2002-07-08  Robert D. Goulding  <goulding@Princeton.EDU>
5615         * src/roff/grog/grog.sh: Fix typo.
5617 2002-07-08  Werner LEMBERG  <wl@gnu.org>
5619         * win32-diffs: Updated.
5621         Handle `papersize' keyword properly in DESC.
5623         * src/libs/libgroff/font.cc (font::scan_papersize): Fix argument
5624         type.
5625         Updated all callers.
5626         * src/libs/libgroff/paper.cc: Add four more paper formats used by
5627         grolj4.
5628         * src/include/paper.h: Updated.
5630         * src/devices/grolbp/lbp.cc: Remove unnecessary semicolons.
5631         Other minor C syntax fixes.
5632         (papersize, paperlength, paperwidth): Renamed to `user_*'.
5633         (lbp_printer): Add `papersize', `paperlength', and `paperwidth'
5634         members.
5635         (lbp_printer::lbp_printer): Pass three arguments.
5636         Set paper dimensions properly.
5637         (make_printer, main): Updated.
5638         (handle_unknown_desc_command): Fix error messages.
5639         (main): Handle papersize keyword in DESC properly.
5641         * src/devices/grolj4/lj4.cc (paper_size): Renamed to
5642         `user_paper_size'.
5643         (lbp_printer::lbp_printer): Pass an argument.
5644         Set paper_size properly.
5645         (handle_unknown_desc_command): Removed.
5646         (make_printer, main): Updated.
5647         * src/devices/grolj4/grolj4.man: Minor documentation fix.
5649         * man/groff_font.man, NEWS: Updated.
5651 2002-07-07  Werner LEMBERG  <wl@gnu.org>
5653         Integrated eqn2graph, contributed by Eric S. Raymond.
5655         * contrib/eqn2graph/{Makefile.sub, eqn2graph.sh, eqn2graph.man}: New
5656         files.
5657         * Makefile.in, NEWS: Updated.
5659 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5661         Changing the substring request to make it fit better with other
5662         string manipulation functions in other programming languages:
5663         Index 0 is now the first character in the string, and index -1
5664         indicates the last character.  Since this request didn't work
5665         properly anyway in the last release, it doesn't harm too much to
5666         change the syntax.
5668         * src/roff/troff/input.cc (substring_macro): Use loops to get
5669         the real string length (ignoring COMPATIBLE_SAVE and
5670         COMPATIBLE_RESTORE) and offsets.
5671         Implement change described above.
5673         * man/groff_char.man, tmac/doc-common (doc-header), tmac/doc.tmac
5674         (doc-do-Bd-args, doc-do-Bl-args): Changed accordingly.
5676         * NEWS, doc/groff.texinfo, man/groff_diff.man: Updated.
5678 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5680         Make .chop work with .de1 and friends.  COMPATIBLE_SAVE and
5681         COMPATIBLE_RESTORE are completely ignored.
5683         * src/roff/troff/input.cc (char_list::set, char_list::get): New
5684         functions.
5685         (macro): `length' field renamed to `len'.
5686         Added new field `empty_macro' (1 if macro is empty), to be used
5687         instead of checking `len'.
5688         Updated all callers.
5689         (macro::empty): Updated.
5690         (macro::length, macro::set, macro::get): New functions.
5691         (macro::append): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5692         Set `empty_macro'.
5693         (chop_macro): Check and remove trailing COMPATIBLE_SAVE/
5694         COMPATIBLE_RESTORE pairs.
5695         (asciify): Ignore COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
5696         * src/roff/troff/request.h: Updated.
5698         * doc/groff.texinfo: Document .chop's behaviour better.
5700 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5702         * doc/pic.ms: Fix documentation for the addition of positions.
5704         * tmac/doc.tmac, tmac/an-old.tmac: Need groff version 1.18.
5706 2002-06-29  Werner LEMBERG  <wl@gnu.org>
5708         Implementation of string arguments of the form \*[foo arg1 arg2 ...]
5710         * src/roff/troff/input.cc (have_string_arg): New global variable.
5711         (read_mode): New enumeration.
5712         (read_escape_name): Use it.  Update all calls.
5713         (read_long_escape_name): Use it.  Update all calls.
5714         Set have_string_arg if appropriate.
5715         (get_char_for_escape_name): Add parameter for handling space
5716         character.
5717         (interpolate_string_with_args, decode_string_args): New functions.
5718         (get_copy, token::next): Call it if necessary.
5719         (interpolate_string): Fix error message.
5721         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5722         Document it.
5724 2002-06-24  Bernd Warken  <bwarken@mayn.de>
5726         * man/groff_tmac.man: Updated and extended.
5728 2002-06-24  Werner LEMBERG  <wl@gnu.org>
5730         * doc/pic.ms, src/preproc/pic/pic.man: Fix description of `:='.
5732 2002-06-23  Werner LEMBERG  <wl@gnu.org>
5734         * doc/pic.ms: Improve documentation of composite block objects.
5736 2002-06-22  Werner LEMBERG  <wl@gnu.org>
5738         * src/roff/troff/input.cc (init_registers): Add three registers
5739         `seconds', `minutes', and `hours' to hold the current time.
5741         * NEWS, doc/groff.texinfo, man/groff.man, man/groff_diff.man:
5742         Updated.
5744 2002-06-20  Werner LEMBERG  <wl@gnu.org>
5746         Make \X accept both `\ ' and `\~', converting them to single space
5747         characters.
5749         * src/roff/troff/token.h (token): Add TOKEN_UNSTRETCHABLE_SPACE.
5750         (token::unstretchable_space): New inline function.
5751         * src/roff/troff/input.cc (token::next, token::delimiter,
5752         token::description, token::add_to_node_list, token::process): Handle
5753         TOKEN_UNSTRETCHABLE_NODE.
5754         (encode_char): Handle tok.stretchable_space and
5755         tok.unstretchable_space.
5757         * NEWS, doc/groff.texinfo: Document it..
5759 2002-06-19  Werner LEMBERG  <wl@gnu.org>
5761         * src/devices/grops/ps.cc (ps_printer::special): Fix error message.
5763         * src/devices/grotty/tty.cc (tty_printer::special): Add `sgr'
5764         keyword to enable/disable SGR output.
5765         (tty_printer::change_fill_color): New function.
5766         * NEWS, src/devices/grotty/grotty.man: Document `sgr' special.
5768         * src/roff/troff/input.cc (output_request): Add missing `tok.next()'
5769         call.
5771 2002-06-18  Werner LEMBERG  <wl@gnu.org>
5773         Add a `color' request and a `.color' register to control usage of
5774         colours.
5776         * src/roff/troff/input.cc (disable_color_flag): Replaced with...
5777         (color_flag): This (which is the inverse).
5778         (activate_color): New function.
5779         (main, init_input_requests): Updated.
5780         * src/roff/troff/troff.h, src/roff/troff/node.cc
5781         (troff_output_file::fill_color, troff_output_file::glyph_color):
5782         Updated.
5784         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5785         Document the changes.
5787 2002-06-17  Colin Watson  <cjwatson@debian.org>
5789         Circumvent bug in autoconf 2.53 regarding top_builddir.
5791         * aclocal.m4 (GROFF_BUILDDIR): s/top_builddir/groff_top_builddir/.
5792         * Makefile.in, doc/Makefile.in:
5793         s/@top_builddir@/@groff_top_builddir@/.
5794         * configure: Regenerated (with autoconf 2.53).
5796 2002-06-17  Werner LEMBERG  <wl@gnu.org>
5798         * src/libs/libgroff/font.cc (font::load_desc): Fix computation of
5799         `paperwidth' and `paperlength' for the `papersize' keyword.
5801 2002-06-16  P. Alejandro Lopez-Valencia  <dradul@007mundo.com>
5803         * src/devices/grops/grops.man: Add info about Type 42 fonts.
5805 2002-06-15  Gaius Mulley  <gaius@glam.ac.uk>
5807         * src/devices/grohtml/post-html.cc (html_printer::emit_raw,
5808         html_printer::do_linelength, html_printer::do_pageoffset,
5809         html_printer::do_indentation, html_printer::do_tempindent,
5810         html_printer::do_break, html_printer::begin_page): Clear indented
5811         text.
5812         * tmac/html.tmac: Disable hyphenation.
5814 2002-06-15  Werner LEMBERG  <wl@gnu.org>
5816         Don't produce HTML files if utility programs are missing.
5818         * Makefile.in (make_html, make_install_html): New variables.
5819         (MDEFINES): Updated.
5821         * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML
5822         utility programs.
5823         * configure.ac: Use it.
5824         * configure: Regenerated.
5826         * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to...
5827         (HTMLEXAMPLESFILES): This new variable.
5828         (EXAMPLESIMAGEFILES): Renamed to...
5829         (HTMLEXAMPLEIMAGEFILES): This.
5830         (CLEANADD): Add HTMLEXAMPLEFILES.
5831         (all): Use `make_html'.
5832         (html): New target.
5833         (install_data): Use `make_install_html'.
5834         Move html stuff to...
5835         (install_html): This new target.
5836         (uninstall_sub): Updated.
5838 2002-06-14  Bernd Warken  <bwarken@mayn.de>
5840         * src/roff/grog/Makefile.sub (grog): Renamed to...
5841         (grog.old): This.
5842         (grog): New rule to always install grog.sh as grog.
5844 2002-06-08  Bernd Warken  <bwarken@mayn.de>
5846         * src/roff/grog/grog.pl: Fix typo.
5848 2002-06-07  Werner LEMBERG  <wl@gnu.org>
5850         * doc/groff.texinfo: Add more info on .tr arguments.
5852 2002-06-05  Werner LEMBERG  <wl@gnu.org>
5854         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
5856         * aclocal.m4 (GROFF_MKSTEMP): Include unistd.h.
5857         * configure: Regenerated.
5859 2002-06-05  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
5861         * src/roff/troff/symbol.cc (table_sizes): Add more values.
5863         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Recognize mom.
5865 2002-06-04  Werner LEMBERG  <wl@gnu.org>
5867         * aclocal.m4 (GROFF_PAGE): Don't use `prefix' directly since it
5868         is not initialized at the time we need it in case `--prefix' hasn't
5869         been set.  Check for `ac_default_prefix' also.
5870         Test for `papersize' keyword also and generalize allowed whitespace.
5871         * configure: Regenerated.
5873         * font/devps/Makefile.sub (DESC): Use `papersize' instead of
5874         `paperlength'.
5876         * src/libs/libgroff/Makefile.sub (version, revision): Replaced
5877         with...
5878         (src_version, src_revision): New variables to avoid overwriting
5879         from parent make process.
5880         (version.cc): Updated.
5882         * src/preproc/html/pre-html.cc: Include paper.h and font.h.
5883         (linebuf, linebufsize): New global variables.
5884         (sys_fatal): Use `fatal' to abort properly.
5885         (get_line): New function.
5886         (get_resolution): Use it.
5887         Improve error messages.
5888         (get_papersize): Check `papersize' also.
5889         Use `get_line'.
5890         Improve error messages.
5892 2002-06-03  Werner LEMBERG  <wl@gnu.org>
5894         * Makefile.comm (CLEANNOTSRCDIRADD): New target for files which
5895         should be removed only if builddir is not srcdir.
5896         (mostlyclean): Handle `CLEANNOTSRCDIRADD'.
5897         (clean): Depend on `mostlyclean'.
5898         (distclean): Depend on `clean'.
5899         (realclean, extraclean): Depend on `distclean'.
5900         (.y.cc, .y.o): Simplified.  The output files are no longer written
5901         to srcdir but to builddir.
5902         * Makefile.in (MDEFINES): Add `version' and `revision'.
5903         (uninstall_dirs): Fix order of directories.
5904         * doc/Makefile.sub (version, revision): Removed.
5905         (CLEANADD): Removed grnexmpl.g, groff, groff-*.
5906         Added `HTMLDOCFILES'.
5907         (CLEANNOTSRCDIRADD): New target for grnexmpl.h, groff, groff-*.
5908         * src/preproc/eqn/Makefile.sub, src/preproc/pic/Makefile.sub,
5909         src/preproc/refer/Makefile.sub (YTABC, YTABH): Don't use `srcdir'
5910         as prefix.
5912         * doc/texinfo.tex (\authortt): New macro.
5913         (\shortcontt): Define.
5914         (\titlepage): Set \tt to \authortt while defining \authorfont.
5915         (\appendixbox): New macro.
5916         (\chapmacro, \appendixentry): Use \appendixbox to get even
5917         indentation for letters.
5918         (\summarycontents): Set \tt.
5919         (\internalpagesize): Add two arguments for real paper width and
5920         height as needed by pdfTeX.
5921         (\letterpaper, \smallbook, \afourpaper, \afivepaper, \afourlatex):
5922         Updated.
5923         (\tempdima, \tempdimb): New temporary dimensions.
5924         (\pagesizesyyy): Updated.
5926 2002-06-02  Werner LEMBERG  <wl@gnu.org>
5928         Adding a new keyword `papersize' to the DESC file format (similar
5929         but not completely identical to grolbp's extension).  grops now has
5930         a -p command line option to override `papersize'.  Finally, grolbp
5931         has been adapted to the new syntax.
5933         * src/libs/libgroff/paper.cc, src/include/paper.h: New files.  It
5934         defines and initializes the `papersizes[]' array with NUM_PAPERSIZES
5935         elements.
5936         * src/libs/libgroff/Makefile.sub (OBJS): Add `paper.o'.
5937         (CCSRCS): Add `paper.cc'.
5939         * src/include/font.h (font): Add `papersize' element.
5940         * src/libs/libgroff/font.cc (font::unit_scale): New helper function.
5941         (font::scan_papersize): New function.
5942         (font::load_desc): Use it for handling `papersize' keyword.
5943         * src/libs/libgroff/fontfile.cc: Initialize `font::papersize'.
5945         * src/devices/grops/ps.cc: Include paper.h.
5946         (user_paper_length): New global variable.
5947         (ps_printer): Use paper length as initializer.
5948         (make_printer): Updated.
5949         (main): Handle new `-p' option.
5950         * src/devices/grops/grops.man: Updated.
5952         * src/devices/grolbp/lbp.cc: Include paper.h.
5953         s/papersizes/lbp_papersizes/.
5954         (set_papersize): Use new `papersizes' array.
5955         (handle_unknown_desc_command): Don't handle `papersize'.
5956         (main): Use `font::scan_papersize' for handling `-p' option.
5957         * src/devices/grolbp/grolbp.man: Updated.
5959         * man/groff_font.man: Document `papersize'.
5960         * NEWS: Updated.
5962 2002-05-30  Werner LEMBERG  <wl@gnu.org>
5964         * src/devices/grops/TODO: Updated.
5965         * src/devices/grops/grops.man: More info on paper formats.
5966         * man/groff_font.man: Document `paperheight' and `paperwidth'.
5968 2002-05-29  Werner LEMBERG  <wl@gnu.org>
5970         * doc/Makefile.sub (CLEANADD): Add grnexmpl.g, groff, and groff-*
5971         to list only if srcdir != currdir.
5972         (distfiles): New target.
5974         * Makefile.in (EXTRADIRS): Add font/devlj4/generate.
5975         (NOMAKEDIRS): New variable.
5976         (DISTDIRS): Use it.
5978 2002-05-26  Werner LEMBERG  <wl@gnu.org>
5980         Add .output request, similar to \! at top-level.
5982         * src/roff/troff/input.cc (transparent): Remove unused declaration.
5983         (output_request): New function.
5984         (init_input_requests): Add it.
5985         Sorted.
5986         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
5987         Document it.
5989         * Makefile.in (MDEFINES): Add INSTALL_INFO.
5990         (prepare_examples): Fix typo.
5991         * doc/groff.texinfo (@direntry): Fix it.
5993 2002-05-25  Werner LEMBERG  <wl@gnu.org>
5995         Including the doc subdir into groff's Makefile system.
5997         * aclocal.m4 (GROFF_INSTALL_INFO): New function.
5998         * configure.ac: Use it.
5999         Generate `doc/Makefile'.
6000         * configure: Regenerated.
6002         * Makefile.in (infodir, INSTALL_INFO): New variables.
6003         (MDEFINES, uninstall_dirs): Updated.
6004         (OTHERDIRS): Add `doc'.
6005         * Makefile.comm (CLEANDIRADD): New variable.
6006         (mostlyclean): Use it.
6008         * doc/Makefile.sub, doc/Makefile.in: New files.
6009         * doc/Makefile: Removed.
6011         * NEWS, INSTALL: Updated.
6013 2002-05-24  Werner LEMBERG  <wl@gnu.org>
6015         * doc/homepage.ms: Renamed to ...
6016         * doc/webpage.ms: This.
6017         Use `.NHR'.
6019 2002-05-23  Werner LEMBERG  <wl@gnu.org>
6021         Integrating the `mom' macro package, contributed by Peter Schaffter
6022         <df191@ncf.ca>.
6024         * contrib/mom/*: New subdirectory tree.
6025         * Makefile.in (docdir, exampledir, htmldocdir): New variables to
6026         be used for documentation files.
6027         (MDEFINES, uninstall_dirs): Use them.
6028         (OTHERDIRS): Add contrib/mom.
6029         * Makefile.comm (.man.n): Add @DOCDIR@, @EXAMPLEDIR@, and
6030         @HTMLDOCDIR@.
6031         * MANIFEST, NEWS: Updated.
6033 2002-05-22  Gaius Mulley  <gaius@glam.ac.uk>
6035         Change syntax of \O: \O[0] suppresses output, \O[1] enables output
6036         if at outer level; at start-up we are at outer level.
6038         * src/roff/troff/input.cc (do_suppress): Implement it.
6039         Simplify \O[3].
6041         Add option -p to show progress information.
6042         pre-grohtml will now render only one page at a time, reducing the
6043         size of needed disk resources enormously.
6045         * src/preproc/html/pre-html.cc (imagePageStem): Replaced with...
6046         (imagePageName): New global variable.
6047         (psPageName, show_progress, currentPageNo): New global variables.
6048         (html_system): Close saved stderr and stdout handles.
6049         (write_end_image): Accept a parameter to control \O escape.
6050         (write_start_image): Adapted to new \O meaning.
6051         (char_buffer::write_upto_newline): Updated.
6052         (createAllPages): Replaced with...
6053         (createPage): This new function to create a single page for images.
6054         It uses `psselect' from the psutils package.
6055         (removeAllPages): Removed.
6056         (createImage): Updated.
6057         Handle progress display.
6058         (char_buffer::do_html, char_buffer::do_image) [DEBUGGING]: Removed.
6059         (scanArguments): Add option -p.
6060         (makeTempFiles): Updated to create temp files for psPageName and
6061         imagePageName.
6062         (removeTempFiles): Removed.
6063         (main): Updated.
6065         * src/devices/grohtml/post-html.cc (header_desc::write_headings,
6066         html_printer::write_header): Append `\0' to `buffer'.
6067         (html_printer::do_eol): Depend on `current_paragraph->emitted_text'.
6068         (main): Handle -p.
6069         * src/devices/grohtml/html-text.cc (html_text::dump_stack_element):
6070         Handle `text_emitted'.
6071         (html_text::table_is_void): Slightly rewritten.
6072         (stop): New external symbol.
6073         (html_text::do_push) [DEBUGGING]: Use it and simplify.
6074         (html_text::shutdown): Call `dump_stack'.
6075         (html_text::do_space): Rewritten.
6076         * src/devices/grohtml/grohtml.man: Document -p and the need of
6077         `psselect'.
6079         * tmac/www.tmac (DC, HTML-DO-IMAGE, HTML-IMAGE-END): Updated to
6080         new \O syntax.
6081         Call \O[0] if `ps4html' is active.
6082         * tmac/s.tmac (@EQ, @EN): Handle html better.
6083         (@TS, TE): Ditto.
6084         * tmac/html.tmac: Don't use black for background colour.
6086         * src/roff/troff/node.cc: Include `div.h'.
6087         (troff_output_file::really_print_line): Don't use `is_on'. 
6088         (troff_output_file::word_marker, troff_output_file::flush_tbuf
6089         troff_output_file::check_charinfo,
6090         troff_output_file::put_char_width, troff_output_file::put_char,
6091         troff_output_file::determine_line_limits, troff_output_file::draw,
6092         real_output_file::begin_page, glyph_color_node::tprintf,
6093         fill_color_node::tprint, hline_node::tprint, vline_node::tprint):
6094         Use `is_on'.
6095         (troff_output_file::really_on): Call `do_motion'.
6096         (suppress_node::tprint): Use `get_page_number' instead of `%'
6097         register.
6098         Call `reset_output_registers' conditionally on `is_on'.
6100         * doc/groff.texinfo: Document new syntax of \O.
6101         * NEWS, man/groff_diff.man: Updated.
6103 2002-05-22  Werner LEMBERG  <wl@gnu.org>
6105         * MORE.STUFF: Add info about David Frey's deroff implementation.
6106         Mention troff.org.
6108 2002-05-16  Werner LEMBERG  <wl@gnu.org>
6110         Pic's `with' attribute now accepts positions.
6112         * src/preproc/pic/pic.y: Make `.', BOX, CIRCLE, ELLIPSE, ARC, LINE,
6113         ARROW, SPLINE, and `[' left-associative tokens to fix shift/reduce
6114         conflicts.
6115         (object_spec): Add rule for `WITH' and `position'.
6116         (relative_path): Give `corner' the precedence of `CHOP'.
6117         * src/preproc/pic/object.h (path): New members `pos' and
6118         `is_position'.
6119         * src/preproc/pic/object.cc: Updated initializers of `path'.
6120         (path::follow): Handle `is_position'.
6122         * doc/pic.ms: Completely updated grammar description.
6123         Many typographical improvements.
6125 2002-05-15  Werner LEMBERG  <wl@gnu.org>
6127         * src/roff/troff/env.cc(hyphen_trie::hpf_getc): Accept ^^x (char
6128         code of x in range 0-127) also.
6129         * doc/groff.texinfo, man/groff_diff.man: Updated.
6131         Added keywords `north', `south', `east', and `west' for corners
6132         in pic.
6134         * src/preproc/pic/lex.cc (lookup_keyword): Add NORTH, SOUTH, EAST,
6135         and WEST.
6136         (yylex): Handle them.
6137         * src/preproc/pic/pic.y: Add tokens NORTH, SOUTH, EAST, and WEST.
6138         (corner): Handle them.
6140 2002-05-14  Werner LEMBERG  <wl@gnu.org>
6142         * src/devices/grops/grops.man: Clarify handling of `download' file.
6144 2002-05-11  Werner LEMBERG  <wl@gnu.org>
6146         Adding `warnscale' and `spreadwarn' requests, based on a patch from
6147         Jeffrey Friedl <jfriedl@yahoo.com>.
6149         * src/roff/troff/input.cc (spread_limit, warn_scale,
6150         warn_scaling_indicator): New global variables.
6151         (warnscale_request, spreadwarn_requests): New functions.
6152         (main): Initialize `warn_scale' and `warn_scaling_indicator'.
6153         (init_input_requests): Updated.
6154         (error_type): Add `OUTPUT_WARNING'.
6155         (do_error): Handle it.
6156         (output_warning): New warning function which shows output location.
6157         * src/roff/troff/env.h (spread_limit): New external variable.
6158         * src/roff/troff/env.cc (environment::choose_breakpoint): Use
6159         `output_warning'.
6160         (distribute_space): Emit warning if added space is larger than
6161         `spread_limit'.
6162         (environment::possibly_break_line): Emit warning if a line can't
6163         be adjusted on both sides.
6165         * doc/groff.texinfo, man/groff_diff.man, man/groff.man: Document it.
6167 2002-05-08  Werner LEMBERG  <wl@gnu.org>
6169         * src/roff/troff/node.cc (special_node::special_node): Use
6170         env_definite_font(curenv) instead of curenv->get_font().  Otherwise
6171         \X''\% crashes, for example.
6173         * doc/groff.texinfo: Document \! and \? used at top-level.
6175 2002-05-06  Werner LEMBERG  <wl@gnu.org>
6177         * src/preproc/pic/pic.man: Fix some keyword syntax.
6178         Other minor typographical fixes.
6180         * src/roff/groff/groff.man: Fix typos.
6182 2002-05-04  Werner LEMBERG  <wl@gnu.org>
6184         * src/roff/groff/groff.man ([ShortOpt]): Renamed to...
6185         (ShortOpt[]): This to avoid problems with refer.
6187         * doc/pic.ms: Fix typo.
6188         Fix pic grammar description.
6190         * tmac/an-old.tmac (ne): Use de1, not de.
6192 2002-05-03  Werner LEMBERG  <wl@gnu.org>
6194         * doc/groff.texinfo: Finished separation of glyphs and characters.
6195         Don't use the string `Appendix' for appendix headers (both in
6196         the text and the table of contents).
6197         * man/groff_tmac.man, src/roff/troff/troff.man: Fix order of tmac
6198         directories.
6200         Use registers LL and LT (similar to -ms) for controlling the
6201         length of title and line, respectively, in the -man and -mdoc
6202         macro packages.
6204         * tmac/doc-ditroff (doc-setup-page-layout), tmac/doc-nroff
6205         (doc-setup-page-layout): Use \n[LL] and \n[LT].
6206         * tmac/an-old.tmac: Set \n[LL] and \n[LT] if not defined.
6207         (TH): Use \n[LL].
6208         (an-header, an-p-footer): Use \n[LT].
6209         * NEWS, tmac/groff_man.man, tmac/groff_mdoc.man,
6210         doc/groff.texinfo: Document it.
6212 2002-05-02  Werner LEMBERG  <wl@gnu.org>
6214         * doc/fdl.texi: New file.
6215         * doc/groff.texinfo: Include it.
6216         Define and use @copying.
6217         Starting with separating glyph, symbol, and character.
6219 2002-04-27  Werner LEMBERG  <wl@gnu.org>
6221         * Makefile.in (EXEEXT): Set it.
6222         * src/*/Makefile.sub (PROG): Add $(EXEEXT) for all non-script
6223         programs.
6225         * src/include/nonposix.h: Define GS_NAME.
6226         * src/preproc/html/pre-html.cc (createAllPages): Use GS_NAME.
6228         Some preliminary changes for EMX support under OS/2.
6230         * src/preproc/pic/main.cc (main), src/roff/groff/pipeline.c: Add
6231         __EMX__ similar to __MSDOS__.
6232         * src/utils/indxbib/indxbib.cc (main) [__EMX__]: Use `unlink'.
6234 2002-04-25  Werner LEMBERG  <wl@gnu.org>
6236         * doc/groff.texinfo: Integrated groff_out.man.
6237         Some macro fixes.
6239 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6241         * man/groff_out.man: Minor fixes.
6243 2002-04-23  Werner LEMBERG  <wl@gnu.org>
6245         * doc/groff.texinfo: Moving @cindex entries after @Def* to get
6246         correct page references.
6247         Fixed many index entries.
6249 2002-04-23  Bernd Warken  <bwarken@mayn.de>
6251         * man/roff.man: Enlarged.
6253 2002-04-22  Werner LEMBERG  <wl@gnu.org>
6255         * doc/groff.texinfo: More examples, other fixes.
6257 2002-04-20  Werner LEMBERG  <wl@gnu.org>
6259         * src/roff/troff/input.cc (pipe_output): Multiple calls to `pi'
6260         will now form a chain, e.g.
6262           .pi foo
6263           .pi bar
6265         is now the same as
6267           .pi foo | bar
6269         This is for compatibility with plan 9's troff.
6271         * tmac/tty.tmac: Set default tab values to 0.8i to be compatible
6272         with UNIX troff.
6273         * NEWS: Updated.
6275         * doc/groff.texinfo: Add documentation of remaining requests and
6276         registers.
6278 2002-04-19  Werner LEMBERG  <wl@gnu.org>
6280         * doc/groff.texinfo: Add documentation of remaining escapes.
6282         * font/devdvi/generate/tc.map: Remove entry for `sr'.
6283         * font/devdvi/*TC: Regenerated.
6285 2002-04-18  Werner LEMBERG  <wl@gnu.org>
6287         * src/roff/troff/input.cc (token::next): Make \H behave consistently
6288         if not in compatibility mode, i.e., increment relative to the
6289         previous height.
6290         * doc/groff.texinfo: Updated accordingly.
6292 2002-04-17  Werner LEMBERG  <wl@gnu.org>
6294         * doc/groff.texinfo: Document \\, \e, \E, \., and \c.
6296 2002-04-16  Bernd Warken  <bwarken@mayn.de>
6298         * src/roff/groff/groff.man: Improve documentation of -P option.
6299         Other minor fixes.
6301 2002-04-15  Werner LEMBERG  <wl@gnu.org>
6303         Add new escape \F to switch font family.
6305         * src/roff/troff/input.cc (token::next): Handle \F.
6306         * src/roff/troff/env.cc (environment::set_family): Handle
6307         `interrupted' flag.
6308         * NEWS, doc/groff.texinfo, man/groff_diff.man, man/groff.man:
6309         Document it.
6311 2002-04-14  Werner LEMBERG  <wl@gnu.org>
6313         * tmac/doc.tmac (doc-tag-list): Use \Z to avoid stretching of
6314         spaces in tags.
6316 2002-04-13  Werner LEMBERG  <wl@gnu.org>
6318         Implement \f[] as an alternative to \fP.  Change \mP and \MP to
6319         \m[] and \M[], respectively.
6321         * src/roff/troff/symbol.cc (EMPTY_SYMBOL): New global variable.
6322         (symbol::symbol): Handle NULL string and empty string differently.
6323         * src/roff/troff/symbol.h (symbol::is_empty): New inline function.
6324         * src/roff/troff/input.cc (read_escape_name, read_long_escape_name):
6325         Add optional parameter.
6326         Updated calling functions.
6327         (get_copy, do_glyph_color, do_fill_color, token::next): Use
6328         `symbol::is_empty'.
6329         * src/roff/troff/env.cc (environment::set_font): Ditto.
6331         * src/preproc/pic/troff.cc (troff_output::set_fill,
6332         troff_output::reset_color: Updated.
6334         * tmac/www.tmac: Updated.
6336         * NEWS, man/groff_diff.man, man/groff.man, doc/groff.texinfo,
6337         doc/homepage.ms, src/devices/grotty/grotty.man, tmac/groff_www.man:
6338         Updated.
6340         * tmac/Xps.tmac: Remove some redundant code.
6342         * tmac/doc-common, tmac/doc-ditroff, tmac/doc-nroff, tmac/doc.tmac,
6343         tmac/dvi.tmac, man/roff.man, man/groff_out.man, man/groff.man,
6344         man/groff_diff.man, src/roff/groff/groff.man: Replace \f[P] with
6345         \f[].
6347 2002-04-13  Bernd Warken  <bwarken@mayn.de>
6349         * src/include/printer.h, src/libs/libdriver/printer.cc
6350         (printer::change_fill_color): New member function.
6351         * src/libs/libdriver/input.cc (parse_D_command): Use it.
6353 2002-04-12  Werner LEMBERG  <wl@gnu.org>
6355         * doc/groff.texinfo: Completed pass on gtroff reference.
6357 2002-04-11  Werner LEMBERG  <wl@gnu.org>
6359         * doc/groff.texinfo: More fixes.
6361 2002-04-11  Bernd Warken  <bwarken@mayn.de>
6363         * src/include/color.h: Decorate with `const'.
6364         Use `size_t'.
6365         Include `stddef.h'.
6366         * src/libs/libgroff.color.cc: Decorate with `const'.
6367         Use `size_t'.
6368         (color::color): Initialize members.
6369         * src/libs/libdriver/input.cc (parse_D_command): Handle `f'
6370         command according to the documentation.
6372         * man/groff_out.man: Updated.
6373         Minor fixes.
6375 2002-04-11  Gaius Mulley  <gaius@glam.ac.uk>
6377         * src/preproc/html/pre-html.cc (write_start_image): Remove
6378         redundant output.
6379         * tmac/www.tmac (DC, HTML-DO-IMAGE): Ditto.
6381         * src/devices/grohtml/post-html.cc (page::add_and_encode): Using
6382         \C'hy' caused an assertion failure.
6384         * src/roff/troff/env.cc (environment::environment): Initialize
6385         `emitted_node'.
6386         (environment::copy): Handle `ignore_next_eol' and `emitted_node'.
6388 2002-04-10  Werner LEMBERG  <wl@gnu.org>
6390         * man/groff_diff.man, man/groff.man, NEWS, doc/groff.texinfo:
6391         Document pvs request and .pvs register.
6393 2002-04-09  Werner LEMBERG  <wl@gnu.org>
6395         * doc/groff.texinfo: Improve and fix documentation of diversions
6396         and environments.
6398 2002-04-08  Werner LEMBERG  <wl@gnu.org>
6400         * doc/groff.texinfo: Fix documentation of drawing functions.
6401         Other minor fixes.
6403 2002-04-07  Werner LEMBERG  <wl@gnu.org>
6405         * doc/groff.texinfo: Better documentation of double quotes as
6406         arguments.
6407         Other minor fixes.
6409 2002-04-06  Werner LEMBERG  <wl@gnu.org>
6411         * man/groff_font.man: Document names of special characters better.
6412         * doc/groff.texinfo: Minor improvements.
6414         * tmac/lbp.tmac: Load latin1.tmac.
6415         * tmac/X.tmac, tmac/Xps.tmac: Load latin1.tmac or cp1047.tmac.
6417         * font/devX*/*: Regenerated (all chars > 0x80 removed).
6419 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6421         * tmac/tty.tmac: Don't use shc request.
6422         * tmac/latin1.tmac, tmac/cp1047.tmac: Translate soft hyphen to `\%'.
6423         * NEWS: Updated.
6425         * man/groff_diff.man: Minor fixes.
6427         * font/devlbp/*: Remove all `charXXX' entities.
6429         * src/libs/libgroff/font.cc (font::~font): Deallocate
6430         `special_device_coding'.
6431         (font::load): Use `new' for allocating `special_device_coding'.
6432         * src/libs/libgroff/nametoindex.cc (character_indexer::lookup_char):
6433         Removed unused member.
6435 2002-04-05  Werner LEMBERG  <wl@gnu.org>
6437         * src/drivers/grops/psrm.cc (skip_possible_newline): New function.
6438         (resource_manager::do_begin_binary,
6439         resource_manager::do_begin_data): Use it.
6441         * doc/texinfo.tex: Updated to version 4.2.
6443         * src/roff/troff/token.h: Add TOKEN_ZERO_WIDTH_BREAK for `\:'.
6444         (token::zero_width_break): New inline function.
6445         * src/roff/troff/input.cc (token::next): Use it.
6446         (token::description): Updated.
6447         (encode_char): Ignore `\%', `\&', `\)', and `\:'.
6448         (token::add_to_node_list, token::process): Use it.
6449         * NEWS, doc/groff.texinfo: Updated.
6451         * src/preproc/eqn/over.cc (over_box::output): Fix typo.
6452         * tmac/tty.tmac: Add missing backslash.
6454 2002-04-04  Tadziu Hoffmann  <hoffmann@usm.uni-muenchen.de>
6456         * src/preproc/eqn/box.cc (set_script_size, box::top_level): Use
6457         `.ps' register instead of `.s' to handle fractional point sizes.
6458         * src/preproc/eqn/limit.cc (limit_box::compute_metrics,
6459         limit_box::output): Ditto.
6460         * src/preproc/eqn/other.cc (size_box::compute_metrics,
6461         size_box::output): Ditto.
6462         * src/preproc/eqn/over.cc (over_box::compute_metrics,
6463         over_box::output): Ditto.
6464         * src/preproc/eqn/script.cc (script_box::compute_metrics,
6465         script_box::output): Ditto.
6466         * src/preproc/eqn/sqrt.cc (sqrt_box::compute_metrics,
6467         sqrt_box::output): Ditto.
6469 2002-04-03  Michael Selway  <mas@ssl.co.uk>
6471         * src/drivers/grops/psrm.cc (resource_manager::do_begin_binary):
6472         Fix typo.
6474 2002-04-03  Werner LEMBERG  <wl@gnu.org>
6476         * doc/homepage.ms: Reduce title size.
6477         * doc/groff.texinfo: Fix documentation of .t register.
6478         Fix handling of colon.
6479         Fix `\' vs. `\\'.
6481         * src/roff/troff/input.cc (exit_troff): Emit LAST_PAGE_EJECTOR
6482         only if page length is positive to avoid a loop.
6484         * tmac/an-old.tmac (ne): Increase page length to avoid problems with
6485         tbl.
6487 2002-04-02  P. Alejandro Lopez-Valencia  <dradul@yahoo.com>
6489         * src/include/nonposix.h, src/roff/groff/pipeline.c:
6490         s/__CYGWIN32__/__CYGWIN__/.
6492 2002-03-28  Gaius Mulley  <gaius@glam.ac.uk>
6494         * doc/gnu.xpm: New image contributed by Emily Mulley.
6495         * doc/Makefile (gnu.eps, gnu.png): Use pnmdepth.
6496         (homepage.html): Be dependent on gnu.eps.
6497         * doc/homepage.ms: Updated to new image.
6499         * src/devices/grohtml/post-html.cc (html_printer): New member
6500         `sbuf_prev_hpos'.
6501         (html_printer::flush_sbuf, html_printer::set_char): Set it.
6502         (html_printer::sbuf_continuation): Use it.
6504 2002-03-28  Werner LEMBERG  <wl@gnu.org>
6506         * src/libs/libgroff/getopt.c: Updated to latest version.
6508         * tmac/README: More on hyphen.tex license.
6510 2002-03-26  Larry Kollar  <kollar@alltel.net>
6512         * doc/groff.texinfo: Add documentation of most missing requests.
6514 2002-03-25  Werner LEMBERG  <wl@gnu.org>
6516         Add three glyphs `t+-', `tmu', and `tdi' which are textual variants
6517         of `+-', `mu', and `di', respectively.
6519         * font/devascii/R.proto, font/devutf8/R.proto,
6520         font/devlatin1/R.proto, font/devhtml/R.proto,
6521         font/devcp1047/R.proto, font/devlpb/*: Add them.
6522         * font/devps/generate/textmap: Ditto.
6523         * font/devps/*: Regenerated.
6524         * font/devlj4/generate/text.map: Add them.
6525         * font/devlj4/*: Regenerated.
6526         * font/devdvi/generate/tc.map: Use them.
6527         * font/devdvi/generate/texsy.map: Add them.
6528         * font/devdvi/*: Regenerated.
6529         * font/devX*/*: Regenerated.
6531         * tmac/latin1.tmac, tmac/cp1047.tmac, tmac/tty.tmac,
6532         tmac/tty-char.tmac: Updated.
6534         * NEWS, man/groff_char.man: Updated.
6536 2002-03-24  Werner LEMBERG  <wl@gnu.org>
6538         * tmac/dvi.tmac, tmac/X.tmac, tmac/ps.tmac, tmac/html.tmac,
6539         tmac/lj4.tmac, tmac/tty.tmac: Replace most `.char' with `.fchar'.
6540         * tmac/ec.tmac: Remove `.rchar' calls (no longer necessary since
6541         we use `.fchar' in dvi.tmac.
6542         * tmac/dvi.tmac: Improve definition of \[Fo] and \[Fc].
6543         * tmac/Xps.tmac: Simplify some char definitions.
6544         Add definition for \[f/].
6545         * man/groff_char.man: Updated for new X.tmac.
6547         * tmac/README: New file.
6549 2002-03-23  Phil Lobbes  <phil@perkpartners.com>
6551         * Makefile.comm (.y.o): New rule for make on Solaris 2.5.1 -- the
6552         internal .y.o rule took precendence over the .y.cc rule, compiling
6553         the yacc files with gcc instead of g++.
6555 2002-03-23  Werner LEMBERG  <wl@gnu.org>
6557         * tmac/dvi.tmac: Add replacement font for `CB'.
6559         * tmac/doc.tmac: s/request/macro/ in messages.
6560         (doc-generic-macro): Improve error message.
6561         * tmac/groff_mdoc.man: Minor improvements.
6563 2002-03-22  Werner LEMBERG  <wl@gnu.org>
6565         * doc/groff.texinfo: Document possible conflict between `tr' and
6566         `char' requests.
6568 2002-03-21  Werner LEMBERG  <wl@gnu.org>
6570         Improve handling of hyphenation patterns.  It is now possible to
6571         use most of TeX's pattern files unmodified.  To make the process
6572         more flexible, a new request `hpfcode' has been added which
6573         provides a character code mapping for the `hpf' request.  See
6574         comment before hpf_getc() for more details.
6576         * src/roff/troff/env.cc (insert_hyphenation, hpf_getc): New
6577         functions.
6578         (read_patterns_file): Additional parameter for exception dictionary.
6579         Extended to recognize \pattern, \hyphenation, and \endinput.
6580         (do_hyphenation_patterns_file): Updated.
6581         * src/roff/troff/env.h (hpf_code_table): New extern.
6583         * src/roff/troff/input.cc (hpf_code_table): New array.
6584         (init_hpf_code_table, hyphenation_patterns_file_code): New
6585         functions.
6586         (hyphenation_code): Handle translation from `trin' correctly.
6587         (main, init_input_requests): Updated.
6588         (charinfo::set_translation): Handle hyphenation code also.
6590         * src/roff/troff/charinfo.h (charinfo::get_translation_input): New
6591         inline function.
6593         * src/roff/troff/env.cc (WORD_MAX): Reduced to 256 since `unsigned
6594         char' is used for offsets in hyphenation exceptions.
6596         * tmac/hyphen.us: Replace with contents of unmodified `hyphen.tex'.
6598         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6600 2002-03-20  Larry Kollar  <kollar@alltel.net>
6602         * doc/groff.texinfo: Add documentation for `hpfa' and `trin'
6603         requests.
6605 2002-03-18  Werner LEMBERG  <wl@gnu.org>
6607         * tmac/html.tmac: Fix serious typo.
6609 2002-03-17  Larry Kollar  <kollar@alltel.net>
6611         * doc/groff.texinfo: Add documentation for `writec' request.
6613 2002-03-17  Werner LEMBERG  <wl@gnu.org>
6615         Added request `hpfa' to append hyphenation patterns.
6617         * src/roff/troff/env.cc (hyphen_trie::read_patterns_file): Add
6618         parameter `append'.
6619         (hyphenation_patterns_file): Renamed to...
6620         (do_hyphenation_patterns_file): This.
6621         (hyphenation_patterns_file, hyphenation_patterns_file_append): New
6622         functions.
6623         (init_hyphen_requests): Updated.
6624         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6626 2002-03-16  Werner LEMBERG  <wl@gnu.org>
6628         Added request `writec' in analogy to `tmc'.
6630         * src/roff/troff/input.cc (write_request): Renamed to...
6631         (do_write_request): This.
6632         Added one parameter.
6633         (write_request, write_request_continue): New functions.
6634         (init_input_requests): Updated.
6635         * NEWS, man/groff.man, man/groff_diff.man: Document it.
6637         * font/devdvi/DESC.in (sizes): Allow all sizes in the range
6638         5-10000pt.
6639         * NEWS: Document it.
6641 2002-03-15  Werner LEMBERG  <wl@gnu.org>
6643         * man/groff.man: Add writem request.
6645         Add request `trin' (translate input) to make `.asciify' work
6646         correctly.  This is necessary since `charXXX' entity names are no
6647         longer hardcoded in font definition files.
6649         * src/roff/troff/charinfo.h (charinfo): Add `asciify_code' and
6650         `translate_input' members.
6651         (charinfo::set_asciify_code, charinfo::get_asciify_code,
6652         charinfo::set_translation_input): New methods.
6653         (charinfo::set_translation): Add third argument.
6654         * src/roff/troff/input.cc (charinfo:set_translation): Set
6655         `asciify_code'.
6656         (do_translate): Add second argument.
6657         (translate_input): New function.
6658         (init_input_requests): Updated.
6659         * src/roff/troff/node.cc (glyph_node::asciify,
6660         composite_node::asciify): Use `get_asciify_code'.
6662         * tmac/cp1047.tmac, tmac/latin1.tmac: Use `trin'.
6664         * NEWS, man/groff.man, man/groff_diff.man: Updated.
6666 2002-03-14  Larry Kollar  <kollar@alltel.net>
6668         * doc/groff.texinfo: Improve documentation of .RS and .RE.
6670 2002-03-14  Werner LEMBERG  <wl@gnu.org>
6672         Add a new request `sizes' similar to the `sizes' command in DESC
6673         files.
6675         * src/roff/troff/env.cc (override_sizes): New function.
6676         (init_env_requests): Use it.
6677         * src/roff/troff/token.h: Export `read_string'.
6678         * NEWS, man/groff_diff.man, man/groff.man: Document it.
6680 2002-03-12  Werner LEMBERG  <wl@gnu.org>
6682         * doc/groff.texinfo: More fixes for texinfo 4.1 and higher.
6684 2002-03-10  Werner LEMBERG  <wl@gnu.org>
6686         * tmac/pspic.tmac: Add support for -Tdvi.
6687         * tmac/dvi.tmac: Include pspic.tmac.
6688         * src/devices/grodvi/grodvi.man: Document it.
6689         * NEWS: Updated.
6691         * font/devlj4/generate/Makefile: Fix URL of metric files.
6693 2002-03-09  Werner LEMBERG  <wl@gnu.org>
6695         * PROBLEMS: The static constructor bug has been fixed in z/OS V1R3.
6697 2002-03-09  Larry Kollar  <kollar@alltel.net>
6699         * tmac/groff_ms.man: Add documentation for RS and RE macros.
6701 2002-03-08  Werner LEMBERG  <wl@gnu.org>
6703         * doc/groff.texinfo: Fixes for texinfo 4.1.
6705 2002-03-07  Werner LEMBERG  <wl@gnu.org>
6707         * src/include/lib.h: Include getopt.h if groff-getopt.h can't be
6708         included.
6709         Handle CYGWIN properly.
6711 2002-03-07  Paco Andrés Verdú  <pandres@dragonet.es>
6713         * font/devlbp/Makefile.sub (DEVFILES): Add some missing fonts.
6714         * tmac/lbp.tmac: Add some font translations.
6716 2002-03-02  Werner LEMBERG  <wl@gnu.org>
6718         * font/devcp1047/R.proto, font/devlatin1/R.proto,
6719         font/devhtml/R.proto: Remove `charXXX'  entries.
6720         * tmac/tty.tmac, tmac/html.tmac: Load latin1.tmac or cp1047.tmac
6721         where appropriate.
6723         * font/devlj4/generate/text.map: Remove `charXXX' entries.
6724         * font/devlj4/*: Regenerated all font definition files.
6725         * tmac/lj4.tmac: Load latin1.tmac.
6727         * src/utils/hpftodit/hpftodit.cc (do_file): Partially undo change
6728         from 2000-06-17: LJ4 metric files are *not* text files.
6730         * tmac/troffrc, tmac/dvi.tmac, tmac/ps.tmac: Don't use .T string
6731         register to test for EBCDIC.
6733 2002-03-01  Werner LEMBERG  <wl@gnu.org>
6735         * src/utils/afmtodit/afmtodit.pl: Skip comment lines in encoding
6736         files (as grops already does).
6737         * src/utils/afmtodit/afmtodit.man: Document comment lines in map
6738         files.
6739         * src/devices/grops/grops.man: Document comment lines in encoding
6740         files.
6742         * tmac/cp1047.tmac: New file.
6743         * tmac/dvi.tmac, tmac/tty-char.tmac: Use it.
6744         * tmac/ps.tmac: Load latin1.tmac or cp1047.tmac.
6745         * tmac/Makefile.sub (NORMALFILES): Updated.
6747         * tmac/ec.tmac: Don't load latin1.tmac again.
6749         * font/devps/generate/lgreekmap, font/devps/generate/symbolchars,
6750         font/devps/generate/dingbats.map,
6751         font/devps/generate/dingbats.rmap, font/devps/text.enc,
6752         font/devps/generate/Makefile (symbolmap): Add header comment.
6753         * font/devps/generate/textmap: Ditto.
6754         Remove `charXXX' entries.
6755         * font/devps/symbolmap: Regenerated.
6756         * font/devps/*: Regenerated all font definition files.
6758 2002-02-28  Werner LEMBERG  <wl@gnu.org>
6760         Add color support to grodvi (for drawing colors are currently
6761         translated to gray values).
6763         * src/devices/grodvi/dvi.cc (FILL_MAX): Removed.
6764         (dvi_printer): Add `cur_color' member.
6765         (dvi_printer::set_color): New function.
6766         (draw_dvi_printer): Remove `fill'.
6767         (draw_dvi_printer::fill_next): Pass environment as parameter.
6768         Update code for new color support translated to gray.
6769         (dvi_printer::set_char): Updated.
6770         (dvi_printer::begin_page, dvi_printer::end_page): Handle color
6771         changes crossing the page border.
6772         (dvi_printer::draw): Updated.
6773         Remove cases `f' and `F'.
6774         * tmac/dvi.tmac: Add color definitions.
6775         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6777         * tmac/an-old.tmac (R): Make this a macro to emit a warning if
6778         used incorrectly.
6780         * aclocal.m4 (GROFF_NEED_DECLARATION): Use test similar to recent
6781         versions of autoconf.
6782         * configure: Updated.
6784         * doc/homepage.ms: Use `.blm'.
6785         * tmac/www.tmac (www-depth): New auxiliary variable.
6786         (www-pop-level): Don't issue HTML tag.
6787         (ULS, ULE, LI): Use absolute indentation.
6789         * src/devices/grops/ps.cc (ps_printer::begin_page,
6790         ps_printer::end_page): Switch forth and back to default color while
6791         starting a new page.
6793 2002-02-27  Werner LEMBERG  <wl@gnu.org>
6795         Add EC and TC fonts to devdvi.
6797         * src/utils/tfmtodit/tfmtodit.man: Document patching of exbase.mf.
6798         * font/devdvi/generate/cork.map: Renamed to...
6799         * font/devdvi/generate/ec.map: This.
6800         Remove entry for `aq'.
6801         * font/devdvi/generate/tc.map: New file.
6802         * font/devdvi/generate/Makefile (*EC, *TC): New creation rules for
6803         EC and TC fonts.
6804         (FONTS): Updated.
6805         * font/devdvi/*EC, font/devdvi/*TC: New font definition files.
6806         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6807         * tmac/ec.tmac: New file.
6808         * tmac/Makefile.sub (NORMALFILES): Updated.
6809         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6810         * man/groff_char.man: Check `ECFONTS' register.
6812         * font/devdvi/{TR,TI,TB,TBI,HR}: Fix `name' field.
6814 2002-02-26  Werner LEMBERG  <wl@gnu.org>
6816         * font/devdvi/generate/*.map: Remove all `charXXX' entries.
6817         * font/devdvi/generate/cork.map: Add 'y and 'Y.
6818         * font/devdvi/*: Updated.
6819         * tmac/dvi.tmac: Formatting.
6821         Add font `HBI' for the dvi output.
6822         Add support for font families `T' and `H'.
6824         * font/devdvi/HBI: New file.
6825         * font/devdvi/B: Renamed to ...
6826         * font/devdvi/TB: This.
6827         * font/devdvi/BI: Renamed to ...
6828         * font/devdvi/TBI: This.
6829         * font/devdvi/I: Renamed to ...
6830         * font/devdvi/TI: This.
6831         * font/devdvi/R: Renamed to ...
6832         * font/devdvi/TR: This.
6833         * font/devdvi/H: Renamed to ...
6834         * font/devdvi/HR: This.
6835         * font/devdvi/Makefile.sub (DEVFILES): Updated.
6836         * font/devdvi/generate/Makefile (HBI): New rule.
6837         (FONTS): Updated.
6838         (R, I, B, BI, H): Renamed to ...
6839         (TR, TI, TB, TBI, HR): This, respectively.
6840         (srcdir): Fixed.
6841         * NEWS, src/devices/grodvi/grodvi.man: Updated.
6842         * font/devdvi/DESC.in: Don't mount R, I, B, BI, and CWI.
6843         Add `styles' and `family' keywords.
6844         * tmac/dvi.tmac: Alias `H' to `HR'.
6845         Add some fspecial requests for italic fonts.
6846         Add TR and TI as special.
6847         Add support for `_' with font CWI.
6849         * src/roff/troff/number.cc (parse_expr): Add missing `break' for
6850         operator `:'.  Until now, the expression `0:1' would return 2
6851         instead of 1.
6853 2002-02-25  Werner LEMBERG  <wl@gnu.org>
6855         * man/groff_char.man: Added some missing PS glyph names (from the
6856         Adobe Glyph List).
6857         * font/devps/generate/textmap, font/devps/symbolmap: Add
6858         `arrowupdn'.
6860         * doc/groff.texinfo: Minor additions and fixes.
6861         * man/groff_diff.man: Remove documentation of fp request.  This
6862         is already covered in the original troff manual.
6863         Updated to be consistent with other doc files.
6864         * NEWS: Updated.
6866 2002-02-24  Werner LEMBERG  <wl@gnu.org>
6868         * aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
6869         TTYDEVDIRS.
6870         Define new variable OTHERDEVDIRS (containing `font/devlj4
6871         font/devlbp' if not EBCDIC).
6872         * Makefile.in (TTYDEVDIRS): Always include `font/devutf8'.
6873         (OTHERDEVDIRS): New variable.
6874         (MDEFINES, DEVDIRS, ALLDIRS, DISTDIRS): Updated.
6875         * configure: Regenerated.
6877         * NEWS, src/devices/grotty/grotty.man: Updated.
6879 2002-02-23  Werner LEMBERG  <wl@gnu.org>
6881         * src/roff/troff/input.cc (do_overstrike, do_bracket,
6882         get_line_arg): Honour input level.
6884         Add new symbol `mc' corresponding to U+00B5 MICRO SIGN.
6886         * font/*/*: Implement it in all font files.
6887         * font/devps/generate/textmap, font/devps/generate/symbolchars,
6888         * font/devps/symbolmap: Updated.
6889         * font/devlj4/generate/text.map: Updated.
6890         * font/devdvi/generate/CompileFonts (sizes): Add LaTeX sizes.
6891         * font/devdvi/generate/texmi.map: Updated.
6893         * font/devutf8/R.proto: Remove all `charXXX' entries.
6894         * font/devutf8/NOTES: Updated.
6896         * font/devX*/*: Regenerated with xtotroff, using fonts from XFree86
6897         version 4.1.0.
6899         * tmac/latin1.tmac, tmac/psold.tmac, tmac/tty-char.tmac: Updated.
6901         * NEWS, man/groff_char.man: Updated.
6903 2002-02-21  Phil Lobbes  <phil@perkpartners.com>
6905         * src/include/lib.h [HAVE_SNPRINTF]: Include stdarg.h.
6907 2002-02-20  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
6909         * src/roff/grog/grog.pl: Fix computation of $refer.
6911 2002-02-19  Werner LEMBERG  <wl@gnu.org>
6913         * src/include/lib.h [!HAVE_SNPRINTF]: Add declarations for
6914         `snprintf' and `vsnprintf'.
6916         * src/include/htmlindicate.h: Renamed to...
6917         * src/include/htmlhint.h: This.
6918         * src/include/Makefile.sub: Updated.
6919         * src/preproc/eqn/main.cc: Updated.
6921 2002-02-18  Werner LEMBERG  <wl@gnu.org>
6923         * man/roff.man, man/groff_out.man, man/groff.man,
6924         man/groff_diff.man, man/ditroff.man, src/roff/groff/groff.man,
6925         src/roff/troff/troff.man: Updated to latest changes in www.tmac.
6927         * win32-diffs: Updated.
6929 2002-02-17  Werner LEMBERG  <wl@gnu.org>
6931         * doc/Makefile (clean): Add *.eps.
6932         (MEMACROS): Removed.
6933         (TFLAG): New variable.
6934         (TROFF): Use it.
6935         Add -ww.
6936         (GROFF): Use TFLAG, FFLAG, -U, -p, -e, -t, and -ww.
6937         (.me.dit): Fixed.
6938         (.ms.html, .ms.ascii, .ms.ps, homepage.html): Simplify.
6940         * tmac/www.tmac: Use dummy diversion while resetting and disabling
6941         `.tl'.
6942         * tmac/e.tmac: Inserted some more `\"' to remove warnings if used
6943         unstripped.
6944         * src/roff/troff/troff.man: Fix order of parameter description.
6946         * NEWS: Updated.
6948 2002-02-16  Gaius Mulley  <gaius@glam.ac.uk>
6950         Simplify image handling for grohtml.
6951         Fix <p> bug.
6953         * src/devices/grohtml/html-text.cc (DEBUGGING): Don't undefine but
6954         comment out.
6955         (html_text::dump_stack): Don't emit newline while debugging.
6956         (html_text::do_push) [DEBUGGING]: Print more info.
6957         (html_text::check_emit_text): Fix handling of <p>.
6958         * src/devices/grohtml/html.h: Updated.
6959         * src/devices/grohtml/output.cc (FPUTC, FPUTS, PUTC): New macros,
6960         replacing `fputc', `fputs', `putc'.  If DEBUGGING is defined, they
6961         send its data to stderr also.
6962         Update all callers.
6963         (simple_output::space_or_newline) [DEBUGGING]: Removed.
6964         * src/devices/grohtml/post-html.cc (html_printer::do_links,
6965         html_printer::html_printer): Remove `DEBUGGING' conditionals.
6967         * src/include/html-strings.h (HTML_IMAGE_{CENTERED,LEFT,RIGHT,END}):
6968         Removed.
6969         * src/libs/libgroff/htmlhint.cc (is_in_graphic_start,
6970         is_inline_image): Removed.
6971         (html_begin_suppress, html_end_suppress): Don't take a parameter.
6972         (graphic_start, graphic_end): Removed.
6973         * src/include/htmlindicate.h: Updated.
6974         * src/preproc/html/pre-html.cc (DEBUG_HTML): Removed.
6975         (macroset_template): New global variable.
6976         (makeFileName): Use `macroset_template'.
6977         (write_end_image): Don't take a parameter.
6978         Don't emit newline.
6979         (write_start_image: Don't emit newline.
6980         (char_buffer::write_upto_newline): Updated.
6981         (char_buffer::skip_to_newline): Renamed to ...
6982         (char_buffer::skip_until_newline): This.
6983         Fix code.
6984         (char_buffer::write_file_troff, char_buffer::write_file_html):
6985         Simplified.
6986         (createAllPages, createImage) [DEBUGGING]: Handle `debug' flag.
6987         (removeAllPages): Remove `DEBUGGING' conditionals.
6988         (addRegDef, dump_args): New functions.
6989         (char_buffer::do_html, char_buffer::do_image): Handle
6990         `www-image-template' command line variable.
6991         Add more debugging code.
6992         (addps4html): Removed.
6993         (removeTempFiles) [DEBUGGING]: Handle `debug' flag.
6995         * src/preproc/eqn/main.cc: Include `ctype.h'.
6996         (suppress_html): Removed.
6997         (do_file): Updated.
6998         (inline_equation): Use `html_begin_suppress' and
6999         `html_end_suppress'.
7000         * src/preproc/pic/troff.cc: Don't include `htmlindicate.h'.
7001         (troff_output::start_picture, troff_output::finish_picture):
7002         Updated.
7003         * src/preproc/tbl/main.cc: Don't include `htmlindicate.h'.
7004         (process_input_file): Updated.
7006         * src/roff/troff/div.cc (page_number): Set page number only if the
7007         `ps4html' register isn't defined.
7008         * src/roff/troff/input.cc (image_no): New external variable.
7009         (do_suppress): Use it.
7010         * src/roff/troff/node.h (suppress_node::image_id): New member.
7011         * src/roff/troff/node.cc (image_no): Remove `static' keyword.
7012         (suppress_node::suppress_node): Initialize `image_id' member.
7013         (suppress_node::same): Handle `image_id' also.
7014         (suppress_node::copy): Updated.
7015         (last_image_id): New global variable.
7016         (suppress_node::tprint): Use it.
7018         * tmac/an-old.tmac (TS, TE, EQ, EN): Use HTML-IMAGE and
7019         HTML-IMAGE-END.
7020         * tmac/pspic.mac (PSPIC): Fix html support.
7021         * tmac/s.tmac (@EQ, @EN, @TS, TE, PS, PE): Ditto.
7022         * tmac/www.tmac (www-image-template): Set up.
7023         (HTMLINDEX): Renamed to...
7024         (HX): This.
7025         (BODYCOLOR): Renamed to...
7026         (BCL): This.
7027         (BACKGROUND): Renamed to...
7028         (BGIMG): This.
7029         (URL): Change order of parameters for consistency.
7030         (MAILTO): Renamed to...
7031         (MTO): This.
7032         (IMAGE, PNG-IMAGE, MARGIN-PNG-IMAGE): Renamed to...
7033         (IMG, PIMG, MPIMG): This.
7034         (HTML-H-BEGIN, HTML-H-END): Renamed to...
7035         (HnS, HnE): This.
7036         (LINKS): Renamed to...
7037         (LK): This.
7038         (LINE): Renamed to...
7039         (HR): This.
7040         (NO-AUTO-RULE): Renamed to...
7041         (NHR): This.
7042         (HTML-TL): Renamed to...
7043         (HTL): This.
7044         (UL-BEGIN, UL-END): Renamed to...
7045         (ULS, ULE): This.
7046         (DROPCAP): Renamed to...
7047         (DC): This.
7048         (TS, TE, EQ, EN): Provide default definitions.
7049         (www-make-unique-name): Updated.
7050         (HTML-IMAGE-INLINE): Fix typo.
7051         * tmac/groff_www.man: Updated.
7053         * doc/Makefile (homepage.html): Add option -r to grohtml.
7054         Use shortened image name.
7055         * doc/groff.texinfo: Updated info on grohtml strings and macros.
7056         * doc/homepage.ms: Updated and extended.
7058 2002-02-14  Werner LEMBERG  <wl@gnu.org>
7060         Don't use `CSI 39 m' and `CSI 49 m' but `CSI 0 m'.
7062         * src/devices/grotty/tty.cc (SGR_DEFAULT_COLOR,
7063         SGR_BACK_DEFAULT_COLOR): Replaced with ...
7064         (tty_printer::put_color): Use it.
7065         (ttr_printer::end_page): Simplify.
7067 2002-02-13  Werner LEMBERG  <wl@gnu.org>
7069         * tmac/groff_tmac.man: Moved to...
7070         * man/groff_tmac.man: This place.
7071         * tmac/Makefile.sub, man/Makefile.sub: Updated.
7073 2002-02-12  Werner LEMBERG  <wl@gnu.org>
7075         * src/libs/libgroff/Makefile.sub (snprintf.o): Don't use
7076         $(COMPILE.c) to not include groff's assert.h.
7078         * src/drivers/grotty/tty.cc (main): Add GROFF_NO_SGR environment
7079         variable.
7080         * NEWS, src/drivers/grotty/grotty.man: Document it.
7082 2002-02-11  Werner LEMBERG  <wl@gnu.org>
7084         * src/libs/snprintf/snprintf.c: Updated to latest version
7085         (2002-02-11).
7087         * src/roff/grog/grog.pl (process): Fix handling of `.['.  We now
7088         test whether there is `.]' also.
7089         Don't check for spaces after `.['.
7090         * src/roff/grog/grog.sh: Do the same.
7092 2002-02-10  Werner LEMBERG  <wl@gnu.org>
7094         Illegal -> Invalid.
7096         * src/libs/libgroff/illegal.cc: Renamed to ...
7097         * src/libs/libgroff/invalid.cc: This.
7098         (illegal_char_table): Renamed to ...
7099         (invalid_char_table): This.
7100         * src/libs/libgroff/Makefile.sub: Updated.
7101         * win32-diffs: Updated.
7103         * doc/groff.texinfo, src/devices/grops/psrm.cc (ps_get_line),
7104         src/libs/libdriver/input.cc (fatal_command, parse_color_command,
7105         parse_x_command), src/libs/libgroff/font.cc (text_file::next,
7106         font::load), src/preproc/eqn/main.cc (read_line, main),
7107         src/preproc/eqn/lex.cc (file_input::read_line),
7108         src/preproc/pic/lex.cc (file_input::read_line,
7109         simple_file_input::get, simple_file_input::peek),
7110         src/preproc/pic/main.cc (top_input::get, top_input::peek),
7111         src/preproc/pic/pic.man, src/preproc/refer/main.cc
7112         (input_stack::push_file), src/preproc/refer/refer.cc (do_file,
7113         do_bib), src/preproc/tbl/main.cc (table_input::get),
7114         src/preproc/grn/grn.man, src/preproc/grn/main.cc (interpret),
7115         src/roff/troff/input.cc (file_iterator::fill, file_iterator::peek,
7116         do_zero_width, read_request, encode_char, ps_get_line,
7117         transparent_file, get_char_for_escape_name, transparent_translate,
7118         asciify, input_char_description, read_string, set_string),
7119         src/roff/troff/env.cc (environment::add_html_tag),
7120         src/roff/troff/troff.man, tmac/e.tmac (`@(', `(f'): Do it.
7122         * src/include/lib.h: Updated.
7124         * src/preproc/eqn/eqn.cc: Removed.
7126         * NEWS: Updated.
7128         * src/preproc/grn/hdb.cc (DBRead): Fix fscanf() fields.
7130 2002-02-09  Werner LEMBERG  <wl@gnu.org>
7132         * doc/gnu.xpm: New image.
7133         * doc/Makefile (DOCS): Add homepage.ps.
7134         Add rules for converting xpm->png and xpm->eps.
7135         Use `gnu.{xpm,eps}' as image names.
7136         * doc/homepage.ms: Updated.
7138 2002-02-09  Gaius Mulley  <gaius@glam.ac.uk>
7140         * tmac/www.tmac (www-error): New macro, replacing calls to `@error'.
7141         (IMAGE): Change image position parameters to `-L', `-R', and `-C'.
7142         Remove calls to `B1' and `B2'
7143         (PNG-IMAGE): New macro for inclusion of images in PNG format.
7144         (www-left-ll-trap, www-left-po-trap, www-right-ll-trap): New
7145         auxiliary variables for MARGIN-PNG-IMAGE.
7146         (www-finish-left-po, www-finish-right-ll, www-finish-left-ll): New
7147         auxiliary macros for MARGIN-PNG-IMAGE.
7148         (MARGIN-PNG-IMAGE): New macro to put an image in PNG format into
7149         the margin.
7150         (www-heading-no): New auxiliary variable for HTML-H-{BEGIN,END}.
7151         (HTML-H-BEGIN, HTML-H-END): New macros to begin and end a heading.
7152         (DROPCAP): New macro to produce dropcap characters.
7153         (www-do-image): Renamed back to...
7154         (HTML-DO-IMAGE): This.
7155         Updated all callers.
7157         * doc/Makefile (gnubw.eps): Updated.
7158         * doc/homepage.ms: Updated.
7160 2002-02-08  Werner LEMBERG  <wl@gnu.org>
7162         * doc/pic.ms: Fixed typos (\(*tx -> \*(tx).
7163         Added `linethick' to table in section `Style Variables'.
7165 2002-02-08  Gaius Mulley  <gaius@glam.ac.uk>
7167         * src/libs/libdriver/input.cc (get_extended_arg): Fix conditional.
7169 2002-02-07  Werner LEMBERG  <wl@gnu.org>
7171         Adding options -C (compatibility mode) and -c (grotty's old output
7172         scheme) to nroff.
7174         * src/roff/nroff/nroff.sh: Implement it.
7175         Remove `-Wall'.
7176         * NEWS, src/roff/nroff/nroff.man: Updated.
7178         * PROBLEMS: Document bison 1.32 bug.
7180         Some fixes to make groff compile on z/OS 1.2 UNIX (was OS/390).
7182         * src/roff/troff/node.cc (make_tfont): Define it earlier.
7183         * src/roff/troff/div.h: Add prototype for `end_diversions'.
7184         * src/roff/troff/input.cc: Add prototype for `process_input_stack'.
7185         * src/roff/troff/env.h: Add prototype for `title'.
7187         Adding EBCDIC support to grotty.
7189         * src/devices/grotty/tty.cc (CSI): New macro.
7190         (SGR_*, tty_printer::put_color): Use it.
7192 2002-02-06  Werner LEMBERG  <wl@gnu.org>
7194         Implementing color support in grotty.  The new switch -c activates
7195         the old drawing scheme, disabling color at the same time.  The new
7196         switch `-i' selects italic instead of underlining (SGR only).
7198         * src/devices/grotty/tty.cc (putstring): New define instead of
7199         `fputs'.  Updated all callers.
7200         (old_drawing_scheme): New global variable.
7201         (COLOR_CHANGE): New enum value.
7202         (SGR_*): New defines containing color handling escape sequences.
7203         (TTY_MAX_COLORS, DEFAULT_COLOR_IDX): New defines.
7204         (glyph): New members `back_color_idx' and `fore_color_idx'.
7205         (glyph::order): Add COLOR_CHANGE.
7206         (tty_printer): New members `cur_fore_idx', `curr_back_idx',
7207         `is_underline', `is_bold', `cu_flag', `tty_colors'.
7208         New methods `make_underline', `make_bold', `color_to_idx',
7209         `change_color', `put_color'.
7210         (cu_flag): Moved into `tty_printer' class.
7211         (tty_printer::tty_printer): Initialize colors.
7212         (tty_printer::add_char, tty_printer::set_char, tty_printer::special,
7213         tty_printer::draw, tty_printer::end_page): Handle colors also.
7214         (main): Add options `-c' and `-i'.
7215         (usage): Updated.
7216         * NEWS, src/devices/grotty/grotty.man: Updated.
7218         * src/include/errarg.h (errarg): Add support for `unsigned int'.
7219         * src/libs/libgroff/errarg.c: Implement it.
7221         * src/include/printer.h (printer): Add `change_color' method
7222         (currently used by grotty only).
7223         * src/libs/libdriver/printer.cc: Implement it.
7224         * src/libs/libdriver/input.cc (parse_D_command, do_file): Add
7225         call to `pr->change_color'.
7227         * src/roff/troff/node.cc (troff_output_file::fill_color,
7228         troff_output_file::glyph_color): Call `do_motion'.
7230         * tmac/tty.tmac: Add color definitions.
7232         * src/roff/groff/groff.man: Minor fixes.
7234 2002-02-05  Bernd Warken  <bwarken@mayn.de>
7236         * src/libs/libdriver/input.cc: Introduce `EnvInt' typedef and use
7237         it.  This is a preparation for future changes.
7239 2002-02-05  Werner LEMBERG  <wl@gnu.org>
7241         * src/roff/troff/input.cc (process_input_stack): Fix the case
7242         where leading spaces are followed by \f or \s; previously, an
7243         incorrect space width has been used.
7245         * doc/roff.man (quoted_char): Fix argument.
7246         (comment): Define string.
7248 2002-02-04  Larry Kollar  <kollar@alltel.net>
7250         * doc/groff.texinfo: More fixes.
7252 2002-02-04  Werner LEMBERG  <wl@gnu.org>
7254         * src/preproc/eqn/box.cc (output_string): Don't use \\*[...].
7255         * src/preproc/eqn/main.cc (do_file, inline_equation): Call
7256         `restore_compatibility' before `output_string' -- the LINE_STRING
7257         register now already contains proper switches from and to
7258         compatibility mode.
7260         * man/groff_char.man: Add Euro symbol.
7261         * man/groff_diff.man: Improve documentation of `.am1' and `.as1'.
7262         * tmac/tty.tmac: Add `EUR' as replacement for `eu' and `Eu'.
7263         * doc/groff.texinfo (Defstr*): Print strings with full syntax.
7264         Other minor fixes.
7266         * doc/Makefile (.SUFFIXES, .texinfo.pdf, clean): Add support for
7267         texinfo->pdf.
7268         (.texinfo.html): Add support for texinfo->html.
7270 2002-02-03  Werner LEMBERG  <wl@gnu.org>
7272         Added three new requests `ds1', `as1', and `ami'.  The former two
7273         are equivalent to `ds' and `as' with the difference that
7274         compatibility mode is saved on entry, switched off during string
7275         expansion, and restored on exit.  The latter is the pendant to `dei'
7276         for `am'.
7278         (do_define_string): Use `define_mode' and `calling mode'.
7279         Insert COMPATIBLE_SAVE and COMPATIBLE_RESTORE at the beginning and
7280         end of string, respectively.
7281         (define_string, append_string): Use `calling_mode'.
7282         (define_nocomp_string, append_nocomp_string,
7283         define_string_indirect): New functions.
7284         (init_input_requests): Updated.
7285         * NEWS, man/groff_diff.man, man/groff.man: Document it.
7287         * src/preproc/eqn/box.cc (box::top_level, box::extra_space): Use
7288         `as1' for assigning LINE_STRING (this is `10' usually).  Sun's
7289         mm macro package accesses this string register directly.
7290         * src/preproc/eqn/main.cc (inline_equation): Use `as1'.
7292         * tmac/trace.tmac: Trace calls to `am' also.  Make it work in
7293         compatibility mode.
7295 2002-02-02  Larry Kollar  <kollar@alltel.net>
7297         * doc/groff.texinfo, tmac/groff_ms.man: More fixes.
7299 2002-01-31  Werner LEMBERG  <wl@gnu.org>
7301         * tmac/an-old.tmac (I): Use \, and \/ to improve spacing.
7303 2002-01-31  Bernd Warken  <bwarken@mayn.de>
7305         * src/devices/grolbp/lbp.cc (main): Delete `pr'.
7306         * man/groff_out.man: Revised and updated.
7308 2002-01-30  Bernd Warken  <bwarken@mayn.de>
7310         * src/libs/libdriver/input.cc [USE_ENV_STACK]: New macro to comment
7311         out the unused `{' and `}' commands.  Undefined by default.
7312         (IntArray): Make `data' private.
7313         (IntArray::operator[], IntArray::get_data, IntArray::len): Use these
7314         new methods instead.
7315         (skip_line_D, skip_to_end_of_line): New functions.
7316         (get_D_fixed_args): Use `skip_line_D'.
7317         Changed to handle dummy odd arguments by ...
7318         (get_D_fixed_args_odd_dummy): This new function.
7319         (get_D_variable_args): Split some code into ...
7320         (get_possibly_integer_args): This new function.
7321         (send_draw): Use more `const'.
7322         (delete_current_env): New function.
7323         (position_to_end_of_args): Use `size_t'.
7324         Updated.
7325         (send_draw): Updated.
7326         (parse_D_command): Handle `c', `C', and `t' better.
7327         Updated.
7328         (do_file): Updated.
7330 2002-01-29  Werner LEMBERG  <wl@gnu.org>
7332         * NEWS: Revised.
7333         * doc/groff.texinfo: Introduce @Def...List, @Def...Item, and
7334         @Def...ListEnd which replaces @Def...x.  This is necessary to get
7335         proper HTML output -- see the comment in the file for more
7336         information.
7337         Updated all calls.
7339 2002-01-29  Gaius Mulley  <gaius@glam.ac.uk>
7341         Fixes to make color changes of 2002-01-21 work with grohtml.
7343         * src/devices/grohtml/post-html.cc (style): Updated.
7344         (html_printer): Remove unused methods.
7345         (html_printer::do_font, html_printer::draw, html_printer::set_char,
7346         html_printer::special): Updated.
7347         * src/devices/grohtml/html-text.cc (debugStack, turnDebug,
7348         html_text::dump_stack_element, html_text::dump_stack) [DEBUGGING]:
7349         Added some debugging code.
7350         (html_text::start_tag): Updated.
7351         (html_text::do_push): New method.
7352         (html_text::push_para): Call it.
7353         Add method for handling color.
7354         (html_text::do_color): Updated.
7355         (html_text::shutdown): Handle color.
7356         * src/devices/grohtml/html-text.h (tag_definition): New member
7357         `col'.
7358         Updated.
7360 2002-01-28  Werner LEMBERG  <wl@gnu.org>
7362         * tmac/ps.tmac, tmac/html.tmac: Fix compatibility mode issues.
7364 2002-01-27  Gaius Mulley  <gaius@glam.ac.uk>
7366         Add two switches -a and -g to control the antialiasing bits for
7367         text and graphics, respectively.
7369         * src/devices/grohtml/post-html.cc (main): Dummy code for `-a' and
7370         `-g'.
7371         * src/devices/grohtml/grohtml.man: Document them.
7372         * src/preproc/html/pre-html.cc (MIN_ALPHA_BITS, MAX_ALPHA_BITS):
7373         New macros.
7374         (textAlphaBits, graphicAlphaBits, antiAlias): New global variables.
7375         (setupAntiAlias): New function.
7376         (createAllPages): Updated.
7377         (scanArguments): Handle `-a' and `-g'.
7378         (main): Call `setupAntiAlias'.
7379         * NEWS: Updated.
7381 2002-01-27  Werner LEMBERG  <wl@gnu.org>
7383         * doc/groff.texinfo (Def*): Call index function after deffn.
7385         * tmac/html.tmac: Call `nroff' request.
7387 2002-01-26  Larry Kollar  <kollar@alltel.net>
7389         * tmac/groff_ms.man: Add some omissions.
7391 2002-01-25  Larry Kollar  <kollar@alltel.net>
7393         * tmac/groff_ms.man: Typographical improvements.
7395 2002-01-25  Werner LEMBERG  <wl@gnu.org>
7397         * doc/groff.texinfo: Updated version and copyright.
7398         * src/devices/grops/grops.man: Updated.
7400         * tmac/groff_tmac.man: Fix `ig' macro.
7402         * tmac/an-old.tmac (ne): Redefine `ne' request to be a no-op in
7403         nroff mode.
7404         Use `.ne' unconditionally everywhere.
7405         (TS): Only insert some vertical space.  Doing a page break is no
7406         longer necessary due to the redefinition of the `ne' request.
7408         * src/libs/libdriver/input.cc (parse_D_command): Don't emit a
7409         warning for unknown subcommands but parse and pass them to the
7410         device driver.
7412 2002-01-24  Werner LEMBERG  <wl@gnu.org>
7414         * tmac/groff_www.man, NEWS: Fix typos.
7416 2002-01-21  Werner LEMBERG  <wl@gnu.org>
7418         Complete revision of color support:
7420           Adapt programs to the new libdriver/input.cc.
7422           Color spaces are no longer converted to RGB but transferred as-is
7423           in the troff intermediate output format.
7425           Handle default color gracefully.  troff now supports a `default'
7426           color (which can't be changed).
7428           grops will now use the proper color space functions if available.
7430           Update pic.
7432         Note that currently grohtml doesn't handle colors properly.  This
7433         has to be fixed.
7435         * src/libs/libgroff/itoa.c (UINT_DIGITS): New macro.
7436         (ui_to_a): New function.
7437         * src/include/lib.h: Updated.
7439         * src/include/color.h (color_scheme): Replace `NONE' with `DEFAULT'.
7440         (color): Simplified; removed all `double' members and methods.
7441         A new array `components' now holds the color parameters.
7442         (color::is_default, color::get_components): New methods.
7443         (color::operator==, color:operator!=): New.
7444         (Red, Green, Blue, Cyan, Magenta, Yellow, Black, Gray): New macros
7445         to make access to the `components' array more comprehensible.
7446         * src/libs/libgroff/color.cc: Implement new color support.
7447         (atoh): Small fixes.
7448         (color::read_encoding): Simplified for new troff intermediate color
7449         output format.
7450         (default_color): New global variable.
7452         * src/roff/troff/input.cc (default_symbol): New global variable.
7453         (lookup_color): Use it.
7454         (default_black): Removed.
7455         (do_glyph_color, do_fill_color): Simplified.
7456         (define_color): Handle default color.
7457         Improve warnings.
7458         (do_if_request): Handle default color.
7459         * src/roff/troff/env.cc (environment::environment): Initialize
7460         colors with `default_color'.
7461         * src/roff/troff/node.cc (troff_output_file::put): Add method
7462         for `unsigned int'.
7463         (troff_output_file::hex): Removed.
7464         (troff_output_file::fill_color, troff_output_file::glyph_color):
7465         Updated to include/color.h and libdriver/input.cc.
7467         * src/preproc/pic/object.cc (draw_arrow): New parameter to set
7468         fill color properly (identically to the outline color).  \D'f...'
7469         doesn't work any more.
7470         All function calls to it updated.
7472         * src/devices/grohtml/post-html.cc (html_printer::do_body, main):
7473         Updated.
7474         * src/devices/grohtml/html-text.cc (html_text::issue_color_begin):
7475         Updated.
7477         * src/devices/grops/ps.cc (ps_output::put_color): New method.
7478         (ps_printer::sbuf_color): Make a real member instead of pointer.
7479         (ps_printer::fill_color, ps_printer::output_color): Removed.
7480         (ps_printer::ps_printer): Updated.
7481         (ps_printer::set_char): Ditto.
7482         (ps_printer::set_color): Use various color schemes.
7483         Use `put_color' method.
7484         (ps_printer::flush_sbuf): Don't set color.
7485         (ps_printer::fill_path): Take `environment' as parameter.
7486         Simplify color handling.
7487         (ps_printer::set_line_thickness): Renamed to ...
7488         (ps_printer::set_line_thickness_and_color): This (and updated).
7489         (ps_printer::set_color): Change second parameter from `complete'
7490         to `fill' which better describes what it does.
7491         (ps_printer::draw): Call `flush_sbuf' to output graphic commands
7492         and text in the right order.
7493         Updated.
7494         Remove branches for `f' and `F'; this is handled by
7495         libdriver/input.cc.
7496         * src/devices/grops/ps.h: Updated.
7497         * font/devps/prologue (FL): Redefined.
7498         ({F,C}r,k,g: New color functions (with and without filling).
7500         * doc/pic.ms, src/preproc/pic/pic.man: Small fixes.
7501         * man/groff_diff.man, man/groff.man, man/groff_out.man,
7502         doc/groff.texinfo, NEWS: Updated.
7504 2002-01-20  Bernd Warken  <bwarken@mayn.de>
7506         * src/libs/libdriver/input.cc: Completely rewritten.  See comments
7507         in this file for what has been changed.
7509 2002-01-19  Werner LEMBERG  <wl@gnu.org>
7511         * test-groff: Fix GROFF_FONT_PATH.
7512         * tmac/andoc.tmac: Add dummy macros for equation support -- eqnrc
7513         is read before .TH or .Dd is parsed.
7515 2002-01-18  Gaius Mulley  <gaius@glam.ac.uk>
7517         * src/libs/libgroff/geometry.cc (check_output_arc_limits): Fix
7518         quadrant boundaries.
7520 2002-01-18  Werner LEMBERG  <wl@gnu.org>
7522         * devices/grops/ps.cc: Aargh!  Fix the fix of the incorrectly
7523         applied last patch.
7525 2002-01-17  Ruslan Ermilov  <ru@FreeBSD.org>
7527         * tmac/doc.common: Initialize %I register for the %I macro to
7528         avoid (harmless) warning.
7529         * tmac/doc.tmac (Bd): There is no reason to enforce -compact
7530         when in the SYNOPSIS section.
7532 2002-01-17  Bruno Haible  <haible@clisp.cons.org>
7534         * src/preproc/pic/lex.cc (get_token): Fix typo.
7536 2002-01-17  Werner LEMBERG  <wl@gnu.org>
7538         * devices/grops/ps.cc: Fix incorrectly applied last patch.
7540 2002-01-17  Larry Kollar  <kollar@alltel.net>
7542         * tmac/groff_ms.man: Completely rewritten.
7544 2002-01-16  Werner LEMBERG  <wl@gnu.org>
7546         * tmac/an-old.tmac (TS): Force break, inserting some vertical space.
7548 2002-01-15  Gaius Mulley  <gaius@glam.ac.uk>
7550         * devices/grops/ps.cc (ps_printer::fill_path): Fix handling of
7551         fill colors.
7552         (ps_printer::draw): Ditto.
7554 2002-01-14  Ruslan Ermilov  <ru@FreeBSD.org>
7556         * tmac/groff_mdoc.man: Minor fixes.
7558 2002-01-13  Werner LEMBERG  <wl@gnu.org>
7560         * man/groff_out.man: Some fixes.
7562 2002-01-13  Gaius Mulley  <gaius@glam.ac.uk>
7564         * doc/pic.ms: Fix typos.
7566 2002-01-12  Werner LEMBERG  <wl@gnu.org>
7568         * doc/groff.texinfo, doc/groff.man: More on a printable backslash.
7570 2002-01-10  Werner LEMBERG  <wl@gnu.org>
7572         * font/devutf8/R.proto, font/devhtml/R.prot: Add `Eu' and `eu'
7573         symbols.
7574         * NEWS: Updated.
7576 2002-01-09  Bernd Warken  <bwarken@mayn.de>
7578         * man/groff_out.man: Revised.
7579         * man/roff.man: Minor fixes.
7580         * src/roff/troff/troff.man: Some reordering.
7582 2002-01-09  Werner LEMBERG  <wl@gnu.org>
7584         * tmac/an-old.tmac: Add dummy macros for equation support.
7586 2002-01-07  Werner LEMBERG  <wl@gnu.org>
7588         doc/groff.texinfo: Fix documentation of glyph searching algorithm.
7590         * tmac/an-old.tmac: Revert change 2001-12-23.  This breaks too many
7591         man pages.
7592         * tmac/groff_man.man: Small improvements.
7594 2002-01-07  Bernd Warken  <bwarken@mayn.de>
7596         * man/groff_diff.man: Revised.
7598 2002-01-06  Werner LEMBERG  <wl@gnu.org>
7600         * tmac/www.tmac: Remove extraneous backslash.
7602 2002-01-06  Bernd Warken  <bwarken@mayn.de>
7604         * man/ditroff.man, src/roff/groff/groff.man, man/groff.man: Revised.
7606 2002-01-05  Werner LEMBERG  <wl@gnu.org>
7608         Integrated groffer, contributed by Bernd Warken.
7610         * contrib/groffer/*: New.       
7611         * Makefile.in, NEWS: Updated.
7613 2002-01-04  Werner LEMBERG  <wl@gnu.org>
7615         * doc/groff.texinfo: Added macros `@Defmpreg' and `@Defmpregx' for
7616         registers defined in macro packages.
7617         Revising the ms part.
7619 2002-01-04  Larry Kollar  <kollar@alltel.net>
7621         * doc/groff.texinfo: Add documentation for ms macros.
7623 2002-01-02  Werner LEMBERG  <wl@gnu.org>
7625         First step in adding PS support for the Euro symbol.  `eu' is the
7626         official Euro logo, `Eu' is a font-specific glyph variant.
7628         * font/devps/text.enc: Add `Euro' at position 9.
7629         * font/devps/generate/textmap: Add `Euro' as symbol `Eu'.
7630         * font/devps/symbolmap: Regenerated.
7632         * NEWS: Updated.
7634 2002-01-02  Bernd Warken  <bwarken@mayn.de>
7636         * man/roff.man: Revised.
7638 2002-01-01  Bernd Warken  <bwarken@mayn.de>
7640         * src/roff/groff/groff.man: Completely rewritten.
7642 2001-12-31  Werner LEMBERG  <wl@gnu.org>
7644         * doc/Makefile: Updated.
7646 2001-12-30  Werner LEMBERG  <wl@gnu.org>
7648         * tmac/www.tmac: Make all names of internal macros/registers/strings
7649         lowercase, and prepend `www-'.
7650         Other minor changes.
7651         * src/roff/troff/troff.man: Add preprocessor string at BOF.
7653 2001-12-30  Gaius Mulley  <gaius@glam.ac.uk>
7655         Implement option `-b' in grohtml to set the HTML background colour.
7657         * src/devices/grohtml/post-html.cc (default_background): New global
7658         variable.
7659         (html_printer::html_printer): Initialize `background' to
7660         `default_background'.
7661         (main): Implement option `-b'.
7662         (usage): Updated.
7663         * src/preproc/html/pre-html.cc (scanArguments): Add dummy handling
7664         of `-b' option.
7665         * src/devices/grohtml/grohtml.man: Updated.
7666         * doc/Makefile (.ms.html): Use `-b'.
7667         * tmac/html.tmac: Don't set background color.
7669         Add new grohtml tag `.html-tl'.
7671         * src/devices/grohtml/post-html.cc (title_desc): Add `with_h1'
7672         member variable.
7673         (title_desc::title_desc): Updated.
7674         (html_printer::troff_tag): Handle `.html-tl'.
7675         (html_printer::write_title): Use `with_h1'.
7676         * tmac/www.tmac (www-end-nowhere): New auxiliary macro.
7677         (HTML-TL): New macro.
7679         Add support for unordered lists in HTML.
7681         * tmac/www.tmac (www-level): New auxiliary register.
7682         (www-level1, www-level2, www-level3): New auxiliary strings.
7683         (www-push-level, www-pop-level): New auxiliary macros
7684         (UL-BEGIN, UL-END, LI): User macros for unordered lists.
7686         Miscellaneous.
7688         * src/preproc/html/pre-html.cc (DEFAULT_IMAGE_RES): Increase to 100.
7689         (DEFAULT_VERTICAL_OFFSET): Removed.
7690         (IMAGE_BOARDER_PIXELS): Set to 0.
7691         (A4_LENGTH, A4_OFFSET, LETTER_LENGTH, LETTER_OFFSET): New macros.
7692         (vertical_offset): Initialize with 0.
7693         (gsPaper): New global variable.
7694         (get_resolution): Scan for and return unsigned int.
7695         (get_papersize): New function to get paper length from devps/DESC.
7696         (determine_vertical_offset): New function.
7697         (createAllPages): Produce gray-level images and use proper page
7698         length.
7699         (createImage): Use `-quiet' option of pnmcrop.
7700         (addZ): Fix passing of `-Z'.
7701         (scanArguments): Fix handling of `-o'.
7702         (main): Call `determine_vertical_offset'.
7703         * src/devices/grohtml/post-html.cc (html_printer::draw): Comment out
7704         code for `l'.
7706         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Fix buffer length.
7707         * src/roff/troff/node.cc (troff_output_file::check_charinfo): Handle
7708         glyph descenders properly.
7710         * doc/homepage.ms: Include `gnubw.eps'.
7711         * doc/Makefile (gnubw.eps): New rule.
7712         (homepage.html): Depend on `gnubw.eps'.
7714 2001-12-25  Werner LEMBERG  <wl@gnu.org>
7716         * src/roff/troff/input.cc (default_black): Fix return value.
7718 2001-12-24  Ruslan Ermilov  <ru@FreeBSD.org>
7720         * tmac/doc-common (Dt): Change output of architecture strings.
7721         Do some syntax cleanup.
7722         * tmac/groff_mdoc.man: Updated.
7724 2001-12-23  Werner LEMBERG  <wl@gnu.org>
7726         Adding an `itc' request (input line trap accepting \c).
7728         * src/roff/troff/env.h (environment): New member
7729         `continued_input_trap'.
7730         Make `do_input_trap' a friend function instead of `input_trap'.
7731         * src/roff/troff/env.cc (environment::environment,
7732         environment::copy): Updated.
7733         (environment::newline): Implement it.
7734         (do_input_trap): New function.
7735         (input_trap): Call `do_input_trap'.
7736         (input_trap_continued): New function.
7737         (init_env_requests): Updated.
7738         * src/roff/troff/TODO: Updated.
7740         * tmac/an-old.tmac (SH, SS, B, I, SM, SB, TP): Use `.itc' instead of
7741         `.it'.
7743         * src/preproc/grn/hdb.cc (DBRead): Really chop after 127 characters.
7745 2001-12-22  Ruslan Ermilov  <ru@FreeBSD.org>
7747         * tmac/doc-common, tmac/doc-syms: Small updates.
7749 2001-12-22  Colin Watson  <cjwatson@debian.org>
7751         * tmac/an-old.tmac (an-p-footer): Set title length in environment 1.
7753 2001-12-22  Bernd Warken  <bwarken@mayn.de>
7755         * MANIFEST: New file.
7757 2001-12-22  Werner LEMBERG  <wl@gnu.org>
7759         * src/preproc/grn/grn.man: Updated.
7761 2001-12-22  Solar Designer  <solar@openwall.com>
7763         * src/preproc/grn/hdb.cc (MAXSTRING_S): New macro.
7764         (DBRead): Use it.
7766 2001-12-19  Werner LEMBERG  <wl@gnu.org>
7768         Implement a fallback character request `.fchar'.
7770         * src/roff/troff/charinfo.h (charinfo): New flag `fallback'.
7771         (is_fallback): New inline function.
7772         * src/roff/troff/input.cc (do_define_character): New function.
7773         (define_character): Call `do_define_character'.
7774         (define_fallback_character): New function.
7775         (init_input_requests): Add `fchar'.
7776         (charinfo::charinfo): Updated.
7777         (charinfo::set_macro): New argument to set `fallback' flag.
7778         * src/roff/troff/node.cc (make_glyph_node, make_node,
7779         node::add_char): Check `fallback' flag.
7780         * NEWS, man/groff_diff.man, man/groff_man: Updated.
7782 2001-12-16  Werner LEMBERG  <wl@gnu.org>
7784         * groff.texinfo: Document exact search algorithm for glyphs.
7786 2001-12-15  Werner LEMBERG  <wl@gnu.org>
7788         * Makefile.cpg, Makefile.ccpg, Makefile.man: Add dummy file to
7789         the left side of $(MANPAGES) rule to make it always non-empty.
7791 2001-12-14  Werner LEMBERG  <wl@gnu.org>
7793         * src/roff/troff/input.cc (default_black): Define default color
7794         `black' if not yet defined.
7796 2001-12-13  Werner LEMBERG  <wl@gnu.org>
7798         Implement new string-valued register `.fn' to return the current
7799         real (internal) font name.
7801         * env.cc (environment::get_font_name_string): New function.
7802         (init_env_requests): Add `.fn' register.
7803         * env.h (environment): Updated.
7804         * node.cc (font_info): Make `get_font_name' a friend.
7805         (get_font_name): New function.
7806         * node.h: Updated.
7808         * man/groff_diff.man, man/groff.man, NEWS: Updated.
7810 2001-12-12  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7812         * src/preproc/eqn/main.cc (inline_equation): Fix typos.
7814 2001-12-12  Werner LEMBERG  <wl@gnu.org>
7816         * tmac/groff_man.man, doc/groff.texinfo: There is no .R macro.
7818 2001-12-10  Gaius Mulley  <gaius@glam.ac.uk>
7820         * man/groff_diff.man: Adding documentation for \O.
7822 2001-12-10  Werner LEMBERG  <wl@gnu.org>
7824         * src/preproc/html/pre-html.cc (TROFF_COMMAND): Removed.
7825         (scanArguments): Use PROG_PREFIX for the name of the troff binary.
7827 2001-12-09  Werner LEMBERG  <wl@gnu.org>
7829         * man/roff.man: Revised.
7830         * src/roff/groff/groff.man: Replace man page references with a
7831         pointer to roff.man.
7833 2001-12-09  Bernd Warken  <bwarken@mayn.de>
7835         * man/roff.man: Completely rewritten.
7837 2001-12-06  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
7839         * src/preproc/eqn/main.cc (inline_equation): Improve error message.
7841 2001-12-05  Werner LEMBERG  <wl@gnu.org>
7843         * src/roff/troff/input.cc (get_delim_file_name): Removed since no
7844         longer used.
7845         * src/devices/grohtml/post-html.cc (html_printer::html_printer): Fix
7846         order of initializers.
7847         * NEWS: Updated.
7849 2001-12-05  Gaius Mulley  <gaius@glam.ac.uk>
7851         * doc/groff.texinfo: Fix documentation of \O.
7853         * src/devices/grohtml/html-text.cc (html_text::do_indent,
7854         html_text::do_table, html_text::do_emittext, html_text::do_para):
7855         Use `const' for first argument.
7856         (html_text::do_table): Use cast.
7857         * src/devices/grohtml/html-text.h: Updated.
7858         * src/devices/grohtml/output.cc (simple_output::put_string): Add
7859         method for `const string &s'.
7860         * src/devices/grohtml/html.h: Updated.
7861         * src/devices/grohtml/post-html.cc (MAX_STRING_LENGTH): Removed.
7862         (ANCHOR_TEMPLATE): Modified.
7863         (manufacture_headings): New global variable to handle `-h' option.
7864         (is_subsection): Removed.
7865         (char_buffer::add_string): Add `const' to first argument.
7866         Protect against invalid string argument.
7867         Add method for `const string &s'.
7868         (text_glob): Completely redesigned.
7869         (page): Use `const' for strings and remove string length variable.
7870         (page::add_html): Removed.
7871         (page::add_end_encode): New member function.
7872         (to_unicode): Moved upwards.
7873         (title_desc, header_desc): Updated.
7874         (header_desc::write_headings): Updated to new ANCHOR_TEMPLATE
7875         definition.
7876         (html_printer::is_bold, html_printer::make_bold): New member
7877         functions.
7878         (html_printer::end_of_line): Updated.
7879         (generate_img_src, html_printer::do_auto_image,
7880         html_printer::do_title, html_printer::write_header,
7881         html_printer::determine_header_level, html_printer::do_heading,
7882         html_printer::do_linelength, html_printer::do_pageoffset,
7883         html_printer::do_indentation, html_printer::do_tempindent,
7884         html_printer::do_indentedparagraph, html_printer::do_break,
7885         html_printer::flush_sbuf, get_html_translation,
7886         html_printer::begin_page, html_printer::special): Rewritten to get
7887         rid of static string length limit.
7888         (html_printer::troff_tag): Added `.no-auto-rule'.
7889         (html_printer::flush_globs): Small fix.
7890         (html_printer::determine_space): Don't compute `space_width'.
7891         (html_printer::translate_to_html): Renamed to ...
7892         (html_printer::emit_html): This (with updates).
7893         (html_printer::write_header): Implement `-h' option.
7894         (html_printer::draw): Remove commented-out code.  Handle `F'
7895         command.
7896         (html_printer::add_char_to_sbuf): Removed.
7897         (html_printer::add_to_sbuf): Rewritten.
7898         (html_printer::sbuf_continuation): Fixed.
7899         (html_printer::seen_backwards_escape, reverse,
7900         html_printer::remove_last_char_from_sbuf): Removed.
7901         (char_translate_to_html, str_translate_to_html): Removed.
7902         (html_printer::overstrike): New function member.
7903         (html_printer::set_char): Use it.
7904         (html_printer::do_body): New function member.
7905         (html_printer::~html_printer): Use it.
7906         (main): Handle `-h' option.
7907         (usage): Updated.
7908         * src/devices/grohtml/grohtml.man: Document -h switch.
7910         * src/preproc/html/pre-html.cc: Include searchpath.h
7911         Replace `POSTSCRIPTRES' macro with `postscriptRes' variable.
7912         (get_resolution): New function.
7913         (checkImageDir): Use `0777' permissions in mkdir()
7914         (write_start_image): Rewritten to use `\O[5...]'.
7915         (createImage, generateImages): Updated.
7916         (main): Handle `F' and `h' options.
7917         Use `get_resolution'.
7919         * src/roff/troff/input.cc (begin, end, image): Removed.
7920         (do_suppress): Take parameter.
7921         Handle modified syntax of `\O'.
7922         (token::next): Updated.
7923         (init_markup_requests): Removed.
7924         (main): Updated.
7926         * src/roff/troff/div.h: Add declaration for begin_page().
7928         * tmac/color-html.tmac: Removed.  Contents moved to...
7929         * tmac/html.tmac: Here.  Set background color.
7930         * tmac/color.tmac: Removed.  Contents moved to...
7931         * tmac/ps.tmac: Here.
7932         * tmac/www.tmac: Remove the title command when generating images
7933         for html.
7934         (NO_AUTO_RULE): New macro.
7935         (HTML_DO_IMAGE): Use revised `\O' escapes.
7936         * tmac/Makefile.sub, tmac/groff_www.man, tmac/troffrc: Updated.
7938 2001-12-02  Werner LEMBERG  <wl@gnu.org>
7940         * tmac/groff_mdoc.man: Fix typo.
7942 2001-12-01  Colin Watson  <cjwatson@debian.org>
7944         * man/roff.man: Fix typo.
7946 2001-11-29  Werner LEMBERG  <wl@gnu.org>
7948         * src/libs/libbib/map.c, src/utils/pfbtops/pfbtops.c: Include
7949         stdlib.h.
7951         * src/roff/troff/input.cc (read_draw_node): Emit error message if
7952         more than one argument to \D'f ...'.
7954         * tmac/Makefile.sub (NORMALFILES): Add lbp.tmac.
7956 2001-11-28  Werner LEMBERG  <wl@gnu.org>
7958         * tmac/an-old.tmac, tmac/doc.tmac: Assure that the macro package is
7959         loaded only once.
7961         * tmac/groff_man.man: Minor cosmetic fix.
7963 2001-11-27  Werner LEMBERG  <wl@gnu.org>
7965         * src/roff/groff/groff.man, tmac/groff_tmac.man,
7966         tmac/groff_www.man: s/mwww/www/.
7968 2001-11-26  Werner LEMBERG  <wl@gnu.org>
7970         * aclocal.m4 (GROFF_MKSTEMP): Implement test using C++ linkage.
7971         * configure: Regenerated.
7972         * win32-diffs: Updated.
7974         * tmac/groff_mwww.tmac: Renamed to ...
7975         * tmac/groff_www.tmac: This.
7976         * tmac/mwww.tmac: Removed.
7977         * NEWS, tmac/Makefile.sub: Updated.
7979 2001-11-21  Werner LEMBERG  <wl@gnu.org>
7981         * doc/groff.texinfo: Improve documentation of the `\v' escape.
7982         Fix explanation of `\D' and `rt'.
7984 2001-11-20  Werner LEMBERG  <wl@gnu.org>
7986         * tmac/an-old.tmac (an-header): Set header length equal to page
7987         width.
7988         * doc/groff.texinfo: Improve documentation of `ne' request.  Other
7989         minor fixes.
7990         * NEWS: Small fix.
7992 2001-11-19  Werner LEMBERG  <wl@gnu.org>
7994         * NEWS, man/Makefile.sub: Updated.
7996 2001-11-19  Bernd Warken  <bwarken@mayn.de>
7998         * man/ditroff.man: New file.
8000 2001-11-17  Werner LEMBERG  <wl@gnu.org>
8002         * man/groff_differences.man: Renamed to ...
8003         * man/groff_diff.man: This.  Updated.
8004         * man/Makefile.sub, src/roff/troff/troff.man, NEWS: Updated.
8006         * src/preproc/html/pushbackbuffer.cc: Renamed to ...
8007         * src/preproc/html/pushback.cc: This.  Updated.
8008         * src/preproc/html/pushbackbuffer.h: Renamed to ...
8009         * src/preproc/html/pushback.h: This.
8010         * src/preproc/html/Makefile.sub, src/preproc/html/pre-html.cc:
8011         Updated.
8013         * src/libs/libgroff/htmlindicate.cc: Renamed to ...
8014         * src/libs/libgroff/htmlhint.cc: This.
8015         * src/libs/libgroff/Makefile.sub: Updated.
8017         * tmac/an-old.tmac (an-end): Fix page length.
8019 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8021         * NEWS, man/groff_differences.man, doc/groff.texinfo: Updated.
8022         * man/Makefile.sub: Include groff_differences.man.
8023         * VERSION: Set to 1.18.
8024         * REVISION: Set to 0.
8026 2001-11-16  Bernd Warken  <bwarken@mayn.de>
8028         * src/roff/troff/input.cc (do_define_macro): Allow whitespace before
8029         the second dot (or ending macro name) to end a macro.
8030         * doc/groff.texinfo: Doc fix.
8032 2001-11-16  Ruslan Ermilov  <ru@FreeBSD.org>
8034         * tmac/doc-common (doc-header): Handle very long document titles
8035         better.
8037 2001-11-16  Werner LEMBERG  <wl@gnu.org>
8039         * tmac/doc.tmac (doc-do-Bl-args): Fix .substring requests.
8041 2001-11-15  Werner LEMBERG  <wl@gnu.org>
8043         * src/roff/troff/troff.man: Revised and split into troff.man and...
8044         * man/groff_differences.man: New file.
8045         * NEWS: Updated.
8047 2001-11-13  Werner LEMBERG  <wl@gnu.org>
8049         * tmac/an-old.tmac (TS, TE): New macros for table support.
8051 2001-11-12  Werner LEMBERG  <wl@gnu.org>
8053         * src/include/lib.h: Provide a fix for emx to not include
8054         groff-getopt.h.
8056 2001-10-27  Werner LEMBERG  <wl@gnu.org>
8058         * src/roff/troff/input.cc (substring_macro): Fix computation of
8059         boundary values.
8061 2001-10-20  Werner LEMBERG  <wl@gnu.org>
8063         Undo change from 2001-08-28.
8065         * src/roff/troff/input.cc (have_input): New global variable.
8066         (token::next): Set `have_input' for \f, \H, \R, \s, and \S if not
8067         in compatibility mode.
8068         (process_input_stack): Use it.
8070 2001-10-19  Ruslan Ermilov  <ru@FreeBSD.org>
8072         * tmac/doc.tmac (doc-flag-recursion): Protect arguments against
8073         being handled as end-of-sentence characters,
8075 2001-10-10  Gaius Mulley  <gaius@glam.ac.uk>
8077         * src/roff/troff/input.cc (file_iterator): New members
8078         `suppress_newline_flag' and `seen_escape'.
8079         (file_iterator::next_file): Updated.
8080         (file_iterator::fill): Use it.
8081         (string_iterator): New member `suppress_newline_flag'.
8082         (string_iterator::fill): Set it.
8083         (get_color_element): Use MAX_COLOR_VAL.
8084         * src/roff/troff/env.cc (environment): Remove `need_eol'.
8085         (no_fill): Don't set `env->ignore_next_eol'.
8086         (environment::newline): Handle `eol' tag properly.
8087         Emit `eol.ce'.
8088         (environment::add_html_tag): Set `env->ignore_next_eol'.
8089         Don't handle `.ce'.
8090         * src/roff/troff/env.h (environment): Updated.
8092         * src/devices/grohtml/post-html.cc (text_glob::is_eol_ce): New
8093         member function.
8094         (html_printer::outstanding_eol): New member function.
8095         (html_printer::do_title): Use new functions.
8096         (html_printer::troff_tag): Test `id_eol_ce'.
8098 2001-10-10  Werner LEMBERG  <wl@gnu.org>
8100         * tmac/color.tmac, tmac/color-html.tmac: Use `.do' to make those
8101         files work with -C also.
8103 2001-10-05  Werner LEMBERG  <wl@gnu.org>
8105         * doc/pic.ms: Minor fix.
8106         * src/preproc/html/pre-html.cc (scanArguments): Don't handle `-?'
8107         as a valid command line switch.
8108         * src/devices/grohtml/post-html.cc (main): Ditto.
8109         (usage): Updated.
8110         * src/devices/grohtml/grohtml.man: Updated.
8111         * src/roff/groff/groff.cc (main): Pass `-v' to predriver also.
8113 2001-10-04  Werner LEMBERG  <wl@gnu.org>
8115         Implementing color support in troff, pic, grops, and grohtml.  These
8116         changes are based on a major patch provided by Gaius Mulley
8117         <gaius@glam.ac.uk>.
8119         New request: `defcolor', supporting rgb, cmy, cmyk, and gray
8120         definitions with both hex values and fractions.
8122         New escapes: \m and \M for drawing and background color,
8123         respectively.  This corresponds to the troff output commands `m'
8124         and `DF'.
8126         groff and troff accept command line switch `-c' to disable color
8127         output (which is automatically disabled in compatibility mode).
8129         New scaling indicator `f' for fractions (1f = 65536u).
8131         New conditional operator `m' to test for defined colors with `if'
8132         and `ie'.
8134         New keywords `color' (or `colour', `colored', `coloured'), `outline'
8135         (or `outlined'), and `shaded' added to pic.
8137         * src/include/color.h: New file.
8138         * src/include/driver.h: Include it.
8139         * src/include/printer.h: Include color.h.
8140         (environment): New members `col' and `fill'.
8141         (printer): Remove `adjust_arc_center' member function.
8142         * src/include/Makefile.sub: Updated.
8144         * src/libs/libdriver/input.cc (do_file): Initialize `env.col' and
8145         `env.fill'.
8146         Handle `m' and `DF' troff commands.
8147         * src/libs/libgroff/color.cc: New file.
8148         * src/libs/libgroff/Makefile.sub: Updated.
8150         * src/preproc/html/pre-html.cc (IMAGE_BORDER_PIXELS): Set to 2.
8151         (stop): Removed.
8152         (createImage): Fix computation of `y2'.
8153         Use `pnmcrop' also.
8154         (buffer::write_file_html): Remove calls to `stop'.
8156         * src/preproc/pic/common.h (common_output): New abstract function
8157         members `set_color', `reset_color', `get_last_filled', and
8158         `get_outline_color'.
8159         * src/preproc/pic/object.h: Add `IS_SHADED' and `IS_OUTLINED'.
8160         (object_spec): Add members `shaded' and `outlined'.
8161         * src/preproc/pic/output.h (output): `command' is now abstract.
8162         New function members `set_color', `reset_color', `get_last_filled',
8163         and `get_outline_color'.
8164         * src/preproc/pic/lex.cc (lookup_keyword): Recognize `colo[u]r[ed]',
8165         `outline[d]', and `shaded'.
8166         * src/preproc/pic/object.cc (output::command): Removed.
8167         (output::set_location): Moved to output.h.
8168         (graphic_object): Add protected members `outline_color' and
8169         `color_fill'.
8170         Add member functions `set_outline_color', `get_outline_color', and
8171         `set_fill_color'.
8172         (closed_object): Add member function `set_fill_color'.
8173         Add member `color_fill'.
8174         (graphic_object::print_text): Use `out->set_color' and
8175         `out->reset_color'.
8176         (box_object::print, ellipse_object::print, circle_object::print,
8177         line_object::print, spline_object::print, arc_object::print): Ditto.
8178         (object_spec::make_object): Implement `IS_OUTLINED' and `IS_SHADED'.
8179         * src/preproc/pic/pic.y: Add tokens `COLORED', `OUTLINED', and
8180         `SHADED', making them `%left'.
8181         Add rules `object_spec [SHADED|COLORED|OUTLINED] text'.
8182         * src/preproc/pic/tex.cc (tex_output): New dummy function members
8183         `set_color', `reset_color', `get_last_filled', and
8184         `get_outline_color'.
8185         * src/preproc/pic/troff.cc (simple_output): New abstract function
8186         members `set_color', `reset_color', and `get_last_filled'.
8187         (simple_output::polygon, simple_output::circle,
8188         simple_output::ellipse): Use `get_last_filled'.
8189         (troff_output): New members `last_filled' and `last_outlined'.
8190         New function members `set_color', `reset_color', `get_last_filled',
8191         and `get_outline_color'.
8192         (troff_output::finish_picture): Use `reset_color'.
8193         (troff_output::set_fill): Test `last_filled'.
8194         * src/preproc/pic/pic.man: Updated.
8196         * src/roff/groff/groff.cc (main): Implement `-c' option.
8197         (synopsis, help): Updated.
8198         src/roff/groff/groff.man: Updated.
8200         * src/roff/troff/troff.h: Include color.h.
8201         (warning_type): Add WARN_COLOR.
8202         * src/roff/troff/env.h (environment): New members
8203         `{cur,prev}_{glyph,fill}_color'.
8204         New member functions `get_{prev_,}{glyph,fill}_color'.
8205         * src/roff/troff/env.cc: Initialize and implement them.
8206         * src/roff/troff/input.cc: New global variable `disable_color_flag'.
8207         Replace `NULL' with `0' everywhere for consistency.
8208         (lookup_color, default_black, do_glyph_color, do_fill_color,
8209         get_color_element, read_rgb, read_cmy, read_cmyk, read_gray,
8210         define_color): New functions.
8211         (token::next): Implement \M and \m escapes.
8212         (do_if_request): Implement `m' operator.
8213         (usage): Updated.
8214         (main): Implement `-c' option.
8215         (init_markup_requests): Add `defcolor' request.
8216         (warning_table): Add `color' warning.
8217         * src/roff/troff/node.h (glyph_color_node, fill_color_node): New
8218         classes.
8219         * src/roff/troff/node.cc (troff_output_file): New members
8220         `current_{page,glyph}color'.  New member functions `put_hex',
8221         `glyph_color', and `fill_color'.
8222         (glyph_color_node::*, fill_color_node::*): Implement it.
8223         * src/roff/troff/number.cc (SCALE_INDICATOR_CHARS): Add `f'.
8224         (parse_term): Add support for `f'.
8225         * src/roff/troff/troff.man: Updated.
8227         * src/devices/grodvi/dvi.cc (draw_dvi_printer::draw): Add dummy
8228         entry for `F'.
8229         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Ditto.
8230         * src/devices/grolj4/lj4.cc (lj4_printer::draw): Ditto.
8232         * src/devices/grohtml/html-text.h (HTML_TAG): Add COLOR_TAG.
8233         (tag_definition): Use `void *' for arg1.
8234         (html_text): New member functions `do_color' and `done_color'.
8235         Use `void *' for second parameter of `push_para' member function.
8236         New `push_para' member function with a single parameter.
8237         Use `char *' for parameter of `issue_table_begin' member funtion.
8238         New `issue_color_begin' member function.
8239         * src/devices/grohtml/html-text.cc (html_text::end_tag): Handle
8240         COLOR_TAG.
8241         (html_text::issue_color_begin): New function.
8242         (html_text::issue_table_begin): Use `char *' for parameter.
8243         (html_text::start_tag, html_text::shutdown,
8244         html_text::check_emit_text): Updated.
8245         (html_text::push_para): Use `void *' for second parameter.
8246         Add same function with only one parameter.
8247         (html_text::do_*): Updated.
8248         (html_text::do_color, html_text::done_color): New functions.
8249         * src/devices/grohtml/post-html.cc (style): New member `col'.
8250         Mew member `style' with 6 parameters.
8251         (style::style, style::operator==): Updated.
8252         (html_printer::do_font): Use it.
8253         (html_printer::draw): Add dummy entry for `F'.
8254         (html_printer::set_char): Updated.
8255         * src/devices/grohtml/grohtml.man: Updated.
8257         * src/devices/grops/ps.cc (ps_output::put_float): Use `%g' to have
8258         trailing zeroes removed.
8259         (ps_printer): New members `sbuf_color', `fill_color', and
8260         `output_color'.
8261         Removed member `fill'.
8262         New member function `set_color'.
8263         (ps_printer::ps_printer, ps_printer::set_char): Updated.
8264         (ps_printer::flush_sbuf, ps_printer::set_line_thickness,
8265         ps_printer::fill_path, ps_printer::draw): Use `set_color'.
8267         * tmac/color-html.tmac, tmac/color.tmac: New files.
8268         * tmac/troffrc: Include them.
8269         * tmac/www.tmac (URL, FTP, MAILTO): Use blue color.
8270         * tmac/Makefile.sub: Updated.
8272         * NEWS, doc/groff.texinfo, doc/pic.ms, man/groff_out.man,
8273         man/groff.man: Updated.
8274         * font/devps/prologue.ps: Define FC and CO functions.
8276 2001-10-04  Gaius Mulley  <gaius@glam.ac.uk>
8278         Fix incorrect cropping of images and incorrect handling of special
8279         characters.  Fix handling of file names in \O.
8281         * src/include/geometry.h: New file.
8282         * src/libs/libgroff/geometry.cc: New file.
8283         * src/libs/libdriver/printer.cc (printer::adjust_arc_center): Moved
8284         to `geometry.cc'.
8285         * src/roff/troff/input.cc (get_delim_file_name): Fixed problem with
8286         initial spaces.
8287         (do_suppress): Updated.
8288         * src/roff/troff/node.cc: Include geometry.h.
8289         (troff_output_file::flush_tbuf): Fixed parameters to
8290         `check_output_limits'.
8291         (troff_output_file::check_charinfo): Ditto.
8292         (troff_output_file::determine_line_limits): Add support for `Da'
8293         and `Dl' commands.
8295         * src/devices/grohtml/post-html.cc (str_translate_to_html):
8296         Add new parameter `is_special' to decode special characters from
8297         escape sequences.
8298         (html_printer::do_title, html_printer::do_heading,
8299         html_printer::do_indentedparagraph,
8300         html_printer::translate_to_html, html_printer::special): Updated.
8302 2001-10-03  Werner LEMBERG  <wl@gnu.org>
8304         * Makefile.sub (DISTCLEANFILES): Add stamp-h.
8305         Fix entry for config.h.
8306         * test-groff (GROFF_BIN_PATH): Add $builddir/roff/groff.
8307         * tmac/troffrc: Translate nonbreakable space character to `\~'.
8308         * src/preproc/eqn/eqn.man: Document -d command line option.
8310 2001-09-27  Werner LEMBERG  <wl@gnu.org>
8312         * man/groff.man: Use
8314           .ev xxx
8315           .na
8316           .nh
8317           <table>
8318           .ev
8320         instead of the old code (`.ad .hy' after the table) to suppress
8321         incorrect hyphenation for grohtml output.
8323 2001-09-22  Werner LEMBERG  <wl@gnu.org>
8325         * man/groff_font.man, man/groff_out.man: Minor fixes.
8327 2001-09-20  Werner LEMBERG  <wl@gnu.org>
8329         * PROBLEMS: Updated, reordered.  Improved EPS section (thanks to
8330         Arnold Robbins <arnold@skeeve.com>).
8332 2001-09-09  Werner LEMBERG  <wl@gnu.org>
8334         * configure: Regenerated with autoconf 2.52.
8336         * doc/groff.texinfo: Complete revision of indices.
8338 2001-09-07  Werner LEMBERG  <wl@gnu.org>
8340         * doc/Makefile (clean): Updated to delete all indices.
8342 2001-09-05  Werner LEMBERG  <wl@gnu.org>
8344         * src/roff/troff/troff.man: Remove superfluous line.
8346         * tmac/s.tmac: Enable all warnings only if no -W or -w option is
8347         given on the command line (or rather, if only the default warnings
8348         are set).
8350 2001-09-03  Werner LEMBERG  <wl@gnu.org>
8352         * man/groff.man, src/preproc/eqn/eqn.man, tmac/groff_mdoc.man: Don't
8353         use .ne for TTY devices.
8355 2001-08-31  Werner LEMBERG  <wl@gnu.org>
8357         * src/roff/troff/token.h, src/roff/troff/input.cc:
8358         s/TOKEN_TRANSPARENT_ESCAPE/TOKEN_OPAQUE_ESCAPE/.
8360 2001-08-28  Werner LEMBERG  <wl@gnu.org>
8362         * src/roff/troff/token.h (token_type): Add TOKEN_TRANSPARENT_ESCAPE.
8363         * src/roff/troff/input.cc (token::next): Return
8364         TOKEN_TRANSPARENT_ESCAPE for \f, \H, \R, \s, and \S if not in
8365         compatibility mode.
8366         (token::description): Updated.
8367         (process_input_stack): Reset `bol' for TOKEN_TRANSPARENT_ESCAPE.
8368         (token::add_to_node_list, token::process): Ignore
8369         TOKEN_TRANSPARENT_ESCAPE.
8371 2001-08-27  Werner LEMBERG  <wl@gnu.org>
8373         * tmac/an-old.tmac: Fix `S' string.
8375 2001-08-26  Werner LEMBERG  <wl@gnu.org>
8377         * src/roff/troff/troff.man: Don't use .ne for TTY devices.
8379 2001-08-25  Werner LEMBERG  <wl@gnu.org>
8381         * doc/pic.ms: Replace `\\' with `\e' (and fixing some single
8382         backslashes).
8383         Many other minor fixes.
8385         * configure.ac: Add message at end to inform how to compile
8386         xditview.
8387         * configure: Regenerated.
8389 2001-08-24  Werner LEMBERG  <wl@gnu.org>
8391         * src/include/getopt.h, src/libs/libgroff/{getopt.c, getopt1.c}:
8392         Updated to latest version of libc.
8394 2001-08-23  Werner LEMBERG  <wl@gnu.org>
8396         * configure.ac: Don't create subdirectories before AC_CONFIG_FILES.
8397         Autoconf 2.50 and newer can handle this.
8398         * configure: Regenerated.
8400 2001-08-21  Werner LEMBERG  <wl@gnu.org>
8402         * doc/pic.ms: Fix typo.
8403         * src/preproc/tbl/tbl.man: Document case of global options.
8405 2001-08-21  Gaius Mulley  <gaius@glam.ac.uk>
8407         * src/devices/grohtml/post-html.cc (html_printer::end_font): Fix
8408         handling of `CR' font.
8410 2001-08-20  Werner LEMBERG  <wl@gnu.org>
8412         Use a config.h file.
8414         * src/include/lib.h: Include config.h.
8415         * All C files: Ditto (if necessary).
8416         * All C++ source and header files: Include lib.h first (if
8417         necessary).
8419         * src/include/config.hin: New file (autogenerated by autoheader).
8420         * stamp-h.in: New file.
8421         * configure.ac: Updated.
8422         * aclocal.m4: Add third parameters to AC_DEFINE macros.
8423         (GROFF_ARRAY_DELETE): Simplified.
8424         * Makefile.sub (DISTCLEANFILES): Updated.
8425         Added targets for remaking config.status, config.hin, config.h,
8426         stamp-h.in, and stamp-h.
8427         * configure: Regenerated.
8429 2001-08-19  Werner LEMBERG  <wl@gnu.org>
8431         * NEWS: Updated.
8433 2001-08-18  Sebastian Krahmer  <krahmer@suse.de>
8435         * src/preproc/pic/pic.y (format_number): Use do_sprintf().
8436         (do_sprintf): Use snprintf().
8438 2001-08-18  Werner LEMBERG  <wl@gnu.org>
8440         * src/libs/snprintf/*: Added an snprintf module written by Mark
8441         Martinec.
8442         * src/libs/libgroff/Makefile.sub: Updated.
8443         * configure.ac: Add test for snprintf().
8444         * Makefile.in: Updated.
8445         * configure: Regenerated.
8447         * src/preproc/html/pre-html.cc (make_message): Reactivate code which
8448         uses snprintf().
8450 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
8452         * tmac/doc.tmac (Ex): New implementation.
8453         * tmac/doc-common, tmac/groff_tmac.man: Updated.
8455 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
8457         * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
8458         argument.
8459         * tmac/groff_tmac.man: Updated.
8461 2001-08-13  Werner LEMBERG  <wl@gnu.org>
8463         * src/preproc/tbl/tbl.man: Minor documentation update.
8465 2001-08-13  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8467         * src/libs/libgroff/tmpname.cc: Add prototype for gettimeofday().
8468         * configure.ac: Add declaration test for gettimeofday().
8469         * Makefile.in: Document NEED_DECLARATION_GETTIMEOFDAY defines.
8470         * aclocal.m4: Include sys/time.h for gettimeofday declaration test.
8471         * configure: Regenerated.
8473 2001-08-11  Werner LEMBERG  <wl@gnu.org>
8475         * aclocal.m4 (GROFF_MKSTEMP): Define HAVE_MKSTEMP.
8476         * configure.ac: Add declaration test for strcasecmp().
8477         * Makefile.in: Updated.
8478         * configure: Regenerated.
8479         * src/include/lib.h [!HAVE_MKSTEMP]: Add prototype for mkstemp() --
8480         this is necessary because groff's mkstemp.cc is C++.
8481         Add declaration conditionally for strcasecmp().
8483 2001-08-10  Werner LEMBERG  <wl@gnu.org>
8485         Integrated pic2graph, contributed by Eric S. Raymond.
8487         * contrib/pic2graph/{Makefile.sub, pic2graph.sh, pic2graph.man}: New
8488         files.
8489         * Makefile.in, NEWS: Updated.
8491         * src/preproc/tbl/tbl.man: Revised.
8493 2001-08-09  Eric S. Raymond  <esr@thyrsus.com>
8495         * src/preproc/tbl/tbl.man: Extended to cover all tbl features.
8497 2001-08-09  Werner LEMBERG  <wl@gnu.org>
8499         * src/preproc/tbl/main.cc (process_data): Fix recognition of .lf
8500         requests.
8502 2001-08-08  Paul Eggert  <eggert@twinsun.com>
8504         * Makefile.sub (configure): Depend on configure.ac, not
8505         configure.in.
8506         * INSTALL.gen: Upgrade to autoconf 2.52's INSTALL.
8508 2001-08-07  Werner LEMBERG  <wl@gnu.org>
8510         * src/utils/afmtodit/afmtodit.man, src/roff/groff/groff.man: Minor
8511         fixes.
8513 2001-08-06  Werner LEMBERG  <wl@gnu.org>
8515         * src/roff/troff/troff.man: Improve documentation of -E option.
8517 2001-07-28  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8519         * src/preproc/html/pushbackbuffer.cc (pushBackBuffer::readNumber):
8520         Simplified.
8522 2001-07-27  Werner LEMBERG  <wl@gnu.org>
8524         * src/preproc/refer/refer.cc: Undo last change.
8525         * src/devices/grohtml/post-html.cc: Ditto.
8527 2001-07-26  Werner LEMBERG  <wl@gnu.org>
8529         * src/preproc/refer/refer.cc: Include `lib.h'.
8530         * src/devices/grohtml/post-html.cc: Ditto.
8532 2001-07-25  Gaius Mulley  <gaius@glam.ac.uk>
8534         * aclocal.m4 (GROFF_PAGE): Add `AC_DEFINE(PAGEA4)'.
8535         * src/preproc/html/pre-html.cc: Use it for DEFAULT_VERTICAL_OFFSET.
8536         * Makefile.in: Comment updated.
8537         * configure: Regenerated.
8539 2001-07-25  Werner LEMBERG  <wl@gnu.org>
8541         * src/preproc/pic/pic.cc: Removed.
8542         * src/preproc/pic/pic_tab.h: Removed.
8543         * src/preproc/refer/label.cc: Removed.
8545         * doc/Makefile (.ms.html): Don't use a file name extension in
8546         argument to grohtml's -I option.
8547         * Makefile.in (dist): Remove CVS directories.
8548         Call `distfiles' target.
8550         * src/devices/grohtml/grohtml.man: Add information about valid
8551         versions of pnmtopng.
8552         * src/preproc/html/pre-html.cc (TRANSPARENT): Use `white' as colour
8553         name instead of number.
8555 2001-07-24  Werner LEMBERG  <wl@gnu.org>
8557         * doc/groff.texinfo: Minor fixes.
8559 2001-07-21  Gaius Mulley  <gaius@glam.ac.uk>
8561         * doc/Makefile (.ms.html): Put image files into a subdirectory.
8562         (clean): Updated.
8564 2001-07-20  Werner LEMBERG  <wl@gnu.org>
8566         * src/libs/libgroff/tmpname.cc: New file, defining get_tempname().
8567         * src/libs/libgroff/mkstemp.cc: New file.
8568         * src/libs/libgroff/mksdir.cc: New file.
8569         * src/libs/libgroff/tmpfile.cc [HAVE_MKSTEMP_PROTO]: Removed.
8570         (xtmpfile) [!HAVE_MKSTEMP]: Removed.
8571         * src/libs/libgroff/Makefile.sub: Updated.
8572         * src/include/lib.h: Add mksdir() prototype.
8573         * src/include/posix.h: Define S_IXUSR if not yet defined.
8575         * src/preproc/html/pre-html.cc (MAX_RETRIES): Removed.
8576         (createAllPages): Use mksdir() instead of current code.
8577         * src/utils/indxbib/indxbib.cc [HAVE_MKSTEMP_PROTO]: Removed.
8578         (main): [!HAVE_MKSTEMP]: Removed.
8580         * aclocal.m4 (GROFF_MKSTEMP): Updated to use new mkstemp.cc file.
8581         (GROFF_INTTYPES_H, GROFF_UNSIGNED_LONG_LONG, GROFF_UINTMAX_T): New
8582         macros.
8583         * configure.ac: Add tests for stdint.h, sys/time.h, and
8584         gettimeofday().
8585         Call new GROFF_xxx macros.
8586         * configure: Regenerated.
8587         * Makefile.in: Comments updated.
8589 2001-07-20  Gaius Mulley  <gaius@glam.ac.uk>
8591         * src/preproc/html/pre-html.cc (scanArguments): Use getopt_long()
8592         instead of current code.
8593         * src/devices/grohtml/post-html.cc (main): Handle `-d' option.
8594         * src/roff/groff/groff.cc (possible_command::insert_args): New
8595         function.
8596         (main): Use it for predriver handling instead of insert_arg().
8598 2001-07-19  Werner LEMBERG  <wl@gnu.org>
8600         * doc/Makefile: Added GROFF_BIN_PATH to make it work with uninstalled
8601         groff also.
8603         * src/include/posix.h: Define S_IWUSR if not yet defined.
8605 2001-07-18  Werner LEMBERG  <wl@gnu.org>
8607         * NEWS: Updated.
8609 2001-07-18  Ruslan Ermilov  <ru@FreeBSD.org>
8611         * tmac/groff_mdoc.man: Document new -width and -column syntax.
8612         Some other minor fixes.
8613         * tmac/an-old.tmac: Add `AT' and `UC' macros.
8615 2001-07-17  Gaius Mulley  <gaius@glam.ac.uk>
8617         Replace call to `troff' with `groff -Z' to make it aware of
8618         GROFF_BIN_PATH.
8620         * src/preproc/html/pre-html.cc (TROFF_COMMAND): New macro.
8621         (troff_command, command_prefix): Removed.
8622         (alterDeviceTo): Use groff.
8623         (addZ): New function.
8624         (char_buffer::do_html): Use it.
8625         (scanArguments): Use TROFF_COMMAND.
8626         (findPrefix): Removed.
8627         (main): Updated.
8628         * src/roff/groff/groff.cc (main): Handle zflag for preprocessors.
8630 2001-07-17  Eric S. Raymond  <esr@snark.thyrsus.com>
8632         * doc/pic.ms: Documentation fixes.
8634 2001-07-17  Werner LEMBERG  <wl@gnu.org>
8636         Replace atexit() with global destructor.
8638         * src/libs/libgroff/tmpfile.cc (xtmpfile_list): Add constructor.
8639         (xtmpfile_list_init): New global structure to deallocate
8640         xtmpfile_list on exit.  Its destructor inherits most code from
8641         remove_tmp_files().
8642         (remove_tmp_files): Deleted.
8643         (add_tmp_file): Simplified.
8645 2001-07-16  Werner LEMBERG  <wl@gnu.org>
8647         Replace strdup() with strsave().
8649         * src/devices/grolbp/lbp.cc [!HAVE_STRDUP]: Removed.
8650         (set_papersize): Use strsave() and a_delete.
8651         (main): Use strsave().
8652         * src/preproc/html/pre-html.cc (make_message, createAllPages,
8653         removeAllPages): Use strsave() and a_delete.
8655         * configure.ac: Remove test for strdup.
8656         * Makefile.in: Comment updated.
8657         * configure: Regenerated.
8659 2001-07-15  Werner LEMBERG  <wl@gnu.org>
8661         * win32-diffs: Updated.
8663 2001-07-14  Werner LEMBERG  <wl@gnu.org>
8665         * src/preproc/html/pre-html.cc (makeTempFiles): Activate new code,
8666         removing the old one.
8667         * src/utils/indxbib/indxbib.cc (main): Remove compiler warning.
8669 2001-07-14  Ralph Corderoy  <ralph@inputplus.demon.co.uk>
8671         * src/libs/libgroff/tmpfile.cc (xtmpfile): Fix guard for `namep'.
8673 2001-07-12  Ruslan Ermilov  <ru@FreeBSD.org>
8675         Merge -xwidth into -width.  Add -xwidth functionality to -column
8676         also.
8678         * tmac/doc.tmac (Bl): Add dummy doc-typeXXX and doc-spaceXXX to
8679         avoid warning.
8680         (doc-do-Bl-args): Merge -xwidth code with -width.  Test whether
8681         string immediately following a leading dot starts with a valid mdoc
8682         argument.
8683         Add similar code to the -column branch.
8684         (doc-Bl-usage): Updated.
8685         * groff_mdoc.man: s/-xwidth/-width/.
8687 2001-07-12  Gaius Mulley  <gaius@glam.ac.uk>
8689         * src/devices/grohtml/post-html.cc (text_glob::is_br): Stop titles
8690         running into centered or non-formatted text.
8692 2001-07-11  Werner LEMBERG  <wl@gnu.org>
8694         Introduce short and long prefixes to have the selection at run-time
8695         whether there is a 8+3 limit for names of temporary files.
8697         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX): Replaced with...
8698         (TMPFILE_PREFIX_SHORT, TMPFILE_PREFIX_LONG): This.
8699         (tmpfile_prefix, tmpfile_prefix_len, use_short_prefix): New
8700         variables.
8701         (temp_init): New global structure to initialize above three
8702         variables.
8703         (xtmptemplate): Use two parameters for long and short prefix.
8704         Simplify code use above three variables.
8705         (xtmpfile): Use long and short prefixes as parameters.
8706         * src/include/lib.h: Updated.
8708         * src/preproc/html/pre-html.cc ({PAGE,PS,REGION}_TEMPLATE): Replace
8709         with ...
8710         ({PAGE,PS,REGION}_TEMPLATE_{SHORT,LONG}): This.
8711         (createAllPages, makeTempFiles): Updated.
8713 2001-07-09  Werner LEMBERG  <wl@gnu.org>
8715         * REVISION: Increased to 3.
8717 Version 1.17.2 released
8718 =======================
8720 2001-07-07  Werner LEMBERG  <wl@gnu.org>
8722         * src/utils/indxbib/indxbib.cc (main): Change type of `name_max'
8723         to size_t.
8725 2001-07-06  Ruslan Ermilov  <ru@FreeBSD.org>
8727         * tmac/doc.tmac (Rv): Make `Rv' really not parseable.
8728         Fix synopsis.
8729         * tmac/groff_mdoc.man: Fix synopsis.
8731 2001-07-05  Ruslan Ermilov  <ru@FreeBSD.org>
8733         * tmac/doc.tmac (doc-inset-list, doc-hang-list, doc-ohang-list):
8734         Restore `doc-Pa-font'.
8736 2001-07-04  Werner LEMBERG  <wl@gnu.org>
8738         * src/utils/indxbib/dirnamemax.c: Moved to ...
8739         * src/libs/libgroff/maxfilename.cc: Here.
8740         s/dir_name_max/file_name_max/.
8741         Add copyright.
8742         * src/include/lib.h: Add file_name_max.
8743         * src/utils/indxbib/indxbib.cc: Updated.
8744         * src/utils/indxbib/Makefile.sub, src/libs/libgroff/Makefile.sub:
8745         Updated.
8747         * src/libs/libgroff/tmpfile.cc (TMPFILE_PREFIX) [__MSDOS__]: Define
8748         as empty.
8749         (xtmpfile) [_MSC_VER]: Removed -- MSVC has mktemp().
8751         * src/preproc/html/pre-html.cc (PAGE_TEMPLATE, PS_TEMPLATE,
8752         REGION_TEMPLATE): New macros.
8753         (createAllPages, makeTempFiles): Use them.
8754         Include `nonposix.h'.
8755         (html_system): New function.
8756         (createAllPages, createImage): Use it.
8757         Use EXE_EXT.
8759         * tmac/www.tmac: Fix typos.
8761 2001-07-03  Werner LEMBERG  <wl@gnu.org>
8763         * tmac/www.tmac: Disable hyphenation in normal text only if output
8764         device is html.
8765         (URL, FTP, MAILTO): Disable hyphenation of actual URL with `\%'.
8766         * tmac/groff_mwww.man, NEWS: Updated.
8768 2001-07-03  Gaius Mulley  <gaius@glam.ac.uk>
8770         * tmac/www.tmac (.IMAGE): Add fourth parameter to specify vertical
8771         image location.
8773 2001-07-02  Ruslan Ermilov  <ru@FreeBSD.org>
8775         * tmac/doc-common, tmac/doc.tmac (doc-display-ft-stack,
8776         doc-display-ps-stack): Implement font and font size stack for
8777         displays.
8779 2001-07-02  Werner LEMBERG  <wl@gnu.org>
8781         * REVISION: Increased to 2.
8782         * src/roff/troff/input.cc (read_size): Fix special case `\s[0]'.
8784         * src/groff/grog/grog.pl (process): Handle `Oo' and `Oc' not at the
8785         beginning of a line.
8786         * src/groff/grog/grog.sh: Ditto.
8788 2001-06-29  Peter Marquardt  <wwwutz@molgen.mpg.de>
8790         * src/preproc/eqn/neqn.sh: Put `export' keyword in a new line to
8791         make it portable.
8793 2001-06-27  Werner LEMBERG  <wl@gnu.org>
8795         Fix problems with preprocessor string for `man' program.
8797         * *.man: Don't use `s' in preprocessor string --  it doesn't exist.
8798         Updated/added copyright.
8799         Moved Emacs's local variable to identify nroff mode to the end of
8800         the file; add local variable if missing.
8802 2001-06-26  Andras Salamon  <andras@cs.wits.ac.za>
8804         * aclocal.m4: Replace AC_LANG_SAVE + AC_LANG_CPLUSPLUS with
8805         AC_LANG_PUSH(C++) and AC_LANG_RESTORE with AC_LANG_POP(C++).
8806         * configure: Regenerated.
8808 2001-06-25  Andras Salamon  <andras@cs.wits.ac.za>
8810         * aclocal.m4 (GROFF_PAGE): Fix page detection code.
8811         * configure: Regenerated.
8813 2001-06-24  Werner LEMBERG  <wl@gnu.org>
8815         * doc/homepage.ms: Don't include arkup.tmac (which no longer exists)
8816         but www.tmac.
8817         * doc/pic.ms: Fix typos.
8819 Version 1.17.1 released
8820 =======================
8822 2001-06-21  Golubev I. N.  <gin@mo.msk.ru>
8824         * aclocal.m4 (GROFF_NEED_DECLARATION): Fix inclusion of strings.h.
8825         * configure: Updated.
8827 2001-06-20  Gaius Mulley  <gaius@glam.ac.uk>
8829         * src/roff/preproc/html/pre-html.cc (make_message): Fix incorrect
8830         image names.
8831         * src/roff/troff/dic.cc (blank_line): Add html tag.
8833 2001-06-19  Gaius Mulley  <gaius@glam.ac.uk>
8835         * src/roff/troff/input.cc (do_suppress): Fix typo.
8837 2001-06-18  Gaius Mulley  <gaius@glam.ac.uk>
8839         Added two new options (-D and -I) to specify image names and a
8840         subdirectory to place the images in.
8842         Change syntax from \\Ox to \\O[x].
8844         * src/devices/grohtml/post-html.cc (main): Add options.
8845         (usage): Updated.
8846         * src/preproc/html/pre-html.cc: Include `stdarg.h'.
8847         Use `NULL' instead of `0' for null string pointers.
8848         (MAX_RETRIES): New macro.
8849         (lengthOfintToStr, intToStr, make_message): New functions.
8850         (makeFileName): Make function static.
8851         Implement -D and -I options.
8852         (checkImageDir): New function.
8853         (write_end_image, write_start_image): Use new syntax of \O.
8854         (createAllPages, removeAllPages): Implement -D and -I options.  Use
8855         make_message().
8856         (createImage): Use make_message().
8857         (addps4html): Add guard for malloc().
8858         (usage, scanArguments): Updated.
8859         (makeTempFiles): Use mkstemp().
8860         (removeTempFiles): Use unlink().
8861         (findPrefix): Add guard for malloc().
8862         (main): Updated.
8863         * src/roff/troff/input.cc (get_delim_file_name): New function to
8864         parse \O.
8865         (do_suppress): Updated to parse new syntax.
8866         * src/devices/grohtml/grohtml.man: Updated.
8867         * tmac/www.tmac: Updated to new syntax.
8869         * NEWS: Updated.
8871 2001-06-15  Werner LEMBERG  <wl@gnu.org>
8873         * src/roff/grog/Makefile.sub: Remove NAMEPREFIX.
8875         * src/devices/grohtml/grohtml.man: Minor improvements.
8877 2001-06-14  Werner LEMBERG  <wl@gnu.org>
8879         * src/preproc/html/Makefile.sub: Remove NAMEPREFIX.
8881 2001-06-11  Werner LEMBERG  <wl@gnu.org>
8883         * man/roff.man, mann/groff.man: Use '\" instead of .\" in the first
8884         line to specify preprocessor options -- mandb 2.3.1 only recognizes
8885         the former.
8886         * src/preproc/grn/grn.man: Add proper '\" string.
8888 2001-06-11  OKAZAKI Tetsurou  <okazaki@be.to>
8890         * test-groff: Don't use PATH but GROFF_BIN_PATH.
8892 2001-06-08  Werner LEMBERG  <wl@gnu.org>
8894         Updated to autoconf 2.50.
8896         * configure.in: Renamed to...
8897         * configure.ac: This.
8898         * aclocal.m4 (AC_OUTPUT_MAKE_DEFS): Removed.
8899         (GROFF_OS390): Updated.
8900         * configure: Regenerated.
8902 2001-05-18  Werner LEMBERG  <wl@gnu.org>
8904         * src/roff/troff/env.c, src/roff/troff/env.h,
8905         src/roff/troff/input.cc, src/roff/troff/troff.man: Undo `ss' change
8906         from 2000-12-21.
8908 2001-05-17  Jeffrey Friedl  <jfriedl@yahoo-inc.com>
8910         * src/roff/troff/input.cc (read_size): Fix special case `\s0'.
8912 2001-05-16  Werner LEMBERG  <wl@gnu.org>
8914         * src/roff/troff/input.cc (read_size): Emit warning if value becomes
8915         less than or equal zero; set it to 1 then.
8916         * src/roff/troff/node.h (node::node): Initialize `last'.
8918 2001-05-08  Werner LEMBERG  <wl@gnu.org>
8920         * tmac/an-old.tmac: Make predefined strings work in compatibility
8921         mode.
8922         Add troff version guard.
8923         * tmac/doc.tmac: Simplify version guard.
8925 2001-05-07  Werner LEMBERG  <wl@gnu.org>
8927         The .ns and .rs requests are now honoured not only in the top-level
8928         but in all diversions (similar to UNIX troff).
8930         This change is based on a patch from Tadziu Hoffmann
8931         <hoffmann@usm.uni-muenchen.de>.
8933         * src/roff/troff/div.h (diversion): Add `no_space_mode' member.
8934         (top_level_diversion): Remove `no_space_mode' member.
8935         * src/roff/troff/div.cc (diversion::diversion,
8936         top_level_diversion::top_level_diversion): Updated.
8937         (macro_diversion::output): Reset `no_space_mode'.
8938         (no_space, restore_spacing): Use `curdiv' unconditionally.
8939         (space_request, blank_line): Check `curdiv->no_space_mode'.
8940         (no_space_mode_reg::get_value, no_space_mode_reg::get_string): Use
8941         `curdiv' unconditionally.
8942         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8943         Updated.
8945 2001-05-06  Werner LEMBERG  <wl@gnu.org>
8947         Added two new requests `de1' and `am1' which are similar to `de' and
8948         `am' with the difference that compatibility mode is saved on entry,
8949         switched off during macro execution, and restored on exit.
8951         * src/roff/troff/input.h: Added two new special characters
8952         (COMPATIBLE_SAVE, COMPATIBLE_RESTORE).
8953         * src/roff/troff/input.cc (input_iterator): Added two member
8954         functions `save_compatible_flag' and `get_compatible_flag'.
8955         (input_stack): Ditto.
8956         (string_iterator): Ditto.  Also add private member
8957         `saved_compatible_flag'.
8958         (token::next): Use COMPATIBLE_SAVE and COMPATIBLE_RESTORE.
8959         (calling_mode): New enumeration.
8960         (do_define_macro): Use it.  Insert COMPATIBLE_SAVE and
8961         COMPATIBLE_RESTORE at the beginning and end of macro, respectively.
8962         (define_macro, define_indirect_macro, append_macro, ignore): Use
8963         `calling_mode'.
8964         (define_nocomp_macro, append_nocomp_macro): New functions.
8965         (init_input_requests): Updated.
8966         (do_request): Rename local variable `saved_compatible_flag' to
8967         `old_compatible_flag'.
8968         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
8970         * tmac/an-old.tmac: Use `de1' instead of `de' request for all
8971         public and trap-invoked macros.  As a consequence, the man macros
8972         work in compatibility mode also.
8974 2001-05-06  Solar Designer  <solar@openwall.com>
8976         * Makefile.in: Use $(mandir).
8978 2001-05-06  Alexios Zavras  <zvr@pobox.com>
8980         * src/utils/afmtodit/afmtodit.pl: Fix serious typo.
8982 2001-05-05  Werner LEMBERG  <wl@gnu.org>
8984         Added `.ns' number register: Returns 1 in no-space mode (if in
8985         top-level diversion), 0 otherwise.
8987         * src/roff/troff/div.cc (no_space_mode_reg): New class.
8988         (init_div_requests): Updated.
8989         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
8990         Document it.
8992 2001-05-04  Werner LEMBERG  <wl@gnu.org>
8994         * src/roff/nroff/nroff.man: Improved documentation (especially
8995         locales).
8997 2001-05-02  Werner LEMBERG  <wl@gnu.org>
8999         Added `brp' request: This is \p as a request.
9001         * src/roff/troff/env.cc (environment::do_break): Add parameter
9002         `spread'.
9003         (do_break_request): New function (was `break_request').
9004         (break_request): Calls `do_break_request'.
9005         (break_spread_request): New; calls `do_break_request'.
9006         (init_env_requests): Updated.
9007         * src/roff/troff/env.h: Updated.
9008         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9010         * REVISION: Increased to 1.
9011         * win32-diffs: Updated.
9013 2001-05-01  Werner LEMBERG  <wl@gnu.org>
9015         * tmac/an-old.tmac: Fix minor compatibility mode issue.
9016         * tmac/troffrc-end: Make it really work in compatibility mode.
9018 2001-04-27  Werner LEMBERG  <wl@gnu.org>
9020         * src/utils/lkbib/lkbib.cc: Switch inclusion order of stdio.h and
9021         stdlib.h.
9023 2001-04-22  Werner LEMBERG  <wl@gnu.org>
9025         * src/libs/libgroff/getopt.c, src/include/getopt.h: Updating to
9026         latest versions from glibc CVS archive.
9028         * MORE.STUFF: Updated, using a patch from Kees Zeelenberg
9029         <c.zeelenberg@hccnet.nl>.
9031 2001-04-21  Werner LEMBERG  <wl@gnu.org>
9033         * configure.in: Move check for mkstemp() to...
9034         * aclocal.m4 (GROFF_MKSTEMP): This new function.
9035         * configure: Regenerated.
9037         * src/include/groff-getopt.h: Don't use variable names in
9038         declarations.
9040         * src/devices/grohtml/html-chars.h: Removed.  It isn't used.
9041         * src/devices/grohtml/Makefile.sub,
9042         src/devices/grohtml/post-html.cc: Updated.
9044 2001-04-21  Albert Chin-A-Young  <china@thewrittenword.com>
9046         * configure.in: Add special check for mkstemp().
9047         * src/libs/libgroff/tmpfile.cc: Use it.
9048         * src/utils/indxbib/indxbib.cc: Ditto.
9049         * src/utils/pfbtops/pfbtops.c (main): Don't use C++ comment style.
9050         * src/devices/grolbp/lbp.h (lbpprintf, lbpputs, vdmprintf): Use
9051         `const'.
9053 2001-04-20  Bruce Lilly  <blilly@erols.com>
9055         `Version_string' as C++ object was not visible to linker from C
9056         object files.
9057         Add `const' to `Version_string'.
9059         * src/utils/pfbtops/pfbtops.c (main), src/roff/groff/groff.cc
9060         (main), src/roff/troff/input.cc (main), src/preproc/tbl/main.cc
9061         (main), src/preproc/pic/main.cc (main), src/preproc/eqn/main.cc
9062         (main), src/preproc/grn/main.cc (main), src/preproc/html/pre-html.cc
9063         (scanArguments), src/preproc/refer/refer.cc (main),
9064         src/preproc/soelim/soelim.cc (main), src/devices/grotty/tty.cc
9065         (main), src/devices/grodvi/dvi.cc (main), src/devices/grolj4/lj4.cc
9066         (main), src/devices/grohtml/post-html.cc (main),
9067         src/devices/grolbp/lbp.cc (main), src/utils/tfmtodit/tfmtodit.cc
9068         (main), src/utils/hpftodit/hpftodit.cc (main),
9069         src/utils/lookbib/lookbib.cc (main), src/utils/indxbib/indxbib.cc
9070         (main), src/utils/lkbib/lkbib.cc (main),
9071         src/utils/addftinfo/addftinfo.cc (main): Implement it.
9073         * src/roff/groff/pipeline.c: Add _UWIN.
9074         * src/include/nonposix.h: Ditto.
9076 2001-04-20  Werner LEMBERG  <wl@gnu.org>
9078         * src/include/lib.h: Use HAVE_STRERROR.
9079         * src/roff/groff/pipeline.c: Ditto.
9080         * src/preproc/html/pre-html.cc: Remove declaration of `strerror'.
9081         * src/libs/libgroff/Makefile.sub (version.cc): Add `extern "C"'.
9082         * src/utils/pfbtops/pfbtops.c: Add copyright notice.
9083         * win32-diffs: Updated.
9084         * src/utils/hpftodit/hpftodit.cc (read_map): Fix compiler warning.
9086 2001-04-19  Werner LEMBERG  <wl@gnu.org>
9088         * src/preproc/html/pre-html.cc (scanArguments): Use `troff_command'
9089         instead of hardwired `"troff"'.
9090         (char_buffer::read_file): Remove unused variables.
9091         (char_buffer::write_file_troff): Ditto.
9092         (char_buffer::write_file_html): Ditto.
9093         (generateImages): Ditto.
9094         (abs): Removed.
9095         * src/utils/addftinfo/addftinfo.cc (main): Fix compilation problem.
9097         * src/include/lib.h: Don't include `groff-getopt.h' for UWIN.
9099         * src/libs/libgroff/font.cc (font::load_desc): Fix compiler warning.
9100         * src/libs/libbib/index.cc (index_search_item_iterator::get_tag,
9101         index_search_item::search1): Ditto.
9102         * src/roff/troff/node.h (width_list): Reorder members.
9103         * src/roff/troff/input.cc (do_define_macro): Fix compiler warning.
9104         (lookup_warning): Ditto.
9105         (prepend_string): Commented out.
9106         * src/roff/troff/dictionary.cc (is_good_size): Fix compiler warning.
9107         * src/roff/troff/reg.cc (number_value_to_ascii): Ditto.
9108         * src/preproc/tbl/main.cc (process_format): Ditto.
9109         * src/preproc/pic/pic.y (define_variable, reset, reset_all): Fix
9110         compiler warnings.
9111         * src/preproc/pic/pic.cc: Updated.
9112         * src/preproc/eqn/lex.cc (init_table): Fix compiler warnings.
9113         * src/preproc/eqn/over.cc (over_box::compute_metrics): Ditto.
9114         * src/preproc/refer/command.cc (execute_command): Ditto.
9115         * src/preproc/refer/ref.cc (sortify_title, find_month): Ditto.
9116         * src/preproc/refer/token.cc (lookup_token): Ditto.
9117         * src/preproc/soelim/soelim.cc: Ditto.
9118         * src/preproc/html/pushbackbuffer.cc (ERROR): Ditto.
9119         (isHexDigit): Commented out.
9120         (pushBackBuffer::isString): Remove unused variable.
9121         * src/devices/grops/ps.cc (ps_printer::special): Fix compiler
9122         warning.
9123         * src/devices/grops/psrm.cc (resource_manager::lookup_font,
9124         resource_manager::read_resource_arg, read_one_of, parse_extensions):
9125         Ditto.
9126         * src/devices/grodvi/dvi.cc (dvi_printer::draw): Ditto.
9127         * src/devices/grolj4/lj4.cc (lj4_font::handle_unknown_font_command,
9128         lookup_paper_size): Ditto.
9129         * src/devices/grohtml/post-html.cc (is_subsection): Commented out.
9130         (text_glob, element_list): Reorder members.
9131         * src/devices/grohtml/html-text.cc (html_text::do_pre): Remove
9132         compiler warning.
9133         * src/devices/grohtml/html-text.h (html_text::emit_space): Change
9134         return value to `void'.
9135         * src/devices/grohtml/output.cc (word_list::word_list): Fix order
9136         of initializers.
9137         * src/devices/grohtml/html.h (simple_output::check_newline,
9138         simple_output::space_or_newline, simple_output::enable_newlines):
9139         Add return value.
9140         * src/devices/grolbp/lbp.cc (wp54charset, set_papersize): Remove
9141         compiler warnings.
9142         * src/utils/tfmtodit/tfmtodit.cc (tfm::load, gf::load, main): Ditto.
9143         * src/utils/hpftodit/hpftodit.cc (File::seek, read_symbol_sets,
9144         output_ligatures, output_charset, read_map): Ditto.
9145         * src/utils/lookbib/lookbib.cc (main): Ditto.
9146         * src/utils/indxbib/indxbib.cc (main, fwrite_or_die): Ditto.
9147         (do_file): Fix typo (`=' -> `==').
9148         * src/utils/lkbib/lkbib.cc (main): Remove compiler warning.
9149         * src/utils/addftinfo/addftinfo.cc (main): Ditto.
9151 2001-04-18  Ruslan Ermilov  <ru@FreeBSD.org>
9153         * src/roff/nroff/nroff.sh: Adding -p (pic) and -t (tbl) options.
9154         Fix usage of GROFF_BIN_PATH.
9155         * src/roff/nroff/nroff.man: Updated.
9157 2001-04-18  Werner LEMBERG  <wl@gnu.org>
9159         * NEWS: Fixing typos.
9160         Updated.
9162 Version 1.17 released
9163 =====================
9165 2001-04-17  Werner LEMBERG  <wl@gnu.org>
9167         * tmac/Makefile.sub (install-data): mdoc.local-s is in current
9168         directory, not in $(srcdir).
9170 2001-04-16  Werner LEMBERG  <wl@gnu.org>
9172         * doc/groff.texinfo: More info on conditionals.
9174 2001-04-15  Werner LEMBERG  <wl@gnu.org>
9176         * doc/groff.texinfo: Added some info about groff internals.
9178         * src/roff/troff/node.cc (make_glyph_node): Emit warning message
9179         about missing special character only if the name is non-null.
9181 2001-04-14  Werner LEMBERG  <wl@gnu.org>
9183         Removing the grohtml-old device driver which is now obsolete.
9185         * src/devices/grohtml-old/*: Removed.
9186         * font/devhtml-old/*: Removed.
9187         * src/libs/libgroff/htmlindicate.cc (graphic_start, graphic_end):
9188         Remove comments.
9189         * Makefile.in (CCPROGDIRS, DEVDIRS): Updated.
9190         * test-groff (PATH): Updated.
9191         * tmac/Makefile.sub (NORMALFILES): Updated.
9192         * tmac/an-old.tmac: Remove special code for html-old device.
9193         Replace `html-or-html-old' register with `an-html'.
9194         * tmac/eqnrc: Updated.
9195         * tmac/html-old.tmac: Removed.
9196         * tmac/troffrc, tmac/troffrc-end: Updated.
9197         * tmac/www.tmac: Remove special code for html-old device.
9198         Replace `html-or-html-old' register with `www-html'.
9200         * src/libs/libgroff/tmpfile.cc (remove_tmp_files),
9201         src/libs/libgroff/htmlindicate.cc (graphic_end),
9202         include/htmlindicate.h, src/preproc/grn/*.cc,
9203         src/roff/groff/env.{cc,h}: Remove `void' parameter if used as a
9204         single argument for consistency with rest of source code.
9206         * aclocal.m4, tmac/an-old.tmac: Fix copyright.
9208 2001-04-13  Ruslan Ermilov  <ru@FreeBSD.org>
9210         * src/roff/troff/troff.man: Fixing typos.
9212 2001-04-13  Werner LEMBERG  <wl@gnu.org>
9214         * doc/pic.ms: Fixing many font switches.
9215         * doc/groff.texinfo: Fixes, additions.
9216         * MORE.STUFF: Updated.
9218 2001-04-12  Gaius Mulley  <gaius@glam.ac.uk>
9220         * src/devices/grohtml/grohtml.man: Updated manual page regarding
9221         simple anchor.
9222         * src/preproc/html/pre-html.cc (createImage): Fixed right hand
9223         cropping of images.
9224         (removeTempFiles): New function to tidy up temporary files.
9225         * src/preproc/html/pre-html.cc (main): Calls `removeTempFiles()'.
9226         Many fixes to do with the new inline suppress node and image regions
9227         are much tighter.
9228         * src/devices/grohtml/post-html.cc: New method `is_auto_img'.
9229         (generate_img_src): New function.
9230         (html_printer::do_auto_image): Utilizes it.
9231         (do_heading, do_title): Include inline images within their contents.
9232         (html_printer::begin_page): Tidied up comments that are issued to
9233         the html output file.
9234         (html_printer::do_fill): Fixed so that `.nf' works with fonts other
9235         than courier.
9236         (text_glob::is_br): New method used by do_heading.
9237         * tmac/s.tmac: If -Thtml then emit $1 in .IP rather than its
9238         equivalent diversion.
9239         * src/include/html-strings.h: Altered image tags to reflect the
9240         inline image node.
9241         * src/include/htmlindicate.h (html_end_suppress): Added `is_inline'
9242         parameter.
9243         * src/preproc/eqn/main.cc: Will suppress generation of image tags if
9244         it is already inside a pic image.  Only emit tags if the argument
9245         `-Tps:html' is present.
9246         * src/preproc/tbl/main.cc: Changes to reflect additional
9247         `html_end_suppress' parameter.
9248         * src/roff/troff/env.cc: Only emit eol tag if a node has been
9249         emitted since the last eol tag was written.
9250         * src/roff/troff/env.h: New boolean `emitted_node'.
9251         * src/roff/troff/input.cc (do_suppress): Handles extra suppress
9252         nodes \O3, \O4, \O5.  No longer use `output_low_mark_miny'.
9253         * src/roff/troff/node.cc (check_charinfo): New method. 
9254         (troff_output_file::determine_line_limits): Alterations to limit
9255         checking.
9256         * tmac/www.tmac: Changes to reflect new suppress nodes.
9257           
9258 2001-04-12  Bruno Haible  <haible@clisp.cons.org>
9260         * src/devices/grohtml/post-html.cc (html_printer::add_to_sbuf):
9261         Escape the html_glyph in the buffer.
9262         (str_translate_to_html): Output the unescaped escaped_char.
9263         * src/devices/grohtml/html-text.cc (issue_table_begin): Set
9264         `frame=void', not `frame=none'.  Add `border=0'.
9266 2001-04-12  Werner LEMBERG  <wl@gnu.org>
9268         * PROBLEMS: Add some words on how to avoid wrapper macros.
9270 2001-04-11  Blake McBride  <blake@florida-software.com>
9272         * src/include/nonposix.h (fileno) [_MSC_VER]: Removed.
9274 2001-04-11  Werner LEMBERG  <wl@gnu.org>
9276         * font/devlbp/Makefile.sub (CLEANADD): Set it.
9277         * tmac/Makefile.sub (CLEANADD): Add tmac.local-s.
9278         * Makefile.in (dist): Don't remove src/xditview/Imakefile, but ...
9279         * Makefile.sub (DISTCLEANFILES): Here.
9281         * libs/libgroff/new.cc: Include `nonposix.h'.
9282         * win32-diffs: Updated.
9284 2001-04-10  Ruslan Ermilov  <ru@FreeBSD.org>
9286         Added skeleton macro for defunct macros.
9288         Updated documentation.
9290         When inside displays, an empty input line warning should be
9291         suppressed.  If another macro call is put inside a display,
9292         all subsequent empty lines found in that display caused a
9293         warning to be emitted.
9295         * tmac/doc.tmac (doc-defunct-macro): New macro.
9296         (Db, Ds, Ex, Or, Sf): Reimplemented using this macro.
9297         (doc-restore-global-vars): Fixed typo.
9298         (doc-empty-line): Check the `doc-display-depth' register to
9299         determine whether we are inside display or not.
9301         * tmac/doc-common: Removed `Or' and `Sf' registers.
9302         Moved obsolete `Ds' macro to doc.tmac.
9304         * tmac/groff_mdoc.man: Bump document date.
9305         Document `.Vt' under ``Variable Types''.
9306         Removed documentation for obsolete `.Or' macro.
9308 2001-04-10  Werner LEMBERG  <wl@gnu.org>
9310         * NEWS: Updated.
9311         * doc/groff.texinfo: Many fixes, additions, clarifications, etc.
9313 2001-04-10  Bruno Haible  <haible@clisp.cons.org>
9315         * src/devices/grodvi/dvi.cc (main): Accept --help and --version.
9316         (usage): Add stream argument. Don't exit.
9317         * src/devices/grohtml/post-html.cc (main): Accept --help and --version.
9318         Write --version output to stdout, not stderr.
9319         (usage): Add stream argument. Don't exit.
9320         * src/devices/grohtml-old/html.cc (main): Accept --help and --version.
9321         (usage): Add stream argument. Don't exit.
9322         * src/devices/grolbp/lbp.cc (long_options): Use symbolic getopt.h
9323         constants.
9324         (usage): Add stream argument. Don't exit.
9325         (main): Write --help output to stdout, not stderr.
9326         * src/devices/grolj4/lj4.cc (main): Accept --help and --version.
9327         (usage): Add stream argument. Don't exit.
9328         * src/devices/grops/ps.cc (main): Accept --help and --version.
9329         (usage): Add stream argument. Don't exit.
9330         * src/devices/grotty/tty.cc (main): Accept --help and --version.
9331         (usage): Add stream argument. Don't exit.
9332         * src/preproc/eqn/main.cc (usage): Add stream argument. Don't exit.
9333         (main): Accept --help and --version.
9334         * src/preproc/grn/main.cc (usage): Add stream argument. Don't exit.
9335         (main): Accept --help and --version.
9336         * src/preproc/html/pre-html.cc (usage): Add stream argument.
9337         (scanArguments): Accept --help and --version.
9338         * src/preproc/pic/main.cc (usage): Add stream argument. Don't exit.
9339         (main): Accept --help and --version.
9340         * src/preproc/refer/refer.cc (main): Accept --help and --version.
9341         (usage): Add stream argument. Don't exit.
9342         * src/preproc/soelim/soelim.cc (usage): Add stream argument. Don't
9343         exit.
9344         (main): Accept --help and --version.
9345         * src/preproc/tbl/main.cc (usage): Add stream argument. Don't exit.
9346         (main): Accept --help and --version.
9347         * src/roff/groff/groff.cc (main): Accept --help and --version.
9348         (synopsis): Add stream argument.
9349         (help): Write --help output to stdout, not stderr.
9350         (usage): Add stream argument. Don't exit.
9351         * src/roff/grog/grog.pl: Accept --help and --version.
9352         (help): New sub.
9353         * src/roff/grog/grog.sh: Accept --help and --version.
9354         * src/roff/nroff/nroff.sh: Accept --help and --version.
9355         * src/roff/troff/input.cc (USAGE_EXIT_CODE): Remove macro.
9356         (usage): Add stream argument. Don't exit.
9357         (main): Accept --help and --version.
9358         * src/utils/addftinfo/addftinfo.cc (main): Accept --help and --version.
9359         (usage): New function with stream argument, doesn't exit.
9360         * src/utils/hpftodit/hpftodit.cc (main): Accept --help and --version.
9361         (usage): New function with stream argument, doesn't exit.
9362         * src/utils/indxbib/indxbib.cc (main): Accept --help and --version.
9363         (usage): Add stream argument. Don't exit.
9364         * src/utils/lkbib/lkbib.cc (usage): Add stream argument. Don't exit.
9365         (main): Accept --help and --version.
9366         * src/utils/lookbib/lookbib.cc (usage): Add stream argument. Don't
9367         exit.
9368         (main): Accept --help and --version.
9369         * src/utils/pfbtops/pfbtops.c (usage): Add stream argument. Don't exit.
9370         (main): Accept --help and --version.
9371         * src/utils/tfmtodit/tfmtodit.cc (main): Accept --help and --version.
9372         (usage): Add stream argument. Don't exit.
9374 2001-04-10  Ruslan Ermilov  <ru@freebsd.org>
9376         Fix indentation in SYNOPSIS.
9378         Updated to include changes of latest BSD mdoc version (basically,
9379         the only change is that `.Fn' and `.Fc' put a final semicolon after
9380         a function declaration in the SYNOPSIS section).
9382         * tmac/doc.tmac (doc-in-synopsis-count): Replaced with ...
9383         (doc-in-synopsis-section): New variable.  Updated all related
9384         functions.
9385         (doc-indent-synopsis-active): New register.
9386         (Nd, Fn, Fo): Use it.
9387         (Cd): It requires manipulation of \n[doc-indent-synopsis] so that
9388         `.Cd' with long argument line produces indented wrapped lines. 
9389         Also, the misplaced `.nop \*[doc-Nm-font]\c'' caused extra
9390         undesirable line break to be output.
9391         (doc-do-func-decl, Nm, Vt, Fn, Fo): Remove extraneous calls to
9392         `.rs'.
9393         (Fn, Fc): Add final `;' to output.
9394         (doc-save-global-vars, doc-restore-global-vars): Updated.
9395         * tmac/doc-common: Remove `Ex' register.
9396         Updated.
9397         * tmac/doc-ditroff, tmac/doc-nroff, tmac/doc-syms: Updated
9398         copyright.
9400 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9402         * tmac/doc.tmac (Cd): Simplify code.
9403         * tmac/groff_mdoc.man: Document some behaviour of `Cd' request.
9405 2001-04-06  Werner LEMBERG  <wl@gnu.org>
9407         Implement continuous underlining for nroff mode.  To do that, a new
9408         request in the ditroff language has been added: `x u N' (N is 0
9409         or 1).
9411         \X and \Y are now transparent to end-of-sentence recognition.
9413         * src/include/printer.h (printer): Add `type' parameter to `special'
9414         method.
9415         * src/libs/libdriver/printer.cc (printer::special): Updated.
9416         * src/libs/libdriver/input.cc (do_file): Handle `x u N'.
9418         * src/devices/dvi/dvi.cc (dvi_printer::special): Handle only
9419         specials of type `p'.
9420         * src/devices/grohtml/post-html.cc (html_printer::special): Ditto.
9421         * src/devices/grohtml-old/html.cc (html_printer::special): Ditto.
9422         * src/devices/grops/ps.cc (ps_printer::special): Ditto.
9423         * src/devices/grotty/tty.cc: Add new enum CU_MODE.
9424         (glyph::order): New method.
9425         (tty_printer::add_char): Use it.
9426         (tty_printer::special): New method.
9427         (tty_printer::end_page): Implement it.
9429         * src/roff/troff/node.h (special_node): Add `no_init_string' member.
9430         * src/roff/troff/node.cc (special_node::special_node): Add parameter
9431         to set `no_init_string'.
9432         (special_node::tprint_start): Use it.
9433         (special_node::same, special_node::copy): Updated.
9434         (special_node::ends_sentence): New method.
9435         (troff_output_file::start_special): Add parameter to include
9436         inititialization of special conditionally.
9438         * src/roff/troff/env.h (environment): New member `underline_spaces'.
9439         * src/roff/troff/env.cc (do_underline_special): New function.
9440         (environment::set_font): Use it.
9441         (do_underline): Use it.  This was `underline()'.
9442         (underline): Call `do_underline()'.
9443         (continuous_underline): New function which calls `do_underline()'.
9444         (environment::newline): Use `do_underline_special()'.
9445         (init_env_requests): Updated.
9447         * NEWS, man/troff_out.man: Updated.
9449 2001-04-06  Bruno Haible  <haible@clisp.cons.org>
9451         * font/devutf8/R.proto: Fix code of 'shc'.
9453 2001-04-06  Ruslan Ermilov  <ru@freebsd.org>
9455         Many fixes.  Diag lists can now be nested also; additionally,
9456         `-compact' and `-offset' are supported.
9458         * tmac/doc.tmac (doc-have-indent): Replaced with ...
9459         (doc-list-have-indent-stackXXX): A new register stack.
9460         (doc-have-diag-list): Removed.
9461         (Bl): Use `doc-list-have-indent-stackXXX'.
9462         (El): Updated.
9463         (doc-diag-list): Use `doc-compact-list-stackXXX'.
9464         (doc-tag-list): Use `doc-list-have-indent-stackXXX'.
9465         (doc-set-vertical-and-indent): Ditto.
9466         (doc-next-list-depth): Removed.
9467         (doc-increment-list-stack): Updated.
9468         (doc-decrement-list-stack): Use `doc-list-depth' instead of
9469         `doc-next-list-depth'.
9470         (doc-end-list, doc-end-column-list): Don't use
9471         `doc-increment-list-stack'.
9472         (doc-set-column-tab): Don't use `doc-list-offset-stackXXX'.
9473         (doc-save-global-vars, doc-restore-global-vars): Updated.
9474         * tmac/doc-common: Updated.
9475         * tmac/groff_mdoc.man: Updated.
9476         * NEWS: Fix typo.
9478 2001-04-02  Werner LEMBERG  <wl@gnu.org>
9480         * src/devices/grotty/grotty.man: Fix grammatical error.
9482 2001-03-30  Ruslan Ermilov  <ru@freebsd.org>
9484         Remove .Ld from mdoc package; replace it with special handling of
9485         `...'.
9487         * tmac/doc-common: Remove `Ld' register.
9488         Uncomment `doc-volume-ds-*' strings.
9489         Remove `doc-operating-system-default'.
9490         (Os): Updated.
9491         * tmac/doc-syms (Ld): Removed.
9492         * tmac/doc.tmac (doc-parse-args, doc-parse-arg-vector): Handle
9493         `...' specially.
9494         * NEWS: Updated.
9496         * tmac/groff_mdoc.man: Many fixes and updates.
9498 2001-03-29  Werner LEMBERG  <wl@gnu.org>
9500         * tmac/troffrc-end: Protect data with `.do'.  Reported by T. Kurt
9501         Bond <tkb@tkb.mpl.com>.
9502         * tmac/www.tmac: Save compatibility mode.
9504 2001-03-28  Ruslan Ermilov  <ru@freebsd.org>
9506         * tmac/groff_mdoc.man: Many fixes.
9508 2001-03-28  Werner LEMBERG  <wl@gnu.org>
9510         * src/preproc/soelim/soelim.man: Document that `.<whitespace>so'
9511         isn't recognized.
9513 2001-03-27  Werner LEMBERG  <wl@gnu.org>
9515         * tmac/an-old.tmac (TP, an-do-tag): Reduce line length while in
9516         diversion.  This fixes overlong tags.
9518 2001-03-26  Werner LEMBERG  <wl@gnu.org>
9520         * doc/groff.texinfo: Fixed and improved documentation of fonts.
9521         * tmac/doc-syms: Fix error messages.
9522         * tmac/an-old.tmac: Remove incorrect double backslashes.
9524 2001-03-24  Ruslan Ermilov  <ru@freebsd.org>
9526         * tmac/Makefile.sub: Strip mdoc.local also
9527         * tmac/strip.sed: Fixed.
9529 2001-03-24  Werner LEMBERG  <wl@gnu.org>
9531         * tmac/doc-nroff, tmac/doc-ditroff: Implement -rSxx switch for
9532         selecting the font size.
9533         * tmac/groff_mdoc.man, NEWS: Document it.
9535 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9537         * src/roff/troff/div.cc (save_vertical_space): Add default argument
9538         to `sv' request.
9539         * src/roff/troff/env.cc (family_change): Make `.fam' accept no
9540         argument to restore previous font family.
9541         * src/roff/troff/troff.man, man/groff.man, NEWS: Updated.
9543         * doc/groff.texinfo: More fixes and additions (mainly for font
9544         manipulating commands).
9546         * tmac/groff_mdoc.reference.man: Small updates and renamed to ...
9547         * tmac/groff_mdoc.man: This.  The quick reference has been removed.
9548         * tmac/Makefile.sub, NEWS: Updated.
9550 2001-03-23  Werner LEMBERG  <wl@gnu.org>
9552         Replaced mdoc implementation.  The new version is `state of the
9553         art', using almost all new features of groff 1.17 -- it won't run
9554         with older versions.
9556         * tmac/doc.tmac: Completely rewritten.
9557         * tmac/doc-common: Ditto.
9558         * tmac/doc-nroff: Ditto.
9559         * tmac/doc-ditroff: Ditto.
9560         * tmac/doc-syms: Ditto.
9561         * tmac/mdoc.local: New file.
9562         * tmac/groff_mdoc.samples.man: Replaced with ...
9563         * tmac/groff_mdoc.reference.man: New file, covering mdoc completely.
9564         * tmac/strip.sed: Updated.
9565         * tmac/Makefile.sub: Updated.
9566         * INSTALL: Updated.
9568         * tmac/groff_man.man: Add `man.local' to the FILES section.
9570 2001-03-22  Werner LEMBERG  <wl@gnu.org>
9572         * doc/groff.texinfo: Added many @noindent.
9573         Replaced @end_Example -> @endExample.
9574         Added info whether registers are r/o.
9575         Many other additions and fixes.
9577 2001-03-21  Werner LEMBERG  <wl@gnu.org>
9579         * doc/groff.texinfo: Added macro @Var (and some hacks due to bugs
9580         in makeinfo of texinfo 4.0) to be used in @Def* macros.
9581         Improved @Def* macros: Now the exact syntax of request, register,
9582         and escapes is shown.
9583         Added macros for parentheses and brackets to be used in @Def*.
9584         Many fixes and improvements of the documentation.
9586 2001-03-20  Werner LEMBERG  <wl@gnu.org>
9588         * doc/groff.texinfo: Added new index: `st' (for strings).
9589         Added macros @Defstr(x).
9590         Added macro @Example (adding @group).
9591         Other minor improvements.
9593 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9595         * doc/groff.texinfo: Added two new indices: `es' (for escapes) and
9596         `rq' for requests.  `fn' is no longer used.
9597         Added macros @Defreq(x), @Defreg(x), and @Defesc(x).
9598         Removed @Deffn(x).
9600         * tmac/an-old.tmac (an-p-footer): If `cR' is set, replace page
9601         number with name of man page.
9603 2001-03-19  Larry Kollar  <kollar@alltel.net>
9605         * doc/groff.texinfo: Complete revision.  Added many @Deffn to gain
9606         consistency.
9608 2001-03-19  Werner LEMBERG  <wl@gnu.org>
9610         * man/groff_font.man: Document `prepro', `postpro', and `print'.
9611         * src/roff/groff/groff.man: Improve documentation of `-l' and `-L'.
9612         * src/devices/grohtml/grohtml.man: Fixing typos.
9614 2001-03-19  Gaius Mulley  <gaius@glam.ac.uk>
9616         * tmac/s.tmac (@IP): Pass `.ip' html tag.
9617         * tmac/groff_mwww.man: Remove .LINE macro
9618         * tmac/www.tmac (LINE): Add `.ti'.
9620         * src/devices/grohtml/post-html.cc (html_printer): New member
9621         `indent'.
9622         (html_printer::emit_raw): Use it.
9623         (html_printer::do_linelength): Ditto.
9624         (html_printer::do_pageoffset): Ditto.
9625         (html_printer::do_indentation): Ditto.
9626         (html_printer::do_tempindent): Ditto.
9627         (html_printer::do_break): Ditto.
9628         (html_printer::begin_page): Ditto.
9629         (html_printer::do_indentedparagraph): New function.
9630         (html_printer::troff_tag): Handle `.ip'.
9631         * src/devices/grohtml/html-text.cc (html_text::issue_table_begin):
9632         Add `<td width=...>' handling.
9633         (html_text::do_table): Add parameter.
9634         (html_text::do_indent): Updated.
9635         * src/devices/groohtml/html-text.h: Updated.
9637 2001-03-16  Gaius Mulley  <gaius@glam.ac.uk>
9639         Introduced simple html tables to implement indentation.
9641         * src/devices/grohtml/html.h (word, word_list): New structures.
9642         (simple_output): Use it.
9643         * src/devices/grohtml/post-html.cc: Add `INDENTATION'.
9644         (html_printer): Improve indentation handling.
9645         (html_printer::emit_raw): Set `in_table' element.  Handle
9646         indentation if set.
9647         (html_printer::write_header): Move conditional downwards.
9648         Don't allow whitespace in tags.
9649         (html_printer::do_linelength): Handle line length and indentation
9650         conditionally.
9651         (html_printer::do_pageoffset): Handle indentation conditionally.
9652         (html_printer::do_indentation): Ditto.
9653         (html_printer::do_tempindent): New function member.
9654         (html_printer::do_fill): Take care of indentation.
9655         (html_printer::do_flush): Finish table.
9656         (html_printer::do_links): Ditto.
9657         (html_printer::do_break): New function for handling `.br' and `.ti'.
9658         (html_printer::troff_tag): Use it.
9659         Handle `.ti'.
9660         (html_printer::flush_globs): Fix.
9661         (html_printer::flush_page): Finish table.
9662         (html_printer::html_printer): Fix error message.  Set up
9663         `linelength'.
9664         (html_printer::add_to_sbuf): Remove special handling of character
9665         code 255.
9666         (to_unicode): Remove `stop()'.
9667         (html_printer::write_title): Cleanup.
9668         (html_printer::begin_page): Use `put_string()'.  Handle indentation.
9669         (html_printer::~html_printer): Flush text and end the line.
9670         Use `put_string()'.
9671         * src/devices/grohtml/html_text.h: Add more *_TAG enum values.
9672         * src/devices/grohtml/html_text.cc (html_text::end_tag): Fix
9673         emission of tags.
9674         (html_text::start_tag): Disable newlines.
9675         (html_text::table_is_void): New function.
9676         (html_text::issue_table_begin): Ditto.
9677         (html_text::issue_table_end): Ditto.
9678         (html_text::push_para): Better table handling.
9679         (html_text::do_indent): New function.
9680         (html_text::do_table): Ditto.
9681         (html_text::done_table): Ditto.
9682         (html_text::do_tt): Handle PRE_TAG.
9683         (html_text::is_in_table): New function.
9684         (html_text::check_emit_text): Handle tables.
9685         (html_text::do_emittext): Use `nl()'.
9686         (html_text::do_para): Handle table.
9687         (html_text::remove_def): New function.
9688         * src/devices/grohtml/output.cc (word, word_list): Implement
9689         methods.
9690         (simple_output::end_line): Flush last word.
9691         (simple_output::simple_comment): Ditto.
9692         (simple_output::begin_comment): Recoded.
9693         (simple_output::end_comment): Ditto.
9694         (simple_output::comment_arg): Removed.
9695         (simple_output::check_newline): Improve test and flush last word.
9696         (simple_output::space_or_newline): Improved.
9697         (simple_output::write_newline): Replaced with...
9698         (simple_output::nl): This.
9699         (simple_output::put_raw_char): Flush last word.
9700         (simple_output::check_space): Removed.
9701         (simple_output::put_translated_string): Ditto.
9702         (simple_output::put_string): Simplified.
9703         (simple_output::put_number): Updated.
9704         (simple_output::put_float): Ditto.
9705         (simple_output::put_symbol): Removed.
9706         (simple_output::enable_newlines): Add `check_newline()'.
9707         (simple_output::flush_last_word): New function.
9709         * src/roff/troff/enc.cc (no_fill): Remove call to add_html_tag().
9710         * src/roff/troff/div.cc (page_offset): Add call to add_html_tag().
9712         * tmac/s.tmac (@PP, @IP): Add html conditional code.
9713         * tmac/an-old.tmac (TP): Ditto.
9715 2001-03-09  Ruslan Ermilov  <ru@freebsd.org>
9717         * mdate.sh: Make it POSIX compliant.
9719 2001-03-09  Werner LEMBERG  <wl@gnu.org>
9721         Added the `return' request to end a macro immediately.  It simply
9722         pops iterators from the input stack until a macro iterator is found.
9724         * src/roff/troff/input.cc (input_iterator::is_macro,
9725         macro_iterator::is_macro): New member.
9726         (input_return_boundary): New class to signal an immediate return
9727         to while_request().
9728         (input_stack::add_return_boundary, input_stack::is_return_boundary):
9729         New functions.
9730         (input_stack::clear): Use it.
9731         (input_stack::pop_macro): New function.
9732         (while_request): Use `is_return_boundary()'.
9733         (return_macro_request): New function.
9734         (init_input_requests): Use it.
9736         * src/roff/troff/TODO: Updated.
9737         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9739 2001-03-08  Werner LEMBERG  <wl@gnu.org>
9741         * src/roff/troff/input.cc (input_iterator::is_boundary): Minor
9742         cleanup.
9744 2001-03-07  Werner LEMBERG  <wl@gnu.org>
9746         Make `\B' more rigid.
9748         * src/roff/troff/number.cc (parse_expr, parse_term): Add `rigid'
9749         parameter.
9750         (get_number_rigidly): New function.
9751         * src/roff/troff/input.cc (do_expr_test): Use it.
9752         * src/roff/troff/token.h: Updated.
9754         * src/roff/troff/request.h: Fix typo (init_html_request ->
9755         init_markup_request).
9757 2001-03-04  Gaius Mulley  <gaius@glam.ac.uk>
9759         Fixed grohtml handling of any named glyph for glyph indexes < 0x80. 
9760         Cosmetic changes to `.html-begin', `.html-end', `.html-image' which
9761         are now `.begin', `.end', `.image'.
9763         * src/devices/grohtml/post-html.cc: Adding UNICODE_DESC_START.
9764         (html_printer::add_to_sbuf): Changing type of `code' parameter.
9765         Use add_char_to_sbuf().
9766         (to_unicode): New function.
9767         (char_translate_to_html): Changing type of `ch' parameter.
9768         Use `to_unicode()'.
9769         (html_printer::~html_printer): Comment out doctype string.
9770         * src/preproc/html/pre-html.cc (write_end_image): Use `.end'
9771         instead of `.html-end'.
9772         (write_start_image): Use `.begin' and `.image' instead of
9773         `.html-begin' and `.html-image'.
9774         * src/roff/troff/input.cc: Rename `html_level' to `begin_level'.
9775         (html_begin): Renamed to ...
9776         (begin): This.
9777         (html_end): Renamed to ...
9778         (end): This.
9779         (html_image): Renamed to ...
9780         (image): This.
9781         (init_html_requests): Renamed to ...
9782         (init_markup_requests): This.
9783         * tmac/www.tmac: Updated.
9785 2001-02-28  Bram  <bram@avontuur.org>
9787         * src/libs/libgroff/font.cc (font_widths_cache): Fixing syntax of
9788         constructor.
9790 2001-02-26  David Leonard  <david.leonard@csee.uq.edu.au>
9792         * doc/meref.me: Fixing some typos.
9794 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9796         * src/roff/troff/node.cc (space_node::get_hyphenation_type): New
9797         method.  Return `HYPHEN_MIDDLE' if it was `\:'.
9798         * src/roff/troff/node.h: Updated.
9800 2001-02-17  Ruslan Ermilov  <ru@FreeBSD.org>
9802         * tmac/groff_tmac.man: Fix typo.
9804 2001-02-16  Werner LEMBERG  <wl@gnu.org>
9806         Fixing a bug which prevented proper end-of-sentence recognition
9807         between an `unformatted' box and the following text.  As a
9808         consequence, vertical line distances are no longer preserved in
9809         boxes after a call to `.unformat' -- because boxes aren't
9810         line-oriented (contrary to diversions), this doesn't make sense
9811         anyway.
9813         * src/roff/troff/node.cc (*node::set_unformat_flag): Add return
9814         value.
9815         (vertical_size_node::set_unformat_flag): New method.
9816         * src/roff/troff/node.hh: Updated.
9817         * src/roff/troff/input.cc (word_space_node::reread,
9818         hmotion_node::reread): Reset `unformat' flag after usage.
9819         (unformat_macro): Append only if `set_unformat_flag()' returns
9820         non-zero.
9821         * src/roff/troff/troff.man: Updated.
9823 2001-02-15  Werner LEMBERG  <wl@gnu.org>
9825         * src/roff/troff/troff.man, NEWS, man/groff.man: Improved
9826         documentation of `asciify' and `unformat' requests.
9828 2001-02-13  Werner LEMBERG  <wl@gnu.org>
9830         Redesigned the `unformat' request.  It is no longer connected with
9831         `asciify' but rather uses new `reread()' methods if the `unformat'
9832         flag is set.  Additionally, the handling of space characters after
9833         unformatting has been fixed so that they retain their width.
9835         * src/roff/troff/node.h (width_list): New structure to store
9836         original widths of spaces.
9837         (node): Added `unformat' member.
9838         Replaced `num_spaces' variable with `orig_width' list.
9839         * src/roff/troff/node.cc (*node::asciify,
9840         asciify_reverse_node_list): Removed `unformat_only' flag and related
9841         code.
9842         (word_space_node::asciify, word_space_node::word_space_node): Use
9843         `orig_width'.
9844         (word_space_node::~word_space_node): New destructor.
9845         (word_space_node::copy): Updated to handle `orig_width'.
9846         (hmotion_node::copy, unbreakable_space_node::copy): Updated.
9847         (*node::merge_space): Update `orig_width' list if necessary.
9848         (*node::set_unformat_flag): New methods to set the `unformat' flag.
9849         * src/roff/troff/enc.cc (environment::space_newline): Use
9850         `width_list'.
9851         (environment::space): Added method to handle space width and
9852         sentence space width as parameters.  Use `width_list'.
9853         (environment::make_tab_node): Updated.
9854         * src/roff/troff/env.h: Updated.
9855         * src/roff/troff/input.cc (word_space_node::reread,
9856         unbreakable_space_node::reread, hmotion_node::reread): New methods
9857         to handle nodes specially if `unformat' flag is set.
9858         (do_asciify_macro): Renamed back to ...
9859         (asciify_macro): This.
9860         (unformat_macro): New implementation to simply set the `unformat'
9861         flag.
9863         * MORE.STUFF: Added more info about deroff.
9865 2001-02-08  Werner LEMBERG  <wl@gnu.org>
9867         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9868         space_char_hmotion_node, overstrike_node): Add `get_hyphen_list()'
9869         and `add_self()' methods to avoid hyphenation.  For example, the
9870         hyphen list for `foo\0\0bar' was `foobar', causing insertion of a
9871         soft hyphen after `foo'.  Now the hyphen list is correctly
9872         `foo<ignore><ignore>bar'.
9874 2001-02-05  Yoshiteru Kageyama  <yt-kage@cb3.so-net.ne.jp>
9876         * tmac/groff_tmac.man: Fix `BIR' macro.
9878 2001-02-04  Werner LEMBERG  <wl@gnu.org>
9880         A new escape sequence `\:', inserting a zero-width break point.
9882         * src/roff/troff/input.h: Adding `ESCAPE_COLON'.
9883         * src/roff/troff/input.cc (get_copy, token::next, asciify):
9884         Implement it.
9885         * src/roff/troff/node.h (node): Add `is_escape_colon()' virtual
9886         method.
9887         (space_node): Add `was_escape_colon' member.  Add `is_escape_colon()'
9888         and `asciify()' methods.
9889         * src/roff/troff/node.cc (space_node::space_node): Updated.
9890         (space_node::asciify): Handle `was_escape_colon'.
9891         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9893         Handle `\~' similar to other comparable requests.
9895         * src/roff/troff/input.cc (process_input_stack): Remove now obsolete
9896         label.
9897         (token::next): Move creation of an unbreakable_space_node to...
9898         (token::add_to_node_list): Here.
9900         Fix a bug which sometimes prevented hyphenation of words connected
9901         with `\~' or `\ ' (and other escape sequences handled as
9902         TOKEN_NODE).  This also fixes a hyphenation problem with boxes
9903         (after a call to the `unformat' request).
9905         * src/roff/troff/env.h (environment::possibly_break_line,
9906         environment::hyphenate_line): Introducing `start_here' parameter.
9907         * src/roff/troff/env.cc (environment::space_newline,
9908         environment::space): Use it.
9909         (environment::possibly_break_line, environment::hyphenate_line):
9910         Implement it.
9911         * src/roff/troff/input.cc (process_input_stack): Use it.
9912         * src/roff/troff/node.h (unbreakable_space_node, hmotion_node,
9913         space_char_hmotion_node, overstrike_node): Add
9914         `get_hyphenation_type()' method.
9915         * src/roff/troff/node.cc (break_char_node::asciify): Don't asciify
9916         if `unformat_only' is active.
9918 2001-01-30  Werner LEMBERG  <wl@gnu.org>
9920         Implemented new read-only number register `.linetabs' which
9921         returns 1 if in line-tabs mode, 0 otherwise.
9923         * src/roff/troff/env.h (environment): Add get_line_tabs() member.
9924         * src/roff/troff/env.cc (get_line_tabs): New function.
9925         (init_env_requests): Use it.
9926         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9928         * VERSION, REVISION: Changing to 1.17.0.
9930 2001-01-28  Werner LEMBERG  <wl@gnu.org>
9932         Fixed a bug which prevented hyphenation of words which are finished
9933         with `\)'.
9935         * src/roff/troff/token.h (token): Add enum type
9936         `TOKEN_TRANSPARENT_DUMMY' and method `transparent_dummy()'.
9937         * src/roff/troff/input.cc (token::next, token::description,
9938         get_line_arg, token::add_to_node_list, token::process): Use it.
9940 2001-01-27  Werner LEMBERG  <wl@gnu.org>
9942         * src/roff/troff/div.h (diversion): Add `saved_prev_line_interrupted'.
9943         * src/roff/troff/div.cc (do_divert): Use it.
9945         * src/roff/troff/input.cc (asciify): Add ESCAPE_RIGHT_PARENTHESIS.
9947 2001-01-25  Werner LEMBERG  <wl@gnu.org>
9949         Adding the `linetabs' request.  If set, tab distances are not
9950         computed relative to the input line but relative to the output line.
9952         * src/roff/troff/env.h (environment): New member `line_tabs'.
9953         * src/roff/troff/env.cc (line_tabs_request): Implement request.
9954         (environment::environment, environment::copy): Updated.
9955         (environment::distance_to_next_tab): Use `line_tabs'.
9956         (init_env_requests): Register request.
9957         * src/roff/troff/troff.man, man/groff.man, NEWS: Document it.  Other
9958         fixes.
9960 2001-01-24  Werner LEMBERG  <wl@gnu.org>
9962         Introducing a new read-only register `.int' which is set to a
9963         positive value if the last output line is interrupted (i.e., if it
9964         contains `\c').
9966         * src/roff/troff/env.cc (init_env_requests): Add it.
9967         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
9969 2001-01-23  Gaius Mulley  <gaius@glam.ac.uk>
9971         * tmac/mwww.tmac: Call `www.tmac', not `arkup.tmac'.
9972         * src/preproc/html/pre-html.cc (findPrefix): New function which
9973         generates the troff executable name via the system prefix.
9974         * src/preproc/eqn/main.cc: Modified warning message.
9976 2001-01-23  Werner LEMBERG  <wl@gnu.org>
9978         troff's `box' and `boxa' requests didn't preserve temporary
9979         indentation.
9981         * src/roff/troff/div.h (diversion): Add `saved_saved_indent' and
9982         `saved_target_text_length' members.
9983         * src/roff/troff/div.cc (do_divert): Use them.
9985         Tabs (but not yet leaders and fields) are now handled correctly by
9986         `asciify' request.
9988         * node.h (hmotion_node): Add field `was_tab'.
9989         * env.cc (environment::make_tab_node): Set it.
9990         * node.cc (hmotion_node::copy, hmotion_node::asciify): Use it.
9992         Added new request `unformat' which will, contrary to `asciify',
9993         preserve font information after unformatting (i.e., only nodes
9994         dealing with horizontal space are converted back to input
9995         characters).
9997         * input.cc (asciify_macro): Renamed to ...
9998         (do_asciify_macro): this, having a new parameter `unformat_only'.
9999         (asciify_macro, unformat_macro): New; using do_asciify_macro.
10000         (init_input_requests): Added `unformat'.
10001         * node.cc (*_node::asciify), asciify_reverse_node_list: Added
10002         parameter to control asciification process.
10003         * node.h (*_node::asciify): Ditto.
10004         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10006 2001-01-20  Werner LEMBERG  <wl@gnu.org>
10008         * doc/groff.texinfo: Minor improvement of `.in' documentation.
10010 2001-01-18  Werner LEMBERG  <wl@gnu.org>
10012         * tmac/ps.tmac: Remove call of psold.tmac.
10013         * tmac/psold.tmac: Comment updated.
10014         * tmac/psnew.tmac: Removed since no longer needed.
10015         * tmac/Makefile.sub, NEWS, src/devices/grops/grops.man: Updated.
10017         * font/devutf8/R.proto: Adding `shc' glyph.
10018         * font/devutf8/NOTES: Updated.
10020         * test-groff: Updated.
10022 2001-01-15  Gaius Mulley  <gaius@glam.ac.uk>
10024         First cut of the new html device driver.  Changes to pre-html and
10025         the new grohtml are too numerous to be documented here.
10027         Stuff related to `html' has been renamed to `html-old' and `html2'
10028         stuff has been renamed to `html' (including directories).  The new
10029         html device driver is therefore invoked as `-Thtml'.
10031         Added new `\O' escape to suppress output (needed by html driver).
10033         Added functions and code to pass info about input-level commands
10034         (`.in', `.fl', etc.) to html driver.
10036         Three new functions (.html-begin, .html-end, and .html-image) for
10037         better html handling: `html-begin' will execute the remaining line
10038         if at the outermost nesting level, increasing an internal counter.
10039         `html-end' does the same but decreases the internal counter.
10040         `html_image' puts its arguments into a special node (suppress_node)
10041         to define an image region.
10043         The `output' request has been removed.
10045         * tmac/html-tags.tmac: Removed.
10046         * tmac/arkup.tmac: Updated and renamed to ...
10047         * tmac/www.tmac: New file.
10048         * tmac/markup.tmac Updated and renamed to ...
10049         * tmac/mwww.tmac: New file.
10050         * tmac/Makefile.sub: Updated.
10051         * tmac/an-old.tmac: Updated.
10052         * tmac/eqnrc: Updated.
10053         * tmac/groff_man.man
10054         * tmac/groff_markup.man: Updated and renamed to ...
10055         * tmac/groff_mwww.man: New file.
10056         * tmac/groff_tmac.man: Updated.
10057         * tmac/html-old.tmac: Updated and Renamed from html.tmac.
10058         * tmac/html.tmac: Updated and renamed from html2.tmac.
10059         * tmac/pspic.tmac: Updated html support.
10060         * tmac/s.tmac: Added html output support.
10061         * tmac/troffrc, tmac/troffrc-end: Updated.
10063         * Makefile.in, doc/Makefile: Updated.
10064         * doc/groff.texinfo: Added info about new `\O' escape.
10065         * doc/homepage.ms: Use `MAILTO' macro.
10067         * font/devhtml/DESC.proto: Add `C' font.
10068         * font/devhtml/Makefile.sub: Updated.
10069         * font/devhtml/R.proto: Minor fixes.
10070         * font/devhtml-old/Makefile.sub: Updated.
10072         * src/devices/grohtml-old/Makefile.sub: Updated.
10074         * src/libs/libdriver/printer.cc (printer::get_font_from_index): New
10075         method.
10076         * src/libs/libgroff/htmlindicate.cc (html_begin_suppress,
10077         graphic_start): Add `inline' parameter.  Update.
10078         (html_end_suppress, graphic_end): Update.
10080         * src/include/html-strings.h: New file.
10081         * src/include/htmlindicate.h: Comments updated.
10082         * src/include/printer.h: Updated.
10084         * src/preproc/eqn/main.cc (do_file, main): Updated.
10085         * src/preproc/pic/troff.cc (troff_output::start_picture,
10086         troff_output::finish_picture): Updated.
10087         * src/preproc/tbl/main.cc (process_input_file): Updated.
10089         * src/roff/groff/groff.cc (main): Updated.
10090         Pass device arguments to predrivers also.
10091         Use `ps' device for `eqn' preprocessor if `-Thtml' is given.
10092         * src/roff/troff/env.h (environment): Updated.
10093         New elements `need_eol' and `ignore_next_eol' (for html output).
10094         * src/roff/troff/env.cc (environment::environment): Add initializers
10095         for `need_eol' and `ignore_next_eol'.
10096         (environment::add_html_tag_eol, environment::add_html_tag_tabs): New
10097         functions.
10098         (point_size, fill, no_fill, center, right_justify, line_length,
10099         indent, temporary_indent, break_request, handle_tab): Use
10100         `add_html_tag()'.
10101         (set_tabs): Use `add_html_tag_tabs()'.
10102         (environment::add_html_tag): Updated.
10103         (environment::do_break): Updated.
10104         * src/roff/troff/div.cc (space_request, flush_output): Use
10105         `environment::add_html_tag()'.
10106         * src/roff/troff/input.cc: Updated.
10107         New variable `html_level' to indicate nested `html-begin' requests.
10108         (file_iterator::fill): Use `environment::add_html_tag_eol()'.
10109         (non_interpreted_char_node, token_node, non_interpreted_node): Add
10110         `force_tprint()' method.
10111         (token::next): Handle `\O'.
10112         (do_suppress): Implement it.
10113         (html_begin, html_end, html_image): New functions.
10114         (init_output_requests): Renamed to ...
10115         (init_html_requests): this.
10116         (main): Use it.
10117         (macro::append_str, macro::append_unsigned, macro::append_int): New
10118         methods.
10119         New variable `output_low_mark_miny' to limit minimal value of y.
10120         (reset_output_registers): Use it.
10121         (output_request): Removed.
10122         (get_output_registers): New function.
10123         * src/roff/troff/node.h (node): Make `force_tprint()' virtual.
10124         (*_node): Added `force_tprint()' if necessary.
10125         (special_node): New elements `tf' and `get_tfont()'.
10126         (suppress_node): New class.
10127         * src/roff/troff/node.cc:
10128         New global variables `image_no' and `suppress_start_page'.
10129         (real_output_file): New method `is_on()'.
10130         (troff_output_file): New method `start_special(tfont)'.
10131         (troff_output_file::really_print_line): Use `tprint' conditionally.
10132         (real_output_file::print_line): Updated.
10133         (real_output_file::on): Updated.
10134         (*_node): Added `force_tprint()'.
10135         (special_node::special_node): Initializer updated.
10136         (special_node::same, special_node::copy, special_node::tprint_start):
10137         Updated.
10138         (get_reg_int, get_reg_str): New functions.
10139         (suppress_node::*): New methods.
10140         New global variables last_position, last_image_filename;
10141         (min): New inline function.
10142         * src/roff/troff/reg.h, src/roff/troff/request.h,
10143         src/roff/troff/troff.h: Updated.
10145 2001-01-13  Werner LEMBERG  <wl@gnu.org>
10147         * NEWS, src/roff/troff/troff.man, doc/groff.texinfo: Fix
10148         documentation of `asciify' request.
10150 2001-01-12  Werner LEMBERG  <wl@gnu.org>
10152         * src/roff/troff/input.cc: Move definition of special characters
10153         like `ESCAPE_TILDE' to ...
10154         * src/roff/troff/input.h: New file.
10155         * src/roff/troff/Makefile.sub (HDRS): Add it.
10157         Extending the .asciify request to `unformat' space characters also.
10159         * src/roff/troff/node.h (word_space_node): Add `num_spaces' element
10160         to count input space characters.
10161         Update constructors to take care of it.
10162         * src/roff/troff/node.cc (space_char_hmotion_node::asciify): Use
10163         `ESCAPE_SPACE' instead of normal space.
10164         (word_space_node::asciify): New method.
10165         (unbreakable_space_node::asciify): New method.
10166         (word_space_node::merge_space): New method.
10167         * src/roff/troff/env.cc (environment::space_newline,
10168         environment::space): Add code to initialize `num_spaces' (using the
10169         constructor of `word_space_node').
10170         * NEWS, src/roff/troff/troff.man, man/groff.man, doc/groff.texinfo:
10171         Document it.
10173 2001-01-09  Werner LEMBERG  <wl@gnu.org>
10175         * man/groff_char.man: Use table header traps only conditionally.
10177 2001-01-09  Bjarni Ingi Gíslason  <bjarniig@hi.is>
10179         * man/groff_char.man: Add `ý' and `Ý' to the `acute' group.
10181 2001-01-08  Werner LEMBERG  <wl@gnu.org>
10183         Introducing the `box' and `boxa' requests which are similar to
10184         `di' resp. `da' but omitting a partially filled line (which is
10185         restored after ending the diversion).
10187         * src/roff/troff/div.h (diversion): Add elements to save partially
10188         filled line.
10189         * src/roff/troff/div.cc (do_divert): Add parameter `boxing' to save
10190         partially filled line.
10191         (divert, divert_append): Updated.
10192         (box, box_append): New functions.
10193         (init_div_requests): Use them.
10194         * src/roff/troff/env.h (environment): do_divert() is now a friend.
10195         * NEWS, src/roff/troff/troff.man, man/groff.man: Document it.
10197         * doc/groff.texinfo: Fix documentation of `lf' request.
10199 2000-12-25  Werner LEMBERG  <wl@gnu.org>
10201         * src/roff/troff/troff.man, NEWS: Document `writem' request.
10203 2000-12-21  Werner LEMBERG  <wl@gnu.org>
10205         Ignore `ss' request if in compatibility mode.
10207         * src/roff/troff/input.cc: Make `compatible_flag' non-static.
10208         * src/roff/troff/env.h: Added extern `compatible_flag' declaration.
10209         * src/roff/troff/env.cc (space_size): Use it.
10211         * doc/groff.texinfo, src/roff/troff/troff.man: Fix documentation of
10212         `ss' request in nroff mode.
10214         * tmac/an-old.tmac: Fixed some serious bugs introduced with latest
10215         changes.
10217 2000-12-15  Ruslan Ermilov  <ru@FreeBSD.org>
10219         * tmac/troffrc, tmac/troffrc-end: Convert tmac.* to *.tmac.
10221 2000-12-13  Werner LEMBERG  <wl@gnu.org>
10223         * src/preproc/eqn/Makefile.sub (MAN1): Added neqn.man.
10224         * src/preproc/eqn/neqn.man: Small fixes and additions.
10226 2000-12-13  Ruslan Ermilov  <ru@FreeBSD.org>
10228         * src/utils/addftinfo/addftinfo.man, src/devices/grops/grops.man:
10229         Fixing typo.
10231         * src/preproc/eqn/neqn.man: New file.
10233         * src/preproc/tbl/table.cc (table::print): Fix `indent cannot be
10234         negative' warning.
10236         * tmac/e.tmac: Add `T&' macro.
10237         Fix `indent cannot be negative' warning.
10238         * tmac/s.tmac: Fix `indent cannot be negative' warning.
10240 2000-12-07  Werner LEMBERG  <wl@gnu.org>
10242         * src/include/lib.h: Replaced __ALPHA with __alpha symbol.
10244 2000-12-06  Werner LEMBERG  <wl@gnu.org>
10246         * PROBLEMS: Added info about adding -lPW on HP-UX to satisfy the
10247         `alloca' symbol .
10249         * MORE.STUFF: Added info about deroff for djgpp.
10251         * tmac/an-old.tmac, tmac/groff_man.man, doc/groff.texinfo, NEWS: Fix
10252         documentation of -rcR switch.
10254 2000-12-03  Werner LEMBERG  <wl@gnu.org>
10256         * tmac/an-old.tmac: Implementing the -rcR switch (similar to mdoc);
10257         if -rcR=1 (which is now the default in nroff mode), a single, very
10258         long page is created instead of multiple pages: All `ne' and `wh'
10259         requests are put into conditionals; a new macro `an-end' is added to
10260         be called with `em'.
10262         Some other minor cleanups.
10264         * NEWS, tmac/groff_man.man, doc/groff.texinfo: Updated.
10266 2000-12-02  Werner LEMBERG  <wl@gnu.org>
10268         Fixing a bug which prevented hyphenation in words followed
10269         immediately by a TOKEN_NODE (e.g. `\ ', `\~', etc.).
10271         * src/roff/troff/input.cc (process_input_stack <token::TOKEN_NODE>):
10272         Adding possibly_break_line().
10273         * src/roff/troff/env.h (environment): Make possibly_break_line()
10274         public.
10276         Make `\~' usable in .tr request.
10278         * src/roff/troff/token.h (token_type): Add TOKEN_STRETCHABLE_SPACE.
10279         (token): Add stretchable_space().
10280         * src/roff/troff/input.cc (token::next, token::delimiter,
10281         token::description, process_input_stack, do_translate,
10282         add_to_node_list, token::process): Use it.
10283         * src/roff/troff/node.h (node): Add fourth parameter to add_char()
10284         for adjusting the space.
10285         * src/roff/troff/node.cc (node::add_char): Implement it.  Add code
10286         for stretchable space.
10287         * src/roff/troff/input.cc (token::add_to_node_list): Use it.
10288         (make_node): Add code for stretchable space.
10289         * src/roff/troff/env.cc (environment::add_char): Use it.
10290         * src/roff/troff/input.cc: Add ESCAPE_TILDE special character.
10291         (get_copy, token::next, transparent_translate, asciify): Use it.
10293         * NEWS, src/roff/troff/troff.man, src/roff/troff/TODO,
10294         doc/groff.texinfo: Updated.
10295         * man/groff.man: Small reorderings.
10297 2000-11-23  Werner LEMBERG  <wl@gnu.org>
10299         * NEWS: Fixes.
10300         * src/preproc/eqn/main.cc (main): Use `config_macro_path' for -M
10301         option.
10302         * src/roff/troff/input.cc (main): Add `config_macro_path' and
10303         `safer_macro_path' to -M option.
10304         * src/roff/troff/troff.man: Fixes.
10306 2000-11-22  Werner LEMBERG  <wl@gnu.org>
10308         Use safer path (except for config files) if -U isn't specified.  Add
10309         a special macro path (without home and current directory) for config
10310         files.  Add home directory to unsafe path for consistency.  Don't
10311         include the home directory in the font path.
10313         * src/libs/libgroff/macropath.cc: Add `config_macro_path', change
10314         `macro_path'.
10315         * src/include/macropath.h: Add `config_macrp_path'.
10316         * src/libs/libgroff/fontfile.cc: Fix font path.
10317         * src/roff/troff/input.cc (process_startup_file): Use
10318         `config_macro_path'.
10319         (main): Select unsafe path if -U is given.
10321         * src/preproc/eqn/main.cc (main): Fixing search path for
10322         configuration file.
10323         * src/preproc/eqn/eqn.man: Updated.
10325         * src/roff/troff/troff.man, man/roff.man, tmac/groff_tmac.man:
10326         Updated.
10328         * src/preproc/grn/grn.man, src/devices/grodvi/grodvi.man,
10329         src/devices/grohtml/grohtml.man, src/devices/grolbp/grplbp.man,
10330         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10331         src/devices/grotty/grotty.man: Updated.
10333         * Makefile.in: Fix comments.
10335 2000-11-17  Werner LEMBERG  <wl@gnu.org>
10337         * tmac/safer.tmac: Empty file added (again) for compatibility
10338         reasons.
10339         * tmac/Makefile.sub: Updated.
10341 2000-11-16  Werner LEMBERG  <wl@gnu.org>
10343         * src/devices/grodvi/dvi.cc (main),
10344         src/devices/grohtml2/post-html.cc (main),
10345         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10346         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10347         (main), src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10348         (main), src/preproc/html2/pre-html.cc (main),
10349         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10350         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10351         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10352         (main), src/utils/hpftodit/hpftodit.cc (main),
10353         src/utils/indxbib/indxbib.cc (main), src/utils/lkbib/lkbib.cc
10354         (main), src/utils/lookbib/lookbib.cc (main),
10355         src/utils/pfbtops/pfbtops.c (main), src/utils/tfmtodit/tfmtodit.cc
10356         (main): Use stdout for -v.
10357         * src/roff/groff/groff.cc (run_commands),
10358         src/roff/groff/pipeline.c (run_pipeline): New parameter `no_pipe'
10359         to make direct printing to stdout possible.
10360         * src/roff/groff/pipeline.h: Updated.
10362         * src/utils/afmtodit/afmtodit.pl: Add -v switch.
10363         * src/utils/afmtodit/Makefile.sub (afmtodit): Use @VERSION@.
10364         * src/utils/afmtodit/afmtodit.man: Updated.
10366         * src/utils/addftinfo/addftinfo.cc (main): Add -v switch.
10367         (version): New function.
10368         (usage): Updated.
10369         * src/utils/addftinfo/addftinfo.man: Updated.
10371         * src/devices/*/*, src/preproc/*/*, src/roff/*/*, src/utils/*/*:
10372         Fixing copyright dates.
10374         * src/preproc/eqn/neqn.sh: Adding GROFF_BIN_PATH to path instead of
10375         replacing it.
10377         * src/devices/grolbp/lbp.cc (main): Use Version_string instead of
10378         version_string.
10380         * src/roff/nroff/Makefile.sub (nroff): Fix use of @VERSION@.
10382 2000-11-15  Werner LEMBERG  <wl@gnu.org>
10384         In all programs, make -v return immediately with exit status 0 to
10385         be compliant with the GNU standard.
10387         * src/devices/grodvi/dvi.cc (main),
10388         src/devices/grohtml2/post-html.cc (main),
10389         src/devices/grolbp/lbp.cc (main), src/devices/grolj4/lj4.cc
10390         (main), src/devices/grops/ps.cc (main), src/devices/grotty/tty.cc
10391         (main) src/preproc/eqn/main.cc (main), src/preproc/grn/main.cc
10392         (main), src/preproc/html2/pre-html.cc (main),
10393         src/preproc/pic/main.cc (main), src/preproc/refer/refer.cc (main),
10394         src/preproc/soelim/soelim.cc (main), src/preproc/tbl/main.cc
10395         (main), src/roff/groff/groff.cc (main), src/roff/troff/input.cc
10396         (main): Implement it.
10397         * NEWS: Updated.
10399         * src/roff/groff/groff.cc (main): Add copyright notice.  Add refer
10400         and postprocessors to the -v option.
10402         * src/roff/grog/grog.pl: Implement -v.
10403         * src/roff/grog/Makefile.sub (grog): Use @VERSION@.
10404         * src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10406         * src/roff/nroff/nroff.sh: Implement -v.
10407         * src/roff/nroff/Makefile.sub (nroff): Use @VERSION@.
10408         * src/roff/nroff/nroff.man: Updated.
10409         
10410         * src/preproc/eqn/main.cc (main): Fix comment typo.
10412         * MORE.STUFF: Added info about djgpp port of grap.
10414 2000-11-14  Werner LEMBERG  <wl@gnu.org>
10416         * src/roff/grog/grog.{pl,sh}: Implemented -C switch for compatibility
10417         mode (or rather, implemented non-compatibility mode).
10418         * NEWS, src/roff/grog/grog.man, doc/groff.texinfo: Updated.
10420         * src/roff/groff/groff.cc (main): Add BIN_PATH to PATH instead of
10421         replacing it -- we don't find gxditview otherwise.
10422         * NEWS, src/roff/groff/groff.man, doc/groff.texinfo: Updated.
10424         * src/preproc/pic/depend: Removed.  Unnecessary.
10426         Implemented dummy keyword `solid' in pic for compatibility with
10427         AT&T pic.
10429         * lex.cc (lookup_keyword): Added `solid'.
10430         * pic.y: Added SOLID with dummy rule.
10431         * pic.cc, pic_tab.h: Regenerated.
10432         * doc/pic.ms: Updated.
10434 2000-11-13  Werner LEMBERG  <wl@gnu.org>
10436         For security reasons, don't use the current directory but the home
10437         directory while searching and scanning troffrc and troffrc-end.
10438         Similarly, replace the current directory with the home directory
10439         in the font path.
10441         * Makefile.in (fontpath, tmacpath): Remove current directory.
10443         * src/libs/libgroff/searchpath.cc (search_path::search_path): Add
10444         two parameters `add_home' and `add_current'.
10445         (search_path::~search_path, search_path::command_line_dir,
10446         search_path::open_file): Remove tests for `dirs' being zero.
10447         * src/include/searchpath.h: Adjust.
10448         * src/libs/libgroff/macropath.cc, src/include/macropath.h: Add
10449         `safer_macro_path'.
10450         * src/libs/libgroff/fontfile.cc: Adjust `font_path'.
10452         * src/roff/troff/troff.h: Add `searchpath.h' and `mac_path'.
10453         * src/roff/troff/input.cc: Use `mac_path', initialized with
10454         `macro_path'.
10455         (process_startup_file): Set `mac_path' to `safer_macro_path'.
10456         * src/roff/troff/env.cc: Use `mac_path'.
10458         * src/preproc/eqn/main.cc (main): Use `safer_macro_path'.
10460         * NEWS, man/roff.man, src/roff/troff/troff.man,
10461         src/roff/groff/groff.man, tmac/groff_tmac.man, arch/djgpp/README:
10462         Updated.
10464 2000-11-12  Werner LEMBERG  <wl@gnu.org>
10466         * src/include/lib.h: Don't include groff-getopt.h for OSF/1.
10468         * aclocal.m4 (GROFF_SYS_ERRLIST): Do test in C, not in C++.
10469         * configure.in: Fix typo in comment.
10470         * configure: Regenerated.
10472         * src/libs/libgroff/*, src/include/*, src/roff/troff/*: Fixing
10473         copyright dates.
10475 2000-11-08  Werner LEMBERG  <wl@gnu.org>
10477         Add system tmac directory (/usr/local/lib/groff/site-tmac).
10479         * Makefile.in: Add $(libdir), $(libprogramdir), and $(systemtmacdir).
10480         (uninstall_dirs): Add $(libdir), $(libprogramdir), and
10481         $(systemtmacdir).
10482         Use @libdir@.
10483         * Makefile.comm (.man.n): Add @SYSTEMMACRODIR@.
10484         * tmac/Makefile.sub (install_data): Create
10485         $(systemtmacdir) and $(localtmacdir).
10486         (uninstall_sub): Use $(systemtmacdir) for wrapper macros.
10487         * man/roff.man, src/roff/troff/troff.man, src/roff/groff/groff.man,
10488         NEWS, doc/groff.texinfo: Updated and minor fixes.
10490         * Makefile.comm, Makefile.in: Added tmac_{s,an}_prefix stuff again.
10491         * tmac/Makefile.sub: Added `wrap' stuff again, but installing into
10492         $(systemtmacdir) since the wrapper files are platform-dependent.
10494 2000-11-01  Werner LEMBERG  <wl@gnu.org>
10496         * doc/groff.texinfo: Fix typo.
10498 2000-10-26  Werner LEMBERG  <wl@gnu.org>
10500         Convert macros `tmac.XXX' to `XXX.tmac'.  Special cases:
10501           tmac.doc.old -> doc-old.tmac
10502           tmac.an.old  -> an-old.tmac
10504         * tmac/tmac.*: Moved to ...
10505         * tmac/*.tmac: this.
10506         * tmac/man.local: Fix comment.
10507         * tmac/groff_man.man, tmac/groff_markup.man, tmac/groff_mdoc.man,
10508         tmac/groff_me.man, tmac/groff_ms.man, tmac/groff_tmac.man: Updated. 
10509         Added some `FILES' sections.  More use of @...@ directives.  Other
10510         minor updates.
10511         * arch/djgpp/README, font/devutf8/NOTES: Updated.
10512         * doc/homepage.ms, doc/groff.texinfo: Updated.
10513         * man/groff.man, man/roff.man: Updated.
10514         * src/devices/grodvi/grodvi.man, src/devices/grolbp/grolbp.man,
10515         src/devices/grolj4/grolj4.man, src/devices/grops/grops.man,
10516         src/devices/grotty/grotty.man: Updated.
10517         * src/preproc/pic/pic.man: Updated.
10518         * src/roff/grog/grog.pl, src/roff/grog/grog.sh: Use -mdoc-old
10519         instead of -mdoc.old.
10520         * src/roff/grog/grog.man: Document -mdoc and -mdoc-old.
10521         * src/roff/nroff/nroff.man: Updated.
10522         * NEWS: Updated.
10524         * tmac/fixmacros.sed, tmac/strip.sed: Add explanatory comment.
10526         * tmac/mm.diff: Removed -- it has no use now since the mm package
10527         is part of groff.
10529         * tmac/*: Removed trailing spaces.
10531         * arch/djgpp/t-groff.bat: Fix GROFF_TMAC_PATH (hyphen.us is now in
10532         the tmac subdirectory also).
10534         * Makefile.comm, Makefile.in: Remove tmac_{s,an}_prefix stuff.
10535         * tmac/Makefile.sub: Adapted to new macro names; removed `wrap'
10536         stuff since it is no longer needed.
10538         * README, PROBLEMS: Updated.
10540 2000-10-25  Werner LEMBERG  <wl@gnu.org>
10542         Invert current behaviour: Search first FOOBAR.tmac, then
10543         tmac.FOOBAR.
10545         * src/roff/troff/input.cc: Introduce MACRO_POSTFIX.
10546         (open_mac_file, macro_source): Implement it.
10547         * src/roff/troff/troff.man, tmac/groff_tmac.man, man/roff.man,
10548         doc/groff.texinfo, NEWS: Document it.
10550         * src/roff/nroff/nroff.man, src/roff/groff/groff.man, man/groff.man:
10551         Small documentation improvements.
10553         * test-groff: Fix GROFF_TMAC_PATH (hyphen.us is now in the tmac
10554         subdirectory also).
10556         * font/devps/Makefile.sub: Fix rules for dingbats.*map.
10558 2000-10-24  Werner LEMBERG  <wl@gnu.org>
10560         Add local tmac directory (groff/site-tmac).
10562         * Makefile.in: Add $(localtmacdir).
10563         (uninstall_dirs): Add $(localtmacdir).
10564         * Makefile.comm (.man.n): Add @LOCALMACRODIR@.
10565         * tmac/Makefile.sub (install_data, uninstall_sub): Handle man.local
10566         in $(localtmacdir).  Create $(localtmacdir).
10567         * man/roff.man, src/roff/troff/troff.man, NEWS, doc/groff.texinfo:
10568         Updated and minor fixes.
10570         Rename font/devps/generate/dingbats[r]map to dingbats.[r]map.
10572         * font/devps/generate/Makefile.sub, arch/djgpp/README: Adjust.
10574 2000-10-23  Werner LEMBERG  <wl@gnu.org>
10576         Move hyphen.us to tmac directory.
10578         * src/roff/troff/hyphen.us: Removed.
10579         * src/tmac/hyphen.us: Added.
10580         * src/roff/troff/Makefile.sub, tmac/Makefile.sub: Updated.
10582         Change installation structure for data files from .../groff/... to
10583         .../groff/<version><revision>/... to be conform with other GNU
10584         programs.
10586         * Makefile.in, Makefile.comm, src/utils/indxbib/Makefile.sub,
10587         doc/Makefile: Implement it.
10588         * aclocal.m4 (GROFF_PAGE): Add test for new directory structure.
10589         * configure: Updated.
10590         * arch/djgpp/README, font/devutf8/NOTES: Use it.
10591         * NEWS: Document it.
10592         * man/roff.man, tmac/groff_tmac.man: Use @FONTPATH@, @FONTDIR@, and
10593         @MACRODIR@ instead of hard-coded directories.
10595 2000-10-22  Werner LEMBERG  <wl@gnu.org>
10597         Implement $GROFF_BIN_PATH environment variable (which defaults to
10598         $bindir) used for child programs of groff and similar wrappers.
10600         * gendefs.sh: Improve documentation.
10601         * Makefile.comm (,man.n), src/include/Makefile.sub (defs.h),
10602         src/preproc/eqn/Makefile.sub (neqn),
10603         src/roff/nroff/Makefile.sub (nroff): Add $(bindir).
10604         * src/preproc/eqn/neqn.sh, src/roff/nroff/nroff.sh: Implement
10605         $GROFF_BIN_PATH.
10606         * src/roff/groff/groff.cc (main): Implement $GROFF_BIN_PATH and
10607         $GROFF_PATH__ (the latter for communication with troff).
10608         * src/roff/troff/input.cc (main): Use $GROFF_PATH__ for $PATH if
10609         set.
10610         * NEWS, src/roff/nroff/nroff.man, src/roff/groff/groff.man,
10611         doc/groff.texinfo: Document it.
10613         * doc/groff.texinfo: Improve documentation of troff's -a option.
10615 2000-10-17  Gaius Mulley  <gaius@glam.ac.uk>
10617         * src/roff/troff/node.cc: Fixed calculation of opminx and fixed
10618         non-intrusive eol marker.
10619         (troff_output_file::determine_line_limits): New function.
10620         (troff_output_file::draw): Use it.
10621         * src/roff/troff/env.cc (environment::add_html_tag): Use output() +
10622         output_pending_lines() instead of output_line().
10623         * src/preproc/eqn/main.cc (do_file): Fix graphic_end().
10624         * src/preproc/html2/pre-html.cc (char_buffer::write_file_troff,
10625         createImage): Small fixes.
10626         
10627 2000-10-14  Werner LEMBERG  <wl@gnu.org>
10629         Replace tmac.safer with a real secure solution.
10631         * src/roff/troff/input.cc (open_request, opena_request, pipe_source,
10632         system_request, pipe_output): Disable requests if in safer mode.
10633         * src/roff/groff/groff.cc (main): Remove reference to tmac.safer.
10634         * tmac/tmac.safer, tmac/groff_msafer.man: Removed.
10635         * tmac/Makefile.sub, NEWS, man/roff.man, tmac/groff_tmac.man,
10636         doc/groff.texinfo, src/roff/groff/groff.man,
10637         src/roff/troff/troff.man, arch/djgpp/README: Updated.
10639         * src/devices/grops/ps.cc (main), src/devices/grops/psrm.cc
10640         (resource_manager::output_prolog): Replace setenv() with putenv().
10642 2000-10-09  Werner LEMBERG  <wl@gnu.org>
10644         * src/libs/libbib/map.c, src/libs/libgroff/getcwd.c,
10645         src/libs/libgroff/strtol.c, src/preproc/html2/image.cc,
10646         src/preproc/html2/pre-html.cc, src/preproc/html2/pushbackbuffer.cc,
10647         src/roff/groff/pipeline.c: Removing `#ifndef errno' to avoid
10648         compilation errors with some compilers.  It seems that this code
10649         is no longer necessary -- if yes, it is easy to add some #ifdef's
10650         for that particular old-fashioned compiler.
10652         * MORE.STUFF: Added info about Meta-tbl.
10654         * doc/groff.texinfo: Added more info about `.if "..."..."'.
10656 2000-10-07  Werner LEMBERG  <wl@gnu.org>
10658         Adding a new escape sequence \B'...': If the string between
10659         the delimiters is a valid numeric expression, return the character
10660         `1', and `0' otherwise.  This is an analogon to \A.
10662         * src/roff/troff/input.cc (do_expr_test): Implement it.
10663         (token::next): Use it.
10664         * src/roff/troff/troff.man, NEWS, man/groff.man: Document it.
10666         * tmac/tmac.trace: Made independent from escape character.
10668 2000-10-06  Werner LEMBERG  <wl@gnu.org>
10670         Adding a new request .dei: define indirect.  The first and second
10671         parameter of .dei are taken from string registers instead directly;
10672         this very special request is needed to make tmac.trace independent
10673         from the escape character (which might even be disabled).
10675         * src/roff/troff/input.cc (do_define_macro): Implement it.
10676         (define_macro_indirect): New function.
10677         (init_input_requests): Use it.
10679         Adding two requests .ecs and .ecr: Save and restore the escape
10680         character.  These two requests are needed to make tmac.trace
10681         independent from the escape character (which might even be
10682         disabled).
10684         * src/roff/troff/input.cc (save_escape_char, restore_escape_char):
10685         Implement it.
10686         (init_input_requests): Use it.
10688         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10690 2000-09-22  Ricardo Soares Guimarães  <ricardo@conectiva.com.br>
10692         Adding a new option -P and new environment variable GROPS_PROLOGUE
10693         to grops, selecting a different prologue file (minor modifications
10694         by WL).
10696         * src/devices/grops/psrm.cc (resource_manager::output_prolog),
10697         src/devices/grops/ps.cc (main): Implement it.
10698         * src/devices/grops/grops.man, NEWS: Document it.
10700 2000-09-22  Werner LEMBERG  <wl@gnu.org>
10702         * INSTALL: Add info about selecting paper format.
10704 2000-09-21  Werner LEMBERG  <wl@gnu.org>
10706         * src/roff/troff/input.cc (main): Fixing compiler warning.
10707         * src/include/{driver.h, lib.h}: Move inclusion of string.h and
10708         strings.h from the former to the latter.
10709         * src/devices/grolbp/lpb.cc, src/include/lib.h: Move strncasecmp()
10710         stuff from the former to the latter.
10712 2000-09-11  Werner LEMBERG  <wl@gnu.org>
10714         Implementing two new requests .tm1 and .tmc: The former is similar
10715         to .tm but can output leading spaces; its syntax is similar to
10716         defining a string, i.e., a `"' can be used to mark the beginning of
10717         the string to be written to stderr: `.tm1 " test'.  The latter is
10718         similar to .tm1 but doesn't write out a final newline character.
10720         * src/roff/troff/input.cc (terminal1, terminal_continue,
10721         do_terminal): New functions.
10722         (init_input_requests): Use them.
10723         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10725 2000-09-09  Werner LEMBERG  <wl@gnu.org>
10727         * tmac/groff_mdoc.samples.man: Small fixes.
10729 2000-09-08  Werner LEMBERG  <wl@gnu.org>
10731         * tmac/groff_mdoc.man: Fixing typo.
10733 2000-09-02  Werner LEMBERG  <wl@gnu.org>
10735         Implementing a .nop request which does nothing.
10737         * src/roff/troff/input.cc (nop_request): New function.
10738         (init_input_requests): Use it.
10739         * src/roff/troff/troff.man, NEWS, man/groff.man: Updated.
10741 2000-09-01  Werner LEMBERG  <wl@gnu.org>
10743         * doc/groff.texinfo: Added some comments.
10745 2000-08-30  Werner LEMBERG  <wl@gnu.org>
10747         * src/roff/troff/TODO: Updated.
10749 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10751         * doc/groff.texinfo: Fix comment how to compile the DVI file.
10753 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10755         * font/devps/generate/Makefile (SHELL): Define explicitly to
10756         "/bin/sh", for non-Unix platforms.
10757         (extraclean): Use a more portable "" quoting instead of a
10758         backslash (which doesn't work on DOS/Windows).
10759         
10760         * font/devlj4/generate/Makefile (extraclean): Ditto.
10762         * font/devdvi/generate/Makefile (extraclean): Ditto.
10764 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10766         * NEWS, doc/groff.texinfo, tmac/groff_tmac.man, man/roff.man,
10767         src/roff/troff/troff.man: Document Eli's latest changes.
10769 2000-08-25  Eli Zaretskii  <eliz@is.elta.co.il>
10771         * src/roff/troff/input.cc (open_mac_file, macro_source): Support
10772         macro file names of the form NAME.tmac as well as tmac.NAME.
10774 2000-08-25  Werner LEMBERG  <wl@gnu.org>
10776         * src/include/posix.h: Remove definition of FILENAME_MAX.
10778         * src/preproc/html2/pre-html.h, pre-html.cc: Add return type to
10779         `sys_fatal' and `stop' function().
10781         * test-groff: Updated.
10783 2000-08-24  Gaius Mulley  <gaius@glam.ac.uk>
10785         Added the new troff command .output <arg> to suppress output (while
10786         still obeying motion) and also the opminx, opminy, opmaxx, opmaxy
10787         registers (for passing the output dimensions to the output device).
10789         * src/roff/troff/div.cc (top_level_diversion::output): Use `width'
10790         parameter.
10791         * src/roff/troff/node.h, src/roff/troff/node.cc
10792         (troff_output_file::really_print_line,
10793         ascii_output_file::really_print_line,
10794         supress_output_file::really_print_line): Use `width' parameter.
10795         (troff_output_file::really_on, troff_output_file::really_off,
10796         output_file::on, output_file::off, real_output_file::on,
10797         real_output_file::off, real_output_file::really_on,
10798         real_output_file::really_off): New functions.
10799         (real_output_file:public output_file): New variable `output_on'.
10800         (real_output_file::begin_page, real_output_file::copy_file,
10801         real_output_file::transparent_char, real_output_file::print_line):
10802         Use it.
10803         (real_output_file::print_line): Use check_output_limits.
10804         * src/roff/troff/reg.h, src/roff/troff/request.h,
10805         src/roff/troff/input.cc (assign_registers): New function to remove
10806         two `goto's.
10807         (do_ps_file): Use it.
10808         (check_output_limits, reset_output_registers, output_request,
10809         init_output_requests): New functions.
10810         (init_input_requests): Updated.
10812         Added new grohtml2 device and html2 preprocessor (coding
10813         not yet finished) which will eventually replace grohtml.
10815         * Makefile.in, tmac/Makefile.sub, tmac/eqnrc, tmac/troffrc-end:
10816         Updated.
10817         * src/include/htmlindicate.h, src/include/htmlindicate
10818         (html_begin_suppress, html_end_suppress): New functions.
10819         * src/preproc/tbl/main.cc: Use it.
10820         * src/roff/groff/groff.cc: Add support for html2 device (which will
10821         automatically invoke the html2 preprocessor).
10822         * src/roff/troff/input.cc (is_html2): New variable.
10823         * src/roff/troff/troff.h, src/roff/troff/env.h,
10824         src/roff/troff/env.cc (environment::add_html_tag): New function
10825         (uses `is_html2').
10826         (environment::do_break): Use it.
10827         * font/devhtml2/*: New files.
10828         * src/devices/grohtml2: New device.
10829         * src/preproc/html2: New preprocessor.
10830         * tmac/tmac.html-tags, tmac/tmac.html2: New files.
10832 2000-08-23  Werner LEMBERG  <wl@gnu.org>
10834         * src/devices/grolbp/lbp.cc: Same workaround for sinix as for AIX.
10836 2000-08-22  Werner LEMBERG  <wl@gnu.org>
10838         * src/include/lib.h: Provide a fix for IRIX to not include
10839         groff-getopt.h.
10841 2000-08-18  Werner LEMBERG  <wl@gnu.org>
10843         * configure.in: Don't provide an empty value for SH_SCRIPT_SED_CMD
10844         since some non-GNU sed programs can't handle null regexps.
10845         * configure, src/preproc/eqn/Makefile.sub,
10846         src/roff/grog/Makefile.sub, src/roff/nroff/Makefile.sub: Updated.
10848         * src/devices/grolbp/lbp.cc: Add an AIX workaround for an autoconf
10849         bug (string.h and strings.h are both needed according to latest
10850         POSIX standard).
10852         * MORE.STUFF: Added info about unroff and troffcvt.
10854 2000-08-08  Werner LEMBERG  <wl@gnu.org>
10856         * tmac/tmac.a4: Will now work with ms macros also; -ma4 should be
10857         used before -ms.
10859         * tmac/tmac.man.old: Remove unused number register.
10861         * tmac.doc: Minor documentation fix.
10863 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10865         * src/roff/groff/pipeline.c (is_system_shell):
10866         Fix typo: "monocased_shell" no longer exists.
10868 2000-08-07  Paul Eggert  <eggert@twinsun.com>
10870         Remove FILENAME_MAX limits.
10872         * src/roff/groff/pipeline.c (is_system_shell): Do not assume
10873         that the argument length is less than FILENAME_MAX.
10874         * src/libs/libgroff/tmpfile.cc (add_tmp_file): Likewise.
10875         Use struct hack to allocate and free file name.
10876         (struct xtmpfile_list): fname is now part of the structure,
10877         not a pointer to another string.
10879 2000-08-07  Tom Schmidt  <tschmidt@micron.com>
10881         * src/include/posix.h: Add a default value for FILENAME_MAX.
10883 2000-08-06  Paul Eggert  <eggert@twinsun.com>
10885         Add support for new BSD-style man pages (with ".Dd" instead of
10886         ".TH"), so that "groff -man" understands both styles, even
10887         when running "groff -man" on a host whose system man page
10888         macros don't support ".Dd".
10890         * tmac/Makefile.sub (NORMALFILES): Add tmac.an.old.
10891         (stamp-wrap): Source tmac.andoc first when wrapping man macros,
10892         in case the system man macros don't define Dd or TH.
10894         * tmac/tmac.an.old: Renamed from tmac/tmac.an.
10895         * tmac/tmac.an: New one-line file.
10896         * tmac/tmac.andoc (TH): Adjust to the tmac.an.old file renaming.
10898 2000-08-06  Werner LEMBERG  <wl@gnu.org>
10900         * src/roff/troff/troff.man: Fixing typos.
10902 Version 1.16.1 released
10903 =======================
10905 2000-07-31  Werner LEMBERG  <wl@gnu.org>
10907         Preparing release 1.16.1.
10909         * REVISION: Revision number set to 1.
10910         * MORE.STUFF: Added info about port to DOS.
10911         * NEWS, win32-diffs: Updated.
10913         * src/include/nonposix.h: Remove first line -- this file is used
10914         in C also.
10916         * Makefile.in (dist): Delete Imakefile earlier to avoid a soft
10917         link to it.
10919 2000-07-30  Werner LEMBERG  <wl@gnu.org>
10921         * doc/texinfo.tex: Update to latest version.
10923 2000-06-28  Paul Eggert  <eggert@twinsun.com>
10925         * Makefile.in (ENVSETUP): Don't assume POSIX make semantics for
10926         commands that fail.  Don't assume that "export a=b" is valid shell
10927         syntax.  This is needed for Solaris 2.5.1.
10929         * src/libs/libgroff/tmpfile.cc, src/utils/indxbib/indxbib.cc: Fix
10930         comment about missing Solaris headers.
10932         * PROBLEMS: Add section about problems with Sun Make and VPATH.
10934 2000-06-25  Werner LEMBERG  <wl@gnu.org>
10936         * src/devics/grodvi/dvi.cc: Replace _setmode() (for MSC) with
10937         SET_BINARY().
10939         * src/include/posix.h: Use HAVE_UNISTD instead of _MSC_VER.
10941         * win32-diffs: Updated.
10942         * README.WIN32: Added CRs to make all Windows editors happy.
10944         * src/roff/troff/node.cc: Added WIFSIGNALED() macro (copied from
10945         src/roff/groff/pipeline.c).
10947 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
10949         * src/roff/grog/Makefile.sub (grog): Prepend `-e' to
10950         $(SH_SCRIPT_SED_CMD), for the case where its value is empty.
10952 2000-06-17  Eli Zaretskii  <eliz@is.elta.co.il>
10954         * src/utils/tfmtodit/tfmtodit.cc: #include nonposix.h.
10955         (tfm::load, gf::load): Open tfm and gf files in binary mode: these
10956         are binary files.
10957         (main): Support non-Posix systems with several different styles of
10958         slash characters in file names.
10960         * src/utils/pfbtops/pfbtops.c: #include nonposix.h.
10961         (main) [SET_BINARY]: Switch stdin into binary mode.
10963         * src/utils/indxbib/indxbib.cc: #include nonposix.h.
10964         (main): Support file names with several possible slash-type
10965         characters, as given by DIR_SEPS[] in nonposix.h.
10966         (main) [__MSDOS__]: If renaming the temporary index file fails
10967         because it has more than one dot in its trunk, replace the dot
10968         with an underscore and try again.
10969         (do_file): Use FOPEN_RB instead of "r".  Skip every CR before a
10970         Newline.
10971         [__MSDOS__ || _MSC_VER]: Stop at the first ^Z character.
10973         * src/utils/hpftodit/hpftodit.cc: #include nonposix.h.
10974         (File::File): Open the input file in binary mode.  Strip CR
10975         characters from each CR-LF pair.
10976         (xbasename): Support file names with several possible slash-type
10977         characters, as given by DIR_SEPS[] in nonposix.h.
10979         * src/include/Makefile.sub (HDRS): Add nonposix.h.
10981         * src/roff/troff/node.cc [HAVE_UNISTD_H]: Include <unistd.h>.
10982         (WIFEXITED, WEXITSTATUS, WTERMSIG, WIFSTOPPED, WSTOPSIG)
10983         [!_POSIX_VERSION]: Define for traditional Unix systems.
10984         (real_output_file::real_output_file): Remove the MSVC-specific
10985         call to popen, use instead POPEN_WT, appropriately defined on
10986         nonposix.h.  #include nonposix.h.
10987         (real_output_file::~real_output_file): Remove the MSVC-specific
10988         call to pclose, a suitable macro is now defined on nonposix.h.
10989         Use the portable macros WIFEXITED, WIFSIGNALED, WTERMSIG, WSTOPSIG
10990         and WEXITSTATUS instead of assuming traditional Unix
10991         interpretation of the status returned by pclose.
10993         * src/roff/troff/input.cc (pipe_source): Remove the MSVC-specific
10994         call to popen, use POPEN_RT instead (appropriately defined on
10995         nonposix.h).  #include nonposix.h.
10996         (ps_bbox_request): Open the PostScript file in binary mode.
10997         Close the file after processing it.
10998         (getpid) [_MSC_VER]: Remove; a suitable macro is now defined on
10999         nonposix.h.
11001         * src/roff/groff/pipeline.c (run_pipeline) [__MSDOS__ || _WIN32]:
11002         A version of run_pipeline that doesn't use `fork'.
11003         (signal_catcher) [__MSDOS__ || _WIN32]: New function.
11004         (system_shell_name, system_shell_dash_c)
11005         (is_system_shell) [__MSDOS__ || _WIN32]: New functions, to hide
11006         the ugliness of testing DOS/Windows file names for equality, and
11007         support both stock shells and ports of Unix shells.
11009         * src/roff/groff/groff.cc: #include nonposix.h.
11010         (BSHELL): Definition moved to nonposix.h.
11011         (main): Use PATH_SEP[0] instead of literal ':'.  Use BSHELL_DASH_C
11012         instead of a literal "-c".
11013         (xbasename): Support file names with several possible slash-type
11014         characters, as given by DIR_SEPS[] in nonposix.h.
11015         (possible_command::print): Use BSHELL_DASH_C and IS_BSHELL instead
11016         of literal strings.
11018         * src/preproc/soelim/soelim.cc: #include nonposix.h.
11019         (do_file): Use IS_ABSOLUTE instead of testing for a literal '/'.
11021         * src/preproc/pic/Makefile.sub (YTABH): Change pic.tab.h to
11022         pic_tab.h.
11024         * src/preproc/pic/lex.cc: Change pic.tab.h to pic_tab.h.
11026         * src/preproc/eqn/Makefile.sub (YTABH): Rename eqn.tab.h to
11027         eqn_tab.h.
11029         * src/preproc/eqn/lex.cc: #include eqn_tab.h, not eqn.tab.h.
11031         * src/libs/libgroff/tmpfile.cc (DEFAULT_TMPDIR) [P_tmpdir]: If
11032         P_tmpdir is defined, use it instead of the literal "/tmp".
11033         (remove_tmp_files, add_tmp_file): New functions.
11034         (xtmpfile): Record temporary files and register an atexit function
11035         to delete them explicitly, instead of relying on the OS to do
11036         that, which doesn't work on non-Unix systems.
11038         * src/libs/libgroff/searchpath.cc: #include nonposix.h.
11039         (search_path::search_path): Use PATH_SEP instead of a literal
11040         colon.
11041         (search_path::command_line_dir): Ditto.
11042         (search_path::open_file): Use IS_ABSOLUTE, PATH_SEP and DIR_SEPS,
11043         to support non-Posix systems.
11045         * src/libs/libbib/search.cc: #include nonposix.h.
11046         (search_list::add_file): Open the file in binary mode.
11048         * src/libs/libbib/linear.cc: #include nonposix.h.
11049         (file_buffer::load): Remove \r characters preceding \n from the
11050         loaded buffer.
11052         * src/libs/libbib/index.cc: #include nonposix.h.
11053         (make_index_search_item): Open index_filename in O_BINARY mode.
11054         (index_search_item_iterator::get_tag): Ditto.  Remove \r
11055         characters before \n characters.
11056         (index_search_item::check_files): Open files in binary mode.
11057         (index_search_item::munge_filename): Support DOS-style file names
11058         with backslashes and drive letters, use IS_ABSOLUTE.
11060         * src/devices/grops/ps.cc: #include nonposix.h.
11061         (main) [SET_BINARY]: Switch stdout to binary mode.
11063         * src/devices/grolj4/lj4.cc: #include nonposix.h.
11064         (main) [SET_BINARY]: Switch stdout to binary mode.
11066         * src/devices/grolbp/lbp.cc: #include nonposix.h
11067         (fill_pattern) [SET_BINARY]: Switch stdout to binary mode.
11069         * src/devices/grodvi/dvi.cc: #include nonposix.h.
11070         [_MSC_VER]: Remove inclusion of Windows-specific headers (done by
11071         nonposix.h).
11072         (main) [SET_BINARY]: Switch stdout to binary mode.
11073         [_MSC_VER]: Remove an explicit call to _setmode.
11075         * src/include/nonposix.h: New file.
11077         * Makefile.in (ENVSETUP): New variable, to set up case-sensitive
11078         operation when building with DJGPP.
11079         ($(TARGETS), dot, $(LIBDIRS), $(CPROGDIRS), $(CCPROGDIRS))
11080         ($(DEVDIRS), $(TTYDEVDIRS), $(INCDIRS), $(OTHERDIRS)): Use
11081         ENVSETUP.
11083         * Makefile.comm: mv y.tab.[ch] to y_tab.[ch], to make it work on
11084         MS-DOS.
11085         (.man.n): Replace `;' with `|', since FONTPATH, MACROPATH,
11086         etc. can include a semi-colon on DOS/Windows.
11087         (depend.temp): Use depend1.temp instead of depend.temp1, to
11088         prevent files from overerwiting each other on 8+3 filesystems.
11090         * gendef.sh (t): Change definition to work with DOS/Windows.
11092         doc/groff.texinfo: Apart of some typo corrections, I also changed
11093         some index entris, to make them more non-ambiguous, and also put
11094         @ignore around some parts that are not yet written, to allow the
11095         Info output be readable.
11097 2000-06-10  Gael Queri  <gqueri@mail.dotcom.fr>
11099         Replaced specific checks for function declarations with a generic
11100         routine taken from GNU bfd.
11102         * aclocal.m4 (GROFF_NEED_DECLARATION): New function.
11103         GROFF_PUTENV, GROFF_POPEN, GROFF_PCLOSE, GROFF_HYPOT: Removed.
11104         * configure.in: Use it.
11105         * src/devices/grolbp/lbp.cc, src/include/lib.h,
11106         src/preproc/grn/hgraph.cc, src/preproc/pic/pic.h,
11107         src/roff/groff/groff.cc: Use it.
11108         * Makefile.in, configure: Updated.
11110 2000-06-07  Paco Andrés Verdú  <pandres@dragonet.es>
11112         * src/devides/grolbp/lbp.h: Removed unused variables.
11114 2000-05-31  Keith Thompson  <kst@sdsc.edu>
11116         * src/devices/grolbp/lbp.cc (set_papersizes): Add declaration of
11117         strncasecmp().
11119 2000-05-31  Werner LEMBERG  <wl@gnu.org>
11121         * aclocal.m4 (GROFF_SRAND): New function to test the return value
11122         of srand() -- at least SunOS 4.1.3 uses `int' instead of `void'.
11123         * configure.in: Use it.
11124         * src/preproc/pic/pic.y, src/preproc/pic/pic.cc: Use it.
11125         * configure, Makefile.in: Updated.
11127         * configure.in: Add test for strncasecmp().
11128         * src/include/lib.h: Use it.
11130 2000-05-29  Andrej Borsenkow  <Andrej.Borsenkow@mow.siemens.ru>
11132         * src/preproc/grn/Makefile.sub: Add MLIB.
11134 2000-05-29  Nix  <nix@esperi.demon.co.uk>
11136         * Makefile.in: Use @datadir@ and @mandir@ appropriately.
11138 2000-05-29  Werner LEMBERG  <wl@gnu.org>
11140         * src/roff/grog/Makefile.sub, src/roff/grog/grog.sh: Add `@g@'.
11142         * PROBLEMS: Small update.
11144         * src/devices/grolbp/lbp.cc: Various small fixes.
11146 2000-05-28  Keith Thompson  <kst@sdsc.edu>
11148         * src/roff/nroff/nroff.sh: Fix main loop syntax.
11150         * src/utils/indxbib/indxbib.cc: Add declaration of mkstemp().
11152 2000-05-25  Werner LEMBERG  <wl@gnu.org>
11154         * man/roff.man: Removed unused macro.
11156 2000-05-24  Werner LEMBERG  <wl@gnu.org>
11158         * Makefile.in (dist): Remove src/xditview/Imakefile explicitly. 
11159         This is needed e.g. if you do
11160         `make distclean; ./configure; make dist'.
11162 Version 1.16 released
11163 =====================
11165 2000-05-23  Werner LEMBERG  <wl@gnu.org>
11167         Adding font CWI (constant width italic) to devdvi.
11169         * font/devdvi/CWI: New file.
11170         * font/devdvi/generate/Makefile: Add generating rule.
11171         * font/devdvi/DESC.in, font/devdvi/Makefile.sub, win32-diffs,
11172         tmac/tmac.dvi: Use it.
11173         * NEWS: Announce it.
11175         * font/devlj4/*: Regenerated (only adding kernings for `cq' glyph).
11176         * font/devlj4/generate/Makefile: Cosmetic changes only.
11178         * man/groff.man: Removed most of the redundant description of
11179         special characters (which is in groff_char.man).  Added font
11180         translation CB->CR for devdvi.  Other minor fixes.
11182         * tmac/tmac.dvi: Improved appearance of \(co (copyright) and \(rg
11183         (registered) symbols.
11185 2000-05-22  Werner LEMBERG  <wl@gnu.org>
11187         * doc/Makefile: Added rule for creating info files.
11189         * font/devdvi/*: Added kernings for `cq' glyph.  Updated to latest
11190         AMS font metrics.
11191         * font/devdvi/generate/Makefile: Fixed dependencies.
11193         * font/devps/*: Regenerated.  Heavy changes for Bookman and
11194         NewCentury Schoolbook!
11195         * font/devps/generate/afmname: Will now run with GNU awk.
11196         * font/devps/generate/textmap: Added forgotten `cq' glyph name.
11197         * font/devps/generate/Makefile: Cosmetic changes only.
11199 2000-05-21  Werner LEMBERG  <wl@gnu.org>
11201         * tmac/tmac.an: Added a new command line option `-rSxx' (`xx' can be
11202         10, 11, or 12) to support output with 11pt and 12pt base font sizes. 
11203         `.SS' now produces a heading with a smaller size than `.SH'. 
11204         Completely formatted.
11205         * doc/groff.texinfo, tmac/groff_man.man, NEWS: Document it.
11207         * man/groff.man: Improved table appearance.  Use of `eo' request
11208         to reduce number of doubled backslashes in macro definitions.
11209         Replacing `\e' with `\(rs'.  Other minor fixes.
11211         * src/preproc/tbl/main.cc: Insert HTML table end tag before `lf'
11212         to have correct line number.
11214         * INSTALL: Small improvement.
11216 2000-05-20  Bernd Warken  <bwarken@mayn.de>
11218         * man/roff.man, tmac/groff_tmac.man: Updates (with corrections by
11219         WL).
11221 2000-05-19  Bernd Warken  <bwarken@mayn.de>
11223         * man/groff.man: Complete update (with a lot of corrections by WL).
11225 2000-05-18  Werner LEMBERG  <wl@gnu.org>
11227         Adding `cq' (PS name `quoteright') glyph name as an alias for "'".
11229         * font/*/*: Implement it.
11230         * man/groff_char.man, NEWS: Document it.
11232         * src/include/unix.h: Removed.  It isn't used.
11234         * doc/groff.texinfo: Slight improvements.
11236 2000-05-17  Werner LEMBERG  <wl@gnu.org>
11238         * README, win32-diffs: Small fixes and improvements.
11240 2000-05-16  Werner LEMBERG  <wl@gnu.org>
11242         * FDL: New file (the Free Documentation License version 1.1).
11244         * doc/groff.texinfo: Added many start-up values for gtroff.
11245         Some structural improvements of the source code.
11247 2000-05-15  Werner LEMBERG  <wl@gnu.org>
11249         * src/roff/troff/input.cc: Added small comment about troffrc-end.
11250         * src/roff/troff/troff.man: Added info about troffrc-end.
11252 2000-05-14  Werner LEMBERG  <wl@gnu.org>
11254         * Makefile.in (EXTRADIRS): Fix typos.
11255         (dist): Handle deletion of old .tar.gz file correctly.
11256         (DISTDIRS): Include all tty output devices.
11258         * doc/groff.texinfo: Adding more cross references; countless other
11259         fixes.
11261 2000-05-13  Werner LEMBERG  <wl@gnu.org>
11263         * MORE.STUFF: Added Robert Marks's utilities.
11265 2000-05-12  Werner LEMBERG  <wl@gnu.org>
11267         Added win32 port contributed by Blake McBride
11268         <blake@florida-software.com>.
11270         * README.WIN32, win32-diffs: New files.
11271         * NEWS: Updated.
11273         * src/preproc/grn/hgraph.cc (HGSetBrush): Replace `%lf' with `%f'.
11274         (tmove, tmove2): Added parentheses to avoid compiler warnings.
11275         (change): Removed unused variables.
11277         * src/preproc/grn/main.cc (main, conv): Removed unused variables.
11278         (savebounds): Changed return value from `int' to `void'.
11279         * src/preproc/grn/hdb.cc: Ditto.
11281         * src/devices/grolbp/lbp.cc (lbp_printer::draw): Removed superfluous
11282         final backslash in comment to avoid compiler warning.
11284         * src/utils/pfbtops/pfbtops.c: Added `getopt.h'.
11286         * doc/groff.texinfo: More fixes.
11288 2000-05-11  OKAZAKI Tetsurou  <okazaki@be.to>
11290         * tmac/tmac.doc: Documentation fix.
11292 2000-05-11  Werner LEMBERG  <wl@gnu.org>
11294         * doc/groff.texinfo: Reading the source code shows up a lot of
11295         omissions and incorrect data...  More conversion to @Deffn macros.
11297 2000-05-10  Werner LEMBERG  <wl@gnu.org>
11299         * src/roff/troff/reg.cc (number_value_to_ascii): Remove ASCII
11300         dependency.
11302         * src/roff/troff/request.h: Removing unused `no_break_flag'.
11304 2000-05-09  Werner LEMBERG  <wl@gnu.org>
11306         * man/groff.man, man/roff.man, tmac/groff_tmac.man: Minor
11307         improvements.
11309         * doc/groff.texinfo: Extended history section.  More conversion to
11310         @Deffn macros.  More .tr documentation.
11312 2000-05-07  Werner LEMBERG  <wl@gnu.org>
11314         * doc/groff.texinfo: Completed tab section.  Added info about
11315         fields.
11317 2000-05-06  Mike MacIsaac  <mikemac@us.ibm.com>
11319         * PROBLEMS: Describe configure script fix for OS/390 Unix.
11321 2000-05-05  Werner LEMBERG  <wl@gnu.org>
11323         * font/devdvi/DESC.in: Change size 11pt to 10.95pt (as used in
11324         LaTeX 2e).
11325         * NEWS: Document it.
11327         * man/troff.man: Minor optical improvements.
11329 2000-05-03  Werner LEMBERG  <wl@gnu.org>
11331         Adding `dq' (PS name `quotedbl') glyph name as an alias for `"'.
11333         * font/*/*: Implement it.
11334         * man/groff_char.man, NEWS: Document it.
11336 2000-05-02  Werner LEMBERG  <wl@gnu.org>
11338         * tmac/groff_tmac.man, man/groff.man, man/roff.man: Fixing @MANxEXT@
11339         expansion.
11340         * NEWS: Document the three new man pages.
11342         * aclocal.m4 (GROFF_CXX_CHECK): Removing obsolete AC_C_CROSS call.
11343         * configure: Updated.
11345         * font/devcp1047/R.proto: Fixing fatal bug (a missing `"' character).
11347 2000-05-01  Werner LEMBERG  <wl@gnu.org>
11349         Added grap support to grog.
11351         * src/roff/grog/grog.sh, src/roff/grog/grog.pl: Implement it.
11352         * src/roff/grog/grog.man: Document it.
11354         * doc/groff.texinfo, NEWS: Add info about grap support.
11356         Add new man pages comptributed by Bernd Warken <bwarken@mayn.de>
11357         (with slight fixes by me).
11359         * tmac/groff_tmac.man: New file documenting tmac mechanism.
11360         * tmac/Makefile.sub: Add groff_tmac.man.
11361         * man/roff.man: New file giving overview of roff system.
11362         * man/troff.man: A short reference of troff.
11363         * man/Makefile.sub: Add roff.man and troff.man.
11365 2000-04-30  Werner LEMBERG  <wl@gnu.org>
11367         Added grap support to groff.
11369         * src/roff/groff/groff.cc: Implement it.
11370         * src/roff/groff/groff.man: Document it.
11372         * src/devices/grotty/grotty.man: Add cp1047 device.
11373         * src/preproc/eqn/eqn.man, src/preproc/eqn/neqn.sh, tmac/eqnrc:
11374         Ditto.
11375         * src/roff/groff/groff.man: Ditto.
11376         * src/roff/nroff/nroff.sh, src/roff/nroff/nroff.man: Ditto.
11377         * doc/groff.texinfo: Ditto.
11379         * tmac/troffrc: Fix mapping of latin-1 char 160 (non-breakable space)
11380         for cp1047.
11382 2000-04-29  Werner LEMBERG  <wl@gnu.org>
11384         * man/groff_char.man: Add `pc' glyph.
11385         * tmac/tmac.latin1: Replacing `md' glyph with `pc'.
11386         * tmac/tmac.tty: Add `pc' glyph.
11387         * tmac/tmac.tty-char: Use/add `pc' glyph.  Don't call tmac.latin1 if
11388         we use cp1047 output device.
11390         * Makefile.in, aclocal.m4: Don't build utf8 on EBCDIC hosts since
11391         there are still hardcoded latin1->unicode values in utf8's font
11392         definition files.
11393         * configure: Updated.
11394         * NEWS: Minor clarification.  Updated.
11396         * PROBLEMS: Formatted.  Added info about C++ fix pack for OS/390
11397         Unix.
11399 2000-04-28  Werner LEMBERG  <wl@gnu.org>
11401         Adding EBCDIC code page 1047.
11403         * font/devcp1047/R.proto, font/devcp1047/Makefile.sub,
11404         font/devcp1047/DESC.proto: New files.
11406         * aclocal.m4 (GROFF_EBCDIC): Introduce TTYDEVDIRS which can be
11407         either ascii/latin1 or cp1047.
11408         * Makefile.in: Use it.
11409         * configure: Updated.
11411         Replacing and/or adding `md' (mathdot) glyph with `pc'
11412         (periodcentered) in all text fonts.
11414         * font/*/*: Change it.
11416 2000-04-27  Werner LEMBERG  <wl@gnu.org>
11418         * aclocal.m4 (GROFF_OS390): Fixing compiler flags.
11420         * configure.in: Add check for strings.h.
11421         * src/include/driver.h: Use HAVE_STRINGS_H.
11422         * src/devices/grolbp/lpb.cc: Remove string.h.
11424         * src/include/groff-getopt.h: New file.  It will be used instead of
11425         getopt.h (to be included in lib.h) to avoid endless problems with
11426         picky C++ compilers.
11427         * src/include/lib.h: Use groff-getopt.h.
11428         * src/include/Makefile.sub: Updated.
11430         * configure: Updated.
11431         * Makefile.in: Updated.
11433         * NEWS: Mention EBCDIC support.
11435 2000-04-26  Werner LEMBERG  <wl@gnu.org>
11437         * TODO: Some additions.
11439 2000-04-25  Werner LEMBERG  <wl@gnu.org>
11441         * src/roff/troff/troff.man, doc/groff.texinfo: Fixing documentation
11442         of mso request.
11444 2000-04-23  Werner LEMBERG  <wl@gnu.org>
11446         * src/roff/troff/troff.man: Minor fixes.
11448 2000-04-22  Werner LEMBERG  <wl@gnu.org>
11450         * src/roff/troff/troff.man, doc/groff.texinfo, NEWS: Document the
11451         `.T' string register and the incompatible definition of the `.T'
11452         number register (compared to Unix troff).
11454         * man/groff_char.man: Add some missing characters.
11455         * font/devutf8/NOTES: Update.
11457 2000-04-21  Werner LEMBERG  <wl@gnu.org>
11459         * src/include/htmlindicate.h, src/include/lib.h,
11460         src/include/posix.h: Fix copyright.
11462         * src/include/Makefile.sub: Update.
11464 2000-04-20  Werner LEMBERG  <wl@gnu.org>
11466         * src/roff/troff/input.cc (input_char_description): Removing
11467         superfluous space char.
11469         * tmac/tmac.X: Fix typo \(bq -> \(Bq.
11471         * doc/groff.texinfo: Document EBCDIC.
11473 2000-04-19  Werner LEMBERG  <wl@gnu.org>
11475         Introducing `shc' as the glyph name for the soft hyphen character.
11477         * tmac/tmac.tty, tmac/tmac.latin1, tmac/tmac.html,
11478         font/devlatin1/R.proto: Use it.
11480         * NEWS: Updated.
11482 2000-04-18  Werner LEMBERG  <wl@gnu.org>
11484         * src/devices/grops/ps.cc (ps_printer::flush_sbuf): Removing
11485         dependency on ASCII order.
11487 2000-04-16  Sandor BARANY  <S.Barany@infosys.tuwien.ac.at>
11489         * src/libs/libgroff/illegal.c: Added EBCDIC table.
11490         * src/roff/troff/input.cc: Added adaptation to EBCDIC.
11492         * src/preproc/refer/refer.cc, src/roff/troff/env.cc: Minor changes
11493         to increase portability.
11495 2000-04-15  Werner LEMBERG  <wl@gnu.org>
11497         * aclocal.m4: Added GROFF_EBCDIC and GROFF_OS390 tests.
11498         Redefined AC_OUTPUT_MAKE_DEFS to replace ASCII character `012' with
11499         the generic `\n' if under OS/390 Unix.
11501         * configure.in: Call GROFF_EBCDIC and GROFF_OS390.
11503         * configure: Regenerated.
11505 2000-04-14  Werner LEMBERG  <wl@gnu.org>
11507         * doc/groff.texinfo: More conversions to @Deffn.
11509 2000-04-12  Werner LEMBERG  <wl@gnu.org>
11511         * tmac/tmac.psfig: Fix incorrect use of `&' operator by replacing it
11512         with `:'.
11514         * src/roff/nroff/nroff.man: Add note about tmac.tty-char.
11516 2000-04-10  Werner LEMBERG  <wl@gnu.org>
11518         * doc/groff.texinfo: More conversions to @Deffn.
11520 2000-04-08  Werner LEMBERG  <wl@gnu.org>
11522         * src/libs/libgroff/{getopt.c,getopt1.c}, src/include/getopt.h:
11523         Updated to latest version (glibc 2.1.3).
11525 2000-04-07  Werner LEMBERG  <wl@gnu.org>
11527         * doc/Makefile (clean): Include more index files.
11528         Add rule texinfo->dvi.
11530 2000-04-05  Werner LEMBERG  <wl@gnu.org>
11532         * doc/groff.texinfo: Added new index `op' for operators.  More
11533         info on end of sentence characters.  More use of @Deffn.
11535 2000-03-30  Werner LEMBERG  <wl@gnu.org>
11537         * */*.man: Adding a note that a whitespace can be inserted between
11538         a command line option and its parameter -- we are using GNU getopt.
11540         * src/roff/groff/groff.man: Add example of `-m mandoc'.
11542 2000-03-28  Werner LEMBERG  <wl@gnu.org>
11544         Correct anachronism of calling the man macro file with `-man'
11545         instead of `-m man' etc.
11547         * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc,
11548         tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply
11549         load tmac.<package>.
11551         * tmac/Makefile.sub: Updated.  Take care of $(tmac_an_prefix) etc.
11553         * NEWS: Updated.
11555         * doc/groff.texinfo: Updated.
11557         * tmac/groff_man.man: Copyright added.
11559 2000-03-27  Werner LEMBERG  <wl@gnu.org>
11561         * doc/groff.texinfo: Introducing macros `Deffn' and `Defmac' to
11562         typeset the request resp. escape name with a tt font -- due to a
11563         bug in texinfo.tex it is necessary to use the `-e' switch with
11564         texi2dvi.
11566         Improving info about usage of groff units.
11568         Other minor fixes.
11570 2000-03-20  Werner LEMBERG  <wl@gnu.org>
11572         * doc/groff.texinfo: Added section about man macro package
11573         (I've basically taken groff_man.man).  Introducing new indices `ma'
11574         for macros/strings and `gl' for glyph names.  Other minor fixes.
11576         * tmac/groff_man.man: Fixed some typos.
11578 2000-03-19  Werner LEMBERG  <wl@gnu.org>
11580         * doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
11581         Other minor fixes.
11583         * doc/texinfo.tex: New file.
11585 2000-03-18  Werner LEMBERG  <wl@gnu.org>
11587         * doc/groff.texinfo: Improved section on number registers.  Other
11588         minor updates.
11590 2000-03-16  Werner LEMBERG  <wl@gnu.org>
11592         * src/roff/groff/groff.man: Added info about grolbp.  Make nicer
11593         synopsis.
11595         * src/devices/grolbp/grolbp.man, src/roff/nroff/nroff.man,
11596         src/devices/grolj4/grlj4.man, src/devices/grops/grops.man,
11597         src/preproc/eqn/eqn.man, src/utils/afmtodit/afmtodit.man,
11598         src/utils/tfmtodit/tfmtodit.man: Make nicer synopsis.
11600         * src/preproc/grn/grn.man: Better synopsis; added copyright.
11602         * src/roff/grog/grog.man: Updated copyright date.
11604 2000-03-14  Francisco Andrés Verdú  <pandres@dragonet.es>
11606         * configure.in: Added test for strdup.
11608         * src/devices/grolbp/lbp.cc: Added a strdup() version in case none
11609         is available.
11611         Replaced dynamic allocation of arrays `[...]' with `new' operator.
11613         Other minor fixes.
11615 2000-03-12  OKAZAKI Tetsurou  <okazaki@be.to>
11617         * Makefile.comm: Add $(INCLUDES) to $(ALL_CFLAGS).
11619 2000-03-11  Werner LEMBERG  <wl@gnu.org>
11621         * src/preproc/grn/hdb.cc (DBGetType): Added return value to make
11622         compilers silent.
11623         * src/preproc/grn/hgraph.cc: Add #ifdef for hypot().
11624         * src/include/lib.h: Remove some spaces.
11626 2000-03-10  Werner LEMBERG  <wl@gnu.org>
11628         * src/libs/libgroff/tmpfile.cc (xtmptemplate, xtmpfile): Removing
11629         initializers from arguments (some compilers don't like this).
11631 2000-03-09  Gaius Mulley  <gaius@glam.ac.uk>
11633         * src/libs/libgroff/htmlindicate.cc: Added library file which is now
11634         used by pic and eqn to tell grohtml where the graphic regions start
11635         and end.
11636         * src/libs/libgroff/Makefile.sub: Use it.
11637         * src/preproc/eqn/main.cc, src/preproc/pic/troff.cc: Altered to use
11638         graphic_start() and graphic_end() from htmlindicate.cc.
11640 2000-03-09  Werner LEMBERG  <wl@gnu.org>
11642         * tmac/tmac.safer: Will now work correctly in compatibility mode.
11643         * tmac/groff_man.man: More fixes.
11645 2000-03-08  Werner LEMBERG  <wl@gnu.org>
11647         * doc/Makefile: Added texput.log to the `clean' target.
11648         * doc/groff.texinfo: Added info about delimiters for escapes.
11650 2000-03-08  Bernd Warken  <bwarken@mayn.de>
11652         * src/preproc/pic/pic.man: Add info on conversion of pic images to
11653         other graphic formats.
11655 2000-03-07  OKAZAKI Tetsurou  <okazaki@be.to>
11657         * Makefile.in, Makefile.sub, src/preproc/eqn/Makefile.sub,
11658         src/roff/groff/Makefile.sub, src/roff/nroff/Makefile.sub,
11659         src/utils/afmtodit/Makefile.sub: Use $(INSTALL_SCRIPT) for script
11660         files.
11662 2000-03-07  Werner LEMBERG  <wl@gnu.org>
11664         * doc/groff.texinfo: Spelling fixes.
11666 2000-03-06  Werner LEMBERG  <wl@gnu.org>
11668         * tmac/groff_man.man: Completely revised to cover everything in
11669         tmac.an.
11671         * doc/groff.texinfo, src/roff/troff/troff.man: Document evc request.
11672         Other minor fixings.
11673         * src/roff/troff/env.cc (environment_copy): Improve error message and
11674         fix itoa->i_to_a.
11675         * src/roff/troff/TODO: Updated.
11677         * doc/Makefile: Bug fixes -- this is still provisional, though...
11679         * tmac/eqnrc: Small fixes.
11681 2000-03-05  Abramo Bagnara  <abramo@alsa-project.org>
11683         Adding a request `evc' to copy environments.
11685         * src/roff/troff/env.cc (environment::copy, environment_copy):
11686         Implement it.
11687         * src/roff/troff/env.h: Add prototype.
11689 2000-03-05  Francisco Andrés Verdú  <pandres@dragonet.es>
11691         Adding strsep() -- Solaris 8 doesn't have it.
11693         * configure.in: Test it.
11694         * src/devices/grolbp/lbp.cc: Add code.
11696 2000-03-05  Werner LEMBERG  <wl@gnu.org>
11698         * src/roff/troff/div.cc (macro_diversion::output,
11699         top_level_diversion::output): Fixing an incompatibility with
11700         original troff: \x'0' updates the .a register also.  Thanks to
11701         <Andries.Brouwer@cwi.nl> for pointing this out.
11702         * doc/groff.texinfo: Document it.
11704         * Makefile.in: Create Makefile.dep if necessary before calling the
11705         submake process to avoid warning about nonexistent file.
11707         * NEWS, PROJECTS: Updated.
11709 2000-03-04  Werner LEMBERG  <wl@gnu.org>
11711         * tmac/troffrc: Add tmac.lbp.
11713 2000-03-03  Francisco Andrés Verdú  <pandres@dragonet.es>
11715         * tmac/tmac.lbp: New file.
11716         * src/devices/grolbp/grolbp.man: Add documentation of `lbpname'
11717         command.
11719 2000-03-03  Werner LEMBERG  <wl@gnu.org>
11721         * Makefile.in: Fixing $(subdir).
11723         * README, NEWS: Small fixes.
11725         * test-groff: Adding path to grolbp.
11727         * configure.in: The (new) file src/xditview/Imakefile.in will be
11728         also configured -- it is now possible to build gxditview in a
11729         directory different from $srcdir.
11731 2000-03-02  Blake McBride  <blake@florida-software.com>
11733         * src/libs/libgroff/searchpath.cc (open_file): Adapting to WinNT.
11735         * MORE.STUFF: Added website of bell labs and info about plot2dev.
11737 2000-03-01  Colin Phipps  <crp22@cam.ac.uk>
11739         * src/utils/indxbib/indxbib.cc (main): Use mkstemp() for temporary
11740         files.
11742 2000-02-29  Werner LEMBERG  <wl@gnu.org>
11744         Adding GNU getopt to the groff distribution.
11746         * src/include/getopt.h, src/libs/libgroff/{getopt.c,getopt1.c}:
11747         New files.
11748         * src/include/Makefile.sub, src/libs/libgroff/Makefile.sub: Update.
11749         * aclocal.a4: Remove GROFF_GETOPT function.
11750         * configure.in, Makefile.in, PROBLEMS: Update.
11751         * src/include/lib.h: Replace getopt tests with getopt.h.
11752         * src/devices/grolbp/lpb.cc: Remove inclusion of getopt.h.
11754         * doc/groff.texinfo: Further checking/updating.  Adding more index
11755         entries.
11757         * man/groff_out.man: Fix nroff mode activation (for emacs).
11758         * man/groff_font.man: Add missing ligature.
11760 2000-02-28  Werner LEMBERG  <wl@gnu.org>
11762         * doc/groff.texinfo: Further checking/updating.  Adding more index
11763         entries.
11765         * src/devices/grolbp/grolbp.man: Added a comment line at the
11766         beginning of the file (similar to shell scripts) which indicates
11767         that `tbl' should be used as a preprocessor.
11769 2000-02-27  Blake McBride  <blake@florida-software.com>
11771         Adapting groff to MS Visual C++ 6.0 compiler (tested with
11772         Windows NT 4.0).  Uses _MSC_VER define where necessary.
11774         * src/devices/grodvi/dvi.cc: Making stdout a binary stream.
11775         * src/devices/grolj4/lj4.cc: Making getopt variables `extern "C"'.
11776         * src/devices/grohtml/html.cc, src/devices/grops/ps.cc,
11777         src/include/lib.h, src/libs/libgroff/errarg.cc,
11778         src/libs/libgroff/itoa.c, src/libs/libgroff/nametoindex.cc,
11779         src/preproc/refer/label.y, src/preproc/refer/label.cc,
11780         src/roff/groff/pipeline.c, src/roff/troff/column.cc,
11781         src/roff/troff/div.cc, src/roff/troff/env.cc,
11782         src/roff/troff/input.cc, src/roff/troff/node.cc,
11783         src/roff/troff/reg.cc: Renaming itoa() to i_to_a() and iftoa() to
11784         if_to_a() to avoid name clashes.
11785         * src/include/posix.h: Don't use unistd.h.
11786         * src/libs/libgroff/tmpfile.cc: Use `#ifndef...#else...#endif'
11787         clause for integrating non-Unix xtmpfile() code.
11788         * src/roff/troff/input.cc: Adding `public' keyword to macro_header
11789         structure; use "rt" for popen() in pipe_source(); add getpid()
11790         dummy function.
11791         * src/roff/troff/node.cc: Use special versions of popen() in
11792         real_output_file() and pclose() in ~real_output_file().
11794 2000-02-27  Werner LEMBERG  <wl@gnu.org>
11796         Adding a new driver, grolbp, for Canon CAPSL printers (LBP-4 and
11797         LBP-8 series laser printers).  This code has been contributed by
11798         Francisco Andrés Verdú <pandres@dragonet.es>.
11800         * src/devices/grolbp/*: The grolbp output device.
11801         * font/devlpb/*: The font description files.
11802         * Makefile.in: Add grolpb and devlbp subdirectories.
11804         * src/devices/grodvi/grodvi.man, src/devices/grolj4/grolj4.man,
11805         src/devices/grotty/grotty.man,src/roff/troff/troff.man: Minor
11806         typographic fixes.
11808         * doc/groff.texinfo: Further checking/updating.  Adding more index
11809         entries.
11811         * NEWS: Updated.
11813         * src/devices/grolbp/Makefile.sub: Adding $(srcdir).
11815         * man/groff_font.man: Adding info about obsolete DESC keywords.
11816         * src/devices/grolj4/grolj4.man: Documenting additional DESC
11817         keywords.
11819 2000-02-26  Werner LEMBERG  <wl@gnu.org>
11821         * src/preproc/grn/grn.man: Added info about the gremlin file format
11822         (contributed by Daniel Senderowicz <daniel@synchrods.com>).
11824 2000-02-25  Werner LEMBERG  <wl@gnu.org>
11826         * src/preproc/grn/main.cc: Allow values of `narrow' parameter and
11827         friends to be non-integer.
11829         * src/preproc/grn/grn.man: Document it.
11831         * doc/groff.texinfo: Further checking/updating.  Adding more index
11832         entries.
11834 2000-02-24  Werner LEMBERG  <wl@gnu.org>
11836         * src/preproc/grn/main.cc: Introduce BASE_THICKNESS, defining
11837         line thicknesses to be integer multiples of this value.
11839         * src/preproc/grn/grn.man: Commenting out the -s option -- the
11840         corresponding code doesn't work (yet).
11842         * doc/groff.texinfo: Further checking/updating.  Adding more index
11843         entries.
11845 2000-02-23  Werner LEMBERG  <wl@gnu.org>
11847         * src/preproc/grn/{main.cc, hgraph.cc}: Using point units to
11848         specify line thickness instead of base units.  The new default
11849         values are now 0.15,pt 0.45pt, and 0.75pt for thin, middle, and
11850         thick lines respectively.
11852         Removed unused variable `prevval'.
11854         * src/preproc/grn/grn.man: Updated.
11856 2000-02-22  Werner LEMBERG  <wl@gnu.org>
11858         * src/preproc/grn/main.cc: Slight formatting.
11860         * src/roff/groff/groff.man: Formatting fix.
11861         * src/preproc/grn/grn.man: Ditto.
11863         * src/roff/grog/grog.pl: Fixing two embarassing bugs.
11865         * doc/groff.texinfo: Further checking/updating.
11867 2000-02-21  Werner LEMBERG  <wl@gnu.org>
11869         * README, INSTALL, PROJECT, PROBLEMS, BUGREPORT: Updated.
11871         * test-groff: Added grn subdir to path.
11873         * doc/groff.texinfo: Some restructing and other small improvements.
11875         * src/roff/groff/groff.cc (help): Fixed info string.
11877 2000-02-20  Werner LEMBERG  <wl@gnu.org>
11879         * doc/meref.me: Fix description of .GS request.
11881         * src/roff/troff/troff.man: Fixing typo.
11883         Adding the `grn' preprocessor for gremlin graphic files.
11885         * src/preproc/grn/*: This is the Berkeley distribution written by
11886         David Slattengren and Barry Roitblat, adapted to groff by Daniel
11887         Senderowicz and Werner Lemberg.
11889         * doc/grnexampl.{me,g}: A sample for grn.
11891         * Makefile.in: Added subdirectory entry for grn.
11893         * src/roff/groff/groff.cc: Added support for grn.  It can be now
11894         called with the switch `-g'.
11896         * src/roff/groff/groff.man: Updated.
11898         * src/roff/grog/grog.{man,pl,sh}: Updated.
11900         * NEWS: Updated.
11902 2000-02-11  Gaius Mulley  <gaius@glam.ac.uk>
11904         * src/include/lib.h: Added xtmptemplate and made xtmpfile
11905         parametrically polymorphic.
11907         * src/libs/libgroff/tmpfile.cc: Implemented xtmptemplate
11908         and the alterations to xtmpfile.
11909         xtmpfile can be requested to return the filename created
11910         and asked not to unlink the temp file.  The default behaviour
11911         if parameters are absent is exactly the same as before.
11913 2000-02-11  Abramo Bagnara  <abramo@alsa-project.org>
11915         A new request `length' is available which returns the length of a
11916         string in a number register:
11918         * src/roff/troff/input.cc (length_macro): Implement it.
11919         * src/roff/troff/input.cc (init_input_requests): Register it.
11921 2000-02-11  Werner LEMBERG  <wl@gnu.org>
11923         * doc/groff.texinfo, src/roff/troff/troff.man: Add documentation
11924         of the `substring' request.
11926         * src/roff/troff/troff.man, doc/groff.texinfo: Document `length'
11927         request.
11929         * src/roff/troff/TODO, NEWS: Updated.
11931 2000-02-09  Werner LEMBERG  <wl@gnu.org>
11933         * src/roff/groff/groff.man: Added an example.
11935 2000-02-06  Werner LEMBERG  <wl@gnu.org>
11937         I've considerably modified the directory structure of the
11938         distribution to get a more vertical layout.  For example, the number
11939         of top level directories has been reduced from 42 to 6.
11941         As a consequence, many changes, especially to the makefiles, were
11942         necessary:
11944         * The makefile variables `top_builddir' and `top_srcdir' have been
11945         introduced.  Virtually all relative paths have been replaced with
11946         absolute ones using these two variables.
11948         * Dependencies (in the files `Makefile.dep') are no longer part of
11949         the distribution.  Instead, they are created during a `make install'
11950         in the build directory.
11952         * aclocal.m4 (GROFF_SRCDIR, GROFF_BUILDDIR): Two new functions to
11953         make `top_srcdir' and `top_builddir' absolute.
11955         Some other changes:
11957         * Man pages now depend on the files `VERSION' and `REVISION'.
11959         * The added shell script `mkinstalldirs' will replace `mkdir' in
11960         almost all cases.
11962         * VERSION: Version number increased to 1.16.
11964 2000-02-04  Werner LEMBERG  <wl@gnu.org>
11966         * grops/psrm.cc (read_one_of): Fixed pointer incrementation.
11968         * Makefile.in: Removed $(tmac_m) since it is no longer needed
11969         (after an update of the mm stuff).
11971         * troff/Makefile.sub (majorminor.cc): Fix dependencies.
11973 2000-02-03  Werner LEMBERG  <wl@gnu.org>
11975         The .psbb request will now also accept Mac PS images (i.e. using LF
11976         as the EOL character).
11978         * troff/input.cc (ps_get_line): New function, taken from psrm.cc
11979         (with slight modifications).
11980         * troff/input.cc (do_ps_file): Use it.
11982         * test-groff: Add grohtml and grolj4 output devices to PATH.
11984 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11986         * NEWS, MORE.STUFF: Updated.
11988 2000-01-30  Cary D. Renzema  <caryr@dollar.mxim.com>
11990         Add the `srand' command to pic.
11992         * pic/lex.cc, pic/pic.y: Implement it.
11993         * pic/pic.man: Document it.
11994         * pic/pic.cc, pic/pic.tab.h: Regenerated (with yacc).
11996 2000-01-30  Werner LEMBERG  <wl@gnu.org>
11998         Add a new request `.psbb'.  This does exactly what the external
11999         program psbb did.  It scans a PostScript image file for a
12000         %%BoundingBox comment and extracts the bounding box values (in
12001         PostScript units) which are then stored in the four new (read-only)
12002         number registers `llx', `lly', `urx', and `ury'.
12004         This will allow the usage of the .PSPIC macro without worrying
12005         about unsafe behaviour of groff, i.e., it will work without the
12006         `-U' switch of groff.
12008         * troff/input.cc: Implement it.
12009         * tmac/tmac.pspic: Use it.
12010         * troff/troff.man, grops/grops.man, NEWS: Document it.
12011         * psbb/*, Makefile.in: Remove it since it is no longer needed.
12013         This is bloody C code simply adapted from psbb.c!  Any improvements
12014         welcome.
12016 2000-01-29  Werner LEMBERG  <wl@gnu.org>
12018         * man/groff_font.man: Minor clarifications.
12020         * NEWS: Updated.
12022 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12024         * afmtodit/afmtodit.pl: Use new `--' comment delimiter.
12026 2000-01-28  Gaius Mulley  <gaius@glam.ac.uk>
12028         * man/groff_font.man: Brought up to date regarding tcommand
12029         extensions.
12030         * libgroff/font.cc: Handle everything after `--' as a comment
12031         in the font files.
12032         * devps/*: Added comment delimiter inside devps font files.
12034 2000-01-28  Werner LEMBERG  <wl@gnu.org>
12036         * tmac/tmac.arkup, tmac/groff_markup.man: Replace \fC...\fR with
12037         \fC...\fP (which now works as expected).
12039         * troff/troff.man: Fix typo.
12041 2000-01-27  Gaius Mulley  <gaius@glam.ac.uk>
12043         Completed the pass_filenames implementation in troff.
12045         * libdriver/input.cc: Will read the new `F' tcommand.
12046         * troff/node.cc, troff/node.h: Will issue the new `F' tcommand.
12047         * troff/input.cc: Use it.
12049 2000-01-26  Werner LEMBERG  <wl@gnu.org>
12051         * troff/env.cc (set_font): Fix the behaviour of \fP.  The previous
12052         font will now be updated even if an invalid font is selected.
12054 2000-01-24  Werner LEMBERG  <wl@gnu.org>
12056         * doc/homepage.ms: Updated for new tmac.arkup.
12058         * tmac/tmac.html: Disable line breaks after hyphen-like characters.
12060         * tmac/tmac.arkup: Cleanup.
12062         Added `\&' to .HTML macro to `leave vertical mode', so to say.
12064         Removed obsolete .LINK macro completely.
12066         The macros .URL, .FTP, and .MAILTO now accept a third argument which
12067         will be immediately appended to the second argument (to be used with
12068         punctuation, for example).
12070         Disabled .CDFTP macro temporarily for security reasons.
12072         * tmac/groff_markup.man: Complete revision for latest changes in
12073         tmac.arkup -- note that it does not yet format correctly with
12074         grohtml :-(
12076 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
12078         * nroff/nroff.sh: Accept -Tutf8 option and pass it through.
12079         * devutf8/R.proto: Add mappings for wp, lh, rh.
12080         * devutf8/NOTES: Updated.
12082 2000-01-23  Werner LEMBERG  <wl@gnu.org>
12084         * doc/groff.texinfo: Updated version/copyright info.
12086 2000-01-21  Gaius Mulley  <gaius@glam.ac.uk>
12088         Added support for two new directives in device descriptions:
12089         `pass_filenames' (to pass the input file name to the output device)
12090         and `use_charnames_in_special' (to support e.g. accented characters
12091         in the `X' request).
12093         * include/font.h, troff/charinfo.h: Declare it.
12095         * libgroff/font.cc, libgroff/fontfile.cc: Set it.
12097         * devhtml/DESC: Use it.
12099         * troff/input.cc: New function encoded_char.
12101         * troff/token.h: Add test for `specialness'.
12103 2000-01-21  Werner LEMBERG  <wl@gnu.org>
12105         * tmac/Makefile.sub: tmac.a4 and tmac.trace have been removed by
12106         mistake from the list of files to be installed.
12108 2000-01-18  Werner LEMBERG  <wl@gnu.org>
12110         * README: Added info how to apply patches.
12112 2000-01-15  Jan Echternach  <echter@informatik.uni-rostock.de>
12114         * troff/node.cc (ligature_note::operator delete):  Fix g++ warning.
12116 2000-01-15  Gaius Mulley  <gaius@glam.ac.uk>
12118         * troff/input.cc: Add support for troffrc-end.
12120         * tbl/main.cc: Altered to issue table-start and table-end special
12121         characters if using the html device.
12123         * devhtml/*: Modified font files to incorporate html encoding of
12124         characters.
12126         * tmac/groff_markup.man: New file documenting tmac.arkup.
12128         * tmac/troffrc-end: New file.  This is invoked after all user
12129         specified macros.  Currently used by the html device to include
12130         tmac.html.  Thus no need for users to specify -mhtml anymore.
12132         * tmac/Makefile.sub (NORMALFILES): Add troffrc-end.
12133         (MAN7): Add groff_markup.man.
12135         * tmac/tmac.an, tmac/tmac.html: Small html updates.
12137         * tmac/troffrc: tmac.arkup will now be called for the html device.
12139         * libgroff/font.cc, libgroff/font.h: Altered to include reading of
12140         extra device specific information about fonts.
12142         * doc/homepage.ms: New file.  It is an example how an HTML home page
12143         could look like with grohtml.
12145         * doc/Makefile: Add homepage.ms.  Remove rule for pic.html.
12147 2000-01-12  Bruno Haible  <haible@clisp.cons.org>
12149         * devutf8/R.proto: Add mappings for ti, Fn, st, an.  Change mappings
12150         of Im, Re.
12152         * devutf8/NOTES: Updated.
12154 2000-01-08  Bruno Haible  <haible@clisp.cons.org>
12156         * eqn/box.cc, eqn/lex.cc, eqn/other.cc, eqn/over.cc, eqn/special.cc,
12157         eqn/text.cc, grodvi/dvi.cc, grops/ps.cc, grops/psrm.cc,
12158         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12159         libdriver/printer.cc, libgroff/font.cc, libgroff/string.cc,
12160         pic/lex.cc, pic/object.cc, refer/label.y, refer/ref.cc, tbl/main.cc,
12161         tbl/table.cc, tfmtodit/tfmtodit.cc, troff/dictionary.cc,
12162         troff/div.cc, troff/env.cc, troff/input.cc, troff/node.cc,
12163         troff/node.h, troff/reg.cc: Avoid most "g++ -Wall -Wno-sign-compare"
12164         warnings.
12166         * troff/node.cc (bracket_node::copy): Initialize last to NULL.
12168 2000-01-12  Fabrizio Polacco  <fab@prosa.it>
12170         grolj4: Paper size will be searched case-insensitively.
12172         * include/lib.h: Add check for strcasecmp().
12173         * grolj4/li4.cc (lookup_paper_size): Use strcasecmp().
12174         * configure.in: Check for strcasecmp().
12176 2000-01-11  Werner LEMBERG  <wl@gnu.org>
12178         * troff/Makefile.sub (majorminor.cc): Fix incorrect path to
12179         `REVISION'.
12181 2000-01-10  Werner LEMBERG  <wl@gnu.org>
12183         * Makefile.comm, Makefile.in, doc/Makefile: More fixes for the
12184         revision scheme.
12186         Add a new read-only register, `.Y', which contains the groff
12187         revision.
12189         * troff/input.cc (init_input_requests): Define it.
12190         * troff/Makefile.sub (majorminor.cc): Define `revision' string.
12191         * doc/groff.texinfo, troff/troff.man: Document it.
12193         * libgroff/Makefile.sub (version.cc): Add definition of
12194         `Version_string[]', consisting of `<major>.<minor>.<revision>'
12195         * eqn/main.cc, grodvi/dvi.cc, grolj4/lj4.cc, grops/ps.cc,
12196         grotty/tty.cc, hpftodit/hpftodit.cc, indxbib/indxbib.cc, pic/main.cc,
12197         refer/refer.cc, soelim/soelim.cc, tbl/main.cc, tfmtodit/tfmtodit.cc,
12198         troff/input.cc, pfbtops/pfbtops.c: Use it.
12200 2000-01-10  Fabrizio Polacco  <fab@prosa.it>
12202         Add a revision scheme to the groff package.
12204         * REVISION: New file.
12205         * libgroff/Makefile.sub (version.cc): Use it to define
12206         `revision_string[]'.
12207         * grops/psrm.cc: Use revision_string (converted to an unsigned
12208         integer) in constructor of resource_manager.
12210 2000-01-10  Bruno Haible  <haible@clisp.cons.org>
12212         * devutf8/Makefile.sub, devutf8/DESC.proto, devutf8/R.proto: New
12213         files.
12214         * Makefile.in (DEVDIRS): Add devutf8.
12215         * grotty/tty.cc: Include device.h.
12216         (glyph): Change type of `code' to `unsigned int'.
12217         (tty_printer): New field is_utf8.  Constructor takes device argument.
12218         (tty_printer::tty_printer): If device if `utf8', set is_utf8.
12219         (tty_printer::add_char): Change type of first arg to `unsigned int'.
12220         (tty_printer::put_char): New function.
12221         (tty_printer::end_page): Use put_char() instead of ::putchar().
12222         (make_printer): Pass device to tty_printer constructor.
12223         * nroff.sh: Determine default device by calling 'locale'.  As a
12224         fallback, look at all of $LC_ALL, $LC_CTYPE, $LANG, $LESSCHARSET.
12225         Recognize UTF-8 locales.
12226         * tmac/eqnrc: Recognize utf8 like latin1.
12227         * tmac/troffrc: Device utf8 needs tmac.tty.
12229 2000-01-07  Werner LEMBERG  <wl@gnu.org>
12231         * tmac/Makefile.sub: tmac.a4 and tmac.trace will now be installed.
12233 2000-01-07  Paul Eggert  <eggert@twinsun.com>
12235         Add a new predefined writeable number register, `year',
12236         which contains the current year.
12238         * doc/groff.texinfo, PROBLEMS, troff/troff.man: Document it.
12239         * tmac/tmac.s: Use it.
12240         * troff/input.cc (init_registers): Initialize it.
12242 2000-01-06  Werner LEMBERG  <wl@gnu.org>
12244         * PROBLEMS: Fixed typo.
12246 2000-01-04  Paul Eggert  <eggert@twinsun.com>
12248         * PROBLEMS: Add Y2k advice for the yr number register.
12250 2000-01-03  Paul Eggert  <eggert@twinsun.com>
12252         * doc/groff.texinfo: Fix Y2k bug in documentation of \n(yr.
12254 2000-01-02  Werner LEMBERG  <wl@gnu.org>
12256         * tmac/tmac.arkup: Slight modification of macros to provide better
12257         appearance for non-HTML formats.
12259 2000-01-01  Charles Levert  <charles@comm.polymtl.ca>
12261         * soelim/soelim.cc (include_path_append): realloc(NULL, n)
12262         does not automatically translate to malloc(n) on all OSes
12263         (e.g., SunOS) so do it explicitly.  Also, check the returned
12264         value.
12266 2000-01-01  Werner LEMBERG  <wl@gnu.org>
12268         * tmac/tmac.arkup: Added .LINE macro.  Some formatting.
12270         * Makefile.in: Added $(tmac_m) again since the Makefile in `mm'
12271         expects this variable
12273 2000-01-01  Gaius Mulley  <gaius@glam.ac.uk>
12275         * doc/Makefile: Added instructions to create HTML and text
12276         versions of some files.
12278 1999-12-31  Werner LEMBERG  <wl@gnu.org>
12280         * Updated INSTALL.gen.
12282         * tmac/tmac.arkup: Added fixes so that .FTP and .MAILTO works
12283         better resp. correctly with non-HTML devices.
12285 Version 1.15 released
12286 =====================
12288 1999-12-28  Werner LEMBERG  <wl@gnu.org>
12290         * NEWS, VERSION: Changed to 1.15
12292 1999-12-27  Paul Eggert  <eggert@twinsun.com>
12294         * nroff/nroff.man: -S is safer, not safe.
12296         * groff/groff.cc (main): Use `safer', not `safe', in variable
12297         names.  This does not change the behavior.
12299         * troff/input.cc (main): Likewise.
12301         * nroff/nroff.sh: Likewise.
12303         * troff/input.cc (prepend_string): New function.
12304         (main): Prepend -msafer, so that we check macro libraries for
12305         safety.
12307         * PROBLEMS: Report problem with Sun C++ 5.0 and 5.1.
12309 Version 1.14 released
12310 =====================
12312 1999-12-26  Werner LEMBERG  <wl@gnu.org>
12314         * NEWS, VERSION: Changed to 1.14.
12316 1999-12-24  Werner LEMBERG  <wl@gnu.org>
12318         * refer/refer.cc: Fixing the last fix.
12320 Version 1.13 released
12321 =====================
12323 1999-12-23  Werner LEMBERG  <wl@gnu.org>
12325         * tmac/tmac.an: A typo (`.if' instead of `.ie') made the page
12326         number disappear.
12328         * NEWS: Updated.
12330         * tmac/tmac.safer: Forgot to remove `so' from the `rm' request.
12332         * VERSION: Changed to 1.13 -- to be compliant with the Adobe 3.0
12333         document conventions, the version number must be a real.
12335 Version 1.12.1 released
12336 =======================
12338 1999-12-22  Werner LEMBERG  <wl@gnu.org>
12340         * VERSION: Changed to 1.12.1.
12342 1999-12-22  Alan Rooks  <arooks@istar.ca>
12344         * refer/refer.cc (do_file): Slight modification to satisfy the
12345         `Standard system CC - C++ Compilation System 3.1 03/03/99' on SCO
12346         UnixWare 7.1.
12348 1999-12-20  Werner LEMBERG  <wl@gnu.org>
12350         * changed prep.ai.mit.edu -> ftp.gnu.org; updated copyright
12351         notices.
12353         * tmac/tmac.safer, tmac/groff_msafer.man: Remove `so' (again) from
12354         list of unsafe requests.
12356         * pic/pic.man: Fixed a typo.
12358         * man/groff_out.man: Fixed a typo.
12360 1999-12-18  Werner LEMBERG  <wl@gnu.org>
12362         * Makefile.in: Doc fixes.
12364 1999-12-17  Fabrizio Polacco  <fab@prosa.it>
12366         * groff/groff.cc: Missing `U' option added to getopt().
12368         * troff/troff.man: Missing `U' option added to synopsis.
12370 Version 1.12 released
12371 =====================
12373 1999-12-14  Werner LEMBERG  <wl@gnu.org>
12375         * troff/input.cc (usage), groff/groff.cc (synopsis): Added -U flag
12376         to the synopsis.
12378         * nroff/nroff.sh, nroff/nroff.man: Replaced `secure', `unsecure'
12379         with the more appropriate terms `safer' and `unsafe'.
12381         * libgroff/strerror.c, aclocal.m4, configure.in: Added checks for
12382         sys_nerr and sys_errlist[].
12384         * pic/pic.h, aclocal.m4, configure.in: Added check for hypot().
12386         * pic/pic.y, pic/pic.cc: Added check for fmod().
12388 1999-12-13  Werner LEMBERG  <wl@gnu.org>
12390         * VERSION: Changed to 1.12.
12392         Here some patches from various sources; most of them taken from
12393         the Debian distribution.
12395         * tmac/groff_mdoc.man, tmac/groff_mdoc.samples.man,
12396         tmac/Makefile.sub: New files copied directly from the NetBSD
12397         distribution.  Probably, some additional adaptation later on is
12398         necessary...
12400         * tmac/tmac.safer, tmac/groff_msafer.man: Added `so' to the list
12401         of unsafe requests.
12403         * groff/groff.cc, groff/groff.man, nroff/nroff.sh,
12404         nroff/nroff.man, pic/main.cc, pic/pic.man, troff/input.cc,
12405         troff/troff.man: Added option `-U' for unsafe mode.  Safe mode
12406         (`-S') is now the default.
12408         * README, NEWS: Updated.
12410 1999-12-09  Werner LEMBERG  <wl@gnu.org>
12412         * doc/groff.texinfo: Regenerated nodes and menus with emacs.
12414         * doc/Makefile (clean): Added cleaning commands for groff.texinfo.
12416 1999-12-06  Werner LEMBERG  <wl@gnu.org>
12418         * configure.in: Removed AC_PREFIX_PROGRAM since it causes more
12419         grief than relief today.  Additionally, it is against the GNU
12420         coding standards.
12422         * configure: Recreated.
12424 1999-12-05  Werner LEMBERG  <wl@gnu.org>
12426         * configure.in: Added GROFF_LIBM.
12428         * configure: Recreated.
12430         * aclocal.m4 (GROFF_LIBM): New function which tests whether -lm is
12431         necessary.
12433         * Makefile.in: Added definition of $(LIBM).
12435         * Makefile.comm (LIBM): Removed.
12437         * pfbtops/Makefile.sub: On AIX, -lm is needed also.
12439 1999-12-03  Gaius Mulley  <gaius@glam.ac.uk>
12441         * doc/Makefile: Added rule for generation pic.html.
12443         (clean): Files produced by grohtml will be removed also.
12445         * doc/pic.ms: Small fix.
12447         * tmac/tmac.html: Fixed suppression of headers.
12449 1999-11-16  Gaius Mulley  <gaius@glam.ac.uk>
12451         * tmac/tmac.html: Fixing horizontal arrows.
12453         Turning off hyphenation.
12455         * tmac/tmac.an: Improved support for grohtml; better indentation,
12456         no footers/headers.
12458 1999-10-31  Gaius Mulley  <gaius@glam.ac.uk>
12460         * tmac/tmac.arkup: Added CDFTP macro
12462         * tmac/tmac.html: All headers are turned off for ms, me, and mm
12463         macros.
12465         * tmac/troffrc: Some additions for HTML stuff.
12467 1999-10-06  Gaius Mulley  <gaius@glam.ac.uk>
12469         * tmac/tmac.html: Small changes.
12471 1999-09-26  Werner LEMBERG  <wl@gnu.org>
12473         * doc/groff.texinfo: Minor fixes.
12475 1999-09-26  Gaius Mulley  <gaius@glam.ac.uk>
12477         * devhtml/TR: Changed spacewidth to 3.
12479         * tmac/Makefile.sub (NORMALFILES): Added tmac.arkup.
12481         * tmac/tmac.html: Moved markup macros to tmap.arkup.
12483         * tmac/tmac.arkup: New file.
12485         * grohtml/ChangeLog: New file.
12487 1999-09-16  Werner LEMBERG  <wl@gnu.org>
12489         * doc/groff.texinfo (Common Features): Added Copying chapter.
12490         Changed format to @smallbook.
12492 1999-09-15  Werner LEMBERG  <wl@gnu.org>
12494         * NEWS: Added info about groff.texinfo.
12496         * doc/groff.texinfo: Will now compile (using texi2dvi) without
12497         warning messages.
12499 1999-09-14  Werner LEMBERG  <wl@gnu.org>
12501         * groff/groff.man: More updates.
12503 1999-09-13  Werner LEMBERG  <wl@gnu.org>
12505         * doc/groff.texinfo: New file.  This manual is still very
12506         rudimentary.  It has been originally contributed by Trent
12507         A. Fisher <trent@gnurd.portland.or.us> with first corrections and
12508         additions by me.
12510         * INSTALL: Added information about the `doc' subdir
12512         * troff/troff.man: Minor fixes.
12514         * groff/groff.man: Added missing `-L arg' to SYNOPSIS section;
12515         reordered options.
12517         * troff/input.cc (usage): Added missing `-ffam' to usage message.
12519         * Makefile.in (dist): groff-$(version).tar.gz must be removed
12520         also, otherwise it is included itself in another call of `make
12521         dist'.
12523         * groff/groff.cc (synopsis): Removed superfluous space.
12525         * PROJECTS, PROBLEMS, NEWS: Updated.
12527         * VERSION: Updated to 1.12beta.
12529         * BUG-REPORT: Some cosmetic fixes.  Corrected email address.
12531         * README: Updated: Included documentation about CVS repository,
12532         mailing lists, and daily snapshots.
12534         * tmac/Makefile.sub: Fixed $(tmap_wrap) finally.
12536 1999-09-12  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
12538         * tmac/tmac.an: If the tag didn't fit into the space that the
12539         macro `TP' specifies, the rest of the tag went into the space for
12540         the next line.
12542 1999-09-12  Jeffrey Copeland  <jeff@opennt.com> 
12544         * grolj4/lj4.cc: Added duplex printing (option `-d').
12546         * grolj4/grolj4.man: Document duplex printing.
12548 1999-09-12  Werner LEMBERG  <wl@gnu.org>
12550         * doc/Makefile (pic.ps): Fixed rule which caused problems with
12551         non-GNUish sed programs.
12553         * tmac/doc-syms: Removed extra space from -iso8802-3 macro
12554         definition.
12556         * configure.in (LIBS): Added `-lc'
12558         * Makefile.comm (.man.n): Added substitution for @TMAC_AN_PREFIX@.
12560         * pic/tex.cc (solid_arc): Casting M_PI to double.
12562         * libgroff/putenv.c (putenv): Changed function header to ANSI C.
12564         * groff/groff.man, tmac/Makefile.sub (MAN7), tmac/groff_msafer.man
12565         (new file), tmac/msafer.man (deleted), tmac/groff_me.man (new
12566         file), tmac/me.man (deleted): {me,msafer} -> groff_{me,msafer}.
12568         * groff/groff_man.man: New file.  This manual page was originally
12569         written for the Debian GNU/Linux system by Susan G. Kleinmann
12570         <sgk@debian.org>.
12572         * eqn/list.cc (list_box::compute_metrics,
12573         list_box::compute_sublist_width): Removed variable declaration to
12574         avoid shadowing warnings.
12576         * grops/psrm.cc (resource_manager::process_file): Ditto.
12578         * tfmtodit/tfmtodit.cc (main): Ditto.
12580         * libgroff/font.cc (font::load_desc): Renamed auxiliary variable
12581         to avoid shadowing warnings.
12583         * tbl/table.cc (block_entry::do_divert, table::do_row): Renamed
12584         shadowing loop variable.
12586         * groff/groff.man, troff/troff.man: Added doc about grohtml.
12588 1999-09-12  Gaius Mulley  <gaius@glam.ac.uk>
12590         New grohtml frontend to convert groff input to html.
12592         * Makefile.in (CCPROGDIRS, DEVDIRS): Added html device.
12594         * tmac/Makefile.sub (NORMALFILES): Added tmac.html.
12596         * tmac/eqnrc: Added html device.
12598         * tmac/tmac.html: New file.
12600         * eqn/main.cc (do_file, inline_equation), pic/troff.cc
12601         (troff_output::start_picture, troff_output::finish_picture),
12602         tbl/main.cc (process_input_file):
12603         Surrounded output with `graphics_start' and `graphics_end' so that
12604         the html driver can identify non-text portions.
12606         * grodvi/dvi.cc (dvi_printer::set_char), grolj4/lj4.cc
12607         (lj4_printer::set_char), grops/ps.cc (ps_printer::set_char),
12608         grotty/tty.ps (tty_printer::set_char): Additional parameter
12609         `name'.
12611         * include/printer.h: Class printer: New function
12612         set_char_and_width; new variables (is_char_named, is_named_set,
12613         named_command, named_char_s, named_char_n) to hold information
12614         about named characters -- needed by the html driver.
12616         * libdriver/printer.cc (printer::set_ascii_char,
12617         printer::set_special_char): Use set_char_and_width.
12619         * devhtml/*: New device files for html driver.
12621         * grohtml/*: New driver grohtml.
12623 1999-09-11  Wilfredo Sanchez  <wsanchez@apple.com>
12625         * tmac/doc-common, tmac/tmac.an: Removed the word `UNIX' in
12626         default strings.
12628 1999-09-11  Luke Mewburn  <lukem@netbsd.org>
12630         * libgroff/string.cc (search): Small fix to test against NULL
12631         pointer.
12633 1999-09-11  Jeff Conrad  <jeff_conrad@msn.com>
12635         * troff/node.cc (copy): The characters in a bracket escape (e.g.,
12636         \b'abc') were stacked in reverse order when processed in a
12637         diversion.
12639         * troff/node.h: Added `*last' to struct `node' to make the above
12640         fix work.
12642         * troff/input.cc (read_draw_node), libdriver/input.cc (do_file):
12643         The default scale for the 'f' and 't' graphics functions were 'm'
12644         rather than 'u' (i.e., no scaling).
12646 1999-09-11  Peter Miller  <peterm@jna.com.au>
12648         * groff/groff.cc (main), groff.man, soelim/soelim.cc (main,
12649         do_file), soelim/soelim.man: Added `-I file' option to soelim,
12650         defining include paths.
12652         * soelim/soelim.cc (include_path_append): New function.
12654 1999-09-11  Larry Jones  <larry.jones@sdrc.com>
12656         * tbl/main.cc (process_options): Unix (at least Documenter's
12657         Workbench) tbl allows arbitrary non-alpha characters between
12658         options.
12660 1999-09-11  Paul Eggert  <eggert@twinsun.com>
12662         Y2k fixes.  Don't assume that the current year precedes 2000.
12664         * doc/meref.me: Add \n(y2, \n(y4.
12666         * tmac/doc-common (Yr): New number register.
12667         (Dd): Don't assume current year precedes 2000.
12669         * tmac/tmac.e (td): Likewise.
12670         (y2, y4): New number registers.
12672         * pic/pic.man: Update reference for pic paper to May, 1991
12673         version.
12675 1999-09-11  Werner LEMBERG  <wl@gnu.org>
12677         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12678         Removed quotation marks which prevented correct expansion of
12679         $(tmac_wrap).
12681         * devlj4/Makefile.sub (LJ4RES): Fixed value (600 instead of 300).
12683 1999-09-10  Werner LEMBERG  <wl@gnu.org>
12685         * Makefile.sub (DISTCLEANFILES): Added `config.log' and
12686         `config.cache'.
12688         * Removed configure.old.
12690 1999-08-31  Werner LEMBERG  <wl@gnu.org>
12692         * VERSION: Updated to 1.11.1
12694 1999-05-27  Werner LEMBERG  <wl@gnu.org>
12696         * doc/Makefile: changed `.PS' postfix to `.ps' for consistency.
12698         * tmac/Makefile.sub (install_data, stamp-wrap, uninstall_sub):
12699         added quotations around $(tmac_wrap) to avoid syntax error if
12700         variable is empty.
12702         * configure: Newly generated using autoconf 2.13.
12704         * Makefile.in (LDFLAGS): Set variable to @LDFLAGS@.
12706 Fri Aug 15 08:51:47 1997  Eric S. Raymond  <esr@snark.thyrsus.com>
12708         * README, PROJECTS, NEWS, INSTALL, VERSION, 
12709         doc/Makefile. doc/pic.ms, groff/groff.man:
12710         Prepare for 1.11 release.  No code changes.
12711         Documentation for pic added (doc/pic.ms).
12713 Sun Nov 26 11:45:13 1995  James Clark  <jjc@jclark.com>
12715         * Version 1.10 released.
12717 Fri Nov 24 09:56:16 1995  James Clark  <jjc@jclark.com>
12719         * afmtodit/afmtodit.pl: Avoid comment on first line.
12721 Mon Nov 20 11:13:49 1995  James Clark  <jjc@jclark.com>
12723         * aclocal.m4 (GROFF_INSTALL_SH): New macro.
12724         * configure.in: Call it.
12726         * Makefile.sub (configure): Depends on aclocal.m4 not acgroff.m4.
12727         (distfiles): Doesn't depend on config.log or config.cache.
12729 Sun Oct  1 08:45:36 1995  James Clark  <jjc@jclark.com>
12731         * grog/grog.sh: Use print "" rather than print in END rule.
12733 Wed Aug 23 13:30:52 1995  James Clark  <jjc@jclark.com>
12735         * tbl/main.cc (process_data): Don't give error for excess data
12736         entries that are comments.
12738 Fri Jul 28 11:00:27 1995  James Clark  <jjc@jclark.com>
12740         * tbl/main.cc (process_data): Fix case where new for-scope rules
12741         silently change meaning of code.
12743 Tue Jul  4 23:39:51 1995  James Clark  <jjc@jclark.com>
12745         * troff/env.cc (hyphenate): Loop over all consecutive sequences
12746         of non-zero hyphenation codes.
12748 Sat Jul  1 00:42:15 1995  James Clark  <jjc@jclark.com>
12750         * aclocal.m4 (GROFF_POSIX): Use conflicting declaration technique.
12752 Thu Jun 29 13:58:36 1995  James Clark  <jjc@jclark.com>
12754         * tmac/tmac.e (ip): Divert the tag so as to freeze the spaces.
12756 Tue Jun 27 12:30:16 1995  James Clark  <jjc@jclark.com>
12758         * tmac/tmac.andoc: Make it work in compatibility mode.
12760         * refer/token.h (token_info::is_range_sep): New function.
12761         * refer/token.cc (init_special_chars): Make \(en a RANGE_SEP.
12762         * refer/ref.cc (reference::output): More sophisticated check for
12763         multiple pages.
12765         * devps/prologue.ps (MANUAL): New procedure.
12766         * grops/ps.cc (main): New -m option.
12767         (usage): Include -m.
12768         (ps_printer::~ps_printer): Implement -m.
12770         * aclocal.m4 (GROFF_G): New macro.
12771         * configure.in: Call it.
12772         * Makefile.in (g): Provided by configure.
12774         * hpftodit/hpftodit.cc (basename): Rename to xbasename.
12776         * tmac/tmac.tty: Disable warning about bad fonts.  Remove font
12777         translations.
12779         * Makefile.in (tmacpath): Don't include /usr/lib/tmac.
12780         (tmac_m, tmac_s): Deleted.
12781         (sys_tmac_prefix, tmac_wrap, tmac_prefix, tmac_an_prefix,
12782         tmac_s_prefix): New variables.
12783         (MDEFINES): Change accordingly.
12784         * Makefile.comm (.man.n): Use new TMAC_* variables.
12785         * configure.in (GROFF_TMAC): Call.
12786         * aclocal.m4 (GROFF_TMAC): Define.
12787         * tmac/Makefile.sub (stamp_wrap): New target.
12788         (install_data, uninstall_sub): Handle macro wrapping.
12790 Mon Jun 26 14:54:39 1995  James Clark  <jjc@jclark.com>
12792         * tbl/main.cc (main): Ignore -T option.
12794 Thu Jun 22 09:08:06 1995  James Clark  <jjc@jclark.com>
12796         * devlj4/generate/special.map: Add definition of \(nb.
12798         * tmac/tmac.dvi: Add definition of \(nb.
12800         * troff/dictionary.c (dictionary::dictionary): association::v gets
12801         initialized by association::association.
12803         * tmac/Makefile.sub: Avoid using temporary files when installing.
12805         * troff/env.cc (environment::set_font): Make bad font number a
12806         warning.
12808         * Makefile.in (fontpath): Remove $(prefix)/lib/font from fontpath.
12810         * Makefile.in (datadir): Use share rather than lib.
12812         * groff/groff.cc (basename): Rename to xbasename.
12814 Wed Jun 21 16:59:46 1995  James Clark  <jjc@jclark.com>
12816         * Makefile (CCLIBS): Don't use.
12817         * Makefile.ccpg: Likewise.
12819         * acgroff.m4: Rename to...
12820         * aclocal.m4: Modify extensively for autoconf 2.
12821         * configure.in: Likewise.
12822         * Makefile.in: Likewise.
12824         * groff/pipeline.c (const): Declare as empty if __STDC__ not
12825         defined.
12826         (xstrsignal): Check for definition of NSIG. Conditionalize
12827         on SYS_SIGLIST_DECLARED.  Make return type const.
12829 Sat Jun 10 12:28:16 1995  James Clark  <jjc@jclark.com>
12831         * troff/input.cc (interpolate_macro): Rephrase missing space
12832         warning.
12834 Thu May 11 01:07:16 1995  Jason Merrill  <jason@phydeaux.cygnus.com>
12836         * addftinfo/addftinfo.cc, eqn/delim.cc, eqn/lex.cc, eqn/list.cc,
12837         grodvi/dvi.cc, groff/groff.cc, grops/ps.cc, grops/psrm.cc,
12838         grotty/tty.cc, include/ptable.h indxbib/indxbib.cc,
12839         libbib/index.cc, libbib/linear.cc, libbib/search.cc,
12840         libdriver/input.cc, libdriver/printer.cc, libgroff/font.cc,
12841         libgroff/lf.cc, libgroff/nametoindex.cc, libgroff/ptable.cc,
12842         libgroff/string.cc, lkbib/lkbib.cc, lookbib/lookbib.cc,
12843         pic/lex.cc, pic/object.cc, pic/pic.y refer/label.y refer/ref.cc,
12844         refer/refer.cc, refer/token.cc, tbl/main.cc, tbl/table.cc,
12845         tfmtodit/tfmtodit.cc, troff/dictionary.cc, troff/div.cc,
12846         troff/env.cc, troff/input.cc, troff/node.cc, troff/symbol.cc:
12847         Fix 'for' scoping.
12849 Wed Apr 19 21:15:11 1995  James Clark  <jjc@jclark.com>
12851         * troff/input.cc (spring_trap): Push a macro_iterator rather than a
12852         string_iterator.
12853         (spring_trap, postpone_traps, unpostpone_traps): Move to later in
12854         file.
12855         (macro_iterator::macro_iterator): Add additional argument.
12857 Mon Apr 10 12:06:02 1995  James Clark  <jjc@jclark.com>
12859         * troff/div.cc (vertical_size::vertical_size): In place of integer
12860         specifying line spacing use cunits specifying post vertical
12861         space.
12862         (macro_diversion::output, top_level_diversion::output): Likewise.
12863         * troff/div.h: Change declarations accordingly.
12864         * troff/env.cc (pending_output_line): Replace ls field by post_vs
12865         field.
12866         (pending_output_line::pending_output_line,
12867         pending_output_line::output, environment::output,
12868         environment::output_line, environment::output_title,
12869         environment::hyphenate_line):  In place of
12870         integer specifying line spacing use cunits specifying post vertical
12871         space.
12872         (environment::environment): Add post_vertical_spacing and
12873         prev_post_vertical_spacing arguments.
12874         (environment::get_post_vertical_spacing): New function.
12875         (environment::total_post_vertical_spacing): New function.
12876         (environment::post_vertical_spacing): New function.
12877         (init_env_requests): Initialize pvs request and .pvs register.
12878         * troff/env.h: Change declarations.
12880 Tue Mar 28 09:52:07 1995  James Clark  <jjc@jclark.com>
12882         * tmac/tmac.pspic: Immediately remove the temporary file.
12884 Sat Mar 25 10:43:11 1995  James Clark  <jjc@jclark.com>
12886         * tmac/tmac.pspic (PSPIC): Scale graphic uniformly even when
12887         height is specified.
12889 Thu Jan 26 16:20:13 1995  James Clark  <jjc@jclark.com>
12891         * tbl/table.c (struct vertical rule, class table_entry): Use int
12892         not short for start_row and end_row.
12894 Fri Jan 13 13:53:05 1995  James Clark  <jjc@jclark.com>
12896         * troff/input.cc (trapping_blank_line, blank_line_macro): New
12897         functions.
12898         (diverted_space_node::reread, process_input_stack): Call
12899         trapping_blank_line() rather than blank_line().
12900         (init_input_requests): Bind "blm" to blank_line_macro().
12902         * tmac/tmac.s (XA): Use .br and par@reset rather than XA.
12904 Tue Jan 10 11:40:35 1995  James Clark  <jjc@jclark.com>
12906         * troff/env.cc (environment::possibly_break_line): Require that
12907         width total excluding width of final space node be greater than
12908         the target text length.
12910 Tue Jan  3 09:13:37 1995  James Clark  <jjc@jclark.com>
12912         * troff/node.cc (kern_pair_node::vertical_extent): New function.
12914 Sun Dec  4 13:19:07 1994  James Clark  <jjc@jclark.com>
12916         * troff/node.cc (charinfo_node): New class.
12917         (glyph_node, composite_node): Derive from charinfo_node.  Change
12918         member functions accordingly.
12920 Wed Nov 30 10:29:29 1994  James Clark  <jjc@jclark.com>
12922         * nroff/nroff.sh: Use -Tlatin1 not -TLatin1.
12924 Mon Aug  8 10:17:59 1994  James Clark  (jjc@jclark.com)
12926         * tmac/tmac.tty-char: Add definitions for \(ab and \[arrowvertex].
12928         * devps/generate/textmap (notsubset): Add.
12930         * tmac/tmac.a4: New file.
12932 Sun Jul 24 20:08:42 1994  James Clark  (jjc@jclark.com)
12934         * pic/main.cc (had_parse_error): New variable.
12935         (do_picture, do_whole_file): Set had_parse_error if yyparse()
12936         returns non-zero.
12937         (main): Return 1 if had_parse_error is true.
12939 Tue Jul 19 13:40:31 1994  James Clark  (jjc@jclark.com)
12941         * grolj4/lj4.cc (main): Avoid use of strtoul.
12943 Mon Jul 18 15:03:02 1994  James Clark  (jjc@jclark.com)
12945         * nroff/nroff.sh: Default device is -Tlatin1 if $LC_CTYPE is
12946         iso_8859_1 or $LESSCHARSET is latin1.
12948 Sun Jul 10 13:38:35 1994  James Clark  (jjc@jclark.com)
12950         * hpftodit: New directory.
12951         * Makefile.in (CCPROGDIRS): Add hpftodit.
12952         * devlj4/generate: New directory.
12954 Thu Jul  7 23:49:48 1994  James Clark  (jjc@jclark.com)
12956         * configure.in: Don't use AC_VFORK.
12957         * groff/pipeline.c (run_pipeline): Use fork() always.
12959 Wed Jul  6 11:13:17 1994  James Clark  (jjc@jclark.com)
12961         * grops/ps.cc (main): Use %1 not %s in error message for -w.
12963         * Makefile.in (CCPROGDIRS): Add grolj4.
12964         (DEVDIRS): Add devlj4.
12965         * grolj4, devlj4: New directories.
12966         * tmac/troffrc: Handle lj4.
12967         * tmac/tmac.lj4: New file.
12969 Fri Jun 17 18:02:53 1994  James Clark  (jjc@jclark.com)
12971         * tmac/tmac.e (@n): Set indent to 0 before calling |h.
12973 Wed Jun  1 07:33:47 1994  James Clark  (jjc@jclark.com)
12975         * troff/input.cc (do_if_request): At end of second string, switch
12976         environments before getting next token.
12978 Fri May 20 07:39:18 1994  James Clark  (jjc@jclark.com)
12980         * devps/psstrip.sed: Split rule that strips whitespace on either
12981         side of delimiters.
12983 Wed May 18 08:13:47 1994  James Clark  (jjc@jclark.com)
12985         * troff/node.h (font_family::make_definition): Add return value to
12986         declaration.  * troff/symbol.h (symbol::operator==,
12987         symbol::operator!=): Likewise.
12989 Tue May 17 20:46:06 1994  James Clark  (jjc@jclark.com)
12991         * groff/groff.cc (main, help, synopsis): Handle -S.
12992         (possible_command::insert_arg): New function.
12994         * tmac/tmac.safer: New file.
12995         * tmac/msafer.man: New file.
12996         * tmac/Makefile.sub (FILES): Add tmac.safer and msafer.man.
12998 Thu Mar 10 01:58:30 1994  Paul Eggert  (eggert@twinsun.com)
13000         * pic/pic.h, pic/main.cc (safer_flag): New variable.
13001         * pic/pic.y (placeless_element): Avoid unsafe operations if
13002         `safer_flag' is set.
13003         * pic/main.cc (main): Add -S option, which sets `safer_flag'.
13005 Tue May 10 13:02:31 1994  James Clark  (jjc@jclark.com)
13007         * eqn/lex.cc (get_token): Put call to add_context() in block to
13008         work around Sun C++ 4.0 bug.
13010         * include/stringclass.h (operator +): Use ?: instead of `if' to
13011         work around Sun C++ 4.0 bug.
13013 Thu May  5 11:18:03 1994  James Clark  (jjc@jclark.com)
13015         * tbl/main.cc (process_format): Accept - as a synonym for the _
13016         key letter.
13018         * libbib/index.cc (minus_one): Don't declare as const.
13020 Fri Apr 29 09:32:48 1994  James Clark  (jjc@jclark.com)
13022         * troff/input.cc (get_char_for_escape_name): Push back a newline.
13024 Wed Apr 27 21:14:18 1994  James Clark  (jjc@jclark.com)
13026         * troff/input.cc (write_macro_request): New function.
13027         (init_input_requests): Bind write_macro_request to writem.
13029 Sun Apr 17 11:15:38 1994  James Clark  (jjc@jclark.com)
13031         * tmac/tmac.s (@EN): Turn filling back on even if there was no
13032         equation.
13034         * eqn/lex.cc (do_space): Supply missing argument to lex_error.
13036         * tmac/tmac.s (@TS): Renamed from TS.
13037         (TS): Call LP then TS again.
13038         (cov*ab-init): Alias @TS to TS.
13040         * tmac/tmac.s: Allow QP or RS to initialize.
13042         * tmac/tmac.s (par@load-init): New macro.  Call at end of file.
13043         Move initializations of PS and LL here.
13044         (par@init): Don't initialize HY.  Avoid changing environment 0.
13045         (par*env-init): Don't all par@reset.
13047 Thu Apr 14 19:15:45 1994  James Clark  (jjc@jclark.com)
13049         * include/posix.h: Include <fcntl.h> only if not using <osfcn.h>.
13051 Sun Apr 10 09:54:44 1994  James Clark  (jjc@jclark.com)
13053         * Makefile.in (MDEFINES): Add LDFLAGS.
13054         (LDFLAGS): Add definition line.
13056 Thu Apr  7 22:22:22 1994  James Clark  (jjc@jclark.com)
13058         * troff/input.cc (get_optional_char): Split off error check into...
13059         (check_missing_character): New function.
13060         * troff/token.h: Declare it.
13061         * troff/env.cc (margin_character): Don't call get_optional_char.
13062         Only call tok.next() after making the node.
13064         * include/lib.h (getopt): Make 2nd argument char *const *.
13066 Fri Mar 11 07:28:03 1994  James Clark  (jjc@jclark.com)
13068         * nroff/conftest.sh: Deleted.
13070 Fri Mar  4 10:51:36 1994  James Clark  (jjc@jclark.com)
13072         * pic/make-dos-dist: Deleted.
13074 Wed Mar  2 20:59:16 1994  James Clark  (jjc@jclark.com)
13076         * devps/psstrip.sed: Strip comments before stripping trailing
13077         white space.
13079 Sat Feb 19 13:07:16 1994  James Clark  (jjc@jclark.com)
13081         * Version 1.09 released.
13083 Wed Feb 16 16:53:49 1994  James Clark  (jjc@jclark.com)
13085         * tmac/doc-ditroff (hK): Don't reset page number if \nC is > 0.
13087 Mon Feb 14 08:26:40 1994  James Clark  (jjc@jclark.com)
13089         * libgroff/font.cc (font::load_desc): Fix typo in error message.
13091 Sun Feb 13 09:37:38 1994  James Clark  (jjc@jclark.com)
13093         * libgroff/new.cc (operator new): Rewrite so as to avoid warning
13094         about returning without a value.
13096         * troff/charinfo.h (charinfo::get_special_translation): Cast
13097         TRANSLATE_NONE to int.
13099         * refer/token.cc (lookup_token, store_token): Remove bogus loop
13100         test.  Fix test so that it works with n unsigned.
13102         * pic/pic.y (defaults_table): Fully bracket initializer.
13103         * pic/lex.cc (lookup_keyword): Likewise.
13104         * eqn/lex.cc (token_table, def_table): Likewise.
13105         * eqn/box.cc (param_table): Likewise.
13106         * troff/input.cc (warning_table): Likewise.
13107         * libgroff/font.cc (table): Likewise.
13108         * grops/ps.cc (ps_printer::special): Likewise.
13109         * grops/psrm.cc (resource_manager::process_file): Likewise.
13110         * tfmtodit/tfmtodit.cc (lig_chars, lig_table): Likewise.
13111         * refer/command.cc (command_table): Likewise.
13112         * addftinfo/addftinfo.cc (param_table): Likewise.
13114         * troff/symbol.cc (symbol::symbol): Prevent compiler warnings
13115         about temp's being unused.
13116         (unused): New function.
13118         * groff/pipeline.cc: Declare c_fatal.
13120         * libbib/linear.cc (bmpattern::search): Cast patterrn[--j] to
13121         uchar.
13123         * libbib/index.cc (index_search_item::load): Prevent compiler
13124         warnings about fd_closer's being unused.
13125         (unused): New function.
13127 Sat Feb 12 10:31:59 1994  James Clark  (jjc@jclark.com)
13129         * troff/input.cc (copy_mode_error): Make `prefix' static.
13130         Fix typo.
13132         * include/posix.h: Include <osfcn.h> is HAVE_CC_OSFCN_H is
13133         defined.
13134         * acgroff.m4, configure.in, Makefile: Rename HAVE_CC_UNISTD_H to
13135         HAVE_CC_OSFCN_H and modify accordingly.
13137         * troff/input.cc (init_charset_table): radicalex overlaps
13138         horizontally.
13140         * groff/acgroff.m4 (GROFF_ISC_SYSV3): New macro (from
13141         udodo!hans@relay.NL.net).
13142         * groff/configure.in: Call it.
13144         * groff/acgroff.m4 (GROFF_PCLOSE): New macro.
13145         * groff/configure.in: Call it.
13146         * include/lib.h: Conditionalize declaration of pclose.
13148         * troff/div.cc (last_page_number): New global variable.
13149         (top_level_diversion::begin_page): Exit if we just printed the
13150         last page.
13151         * troff/div.h (last_page_number): Declare it.
13152         * troff/input.cc (parse_output_page_list): Set last_page_number.
13154         * eqn/sqrt.cc: Rename \(rn to \[radicalex].
13155         * devps/S, devps/textmap, tmac/tmac.ps, tmac/tmac.dvi,
13156         tmac/tmac.X: Likewise.
13157         * tmac/tmac.ps, tmac/tmac.X, tmac.dvi: Add definitions of \(rn.
13158         * tmac.dvi: Make \(ru and \(ul extend beyond their width by .04m.
13160 Fri Feb 11 11:45:40 1994  James Clark  (jjc@jclark.com)
13162         * tmac/doc-ditroff (hK): Remove groff specific code which
13163         prevented page-breaks between separate manual entries.  If this is
13164         the first page, don't set the page number to 1.
13166         * acgroff.m4 (GROFF_POSIX): New macro.
13167         * configure.in: Use it.
13169         * troff/node.cc (class real_output_file,
13170         real_output_file::real_output_file,
13171         real_output_file::~real_output_file): Conditionalize use of
13172         popen/pclose on POPEN_MISSING.
13173         * troff/node.h: Conditionalize pipe_command on POPEN_MISSING.
13174         * troff/input.cc (pipe_command): Give an error if POPEN_MISSING.
13175         (pipe_source): Similarily.
13177         * acgroff.m4 (GROFF_PROG_CCC): Update message about libg++.
13179         * acgroff.m4 (GROFF_GETOPT, GROFF_PUTENV, GROFF_POPEN): Detect
13180         presence of declarations by trying to compile example with
13181         conflicting declarations.  (gcc only gives a warning for missing
13182         declarations.)
13184 Wed Feb  9 09:12:23 1994  James Clark  (jjc@jclark.com)
13186         * tmac/tmac.pspic (PSPIC): Allow options to specify alignment
13187         (from Ulrich Lauther).
13189 Tue Feb  8 03:56:40 1994  James Clark  (jjc@jclark.com)
13191         * libbib/linear.cc (file_buffer::load): Use S_ISREG macro.
13193 Thu Feb  3 09:34:35 1994  James Clark  (jjc@jclark.com)
13195         * indxbib/indxbib.cc (write_hash_table): Add code for case where
13196         pointers and ints have different sizes.
13198 Sun Jan  9 16:17:51 1994  James Clark  (jjc@jclark.com)
13200         * tmac/tmac.s (par*env-init): Call par@reset.
13202 Fri Jan  7 10:24:27 1994  James Clark  (jjc@jclark.com)
13204         * tmac/tmac.s (@IP): Switch to a new environment when diverting
13205         tag.
13206         (par*push-tag-env, par*pop-tag-env): New macros.
13208 Wed Jan  5 21:18:34 1994  James Clark  (jjc@jclark.com)
13210         * grops/ps.cc (ps_printer::ps_printer): Use MAX_LINE_LENGTH for
13211         initializing `out'.  Reduce MAX_LINE_LENGTH from 79 to 72.
13213         * grops/ps.cc (ps_printer::~ps_printer): Output %%CreationDate
13214         comment.  Include <time.h>.
13216 Wed Dec 15 14:14:00 1993  James Clark  (jjc@jclark.com)
13218         * grops/ps.cc (is_small_h, is_small_v): Deleted.
13219         (ps_printer::flush_sbuf): Use absolute motion only at beginning of
13220         lines.
13222 Tue Dec 14 10:06:34 1993  James Clark  (jjc@jclark.com)
13224         * troff/input.cc (read_request): Only print a prompt if reading
13225         from the terminal.  Also clearerr on EOF if reading from the
13226         terminal.  Declare isatty.
13228 Mon Nov 29 08:38:15 1993  James Clark  (jjc@jclark.com)
13230         * refer/label.y: Rename map_t to map_func and extractor_t to
13231         extractor_func.
13233 Sat Oct 30 06:38:12 1993  James Clark  (jjc@jclark.com)
13235         * include/assert.h: Don't use volatile.
13236         * libgroff/assert.cc: Likewise.
13238 Fri Oct 29 15:00:23 1993  James Clark  (jjc@jclark.com)
13240         * troff/input.cc (abort_request): Look at character in tok before
13241         calling get_copy().
13243 Thu Oct 28 14:09:48 1993  James Clark  (jjc@jclark.com)
13245         * troff/troff.h (NO_RETURN): Deleted.
13246         * troff/div.cc (cleanup_and_exit):  Don't declare aas NO_RETURN.
13247         * troff/input.cc (exit_troff): Likewise
13249         * Makefile.in: Remove `Making ...' messages since GNU make now
13250         gives these. 
13252         * configure.in: Use AC_HAVE_HEADERS(unistd.h) instead of AC_UNISTD_H.
13254 Wed Oct 27 11:12:51 1993  James Clark  (jjc@jclark.com)
13256         * tmac/tmac.s (@init): Initialize PO to \n(.o here, rather than
13257         to constant 1 inch.
13259 Sat Oct 23 10:03:52 1993  James Clark  (jjc@jclark.com)
13261         * tmac/tmac.e (hl): Use \n[.in] rather than \n(.i.
13263 Thu Oct 14 12:09:45 1993  James Clark  (jjc@jclark.com)
13265         * eqn/delim.cc (delim_box::compute_metrics): Don't increase
13266         MARK_REG if there was no left delimiter.
13268 Sat Oct  2 19:54:47 1993  James Clark  (jjc@jclark.com)
13270         * pic/troff.cc (troff_output::text): Set line thickness to
13271         relative before outputting text.
13273         * tmac/tmac.e (@k): Don't zero ?T.
13274         ((z): Likewise.
13276 Sat Sep 25 11:08:43 1993  James Clark  (jjc@jclark.com)
13278         * tmac/tmac.e ($p): Handle possibility that $3 is empty.
13280 Wed Aug 18 08:51:41 1993  James Clark  (jjc@jclark.com)
13282         * troff/input.cc (decode_args): Warn about unquoted tabs (from
13283         Paul Eggert).
13285 Tue Aug 10 08:38:32 1993  James Clark  (jjc@jclark.com)
13287         * troff/input.cc (ignoring): New variable.
13288         (ignore): Set ignoring during call to do_define_macro.
13289         (do_define_macro): Clear ignoring before interpolating terminating
13290         macro.
13291         (copy_mode_error): New function.
13292         (get_char_for_escape_name, read_long_escape_name,
13293         interpolate_arg): Use copy_mode_error.
13294         (warning_table): Add WARN_IG.
13295         * troff/troff.h (WARN_IG): Declare.
13296         (WARN_TOTAL): Change accordingly.
13298         * groff/pipeline.c (strsignal): Rename to xstrsignal.
13299         * groff/groff.cc (strsignal): Delete declaration.
13301 Fri Jul 16 01:43:12 1993  James Clark  (jjc@jclark.com)
13303         * troff/div.cc (page_offset): Use 'm' as default scaling.
13305 Sat Jul  3 09:11:38 1993  James Clark  (jjc@jclark.com)
13307         * nroff/nroff.sh: Ignore -u.
13309 Wed Jun  9 12:17:27 1993  James Clark  (jjc@jclark.com)
13311         * Makefile.in (MDEFINES): Pass down MAKEOVERRIDES.
13313 Fri Jun  4 17:35:47 1993  James Clark  (jjc@jclark.com)
13315         * tmac/tmac.s (par*box-draw): Set adjustment mode to l while
13316         drawing box.
13317         (B2): With -Tascii, leave additional vertical space before
13318         and after. Ensure that the left and right indent is restored to
13319         what it was even if the point size changes.  Don't call
13320         par@finish. Change the indent, line length and title length
13321         directly.  With -Tascii, make the width of the box 1n less.
13322         (B1): Remember 1n at the current point size.  Don't call
13323         par@reset.  Change the indent, line length and title length
13324         directly.  Ensure that the temporary indent is preserved.
13325         (par*box-mark-top): Turn off no spacing mode.
13327 Thu Jun  3 17:47:14 1993  James Clark  (jjc@jclark.com)
13329         * Makefile.in (dist): Use .gz suffix.
13331 Thu May 27 20:04:59 1993  James Clark  (jjc@jclark.com)
13333         * troff/input.cc (main): Add return 0.
13334         * pic/main.cc (main): Use return instead of exit.
13335         * tbl/main.cc (main): Likewise.
13336         * eqn/main.cc (main): Likewise.
13337         * grops/ps.cc (main): Likewise.
13338         * grotty/tty.cc (main): Likewise.
13339         * groff/groff.cc (main): Likewise.
13340         * grodvi/dvi.cc (main): Likewise.
13341         * refer/refer.cc (main): Likewise.
13342         * indxbib/indxbib.cc (main): Likewise.
13343         * lkbib/lkbib.cc (main): Likewise.
13344         * soelim/soelim.cc (main): Likewise.
13345         * addftinfo/addftinfo.cc (main): Likewise.
13346         * acgroff.m4 (GROFF_PROG_CCC, GROFF_CC_COMPILE_CHECK,
13347         GROFF_COOKIE_BUG, GROFF_CC_ANSI_BUG): Likewise.
13349         * troff/token.h (process_input_stack): Don't declare as static.
13350         * troff/input.cc: Likewise.
13352         * troff/node.c (invalidate_fontno): Make it a static member of
13353         class font_family.  Change callers.
13354         * troff/node.c: Change declaration.
13356         * tbl/main.cc (struct input_entry_format): Add explicit public
13357         specifier.
13358         * tbl/table.cc (struct text_stuff, struct single_hline_stuff,
13359         struct double_hline_stuff): Likewise.
13360         * tbl/table.h (struct entry_format): Likewise.
13361         * pic/object.h (struct saved_state): Likewise.
13363         * include/stringclass.h: Add forward declarations of friend
13364         functions that are later declared as inline.  Don't include inline
13365         specifier in friend declaration.
13367         * libgroff/lib.h: Declare popen and pclose.
13368         * acgroff.m4 (GROFF_POPEN): New macro.
13369         * configure.in: Call it.
13371         * include/lib.h (PI): New constant. Undef first if necessary.
13372         * tfmtodit/tfmtodit.cc (main): Use PI rather than M_PI.
13373         * grops/ps.cc (degrees, radians): Likewise.
13374         * libgroff/font.cc (font::get_skew): Likewise.
13376         * grops/ps.cc (is_ascii): New function.
13377         (ps_output::put_string): Use is_ascii.  Use csprint rather than
13378         isprint.
13379         (ps_printer::define_encoding): Use csspace.
13380         * libgroff/strtol.c (ISASCII): New macro.
13381         (strtol): Cast arguments to is*() and tolower() to unsigned char.
13382         Use ISASCII rather than isascii.
13383         * libgroff/cmap.cc: Use isascii() only if <ctype.h> defines it.
13384         * libgroff/cset.cc: Likewise.
13385         * libdriver/input.cc: Include cset.h.
13386         (do_file, get_integer, possibly_get_integer): Use csdigit() rather
13387         than isdigit().
13389         * refer/refer.cc (main): Use %ld rather than %d for longs.
13391         * libbib/index.cc (index_search_item_iterator::get_tag): Use
13392         S_ISREG macro.
13394         * addftinfo/addftinfo.cc (param_t): Add explicit `int'.
13396 Mon May 24 08:51:37 1993  James Clark  (jjc@jclark.com)
13398         * troff/input.cc (hyphenation_code): Skip white space between
13399         char/code pairs.
13401 Sun May 16 08:15:52 1993  James Clark  (jjc at jclark.com)
13403         * tbl/table.h (table::entry_list_tailp): New member.
13404         (table::table): Initialize it.
13405         (table::add_entry): Use entry_list_tailp to avoid O(n^2)
13406         behaviour.
13408 Sat May 15 17:26:00 1993  James Clark  (jjc at jclark.com)
13410         * grotty/tty.cc (tty_printer::add_char): Don't discard characters
13411         with negative horizontal positions. Remove casts of glyph::hpos to
13412         int.
13413         (USHRT_MAX): Delete definition.
13414         (SHRT_MAX, SHRT_MIN): New definitions.
13415         (glyph::hpos): Change type to short.
13416         (tty_printer::end_page): Output multiple backspaces if necessary.
13417          Remove casts of glyph::hpos to int.
13418         
13419 Fri May  7 12:14:37 1993  James Clark  (jjc at jclark.com)
13421         * tmac/tmac.s (@RT): New definition.
13423 Thu May  6 21:36:54 1993  James Clark  (jjc at jclark.com)
13425         * refer/refer.cc (do_file): Make sure current_filename is set when
13426         filename is "-".
13428         * pic/common.cc (common_output::dot_line): Handle zero length
13429         lines.
13431 Sun May  2 19:54:16 1993  James Clark  (jjc at jclark.com)
13433         * tmac/tmac.s (par@reset): Get value for .hy for \n[HY].
13434         (par@init): Initialize \n[HY].
13436 Mon Apr 26 11:43:16 1993  James Clark  (jjc at jclark.com)
13438         * troff/dictionary.cc (dictionary::remove): Continue when
13439         r < j < i.
13441 Sun Apr 25 11:03:00 1993  James Clark  (jjc at jclark.com)
13443         * Makefile.com (.y.cc): Avoid ending up with two versions of
13444         $(YTABH).
13446 Thu Apr 22 21:03:45 1993  James Clark  (jjc at jclark.com)
13448         * tmac/tmac.dvi (\(,c): Define only if it does not exist.
13449         (\(,C): Likewise.  Also fix typo.
13451 Wed Apr 21 08:47:32 1993  James Clark  (jjc at jclark.com)
13453         * lib.h: Delete extraneous semi-colon.
13455         * Add pso request: `so' from a pipe.
13456         * troff/input.c (file_iterator::file_iterator): Add 3rd argument.
13457         (file_iterator::close): New function.
13458         (file_iterator::~file_iterator, file_iterator::next_file): Use
13459         file_iterator::close.
13460         (file_iterator::backtrace): Say `process' rather than `file' when
13461         the stream is popened.
13462         (pipe_source): New function.
13463         (init_input_requests): Bind ".pso" to pipe_source.
13465 Tue Apr 20 00:02:26 1993  James Clark  (jjc at jclark.com)
13467         * afmtodit/afmtodit.pl: Avoid single quotes in comments.
13469         * pfbtops/pfbtops.c: Output 64 characters per line.  Output hex
13470         digits in lower case.
13472 Mon Apr 19 09:55:57 1993  James Clark  (jjc at jclark)
13474         * Version 1.08 released.
13476         * Makefile.in (dist): Insert || true after ln -s commands that
13477         might fail.
13479         * mm: Update to mm 1.16.
13481         * acgroff.m4 (GROFF_CSH_HACK): New macro.
13482         * configure.in: Call GROFF_CSH_HACK.  Substitute for
13483         SH_SCRIPT_SED_CMD.
13484         * Makefile.in (SH_SCRIPT_SED_CMD): New variable.  Include in
13485         MDEFINES.
13486         * nroff/Makefile.sub (nroff): New target.
13487         (install_data): Install nroff.
13488         * eqn/Makefile.sub (neqn): Sed with SH_SCRIPT_SED_CMD.
13489         * grog/Makefile.sub (grog): Sed grog.sh with SH_SCRIPT_SED_CMD.
13491 Sat Apr 17 08:24:28 1993  James Clark  (jjc at jclark)
13493         * eqn/Makefile.sub (neqn): Add chmod +x.
13495         * grog/Makefile.sub (grog): Remove spurious semi-colon.
13497 Fri Apr 16 22:41:57 1993  James Clark  (jjc at jclark)
13499         * troff/input.cc (string_iterator::string_iterator()): Initialize
13500         lineno and count.
13502 Tue Apr 13 10:22:28 1993  James Clark  (jjc at jclark)
13504         * troff/div.cc (macro_diversion::space,
13505         top_level_diversion::space): Don't set high_water_mark.
13506         (macro_diversion::output, top_level_diversion::output): Don't
13507         include post line space in high water mark.
13509 Wed Apr  7 12:48:18 1993  James Clark  (jjc at jclark)
13511         * eqn/eqn.y: Don't define YYDEBUG.
13512         * pic/pic.y: Likewise.
13514 Mon Apr  5 10:15:15 1993  James Clark  (jjc at jclark)
13516         * tmac/tmac.e ([3): Add space after comma following editors.
13517         Change double spaces to single spaces.
13518         ([4): Change double spaces to single spaces.
13520         * grops/ps.h (USE_PS_ADOBE_2_0): New flag for broken_flags.
13521         * grops/ps.cc (ps_printer::~ps_printer): If the USE_PS_ADOBE_2_0
13522         bit is set in broken_flags, use 2.0 rather than 3.0 as the version
13523         after %!PS-Adobe- (for Newsprint).
13525         * troff/div.cc (top_level_diversion::begin_page): When
13526         before_first_page is 1, set page_number to 1.
13528 Sun Apr  4 14:28:53 1993  James Clark  (jjc at jclark)
13530         * eqn/box.cc (box::top_level): Protect equation with \&.
13532 Sat Apr  3 23:27:25 1993  James Clark  (jjc at jclark)
13534         * groff/groff.cc (possible_command::set_name): Delete old name.
13536         * groff/groff.cc (possible_command::~possible_command): Use
13537         a_delete.
13539         * troff/node.cc (troff_output_file::begun_page): New member.
13540         (troff_output_file::troff_output_file): Initialize it.
13541         (troff_output_file::really_begin_page): Only output V command if a
13542         page has been begun.
13544         * pic/pic.y (placeless_element): Delete argument to PRINT after
13545         use.
13547 Fri Apr  2 11:31:02 1993  James Clark  (jjc at jclark)
13549         * Make wrapman work.
13550         * troff/div.h (class top_level_diversion): Replace
13551         first_page_begun by before_first_page (with opposite sense).
13552         * Change first_page_begun to before_first_page inverting sense.
13553         * troff/div.cc (class nl_reg): New class.
13554         (init_div_requests): Use class nl_reg for \n(nl.
13555         (top_level_diversion::begin_page): Don't call
13556         output_file::begin_page if before_first_page is 2;
13557         reset before_first_page afterwards.  If have_next_page_number is
13558         false, then always increment page_number.
13559         * tmac/tmac.an: Set traps within TH rather than at the top-level.
13560         Restore compatibility mode after loading, and then disable
13561         compatibility mode in TH.
13563 Thu Apr  1 11:09:34 1993  James Clark  (jjc at jclark)
13565         * grotty/tty.cc (tty_printer::end_page): Don't discard characters
13566         past last line.
13567         * troff/node.h (output_file::trailer): Declare.
13568         * troff/div.cc (cleanup_and_exit): Call output_file::trailer().
13569         * troff/node.cc (output_file::trailer): New function.
13570         (troff_output_file::~troff_output_file): Move most code into...
13571         (troff_output_file::trailer): New function.
13572         (class troff_output_file): Delete page_length member. Declare
13573         trailer().
13574         (troff_output_file::really_begin_page): Use current page length
13575         for final V command.
13577         * tbl/main.cc (struct options): New decimal_point_char member.
13578         (options::options): Initialize this.
13579         (process_options): Implement decimalpoint option.
13580         (process_data): Pass decimal_point_char option to table::table.
13581         * tbl/table.h (class table): New decimal_point_char member.
13582         (table::table): Add additional argument.
13583         * tbl/table.cc (find_dot): Rename to find_decimal_point. Add
13584         second argument specifying decimal point character.  Use this
13585         instead of '.'.
13586         (table::table): Initialize decimal_point_char.
13587         (table::add_entry): Change call to find_dot.
13589         * troff/input.cc (get_copy, token::next): Implement \V.
13590         (interpolate_environment_variable): New function.
13592 Tue Mar 30 14:41:39 1993  James Clark  (jjc at jclark)
13594         * pic/lex.cc (lookup_keyword): Rename MIN to K_MIN, MAX to K_MAX.
13595         * pic/pic.y: Likewise.
13597         * grotty/tty.cc (tty_printer::add_char, tty_printer::end_page):
13598         Add casts to int.
13599         * refer/ref.cc (reference::insert_field, reference::delete_field):
13600         Likewise.
13601         * troff/number.cc (parse_term): Likewise.
13603         * acgroff.m4 (GROFF_PROG_YACC): New macro.
13604         * configure.in: Use GROFF_PROG_YACC.
13606         * acgroff.m4 (GROFF_PROG_CCC): Don't add -O automatically for gcc
13607         and g++.
13608         * Makefile.in (OPTIMIZE): New define.
13609         (DEBUG): Empty by default.
13610         (CCFLAGS, CFLAGS): Include $(OPTIMIZE).
13612         * acgroff.m4 (GROFF_SYS_SIGLIST): Don't quote program.
13613         (GROFF_ARRAY_DELETE): Likewise.
13614         (GROFF_CC_COMPILE_CHECK): Quote use of $2 and $3.
13616         * troff/env.cc (trie::~trie): Make virtual to shut up g++.
13618         * devps/psstrip.sed: Use different delimiter on last line (so that
13619         it works with BSD 4.4 sed.)
13621 Mon Mar 29 17:07:14 1993  James Clark  (jjc at jclark)
13623         * devps/psstrip.sed: Delete comments.
13625         * acgroff.m4 (AC_GETOPT): Don't test whether <unistd.h> declares
13626         optind, opterr, optarg.
13627         * lib.h: When UNISTD_H_DECLARES_GETOPT is defined, declare optind,
13628         opterr, optarg.
13630 Sun Mar 28 17:44:25 1993  James Clark  (jjc at jclark)
13632         * Makefile.in (check): Dummy target.
13634 Wed Mar  3 04:53:38 1993  James Clark  (jjc at jclark)
13636         * Version 1.07 released.
13638         * Integrate mm 1.11.
13640         * tbl/table.cc (alphabetic_block_entry::print): start_row was used
13641         where start_col was meant.
13643 Thu Feb 25 07:55:36 1993  James Clark  (jjc at jclark)
13645         * grog/grog.sh, grog/grog.pl: Recognize PH and SA as -mm macros.
13647 Wed Feb 24 10:15:34 1993  James Clark  (jjc at jclark)
13649         * troff/input.cc (token::next): Make \z\o'...' and similar things
13650         work.
13652         * env.h (MARGIN_CHARACTER_ON, MARGIN_CHARACTER_NEXT): New
13653         constants.
13654         (environment): Add margin_character_flags member.
13655         * env.cc (environment::environment(symbol),
13656         environment::environment(const environment *): Initialize
13657         margin_character_flags.
13658         (margin_character): Rewrite.
13659         (environment::output_line): Add a margin character if
13660         margin_character_flags is non-zero.  Turn off the
13661         MARGIN_CHARACTER_NEXT bit.  If that makes margin_character_flags
13662         zero, use margin_character_node without copying and then set
13663         margin_character_node to 0.
13665         * devps/DESC.in: Change minimum size to 1000.
13667 Tue Feb 23 14:57:49 1993  James Clark  (jjc at jclark)
13669         * troff/symbol.h (symbol::hash): Change return type to unsigned
13670         long.
13671         * troff/dictionary.cc (dictionary::lookup, dictionary::remove):
13672         Add casts to int.
13674         * test-groff: Use -r rather than -x.
13676         * grops/psfig.diff: Include in distribution again.
13678 Mon Feb 22 09:10:44 1993  James Clark  (jjc at jclark)
13680         * Makefile.in (dist): Use gzip.
13682 Sun Feb 21 11:12:53 1993  James Clark  (jjc at jclark)
13684         * acgroff.m4 (GROFF_GETOPT): Check for declaration of getopt() in
13685         unistd.h as well as in stdlib.h.
13686         * include/lib.h: Include <stdlib.h> is STDLIB_H_DECLARES_GETOPT is
13687         defined; otherwise include <sys/types.h> and <unistd.h> if
13688         UNISTD_H_DECLARES_GETOPT is defined.
13690         * configure.in: use builtin(include, ... rather than include(...
13691         * configure: Regenerate with autoconf 1.3.
13693         * libdriver/print.cc (printer::adjust_arc_center): Use new
13694         algorithm suggested by Andy Fyfe.
13696         * libdriver/printer.cc (printer::adjust_arc_center): New function.
13697         * include/printer.h: Declare this.
13698         * grops/ps.cc (ps_printer::draw): Use it.
13699         * grodvi/dvi.cc (dvi_printer::draw): Use it.
13701 Fri Feb 19 23:13:51 1993  James Clark  (jjc at jclark)
13703         * Makefile.comm (.man.n): Replace macrodir by tmacdir.
13705 Thu Feb 11 16:46:59 1993  James Clark  (jjc at jclark)
13707         * eqn/main.cc (main): Handle "eqn -".
13709 Mon Jan  4 20:29:56 1993  James Clark  (jjc at jclark)
13711         * tmac/tmac.e (++): Install fix from comp.bugs.4sd.
13713         * mm: Integrate version 1.08.
13715         * pic/troff.cc (troff_output::finish_picture): Set
13716         EQN_NO_EXTRA_SPACE reg to 0 rather than removing it.
13717         * eqn/box.cc (box::extra_space): Set EQN_NO_EXTRA_SPACE_REG to 0
13718         if it's not defined. Check whether the register is non-zero rather
13719         than whether it's not defined.
13720         * tmac.e ({, <): Make argument to \x zero if \n(0x is non-zero.
13722         * indxbib/indxbib.cc: Move all signal handling into...
13723         * indxbib/signal.c: New file.
13724         * configure.in: Call AC_RETSIGTYPE.
13726         * acgroff.m4 (GROFF_STRUCT_EXCEPTION): New macro.
13727         * configure.in: Call GROFF_STRUCT_EXCEPTION.
13728         * libgroff/matherr.c: Protect with ifdef HAVE_STRUCT_EXCEPTION.
13730         * troff/input.cc (token::token, token::operator=): Work round SGI
13731         C++ bug.
13732         * pic/object.cc (position::position): Likewise.
13734 Mon Dec 28 21:50:21 1992  James Clark  (jjc at jclark)
13736         * pic/pic.h: Move declaration of hypot().
13738 Wed Dec 16 12:28:29 1992  James Clark  (jjc at jclark)
13740         * pic/pic.h: Declare hypot().
13742         * pic/pic.h: Define M_PI if necessary.
13744 Thu Dec 10 12:03:29 1992  James Clark  (jjc at jclark)
13746         * tmac/tmac.e (re): Add alternative version that doesn't use groff
13747         `.ta T' feature.
13749         * devps/prologue.ps (RE): Handle the possibility that the old font
13750         doesn't have a FontName entry.
13752 Wed Dec  2 10:25:29 1992  James Clark  (jjc at jclark)
13754         * tmac/tmac.e (fam): Redefine to set family in environment 2.
13755         (@C): Use @fam not fam.
13757 Thu Nov 26 16:01:25 1992  James Clark  (jjc at jclark)
13759         * lookbib/lookbib.cc (main): Change type of start to const char *.
13760         * lkbib/lkbib.cc (main): Likewise.
13762         * eqn/lex.cc (definition::definition): Don't use member
13763         initializer syntax for members of anonymous unions.
13765         * troff/input.cc (input_stack::backtrace): Change type of to const
13766         char *.
13768 Wed Nov 25 13:43:09 1992  James Clark  (jjc at jclark)
13770         * include/stringclass.h (class string): Declare inline friend
13771         functions as inline in class declaration.
13772         * troff/hvunits.h (class hunits, class vunits): Likewise.
13773         * include/refid.h (class reference_id): Likewise
13774         * troff/troff.h (points_to_units(units), scale(units, double)):
13775         Delete declarations.
13776         * libdriver/input.cc (get_char): Delete declaration.
13777         * include/lib.h: Change 2nd argument of getopt from const char **
13778         to char **.
13779         * troff/symbol.cc (symbol::symbol): Cast `new char *[n]' to `const
13780         char **' before assigning to a `const char **'.
13781         * tbl/table.cc: Delete extra declarations of prints().
13783 Tue Nov 24 14:33:13 1992  James Clark  (jjc at jclark)
13785         * libgroff/font.cc (font::load_desc): Cast `new char *[n]' to `const
13786         char **' before assigning to a `const char **'.
13788         * libgroff/errarg.cc (errarg::errarg): Don't use member
13789         initializer syntax for members of anonymous unions.
13791 Sat Nov 21 05:02:23 1992  James Clark  (jjc at jclark)
13793         * mm: Integrate version 1.07.
13795 Tue Nov 17 16:44:27 1992  James Clark  (jjc at jclark)
13797         * troff/input.c (translate2): Rename to
13798         (translate_no_transparent).
13799         (init_input_requests): Rename tr2 to trnt.
13801 Mon Nov 16 09:49:32 1992  James Clark  (jjc at jclark)
13803         * troff/charinfo.h (class charinfo): Add transparent_translate field.
13804         (charinfo::set_translation, charinfo::set_special_translation):
13805         Add second argument that specifies value for
13806         transparent_translate.
13807         (charinfo::get_translation, charinfo::get_special_translation):
13808         Add optional second argument that specifies whether translation is
13809         being used for transparent throughput.
13810         * troff/input.cc (charinfo::set_translation,
13811         charinfo::set_special_translation): Handle second argument.
13812         (charinfo::charinfo): Initialize transparent_translate.
13813         (translate): Split main part off into
13814         (do_translate): New function.  Pass argument saying whether
13815         translation applies to transparent throughput.
13816         (translate2): New request.
13817         (init_input_requests): Bind translate2 to `tr2'.
13819 Wed Nov 11 11:43:20 1992  James Clark  (jjc at jclark)
13821         * tbl/table.h (class table): Add `nokeep' flag.
13822         * tbl/main.cc (process_options): Handle `nokeep' option.
13823         * tbl/table.cc (table::init_output, table::do_row, table::do_top,
13824         table::do_bottom): Don't output keep/release macro definitions or
13825         calls when `nokeep' option has been specified.
13827 Sat Nov  7 01:28:33 1992  James Clark  (jjc at jclark)
13829         * tmac/tmac.Xps (Xps-char): Use " as delimiter for \Z.
13831 Wed Nov  4 16:29:04 1992  James Clark  (jjc at jclark)
13833         * tbl/table.cc (table_entry::divert, block_entry::do_divert,
13834         block_entry::divert, alphabetic_block_entry::divert): Add extra
13835         argument giving column separation.
13836         (table::compute_widths): Pass column separation to
13837         table_entry::divert().
13838         (block_entry::do_divert): If an entry spans multiple columns and a
13839         minimumum width has been specified for each column, then set the
13840         line length to the sum of the widths (plus possibly the column
13841         separations).
13843         * troff/input.cc (set_escape_char): Don't set the escape_char
13844         until after calling has_arg().
13846 Tue Nov  3 11:23:27 1992  James Clark  (jjc at jclark)
13848         * tbl/table.cc (table::do_top): Add missing \s0 for double box
13849         case.
13851         * tbl/table.cc (table::print_double_hline): Avoid extra new line
13852         in case where r > nrows - 1.
13854         * tbl/table.cc (BODY_HEIGHT): Deleted.
13855         (LINE_SEP): New definition.
13856         (table::print_single_hline, table::print_double_hline,
13857         table::compute_vrule_top_adjust, table::compute_vrule_bot_adjust,
13858         table::do_row, table::do_top): Use LINE_SEP space before a line
13859         instead of \n[.v]-BODY_HEIGHT-BODY_DEPTH.
13861         * tbl/table.cc (text_entry::print_contents): New function.
13862         (text_string_name, right_text_string_name): Deleted.
13863         (TEXT_STRING, RIGHT_TEXT_STRING): Deleted.
13864         (simple_text_entry::do_width, numeric_text_entry::do_width,
13865         alphabetic_text_entry::do_width): Don't store the contents of the
13866         entry in a string.
13867         (left_text_entry::simple_print, right_text_entry::simple_print,
13868         center_text_entry::simple_print,
13869         alphabetic_text_entry::simple_print,
13870         numeric_text_entry::simple_print): Print the entry directly
13871         instead of using the stored string.
13873 Fri Oct 30 10:39:32 1992  James Clark  (jjc at jclark)
13875         * devps/Makefile: Strip PostScript files.
13876         * devps/prologue: Rename to...
13877         * devps/prologue.ps.
13878         * devps/psstrip.sed: New file.
13879         * devps/download: Use .pfa rather than .ps for installed versions
13880         of fonts.
13882 Thu Oct 29 09:14:43 1992  James Clark  (jjc at jclark)
13884         * troff/env.cc (input_trap): Give a warning if the argument is out
13885         of range.
13887         * troff/env.cc (adjust): Treat negative argument as missing. Round
13888         argument > 5 down to 5.
13890         * troff/env.cc (center, right_justify): Make negative argument zero.
13892         * troff/div.cc (page_offset, vertical_position_traps): Treat
13893         invalid argument as missing.
13894         * troff/env.cc (line_spacing, line_length, title_length, indent,
13895         underline, hyphen_line_max_request, control_char,
13896         no_break_control_char, widow_control_request, adjust, input_trap,
13897         point_size): Likewise.
13898         * troff/node.cc (ligature, kern_request, bold_font, track_kern,
13899         constant_space): Likewise.
13900         * troff/input.cc (compatible, shift, warn_request,
13901         set_escape_char): Likewise.
13903         * tbl/main.cc (format::format): Avoid doing `new int[0]'.
13904         * tbl/table.cc (table::table): Likewise.
13906         * Makefile.dev (install_dev): depends on $(DEVFILES).
13908 Wed Oct 28 08:30:57 1992  James Clark  (jjc at jclark)
13910         * devX75, devX75-12, devX100, devX100-12: New directories.
13911         * Makefile.in: Add these to DEVDIRS.
13913         * troff/Makefile.sub, eqn/Makefile.sub, indxbib/Makefile.sub,
13914         afmtodit/Makefile.sub, tmac/Makefile.sub, nroff/Makefile.sub,
13915         grog/Makefile.sub, mm/Makefile.sub (uninstall_sub): New target.
13916         * Makefile.in (uninstall, uninstall_sub, uninstall_dirs): New
13917         targets.
13918         * Makefile.ccpg, Makefile.cpg, Makefile.dev, Makefile.man
13919         (uninstall): New target.
13920         * Makefile.comm (uninstall, uninstall_sub, uninstall_man,
13921         uninstall_prog, uninstall_dev): New targets.
13923         * troff/div.cc (return_request): Treat an invalid argument as
13924         missing.
13926 Mon Oct 26 11:33:47 1992  James Clark  (jjc at jclark)
13928         * tmac/tmac.e ((f): Set up the environment even when there's a
13929         current diversion.  Transperently throughput a call to @N.
13930         (@N): New macro.
13932 Thu Oct 22 05:05:59 1992  James Clark  (jjc at jclark)
13934         * tbl/table.cc (table::compute_vrule_top_adjust): Round adjustment
13935         up to vertical resolution.
13937         * tbl/table.cc (table::do_row): Change row number after printing
13938         stuff list.
13940         * pic/lex.cc (get_token_after_dot): Make .left and .right work.
13942 Wed Oct 21 14:46:45 1992  James Clark  (jjc at jclark)
13944         * Rename CHANGES to NEWS.
13946 Tue Oct 20 23:25:21 1992  James Clark  (jjc at jclark)
13948         * libgroff/new.cc (operator new): Avoid calling malloc(0).
13950 Mon Oct 19 09:10:13 1992  James Clark  (jjc at jclark)
13952         * man.ultrix: Removed.
13954 Sun Oct 18 06:35:15 1992  James Clark  (jjc at jclark)
13956         * Makefile.comm (extraclean): Delete files whose names begin with
13957         `='.
13959         * pic/troff.cc (troff_output::text): Fix typo in implementation of
13960         aligned text.
13962 Sat Oct 10 09:32:29 1992  James Clark  (jjc at jclark)
13964         * troff/env.cc (hyphenate_request, vertical_spacing, no_number):
13965         * troff/div.cc (page_length, need_space, space_request): Treat
13966         invalid optional argument as missing.
13967         * troff/env.cc (number_lines): If the first argument is present
13968         but not a number, turn on line numbering, don't change the next
13969         line number and parse the remaining arguments.
13971         * tmac/tmac.e (@q): Do the `ne' before changing to environment 2.
13973 Thu Oct  8 10:24:40 1992  James Clark  (jjc at jclark)
13975         * eqn/box.h: Change declaration accordingly.
13976         * eqn/box.cc (set_gsize): Change return type to int.  Return 0 if
13977         the specified size was bad but don't give an error.  Check for
13978         overflow.
13979         * eqn/main.cc (main): Change caller. Leave validation to set_gsize.
13980         * eqn/lex (do_size): Likewise.
13982 Wed Oct  7 09:48:59 1992  James Clark  (jjc at jclark)
13984         * acgroff.m4 (GROFF_PROG_CCC): Use fopen when checking for C++
13985         compatible headers.
13987 Sun Oct  4 18:24:02 1992  James Clark  (jjc at jclark)
13989         * tbl/table.cc (table::init_output): Improve error message when
13990         table won't fit on one page.
13992 Fri Oct  2 10:41:40 1992  James Clark  (jjc at jclark)
13994         * pic/troff.cc (troff_output::start_picture): Generate line
13995         containing a horizontal motion equal to the width of the picture.
13997         * groff/groff.cc (main): Allow PROG_PREFIX to be set at runtime
13998         using GROFF_COMMAND_PREFIX environment variable.
14000 Fri Sep 25 11:40:40 1992  James Clark  (jjc at jclark)
14002         * mdate.sh: Use $NF rather than $(NF).
14004 Tue Sep 22 09:47:24 1992  James Clark  (jjc at jclark)
14006         * pic/main.cc (main):  Use %1 not %c in argument to warning.
14008         * eqn/main.cc (main): Output code to check that geqn was given the
14009         correct -T option.
14011 Mon Sep 21 10:59:16 1992  James Clark  (jjc at jclark)
14013         * Makefile.in (dist): Instead of doing `make -f ../Makefile', do
14014         `ln -s ../Makefile .; make; rm -f Makefile'.
14016         * troff/hyphen: Rename to...
14017         * troff/hyphen.us:
14018         * troff/input.cc (main): Delete -H option. Don't call
14019         read_hyphen_file().
14020         * troff/env.cc: Include searchpath.h and macropath.h.
14021         (exception_dictionary): Deleted.
14022         (ht): Deleted.
14023         (read_hyphen_file): Deleted.
14024         (hyphenation_language): New struct.
14025         (class trie, class hyphen_trie): Move declarations up.
14026         (trie_node::~trie_node): Deleted.
14027         (trie::delete_trie_node): New function.
14028         (trie::do_delete): New pure virtual function.
14029         (hyphen_trie::do_delete): New function.
14030         (trie::~trie): New function.
14031         (hyphen_trie::~hyphen_trie): New function.
14032         (trie::clear): No need to chcek that tp is not 0.
14033         (current_language, language_dictionary): New variables.
14034         (hyphen_word): Give an error if no current language.  Use
14035         exceptions dictionary in current language.
14036         (hyphen_trie::read_patterns_file): Find file using macro_path.
14037         Allow comments (starting with %) in patterns file.  Don't make it
14038         a fatal error if the file can't be found.
14039         (hyphenate): Return if no current language.  Get the exceptions
14040         dictionary and the hyphenation patterns from the current language.
14041         (set_hyphenation_language): New variable.
14042         (hyphenation_patterns_file): New function.
14043         (hyphenation_language_reg): New class.
14044         (hyphenation_language_reg::get_string): New function.
14045         (init_hyphen_requests): Bind "hla" to set_hyphenation_language and
14046         "hpf" to hyphenation_patterns_file.  Initialize `.hla' number
14047         register.
14048         * groff/groff.cc (main, help, synopsis): Delete -H option.
14049         * include/Makefile.sub: Don't define HYPHENFILE.
14050         * Makefile.in: Delete hyphenfile variable and remove from MDEFINES.
14051         * Makefile.comm (.man.n): Don't substitute for HYPHENFILE.
14052         * tmac/troffrc: Set hyphenation language to `us'. Load `hyphen.us'
14053         hyphenation patterns.
14055 Sun Sep 20 09:33:02 1992  James Clark  (jjc at jclark)
14057         * eqn/neqn.sh: New file.
14058         * eqn/Makefile.sub: Handle neqn.sh.
14060         * eqn/eqn.h: Declare `nroff' variable.
14061         * eqn/box.cc (param_table): Add `nroff' param.
14062         (nroff): Define it.
14063         * eqn/lex.cc (yylex): Handle TDEFINE and NDEFINE using `nroff'
14064         variable.
14065         * tmac/eqnrc: Set `nroff' to 1 for -Tascii or -Tlatin1.
14067         * troff/troff.h (WARN_FONT): New warning.
14068         (WARN_TOTAL): Change accordingly.
14069         * troff/input.cc (DEFAULT_WARNING_MASK): Include WARN_FONT.
14070         (warning_table): Add WARN_FONT.
14071         * troff/node.cc (mount_font_no_translate): Pass argument to
14072         font::load_font.  If this is non-zero, give a warning.
14073         Don't give an error message when accessing a font that has already
14074         been found to be invalid.
14075         * include/font.h (font::load, font::load_font): Add additional
14076         optional argument which suppresses error message if the font is
14077         not found.
14078         * libgroff/font.cc (font::load_font): Handle additional argument.
14079         (font::load): Add additional argument. If this is non-null, set it
14080         to 1 and don't give error message.
14082         * include/printer.h (printer::end_page): Add argument giving
14083         length of page.
14084         * libdriver/input.cc (do_file): Pass this.
14085         * grops/ps.cc (ps_printer::end_page): Add argument.
14086         * grodvi/dvi.cc (dvi_printer::end_page,
14087         draw_dvi_printer::end_page): Add argument.
14088         * grotty/tty.cc (class tty_printer): Remove lines_per_page and
14089         columns_per_page members. New member nlines.
14090         (DEFAULT_LINES_PER_PAGE): Deleted.
14091         (tty_printer::tty_printer): Don't compute lines_per_page from
14092         font::paperlength. Don't compute columns_per_page from
14093         font::paperwidth.
14094         (tty_printer::add_char): Don't check horizontal position against
14095         columns_per_page. Grow glyphs vector if neccessary.
14096         (tty_printer::end_page): Add argument giving page_length in units.
14097         Discard lines past end of page.
14099 Wed Sep 16 06:29:52 1992  James Clark  (jjc at jclark)
14101         * tmac/tmac.tty-char: Fix definition of \(/l.
14103         * tmac/tmac.X: Define \(en.
14105 Tue Sep 15 10:37:13 1992  James Clark  (jjc at jclark)
14107         * acgroff.m4 (GROFF_PRINT): If a system has lpr and lp but not
14108         lpq, then use lp rather than lpr.
14110         * tmac/tmac.s (par@reset): Don't call `ad'.
14111         (par*env-init): Call `ad'.
14113 Sun Sep 13 18:48:20 1992  James Clark  (jjc at jclark)
14115         * mdate.sh: Use $(NF) instead of $6 to extract year from output of
14116         date.
14118         * troff/symbol.cc: #undef BLOCK_SIZE if it's defined.
14119         * indxbib/indxbib.cc: Likewise.
14121 Sun Sep  6 09:44:46 1992  James Clark  (jjc at jclark)
14123         * libgroff/putenv.c: New file.
14124         * libgroff/Makefile.sub: Add putenv.c to CSRCS.
14125         * Makefile.in: Say that putenv.o can be one of LIBOBJS.
14126         * configure.in: Test for putenv with AC_REPLACE_FUNCS. Test for
14127         stdlib.h with AC_HAVE_HEADERS.
14129 Sat Sep  5 18:11:52 1992  James Clark  (jjc at jclark)
14131         * indxbib/dirnamemax.c: Include <sys/dir.h> only if <dirent.h>
14132         does not exist.
14134 Fri Sep  4 09:43:26 1992  James Clark  (jjc at jclark)
14136         * eqn/box.cc (gsize): Make it an int.
14137         (set_gsize): Parse argument handling increment or decrement.
14138         (box::top_level): Convert gsize to a string.
14140         * troff/input.cc (exit_troff): Make buf unsigned char [].
14141         Call to make_temp_iterator casts buf to char*.
14143         * Makefile.in ($(TARGETS), dot): Pass $(MDEFINES) to recursive makes.
14145         * Makefile.ccpg (depend.temp): Depends on $(YTABC).
14146         * Makefile.cpg (depend.temp): Likewise.
14148         * Makefile.dep: Remove Makefile.dep from $(REALCLEANFILES).
14150         * Makefile.comm: Add y.output to MOSTLYCLEANFILES.
14152 Thu Sep  3 08:01:55 1992  James Clark  (jjc at jclark)
14154         * tmac/tmac.s (B, I, BI, CW): Rewrite avoiding aliases.
14156 Tue Sep  1 18:24:53 1992  James Clark  (jjc at jclark)
14158         * Version 1.06 released.
14160         * Integrate mm 1.04.
14162 Fri Aug 28 11:28:19 1992  James Clark  (jjc at jclark)
14164         * Makefile.comm, Makefile.ccpg, Makefile.cpg: Fix TAGS target.
14166 Thu Aug 27 11:03:33 1992  James Clark  (jjc at jclark)
14168         * afmtodit/afmtodit.pl: Add -n option that disables generation of
14169         ligatures command.
14170         * devps/generate/Makefile (CR, CB, CI, CBI): Pass -n flag to
14171         afmtodit. Regenerate.
14173         * tmac/tmac.e ()z): Adjust _b if necessary so as to avoid moving
14174         @f back past the current position.
14176         * tmac/tmac.e: Change calls to @R so that comments are not part of
14177         arguments.
14179 Tue Aug 25 10:42:07 1992  James Clark  (jjc at jclark)
14181         * configure.in: Check for mkstemp with AC_HAVE_FUNCS.
14183         * acgroff.m4 (GROFF_PROG_CCC): Don't check for <osfcn.h>. Instead
14184         check that we can link a call to a function declared in <stdio.h>.
14185         (GROFF_UNISTD_H): New macro.
14186         * configure.in: Call it.
14187         * Makefile.in: Document it.
14188         * include/posix.h: New file.
14189         * troff/troff.h: Don't include <osfcn.h>
14190         * troff/input.cc: Include posix.h.
14191         * libgroff/new.cc, libgroff/tmpfile.cc: Include posix.h rather than
14192         osfcn.h.
14193         * indxbib/indxbib.cc, libbib/{search.cc,linear.cc,index.cc}:
14194         Include posix.h rather <sys/types.h>, <sys/stat.h>, <osfcn.h>,
14195         <fcntl.h>.
14196         * indxbib/indxbib.cc (S_IRUSR, S_IRGRP, S_IROTH): Delete definitions.
14197         * libbib/index.cc (S_ISREG, O_RDONLY): Delete definitions.
14198         * libbib/search.cc (O_RDONLY): Delete definition.
14199         * refer/refer.cc, include/driver.h, pic/pic.h, groff/groff.cc:
14200         Don't include <osfcn.h>.
14202         * acgroff.m4 (GROFF_TIME_T): New macro.
14203         * configure.in: Call it.
14204         * Makefile.in: Document it.
14206         * acgroff.m4 (GROFF_TRADITIONAL_CPP): New macro.
14207         * configure.in: Call it.
14208         * Makefile.in: Document -DTRADITIONAL_CPP.
14209         * include/ptable.h: Don't include generic.h.
14210         (name2): Define it.
14212         * tmac/tmac.s (][): Make [T1 and [T2 aliases for [T.
14213         Afterwards remove [T1 and [T2.
14214         (ref*spec!0, ref*spec!2): Use T1 rather than T.
14215         (ref*spec!1, ref*spec!4, ref*spec!4): Use T2 rather than T.
14216         (ref*add-T2): Renamed from ref*add-T.
14217         (ref*add-T1): New macro.
14219 Mon Aug 24 11:11:11 1992  James Clark  (jjc at jclark)
14221         * acgroff.m4 (AC_PROG_CCC): Use GROFF_EXIT rather than exit 1.
14223         * libbib/index.cc: Include <fcntl.h>.
14224         (O_RDONLY): Define if necessary.
14225         (make_index_search_item, index_search_item_iterator::get_tag,
14226         index_search_item::check_files): Use O_RDONLY.
14227         * libbib/seach.cc: Include <fcntl.h>, <sys/types.h>, <sys/stat.h>.
14228         (O_RDONLY): Define if necessary.
14229         (search_list::add_file): Use O_RDONLY.
14230         * indxbib/indxbib.cc: Include <fcntl.h>, <sys/types.h>,
14231         <sys/stat.h>.
14232         (S_IRUSR, S_IRGRP, S_IROTH): Define if necessary.
14233         (main): Use these.
14235         * libbib/index.cc (S_ISREG): Define it if necessary.
14236         (index_search_item::load): Use S_ISREG.
14238         * include/driver.h: Include <errno.h>.
14240 Sun Aug 23 11:32:18 1992  James Clark  (jjc at jclark)
14242         * eqn/box.cc (body_height): Increase default value to 85.
14243         (body_depth): Increase default value to 35.
14245 Fri Aug 21 05:34:42 1992  James Clark  (jjc at jclark)
14247         * eqn/pbox.h (SAVE_FONT_STRING): Define it.
14248         * eqn/box.cc (box::top_level): Hide use of \R in a string that is
14249         protected from expansion with \E.
14251         * acgroff.m4 (GROFF_PAGE): Use `case' to test domain.
14253         * Makefile (Makefile): New target.
14255         * Makefile.sub (configure, distfiles): New targets.
14257         * acgroff.m4 (GROFF_BROKEN_SPOOLER_FLAGS): Avoid using ${var:-val}
14258         construct.
14260 Thu Aug 20 12:27:26 1992  James Clark  (jjc at jclark)
14262         * eqn/box.cc (param_table): Add body_height and body_depth.
14264         * eqn/lex.cc (def_table): Make circumflex in hat_def roman.
14266 Tue Aug 18 16:24:25 1992  James Clark  (jjc at jclark)
14268         * psbb/Makefile.sub: Don't link with libgroff.a.
14270         * acgroff.m4 (GROFF_PUTENV): New macro.
14271         * configure.in: Call GROFF_PUTENV.
14272         * Makefile.in: Document STDLIB_H_DECLARES_PUTENV.
14273         * groff/groff.cc: Don't declare putenv if STDLIB_H_DECLARES_PUTENV
14274         is defined.
14276         * troff/env.cc (distribute_space): Rename force_forward argument
14277         to force_reverse.  Reverse the list if force_reverse is true.
14279 Mon Aug 17 17:49:05 1992  James Clark  (jjc at jclark)
14281         * tmac/tmac.an: Don't define a string `T'. Just define Tm.
14283         * eqn/pile.cc (matrix_box::compute_metrics): Don't allow computed
14284         height or depth to be negative.  Guard against SUP_RAISE quantity
14285         being negative.
14287 Sat Aug 15 08:18:54 1992  James Clark  (jjc at jclark)
14289         * devps/generate/textmap: Add `an' (arrowhorizex).
14290         * tmac/tmac.ps: \(an overlaps horizontally.
14291         * tmac/tmac.dvi, tmac/tmac.tty: Add `an'.
14293         * devps/symbolchars: Add arrowverttp, arrowvertbt.
14294         * devps/textmap: Add arrowvertex.
14295         * eqn/delim.cc (delim_table): Add uparrow, downarrow and
14296         updownarrow delimiters.
14297         * tmac/tmac.ps, tmac/tmac.X: Add definition of \(va.
14299         * tbl/table.cc (simple_entry::position_vertically,
14300         block_entry::position_vertically):  For a centered entry, perform
14301         the motion in two stages.
14303         * refer/refer.cc (split_punct): Don't call lookup_token if there
14304         is no token.
14306 Fri Aug 14 11:14:58 1992  James Clark  (jjc at jclark)
14308         * troff/input.cc (token::next): Delete token_node after copying
14309         token.
14311         * grodvi/grodvi.cc (dvi_printer::dvi_printer): Initialize
14312         cur_point_size.
14314         * libdriver/printer.cc (printer::load_font): Delete old_font_table.
14316         * grops/ps.cc (ps_printer::define_encoding): Delete elements of vec.
14318 Tue Aug 11 13:50:38 1992  James Clark  (jjc at jclark)
14320         * grops/ps.cc (usage): -b option takes an argument.
14322         * devps/prologue (PLG): New procedure.
14323         * grops/ps.cc (main, usage): New -g option.
14324         (ps_printer::~ps_printer):  If guess_flag is set, guess the paper
14325         length using PLG.
14327 Mon Aug 10 11:17:53 1992  James Clark  (jjc at jclark)
14329         * include/cset.h: Include <limits.h> if we have it.
14331         * libgroff/illegal.cc: New file.
14332         * include/lib.h (illegal_input_char): Use table.
14333         * troff/input.cc (ESCAPE_RIGHT_PARENTHESIS): Renumber to 0206.
14334         * pic/lex.cc (ARG1): Renumber to 14.
14335         * eqn/lex.cc (ARG1): Likewise.
14337         * troff/Makefile.sub (majorminor.cc): Handle 3 part versions
14338         (eg 1.05.90) correctly.
14340 Sun Aug  9 13:35:43 1992  James Clark  (jjc at jclark)
14342         * tmac/tmac.e (sr): Deleted. Set $r and $R directly.
14343         Rename $r and $R registers to $v and $V.
14344         ($r, $R): Initialize to 0.
14345         (@v, @V): New macros.
14346         (sz): Call @v.
14347         (@M): Call @V.
14349         * troff/input.cc (main, usage): Add -R option that says not to
14350         load troffrc.
14351         * eqn/main.cc (main, usage): Rename -n to -R.
14353 Sat Aug  8 00:16:00 1992  James Clark  (jjc at jclark)
14355         * devps/DESC.in: Leave font positions 5-9 blank.
14356         * devdvi/DESC.in: Likewise.
14358         * grog/grog.pl: Handle `.PS <file' correctly.
14360         * troff/input.cc (input_stack::push): Improve error message when
14361         input stack limit exceeded.
14363 Fri Aug  7 13:08:16 1992  James Clark  (jjc at jclark)
14365         * refer/refer.cc (main): Fix typo in handling of `a' option.
14367         * refer/refer.cc (do_bib): In state START after a newline remain
14368         in state START.
14370         * groff/groff.sh: Deleted.
14371         * groff/Makefile.sub: Delete handling of groff.sh.
14373         * pic/troff.cc (troff_output::text): Test \n(0p rather than \*(.T
14374         to determine whether to use \X'ps:...'.
14375         * tmac/troffrc: Set 0p register to 0.
14376         * tmac/tmac.ps: Set 0p register to 1.
14378         * groff/groff.cc: Support -X option. Give warning for -TXps and
14379         transform to -X -Tps. Pass troff a -r.X=1 option if -X is used.
14380         * tmac/troffrc: Support -r.X=1.
14382         * pic/troff.cc (troff_output::dot): Don't test
14383         zero_length_line_flag.
14385 Thu Aug  6 13:32:08 1992  James Clark  (jjc at jclark)
14387         * include/lib.h: Declare getopt() and friends unless
14388         STDLIB_H_DECLARES_GETOPT is defined.
14390         * doc/chars.tr: Delete.
14391         * man/groff_char.man: New file.
14393 Wed Aug  5 00:38:58 1992  James Clark  (jjc at jclark)
14395         * tmac/tmac.e (np, bu): Test \n($p with string expression in case
14396         user has changed register format.
14398 Mon Aug  3 11:22:18 1992  James Clark  (jjc at jclark)
14400         * groff/groff.cc: Get rid of device_table.  Get postprocessor from
14401         `postpro' command in DESC file.  Get spooler command from `print'
14402         command in DESC file.  Execute spooler command with /bin/sh.
14404         * groff/groff.cc: Split Unix-specific parts into...
14405         * groff/pipeline.c: New file.
14407         * LICENSE: Delete.
14408         * COPYING: New file.
14409         * all files: Update copyright notices.
14411         * Rearrange files.  Redo Makefiles.  Use autoconf.
14413 Sat Aug  1 09:36:50 1992  James Clark  (jjc at jclark)
14415         * troff/input.c (charinfo_to_node_list): Interpret character
14416         definition with escape_char of `\'.
14418 Tue Jul 28 12:20:12 1992  James Clark  (jjc at jclark)
14420         * lib/strerror.c, lib/iftoa.c, lib/itoa.c: Don't include lib.h.
14421         Define INT_DIGITS as big enough for 64-bit integer.
14422         * lib/strtol.c: Don't include lib.h.
14423         * lib/lib.h: Delete ifdef __cplusplus stuff.
14425 Mon Jul 27 11:08:50 1992  James Clark  (jjc at jclark)
14427         * ps/devps/Makefile: Add DESC to DEVICEFILES.  Separate out rule
14428         for making DESC.  Make $(FONTS) depend on DESC. afmtodit should
14429         get DESC from current directory.
14431 Sun Jul 26 15:38:26 1992  James Clark  (jjc at jclark)
14433         * tbl/main.c (main): Always reset the line number when reading
14434         from stdin.
14436         * tbl/table.c (table::print_single_hline, table::print_double_hline,
14437         table::define_bottom_macro, table::do_row, table::do_top): Round
14438         vertical spacing up to vertical resolution.
14440 Fri Jul 24 14:32:07 1992  James Clark  (jjc at jclark)
14442         * ps/ps.h (enum resource_type): Avoid comma at end of
14443         enumerator-list.
14444         * dvi/dvi.c (class dvi_printer): Likewise.
14445         * dvi/tfmtodit.c (gf::load): Likewise.
14446         * refer/label.y (struct expression): Likewise.
14447         * refer/refer.c (class label_processing_state): Likewise.
14448         * refer/indxbib.c (do_file): Likewise.
14449         * troff/troff.c (enum warning_type): Likewise.
14450         * tbl/main.c (process_data): Likewise.
14451         * troff/charinfo.h (class charinfo):
14453 Wed Jul 22 09:17:58 1992  James Clark  (jjc at jclark)
14455         * dvi/devdvi/textt.map: Add entry for `-'.  Regenerate fonts.
14457 Tue Jul 21 11:39:26 1992  James Clark  (jjc at jclark)
14459         * groff.c: Move to new groff subdirectory.
14460         * groff/Makefile: New file.
14461         * Makefile: Remove handling of groff.c. Add groff to SUBDIRS.
14463         * man/mdate.sh: Use ls -L if supported.
14465         * Consolidate all header files produced by gendef into lib/defs.h.
14466         * lib/macropath.c, lib/fontfile.c, lib/device.c: Include defs.h.
14467         Don't include path.h.
14468         * lib/Makefile (path.h): Don't generate.
14469         * troff/input.c: Include defs.h. Don't include config.h.
14470         * troff/Makefile (config.h): Don't generate.
14471         * refer/index.h: Don't include suffix.h.
14472         * refer/index.c: Include defs.h.
14473         * refer/indxbib.c: Include defs.h.
14474         * refer/refer.h, refer/lkbib.h: Don't include path.h. Include
14475         defs.h.
14476         * refer/Makefile (suffix.h, path.h): Don't generate.
14477         * groff.c: Don't include config.h. Include defs.h.
14478         * Makefile (config.h): Don't generate.
14479         (lib/defs.h): Generate.
14480         (topclean): Remove lib/defs.h.
14482 Mon Jul 20 10:12:57 1992  James Clark  (jjc at jclark)
14484         * lib/malloc.c, lib/getpagesize.h: Deleted.
14485         * Makefile: Add COOKIE_BUG configuration option.  Delete malloc
14486         related stuff.
14487         * lib/Makefile: Delete malloc-related stuff.
14488         * lib/new.c: Workaround COOKIE_BUG if necessary.
14490         * refer/lkbib.c, refer/indxbib.c: Don't include refer.h.  Include
14491         needed header files directly.
14492         * refer/refer.h: Omit definition of DEFAULT_INDEX.
14493         * Makefile: Include definition of DEFAULT_INDEX in path.h.
14495 Sun Jul 19 10:19:22 1992  James Clark  (jjc at jclark)
14497         * lib/font.c (FONT_COMMAND_HANDLER): Pass command name and single
14498         argument.
14499         * lib/font (font::load_desc, font::load): Don't split argument of
14500         unknown command.
14501         (font::handle_unknown_font_command): Change type.
14502         * ps/ps.c (ps_font::handle_unknown_font_command,
14503         handle_unknown_desc_command): Change type.
14504         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Change type.
14506 Fri Jul 17 11:12:49 1992  James Clark  (jjc at jclark)
14508         * lib/font.h (font::handle_unknown_font_command): Add file and
14509         line arguments.
14510         * lib/font.c (font::handle_unknown_font_command):
14511         * ps/ps.c (ps_font::handle_unknown_font_command):
14512         * dvi/dvi.c (dvi_font::handle_unknown_font_command): Add file and
14513         lineno arguments.  Use _with_file_and_line functions for error
14514         reporting.
14516         * lib/fontfile.c (font::unknown_desc_command_handler): New static
14517         data member.
14518         * lib/font.c (font::set_unknown_desc_command_handler): New
14519         function.
14520         (font::load_desc): For unknown commands, call
14521         unknown_desc_command_handler if not null.
14522         * lib/font.h (class font): Declare them.
14523         (FONT_COMMAND_HANDLER): New typedef.
14524         * ps/ps.c (handle_unknown_desc_command): New function.
14525         (main): Set bflag if we had a -b option. Call
14526         font::set_unknown_desc_command_handler.
14527         (broken.h): Don't include.
14528         * ps/Makefile: No need for broken.h.  Pass BROKEN_SPOOLER_FLAGS to
14529         submake 
14530         * ps/devps/Makefile: Add `broken' command to DESC file using
14531         BROKEN_SPOOLER_FLAGS.
14533         * macros/tmac.e ([, ]): Add as synonyms for { and }.
14535         * macros/tmac.e ($p): Only exdent if \$3 > 0.
14537         * macros/tmac.e (@R, @S): New macros.
14538         Declare @, po, $0, $i, $p, df, so, fu, bt, *, ?a, ?b, ?C, ?e, ?H,
14539         ?I, ?n, ?o, ?R, ?s, ?T, ?W, ?w registers with @R.
14540         Declare $H, $[0-9], .. macros with @S.
14541         Declare |0, |1, |2, |3 strings with @S.
14543         * macros/tmac.e (@S): Rename to @U.
14545         * macros/tmac.e (@z): Define @b and bp as empty instead of
14546         deleting them,
14548         * macros/tmac.e (@m): Deleted.
14549         (@h): Don't call @m.
14550         (@z): Don't set @m trap.
14552         * macros/tmac.e ($h, $f): Define |z as empty string.
14554         * macros/tmac.e (@D): Rework to avoid unbalanced .el requests.
14555         (@q): Likewise.
14557         * macros/tmac.e (@h): Set ?H, ?C , ?s registers to 0 rather than
14558         removing them.
14559         ()f): Likewise for * register.
14561         * macros/tmac.e (sr): Don't ever scale the arguments. If the third
14562         argument is missing, don't change $R.  Call sr with three
14563         arguments when initializing.
14565 Thu Jul 16 12:17:12 1992  James Clark  (jjc at jclark)
14567         * macros/tmac.e (sr): New macro.
14568         Initialize $r and $R using sr.
14570         * macros/tmac.e (,): Delete \*(#[.
14572         * troff/env.c (set_tabs): Read the tab type even if the position
14573         is bad.  Allow the position of the first tab stop to be negative.
14575 Wed Jul 15 13:14:37 1992  James Clark  (jjc at jclark)
14577         * refer/dirnamemax.c: Use pathconf() if <unistd.h> defines
14578         _POSIX_VERSION.
14579         * refer/Makefile: Compile dirnamemax.c using -DHAVE_UNISTD_H
14580         rather than -DPATHCONF_MISSING.
14581         * Makefile: Get rid of PATHCONF_MISSING.
14583         * refer/map.c: New file.
14584         * refer/index.c: Interface to mmap through map.c.  Rename map_size
14585         to map_len.
14586         * refer/Makefile: Handle map.c.
14587         * Makefile: Include -DHAVE_MMAP in OLDCFLAGS rather than CFLAGS.
14589 Tue Jul 14 14:15:20 1992  James Clark  (jjc at jclark)
14591         * Makefile: RANLIB should be `true' if there is no ranlib.
14592         * lib/Makefile (libgroff.a): Simplify.
14593         * driver/Makefile (libdriver.a): Simplify.
14595         * Makefile: Change -DWAIT_COREDUMP_0200 to -DWCOREFLAG=0200.
14596         * groff.c (WCOREDUMP): Use WCOREFLAG.  Define only if not already
14597         defined.
14599 Sat Jul 11 09:19:17 1992  James Clark  (jjc at jclark)
14601         * troff/env.c (compare_ranges): Declare as extern "C".
14603         * troff/input.c (init_registers): Use `struct tm' instead of `tm'.
14605         * macros/tmac.s, macros/tmac.e: Change .nx /dev/null to .nx.
14607 Wed Jul  8 11:52:27 1992  James Clark  (jjc at jclark)
14609         * pic/troff.c (troff_output::text): Merge in grops_output::text,
14610         but conditionalize use of \X based on \*(.T.
14611         (grops_output::*): Deleted.
14612         * pic/output.h: Delete declaration of make_grops_output.
14613         * pic/main.c (main): Ignore -p and -x.  driver_extension_flag is 1
14614         by default. -n sets it to 0.
14615         (usage): Corresponding changes.
14616         * groff.c (main): Don't pass -x or -p to pic.
14617         * groff.sh: Likewise.
14619         * ps/ps.c (ps_printer::do_exec, ps_printer::do_file): Force ndefs
14620         to be non-zero.
14622         * ps/devps/afmtodit: Change calculation of asc_boundary and
14623         desc_boundary.  Make these bounds inclusive.
14624         * ps/devps: Regenerate font files.
14626 Tue Jul  7 13:14:15 1992  James Clark  (jjc at jclark)
14628         * macros/tmac.latin1: New file.
14629         * macros/tmac.tty-char: Use tmac.latin1.
14630         (tmac.tty-tr): Deleted.
14631         * macros/Makefile: Install tmac.latin1.
14632         * macros/tmac.dvi: Use tmac.latin1.
14633         * macros/troffrc: Translate \[char160] onto no-break space here.
14634         * macros/{tmac.dvi,tmac.ps,tmac.tty,tmac.X75}: Don't do it here.
14636 Mon Jul  6 11:06:52 1992  James Clark  (jjc at jclark)
14638         * macros/tmac.Xps: Use `do' request.
14640         * macros/tmac.ps: Use `do' request.
14642         * macros/tmac.e (@C): Use `do' request.
14644         * macros/tmac.X, macros/tmac.Xps: Moved from xditview.
14645         * macros/Makefile: Install tmac.X*.
14647         * tty/tmac.tty, tty/tmac.tty-char: Move to macros.
14648         * tty/Makefile: Don't install tmac.tty*.
14649         * macros/Makefile: Install tmac.tty*.
14651         * dvi/tmac.dvi: Move to macros.
14652         * dvi/Makefile: Don't install tmac.dvi.
14653         * macros/Makefile: Install tmac.dvi.
14655         * ps/tmac.ps*: Move to macros.
14656         * ps/Makefile: Don't install tmac.ps*.
14657         * macros/Makefile: Install tmac.ps*.
14659         * eqn/box.c: Provide draw_lines parameter corresponding to -D
14660         option.
14661         * macros/eqnrc: Set draw_lines parameter based on device.
14662         * groff.c: Don't pass -D flag to eqn.
14663         * groff.sh: Likewise.
14664         * eqn/main.c: Warn about use of -D.
14666         * troff/input.c (process_startup_file): New function.
14667         (main): Call process_startup_file().
14668         * macros/troffrc: New file.
14669         * macros/Makefile: Install troffrc.
14670         * groff.c (main): Don't pass extra -m option to troff. For a 
14671         pseudo device pass the name of the pseudo device to troff using
14672         -d.
14673         * groff.sh: Likewise.
14674         * groff.c (possible_command::prepend_arg): Deleted.
14676         * troff/input.c (do_request): New function.
14677         (init_input_requests): Bind "do" to do_request.
14679         * eqn/main.c (main): Instead of loading eqnchar from device directory,
14680         load eqnrc from macro directory.
14681         * macros/eqnrc: New file.
14682         * macros/Makefile: Install eqnrc.
14683         * ps/devps/eqnchar: Deleted.
14684         * ps/devps/Makefile: Don't install eqnchar.
14685         * dvi/devdvi/eqnchar: Deleted.
14686         * dvi/devdvi/Makefile: Don't install eqnchar.
14687         * groff.c (main): Pass -M to eqn. Don't pass -F to eqn. New
14688         variable optM.
14690         * lib/device.[ch]: New files.
14691         * lib/font.h (font::set_device_name, font::get_device_name):
14692         Deleted.
14693         * lib/fontfile.c: Use device.h.
14694         * lib/Makefile: Handle device.[ch]. Make paths.h define DEVICE.
14695         * troff/input.c: Delete definition of `device'.
14696         (main): Don't initialize device.
14697         * troff/troff.h: Include device.h rather than declaring device.
14698         * troff/Makefile: No need to handle DEVICE.
14699         * driver/input.c: Include device.h. Don't use
14700         font::{set,get}_device_name.
14701         * groff.c, Makefile: Rename device.h to config.h.
14702         * groff.c: Use library device variable.
14703         * eqn/main.c: Use library device variable.
14704         * eqn/Makefile: No need to handle DEVICE.
14706         * lib/searchpath.[ch]: New files.
14707         * lib/Makefile: Handle searchpath.[ch].
14708         * troff/input.c (open_file, init_dirs): Deleted.
14709         (macro_dirs): Deleted.
14710         (open_mac_file, macro_source): Use class search_path.
14711         (add_string, struct string_list): Move definition.
14712         (main): Change -M option to use macro_path. Delete call to
14713         init_dirs().
14714         * lib/fontfile.c (font::command_line_font_dir, font::open_file):
14715         Rewrite to use class search_path.
14716         * lib/font.h, lib/fontfile.c (font::cl_font_dirs): Deleted.
14717         * lib/Makefile: fontfile.c depends on searchpath.h.
14718         * lib/Makefile: Rename fontpath.h to paths.h. Make paths.h define
14719         MACROPATH.
14720         * lib/macropath.[ch]: New files.
14721         * troff/Makefile: No need to handle MACROPATH.
14723         * troff/input.c: Delete DUMP code.
14724         * lib/fontfile.c, lib/font.h: Delete
14725         font::forget_command_line_font_dirs.
14727         * troff/input.c (push_token): New function.
14728         (handle_first_page_transition): Use push_token().
14729         (process_input_stack): Change handling of a space at the beginning
14730         of the line.
14732 Sun Jul  5 17:11:09 1992  James Clark  (jjc at jclark)
14734         * troff/input.c (font_dirs): Delete unused variable.
14736         * eqn/lex.c (do_set): Correct error messages.
14738 Sat Jul  4 10:20:55 1992  James Clark  (jjc at jclark)
14740         * troff/input.c (do_define_string): Allow the string name to be
14741         followed immediately by a tab.
14742         (define_character): Likewise.
14744 Thu Jul  2 10:59:15 1992  James Clark  (jjc at jclark)
14746         * ps/ps.c (ps_printer::draw): When drawing an arc, don't allow k to
14747         be negative.
14749         * troff/input.c (input_iterator::is_file): New virtual function.
14750         (file_iterator::is_file): New function.
14751         (input_stack::end_file): New function.
14752         (input_stack::next_file): Handle the situation where there is no
14753         file on the input stack correctly.  Avoid making two passes over
14754         the input stack.
14755         (next_file): Make the filename optional; in this case call
14756         input_stack::end_file().
14758 Wed Jul  1 10:17:25 1992  James Clark  (jjc at jclark)
14760         * dvi/tmac.dvi: Change the definitions of \(ul and _ so that they
14761         produce a real _ charater when the current font is CW and _
14762         otherwise.
14764         * lib/errarg.c (errarg::errarg(const char *)): Invert conditional
14765         expression to work around gcc 2.2 bug.
14767 Wed Jun 24 08:12:24 1992  James Clark  (jjc at jclark)
14769         * eqn/main.c (main): Don't give an error if we can't find eqnchar.
14771         * troff/env.c (environment::add_padding): New function.
14772         (environment::add_char): Use add_padding().
14773         (environment::space): Likewise.
14774         (environment::wrap_up_field): Add some padding if there is none
14775         and there's no current tab.
14776         * troff/env.h: Declare environment::add_padding.
14778 Mon Jun 22 08:37:45 1992  James Clark  (jjc@jclark)
14780         * pic/pic.y: undef fmod and rand before declaring them.
14782 Sun Jun 14 11:40:18 1992  James Clark  (jjc@jclark)
14784         * troff/input.c (main): If the DESC file specifies a font name of
14785         0, then leave the corresponding font position empty.
14787         * nroff.sh: New file.
14788         * Makefile (install.nobin): Install nroff.sh.
14790         * tty/devlatin1/R.proto: Add ao as synonym for de.
14791         * tty/tmac.tty-char: Define ao as o.
14793         * tty/dev{ascii,latin1}/R.proto: Add aq.
14794         * tty/tmac.tty-char: Delete definition of aq.
14796 Mon Jun  8 11:43:20 1992  James Clark  (jjc@jclark)
14798         * troff/input.c (init_charset_table): Don't translate 0240.
14799         * ps/tmac.ps: Translate char160 to space.
14800         * dvi/tmac.dvi: Likewise.
14801         * tty/tmac.tty: Likewise.
14803 Sun Jun  7 10:52:35 1992  James Clark  (jjc@jclark)
14805         * dvi/tmac.dvi: Add support for all Latin-1 characters.
14807         * macros/tmac.s: Delete definitions of \(rg, \(ah, \(ad, \(a-,
14808         \(ao, \(ac, \(ho, \(-D, \(Sd, \(TP, \(Tp, \(ss, \(AE, \(ae, \(OE,
14809         \(oe, \(r?, \(r!.
14811         * tty/tmac.tty-char: Add \(ah.
14813         * dvi/tmac.dvi: Add definitions of Tp, TP, Sd, -D, ho.
14814         No need to define \(FM and \(!/. Conditionalize all character
14815         definitions.
14817         * ps/devps/lgreekmap: Add +h, +f, +p.
14819         * ps/tmac.psnew: New file.
14820         * ps/Makefile: Install tmac.psnew.
14822         * troff/input.c (charinfo_to_node_list): Don't ever interpret
14823         character definitions in compatible mode.
14825         * troff/input.c (remove_character): New function.
14826         (init_input_requests): Bind remove_character to "rchar".
14828         * ps/tmac.psold: New file.
14829         * ps/Makefile: Install tmac.psold.
14830         * ps/tmac.ps: Load tmac.psold. Move definitions of ISO Latin-1
14831         characters into tmac.psold.  Make these definitions unconditional.
14833         * tty/tmac.tty-char: Define \n(_C only if it is not already defined.
14835         * ps/tmac.ps: Don't define \('c and \('C.
14837         * ps/devps/textmap: Move Greek characters to...
14838         * ps/devps/symbolchars:
14840 Sat Jun  6 16:41:17 1992  James Clark  (jjc@jclark)
14842         * ps/devps/text.enc: Add quotesingle.
14843         * ps/devps/textmap: Add +h, +f, +p, Fn, Bq, bq, aq, lz.
14844         * tty/tmac.tty-char: Likewise.
14845         * dvi/devdvi/texmi.map: Add +h, +f, +p.
14846         * dvi/devdvi/texi.map: Add Fn.
14847         * dvi/devdvi/msam.map: Add lz.
14848         * dvi/tmac.dvi: Handle Bq, bq, aq.
14850         * pic/lex.c (get_token): Recognize 'th.
14851         * pic/map.y: Allow `expr'th in contexts where ORDINAL was allowed.
14853 Fri Jun  5 11:20:46 1992  James Clark  (jjc@jclark)
14855         * ps/devps/textmap: Move di, mu, +- to...
14856         * ps/devps/symbolchars:
14858         * macros/tmac.s (@XS): Don't call par@reset or fi.
14859         (XA): Call LP. Turn off adjustment. Reduce line length.
14861         * macros/tmac.s: Initially alias XS to LP.
14862         (XS): Rename to @XS.
14863         (cov*ab-init): Alias XS to @XS.
14865 Thu Jun  4 09:12:05 1992  James Clark  (jjc@jclark)
14867         * troff/token.h: Delete TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT,
14868         TOKEN_FONT_NAME, TOKEN_FONT_POSITION, TOKEN_SIZE tokens.
14869         (token::is_size, token::changes_env): Deleted.
14870         * troff/number.c (parse_term): No need to process \s explicitly.
14871         Call tok.next() only after scale indicator has been processed.
14872         * troff/input.c (do_overstrike, do_bracket): No need to process \s,
14873         \f etc explicitly.
14874         (token::next): Handle \s, \f, \S, \H immediately rather than
14875         returning them as tokens.
14876         (token::operator==, token::description, token::add_to_node_list,
14877         token::process): Remove handling of deleted tokens.
14879         * troff/env.c (environment::add_char): When adding padding
14880         indicator character, call start_line() if necessary.
14882 Wed Jun  3 09:55:50 1992  James Clark  (jjc@jclark)
14884         * ps/devps/afmtodit: Don't output 0 kerns.
14886         * ps/devps/afmtodit: Remove directory from name of encoding in
14887         font description file.
14889         * ps/devps/afmtodit: Improve error messages.
14891         * ps/devps/afmtodit: Allow DESC file to be specified with -d.
14893         * ps/devps/Makefile: Incorporate FontMakefile. Rework.
14894         * ps/devps/FontMakefile: Deleted.
14895         * ps/devps/afmname: New file.
14897         * ps/devps/symbol.sed: New file.
14898         * ps/devps/symbol.diff: Deleted.
14899         * ps/devps/FontMakefile: Generate symbol.afm using symbol.sed.
14900         Generate zapfdr.afm from zapfd.afm.
14902         * tty/tmac.tty (tty-char): Prefix definition with ".
14904         * macros/tmac.an (TP): Don't start a diversion if one has already
14905         been started.
14907         * tty/tmac.tty-char: Add Latin-1 characters.
14909         * tty/tmac.tty-char: Incorporate suggestions from Paul Eggert.
14911 Tue Jun  2 00:54:34 1992  James Clark  (jjc@jclark)
14913         * tbl/table.c (table::allocate): Delete old_vline, old_entry.
14914         Move declaration of struct horizontal_span.
14916         * tbl/table.c (table::table): Initialize span_list.
14917         (table::~table): Delete span_list.
14919         * lib/ptable.h (PTABLE(T)::~PTABLE(T)): Delete v.
14921         * ps/devps/Makefile: Avoid dependency on GNU make.
14923         * ps/tmac.ps: Check that character does not already exist before
14924         defining it.
14926         * tty/tmac.tty: Add definitions of \(ff, \(!=, \(==, \(~=, \(sq,
14927         \(OE, \(oe, \(AE, \(ae, \(lh, \(rh. Delete definitions of \(en,
14928         \(ru, \(ul, \(br, \(bv, \(sl which are in the font description
14929         files.
14931         * tty/tmac.tty-char: New file.
14932         * tty/Makefile: Install tmac.tty-char.
14933         * tty/tmac.tty: Move definitions of \(ua, \(da, \(uA, \(dA into
14934         tmac.tty-char.
14936         * tty/tmac.tty: Fix definition of \(34.
14938         * tty/dev{ascii,latin1}/R.proto: Add ha and ti. Map
14939         bracket-drawing characters onto |. Add *o.
14941         * troff/env.c (environment::wrap_up_tab): Increment field_spaces
14942         only if current_field.
14944         * troff/dictionary.c (dictionary::lookup): Free old_table after
14945         rehashing. 
14947 Mon Jun  1 10:15:22 1992  James Clark  (jjc@jclark)
14949         * tty/dev{ascii,latin1}/R.proto: Add uppercase Greek characters
14950         whose glyphs are identical to glyphs of some Roman character.
14952         * tty/devlatin1/R.proto (bu): Deleted.
14953         * tty/devascii/R.proto (bu): Deleted.
14954         * tty/tmac.tty: Add definition of \(bu.
14956         * eqn/main.c (do_file): Pass FILE as argument.
14957         (main): Automatically load eqnchar.  New options -F and -n.
14958         Pass do_file an opened FILE.
14959         * groff.c: Don't pass eqnchar to eqn. Pass -F options onto eqn.
14960         No need to include font.h.
14961         * groff.sh: Likewise.  Don't need to use - for standard input.
14962         Prefix files with -- if first file starts with -.
14964         * macros/tmac.e: Conditionalize use of \$* on \n(.g.
14966         * troff/env.c (environment::possibly_break_line): Don't set line
14967         to 0 across call to output_line().  Don't call output_line() until
14968         after discarding nodes after break.
14970 Sun May 31 10:45:29 1992  James Clark  (jjc@jclark)
14972         * request.h (macro::empty): Declare it.
14973         * input.c (macro::empty): New method.
14974         (interpolate_macro):  Don't give a WARN_SPACE if the two-character
14975         macro is empty.
14977 Sat May 30 10:27:15 1992  James Clark  (jjc@jclark)
14979         * troff/env.c (environment::start_field): Decrement space_total
14980         when a space is frozen.
14982 Fri May 22 14:34:38 1992  James Clark  (jjc@jclark)
14984         * macros/tmac.an (R): Delete macro.
14986         * troff/input.c (get_copy, token::next): Support \# (like \" but
14987         newline is ignored).
14989         * troff/input.c (token::next): Fix error message in 'Y' case.
14991 Thu May 21 09:26:24 1992  James Clark  (jjc@jclark)
14993         * eqn/delim.c (define_extensible_string): Recognize any prefix of
14994         a delimiter name.
14996 Fri May 15 10:20:41 1992  James Clark  (jjc at jclark)
14998         * c++test.c: Include <osfcn.h>.
15000         * lib/strtol.c, lib/getcwd.c, ps/psbb.c: Declare errno in case
15001         <errno.h> doesn't.
15003 Fri May  8 09:37:19 1992  James Clark  (jjc at jclark)
15005         * tbl/table.c (table::divide_span): Don't count column separation
15006         if expand was specified.
15008         * tbl/main.c (process_format): Don't ignore width specs in
15009         continued format.  Give warning for changing equal widths or
15010         column separation in continued format.
15011         (process_data): Set column separation, minimum width, equal
15012         columns at end of table.
15014 Thu May  7 08:50:40 1992  James Clark  (jjc at jclark)
15016         * troff/node.c (kern_pair_node::add_discretionary_hyphen,
15017         node::add_discretionary_hyphen): Use soft_hyphen_char.
15018         (set_soft_hyphen_char): New function.
15019         (init_node_requests): Bind to shc.  Initialize soft_hyphen_char.
15021         * Makefile (c++tested): Give more helpful message if test fails.
15023 Tue May  5 10:58:39 1992  James Clark  (jjc at jclark)
15025         * troff/input.c (init_charset_table): Translate 0240 to
15026         an unbreakable space.
15028         * troff/token.h (token::hyphen_indicator): New function.
15029         * troff/charinfo.h (TRANSLATE_HYPHEN_INDICATOR): New special
15030         translation.
15031         * troff/input.c (translate): Allow translation to \%.
15032         * troff/node.c (node::add_char): Handle
15033         TRANSLATE_HYPHEN_INDICATOR.     
15034         (make_node): Don't allow TRANSLATE_HYPHEN_INDICATOR here.
15036         * troff/input.c (init_charset_table): Don't set BREAK_AFTER flag
15037         for \(hy.
15039         * tty/devlatin1/R.proto: \(hy and - should print as 055.
15041 Tue Apr 21 09:24:42 1992  James Clark  (jjc at jclark)
15043         * groff.c (run_commands): If the last command gets a SIGPIPE send
15044         a SIGPIPE to all children than haven't yet terminated.  When
15045         command terminates, set pid field to -1.
15047 Fri Apr 17 11:20:48 1992  James Clark  (jjc at jclark)
15049         * groff.c (main): Pass an appropriate -filename option to gxditview.
15051 Thu Apr 16 15:11:40 1992  James Clark  (jjc at jclark)
15053         * Makefile.bd (install): Remove existing program before copying.
15055         * Makefile, */Makefile, Makefile.bd, groff.sh, groff.c: Allow
15056         programs which have Unix counterparts to be installed with
15057         user-specified prefix.
15059         * troff/input.c (exit_troff): Don't check if exit_started.
15060         (exit_request): Don't call exit_troff if exit_started.
15062         * Makefile.bd (install.mm): Rename to install.dwbmm.
15064 Tue Apr 14 10:05:10 1992  James Clark  (jjc at jclark)
15066         * driver/input.c (do_file): Add missing break for '#' case.
15068 Mon Apr 13 10:11:02 1992  James Clark  (jjc at jclark)
15070         * troff/input.c (input_stack::clear):  Clear past any boundaries and
15071         then add the boundaries back.
15073         * troff/input.c (exit_troff): Return immediately if already
15074         exiting.
15076         * macros/tmac.s (pg@end-text): New macro.  Use pg@end-text for the
15077         end macro.
15078         (pg*end-page): If the text has ended and there are no more
15079         footnotes or keeps, exit.
15081         * macros/doc-ditroff (Lq, Rq): Define as \(lq and \(rq.
15083         * troff/input.c (init_charset_table): Make \(rq transparent by
15084         default.
15086         * macros/tmac.an: Define lq and rq strings.
15088         * macros/tmac.s (Q, U): Define as \(lq and \(rq.
15090 Sun Apr 12 12:54:37 1992  James Clark  (jjc at jclark)
15092         * troff/env.c (environment::final_break): New function.
15093         (environment::newline): Set prev_line_interrupted to 2 if
15094         exit_started.
15095         * troff/env.h: Declare environment::final_break.
15096         * troff/input.c (exit_troff): Call environment::final_break()
15097         instead of environment::do_break().
15099         * macros/Makefile: Install man.local if $(MACRODIR)/man.local
15100         doesn't already exist.
15101         * macros/man.local: New file.
15102         * macros/tmac.an: Load man.local.
15103         * macros/man.ultrix: New file.
15105 Sat Apr 11 17:32:04 1992  James Clark  (jjc at jclark)
15107         * troff/input.c (exit_groff): Rename to...
15108         (exit_troff): New function.
15110         * troff/div.c (exit_started, done_end_macro,
15111         seen_last_page_ejector): New global variables.
15112         (began_page_in_end_macro): New static variable.
15113         (exit_flag): Deleted.
15114         (top_level_diversion::top_level_diversion): Initialize
15115         last_page_count.
15116         (top_level_diversion): More elaborate test for whether
15117         cleanup_and_exit() should be called.
15118         Set began_page_in_end_macro if the end macro isn't yet finished.
15119         * troff/div.h (top_level_diversion::last_page_count): New data
15120         member.
15121         (top_level_diversion::set_last_page): New function.
15122         (exit_started, done_end_macro, seen_last_page_ejector): Declare.
15123         * troff/env.c (do_break): Zero prev_line_interrupted.
15124         * troff/input.c (exit_flag): Delete declaration.
15125         (LAST_PAGE_EJECTOR): New magic cookie.
15126         (token::next): Handle LAST_PAGE_EJECTOR.
15127         (exit_groff): Set exit_started and done_end_macro instead of
15128         exit_flag.  Call top_level_diversion::set_last_page.  Push a
15129         LAST_PAGE_EJECTOR instead of calling push_page_ejector().  Do
15130         another ejection after setting seen_last_page_ejector.
15132 Thu Apr  9 04:37:11 1992  James Clark  (jjc at jclark)
15134         * etc/grog.sh, etc/grog.sh: Recognize -me sh macro.
15136         * macros/tmac.e (TH): Make sure there's room for the initial
15137         header.
15139         * macros/tmac.s (par@init): Make PD and DD at least \n(.V.
15140         Set FVS in points rather than units.
15142 Mon Apr  6 11:21:32 1992  James Clark  (jjc at jclark)
15144         * troff/div.c (top_level_diversion::add_trap): Don't consider the
15145         position of empty slots.
15147 Fri Apr  3 10:46:45 1992  James Clark  (jjc at jclark)
15149         * ps/devps/S: Fix height and depth of parenrightex.
15150         * ps/devps/symbol.diff: Regenerate.
15152 Sat Mar 28 21:17:52 1992  James Clark  (jjc at jclark)
15154         * tmac.e (u): Do underlining as in -mgs.
15156 Fri Mar 27 09:23:44 1992  James Clark  (jjc at jclark)
15158         * tty/tty.c (tty_printer::end_page): If overstriking is
15159         suppressed, still turn overstruck horizontal and vertical lines
15160         into +.
15162         * lib/new.c: Back out Feb 24 change; no longer needed with gcc
15163         2.1.
15165         * refer/label.y (format_expr::evaluate): Avoid use of %0*d.
15167 Wed Mar 18 09:29:10 1992  James Clark  (jjc at jclark)
15169         * Version 1.05 released.
15171 Tue Mar 17 16:50:45 1992  James Clark  (jjc at jclark)
15173         * tty/tty.c: Instead of keeping an array of glyphs and then
15174         sorting it, keep a ordered linked list of glyphs for each line.
15176         * driver/driver.h: Include stddef.h.
15178         * tty/tty.c (compare_glyph):
15179         * refer/refer.c (rcompare):
15180         * troff/env.c (compare_ranges): Arguments of qsort comparison
15181         function should be const void *.
15183         * troff/number.c (parse_term):
15184         * dvi/dvi.c (draw_dvi_printer::draw): Avoid initialization in
15185         switch statement.
15187         * refer/label.y (consider_authors): Don't access variables
15188         constructed under a condition outside that condition: put braces
15189         round for statement containing declaration; redeclare use of same
15190         variable later.
15192         * pic/pic.y (text_expr): Delete production that allows
15193         parenthesised text_expr.
15194         (expr): Allow a conditional_expr to appear in parentheses.
15195         (conditional_expr): Rename to any_expr.
15197         * mm: Install new version 1.01 from jh.
15199         * lib/font.c (font::get_width): Cache scaled widths.
15200         (font::font): Initialize widths_cache.
15201         (font::~font): Destroy widths_cache.
15202         * lib/font.h: Add font::widths_cache. Declare font_widths_cache.
15204 Mon Mar 16 10:16:10 1992  James Clark  (jjc at jclark)
15206         * c++test.c, c++test.ref: New files.
15207         * Makefile: Check that the C++ compiler works.
15209         * ps/tmac.pspic (PSPIC): Do a break.
15211         * ps/tmac.ps: Move definition of PSPIC into...
15212         * ps/tmac.pspic: New file.
15213         (PSPIC): Draw box around picture, but make it invisible to grops.
15214         * ps/tmac.ps: Load tmac.pspic.
15215         * ps/Makefile: Install tmac.pspic.
15217 Sun Mar 15 14:18:08 1992  James Clark  (jjc at jclark)
15219         * lib/font.c (scale_round): If n is negative,
15220         subtract .5 before truncating floating point result.
15222         * lib/fontfile.c: Include <errno.h>.
15224 Tue Mar 10 14:17:03 1992  James Clark  (jjc at jclark)
15226         * driver/input.c (get_char): Inline. Don't update current_lineno.
15227         Change callers to up date current_lineno if necessary.
15228         Use get_char() instead of getc(current_file).
15230 Sun Mar  8 18:05:28 1992  James Clark  (jjc at jclark)
15232         * ps/tmac.ps: Fix up spacing of \(mo and \(nm.
15234 Fri Mar  6 19:38:58 1992  James Clark  (jjc at jclark)
15236         * tty/tty.c (tmac.tty): Define \(rg as (R).
15238 Tue Mar  3 10:11:25 1992  James Clark  (jjc at jclark)
15240         * lib/lib.h: New define a_delete.
15241         * Use a_delete instead of delete when deleting an array of objects
15242         without destructors.
15244         * lib/lib.h: Rename adelete to ad_delete.
15245         * Change uses of adelete.
15247 Mon Mar  2 12:41:05 1992  James Clark  (jjc at jclark)
15249         * eqn/eqn.y: Include lib.h.
15251         * troff/node.c (grow_font_table): Delete old_font_table.
15253         * mm: Install new version from jh.
15255 Fri Feb 28 10:42:23 1992  James Clark  (jjc at jclark)
15257         * tbl/table.h (format_type): Make global instead of local to class
15258         entry_format.  Prefix enumerators with FORMAT_.
15259         * tbl/table.c, tbl/main.c: Corresponding changes.
15260         * refer/token.h (token_type): Make global.  Prefix enumerators
15261         with TOKEN_.
15262         * refer/token.[ch]: Corresponding changes.
15263         * Makefile: Get rid of -DNO_NESTED_TYPES configuration option.
15265         * troff/div.c (node::set_vertical_size): Don't name argument.
15267 Thu Feb 27 10:29:19 1992  James Clark  (jjc at jclark)
15269         * Makefile: New configuration option ARRAY_DELETE_NEEDS_SIZE.
15270         * lib/lib.h: Define adelete accordingly.
15271         * pic/object.c (graphic_object::graphic_object):
15272         * tbl/main.c (format::~format):
15273         * tbl/table.c (table::~table):
15274         * refer/ref.c (reference::~reference, reference::merge,
15275         reference::insert_field, reference::delete_field): Use adelete.
15277         * Makefile: Change NESTED_TYPES to NO_NESTED_TYPES.
15278         * refer/token.h:
15279         * tbl/table.h: Corresponding changes.
15281         * common.c (common_output::dashed_arc, common_output::dotted_arc):
15282         Ensure total_angle is positive.
15284 Wed Feb 26 08:49:26 1992  James Clark  (jjc at jclark)
15286         * refer/ref.c (reference::merge, reference::insert_field,
15287         reference::delete_field): Avoid delete[0].
15289         * refer/token.c (init_special_chars): Move calls to cmupper
15290         outside calls to init_two_char_letter to work around bug in gcc
15291         2.0.
15293 Mon Feb 24 14:20:00 1992  James Clark  (jjc at jclark)
15295         * lib/new.c (operator new): Use __builtin_new for g++.
15297         * pic/object.c (graphic_object::~graphic_object):  Don't use
15298         delete [] on 0.
15300         * pic/object.c (output::compute_scale): Initialize max_width and
15301         max_height.
15303 Sat Feb 15 09:55:20 1992  James Clark  (jjc at jclark)
15305         * troff/input.c (write_request): Call fflush.
15307         * troff/node.h (class composite_node): Move declaration to node.c
15308         * troff/input.c (charinfo_to_node): Rename to ...
15309         (charinfo_to_node_list): Return node list rather than composite
15310         node.
15311         * troff/node.c (make_composite_node): New function.
15312         (make_node, add_char): Call make_composite_node instead of
15313         charinfo_to_node.
15314         (class composite_node): Add a tfont * member.  Delete font_size
15315         member.
15316         (composite_node::composite_node, composite_node::copy,
15317         composite_node::size): Corresponding changes.
15318         (composite_node::tprint): Provide constant spacing, emboldening
15319         and track kerning as specified in tfont.
15320         (composite_node::width): Change width calculation accordingly.
15321         * troff/env.h (environment::composite): New member.
15322         (environment::is_composite, environment::set_composite): New
15323         functions.
15324         * troff/env.c (environment::environment): Initialize composite.
15325         * troff/input.c (charinfo_to_node): Call
15326         environment::set_composite.
15327         * troff/node.c (make_composite_node, make_glyph_node): Use the
15328         plain version of the tfont if the environment is composite.
15330         * troff/node.c (font_info::get_space_width): Additional argument
15331         giving space_size.  Handle constant space correctly. Scale by
15332         space_size unless constant spaced.
15333         (env_sentence_space_width): New function.
15334         * troff/node.h: Declare it.
15335         * troff/env.h (environment::get_space_size,
15336         environment::get_sentence_space_size,
15337         environment::get_narrow_space_width,
15338         environment::get_half_narrow_space_width): Make inline.
15339         (environment::get_space_width): Make inline.  Just call
15340         env_space_width.
15341         * troff/env.c: Delete definitions for funtions made inline.
15342         (environment::space_newline, environment::space): Use
15343         env_sentence_space_width(). Don't scale by space_size.
15344         * troff/node.h: Move declarations of env*space_width() functions
15345         into env.h.
15347 Sat Feb  8 09:30:22 1992  James Clark  (jjc at jclark)
15349         * macros/tmac.s (PS): Don't try to set negative indent.
15351 Thu Feb  6 09:00:35 1992  James Clark  (jjc at jclark)
15353         * pic/pic.y: Fix min function.
15355 Tue Jan 28 07:52:29 1992  James Clark  (jjc at jclark)
15357         * man/mdate.sh: Clear LANGUAGE.
15359 Sun Jan 19 13:02:41 1992  James Clark  (jjc at jclark)
15361         * pic/pic.y, pic/lex.c: Rename COMMAND token to COMMAND_LINE.
15362         * pic/lex.c: New COMMAND keyword.
15363         * pic/pic.y (print_args, print_arg): New rules.
15364         (placeless_element): Use print_args for PRINT.
15365         New COMMAND element.
15367 Tue Jan  7 13:14:31 1992  James Clark  (jjc at jclark)
15369         * troff/input.c (terminal): Handle missing argument correctly.
15371         * pic/pic.y (text_expr): New rule.
15373         * pic/pic.y: Implement := operator.
15375 Sun Jan  5 10:23:02 1992  James Clark  (jjc at jclark)
15377         * etc/grog.pl, etc/grog.sh: Distinguish old and new versions of
15378         mdoc.
15380 Sat Jan  4 14:42:26 1992  James Clark  (jjc at jclark)
15382         * ps/devps/dingbatsrmap: Include this in the distribution.
15384         * macros/tmac.doc: Replace with new version from 2nd Networking
15385         Release. Fix loading of doc-* files.
15386         * macros/{doc-common,doc-ditroff,doc-nroff,doc-syms}: New files.
15387         * macros/tmac.doc.old: New file.  Apply fixes that had been
15388         applied to old tmac.doc.
15389         * macros/tmac.andoc: Check that we're running under groff.
15390         * macros/Makefile: Rework.
15392 Fri Jan  3 13:27:51 1992  James Clark  (jjc at jclark)
15394         * tbl/table.h (format_type): 
15395         * refer/token.h (token_type): If NESTED_TYPES is defined, use
15396         typedef to make these types visible at file scope.
15397         * Makefile: Add NESTED_TYPES configuration option.
15399         * troff/div.c (mark): At the top level use the value of
15400         nl_reg_contents rather than the current vertical position.
15402 Thu Jan  2 10:34:51 1992  James Clark  (jjc at jclark)
15404         * tty/tty.c: Implement \D for horizontal or vertical lines.
15405         (tty_printer::set_char): Use vec_used+2 as serial number.
15406         Don't allow size of vector to exceed USHRT_MAX-2.
15407         Split off part into...
15408         (tty_printer::add_char): New function.
15409         (tty_printer::draw): New function.
15410         (compare_glyph): Handle equal serial numbers.
15411         (tty_printer::end_page): Handle overstruck characters from \D.
15412         (main, usage): Implement -d option.
15414 Mon Dec 23 10:37:51 1991  James Clark  (jjc at jclark)
15416         * tbl/main.c (process_format):
15417         * eqn/text.c (split_text):
15418         * troff/input.c (token::next): Use inner block for declarations
15419         with initializers in switch statement.
15421 Mon Dec 16 20:52:03 1991  James Clark  (jjc at jclark)
15423         * pic/common.c (common_output::dash_line): Cope with zero-length
15424         lines.
15426 Sun Nov 17 12:04:08 1991  James Clark  (jjc at jclark)
15428         * Version 1.04 released.
15430 Wed Nov 13 05:27:21 1991  James Clark  (jjc at jclark)
15432         * macros/tmac.an (TH): Define a macro an-init to define variables
15433         based on command line arguments.
15434         (an-header): Call it.
15436 Sun Nov  3 12:07:34 1991  James Clark  (jjc at jclark)
15438         * Makefile (install.mm): Rename to install.dwbmm.
15440         * Makefile: Integrate mm.
15441         * mm: New directory.
15443 Wed Oct 30 10:11:34 1991  James Clark  (jjc at jclark)
15445         * refer/dirnamemax.c: If PATHCONF_MISSING is defined, include
15446         <sys/types.h>.
15448         * pic/troff.c (troff_output::simple_spline,
15449         troff_output::simple_polygon): Rename variable `v' to `d' to avoid
15450         shadowing parameter.
15452         * lib/tmpfile.c (xtmpfile): Declare dir as const char *.
15454         * lib/ptable.h: Add explicit casts when converting from unsigned
15455         long to unsigned.
15457         * dvi/devdvi/{SA,SB,msam.map,msbm.map}: New files.
15458         * dvi/devdvi/Makefile: Install SA, SB.
15460         * refer/indxbib.c: Add declaration of mktemp.
15462         * refer/lookbib.c: Add declaration of isatty.
15464 Fri Oct 25 09:00:17 1991  James Clark  (jjc at jclark)
15466         * pic/lex.c (interpolate_macro_with_args):  While collecting
15467         arguments, keep track of whether we're in a string.
15469 Wed Oct 23 08:42:48 1991  James Clark  (jjc at jclark)
15471         * ps/tmac.ps (PSPIC): Do the .sp after the \X, and move the \X
15472         down with \v, so as to avoid problems with top of page trap
15473         setting no space mode.
15475 Tue Oct 22 17:38:49 1991  James Clark  (jjc at jclark)
15477         * eqn/lex.c (get_delimited_text): Allow tab before macro body.
15479 Tue Oct 15 17:24:53 1991  James Clark  (jjc at jclark)
15481         * ps/psrm.c (ps_get_line): Fix bug when lines longer than 255.
15482         Improve error message.
15484 Fri Oct 11 11:09:38 1991  James Clark  (jjc at jclark)
15486         * ps/psrm.c (print_ps_string): Don't pass negative numbers to
15487         printf("%03o");
15489 Wed Oct  9 17:50:14 1991  James Clark  (jjc at jclark)
15491         * groff.c (possible_command::execp): Always use _exit() after a
15492         failed exec.
15494         * Makefile: Add HAVE_UNION_WAIT, HAVE_PID_T, WAIT_COREDUMP_0200,
15495         NO_SYS_WAIT_H   configuration options.
15496         * groff.c: Use these options.  Use POSIX-style macros to extract
15497         fields from the status returned by wait().
15499 Fri Oct  4 12:12:27 1991  James Clark  (jjc at jclark)
15501         * tbl/table.c (table::compute_separation_factor): Allow the
15502         separation factor to drop to 0.
15504 Tue Oct  1 18:12:38 1991  James Clark  (jjc at jclark)
15506         * refer/search.c: Include <errno.h>.
15508 Sun Sep 29 08:40:57 1991  James Clark  (jjc at jclark)
15510         * pic/pic.y (YYDEBUG): Don't define for Borland C++.
15512         * lib/lib.h: #ifdef out declarations of itoa and iftoa for Borland
15513         C++. 
15515         * pic/lex.c (input_stack::bol): Move definition out of class body.
15517         * pic/main.c: On MSDOS munge argv[0].
15519         * lib/ptable.h: Define name2 as _Paste2 for Borland C++.
15521         * lib/ptable.c (hash_string): Use unsigned long rather than
15522         unsigned.
15523         (next_ptable_size): Use unsigned rather than int.  Give an error
15524         message if we've hit the largest table size.
15525         * lib/ptable.c: Corresponding changes.  Also use unsigneds for the
15526         table size.
15528         * pic/object.h (object_spec): Make flags unsigned long.  Declare
15529         flags as const unisgned long rather than as enums.
15531         * pic/output.c: Deleted.
15533         * pic/troff.c (troff_output::simple_ellipse): Remove spurious %.
15535         * tbl/table.c (simple_entry::note_double_vrule_on_{left,right}):
15536         Add additional argument.
15537         (line_entry::note_double_vrule_on_{left,right}): Set value of
15538         douvle_vrule_on_{right,left} flag according to argument.
15539         (simple_line_entry::simple_print,
15540         simple_line_entry::double_line_print): If adjacent to double vrule
15541         on a corner extend rather than shorten the rule by half the double
15542         vrule sep.
15544         * troff/number.c (parse_term): In checking for overflow, handle the
15545         case where the current horizontal position is negative.
15547 Thu Sep 12 08:26:09 1991  James Clark  (jjc at jclark)
15549         * pic/object.c (draw_arrow): Check for object having zero length.
15551 Wed Sep 11 10:32:38 1991  James Clark  (jjc at jclark)
15553         * eqn/main.c (do_file): Split off inline equation handling into...
15554         (inline_equation): New function.  Search for starting delimiter
15555         using...
15556         (delim_search): New function. Don't recognize a delimiter that
15557         occurs in the name of an escape sequence, number register, string
15558         etc.
15560 Tue Sep 10 04:01:11 1991  James Clark  (jjc at jclark)
15562         * eqn/delim.c (delim_box::compute_metrics): Don't call
15563         define_extensible_string if left is 0.
15564         (delim_box::output):  Don't print the left delimiter if left is 0.
15565         (delim_box::debug_print): Check for left == 0 before calling printf.
15567 Fri Aug 23 13:02:30 1991  James Clark  (jjc at jclark)
15569         * troff/Makefile (majorminor.c): Include only digits in
15570         minor_version.
15572 Thu Aug 22 09:35:37 1991  James Clark  (jjc at jclark)
15574         * refer/dirnamemax.c: new file.
15575         * refer/genlimits.c: Deleted.
15576         * refer/indxbib.c (main): Use dir_name_max() instead of NAME_MAX.
15577         Don't check path length.
15578         * refer/Makefile: Add dir_name_max.o; delete genlimits.
15579         * Makefile: Add PATHCONF_MISSING option.
15581         * refer/indxbib.c (get_cwd): New function.
15582         (main): Use get_cwd().
15583         * lib/getcwd.c: New file.
15584         * Makefile: Delete -DHAVE_GETWD. Include GETCWD variable. Pass
15585         GETCWD in SUBFLAGS.
15586         * lib/Makefile: Compile getcwd.o.
15588         * ps/tmac.psatk (psatk-defs): Define showpage after pushing
15589         userdict.
15591         * refer/indxbib.c (main): Check success of mktemp.
15593         * lib/tmpfile.c: New file.
15594         * lib/Makefile: Add tmpfile.c.
15595         * lib/lib.h: Declare xtmpfile(); include <stdio.h>.
15596         * ps/ps.h: Delete declaration of mktemp().
15597         * ps/ps.c (ps_printer::ps_printer): Use xtmpfile().
15598         * refer/refer.c (divert_to_temporary_file): Use xtmpfile().
15599         * driver/driver.h: No need now to include errno.h.
15601         * everywhere: Set errno to 0 before calling fopen().
15603         * eqn/eqn.h, etc/soelim.c, driver/driver.h, etc/addftinfo.c,
15604         dvi/tfmtodit.c, groff.c, refer/index.c, refer/linear.c,
15605         refer/lookbib.c, refer/refer.h, ps/psbb.c: Include <errno.h>.
15607 Mon Aug 19 10:52:18 1991  James Clark  (jjc at jclark)
15609         * troff/env.h (translate_space_to_dummy): Declare it.
15610         * troff/env.c (environment::space_newline, environment::space):
15611         If translate_space_to_dummy is set then make the width of spaces 0.
15612         * troff/input.c (translate): If the second character of a
15613         translation is a space, translate to unbreakable space.  If the
15614         first character is a space, set or clear translate_space_to_dummy
15615         according to whether the second character is \&.  Weird!
15617 Tue Jul 30 10:03:56 1991  James Clark  (jjc at jclark)
15619         * groff.c (run_commands): Don't use non-zero exit code because a
15620         command gets SIGPIPE.
15622         * groff.c, groff.sh: Use -mXps with -TXps.
15624         * ps/ps.c (ps_printer::special): Move call to flush_sbuf() into...
15625         (ps_printer::do_exec, ps_printer::do_file, ps_printer::do_def,
15626         ps_printer::do_mdef, ps_printer::do_import): Call flush_sbuf().
15627         (ps_printer::special): New specials invis and endinvis.
15628         (ps_printer::do_invis, ps_printer::do_endinvis): New functions.
15629         (ps_printer::set_char, ps_printer::draw): Return if invis_count>0. 
15630         (ps_printer::end_page): Check that invis_count == 0.
15631         (ps_printer::invis_count): New member.
15632         (ps_printer::ps_printer): Initialize invis_count to 0.
15634         * troff/env.c (environment::hyphenate_line): Hyphenation
15635         indicator at beginning of word inhibits splitting after -, \(em
15636         etc.
15638         * pic/pic.y (element): Allow another element to follow } without
15639         any intervening separator.
15641 Mon Jul 22 12:27:37 1991  James Clark  (jjc at jclark)
15643         * pic/lex.c (get_delimited): Allow tabs before delimiter.
15645 Wed Jul 17 10:59:08 1991  James Clark  (jjc at jclark)
15647         * groff.c: Get rid of HAVE_UNION_WAIT stuff.  Instead suppress
15648         declaration of wait() in header files.
15649         * Makefile: Get rid of -DHAVE_UNION_WAIT.
15651         * tbl/table.c (alphabetic_text_entry::add_tab): New function.
15653         * lib/lib.h: Declare return type of strerror as char *.
15655         * man/Makefile: Add g flag to sed substitutions.
15656         * Makefile (shgroff, bindist): Likewise.
15658 Sun Jul 14 11:57:02 1991  James Clark  (jjc at jclark)
15660         * ps/ps.c (ps_printer::do_import): Move push of userdict into...
15661         * ps/devps/prologue (PBEGIN): Define showpage after pushing
15662         userdict.
15664 Sat Jul 13 20:53:04 1991  James Clark  (jjc at jclark)
15666         * ps/devps/prologue (PBEGIN): Zap any definition of showpage in
15667         userdict.
15669 Fri Jul 12 07:10:09 1991  James Clark  (jjc at jclark)
15671         * man/mdate.sh: Handle the fact that BSD ls -l does not print the
15672         group.
15674 Sun Jul  7 08:00:23 1991  James Clark  (jjc at jclark)
15676         * troff/input.c (define_number_reg):  If currently undefined,
15677         don't define it if the argument is an invalid expression.
15679         * Makefile: Ignore return value of `if' commands without `else'
15680         parts.
15682         * Makefile: Split up CPPDEFINES into a series of separate
15683         configuration options.
15685         * troff/input.c (init_registers): Use time_t instead of long
15686         unless LONG_FOR_TIME_T is defined.  Use returned result rather
15687         than passing pointer.
15688         * Makefile: Document LONG_FOR_TIME_T as a CPPDEFINE.
15690         * lib/Makefile (fontpath.h): Use gendef.
15692 Thu Jul  4 09:48:05 1991  James Clark  (jjc at jclark)
15694         * troff/input.c (input_iterator::shift): Delete argument name.
15695         * troff/node.c (suppress_output_file::really_begin_page,
15696         suppress_output_file::really_transparent_char, node::ascii_print,
15697         node::tprint): Delete names of unused arguments.
15699 Wed Jul  3 17:34:57 1991  James Clark  (jjc at jclark)
15701         * refer/label.y (string):  Pass $4 to command_error.
15703 Tue Jul  2 15:06:01 1991  James Clark  (jjc at jclark)
15705         * Version 1.03 released.
15707 Sat Jun 29 08:14:01 1991  James Clark  (jjc at jclark)
15709         * Makefile: Pass definition of SHELL in SUBFLAGS.
15711         * gendef: New file.
15712         * Makefile, eqn/Makefile, refer/Makefile, troff/Makefile,
15713         ps/Makefile: Use gendef to construct header files that are
15714         constructed from the Makefile.
15716         * macros/Makefile: make all should build stripped version of tmac.e.
15718         * refer/Makefile (clean): Remove y.output.
15720 Fri Jun 28 09:44:36 1991  James Clark  (jjc at jclark)
15722         * ps/pfbtops.c (main): Add -v option which prints out a version
15723         number.
15724         * ps/Makefile (pfbtops): Link with libgroff.a.
15726 Fri Jun 21 07:43:23 1991  James Clark  (jjc at jclark)
15728         * refer/search.h (linear_searcher::get_nkeys): Delete declaration.
15729         * refer/linear.c (linear_searcher::get_nkeys): Delete definition.
15731         * refer/lkbib.c (main): Always terminate reference with blank
15732         line.
15733         * refer/lookbib.c (main): Likewise.
15735         * refer/linear.c (file_buffer::load): Check that the file is not a
15736         binary file.
15738         * refer/Makefile (genlimits): Possibly add -DHAVE_SYS_DIR_H.
15739         (genlimits.c): Include <sys/dir.h> if HAVE_SYS_DIR_H is defined.
15740         Delete second inclusion of <sys/param.h>.
15742 Tue Jun 18 01:32:26 1991  James Clark  (jjc at jclark)
15744         * troff/token.h (token::special): Deleted.
15746         * tbl/main.c (process_format): Rework so that opt->tab_char is
15747         recognized only when appropriate.
15749         * ps/Makefile (clean): Remove pfbtops.
15751 Sun Jun 16 09:37:19 1991  James Clark  (jjc at jclark)
15753         * lib/font.c (text_file::next): Don't return if we have got a
15754         blank line.
15756 Fri Jun 14 09:52:26 1991  James Clark  (jjc at jclark)
15758         * refer/refer.c (store_reference): Get hash code from old_table[i]
15759         when rehashing the table.
15761 Thu Jun 13 01:26:43 1991  James Clark  (jjc at jclark)
15763         * eqn/box.c (box::top_level): Save size and prev size using \R and
15764         restore it afterwards. Set the size to the size at the beginning
15765         of the line.
15766         * eqn/pbox.h: Declare SAVED_INLINE_PREV_SIZE_REG,
15767         SAVED_INLINE_SIZE_REG, and SAVED_SIZE_REG.
15769         * refer/Makefile (limits.h): Use ./genlimits.
15771 Wed Jun 12 16:05:34 1991  James Clark  (jjc at jclark)
15773         * refer/index.c: Delete declarations of stat() and fstat().
15775 Tue Jun 11 14:52:49 1991  James Clark  (jjc at jclark)
15777         * tty/tmac.tty: Add character definitions for \(>= and \(<=.
15779 Mon Jun 10 22:49:48 1991  James Clark  (jjc at jclark)
15781         * etc/grog.sh, etc/grog.pl: Change regex for .PS.
15783 Fri Jun  7 09:13:06 1991  James Clark  (jjc at jclark)
15785         * troff/input.c (token::get_char): Handle \e.
15787         * refer/linear.c: Delete declarations of fstat() and stat().
15789 Wed Jun  5 09:11:59 1991  James Clark  (jjc at jclark)
15791         * troff/node.c, troff/env.c, troff/input.c, Makefile: Remove
15792         OP_DELETE_BROKEN stuff, since we now have a fix for g++.
15794 Mon Jun  3 13:41:32 1991  James Clark  (jjc at jclark)
15796         * troff/input.c (do_define_macro): Improve error handling for end
15797         of file while defining macro.
15799 Sun Jun  2 10:20:24 1991  James Clark  (jjc at jclark)
15801         * eqn/box.h: Fix declaration of set_gsize.
15802         * eqn/box.c (set_gsize): Make argument const char *.
15803         (gsize): Declare as char *.
15804         * eqn/main.c (main): Don't convert gsize to int.
15805         * eqn/lex.c (do_gsize): Pass char * to set_gsize.
15807         * Version 1.02 released.
15809 Sat Jun  1 12:19:46 1991  James Clark  (jjc at jclark)
15811         * macros/tmac.andoc: New file.
15812         * macros/Makefile: Install tmac.andoc.
15814         * troff/node.c, troff/env.c, troff/input.c: Conditionalize use of
15815         operator new and delete on OP_DELETE_BROKEN not being defined.
15816         * Makefile: Mention OP_DELETE_BROKEN.
15818 Mon May 27 13:49:07 1991  James Clark  (jjc at jclark)
15820         * Makefile (bindist): Pass SUBFLAGS.
15822 Sun May 26 14:13:22 1991  James Clark  (jjc at jclark)
15824         * Makefile, groff.c: Pass definitions to groff.c via device.h.
15826         * tty/tty.c (tty_font::load_tty_font): Avoid shadowing
15827         parameter.
15829         * ps/Makefile, ps.c: Pass BROKEN_SPOOLER_FLAGS via broken.h.
15831         * ps/ps.h, ps/psrm.c: Make comment_table and
15832         header_comment_table local to resource_manager::process_file.
15834         * groff.sh: With -TXps pass -printCommand option to gxditview.
15836         * groff.c (possible_command::print): Implement using
15837         append_arg_to_string.
15839         * xditview: Merge in new implementation with own ChangeLog.
15841 Sat May 25 18:33:20 1991  James Clark  (jjc at jclark)
15843         * groff.c (main): Implement PRINT_OPTION.
15844         (append_arg_to_string): New command.
15845         (device_table): Set PRINT_OPTION flag for Xps.
15847 Fri May 24 09:48:58 1991  James Clark  (jjc at jclark)
15849         * troff/groff.h: Rename to troff.h.
15851         * pic/lex.c (lookup_keyword, docmp): New functions.
15852         (get_token): Use new lookup_keyword.
15853         Don't include key.h.
15854         * pic/key.[ch], pic/pic.gperf: Deleted.
15855         * pic/Makefile: Remove gperf stuff.
15857         * pic/Makefile, pic/output.h: Move definition of TEX_SUPPORT
15858         into output.h.
15859         * pic/tex.c: Move include of pic.h before test of TEX_SUPPORT.
15861         * troff/Makefile, troff/node.c: Move definition of
15862         STORE_WIDTH into node.c.
15864         * etc/grog.pl, etc/grog.sh: Support -mdoc.
15866 Thu May 23 12:30:49 1991  James Clark  (jjc at jclark)
15868         * dvi/devdvi/texr.map, dvi.devdvi/texi.map,
15869         dvi/devdvi/texb.map: Add lq and rq.
15870         dvi/devdvi: Regenerate fonts.
15871         * ps/devps/textmap: Add lq and rq.
15872         * ps/devps: Regenerate fonts.
15873         * tty/devascii/R.proto, tty/devlatin1/R.proto: Add lq and rq.
15874         * macros/tmac.e: Define \*(lq and \*(rq to be \(lq and \(rq.
15876         * pic/object.c (position_rectangle): When checking radius
15877         cope with possiblity that width or height is negative.
15878         (box_object::box_object): Have separate xrad and yrad with
15879         signs matching signs of dim components.
15880         (box_object::{north,south}_{east,west}): Use xrad and yrad.
15881         (box_object::print): With rounded boxes use absolute values
15882         for dim and rad arguments.
15884         * lib/Makefile, lib/fontfile.o: Pass definition of FONTPATH
15885         in fontpath.h.
15887         * eqn/Makefile, eqn/main.c: Pass definition of DEVICE in device.h.
15889         * various files: Add explicit destructors to keep Saber CC +d
15890         happy.
15892 Wed May 22 11:37:11 1991  James Clark  (jjc at jclark)
15894         * eqn/box.c (box::top_level): Restore fonts correctly after
15895         font changes in line containing inline equation.  Also
15896         restore previous font as well as current font.
15897         * eqn/pbox.h: Define necessary string and register names.
15899         * troff/input.c (token::next): Case 'R' calls do_register.
15900         (do_register): New function.
15902 Tue May 21 11:28:23 1991  James Clark  (jjc at jclark)
15904         * groff.c, groff.sh: Support Xps device.  Allow each device
15905         to have a pseudo_name and a real_name.
15907         * groff.c (run_commands): Don't print `Broken pipe' messages.
15909         * ps/pfbtops.c: New file.
15910         * ps/Makefile: Add pfbtops.
15912         * troff/number.c (parse_term): Improved error message.
15914 Mon May 20 11:22:14 1991  James Clark  (jjc at jclark)
15916         * groff.c, groff.sh, etc/grog.sh, etc/grog.pl: Support grefer.
15918         * Makefile: Integrate refer.
15919         * refer: New directory.
15920         * man/grefer.man, man/glookbib.man, man/gindxbib.man,
15921         man/lkbib.man: New files.
15922         * man/Makefile: Support refer man pages.
15924         * lib/lib.h: Declare is_prime.
15925         * lib/prime.c: New file.
15927         * troff/input.c (macro_source): New function.
15928         (init_input_requests): Bind "mso" to macro_source.
15930         * troff/env.c (environment::possibly_break_line): Maintain
15931         pointer to pointer to node to be split in ndp so as to avoid
15932         using address of freed node.
15934         * troff/env.c (environment::hyphenate_line): Maintain pointer to
15935         pointer to first node to be hyphenated in startp so as to
15936         avoid using address of freed node.
15938         * troff/env.c (class trie, class hyphen_trie): Make the
15939         elements of the trie be of type char not unsigned char.
15940         Declare arguments to be const char* instead of unsigned char *.
15941         
15942         * troff/env.c (hyphenate): Initialize hbuf[0].
15944         * troff/input.c (set_string): Declare p to be char * and cast
15945         *p to unsigned char when necessary.
15947         * troff/input.c (do_define_macro): Declare s to be const
15948         char*. Cast element to unisgned char when necessary, Declare
15949         d to be an int.  Handle EOF better.
15951         * troff/Makefile, troff/input.c: Different scheme for passing
15952         definitions of MACROPATH, HYPHENFILE and DEVICE.
15954 Tue May 14 13:41:36 1991  James Clark  (jjc at jclark)
15956         * tty/devascii/R.proto: Delete entry for em.
15957         * tty/devlatin1/R.proto: Likewise.
15959 Sat May 11 11:13:28 1991  James Clark  (jjc at jclark)
15961         * troff/input.c (translate): Stop when we get a space. Treat eof
15962         like newline.
15964         * macros/tmac.an (IP): Only pass quoted argument to TP when \n(.$>1.
15966 Wed Apr 24 19:24:33 1991  James Clark  (jjc at jclark)
15968         * tbl/main.c (process_format): A font name following a `f'
15969         modifier that starts with a digit can be only one character long.
15970         Also deal with EOF on the second character of the font name.
15972 Wed Apr 17 11:23:43 1991  James Clark  (jjc at jclark)
15974         * troff/input.c (token::next): Turn \~ into an
15975         unbreakable_space_node.
15976         * troff/node.c (unbreakable_space_node): New class.
15977         * troff/node.h: Declare it.
15979 Tue Apr 16 10:47:12 1991  James Clark  (jjc at jclark)
15981         * dvi/dvi.c (dvi_printer::set_char): Make code an int.  Check that
15982         it's >= 0, before outputting it as a single byte.
15984 Mon Apr 15 11:20:23 1991  James Clark  (jjc at jclark)
15986         * lib/font.c: Make font_char_metric::code an int.
15987         (font::get_code): Change return type to int.
15988         (font::load): Allow code to be arbitrary integer.
15989         * lib/font.h (font::get_code): Change return type to int.
15990         (font::number_to_index): Change argument type to int.
15991         * troff/input.c (token::next):  In case 'N', allow any value.
15992         Store value in token::val.
15993         (token::operator==): For TOKEN_NUMBERED_CHAR test equality of val.
15994         (token::get_char, token::add_to_node_list, token::process): Get
15995         number from val.
15996         (charinfo::set_number): Change argument to int.
15997         (charinfo::get_number):  Require that NUMBERED flag be set.
15998         (get_charinfo_by_number): Store numbered characters not between 0
15999         and 255 in a dictionary.
16000         * troff/charinfo.h (get_charinfo_by_number): Change argument type
16001         to int.
16002         (charinfo::number): Change type to int.
16003         (charinfo::set_number): Change type of set_number to int.
16004         * troff/node.c (troff_output_file::put_char_width,
16005         troff_output_file::put_char): Test whether character is numbered
16006         using charinfo::numbered().
16007         * driver/printer.c (printer::set_numbered_char): Allow arbitrary
16008         values of num.
16009         * lib/nametoindex.c: New implementation to cope with arbitrary
16010         number characters.
16012         * troff/input.c (token::operator==): Test val for
16013         TOKEN_CHAR_HEIGHT, TOKEN_CHAR_SLANT, TOKEN_FONT_POSITION, and
16014         TOKEN_SIZE.
16016         * man/Makefile: Add definiton of BROKEN_SPOOLER_FLAGS.
16017         (.man.n):  sed out @BROKEN_SPOOLER_FLAGS@.
16019 Sun Apr 14 12:57:00 1991  James Clark  (jjc at jclark)
16021         * ps/devps/zapfdr.ps: Don't copy UniqueID.  Avoid use of newdict
16022         variable.
16024         * all Makefiles: rm targets of cp and >.
16026         * xditview/xtotroff.c (MapFont): Unlink troff_name before opening
16027         it.
16029         * eqn/lex.c (def_table): Add dollar.
16031 Sat Apr 13 13:02:44 1991  James Clark  (jjc at jclark)
16033         * troff/input.c (do_width): Push back newline before closing delim
16034         like do_bracket.
16036 Fri Apr 12 15:16:03 1991  James Clark  (jjc at jclark)
16038         * groff.c (possible_command::prepend_arg): New function.
16039         (main): Prepend device -m option.
16040         * groff.sh: Put device -m options before command-line options.
16042 Tue Apr  9 10:24:43 1991  James Clark  (jjc at jclark)
16044         * macros/tmac.an (IP): Quote argument to TP.
16046         * ps/ps.c (main): New option -b, which sets...
16047         (broken_flags): New variable.
16048         (ps_printer::~ps_printer): Incorporate the setup section in the
16049         prolog if (broken_flags & NO_SETUP_SECTION).
16050         (ps_printer::begin_page): Generate {Begin,End}PageSetup comments.
16051         (ps_printer::merge_download_fonts, ps_printer::merge_import_fonts,
16052         ps_printer::merge_ps_fonts, ps_printer::print_font_comment,
16053         ps_printer::print_needed_font_comment,
16054         ps_printer::print_supplied_font_comment,
16055         ps_printer::print_include_font_comments,
16056         ps_printer::lookup_doc_font, ps_printer::download_fonts,
16057         ps_printer::read_download_file, read_document_fonts, add_font,
16058         skip_line, parse_fonts_arg, document_font::document_font,
16059         document_font::~document_font, document_font::download,
16060         ps_output::include_file):  Deleted.
16061         (ps_printer::~ps_printer): Generate %%EOF. Generate %!PS-Adobe-3.0
16062         rather than %!PS-Adobe-2.0.  Make calls to
16063         resource_manager::need_font for each font that we used. Replace
16064         calls to merge_ps_fonts, merge_download_fonts, print_font_comment,
16065         print_supplied_font_comment, print_needed_font_comment by call to
16066         resource_manager::print_header_comments. Output %%Orientation
16067         comment. Output %%Requirements: numcopies comment if ncopies > 1.
16068         Don't output the prolog directly.  Instead call
16069         resource_manager::output_prolog.  Only define #copies when ncopies
16070         > 1.  Delete calls to print_include_font_comments  and
16071         download_fonts.  Add call to resource_manager::document_setup.
16072         (ps_printer::do_file): Call resource_manager::import_file instead
16073         of including it ourselves.
16074         (ps_printer::do_import): Likewise.  Also don't call
16075         merge_import_fonts. Push userdict on the dictionary stack before
16076         and pop it afterwards.
16077         Move declaration of ps_output into ps.h.
16078         * ps/psrm.c: New file implementing resource_manager class.
16079         * ps/ps.h: New file declaring ps_output and resource_manager
16080         classes.
16081         * ps/devps/zapfdr.ps:
16082         * ps/devps/symbolsl.ps:
16083         * ps/devps/prologue:  Use 3.0 conventions.
16084         * ps/Makefile: Pass definition of BROKEN_SPOOLER_FLAGS in DEFINES.
16085         Add default definition of BROKEN_SPOOLER_FLAGS.
16086         * Makefile: New variable BROKEN_SPOOLER_FLAGS.  Add
16087         BROKEN_SPOOLER_FLAGS to SUBFLAGS.
16089 Mon Apr  8 09:26:54 1991  James Clark  (jjc at jclark)
16091         * etc/grog.pl: New file.
16092         * Makefile (GROG): New variable.
16093         Add GROG to SUBFLAGS.
16094         * etc/Makefile (GROG): New variable.
16095         (install.nobin): Install $(GROG) rather than grog.sh.
16097 Thu Apr  4 11:36:45 1991  James Clark  (jjc at jclark)
16099         * eqn/special.c (special_box::compute_metrics): Make the input and
16100         output strings the same.  Get the new height and depth from the
16101         predefined height and depth registers.  Also make subscript kern
16102         and skew available.
16103         (special_box::compute_subscript_kern, special_box::compute_skew):
16104         New functions.
16106         * eqn/box.c (pointer_box::compute_skew,
16107         simple_box::compute_metrics, box::top_level)
16108         * eqn/text.c (prime_box::compute_metrics,
16109         prime_box::comput_subscript_kern)
16110         * eqn/limit.c (limit_box::compute_metrics):
16111         * eqn/delim.c (build_extensible, delim_box::compute_metrics):
16112         * eqn/sqrt.c (sqrt_box::compute_metrics): Protect possibly
16113         negative numbers in `nr' requests with a leading 0.
16115 Wed Apr  3 15:58:23 1991  James Clark  (jjc at jclark)
16117         * eqn/special.c: New file.
16118         * eqn/eqn.y: Declare token SPECIAL.  Make it right associative.
16119         Add new rule for simple.
16120         * eqn/lex.c (token_table): Add SPECIAL.
16121         * eqn/box.h: Declare make_special_box.
16122         * eqn/Makefile: Add special.[co].
16124 Sat Mar 30 10:57:53 1991  James Clark  (jjc at jclark)
16126         * ps/devps/prologue: Possibly set packing to true while defining.
16127         Create grops dictionary here.  Initialize local variables before
16128         defining procedures.
16129         (PICTURE): Rename to PBEGIN. Also do save, noop showpage, count
16130         the dictionary stack. Set strokeadjust and overprint to false if
16131         the relevant operators are defined.
16132         (PEND): New procedure.
16133         * ps/ps.c (ps_printer::~ps_printer): In the prolog just include
16134         prologue.  Do everything else in the setup section.
16135         (ps_printer::do_import): Just call PBEGIN and PEND around the
16136         picture. Also push userdict before, and pop it afterwards.
16138 Wed Mar 27 07:59:50 1991  James Clark  (jjc at jclark)
16140         * troff/node.c (bracket_node::tprint): Brackets were being printed
16141         1m too low.
16143         * macros/tmac.an (SH, SS): Set fill mode.
16145 Tue Mar 26 07:46:31 1991  James Clark  (jjc at jclark)
16147         * troff/div.c (top_level_diversion::begin_page): Set
16148         high_water_mark to 0.
16150 Fri Mar 22 09:19:46 1991  James Clark  (jjc at jclark)
16152         * man/mdate.sh: New file.
16153         * man/mdate.c: Deleted.
16154         * man/Makefile: Use mdate.sh instead of mdate.
16155         (mdate): Deleted.
16157         * eqn/lex.c (do_gsize): Supply missing argument to error message.
16159 Tue Mar 19 11:06:50 1991  James Clark  (jjc at jclark)
16161         * man/mdate.c: New file.
16162         * man/*.man: Replace modification date by @MDATE@.
16163         * man/Makefile (.man.n): Replace @MDATE@ by `mdate $<`.
16164         (mdate): New target.
16166         * lib/font.c (text_file::next): Deal with arbitrarily long lines.
16167         Remove illegal input characters.
16169 Mon Mar 18 08:32:25 1991  James Clark  (jjc at jclark)
16171         * macros/tmac.s (pg*start-col): Do .ns *after* running the hooks.
16173 Sat Mar 16 03:52:25 1991  James Clark  (jjc at jclark)
16175         * troff/div.c (begin_page): Change behaviour when
16176         !first_page_begun and !break_flag.
16178         * troff/input.c (do_name_test): Return 0 if argument is empty.
16180         * troff/input.c (read_long_escape_name): Require closing ] to be
16181         at same input level as opening [.
16183         * troff/input.c (read_increment_and_escape_name): New function.
16184         (get_copy, process_input_stack): Use this for \n.
16186 Fri Mar 15 00:31:48 1991  James Clark  (jjc at jclark)
16188         * troff/div.c (top_level_diversion::begin_page): Ignore the
16189         current value of page_number if !first_page_begun.
16191         * groff.c (main): Fix declaration of buf.
16193         * troff/input.c (do_name_test): New function.
16194         (token::next): Implement \A.
16195         (token::next): Implement \e by turning it into a TOKEN_ESCAPE.
16196         (token::description, token::add_to_node_list, token::process):
16197         Handle TOKEN_ESCAPE.
16198         * troff/token.h: New token TOKEN_ESCAPE.
16200 Thu Mar 14 10:22:26 1991  James Clark  (jjc at jclark)
16202         * pic/main.c (do_picture): Allow space before and after filename
16203         following `<'.  Check that the filename is not empty.
16205 Wed Mar 13 12:49:40 1991  James Clark  (jjc at jclark)
16207         * Version 1.01 released. 
16209         * dvi/devdvi/CompileFonts: Add cm*ss10 fonts.
16211         * dvi/tmac.dvi: ftr HR to H.
16213         * macros/tmac.e: Round up computation of $r.
16215         * xditview/tmac.X:  Don't give up completely in compatibility mode.
16216         Use \n(.s instead of \n[.s].
16218         * dvi/tmac.dvi: Don't give up completely in compatibility mode.
16219         Use \(ci instead of \[ci]. Use \n(.s instead of \n[.s].
16220         Add u to factors inside \s[...]. Rename frac to dvi-frac.
16221         Translate \(FM onto \[prime] and \(!/ onto \[slashnot]; use these
16222         short names in the char definitions.
16224         * ps/tmac.ps: Don't give up completely in compatibility mode.
16225         Fix the fraction definitions to use \n(.s and \(f/. Add an extra
16226         quote in front of \n(.s. Add u to factors inside \s[...].
16228 Mon Mar 11 12:01:20 1991  James Clark  (jjc at jclark)
16230         * tty/tmac.tty: Call the nroff request.
16232         * macros/tmac.e ((x, )x):  Better definitions that work properly
16233         in a diversion.
16234         (@0, @1): Helper macros for (x.
16236         * macros/tmac.e ($s, hl): Use \l rather than \D.
16238         * tty/tmac.tty: Make it work better in compatibility mode.
16239         (pchar): Rename to tty-char.
16241         * macros/tmac.e (@E): New macro.
16242         (r, i, b, rb, bi): Use @E.
16244         * macros/tmac.e (@F): Don't use (;...) syntax.
16246         * macros/tmac.e: Remove mention of \*(||/revisions.  Mention that
16247         it was modified for groff.
16249         * macros/tmac.e: Make sure \n(ps and \n(es are >= \n(.V.
16251         * macros/tmac.e (<., .>): Removed.
16252         ([., .]): If \n(.V>=1v, use [] instead of superscripting.
16254         * macros/tmac.e: Remove check that groff is being used.
16256         * macros/tmac.e (@C): Change families only if using groff; turn
16257         compatibility mode off while changing familes. Save compatibility
16258         mode before changing families and restore it afterwards.
16260         * macros/tmac.e (@h): Remove test for offset + line length.
16262         * macros/tmac.e (sorry): Rename to @S.  Use \$1 instead of \$0
16263         (lo, th, ac): Define to call @S instead of using als.
16265         * macros/tmac.e: Make $r and $R now contain \n(.v*100/\n(.sp, ie
16266         the ratio of the vertical spacing to the point size in units
16267         expressed as a percentage.  Use these instead of $10r and $10R,
16268         Delete $10r and $10R.
16270         * lib/font.c (font::load): In default computation of space_width,
16271         divide by sizescale.  Use scale_round.
16273         * macros/tmac.an (TP): Don't call `nf'.
16274         (an-do-tag): Don't call `fi'.
16276 Sun Mar 10 09:52:35 1991  James Clark  (jjc at jclark)
16278         * troff/input.c (process_input_stack): Handle the case where
16279         spaces at the beginning of an input line are followed by a
16280         newline.
16282 Thu Mar  7 20:18:07 1991  James Clark  (jjc at jclark)
16284         * groff.c (device_table): Add PIC_X_OPTION for dvi device.
16285         * groff.sh: Use pic -x with the dvi device.
16287         * dvi/devdvi/FontMakefile (H): Don't use -s.
16289         * dvi/devdvi/HI, dvi/devdvi/HB: New files.
16290         * dvi/devdvi/Makefile: Add HI and HB to FONTS.
16291         * dvi/devdvi/FontMakefile: Add rules for HI and HB. Include these
16292         in FONTS.
16294 Mon Mar  4 13:20:14 1991  James Clark  (jjc at jclark)
16296         * ps/psfig.diff: New file.
16297         * ps/tmac.psfig: New file.
16299 Sat Mar  2 00:15:09 1991  James Clark  (jjc at jclark)
16301         * macros/tmac.s (]=, ref*do-tl, ref*bib-print): Deleted.
16302         (]-): Don't call ref*do-tl.
16304         * macros/tmac.s (ref*end-print): Use XP if [F not defined.
16306         * macros/tmac.s (ref*normal-print): Call FS rather than fn@do-FS.
16307         (fn@do-FS): Rename to fn*do-FS.
16309         * troff/input.c (transparent_translate): New function.
16310         (process_input_stack): Apply transparent_translate before calling
16311         diversion::transparent_output(unsigned char).
16313 Wed Feb 27 00:13:25 1991  James Clark  (jjc at jclark)
16315         * troff/input.c (do_define_macro): Define the macro before calling
16316         skip_line.
16318         * xditview/Makefile: Add DEVICES variable.  Change install target
16319         to use this.
16321 Tue Feb 26 10:46:22 1991  James Clark  (jjc at jclark)
16323         * groff.c (run_commands): Handle the possibility that there are
16324         child processes other than those forked by us.
16326 Sun Feb 24 21:32:30 1991  James Clark  (jjc at jclark)
16328         * lib/string.c (string::append): New function.
16329         * lib/stringclass.h: Declare it.
16331 Thu Feb 21 11:49:26 1991  James Clark  (jjc at jclark)
16333         * eqn/main.c (main): New option -N which sets
16334         no_newline_in_delim_flag. 
16335         (do_file): If no_newline_in_delim_flag is set don't allow newlines
16336         in delimiters.
16337         * groff.c (main): Pass -N on to eqn.
16338         (help, synopsis): Mention -N.
16339         * groff.sh: Implement -N.
16341 Wed Feb 20 15:16:10 1991  James Clark  (jjc at jclark)
16343         * macros/tmac.s (]=, ref*bib-print, ref*do-tl): New macros.
16344         (]-): Call ref*do-tl if ref*need-tl is non-zero.
16345         (XP): Allow as initializer.
16347 Tue Feb 19 14:09:06 1991  James Clark  (jjc at jclark)
16349         * troff/env.c (environment::wrap_up_field): If field_spaces are
16350         non-zero and we have a current_tab, subtract padding from
16351         tab_distance.  If this makes tab_distance <= 0, use the next tab
16352         stop instead.  If there isn't any next tab or it's a left tab,
16353         wrap up the current tab.
16354         (environment::start_field): Initialize tab_precedes_field.
16355         (environment::wrap_up_tab): If there's a current field, update
16356         pre_field_width, field_distance and tab_precedes_field.
16357         * troff/env.h (environment::tab_precedes_field): New member.
16359 Fri Feb 15 01:24:00 1991  James Clark  (jjc at jclark)
16361         * ps/ps.c (ps_printer::do_file): New function.
16362         (ps_printer::special): Bind to `file' special.
16363         (ps_printer::do_exec): Set ndefined_styles to 0.
16365 Sat Feb  9 03:03:04 1991  James Clark  (jjc at jclark)
16367         * eqn/text.c (split_text): Grok \* and similar escapes sequences.
16368         Avoid stripping first character from the start of unrecognized
16369         escapes.  Use lex_error instead of error to report errors.
16370         * eqn/lex.c (get_token): Rework handling of escapes.
16371         (lex_error): Move declaration into...
16372         * eqn/eqn.h.
16374         * xditview/xditview.c (main): Make -page option work.
16376         * Makefile: Correct comment about -DBROKEN_SPOOLER and pageview.
16378 Wed Feb  6 12:28:43 1991  James Clark  (jjc at jclark)
16380         * macros/tmac.s (B2): Correct size of box.
16382 Tue Feb  5 00:37:35 1991  James Clark  (jjc at jclark)
16384         * macros/tmac.s (B2): Postpone drawing the box until in the
16385         top-level diversion.
16387         * tty/tmac.tty: Add font translations for C, CR, CW.
16389         * groff.c (synopsis, help): Document -i.
16390         * groff.sh: Implement -i.
16392         * macros/tmac.s (@NH): Put a `.' after multi-part numbers.
16393         Simplify the construction of SN.
16395         * troff/number.c (parse_term): Give `|' a higher precedence.
16396         * tbl/table.c (numeric_text_entry::simple_print): Parenthesise
16397         accordingly.
16399         * macros/tmac.s (B2): Use par@finish instead of par@reset.
16401 Mon Feb  4 12:36:09 1991  James Clark  (jjc at jclark)
16403         * lib/string.c (string::move): New function.
16404         * lib/stringclass.h: Declare it.
16406 Sat Feb  2 16:02:16 1991  James Clark  (jjc at jclark)
16408         * troff/env.c (distribute_space): Add optional argument
16409         `force_forward'.
16410         (environment::wrap_up_field): Call distribute_space with
16411         `force_forward' argument of 1.
16413 Fri Feb  1 19:36:33 1991  James Clark  (jjc at jclark)
16415         * lib/string.c, lib/stringclass.h (string::operator+=(char)):
16416         Inline it.  Move reallocation into...
16417         (string::grow1): New function.
16418         * pic/Makefile, tbl/Makefile, eqn/Makefile, ps/Makefile: Redo
16419         dependencies to include library header files.
16420         * lib/Makefile: Make string.c and lf.c depend on stringclass.h.
16422 Thu Jan 31 15:02:27 1991  James Clark  (jjc at jclark)
16424         * macros/tmac.s (@NH): Use the same number registers than -ms does
16425         for the heading level counters.  Use the same string that -ms does
16426         for the number for this heading.
16428 Wed Jan 30 14:25:40 1991  James Clark  (jjc at jclark)
16430         * lib/new.c (operator new): Cast result of malloc to char *.
16432         * troff/input.c (spring_trap, lookup_request): Add assert that nm
16433         is not null.
16435 Tue Jan 29 18:08:05 1991  James Clark  (jjc at jclark)
16437         * groff.c (main): Support -i.
16439 Sun Jan 27 13:23:17 1991  James Clark  (jjc at jclark)
16441         * pic/pic.h: Include <osfcn.h>.
16443         * ps/ps.c: Add declaration of mktemp.
16445         * Makefile: Add -DHAVE_UNION_WAIT option for CPPDEFINES.
16446         * groff.c: If HAVE_UNION_WAIT is defined, declare wait()'s
16447         argument as union wait *.
16448         (run_commands): If HAVE_UNION_WAIT is defined cast wait()'s
16449         argument to union wait *.
16451 Sat Jan 26 12:04:52 1991  James Clark  (jjc at jclark)
16453         * tty/tmac.tty: Add definition of \(co.
16455         * pic/object.c (make_arc): Only increase radius when radius
16456         strictly less than d.
16457         (arc_object::update_bounding_box): May need to add 4.0 to end_quad
16458         more than once.
16460         * troff/env.c (environment::environment(symbol),
16461         environment::environment(const environment *)):  Initialize
16462         input_trap_count.
16464 Sat Jan 19 08:18:35 1991  James Clark  (jjc at jclark)
16466         * tbl/main.c (main): Add exit(0).
16468         * ps/ps.c (ps_printer::~ps_printer): Use fseek instead of rewind.
16470         * pic/main.c (main):
16471         * eqn/main.c (main):
16472         * tbl/main.c (main):
16473         * etc/soelim.c (main):
16474         * driver/printer.c (printer::~printer):
16475         * troff/node.c (real_output_file::~real_output_file,
16476         real_output_file::flush):  Check for errors on stdout.
16478         * most files: Add 1991 to copyright notice.
16480         * macros/tmac.s: Don't test \n(.x and \n(.y.
16482         * troff/input.c (token::next): Rename `escape_char' label to
16483         `handle_escape_char' and `normal_char' label to
16484         `handle_normal_char'.
16486 Thu Jan 17 15:46:35 1991  James Clark  (jjc at jclark)
16488         * groff.c (main, synopsis, help): Support -a option.
16489         * groff.sh: Likewise.  Also eliminate Zflag variable by adding -z
16490         to trflags while parsing options.
16492 Tue Jan 15 13:07:27 1991  James Clark  (jjc at jclark)
16494         * troff/number.c (parse_term): With `m', `M' and `n' scale
16495         indicators, convert scale factor to hunits before scaling.
16497 Mon Jan 14 12:39:12 1991  James Clark  (jjc at jclark)
16499         * lib/font.c (scale_round): Better test for overflow when n is
16500         negative.
16502 Thu Jan 10 11:10:56 1991  James Clark  (jjc at jclark)
16504         * tbl/main.c (process_format): Add second argument of type
16505         options*. Change callers.  Allow opt->tab_char as well as '\t'
16506         between format items.
16508 Mon Jan  7 12:30:18 1991  James Clark  (jjc at jclark)
16510         * macros/tmac.an (PD): With no arguments, make sure register PD is
16511         at least \n[.V].
16512         (TH): Call PD with no argument, instead of setting register PD
16513         directly.
16515 Sun Jan  6 11:18:39 1991  James Clark  (jjc at jclark)
16517         * Version 1.00 released.
16519 Sat Jan  5 08:44:30 1991  James Clark  (jjc at jclark)
16521         * ps/tmac.ps, xditview/tmac.X: Add font translation of C to CR.
16523         * dvi/devdvi/DESC: Mount CW instead of CR.
16525         * dvi/tmac.dvi: Add definition of \(tm.
16527         * dvi/devdvi/texsy.map: Add lh, and rh.
16528         * dvi/devdvi/texex.map: Add lt, rt, lb, rb, lk, rk.
16529         * dvi/devdvi/texmi.map: Add *o. Regenerate fonts.
16531         * dvi/devdvi/FontMakefile: Generate H from cmss10.
16532         * dvi/devdvi/Makefile: Install H.
16533         * dvi/devdvi/H: New file.
16535 Fri Jan  4 15:04:57 1991  James Clark  (jjc at jclark)
16537         * troff/env.c (vertical_spacing): Don't allow vertical spacing to
16538         be 0.
16540 Thu Jan  3 13:41:19 1991  James Clark  (jjc at jclark)
16542         * macros/tmac.s (@EN): Add \n(.V to the argument to ds@need.
16544         * macros/tmac.pic (PS): Avoid attempting to set negative indent.
16546         * macros/tmac.s (@EN): Handle the case where the equation is empty
16547         but the label is not.
16549 Wed Jan  2 10:31:44 1991  James Clark  (jjc at jclark)
16551         * troff/groff.h: New warning category WARN_SPACE.
16552         * troff/input.c: Add WARN_SPACE to DEFAULT_WARNING_MASK. Add
16553         WARN_SPACE to warning_table.
16554         (interpolate_macro): Give a warning of type WARN_SPACE if the name
16555         is longer than two characters and is not defined, but the first
16556         two characters do make a defined name.
16558         * PROBLEMS: New file.
16560         * CHANGES: New file.
16561         * README-0.6, README-1.00: Deleted.
16563         * groff.c, groff.sh: Add X75-12 and X100-12 devices.
16564         * xditview/devX75/Makefile: Make devX75-12.
16565         * xditview/devX100/Makefile: Make devX100-12.
16567         * xditview/devX100/eqnchar, xditview/devX75/eqnchar,
16568         dvi/devdvi/eqnchar, ps/devps/eqnchar: Remove use of \R.
16570 Tue Jan  1 19:24:01 1991  James Clark  (jjc at jclark)
16572         * README-0.7: Rename to README-1.00.
16574         * macros/tmac.pic: New file.
16575         * macros/Makefile (install.nobin): Install tmac.pic.
16577 Mon Dec 31 10:40:53 1990  James Clark  (jjc at jclark)
16579         * troff/env.c (hyphen_word): Correct the test for whether the
16580         token is a hyphen.  Reset npos to 0.
16582         * macros/tmac.s (par@sup-start, par@sup-end): New implementations.
16584 Sun Dec 30 15:53:13 1990  James Clark  (jjc at jclark)
16586         * macros/tmac.s (ds*common-end): Call par*reset.
16587         (PE): Likewise.
16588         (par@reset-indent): Deleted.
16590         * macros/tmac.s (@IP): Divert the label.
16592 Sat Dec 29 14:33:32 1990  James Clark  (jjc at jclark)
16594         * xditview/draw.c (setGC): Use a line width of .1m rather than
16595         .04m by default; round rather than truncate value.
16597         * tbl/table.c (class empty_entry): New class.
16598         (empty_entry::empty_entry, empty_entry::line_type): New functions.
16599         (table::add_entry): Represent empty entries by objects of type
16600         empty_entry.
16601         (table_entry::line_type): Return -1.
16602         (table::determine_row_type): Ignore entries with line_type 0.
16603         Treat type -1 as non-lines.
16605 Fri Dec 28 15:04:41 1990  James Clark  (jjc at jclark)
16607         * ps/devps/textmap, xditview/libXdvi/DviChar.c, tty/devlatin1/R.proto,
16608         macros/tmac.s: Rename \(-d to \(Sd.
16610 Thu Dec 27 12:35:47 1990  James Clark  (jjc at jclark)
16612         * ps/devps/textmap: Add `sd', `/_' and `3d' characters.
16613         * xditview/libXdvi/DviChar.c: Likewise.
16614         * dvi/devdvi/texsy.map: Add `<<', `>>'.
16616 Wed Dec 26 13:33:23 1990  James Clark  (jjc at jclark)
16618         * troff/div.c (top_level_diversion::begin_page): Call
16619         init_output() if the_output is 0.
16621 Sat Dec 22 12:35:29 1990  James Clark  (jjc at jclark)
16623         * troff/input.c: Replace ESCAPE_E by ESCAPE_e and ESCAPE_C by
16624         ESCAPE_c.
16625         (get_copy): Turn \E into ESCAPE_E.
16626         (token::process, asciify): Handle ESCAPE_E.
16628         * macros/tmac.s (ds*common-end, par@reset): Add `.rj 0'.
16629         (RD): New macro.
16630         (DS): Implement `.DS R'.
16632 Fri Dec 21 11:41:53 1990  James Clark  (jjc at jclark)
16634         * macros/tmac.s (FS): New macro.
16636         * macros/tmac.s (fn@do-FS): Use @LP instead of LP.
16638         * macros/tmac.s (cov*tl-init): Remove after first execution
16639         instead of aliasing to @nop.  Call top of page macro explicitly
16640         instead of setting trap; call @init first.  Set pg@top as top of
16641         page macro.
16642         (cov*auto-init): Deleted.  Set cov*tl-init instead of
16643         cov*auto-init as top of page trap. 
16644         (TL, LP): Do a break instead of calling cov*tl-init.
16645         (cov*print): With RP format but no TL, alias FS and FE to @FS and
16646         @FE; in this case also give a warning and always start another
16647         page. No need to set pg@top here.
16648         (cov*tl-init): Rename to cov*first-page-init.
16650         * macros/tmac.s (RP): Do `.pn 0'.
16651         (cov*tl-init): With RP format don't do `.pn 0'.
16653         * macros/tmac.s (pg@cs-top): Set no space mode.
16655         * macros/tmac.s (par@TL, par@AU, par@AI): New macros.
16656         (cov*ab-init): Alias TL, AU and AI to these.
16658 Thu Dec 20 10:10:50 1990  James Clark  (jjc at jclark)
16660         * macros/tmac.s (@EQ): Move the space before the equation into @EN
16661         (@EN): Do nothing unless \n[dl] is > 0.
16663 Tue Dec 18 12:20:47 1990  James Clark  (jjc at jclark)
16665         * pic/object.c (ellipse_object::radius): New function.
16667         * VERSION: Change version to 0.7.
16669         * tbl/table.c (block_entry::do_divert): Declare return type as
16670         void.
16671         (block_entry::divert, alphabetic_block_entry::divert): Return 1.
16673 Mon Dec 17 12:30:34 1990  James Clark  (jjc at jclark)
16675         * troff/column.c: New file.
16676         * troff/Makefile: Corresponding changes.
16678         * troff/hvunits.c (scale(vunits, vunits, vunits)):  New function.
16679         Friend of vunits.
16681         * troff/div.c (top_level_diversion::space): If the space causes
16682         the first-page transition and springs a trap, truncate the space
16683         to 0.
16685 Fri Dec 14 12:30:02 1990  James Clark  (jjc at jclark)
16687         * ps/ps.c (ps_printer::do_import): Add a `clear' after including
16688         the document.
16690         * pic/troff.c (troff_output::line_thickness,
16691         troff_output::set_fill): Do a horizontal motion to compensate for
16692         the width of the \D escape sequence.
16694 Thu Dec 13 10:17:14 1990  James Clark  (jjc at jclark)
16696         * xditview/tmac.X: Reinstate definition of \(rn, but only for X100
16697         (not X75).
16699         * eqn/sqrt.c (sqrt_box::compute_metrics):  Supply missing argument
16700         to printf.
16702         * tbl/table.c (simple_entry::simply_print): Don't declare as pure.
16703         Supply empty definition.
16704         (text_entry::simple_print, simple_text_entry::simple_print):
16705         Delete declarations.
16706         (table::add_entry): Represent empty entries by objects of type
16707         `simple_entry'.
16709 Wed Dec 12 08:50:48 1990  James Clark  (jjc at jclark)
16711         * troff/Makefile: Remove -DHYPHEN_CONTROL from DEFINES.
16713         * tbl/table.c (left_text_entry::add_tab): New function.
16715         * macros/tmac.s: Make @RT an alias for par@reset.  Make RT
16716         initialize like LP.
16718 Mon Dec 10 11:19:55 1990  James Clark  (jjc at jclark)
16720         * troff/env.c (environment::start_field): Give an error message if
16721         there is no next tab.
16723 Sun Dec  9 11:46:40 1990  James Clark  (jjc at jclark)
16725         * troff/env.c (hyphenate): Skip initial elements with zero
16726         hyphenation code.
16728         * macros/tmac.s (par@init): Keep VS in points rather than units.
16730 Sat Dec  8 23:00:27 1990  James Clark  (jjc at jclark)
16732         * pic/main.c (main): Implement `-c' option.
16733         * pic/output.h: Declare make_tpic_output().
16734         * pic/tex.c (tex_output::set_pen_size): Make it virtual and
16735         protected.
16736         (tpic_output): New class.
16737         (tpic_output::tpic_output, tpic_output::set_pen_size,
16738         tpic_output::command, make_tpic_output): New functions.
16740 Fri Dec  7 11:57:41 1990  James Clark  (jjc at jclark)
16742         * tbl/main.c (main): Call `.ab' if \n(.g is false.  Define TS/TE
16743         if they're not already defined.
16744         * tbl/table.c (init_output): Don't test \n(.g.
16746         * troff/input.c (do_if_request): Delete `g' condition. Recognize
16747         `d', `r' and `c' conditions even in compatibility mode.
16749 Tue Dec  4 09:13:47 1990  James Clark  (jjc at jclark)
16751         * ps/tmac.ps (ps-bb): Protect against negative numbers in bounding
16752         box.
16754 Mon Dec  3 07:18:26 1990  James Clark  (jjc at jclark)
16756         * troff/env.h (environment::prev_line_interrupted): New member.
16757         (environment::get_prev_line_interrupted): New function.
16758         * troff/env.c (environment::newline): Set prev_line_interrupted.
16759         (environment::environment(const environment *),
16760         environment::environment(symbol)): Initialize
16761         prev_line_interrupted.
16762         * troff/input.c (process_input_stack): Don't give special
16763         treatment to space and newline at the beginning of the line if the
16764         previous line was interrupted.
16766 Sat Dec  1 15:48:37 1990  James Clark  (jjc at jclark)
16768         * eqn/eqn.y: Disallow PRIME by itself.
16769         * eqn/lex.c (token_table): Bind `opprime' instead of `prime' to
16770         PRIME.
16771         (def_table): Remove definition of '.  Define prime to be `.
16773         * eqn/eqn.y: Split off part of rule `script' into a new rule
16774         `nonsup'.
16776 Fri Nov 30 10:23:44 1990  James Clark  (jjc at jclark)
16778         * macros/tmac.s ({, }): New string aliases.
16780 Thu Nov 29 11:34:40 1990  James Clark  (jjc at jclark)
16782         * README-0.7: New file.
16784 Wed Nov 28 10:09:57 1990  James Clark  (jjc at jclark)
16786         * macros/tmac.s: New file.
16787         * man/groff_ms.man: New file.
16788         * Makefile: Add definition of TMAC_S. Pass TMAC_S in SUBFLAGS.
16789         * Makefile.bd: Similarily.
16790         * man/Makefile: Add groff_ms.n to MAN7PAGES. Replace @TMAC_S@. Add
16791         definition of TMAC_S.
16792         * macros/Makefile: Add definition of TMAC_S. Install tmac.s.
16793         * macros/TODO: New file.
16795 Sat Nov 24 20:04:54 1990  James Clark  (jjc at jclark)
16797         * troff/env.c (right_justify): New function.
16798         (init_env_requests): Bind this to request "rj".
16799         (center_lines): Set right_justify_lines to 0. If we get a bad
16800         integer, center 1 line.
16801         (environment::environment(symbol), environment::environment(const
16802         environment *)): Initialize right_justify_lines.
16803         (environment::get_right_justify_lines): New function.
16804         (init_env_requests): Bind this to number_register ".rj".
16806         * troff/env.c (environment::choose_breakpoint): Implement
16807         hyphenation_margin and hyphenation_space.
16808         (environment::get_hyphenation_space,
16809         environment::get_hyphenation_margin): New functions.
16810         (init_env_requests): Bind these to .hys and .hym.
16811         (hyphenation_space_request, hyphenation_margin_request): New
16812         functions
16813         (init_env_requests): Bind these to hys and hym.
16814         (environment::environment(symbol), environment::environment(const
16815         environment *)): Initialize hyphenation_margin and
16816         hyphenation_space.
16817         * troff/env.h: Corresponding changes to class environment.
16819 Fri Nov 23 09:08:16 1990  James Clark  (jjc at jclark)
16821         * troff/div.c (blank_line): Always do a break.
16823         * eqn/box.c (do_text): Turn off escapes while appending text to
16824         string.
16826 Thu Nov 22 10:58:59 1990  James Clark  (jjc at jclark)
16828         * troff/input.c (while_break_request, while_continue_request): New
16829         functions.
16830         (init_input_requests): Bind these to "break" and "continue".
16831         (while_depth, while_break_flag): New variables.
16832         (while_request): Update while_depth.  Break out of loop if
16833         while_break_flag is set.
16835 Wed Nov 21 10:54:40 1990  James Clark  (jjc at jclark)
16837         * tbl/table.c (init_span_reg): Initialize span_width_reg to \n(.H
16838         rather than 0.
16840 Mon Nov 19 00:45:03 1990  James Clark  (jjc at jclark)
16842         * Makefile: Include -DBROKEN_SPOOLER by default.  Expand comment.
16844         * stringify: New file.
16845         * Makefile (groff.o): Use stringify.
16847         * xditview/tmac.X: Remove definition of \(rn.
16848         * xditview/libXdvi/DviChar.c: Remove radicalex from
16849         Adobe_symbol_map.
16851 Sat Nov 17 10:44:58 1990  James Clark  (jjc at jclark)
16853         * tbl/table.c (table::add_entry): Allow alphabetic text blocks.
16854         (alphabetic_block_entry::alphabetic_block_entry,
16855         alphabetic_block_entry::divert, alphabetic_block_entry::print):
16856         New functions.
16857         (block_entry::divert): Split off body into ...
16858         (block_entry::do_divert): If the block is alphabetic, subtract 2n
16859         from the line length; also update the span width to dl+2n, and the
16860         alphabetic span width to dl.
16862         * driver/input.c (do_file):  While reading argument to D command,
16863         when expanding buffer, multiply szp by sizeof(int) rather than 2
16864         in the argument to memcpy.
16866         * tbl/table.c (compute_span_width): Add 2n rather than 1n to the
16867         width of alphabetic columns.
16869 Fri Nov 16 06:34:27 1990  James Clark  (jjc at jclark)
16871         * troff/node.c (lookup_family): Supply second argument to lookup.
16873         * troff/dictionary.c (dictionary::lookup): After an unsuccesful
16874         search, return immediately if v is 0.
16876         * pic/troff.c: Define EQN_NO_EXTRA_SPACE_REG.
16877         (troff_output::start_picture): Set this reg.
16878         (troff_output::end_picture): Remove this reg
16879         * eqn/box.c (box::extra_space): Don't produce `\x's if
16880         EQN_NO_EXTRA_SPACE_REG is defined.
16882         * eqn/eqn.y: Allow just a PRIME to be a `simple'.
16883         * eqn/text.c (split_text): Map ' to \(fm when it's the first
16884         character.
16886 Thu Nov 15 10:35:06 1990  James Clark  (jjc at jclark)
16888         * macros/tmac.e: Use font 3 instead of B in $c. Remove `bd'
16889         requests.
16891         * troff/div.c (top_level_diversion::top_level_diversion):
16892         Initialize page_number to 0.
16894 Wed Nov 14 21:41:58 1990  James Clark  (jjc at jclark)
16896         * groff/troff (environment::environment(const environment *)):
16897         Initialize name to e->name, rather than "anonymous".
16899 Sat Nov 10 01:59:37 1990  James Clark  (jjc at jclark)
16901         * xditview/libXdvi/Dvi.c (ShowDvi): If eof is encountered, reset
16902         requested_page.  Split middle part into ...
16903         (FindPage): New function.
16904         (SetValues): If we don't yet know the last page, and the requested
16905         page is greater than the current page, call FindPage.
16906         Update the font_map_string before doing this.
16908         * xditview/tmac.X: Add definitions of \(sq, \(ga, \(dg and \(dd.
16909         Translate \(lh and \(rh into left and right double arrows.
16911         * troff/node.c (class hyphen_inhibitor_node): New class.
16912         (hyphen_inhibitor_node::hyphen_inhibitor_node,
16913         hyphen_inhibitor_node::copy, hyphen_inhibitor_node::same,
16914         hyphen_inhibitor_node::type,
16915         hyphen_inhibitor_node::get_hyphenation_type): New functions.
16916         (node::add_discretionary_hyphen): Use hyphen_inhibitor_node rather
16917         than dbreak_node(0, 0) to represent a `\%' at the beginning of a
16918         word.
16920 Fri Nov  9 16:05:38 1990  James Clark  (jjc at jclark)
16922         * troff/node.h (dummy_node::get_hyphenation_type,
16923         transparent_dummy_node::get_hyphenation_type):  Declare them.
16924         * troff/node.c: (dummy_node::get_hyphenation_type,
16925         transparent_dummy_node::get_hyphenation_type): New functions.
16927 Wed Nov  7 10:09:06 1990  James Clark  (jjc at jclark)
16929         * xditview/libXdvi/draw.c: If M_PI not defined after including
16930         math.h, then define it.
16932         * xditview/Makefile: Add definition of AR. Pass it to the submake
16933         in libXdvi.
16934         * xditview/libXdvi/Makefile: Add definitions of AR and RANLIB.
16936 Tue Nov  6 10:14:27 1990  James Clark  (jjc at jclark)
16938         * troff/dictionary.h (object_dictionary::alias): Declare return
16939         value as int.
16940         * troff/dictionary.c (object_dictionary::alias): Return non-zero
16941         if the old name was defined.
16942         * troff/input.c (alias_macro): Give a warning if the old name was
16943         not defined.
16944         * troff/reg.c (alias_reg): Likewise.
16946 Mon Nov  5 00:31:39 1990  James Clark  (jjc at jclark)
16948         * troff/input.c (token::next): Delete implementation of \R.
16950         * macros/Makefile: Strip comments from tmac.e while installing it.
16952         * troff/input.c: New variable `nroff_mode'.
16953         (troff_request, nroff_request): New functions.
16954         (init_input_requests): Bind `troff' and `nroff' to troff_request
16955         and nroff_request.
16956         (do_if_request): Compute results of t and n conditions from
16957         nroff_mode.
16959         * text/text.c (split_text): Fix typo in >=.
16961         * eqn/lex.c: Add definition of `==' to def_table.
16963 Fri Nov  2 02:49:09 1990  James Clark  (jjc at jclark)
16965         * pic/tex.c (tex_output::start_picture): Change the definitions of
16966         \graph and \graphtemp so that they work properly with Plain TeX.
16968         * pic/tex.c (tex_output::solid_arc): Ensure that the second angle
16969         argument to `ar' is not less than the first.
16971         * pic/pic.y: Allow a comma between elements of the variable list
16972         in the argument to `reset'.
16974         * pic/object.c (arc_object::arc_object): Fix computation of
16975         radius.
16977         * eqn/main.c (main): Add exit(0).
16979 Thu Nov  1 02:03:50 1990  James Clark  (jjc at jclark)
16981         * troff/div.c (begin_page): Test no_space_mode after doing the
16982         break, but still push the page ejector cookie before doing the
16983         break.  Also set the next page number after doing the break.
16984         
16985         * xditview/xditview.c (NewFile): Don't set the title and icon name
16986         if this is the first file and its name is `-'.
16987         * groff/groff.c: Define a new device flag XT_OPTION.  Set it for
16988         the X75 and X100 devices.
16989         (main): If a device has the XT_OPTION flag set and there's exactly
16990         one file argument, pass the driver -xrm and -title options to set
16991         the icon name and window title to the name of the file.
16993         * troff/env.c (environment_switch): If there was an argument but
16994         it wasn't a valid number or name, then pop an environment but
16995         don't give an error message on underflow.
16997         * troff/number.c (start_number): Correct spelling in error message.
16999         * troff/input.c (token::delimiter): Don't print an error message
17000         if err is false.
17002         * xditview/libXdvi/parse.c (ParseInput): In case 'D', only call
17003         ParseDrawFunction if dw->display_enable is true.
17005 Wed Oct 31 05:49:50 1990  James Clark  (jjc at jclark)
17007         * pic/pic.y: Parse text positioning like normal attributes, so as
17008         to allow `"text" at 0,0 ljust'.  Don't allow `center' as a
17009         positioning attribute.
17011 Mon Oct 29 22:50:38 1990  James Clark  (jjc at jclark)
17013         * tbl/main.c (process_data): When in state START while reading a
17014         text block, don't change to state MIDDLE if c is a newline.
17016 Sun Oct 28 21:59:56 1990  James Clark  (jjc at jclark)
17018         * dvi/dvi.c (dvi_printer::begin_page): Rename `i' variable to `j'
17019         so as to avoid shadowing parameter.
17021 Wed Oct 24 18:35:39 1990  James Clark  (jjc at jclark)
17023         * tbl/table.c (trim_space): Deleted.
17024         (table::add_entry): Don't call trim_space.
17026 Mon Oct 22 03:48:39 1990  James Clark  (jjc at jclark)
17028         * VERSION: Change version to 0.6.
17030         * troff/number.c (parse_expr): Make == work.
17032 Sat Oct 20 11:28:17 1990  James Clark  (jjc at jclark)
17034         * man/grog.man: New file.
17035         * man/Makefile: Add grog.n to MAN1PAGES.
17036         * etc/grog.sh: New file.
17037         * etc/Makefile: Install grog.sh as grog.
17039 Fri Oct 19 11:17:15 1990  James Clark  (jjc at jclark)
17041         * troff/input.c (token::next): Implement \E.
17043 Thu Oct 18 11:56:24 1990  James Clark  (jjc at jclark)
17045         * xditview/tmac.X: Change font translations to match tmac.ps.
17047         * troff/input.c (non_empty_name_warning): Don't give a warning if
17048         `\{' terminates the name.
17050 Tue Oct 16 10:04:23 1990  James Clark  (jjc at jclark)
17052         * ps/devps/symbol.diff: New file.
17053         * ps/devps/FontMakefile: Mention symbol.diff.
17055 Sun Oct 14 11:46:46 1990  James Clark  (jjc at jclark)
17057         * troff/node.c (font_position): Use get_long_name to read the
17058         external_name.
17060         * troff/env.c (environment_switch): If we get a number that's < 0
17061         or >= NENVIRONMENTS, treat it like a name.
17062         Change NENVIRONMENTS to 10.
17064         * troff/groff.h: Remove definition of FONTS_MAX.
17065         * troff/node.h (class font_family): Make map a pointer instead of
17066         an array. Add a map_size member. Make it a class. Make nm const
17067         and public. Make invalidate_fontno a friend.
17068         * troff/node.c: Define font_table_size. Make font_info a pointer
17069         rather than an array.
17070         (class troff_output_file): Allocate font_position dynamically. Add
17071         nfont_positions member.
17072         (troff_output_file::set_font): Grow font_position if necessary.
17073         (troff_output_file::~troff_output_file): Delete font_position.
17074         (troff_output_file::troff_output_file): Allocate font_position.
17075         (grow_font_table): New function.
17076         (troff_output_file::really_begin_page,
17077         troff_output_file:really_copy_page): Use nfont_positions rather
17078         than FONTS_MAX.
17079         (mount_font_no_translate, mount_style): Call grow_font_table if
17080         necessary.
17081         (font_family::font_family): Allocate map.
17082         (font_family::make_definite): Grow map if necessary. Use
17083         font_table_size instead of FONTS_MAX.
17084         (font_family::~font_family): New function.
17085         (invalidate_fontno): Use font_family::map_size.
17086         (get_fontno, env_space_width, env_half_narrow_space_width,
17087         env_narrow_space_width, symbol_fotno, is_good_fontno,
17088         get_bold_fontno, make_glyph_node): Use font_table_size rather than
17089         FONTS_MAX.
17090         (next_available_font_position): Never return 0.
17092 Fri Oct 12 10:17:52 1990  James Clark  (jjc at jclark)
17094         * ps/tmac.ps: Add font translations for compatibility with dpost.
17096 Thu Oct 11 12:09:03 1990  James Clark  (jjc at jclark)
17098         * eqn/pile.c: Rename default_baseline_sep to baseline_sep.
17099         Move BASELINE_SEP_FORMAT and COLUMN_WIDTH_FORMAT into pbox.h.
17100         Move definitions baseline_sep, shift_down, column_sep,
17101         matrix_side_sep into...
17102         * eqn/box.c: Add them to param_table.
17103         * eqn/pbox.h: Add declarations to pbox.h.
17105         * troff/input.c (set_string): Cast value to unsigned char *.
17107         * troff/token.h (process_input_stack): Declare it static before
17108         declaring it a friend.
17110 Wed Oct 10 09:59:13 1990  James Clark  (jjc at jclark)
17112         * dvi/devdvi/texex.map: Fix positions of extensible brace middle
17113         and bottom.
17114         * dvi/devdvi/EX: Regenerate.
17116         * troff/input.c (init_charset_table): Make ", ', ), ], *, \(dg
17117         transparent.
17119 Tue Oct  9 08:34:02 1990  James Clark  (jjc at jclark)
17121         * eqn/lex.c: In defaults_table, make definition of `dot' call
17122         `dot_def'.  Don't explicitly make it roman.  Similarily for other
17123         accents.
17125         * pic/lex.c (for_input::for_input): Add by_is_multiplicative
17126         argument.
17127         (for_input::get, for_input::peek): Use this.
17128         (do_for): Add by_is_multiplicative argument.
17129         * pic/pic.y: Change optional_by clause to allow '*' after `by'.
17130         Change semantic value of optional_by to be a double plus a flag
17131         saying whethet the by clause is multiplicative.
17133         * eqn/lex.c (get_delimited_text): Remember location of start of
17134         definition.  Improve error handling when EOF is encountered.
17136         * lib/font.h: Rename handle_x_command to
17137         handle_unknown_font_command.
17138         * lib/font.c (font::load): Call handle_unknown_font_command for
17139         any unknown command in the font description file.  Don't call
17140         handle_x_command. Include the name of the command in the argv.
17141         Improve message for unknown command after kernpairs or charset
17142         command.
17143         * ps/ps.c (ps_font::handle_x_command): Rename to
17144         handle_unknown_font_command.  Remove message about `x download'
17145         command.  Give error message for wrong number of arguments.
17146         * ps/devps/afmtodit: Generate `encoding' instead of `x encoding'.
17147         * dvi/dvi.c (dvi_font::handle_x_command): Rename to
17148         handle_unknown_font_command. Give an error message for wrong
17149         number of arguments.  Rename design_size to designsize.
17150         * dvi/tfmtodit.c (main): Generate `checksum' instead of `x
17151         checksum', `designsize' instead of `design_size'.
17153 Mon Oct  8 00:38:55 1990  James Clark  (jjc at jclark)
17155         * eqn/*.[chy]: Change underaccent to uaccent.
17157         * eqn/eqn.y: Add rule for underaccent.  Declare UNDERACCENT token;
17158         give it the same precedence as ACCENT.
17159         * eqn/other.c (make_underaccent_box): New function.
17160         * eqn/box.h: Declare it.
17161         * eqn/lex.c: Add UNDERACCENT to token_table. Add utilde to
17162         def_table.
17164 Sun Oct  7 11:25:16 1990  James Clark  (jjc at jclark)
17166         * pic/pic.y (reset_all): New function. Called in rule for RESET.
17167         (parse_init): Call reset_all.
17168         (define_variable): When defining scale reset only those
17169         pre-defined variables that are scaled.
17170         (defaults_table): Add `scale' as non-scaled value.
17172         * pic/pic.y: Redo parsing of text adjustments: parse adjustments
17173         together with the text; allow any number of positioning words;
17174         allow center as a positioning word.
17176         * pic/object.c (output::compute_scale): Get picture maximum height
17177         and width from variables called maxpswid and maxpsht.
17178         * pic/pic.y: Add maxpswid and maxpsht to defaults_table.
17180 Sat Oct  6 10:16:56 1990  James Clark  (jjc at jclark)
17182         * pic/object.c (object_spec::make_text): Multiply textht by number
17183         of text items.
17185         * pic/pic.y: Allow `sprintf("string", expr,...)' wherever text can
17186         occur.
17187         (do_sprintf): New function.
17188         (pic.gperf): Add sprintf token.
17189         (text, sprintf): New rules.
17191         * pic/pic.y: `rand()' with no arguments returns a random number
17192         in the range [0,1).
17194         * pic/pic.y: Allow a bare expression to be an attribute: change
17195         precedences to support this.  Change optional_ordinal rule to
17196         optional_ordinal_last to avoid reduce/reduce conflict.
17197         * pic/object.c (object_spec::object_spec): Initialize direction.
17199         * pic/pic.y: Implement ^ operator meaning exponentiation.
17201         * troff/node.h: Add default argument to mount_font.
17202         * troff/node.c (font_position): Read an optional third argument
17203         giving the external_name.
17204         (mount_font): Add optional argument giving the external_name.
17205         (mount_font_not_translate): Have additional argument giving
17206         external name.  Use this name to load the font.  Pass both names
17207         to font_info::font_info.
17208         (font_info::font_info): Have additional argument giving
17209         external_name.
17210         (class tfont): New member external_name.
17211         (font_info::get_tfont): Use external name to construct tfont_spec.
17213 Fri Oct  5 04:03:13 1990  James Clark  (jjc at jclark)
17215         * eqn/lex.c (init_table): Add argument giving device.  Define
17216         name of device to be "1".
17217         (do_ifdef): Counts as true if the argument has been defined with
17218         `define'.
17219         * eqn/main.c (main): Call init_table with device argument. Make
17220         device local to main.
17221         * eqn/eqn.h: Change declaration of init_table. Remove declaration
17222         of device.
17224         * pic/lex.c (get_delimited): Allow text to be delimited by
17225         matching {}s.  Don't recognize ending delimiter within a string.
17227         * troff/input.c (get_delim_name): New function.
17228         (token::next): Implement \C.
17230         * lib/font.c (font::load): Grok ---.  Add an alias for each
17231         character based on its code.
17232         (font::get_code_width): Deleted.
17233         * lib/font.h (class font): Declare font::number_to_index().
17234         Remove declaration of font::get_code_width.
17235         * lib/nametoindex.c (font::name_to_index): Add 512 rather than 256
17236         to indices of named characters.
17237         (font::number_to_index): New function.
17238         * troff/input.c (font::number_to_index): New function.
17239         (get_charinfo_by_number, charinfo::get_number,
17240         charinfo::set_number): New functions.
17241         (token::next): Turn \N into a TOKEN_NUMBERED_CHAR.
17242         (token::process, token::description, token::get_char,
17243         token::add_to_node_list, token::operator==): Handle
17244         TOKEN_NUMBERED_CHAR.
17245         * troff/charinfo.h: Declare get_charinfo_by_number,
17246         charinfo::get_number, charinfo::set_number.  Add NUMBERED flag to
17247         charinfo class.
17248         (charinfo::numbered): New function.
17249         * troff/token.h: Add TOKEN_NUMBERED_CHAR.
17250         * troff/env.h (class environment): Remove declaration of ...
17251         * troff/env.c (environment::make_numbered_char_node): Deleted.
17252         * troff/node.c (make_numbered_node): Deleted.
17253         (class numbered_glyph_node): Remove.
17254         (troff_output_file::put_char_width, troff_output_file::put_char):
17255         Handle numbered chars.
17256         (troff_output_file::numbered_char): Removed.
17257         (tfont::get_code_width): Removed.
17258         (make_glyph_node): Don't search special fonts for numbered
17259         characters.
17260         * troff/node.h: Remove declaration of make_numbered_node.
17261         * driver/input.c (do_file): Handle N command.
17262         * driver/printer.h: Add declaration of ...
17263         * driver/printer.c (printer::set_numbered_char): New function.
17264         * dvi/tfmtodit.c (main): Generate unnamed entries.
17265         * ps/devps/afmtodit: Likewise.
17266         * xditview/xtotroff.c (MapFont): Likewise.
17267         * xditview/libXdvi/parse.c (ParseInput): Grok N command.
17269         * tbl/main.c (process_format): If multiple widths are specified
17270         for a column but all the widths are the same, don't give an error
17271         message.
17273         * tbl/table.c (table::do_row): If the current row is all lines and
17274         the stuff doesn't contains a line, mark the top of the row after
17275         printing stuff before the row.  If the current row is not all
17276         lines and the stuff doesn't contain a line, don't unnecessarily
17277         mark the top of the row before printing the stuff.
17278         
17279 Mon Oct  1 11:42:00 1990  James Clark  (jjc at jclark)
17281         * troff/groff.h: Remove MAX_PATH.
17282         * troff/input.c (open_file): Dynamically allocate space for the
17283         path.
17284         (open_mac_file, process_macro_file): Corresponding changes.
17286 Sun Sep 23 18:56:26 1990  James Clark  (jjc at jclark)
17288         * troff/node.h (class output_file): Make copy_file pure.  Add
17289         vspace method ifdef COLUMN. Add is_printing method.
17290         * troff/node.c: Add class printing_reg. Add class
17291         real_output_file. Derive other output_file classes from
17292         real_output_file; in these classes rename begin_page to
17293         really_begin_page, print_line to really_print_line, copy_file to
17294         really_copy_file, transparent_char to really_transparent_char.
17295         Move output_file::flush to real_output_file. Add printing member
17296         to class output_file.
17297         * troff/div.h: Remove printing member from top_level_diversion.
17298         Add vspace member function to class diversion ifdef COLUMN. Add
17299         some declarations ifdef COLUMN.
17300         * troff/div.c (top_level_diversion::copy_file,
17301         top_level_diversion::transparent_output,
17302         top_level_diversion::output): Don't test printing member before
17303         output.
17304         * troff/input.c: Handle initial variable_space_request ifdef
17305         COLUMN.
17306         * troff/Makefile: Add column.c but comment it out. Add -DCOLUMN
17307         but comment it out.
17309 Sat Sep 22 11:32:22 1990  James Clark  (jjc at jclark)
17311         * troff/div.c (diversion::need): Make any space forced.  If we
17312         sprung a trap, set truncated_space to minus the distance to the
17313         trap and set needed_space to the amount that was needed.
17314         (top_level_diversion::space): A forced space turns no_space_mode
17315         off.
17316         (class constant_vunits_reg): New class.
17317         (init_div_requests): Implement number registers .trunc and .ne
17318         using constant_vunits_reg.
17319         (class truncated_space_reg): Deleted.   
17321         * troff/div.h: Don't have a no_space_mode member in diversion.
17322         Instead have it in top_level_diversion.
17323         * troff/div.c (diversion::diversion): Don't initialize
17324         no_space_mode.
17325         (top_level_diversion::top_level_diversion): Initialize
17326         no_space_mode.
17327         (no_space, restore_spacing): Do nothing if curdiv != topdiv.
17328         (macro_diversion::output): Don't clear no_space_mode.
17330         * troff/input.c (diverted_space_node::reread): Don't call
17331         environment::do_break.  In fill mode, act like a blank line.
17332         (diverted_copy_file_node::reread): Don't call
17333         environment::do_break.
17335         * troff/div.c (blank_line): New function.
17336         * troff/div.h: Declare it.
17337         * troff/input.c (process_input_stack): Call it.
17339         * troff/div.c (truncated_space_reg::get_string): New function.
17340         (init_div_requests): Bind to .trunc.
17341         (space_request, top_level_diversion::space,
17342         top_level_diversion::output, macro_diversion::space,
17343         macro_diversion::output): Update truncated_space.
17344         (macro_diversion::output): Redo calculations when trap sprung.
17345         (macro_diversion::output, macro_diversion::space): No need for
17346         trap_flag.
17348         * troff/div.c (top_level_diversion::output): Set nl_reg_contents
17349         after truncating post line spacing.
17351 Fri Sep 21 11:27:25 1990  James Clark  (jjc at jclark)
17353         * ps/devps/prologue (MF, SF): Make them work even if setfont is
17354         defined as a procedure rather than as an operator.
17356 Thu Sep 20 12:55:05 1990  James Clark  (jjc at jclark)
17358         * troff/div.c (macro_diversion::space): Ignore no_space_mode.
17360 Wed Sep 19 10:54:37 1990  James Clark  (jjc at jclark)
17362         * troff/div.c (top_level_diversion::output): Merge
17363         output_file::print_line and output_file::end_of_line member
17364         functions.
17365         * troff/div.h (class output_file):
17366         * troff/node.c (troff_output_file::print_line,
17367         troff_output_file::end_of_line, output_file::end_of_line,
17368         ascii_output_file::print_line, suppress_output_file::print_line):
17369         Corresponding changes.  
17371 Tue Sep 18 11:31:47 1990  James Clark  (jjc at jclark)
17373         * troff/input.c (token::next): Don't give a warning for `\.'.
17375         * troff/env.c (environment::get_center_lines): New function.
17376         (init_env_requests): Bind number register .ce to it.
17377         * troff/env.h: Declare it.
17378         * tbl/table.c (table::init_output): Define reset macro to restore
17379         .ce.  If center option not given, store .ce in SAVED_CENTER_REG.
17380         Then do .ce 0.
17381         (table::print): If center option not given, then imply center
17382         option if SAVED_CENTER_REG > 0.
17384 Mon Sep 17 09:19:19 1990  James Clark  (jjc at jclark)
17386         * ps/devps/Makefile: Remove T from FONTS. Remove TSymbol.ps and
17387         Troff.ps from DOWNLOAD.
17388         
17389         * troff/Makefile: Change comment in DEFINES to avoid confusing
17390         System V make.
17392         * ps/ps.c (ps_printer::do_exec): Allow newlines within PostScript
17393         code.  Don't try to catch errors with stopped.
17394         (check_line_lengths): New function.
17395         * ps/devps/prologue (EXEC): Deleted.
17396         (EBEGIN, EEND): New procedures.
17398 Sun Sep 16 14:51:15 1990  James Clark  (jjc at jclark)
17400         * troff/input.c: Include request.h before node.h.
17401         * troff/node.c: Likewise.
17402         * troff/env.c: Likewise.
17403         * troff/div.c: Likewise.
17404         * troff/node.h (class special_node): Store argument as a macro
17405         rather than a char *.
17406         * troff/node.c (special_node::special_node, special_node::copy):
17407         Grok this.
17408         (special_node::~special_node): Deleted.
17409         (special_node::tprint): Deleted.
17410         (special_node::tprint_start, special_node::tprint_end,
17411         special_node::tprint_char): New functions.
17412         (troff_output_file::special): Deleted.
17413         (troff_output_file::start_special, troff_output_file::end_special,
17414         troff_output_file::special_char): New functions.
17415         * troff/input.c (special_node::tprint): New function.
17416         (do_special): Use macro not char *.
17417         (do_transparent_macro): Deleted.
17418         (token::next): Don't call do_transparent_macro.
17420         * troff/input.c (token::next): Add 'Y' case.
17421         (do_transparent_macro): New function.
17422         * troff/node.c (troff_output_file::special): Handle newlines with
17423         argument using new continuation convention.
17424         * driver/input.c (get_string): Cope with continuation convention.
17425         (do_file): Don't call skip_line after calling get_string(1).
17426         * ps/ps.c (ps_printer::special, ps_printer::do_import,
17427         ps_printer::do_def, ps_printer::do_exec): Cope with newlines in
17428         arg.
17429         * xditview/libXdvi/parse.c (ParseInput): Ignore lines starting
17430         with +.
17432 Sat Sep 15 19:00:10 1990  James Clark  (jjc at jclark)
17434         * troff/input.c (asciify): By default, illegal input characters
17435         should return empty string.
17437         * troff/input.c (copy_file): Handle first page transition like title.
17438         (token::next, process_input_stack): Grok COPY_FILE_REQUEST.
17440         * troff/input.c (token::next): Improve error message for EOF after
17441         escape character.
17442         (input_char_description): New function.
17443         (get_char_for_escape_name): Use input_char_description.
17444         (token::next): Warn about unrecognized escape sequences.
17445         (warning_table): Add WARN_ESCAPE.
17446         * troff/groff.h: Declare WARN_ESCAPE. Change WARN_TOTAL
17447         accordingly.
17449         * troff/token.h: Remove declaration of process_input_stack.
17451         * troff/input.c: Remove declaration of init_hyphen_requests.
17452         * troff/request.h: Correct spelling in declaration of same.
17454         * troff/input.c (token::next): Check whether escape_char is 0.
17456 Fri Sep 14 12:09:25 1990  James Clark  (jjc at jclark)
17458         * groff.c (main, usage, help): Implement -P and -L options.
17459         * groff.sh: Likewise.
17461         * troff/input.c (token::next): Use some gotos to avoid code
17462         duplication.
17464         * troff/input.c (get_long_name, get_name, read_long_ecsape_name):
17465         Avoid calling symbol::symbol if name empty.
17467 Thu Sep 13 06:21:45 1990  James Clark  (jjc at jclark)
17469         * troff/input.c (init_input_requests): Make \n(.x return the major
17470         version number and \n(.y return the minor version number.
17471         * troff/Makefile: Construct file majorminor.c defining
17472         major_version and minor_version automatically from ../VERSION.
17474         * troff/node.c (class glyph_node): Make operator new and operator
17475         delete public.
17476         (class ligature_node): Similarily.
17478         * troff/input.c (operator==(const macro &, const macro &)): New
17479         function.
17480         (non_interpreted_node::same): Use this.
17481         (string_iterator::string_iterator): Make macro& argument const.
17483         * troff/input.c (input_iterator::get): New function. Don't make
17484         asciify_macro or class non_interpreted_node friends of class
17485         input_iterator.
17486         (non_interpreted_node::interpret): Use input_iterator::get.
17487         (asciify_macro): Likewise.
17489         * troff/input.c (~token_node, ~string_iterator, ~arg_list,
17490         ~non_interpreted_node): Deleted.
17491         * troff/node.c: (~suppress_output_file, ~ascii_output_file):
17492         Deleted.
17494         * troff/symbol.h: Make all symbol member functions const.
17496         * lib/strtol.c: New file.
17497         * lib/Makefile: Add strtol.c.
17498         * Makefile: Define STRTOL as strtol.o to include strtol in
17499         libgroff.a.
17501 Wed Sep 12 10:00:49 1990  James Clark  (jjc at jclark)
17503         * pic/troff.c (troff_output::simple_circle): Divide by scale.
17505 Tue Sep 11 14:17:16 1990  James Clark  (jjc at jclark)
17507         * troff/input.c (do_special): Use input_level.
17509         * troff/token.h (TOKEN_BACKSPACE): New token.
17510         (token::backspace): New function.
17511         * troff/input.c (token::description, token::next, token::process):
17512         Grok TOKEN_BACKSPACE.
17513         (do_special): Turn TOKEN_BACKSPACE back into \b.
17515         * troff/token.h (token::leader): New function.
17516         * troff/input.c (do_special): Turn TOKEN_LEADER back into \001.
17518         * troff/input.c (do_special): Turn TOKEN_TAB back into \t.
17520         * troff/input.c (do_special): Use token::description in error
17521         message.
17523 Mon Sep 10 11:06:27 1990  James Clark  (jjc at jclark)
17525         * troff/input.c (decode_args): Combine quoted and
17526         quote_input_level variables. Make it a for (;;) loop.
17528         * troff/input.c (get_char_for_escape_name): Check for \001 and \b.
17530         * troff/input.c (read_long_escape_name): The test for whether to
17531         expand buffer was off by 1.
17532         (read_string): Similarily.
17534 Fri Sep  7 11:45:50 1990  James Clark  (jjc at jclark)
17536         * troff/input.c: Use `const int' rather than `static const int'.
17538         * troff/div.h (diversion::copy_file): Declare as pure virtual.
17539         (macro_diversion::copy_file): New function.
17540         * troff/node.h: New class diverted_copy_file_node.
17541         * troff/node.c: Implement it.
17542         * troff/input.c (copy_file): Use diversion::copy_file. Handle
17543         first page transition by pushing a diverted_copy_file_node.
17544         * troff/input.c (token::next, process_input_stack): Don't handle
17545         COPY_FILE_REQUEST.
17547 Thu Sep  6 13:29:10 1990  James Clark  (jjc at jclark)
17549         * ps/ps.c (flush_sbuf): Remember to add sbuf_kern when checking
17550         whether space widths need adjusting.
17552         * troff/charinfo.h: Generalize translated_to_space to
17553         special_translation so as to allow translation to \&.
17554         * troff/input.c (translate): Allow translation to \&.
17555         (charinfo::*): Corresponding changes.
17556         * troff/node.c (make_node, node::add_char): Corresponding changes.
17557         * troff/node.h (dummy_node::dummy_node): Allow optional first
17558         argument.
17560         * lib/lib.h: Make codes 0200 to 0237 illegal input characters.
17561         * troff/token.h: Remove TOKEN_TITLE. Remove token::title. Add
17562         TOKEN_REQUEST.
17563         * troff/input.c (token::next): Turn a TITLE_REQUEST into a
17564         TOKEN_REQUEST with an argument of TITLE_REQUEST.
17565         (token::process): Grok that.
17566         * troff/input.c (copy_file): Handle first page transition like
17567         title by pushing a COPY_FILE_REQUEST cookie.
17568         (token::next, process_input_stack): Grok that.
17569         * troff/node.h (output_file::copy_file): Add x and y arguments.
17570         Make it non-pure.
17571         * troff/div.c (top_level_diversion::copy_file): Supply them.
17572         * troff/node.c (troff_output_file::copy_file): Add x and y
17573         arguments; moveto specified position.  Invalidate font_position
17574         array after copying file.
17575         (output_file::copy_file): New function.
17576         (suppressed_output_file::copy_file, ascii_output::copy_file):
17577         Removed.
17578         * troff/input.c (transparent_file): New function.
17579         (init_input_requests): Bind to "trf".
17580         (token::next): Handle TRANSPARENT_FILE_REQUEST cookie.
17581         (process_input_stack): Likewise.
17583         * troff/Makefile: Add ../lib/lib.h to GROFF_H.
17585         * troff/node.c (init_node_requests): New number registers .kern
17586         pointing to global_kern_mode, and .lg pointing to
17587         global_ligature_mode.
17589         * troff/node.c (ligature): Don't change it if we get a bad
17590         integer.
17592         * troff/input.c (do_define_string): Don't strip tabs.
17594         * troff/input.c (asciify_macro): Make the string_iterator auto.
17596         * troff/node.c (init_font_requests): Rename to...
17597         (init_node_requests):
17598         * troff/node.h: Change declaration.
17599         * troff/input.c (main): Change call.
17601         * troff/input.c (node::reread, diverted_space_node::reread): New
17602         methods.
17603         (process_input_stack): Call reread rather than
17604         get_diverted_space_node.
17605         * troff/node.c (node::get_diverted_space_node,
17606         diverted_space_node::get_diverted_space_node): Removed.
17607         * troff/node.h: Declare reread methods instead of
17608         get_diverted_space_node methods. Make `n' member private.
17609         * troff/input.c: (token::diverted_space): Removed.
17610         * troff/token.h: Removed declaration.
17611         
17613 Tue Sep  4 00:48:04 1990  James Clark  (jjc at jclark)
17615         * eqn/script.c (script_box::compute_metrics): Don't let
17616         SUP_RAISE_FORMAT become negative.
17618         * tbl/table.c (table::do_row): Entries that don't end in the
17619         this row shouldn't make the row non-blank.
17620         
17621         * tbl/table.c (table::make_columns_equal): Only set the width of
17622         columns which are marked as equal.
17623         
17624         * tbl/main.c (process_data): Before issuing excess data error,
17625         if last character was a newline unget it; then get it again after
17626         the error.  Also include the contents of the entry in the message.
17628         * groff.c: New file.
17629         * Makefile: Build groff from groff.c.  Make it possible to use
17630         either groff.sh or groff.c as groff.
17631         * Makefile.bd: Similarily.
17633 Mon Sep  3 09:39:49 1990  James Clark  (jjc at jclark)
17635         * groff.sh: Don't delay expansion of $@ in assignment to files.
17636         Remove occurrences of \".
17638 Sun Sep  2 09:56:59 1990  James Clark  (jjc at jclark)
17640         * all Makefiles: Simplify and rearrange.
17642         * Makefile: Handle fmod like malloc.
17643         * lib/Makefile: Similarily.
17644         * lib/fmod.c: Remove #ifdef NEED_FMOD.
17646         * Makefile: Rename OPTIMISE to OPTIMIZE.
17648         * groff.sh: Remove assignment to PATH.
17649         * Makefile: Remove SHPATH variable.
17650         * Makefile.bd: Similarily.
17652         * groff.sh: Add -V option to print the pipeline instead of
17653         executing it.
17655 Fri Aug 31 00:56:46 1990  James Clark  (jjc at jclark)
17657         * lib/font.c: Split off file searching into ...
17658         * lib/fontfile.c: New file.
17660         * lib/strerror.c (strerror): Use `Error %d' for unknown errors.
17662 Thu Aug 30 13:13:55 1990  James Clark  (jjc at jclark)
17664         * tbl/table.c (table::do_hspan): Delete assertion that e != 0.
17665         Also change misleading comment.
17666         (table::do_vspan): Change similarily misleading comment.
17667         * tbl/main.c (process_data): A format row with an explicit `s'
17668         uses up a data line, even if all the other columns are `_' or `='.
17670         * troff/input.c (token::description): Fix description of
17671         TOKEN_DUMMY and TOKEN_EMPTY.
17673 Wed Aug 29 04:12:08 1990  James Clark  (jjc at jclark)
17675         * groff.sh: Fix description of -Z in help message.
17677 Tue Aug 28 07:28:33 1990  James Clark  (jjc at jclark)
17679         * pic/object.c (object_spec::make_object): Allow negative and zero
17680         line thicknesses.
17681         * pic/pic.y: Give linethick default value of -1.0.
17682         * pic/troff.c (troff_output::troff_output): Initialize
17683         last_line_thickness to BAD_THICKNESS.
17684         (troff_output::finish_picture): Set thickness to BAD_THICKNESS.
17685         (troff_output::line_thickness): Canonicalize negative thicknesses
17686         to RELATIVE_THICKNESS.
17687         * pic/tex.c (tex_output::set_pen_size): Silently map negative line
17688         thicknesses to DEFAULT_PEN_SIZE. Canonicalize negative pen sizes
17689         to -1.0.
17690         (tex_output::start_picture): Set pen_size to -2.0.
17692         * ps/ps.c (ps_printer::set_line_thickness): If line_thickness is
17693         0, then use 0 linewidth.
17694         (ps_printer::ps_printer): Initialize line_thickness to -1.
17696         * pic/troff.c (troff_output::simple_ellipse): Divide by scale.
17698         * ps/devps/symbolchars: Remove `or'.
17699         * ps/tmac.ps: Implement \(or with .char.
17701         * ps/devps/symbolchars: Move most characters into textmap.
17702         * ps/devps/textmap: Add names for troff bracket characters. Remove
17703         ul, ru, br, bv.
17705         * ps/devps/TSymbol.ps: Removed.
17706         * ps/devps/FontMakefile: Make S from Symbol not TSymbol.
17707         * ps/tmac.ps: Do with .char what TSymbol did.
17708         * ps/devps/download: Remove TSymbol.
17710         * ps/devps/T: Removed.
17711         * ps/devps/Troff.ps: Removed.
17712         * ps/devps/Troff.afm: Removed.
17713         * ps/tmac.ps: Implement \(ru, \(ul, and \(br with .char.
17714         * ps/devps/download: Remove Troff.
17715         * ps/devps/FontMakefile: Remove T target.
17716         * ps/devps/DESC-A4: Remove T from font list.
17717         * ps/devps/DESC-letter: Likewise.
17719         * troff/input.c (macro_to_node): Rename to ...
17720         (charinfo_to_node): Don't pass mac argument.  Temporarily remove the
17721         character's definition while processing it.
17722         * troff/node.c (node::add_char, make_node): Change calls to
17723         macro_to_node accordingly.
17725         * troff/input.c (token::next): Translate \_ to \(ul.
17727         * tty/devascii/R.proto: Add `|'.
17728         * tty/devlatin1/R.proto: Likewise.
17730 Mon Aug 27 11:25:41 1990  James Clark  (jjc at jclark)
17732         * man: Put the version number in all the man pages.
17734 Sun Aug 26 11:40:05 1990  James Clark  (jjc at jclark)
17736         * Makefile.bd: New file.
17737         * README.bd: New file.
17739         * VERSION: New file.
17740         * lib/version.c: Removed.
17741         * lib/Makefile: Create version.c from ../VERSION. Remove version.c
17742         in clean target.
17744         * troff/input.c (main): Get hyphen_file from GROFF_HYPHEN
17745         environment variable.
17747         * all Makefiles: Split install target into install.bin for
17748         binaries, and install.nobin for everything else.
17749         * Makefile: Add bindist target.
17751         * man/afmtodit.man: New file.
17752         * man/Makefile: Add afmtodit.n to MAN1PAGES.
17753         * ps/devps/Makefile: Add textmap to DEVICEFILES. Install afmtodit
17754         in BINDIR.
17755         * ps/Makefile: Pass BINDIR to make install in devps.
17757         * ps/ps.c (ps_printer::set_char): Do nothing if the character is
17758         the space character.
17760         * ps/devps/FontMakefile: Rename symbol.afm to tsymbol.afm.
17762 Sat Aug 25 15:39:03 1990  James Clark  (jjc at jclark)
17764         * ps/ps.c: Redo font downloading.
17765         * ps/devps/download: New file.
17766         * ps/devps/Makefile: Add download to DEVICEFILES.
17767         * ps/devps/afmtodit: Remove -d option.
17768         * ps/devps/FontMakefile: Don't use -d option with afmtodit.
17769         * ps/devps/symbosl.ps: Add %%DocumentFonts comment.
17770         * ps/devps/zapfdr.ps: Likewise.
17771         * ps/devps/TSymbol.ps: Likewise.
17773 Fri Aug 24 20:10:30 1990  James Clark  (jjc at jclark)
17775         * groff.sh: Initialize dev to ${GROFF_TYPESETTER:-@DEVICE@}.
17777 Thu Aug 23 10:03:47 1990  James Clark  (jjc at yquem)
17779         * ps/ps.c (ps_output::include_file): If BROKEN_SPOOLER is defined,
17780         then strip the first line if it starts with %.
17781         * Makefile: Add a comment about this.
17783         * man/tfmtodit.man: New file.
17784         * man/Makefile: Add tfmtodit.n to MAN1PAGES.
17785         * dvi/Makefile: Install tfmtodit in BINDIR.
17787         * dvi/tfmtodit.c (usage): Mention -v option.
17789 Wed Aug 22 09:56:36 1990  James Clark  (jjc at yquem)
17791         * troff/node.c (troff_output_file::end_of_line): Call do_motion.
17792         * troff/node.c (troff_output_file::transparent_char): Don't call
17793         flush_tbuf.
17795         * eqn: Add check_tabs method to most box classes.
17796         * eqn/box.c (box::top_level): Call check_tabs.
17798         * eqn/script.c (script_box::output): Use \Z.
17799         * eqn/limit.c (limit_box::output): Use \Z.
17801         * eqn/box.c (box::top_level): Use itoa.
17803 Tue Aug 21 09:29:28 1990  James Clark  (jjc at yquem)
17805         * dvi/tmac.dvi: Add font translations for CR, C, TT.
17806         * dvi/devdvi/Makefile: Don't make links to CW.
17808         * ps/tmac.ps: Add font translations for C, CW, CO, CX, CD, H, HO,
17809         HX, HD.
17810         * xditview/tmac.X: Likewise.
17812         * troff/node.c: Add font translation feature.
17813         (get_font_translation): New function.
17814         (symbol_fontno): Translate the font name.
17815         (mount_font_no_translate): Rename to mount_font to this.
17816         (mount_font): New function.
17817         (font_family::make_definite): Call mount_font_no_translate instead
17818         of mount_font.
17819         (mount_style): Translate the font name.
17820         (font_translate): New function.
17821         (init_font_requests): Bind "ftr" to font_translate.
17823         * ps/devps/prologue (SN): New procedure that rounds a position to
17824         the nearest (pixel + (.25,.25)).
17825         (DL): Use SN to round endpoints.
17827         * lib/version.c: Changed version to 0.5.
17829 Sat Aug 18 04:43:21 1990  James Clark  (jjc at yquem)
17831         * Makefile: Move definition of PAGE to the very beginning, so that
17832         people are less likely to miss it.
17834 Fri Aug 17 02:15:11 1990  James Clark  (jjc at yquem)
17836         * man/Makefile: Don't need to sed out @UPCASE_PROG_PREFIX@.
17838         * troff/env.c (environment::choose_breakpoint): Make `can't find
17839         breakpoint' error a warning of type WARN_BREAK.  Change message to
17840         `can't break line'.
17841         * troff/groff.h: Declare WARN_BREAK with code 4; change WARN_INPUT to
17842         code 040000.
17843         * troff/input.c: Add WARN_BREAK to warning_table.  Include
17844         WARN_BREAK in DEFAULT_WARNING_MASK.
17846         * tty/tmac.tty: Add definition of \(+-.
17848         * groff.sh: Remove `--' option to set command.
17850         * dvi/devdvi/texsy.map: Remove duplicate md entry.
17852         * ps/devps/eqnchar: Better definition of cdot using md.
17853         * dvi/devdvi/eqnchar:  Likewise.
17854         * xditview/devX100/eqnchar:  Likewise.
17855         * xditview/devX75/eqnchar: Likewise.
17856         * eqn/lex.c: Add definition of cdot.
17858 Thu Aug 16 09:33:57 1990  James Clark  (jjc at yquem)
17860         * troff/input.c (get_optional_char): New function.
17861         * troff/input.c (set_page_character): Use get_optional_char(),
17862         rather than has_arg() and tok.get_char(1).
17863         * troff/env.c (tab_character, leader_character, hyphen_char,
17864         field_characters): Likewise.
17865         (margin_character): Likewise.  Also always delete the
17866         margin_character_node.
17868         * troff/input.c (token::get_char): Use token::description.
17870         * troff/input.c (has_arg): Don't skip over tab and \}.
17871         * troff/number.c (start_number): Give a warning if the number
17872         starts with \} (WARN_RIGHT_BRACE) or tab (WARN_TAB).
17874 Wed Aug 15 10:04:37 1990  James Clark  (jjc at yquem)
17876         * troff/input.c (empty_name_warning, non_empty_name_warning): New
17877         functions.
17878         (get_name, get_long_name): Use these.  Rename `warn' argument to
17879         `required'.
17881         * troff/node.c (get_fontno): Test that the symbol is not null.
17883         * troff/input.c (token::description): New function.
17884         * troff/number.c (parse_term): Use token::description in `numeric
17885         expression expected' message.
17886         * troff/groff.h: Add WARN_MISSING.
17887         * troff/number.c (start_number): New function.
17888         * troff/number.c (get_vunits, get_hunits, get_number, get_integer,
17889         get_incr_number): Use start_number().
17890         * troff/input.c (DEFAULT_WARNING_MASK): Enable WARN_NUMBER by
17891         default.
17892         * troff/input.c (get_name, get_long_name): Use WARN_MISSING.
17893         * troff/reg.c (alter_format): Use WARN_MISSING. Also use
17894         token::descripion.
17895         * troff/input.c (token::get_char): Use WARN_MISSING.
17896         * troff/input.c (token::delimiter): Use token::description.
17897         * troff/env.c (environment_switch): Back out Aug 3 change.
17898         * troff/input.c (has_arg): Skip over \}s and tabs but give a
17899         warning.
17900         * troff/token.h (token::tab): New function.
17901         * troff/node.c (get_fontno): Use tok.skip() rather than has_arg().
17902         * troff/reg.c (alter_format): Likewise.
17903         * troff/node.c (bold_font): Use has_arg() rather than tok.skip().
17905 Tue Aug 14 10:11:21 1990  James Clark  (jjc at yquem)
17907         * troff (most files): Redo warnings. Divide warnings into various
17908         categories; warning() has an additional first argument indicating
17909         the category it falls into.
17910         * troff/input.c (main): -w now takes an argument. New option -W.
17911         (enable_warning, disable_warning): New functions.
17913         * ps/devps/afmtodit: Add -a option to lie about the italic angle.
17914         * ps/devps/FontMakefile: Pretend TI has an angle of 7.
17916 Mon Aug 13 10:11:16 1990  James Clark  (jjc at yquem)
17918         * ps/devps/eqnchar: Better definitions of dotdot, vec, dyad, inf.
17919         * xditview/devX100/eqnchar: Likewise. Remove definition of dot.
17920         * xditview/devX75/eqnchar: Likewise.
17921         * dvi/devdvi/eqnchar: Better definitions of vec, dyad, dotdot.
17923         * eqn/other.c: When bar or over applies to a single character
17924         don't produce an overline_box or an underline_box. Instead produce
17925         an accent_box or an underaccent_box, with the accent a line
17926         whose width is accent_width.  New classes underaccent_box,
17927         overline_char_box and underline_char_box.
17928         * eqn/box.h: Move overline_box, underline_box, accent_box class
17929         declarations into eqn/other.c. Add declarations of
17930         make_underline_box, make_overline_box, make_accent_box.
17931         * eqn/eqn.y: Call make_overline_box, make_underline_box
17932         make_accent_box instead of constructors.
17933         * eqn/pbox.h, eqn/box.c: Add accent_width parameter.
17935         * eqn/other.c: Add accent_box::~accent_box.
17936         * eqn/box.h: Declare it.
17938         * groff.sh: With -Tps, use eqn -D.
17940         * eqn/other.c (overline_box::output): Use \Z. If draw_flag use \D
17941         rather than \l.
17942         (underline_box::output): Similarily.
17943         (accent_box::output): Use \Z.
17945         * xditview/tmac.X: Add definitions of ~ and ^ (so that they are a
17946         bit smaller.)
17948 Sun Aug 12 09:41:15 1990  James Clark  (jjc at yquem)
17950         * troff/div.c (top_level_diversion::transparent_output(unsigned
17951         char)): Use asciify.
17952         * troff/input.c (asciify): Don't make it static.
17953         * troff/token.h (asciify): Declare it.
17954         
17955         * troff/input.c (get_name, get_long_name, token::get_char,
17956         token::delimiter): Add an extra default argument which says
17957         whether a warning should be printed.
17958         * troff: Pass a non-zero argument to one of these rather than
17959         printing a warning directly.
17961 Sat Aug 11 09:02:21 1990  James Clark  (jjc at yquem)
17963         * troff: Consistently use symbol::is_null.
17965         * troff/dictionary.h: Move some inline functions into
17966         dictionary.c.
17968         * troff/request.h: Move inline functions into input.c.
17969         (request_or_macro::invoke): Make it pure.
17971         * troff/input.c, troff/reg.h: New class `constant_int_reg'.
17972         * troff/input.c (init_input_requests): Use class constant_int_reg.
17973         (class compatible_reg): Deleted.
17974         * troff/div.c (init_div_requests): Use class constant_int_reg.
17975         (class last_post_line_extra_space_reg): Deleted.
17977         * troff/env.c (tab_character): Don't change the tab character if
17978         we get an invalid argument.
17979         (hyphen_char): Similarily.
17981         * troff/reg.c (alter_format): Check that nm is not null.
17983         * Makefile, groff.sh: Make it possible to customize the commands
17984         used for printing PostScript and dvi files. Also make it possible
17985         to customize the path used by groff.sh.
17987         * eqn/eqn.y: Make `left' right associative.
17989 Fri Aug 10 18:20:39 1990  James Clark  (jjc at yquem)
17991         * pic/pic.h: Added definition of M_SQRT2 for those systems that
17992         don't have it.
17994         * pic/pic.h: Removed definition of INT_MAX.
17996         * troff/node.c (italic_corrected_node::vertical_extent): Omit
17997         `return'.
17999         * troff/input.c (token::next):  Handle \R like \n.
18001 Tue Aug  7 09:46:33 1990  James Clark  (jjc at yquem)
18003         * ps/tmac.pc (PSPIC): Simplify.
18005         * troff/env.c (tab_stops::to_string):
18006         * pic/pic.y (object_type_name):
18007         * pic/troff.c (simple_output::line):
18008         * pic/tex.c (tex_output::spline):
18009         * pic/object.c (object_spec::make_object):
18010         * tbl/main.c (process_data):  Add cases to switch statements to
18011         avoid cfront warnings. (Some of these are spurious, since the
18012         switch already has a default case.)
18014         * ps/tmac.ps (PSPIC): Reformatted.  Prefix all local names with
18015         `ps-'.  Don't test systat; instead check number of arguments to
18016         ps-bb.
18018 Mon Aug  6 00:13:07 1990  James Clark  (jjc at yquem)
18020         * macros/tmac.e: Do not decrease the page offset by 0.5i.
18022         * ps/ps.c (ps_printer::ps_printer): Use mktemp instead of tempnam.
18023         Unlink the file as soon as we have opened it, so that we don't
18024         have to bother with signal handlers.
18025         (handler): Deleted.
18026         (fatal_error_exit): Deleted.
18027         (main): Don't call signal.
18029         * dvi/tfmtodit.c: Add -k option so that kerns with the skewchar
18030         can be ignored.
18031         * dvi/devdvi/Makefile: Use the -k option with S and MI.
18033         * pic/pic.y:  If there is a label, or an nth construction before
18034         the first `.' in the argument to `with', ignore it and generate a
18035         warning.
18036         * pic/lex.c (lex_warning): New function.
18038         * tbl/table.c (table::init_output): In section keep and release
18039         macro, use 0 indent when diverting and the correct indent when
18040         rereading.
18042         * troff/input.c (interpolate_number_format): Do not interpolate
18043         anything if the number register is not defined.
18045         * tbl/main.c (process_data): Don't add entry when col >= ncolumns.
18047 Sat Aug  4 08:12:05 1990  James Clark  (jjc at yquem)
18049         * ps/devps/prologue (PICTURE): Set components of graphics state to
18050         their default values.
18052         * ps/devps/text.enc: Add trademark
18053         * ps/devps/textmap: Add names for club, spade, heart, diamond,
18054         carriagereturn, suchthat. Use Upsilon1 rather than Upsilon.
18055         * ps/devps/symbolchars: Add names for summation and product.
18057         * dvi/devdvi/texsy.map: Add names for club, spade, heart, diamond,
18058         suchthat. Add pp. Add upper-case letters.
18060         * xditview/libXdvi/DviChar.c: Add names for club, spade, heart,
18061         diamond, carriagereturn, suchthat. Use Upsilon1 rather than
18062         Upsilon.
18064         * dvi/devdvi/texsy.map: Rename lA (left angle bracket) to la, and
18065         rA (right angle bracket) to ra.  Introduce names for double-headed
18066         arrows and double-barred arrows: <>, va, lA, rA, hA, uA, dA, vA.
18067         * ps/devps/textmap: Likewise for ps device.
18068         * xditview/libXdvi/DviChar.c: Likewise for X100 and X75 devices.
18069         * tty/devascii/R.proto: Rename lA to la and rA to ra.
18070         * tty/devascii/R.proto: Likewise.
18071         * tty/tmac.tty: Provide definitions for \(<>, \(lA, \(rA, \(hA,
18072         \(uA, \(dA.
18073         * eqn/delim.c: In delim_table, rename \(lA to \(la and \(rA to \(ra.
18075         * xditview/tmac.X: Add definitions for \(fi \(fl \(ff \(Fi \(Fl.
18077         * eqn/lex.c: Added definitions of `approx', `grad' and `del' to
18078         def_table.
18080 Fri Aug  3 09:59:27 1990  James Clark  (jjc at yquem)
18082         * troff/div.c (when_request): Use symbol::is_null rather than
18083         has_arg to determine whether we have an argument.
18084         (change_trap): Remove the trap if we get an invalid number. Give
18085         an error if we don't get at least the macro name.
18086         (diversion_trap): Remove trap if we get an invalid name or number.
18088         * troff/env.c (environment_switch): Pop if we get an invalid
18089         symbol or numeric expression.
18091         * troff/input.c (do_define_macro):  If EOF is encoutered while
18092         defining the macro, do tok.next() before returning.
18094         * troff/token.h (has_arg): Move definition from here, to ...
18095         * troff/input.c (has_arg): ... here
18097         * troff/env.c (space_size): Do nothing if we get an invalid argument.
18098         * troff/input.c (shift): Likewise.
18100         * pic/lex.c (get_token_after_dot):  Accept `.center' as a synonym
18101         for `.c'.
18103         * pic/troff.c (troff_output::start_picture):  Comment out calls to
18104         `..'.
18106         * eqn/main.c (do_file): Subtract 1 from current_lineno if
18107         interpret_lf_args succeeds.
18109         * eqn/main.c (do_file): Don't recognize delimiter if preceded by
18110         \\.  This avoids problems with \$N.
18112         * groff.sh: Pass -C to preprocessors.
18114         * lib/lf.c (interpret_lf_args):  Be more flexible.
18116         * tbl/main.c (main): Add -C option.
18117         (table_input::get): Do not recognize TE if followed by character
18118         other than a space or newline unless -C option given.
18119         (process_input_file): Likewise for lf, TS.
18120         (process_data): Likewise for lf in text blocks.
18122         * eqn/main.c (main): Add -C option.
18123         (do_file): Don't recognize EQ, EN or lf if followed by character
18124         other than space or newline unless -C option given.
18125         * eqn/lex.c (file_input::read_line): Similarily.
18126         * eqn/eqn.h: Declare compatible_flag.
18128         * etc/soelim.c (main): Add -C option.
18129         (interpret_lf_args): Use version in libgroff.
18130         (do_file):
18132         * pic/main.c (main): Add -C option, which sets compatible_flag.
18133         (top_input::get), (top_input::peek):  If -C option not given,
18134         do not recognize .PS/.PE/.PF/.lf if followed by a character
18135         other than space or newline.
18136         * pic/lex.c (file_input::read_line): Similarily.
18137         * pic/pic.h: Add declaration of compatible_flag.
18139 Thu Aug  2 11:11:27 1990  James Clark  (jjc at yquem)
18141         * ps/tmac.ps (PSPIC): Avoid use of `echo -n'.
18143         * troff/node.c, troff/node.h:  Add `asciify' methods to classes
18144         derived from node.  New class space_char_hmotion_node.
18145         * troff/input.c (asciify_macro): New function.
18146         * troff/input.c (init_input_requests): New request `asciify' bound
18147         to asciify_macro.
18148         * macros/mm.diff: New file.
18149         * Makefile:  In install.mm target use `patch' to apply
18150         macros/mm.diff.
18152         * troff/input.c (macro::print_size): Just print the size in bytes.
18154         * troff/div.c (return_request): Correct the argument
18155         interpretation.
18157 Wed Aug  1 12:38:36 1990  James Clark  (jjc at yquem)
18159         * troff/node.h (class composite_node): Add sz member.
18160         * troff/node.c (composite_node::size): Return sz.
18161         * troff/input.c (macro_to_node):  Use the initial size in the
18162         environment as the size of the composite_node.
18164         * troff/node.c (node::zero_width_tprint):  Provide a reasonable
18165         default.
18167 Tue Jul 31 10:07:10 1990  James Clark  (jjc at yquem)
18169         * troff/div.c (change_trap): If we get a bad number expression,
18170         do nothing.
18172 Mon Jul 30 10:30:49 1990  James Clark  (jjc at yquem)
18174         * lib/matherr.c (matherr): Define this only if math.h defines
18175         TLOSS.
18177 Sun Jul 29 10:34:27 1990  James Clark  (jjc at yquem)
18179         * troff/div.c (macro_diversion::distance_to_next_trap): If there
18180         no diversion trap return vunits(INT_MAX - vresolution).
18182 Sat Jul 28 14:28:14 1990  James Clark  (jjc at yquem)
18184         * troff/input.c (do_zero_width): New implementation that doesn't
18185         use a temporary environment. Use instead:
18186         (token::add_to_node_list): New function.
18187         * troff/env.c (environment::get_prev_char_height),
18188         (environment::get_prev_char_height),
18189         (environment::get_prev_char_skew): New functions.
18190         (environment::get_prev_char): New function.
18191         (environment::get_prev_char_width): Change to use get_prev_char.
18192         (init_env_request): Implement new registers .cht, .cdp, .csk.
18193         * eqn/sqrt.c (sqrt_box::output): Don't rely upon the argument to
18194         \Z being processed in a separate environment.
18196 Fri Jul 27 10:21:25 1990  James Clark  (jjc at yquem)
18198         * tbl/table.c: Removed TABLE_BOTTOM_REG.
18200         * tbl/table.c (table::init_output): In the section release macro,
18201         give a warning message if the section won't fit on one page.
18203         * tbl/table.c (table::do_top): Emit table keep only if table is
18204         boxed.
18205         (table::do_bottom): Likewise for table release.
18206         (table::table), (table::add_vertical_rule):  Remove reference to
18207         keep member.
18208         * tbl/table.h: Remove keep member.
18210         * tbl/table.c: New register SUPPRESS_BOTTOM_REG. In
18211         SECTION_RELEASE_MACRO, if there's not enough space before the next
18212         trap to output the diversion, call T# ourselves, set
18213         SUPPRESS_BOTTOM_REG to 1, spring the trap, then set
18214         SUPPRESS_BOTTOM_REG back to 0.  In T#, do nothing if
18215         SUPPRESS_BOTTOM_REG is non-zero.  In T#, always mark the current
18216         vertical position and return to it before turning traps on again.
18217         
18218 Thu Jul 26 02:54:32 1990  James Clark  (jjc at yquem)
18220         * troff/node.c, troff/node.h: In classes derived from node,
18221         replace prev_char_width method by last_char_node method.
18222         * troff/env.c (environment::get_prev_char_width): Use
18223         node::last_char_node rather than node::get_prev_char_width.
18225         * Makefile: Added comment about -fno-inline on 68030-based
18226         Apollos.
18228         * troff/reg.c (number_format_to_ascii), eqn/delim.c (DELIM_TABLE_SIZE),
18229         tty/tty.c (tty_font::load_tty_font), dvi/tfmtodit.c (main): Cast
18230         expressions using sizeof to int.
18231         * dvi/dvi.c (dvi_font::handle_x_command): Avoid long->int warnings.
18233         * macros/tmac.e (TS):  Don't move @f back past the current
18234         position.
18236 Wed Jul 25 09:11:08 1990  James Clark  (jjc at yquem)
18238         * ps/ps.c (main): Buffer stderr.
18239         * dvi/dvi.c (main): Likewise.
18240         * tty/tty.c (main): Likewise.
18242         * ps/ps.c (ps_printer::do_import): Improve error handling.
18244         * troff/input.c (abort_request): Use asciify.
18246         * driver/printer.h (printer::draw), driver/printer.c (printer::draw),
18247         ps/ps.c (ps_printer::draw), dvi/dvi.c (dvi_printer::draw): Make
18248         type of first argument int rather than char.  This works around a
18249         bug on the 68030 based Apollo using g++ 1.37.1.
18251         * tbl/table.h (class table): Add `keep' member.
18252         * tbl/table.c (table::table): Initialize `keep'.
18253         (table::add_vertical_rule): Set `keep' to 1.
18254         (table::do_top): Only emit table keep macro is `keep' is non-zero.
18255         (table::do_bottom): Likewise for table release macro.
18256         (table::do_row): Emit section keep macro even if the row is 0.
18258 Tue Jul 24 08:35:07 1990  James Clark  (jjc at yquem)
18260         * macros/tmac.e (@C): Preserve the font family across the change
18261         in environments.
18263 Mon Jul 23 10:15:23 1990  James Clark  (jjc at yquem)
18265         * lib/font.c: Initialize font::hor and font::vert to 1.
18266         (font::load_desc): Check the values of font::hor and font::vert.
18268         * lib/lib.h: Added definition of INT_DIGITS. Fix it so that it can
18269         be included in a C compilation.
18270         (iftoa): Use INT_DIGITS. Include lib.h.
18271         (itoa): Likewise.
18272         (as_string): Likewise.
18273         * tbl/table.c: Removed definition of INT_DIGITS.
18274         * eqn/box.c (box::top_level): Use INT_DIGITS + 1 instead of 12.
18275         * troff/input.c (input_input_requests): Likewise.
18276         * ps/ps.c (make_encoding_name): Likewise.
18277         (ps_printer::set_style): Likewise.
18278         (ps_output::put_number): Use 1 + INT_DIGITS + 1 instead of 12.
18280         * tty/devascii/R.proto: Map fm onto '.
18281         * tty/devlatin1/R.proto: Likewise.
18283 Sat Jul 21 12:45:07 1990  James Clark  (jjc at yquem)
18285         * tbl/table.c: Use ' instead of DELIMITER_CHAR in places where the
18286         argument to \w is at a different input level.
18288         * tbl/table.c (table::init_output): Define a new macro
18289         REPEATED_VPT_MACRO, like vpt but if in a diversion also
18290         transparently outputs itself.
18291         (table::define_bottom_macro): Use REPEATED_VPT_MACRO instead of
18292         vpt.
18293         (table::do_row): Likewise.
18295         * tbl/table.c (vertical_rule::print): Prefix the .sp -1 line with
18296         TRANSPARENT_STRING_NAME.
18298         * tbl/table.c (table::init_output): In the table release macro
18299         print an error message and don't produce any output if after
18300         issuing the need request the table still will not fit.  Also
18301         remove the diversion after bringing it back.
18303         * tbl/table.c (table::init_output): Define a new macro
18304         REPEATED_MARK_MACRO, like mk but if in a diversion also
18305         transparently outputs itself.
18306         (table::do_row): Mark row_top_reg using REPEATED_MARK_MACRO. This
18307         is necessary because .TH might not call .T#.
18308         (table::do_top): Likewise TOP_REG.
18309         (table::define_bottom_macro): If TOP_REG is no longer valid, use
18310         #T - DOUBLE_LINE_SEP rather than #T. This is necessary because the
18311         table header might contain just the two top rules.
18313 Fri Jul 20 10:51:42 1990  James Clark  (jjc at yquem)
18315         * troff/div.c: Implement new request `ptr' to print all traps.
18317         * troff/env.c (init_env_requests): Implement `.tabs' reg with
18318         init_string_env_reg.
18319         * troff/env.c (class tab_reg): Deleted.
18321 Thu Jul 19 12:07:16 1990  James Clark  (jjc at yquem)
18323         * troff/div.c: New number register .pn returns the number of the
18324         next page as set by the pn request.
18326         * macros/tmac.an: Redid headers and footers.  Number each manual
18327         entry starting from 1 unless \nC is > 0, like Sun.  Added an
18328         optional 5th argument to .TH which specifies the manual name and
18329         appears in the center of the header.  Understand the X, P and D
18330         registers like Sun.
18332 Wed Jul 18 10:23:31 1990  James Clark  (jjc at yquem)
18334         * troff/env.c (init_env_requests): New number register `.lt' to
18335         return the title length.
18337         * troff/node.h (class transparent_dummy_node): New class.
18338         * troff/node.c (class transparent_dummy_node): Provide member
18339         functions. 
18340         * troff/env.c (interrupt): Add a transparent_dummy_node, rather
18341         than a dummy_node.
18343         * troff/input.c (token::next): New escape sequence \).
18344         * troff/input.c (get_copy): Recognize \) in copy mode.
18346         * troff/input.c (input_stack::clear): New function.
18347         * troff/input.c (exit_request): Use input_stack::clear.
18349         * troff/token.h: Removed TOKEN_NO_PRINT_CHAR.
18350         * troff/input.c (token::process): Removed case TOKEN_NO_PRINT_CHAR.
18352         * troff/env.c: Move set_page_character to input.c.  Move
18353         page_character to input.c also.
18354         * troff/env.c (title): Split off the reading of the parts of the
18355         title into read_title_parts.
18356         * troff/input.c (read_title_parts): New function.  Check the
18357         input_level when testing whether a token matches the delimiter.
18359         * troff/input.c (exit_request): New function.
18360         * troff/input.c (init_input_requests): Bind ex request to
18361         exit_request rather than exit_groff.
18363         * troff/input.c (exit_groff): Call tok.next() before
18364         process_input_stack().
18366 Mon Jul 16 09:47:23 1990  James Clark  (jjc at yquem)
18368         * troff/env.c: ifdef widow control support on WIDOW_CONTROL.
18369         * troff/env.h: ditto.
18370         * troff/input.c: ditto.
18372         * troff/env.c (environment::is_empty): Test pending_lines.
18374         * troff/env.c (environment::have_pending_lines): Removed.
18376         * troff/input.c: Add request to flush pending lines from the
18377         environment.
18379         * troff/env.c, troff/env.h: Add automatic widow control feature.
18381         * troff/input.c (exit_groff):  Do process_input_stack() after
18382         do_break() but before setting exit_flag to 2.
18384         * troff/input.c: Remove FLUSH_PENDING_LINES and
18385         TOKEN_FLUSH_PENDING_LINES. Instead, flush pending lines from
18386         environment after END_TRAP token seen, but only if there aren't
18387         any more traps still unfinished.
18388         * troff/token.h: Remove TOKEN_FLUSH_PENDING_LINES.
18390 Sun Jul 15 10:50:08 1990  James Clark  (jjc at yquem)
18392         * troff/env.c: Rename the `retain_size' member of class
18393         pending_output_line to `no_fill'.
18395         * troff/env.c (title): When the line is output, make the
18396         retain_size argument !fill.
18398         * troff/node.h: Add `hyphenated' member to struct breakpoint.
18399         * troff/node.c (space_node::get_breakpoints),
18400         (dbreak_node::get_breakpoints):  Fill this in.
18401         * troff/env.c:  Allow specification of maximum number of
18402         consecutive hyphenated lines.
18404         * troff/env.c (environment::is_empty): Add test for !current_tab.
18406 Sat Jul 14 11:23:01 1990  James Clark  (jjc at yquem)
18408         * troff/env.c (environment::hyphenate_line): Don't completely give
18409         up if the word is not to be hyphenated; continue so that breaks
18410         can be made at break_char_node's.
18412         * lib/lib.h: Only define INT_MAX if it's not already defined;
18413         undef INT_MIN if it's already defined.
18415         * Makefile: Make it easy to define CFRONT_ANSI_BUG.
18417         * lib/lib.h: If CFRONT_ANSI_BUG is defined, cast INT_MIN to long.
18418         This works around a bug in AT&T C++ 2.0 used with an ANSI C
18419         compiler.
18420         
18421         * macros/tmac.an (an-header): Set no-space mode.
18423         * macros/tmac.an (TH): Start a new page if necessary.
18425         * Started using ChangeLog at version 0.4.
18427 Local Variables:
18428 version-control: never
18429 coding: latin-1
18430 End: